query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
int i = iUserDao.selectCount(); System.out.println(i);
@Test public void SelectCount(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional\r\n\tpublic Integer countUserss() {\r\n\t\treturn ((Long) usersDAO.createQuerySingleResult(\"select count(o) from Users o\").getSingleResult()).intValue();\r\n\t}", "@Override\r\n\tpublic int selectCount() {\n\t\treturn userdao.selectCount();\r\n\t}", "public int SelectCount() {\n return this.StudentDao.SelectCount();\n }", "@Override\r\n\tpublic int selectUserCount() {\n\t\treturn userMapper.selectUserCount();\r\n\t}", "public int query() {\n return count;\n }", "int getUsersCount();", "int getUsersCount();", "int getUsersCount();", "@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic Integer queryCount() {\n\t\tInteger count = musicdao.selectCount();\r\n\t\treturn count;\r\n\t}", "public int getUsersCount()\n\t{\n\t\tint usersCount=(int) userDao.count();\n\t\treturn usersCount;\n\t}", "@Override\n\tpublic int seoulcount() throws Exception {\n\t\treturn dao.seoulcount();\n\t}", "@Transactional\n\tpublic Integer countLabConstructUsers() {\n\t\treturn ((Long) labConstructUserDAO.createQuerySingleResult(\"select count(o) from LabConstructUser o\").getSingleResult()).intValue();\n\t}", "@Override\n public int findTotal(){\n try {\n return runner.query(con.getThreadConnection(),\"select count(*) from user\",new BeanHandler<Integer>(Integer.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "int getCount() throws DataAccessException;", "public int countAll() throws DAOException;", "Integer loadUserCount();", "int findAllCount() ;", "public int numberOfUsers() {\r\n \tint anzahlUser=userDAO.getUserList().size();\r\n \treturn anzahlUser;\r\n }", "public String fetchCountMyData(User loginUser);", "public int query() {\n return totalcount;\n }", "@Override\n\tpublic int getCount() {\n\t\tString sql=\"SELECT count(*) FROM `tc_student` where project=\"+project;\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO 自动生成的 catch 块\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}", "long getDbCount();", "@Test\n public void queryUserList() {\n\n User user = new User();\n user.setName(\"lin\");\n\n List<User> users = userDao.queryUserList(user, 0, 5);\n assertEquals(1, users.size());\n\n }", "public Long getCount() {\n return count;\n }", "public int getUserCount() {\n return instance.getUserCount();\n }", "public int selectCountByUserId(Integer userId);", "public int count() {\n\t\tint count = cstCustomerDao.count();\n\t\treturn count;\n\t}", "@Override\r\n\tpublic int memberCount() {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".member_count_user\");\r\n\t}", "public long getCount()\n\t{\n\t\treturn count;\n\t}", "public Long getCount() {\n return this.Count;\n }", "int getUserCount();", "int getUserCount();", "public Long getCount() {\r\n return count;\r\n }", "protected int countUsers() \n\t{\n\t\tint result = -1;\n\t\ttry {\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tResultSet rs = stat.executeQuery(\"SELECT COUNT(lfm_username) FROM Persons;\");\n\t\t\tSystem.out.println(rs.toString());\n\t\t\tresult = rs.getInt(1);\n\t\t} \n\t\tcatch (SQLException e) \n\t\t{\n\t\t\tSystem.out.println(\"Something went wrong counting users from Persons\");\n\t\t}\n\t\treturn result;\n\t}", "@Query(\"SELECT count(*) FROM DemoEntity d\")\r\n\tpublic Integer countDemo();", "@Override\n public long count() {\n String countQuery = \"SELECT COUNT(*) FROM \" + getTableName();\n return getJdbcTemplate().query(countQuery, SingleColumnRowMapper.newInstance(Long.class))\n .get(0);\n }", "Long count();", "Long count();", "Long count();", "Long count();", "Long count();", "public int get_count();", "public int count() {\n\treturn 1;\n}", "@Override\n\tpublic int jejucount() throws Exception {\n\t\treturn dao.jejucount();\n\t}", "@Override\n\tpublic Integer getRoleCount() {\n\t\tfinal String sql =\"select count(id) from role\";\n\t\treturn jdbcTemplate.queryForObject(sql, Integer.class);\n\t}", "@Override\n public final long countAll() {\n\treturn (long) getEntityManager()\n\t\t.createQuery(\"select count(*) from \"\n\t\t\t+ CustomerUser.class.getName())\n\t\t.getSingleResult();\n }", "long getCount();", "long getCount();", "public int getCount() {\n return usersArrayList.size();\n }", "public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }", "public int getUsers()\n\t{\n\t\tint users=0;\n\t\tString query=\"select count(*) from login where usertype=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"user\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tusers=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\t}", "public int getRowCount() {\r\n String countQuery = \"SELECT * FROM \" + User.TABLE_USER_NAME;\r\n SQLiteDatabase db = this.getReadableDatabase();\r\n Cursor cursor = db.rawQuery(countQuery, null);\r\n int rowCount = cursor.getCount();\r\n db.close();\r\n cursor.close();\r\n\r\n // return row count\r\n return rowCount;\r\n }", "public int count() {\r\n Session session = getSession();\r\n Long count = new Long(0);\r\n try {\r\n count = (Long) session.createQuery(\"select count(t) from \" + getPersistentClass().getName() + \" t \").uniqueResult();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in count Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return count.intValue();\r\n }", "public long getCount() {\n return count;\n }", "public long getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public long getCount() {\r\n return count;\r\n }", "@FXML\r\n\t\r\n\tpublic static void GetUserID() {\r\n\t\ttry {\r\n\t\t\tLoginConn = connection.connectDB();\r\n\t\t\tst = LoginConn.createStatement(); // create statement of it\r\n\t\t\trs = st.executeQuery(\"SELECT COUNT(USER_ID) FROM USERS\");\r\n\t\t\tuserCount = rs.getInt(\"COUNT(USER_ID)\");\r\n\t\t\tuserCount2 = userCount + 1;\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t}", "int getCount();", "int getCount();", "int getCount();", "int getCount();", "int getCount();", "int getCount();", "Integer getNumberOfUserActivity() {\n return daoInterface.getNumberOfUserActivity();\n }", "@Override\n\tpublic int junlacount() throws Exception {\n\t\treturn dao.junlacount();\n\t}", "public int delegateGetCountAllTx() {\r\n return getMyDao().getCountAll();\r\n }", "@Override\n\tpublic int incheoncount() throws Exception {\n\t\treturn dao.incheoncount();\n\t}", "@Override\n\tpublic int queryCountOfRows() {\n\t\treturn parentDao.queryCountOfRows();\n\t}", "public int logCount() {\n\n int count = 0;\n LogDAO ldao = new LogDAO();\n ldao.connect();\n try {\n String query = \"SELECT COUNT(*) FROM log;\";\n Statement st = connection.createStatement();\n ResultSet rs = st.executeQuery(query);\n rs.next();\n count = rs.getInt(1);\n ldao.closeConnection();\n return count;\n } catch (SQLException ex) {\n ldao.closeConnection();\n System.out.println(\"SQLException in logCount()\");\n }\n return count;\n }", "public long getUsersCount() {\r\n return usersCount;\r\n }", "public long getCount() {\n return count.get();\n }", "public int selectListCount() {\n\t\tConnection conn = getConnection();\n\t\tint listCount = new SaleDao().selectListCount(conn);\n\t\tclose(conn);\n\t\treturn listCount;\n\t}", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "@Override\r\n\tpublic int getCount(PageBean bean) {\n\t\treturn session.selectOne(\"enter.getCount\", bean);\r\n\t}", "public int getCapteurCount() {\n String countQuery = \"SELECT * FROM \" + TABLE_LOGIN;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(countQuery, null);\n int rowCount = cursor.getCount();\n cursor.close();\n //db.close();\n return rowCount;\n }", "Long getAllCount();", "public int getUserNumber() throws AdminPersistenceException {\n return getCount(\"ST_User\", \"id\", \"accessLevel <> ?\", \"R\");\n }", "long countNumberOfProductsInDatabase();", "@Transactional\n\t\tpublic Long getNumberRows (){\n\t\t\n\t\t\treturn pharmacyRepository1.getNumberOfRows();\n\t\t\t\n\t\t}", "public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}", "public synchronized int getCount()\n\t{\n\t\treturn count;\n\t}", "Long recordCount();", "public int resultCount(){\n\n int c = 0;\n\n try{\n if(res.last()){\n c = res.getRow();\n res.beforeFirst();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return c;\n }", "public Integer getCount() {\n\t\treturn count;\n\t}", "public Integer getCount() {\n\t\treturn count;\n\t}", "@Transactional(readOnly = true)\n\t@Override\n\tpublic long count() throws Exception {\n\t\treturn personaRepository.count();\n\t}", "@Override\n public long getTotalDoctors() {\n List<Long> temp=em.createNamedQuery(\"DoctorTb.getTotalDoctors\").getResultList();\n long count=0;\n for(long i:temp)\n {\n count=i;\n }\n return count;\n }", "public int getUserCount() {\n return user_.size();\n }", "@Override\n\tpublic int queryCount() {\n\t\treturn (int) tBasUnitClassRepository.count();\n\t}", "public static int countOfTeachers() {\n\n int count = 0;\n\n String sql = \"SELECT COUNT(teacher_id) AS count FROM teachers\";\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n count = set.getInt(\"count\");\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return count;\n }", "public Integer getCount() {\n return this.count;\n }", "public int getCount() {\n return myCount;\n }", "public int findRowCount () throws DataAccessException;", "@Override\n\tpublic int contaUtenti () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tint numeroUtenti = 0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT COUNT(ID) FROM UTENTE\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroUtenti = resultSet.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE contaUtenti utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroUtenti;\n\t}", "public static int getCount() {\r\n\t\treturn count;\r\n\t}" ]
[ "0.79016507", "0.7832126", "0.7611722", "0.7394623", "0.7294247", "0.7288647", "0.7288647", "0.7288647", "0.72880065", "0.7247059", "0.72297364", "0.709031", "0.7089123", "0.70742077", "0.70620245", "0.7048518", "0.70185417", "0.6949235", "0.6936789", "0.6933357", "0.6927444", "0.69055456", "0.68972224", "0.68965906", "0.68611795", "0.68611646", "0.68425804", "0.6833241", "0.68157005", "0.6809527", "0.68015736", "0.68015736", "0.68000597", "0.6781512", "0.67812866", "0.67795956", "0.6773085", "0.6773085", "0.6773085", "0.6773085", "0.6773085", "0.676929", "0.6754375", "0.6748711", "0.6745175", "0.6742158", "0.67387825", "0.67387825", "0.67358136", "0.6734145", "0.6723979", "0.6701213", "0.6699708", "0.66890556", "0.66890556", "0.6688204", "0.66761833", "0.66699845", "0.66463447", "0.66463447", "0.66463447", "0.66463447", "0.66463447", "0.66463447", "0.6641586", "0.66298586", "0.6620778", "0.66133946", "0.66113055", "0.6606465", "0.6598736", "0.65919363", "0.65916896", "0.65900046", "0.65900046", "0.65900046", "0.65900046", "0.65900046", "0.65900046", "0.65801144", "0.65798694", "0.6579007", "0.6577448", "0.6572469", "0.6569763", "0.6560237", "0.6556564", "0.65331435", "0.6530239", "0.6517866", "0.6517866", "0.65077925", "0.65003496", "0.6499793", "0.6498844", "0.649291", "0.64851004", "0.647809", "0.6472308", "0.64702207", "0.6468142" ]
0.0
-1
button for add comment for line, use NewComment and newCommentController
@FXML private void bComm() throws IOException, SQLException { int index = tableView.getSelectionModel().getSelectedIndex(); if(index>=0) { calc calc = data.get(index); newCommentController.calc.setDate(calc.getDate()); Parent parent = FXMLLoader.load(getClass().getResource("NewComment.fxml")); Stage stage = new Stage(); stage.initModality(Modality.WINDOW_MODAL); stage.setScene(new Scene(parent)); stage.setTitle("Comment"); stage.showAndWait(); refresh(); }else { Alert alert = new Alert(Alert.AlertType.ERROR); alert.setTitle("ERROR"); alert.setContentText("Nothing Selected!!!"); alert.showAndWait(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/flood/addComment\", method = RequestMethod.POST)\n public String addCommentPost(@ModelAttribute(\"newComment\") Comment comment,\n HttpServletRequest request,\n Model model) {\n comment.setUserId(1L);\n model.addAttribute(\"newComment\", commentService.addComment(comment));\n return \"floodLine\";\n }", "public void addComment(View v) {\n\t\tIntent i = new Intent(ReadComments.this, AddComment.class);\n\t\tstartActivity(i);\n\t}", "public String doCreateComment() {\r\n Users commenter = ui.getUser();\r\n try {\r\n this.newComment.setRecipe(this.recipe);\r\n this.newComment.setCommenter(commenter);\r\n this.newComment.setDateCommented(new Date().getTime());\r\n List<Comment> c = recipe.getComments();\r\n c.add(newComment);\r\n this.recipe.setComments(c);\r\n recipesEJB.editRecipe(recipe);\r\n } catch (javax.ejb.EJBAccessException ejbae) {\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Only registered users can post comments.\"));\r\n }\r\n return \"/recipe.xhtml?recipe=\" + qm.get(\"recipe\");\r\n }", "public void addComment(Comment comment){\n commentRepository.createComments(comment);\n }", "public void addComment(BlogEntry blog, CommentForm comment);", "@RequestMapping(value=\"/addComment\", method=RequestMethod.POST)\r\n\tpublic ModelAndView addComment(HttpServletRequest request,\r\n\t\t\t@ModelAttribute(value=\"newComment\") Comment newComment) {\r\n\t\tModelAndView result = new ModelAndView(\"redirect:/getAllComments\"); \r\n\t\t\r\n\t\tLOGGER.info(\"/addComment: \" + newComment);\r\n\t\tthis.commentDAO.addComment(newComment);\r\n\t\t\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic void add(CommentModel comment) {\n\t\tcomments.add(comment);\n\t}", "private void addComment() {\r\n Editor classEditor = null;\r\n try {\r\n classEditor = curClass.getEditor();\r\n } catch (Exception e) {\r\n }\r\n if (classEditor == null) {\r\n System.out.println(\"Can't create Editor for \" + curClass);\r\n return;\r\n }\r\n\r\n int textLen = classEditor.getTextLength();\r\n TextLocation lastLine = classEditor.getTextLocationFromOffset(textLen);\r\n lastLine.setColumn(0);\r\n // The TextLocation now points before the first character of the last line of the current text\r\n // which we'll assume contains the closing } bracket for the class\r\n classEditor.setText(lastLine, lastLine, \"// Comment added by SimpleExtension\\n\");\r\n }", "@Override\n public void onComment(Comment newComment) {\n addComment(mPostRef, newComment)\n .addOnSuccessListener(this, new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(LOG_VAL, \"Comment added\");\n\n //Hide keyboard and scroll to top\n hideKeyboard();\n mCommentRecycler.smoothScrollToPosition(0);\n }\n })\n .addOnFailureListener(this, new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(LOG_VAL, \"Add comment failed\", e);\n\n //show failure message and hide keyboard\n hideKeyboard();\n Snackbar.make(findViewById(android.R.id.content), \"Failed to add comment\",\n Snackbar.LENGTH_SHORT).show();\n }\n });\n }", "Builder addComment(Comment value);", "void addNewComment(BlogComment comment) throws DAOException;", "public void addComments(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "Comment createComment();", "private void enterComment(String comment) {\n delegationDefaultCreationScreen.commentField.sendKeys(comment);\n }", "@PostMapping(\"{id}\")\n public Book addComments (@RequestBody String text, @PathVariable Long id) {\n return bookService.addComments(text, id);\n }", "public final void editComment() {\n EditDialog newInstance = EditDialog.newInstance(this.mAlbumItem);\n newInstance.setViewModel(this.viewModel);\n newInstance.show(this.mFragmentManager, (String) null);\n }", "@Transactional\r\n\t@RequestMapping(value = { \"/comment\", \"/komentar\" }, method = RequestMethod.POST)\r\n\tpublic ResponseEntity<Comment> add(Comment comment) {\r\n\r\n\t\tcomment.setCommentState(CommentState.PENDING);\r\n\t\treturn new ResponseEntity(commentRepository.save(comment), HttpStatus.OK);\r\n\t}", "@PostMapping(\"/{postId}/newComment\")\n public String newComment(@PathVariable(\"postId\") Long postId, @RequestParam(\"comment\") String comment, Principal principal) {\n \tString username = principal.getName();\n \tmainService.newComment(username, postId, comment);\n \treturn \"redirect:/\";\n }", "void create(Comment comment);", "@RestReturn(value=JComment.class, entity=JComment.class, code={\n @RestCode(code=302, message=\"OK\", description=\"Redirect to newly created comment\")\n })\n @RequestMapping(value=\"\", method= RequestMethod.POST)\n public RedirectView addComment(HttpServletRequest request,\n HttpServletResponse response,\n UriComponentsBuilder uriBuilder,\n @PathVariable String domain,\n @RequestParam(required=true) String productId,\n @RequestParam(required=false) String productName,\n @RequestParam(required=false) String username,\n @RequestParam(required=false) Float latitude,\n @RequestParam(required=false) Float longitude,\n @RequestParam(required=true) String comment) {\n\n final DComment body = rnrService.addComment(productId, username, latitude, longitude, comment);\n\n return new RedirectView(uriBuilder.path(\"/{domain}/comment/{id}\").\n buildAndExpand(domain, body.getId()).toUriString());\n }", "void createSingleFileComment(ChangedFile file, Integer line, String comment);", "@Test\n public void testAddComment() throws Exception {\n\n Tracker tracker = new Tracker();\n\n String action = \"0\";\n String yes = \"y\";\n String no = \"n\";\n\n // add item\n\n String name = \"task1\";\n String desc = \"desc1\";\n String create = \"3724\";\n\n Input input1 = new StubInput(new String[]{action, name, desc, create, yes});\n new StartUI(input1).init(tracker);\n\n // get item id\n\n String id = \"\";\n\n Filter filter = new FilterByName(name);\n Item[] result = tracker.findBy(filter);\n for (Item item : result) {\n if (item !=null && item.getName().equals(name)) {\n id = item.getId();\n break;\n }\n }\n\n // add comment to item\n\n String action2 = \"3\";\n String comment = \"new comment\";\n\n Input input2 = new StubInput(new String[]{action2, comment, yes});\n new StartUI(input2).init(tracker);\n\n for (Comment nextComment : tracker.findById(id).getComments()) {\n if(nextComment != null) {\n Assert.assertEquals(nextComment.getText(), comment);\n break;\n }\n }\n }", "@Override\n public void onClick(View v) {\n addUpdateNotes();\n }", "@Before({PostIntercept.class, UserIntercept.class})\n @ActionKey(\"/api/blog/appendComment\")\n public void appendComment() {\n Integer belongTo = getParaToInt(\"belongTo\"); //MUST\n String content = getPara(\"content\"); //MUST\n String createdBy = getPara(\"createdBy\"); //MUST\n if (belongTo == null || content == null || createdBy == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n mResult.success(mCommentService.publish(createdBy, belongTo, content));\n renderJson(mResult);\n }", "public void insert(Comment com){\n //@todo implement method\n }", "private void commentPopItemActionPerformed(java.awt.event.ActionEvent evt) {\n comment();\n }", "void addComment(long mediaId, String text);", "public void addComment(String c) {\n comments.add(c);\n }", "public void addComment(CommentInfo comment) {\n \tcomments.add(comment);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnewNote();//新建一条记录\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(edit_add.getText().toString().length()>0){\n\t\t\t\t\taddQuestion(UrlUtils.USERQUESTIONADD, edit_add.getText().toString());\n\t\t\t\t}\n\t\t\t}", "public void onClick(View view) {\n @SuppressWarnings(\"unchecked\")\n ArrayAdapter<Comment> adapter = (ArrayAdapter<Comment>) getListAdapter();\n Comment comment = null;\n switch (view.getId()) {\n// case R.id.add:\n// //TODO\n// Intent intent = new Intent(TestDatabaseActivity.this, MainActivity.class);\n// startActivity(intent);\n//\n// // save the new comment to the database\n// comment = datasource.createComment(MainActivity.theResult);\n// adapter.add(comment);\n// break;\n case R.id.delete:\n if (getListAdapter().getCount() > 0) {\n comment = (Comment) getListAdapter().getItem(0);\n datasource.deleteComment(comment);\n adapter.remove(comment);\n }\n break;\n case R.id.menu:\n Intent intent2 = new Intent(TestDatabaseActivity.this, MainMenuActivity.class);\n finish();\n\n overridePendingTransition(0, 0);\n startActivity(intent2);\n break;\n }\n adapter.notifyDataSetChanged();\n }", "public static void addComments(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, COMMENTS, value);\r\n\t}", "public CommentAddedAction(ByteBuf from) {\n super(from);\n }", "@PostMapping(value= \"/comment/\")\n\tpublic void createComment(@RequestBody Comment comment) {\n\t\tlogger.debug(\"Saving comments.\");\n\t\tservice.createComment(comment);\n\t\t//return \"Comment records created.\";\n\t}", "public void addComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "void onAddClicked();", "@RequestMapping(value = \"/comment/project/add/{projectId}\", method = RequestMethod.POST)\r\n public String projectComment(@PathVariable(\"projectId\") String projectId, @ModelAttribute(\"projectComment\")\r\n @Valid Comment projectComment, BindingResult result) {\r\n if (!result.hasErrors()) {\r\n int pid;\r\n try {\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User u = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n pid = Integer.parseInt(projectId);\r\n\r\n persistComment(projectComment, u, pid,\r\n 1);\r\n return \"redirect:/project/\" + projectId;\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n }\r\n return \"redirect:/project/\" + projectId;\r\n }", "public boolean addNewCommentToWallItem(WallItemComment wallItemComment);", "public com.vportal.portlet.vfaq.model.FAQComment create(long id);", "public void addComment(Comment comment) {\n \t\tcomment.setId(commentIdCounter);\n \t\tcomments.add(comment);\n \t\tcommentIdCounter++;\n \t}", "@Before({PostIntercept.class, UserIntercept.class})\n @ActionKey(\"/api/blog/replyComment\")\n public void replyComment() {\n Integer belongTo = getParaToInt(\"belongTo\"); //MUST your new comment's id\n String content = getPara(\"content\"); //MUST\n String createdBy = getPara(\"createdBy\"); //MUST\n Integer replyTo = getParaToInt(\"replyTo\"); //MUST reply to which comment's id\n\n if (belongTo == null || content == null || createdBy == null || replyTo == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n mResult.success(mCommentService.reply(createdBy, belongTo, content, replyTo));\n renderJson(mResult);\n }", "public static void addComments( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, COMMENTS, value);\r\n\t}", "private void addNewCommentToProduct(final Context context, final Comment comment, Retrofit retrofit){\n try {\n if(iProduct != null && context != null && comment != null && retrofit != null){\n final View view = CommonPresenter.getViewInTermsOfContext(context);\n // Create interface objet\n CoursModeProjetApi modeProjetApi = retrofit.create(CoursModeProjetApi.class);\n // Retrieve prototype method from api\n Call<Comment> call = modeProjetApi.addComment(comment.getProductId(), comment.getEmail(), comment.getContent());\n call.enqueue(new Callback<Comment>() {\n @Override\n public void onResponse(Call<Comment> call, Response<Comment> response) {\n if(!response.isSuccessful()){\n CommonPresenter.showSnackBarMessage(view, context.getString(R.string.lb_traitement_error));\n return;\n }\n Comment mComment = response.body();\n Log.i(\"TAG_APP\", \"CODE = \"+mComment.getSuccess()+\", MESSAGE = \"+mComment.getMessage());\n }\n\n @Override\n public void onFailure(Call<Comment> call, Throwable t) {\n CommonPresenter.showSnackBarMessage(view, t.getMessage());\n }\n });\n }\n }\n catch (Exception ex){\n Log.e(\"TAG_ERROR\", \"ProductPresenter-->addNewCommentToProduct() : \"+ex.getMessage());\n }\n }", "@FXML\r\n\t\tpublic void addButton(ActionEvent event) {\r\n\t\t\t// get name, notes, and due date from fields\r\n\t\t\tString taskName = name.getText();\r\n\t\t\tString taskNotes = notes.getText();\r\n\t\t\tLocalDate taskDate = date.getValue();\r\n\t\t\t\r\n\t\t\tif (taskName.isEmpty()) {\r\n\t\t\t\t// validate that taskName is not empty\r\n\t\t\t\tnameLabel.setText(\"Must have a name!\");\r\n\t\t\t\tname.setStyle(warningStyle);\r\n\t\t\t} else {\r\n\t\t\t\tnameLabel.setText(\"\");\r\n\t\t\t\tname.setStyle(defaultStyle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (taskDate == null) {\r\n\t\t\t\t// validate that taskDate is not empty \r\n\t\t\t\tdateLabel.setText(\"Must provide a due date!\");\r\n\t\t\t\tdate.setStyle(warningStyle);\r\n\t\t\t} else {\r\n\t\t\t\tdateLabel.setText(\"\");\r\n\t\t\t\tdate.setStyle(defaultStyle);\r\n\t\t\t}\r\n\t\t\t\n\t\t\tif (taskDate != null && !taskName.isEmpty()) {\r\n\t\t\t\t// if everything is good, make a task\r\n\t\t\t\tGuiBasedApp.addTask(taskName, taskNotes, taskDate);\r\n\t\t\t\t\r\n\t\t\t\t// launch the Home Screen Scene\r\n\t\t\t\tGuiBasedApp.launchHomeScreenScene();\r\n\t\t\t}\r\n\t\t}", "@Override\n public void onClick(View view) {\n commentText = holder.edCommentText.getText().toString().replaceAll(\" \", \"%20\");\n new CommentPost(arrayList, Id, queId, commentText).execute();\n }", "Builder addComment(String value);", "public void addComment(Comment com){\n final Comment com2=com;\n new AsyncTask<Void, Void, Void>() {\n\n @Override\n protected Void doInBackground(Void... params) {\n try {\n mCommentTable.insert(com2);\n } catch (Exception exception) {\n Log.i(\"add comment error: \",exception.getMessage());\n }\n return null;\n }\n }.execute();\n }", "public static void addCommentToPR(ApprovalRequest ar,\r\n\t\t\tLongString commentText, String commentTitle, Date commentDate,\r\n\t\t\tUser commentUser) {\r\n\t\tComment comment = new Comment(ar.getPartition());\r\n\t\tcomment.setType(Comment.TypeGeneral);\r\n\t\tcomment.setText(commentText);\r\n\t\tcomment.setTitle(commentTitle);\r\n\t\tcomment.setDate(commentDate);\r\n\t\tcomment.setUser(commentUser);\r\n\t\tcomment.setExternalComment(true);\r\n\t\tcomment.setParent(ar);\r\n\t\tar.getApprovable().getComments().add(comment);\r\n\r\n\t}", "@Override\r\n\tpublic void addReply(CommentVO vo) throws Exception {\n\t\tsession.insert(namespace + \".addReply\", vo);\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(isAdded()){\n\t\t\t\t\tif(comment.getText().length()>0){\n\n\t\t\t\t\t\t//\t\t\t\t\t\tcommentSubject=subject.getText().toString().trim();\n\t\t\t\t\t\tcommentStr=comment.getText().toString().trim();\n\t\t\t\t\t\tif(sharedImagePath==null){\n\t\t\t\t\t\t\tAlertHomeFragment dialog=new AlertHomeFragment(HomeFragment.this,\"Info\",\"Image not added to post.\\n\\nNote: Sharing your image with your status is recommended.\",\"Proceed Anyway\",\"Cancel\",false,\"not_added\");\n\t\t\t\t\t\t\tdialog.setCancelable(true);\n\t\t\t\t\t\t\tdialog.show(fm, \"post\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tmyPrefs = getActivity().getSharedPreferences(\"myPrefs\",getActivity().MODE_PRIVATE);\n\t\t\t\t\t\t\tdoPostCommentsActions(myPrefs);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tAlertHomeFragment dialog=new AlertHomeFragment(HomeFragment.this,\"Warning\",\"All fields are mandatory to be filled.\",\"OK\",\"Proceed\",true,\"field_check\");\n\t\t\t\t\t\tdialog.setCancelable(true);\n\t\t\t\t\t\tdialog.show(fm, \"field\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstatusAlert.dismiss();\n\t\t\t\t\tToast.makeText(getActivity(), \"Something went wrong.Try sharing your updates again.\", 1000).show();\n\t\t\t\t}\n\t\t\t}", "org.hl7.fhir.String addNewComments();", "@Override\n\tpublic String createComment_request() {\n\t\treturn null;\n\t}", "public CommentForm replyToCommentByID(int id)\n {\n getDriver().findElement(By.xpath(\"//div[@id='xwikicomment_\" + id + \"']//a[@class='commentreply']\")).click();\n return getAddCommentForm();\n }", "public void addComment(Comment comment) {\n this.comments.add(comment);\n }", "Builder addComment(Comment.Builder value);", "private void makePostCommentClickable() {\n\t\tButton postComment = (Button) findViewById(R.id.postComment);\n\t\tpostComment.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsendDataToServer();\n\t\t\t}\n\t\t});\n\t}", "@PostMapping(value= \"/comments/\")\n\tpublic String createComments(@RequestBody List<Comment> comment) {\n\t\tlogger.debug(\"Saving comments.\");\n\t\tservice.createComments(comment);\n\t\treturn \"Comment records created.\";\n\t}", "public void AddNewGraph() {\n EQNum++;\n LineGraph line = new LineGraph();\n JButton GraphButton = new JButton(\"Graph\");\n JButton MakeRoot = new JButton(\"Bring To Top\");\n JTextField Eqinput = new JTextField();\n Eqinput.setPreferredSize(new Dimension(300, 20));\n JPanel EqPanel = new JPanel();\n EqPanel.add(new JLabel(\"f(x) =\"));\n EqPanel.add(Eqinput);\n GraphActionListener g = new GraphActionListener(this, Eqinput);\n Eqinput.addActionListener(g);\n Eqinput.setActionCommand(\"Graph\");\n EqPanel.add(GraphButton);\n EqPanel.add(MakeRoot);\n GraphButton.addActionListener(g);\n MakeRoot.addActionListener(g);\n EquationCardLayout.add(EqPanel, Integer.toString(EQNum));\n CardLayout c = (CardLayout) EquationCardLayout.getLayout();\n c.show(EquationCardLayout, Integer.toString(EQNum));\n EquationNum.setModel(new SpinnerNumberModel(EQNum, 1, EQNum, 1));\n lineGraphs.add(line);\n }", "@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tNoteEditView.this.addPicture();\n \t\t\t}", "@Override\r\n\tpublic int addComment(Comment comment) {\n\t\treturn commentDAO.addComment(comment);\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcommentListSize = commentList.size();\n\t\t\t\tif(commentListSize != 0){\n\t\t\t\t\tcommentReplying = commentList.get(commentListSize - 1);\n\t\t\t\t\tstartActivity(openLecturerReply);\n\t\t\t\t}\n\t\t\t\t//setContentView(R.layout.activity_timetable__gui);\n\t\t\t}", "public void postCommentInText(CapComments hp) {\n \t\t\t\tList<PictureStatus> pictures = (List<PictureStatus>) pictureRepo.findAll();\r\n \t\t\t\tcommentRepo.save(hp);\t\r\n \t\t\t}", "private void addCommentsToIssue(String comment) {\n\t\tApplicationUser currentUser = ComponentAccessor.getUserManager().getUser(\"NoFails\");\n\t\t// Get access to the Jira comment and component manager\n\t\tCommentManager commentManager = ComponentAccessor.getCommentManager();\n\t\t// Get the last comment entered in on the issue to a String\n\t\tcommentManager.create(issue, currentUser, comment, true);\n\t}", "public void MakeLine() {\n\t\tLineButton = new JButton(\n\t\t\t\tnew ImageIcon(getClass().getResource(GetLineChartImage())));\n\t\tLineButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tGetHost().instructionText.setVisible(false);\n\t\t\t\tGetHost().ExportEnabled();\n\t\t\t\t\n\t\t\t\tif(GetHost().GetTitle() == UNSET) {\n\t\t\t\t\tGetHost().LeftPanelContent(new LineChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\t\"Line Chart\", \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}else {\n\t\t\t\t\tGetHost().LeftPanelContent(new LineChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\tGetHost().GetTitle(), \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tChartTypeInterface.add(LineButton);\n\t}", "private Comment handleComment(String line) {\n\t\tComment c = new Comment();\n\t\tc.setText(\"\");\n\t\treturn (Comment) c;\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcommentListSize = commentList.size();\n\t\t\t\tif(commentListSize > 1){\n\t\t\t\t\tcommentReplying = commentList.get(commentListSize - 2);\n\t\t\t\t\tstartActivity(openLecturerReply);\n\t\t\t\t}\n\t\t\t\t//setContentView(R.layout.activity_timetable__gui);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString tag=(String)inputView.getTag();\n\t\t\t\tString act,id,content;\n\t\t\t\tcontent=inputView.getText().toString();\n\t\t\t\tif(!content.contains(\"@\")){\n\t\t\t\t\ttag=null;\n\t\t\t\t}\n\t\t\t\tif(tag!=null){\n\t\t\t\t\tact=REPLY_COMMENT;\n\t\t\t\t\tid=tag;\n\t\t\t\t}else{\n\t\t\t\t\tact=COMMENT_POST;\n\t\t\t\t\tid=post.getPost_id();\n\t\t\t\t}\n\t\t\t\tfinal Map<String, String> reply = new HashMap<String, String>();\n\t\t\t\treply.put(\"app\", APP);\n\t\t\t\treply.put(\"mod\", MOD);\n\t\t\t\treply.put(\"act\", act);\n\t\t\t\treply.put(\"id\", id);\n\t\t\t\treply.put(\"content\", content);\n\t\t\t\treply.put(\"oauth_token\", OAUTH_TOKEN);\n\t\t\t\treply.put(\"oauth_token_secret\", OAUTH_TOKEN_SECRECT);\n\t\t\t\tnew Thread(new WeibaActionHelper(myHandler, mContext,\n\t\t\t\t\t\treply, COMMENT_OK)).start();\n\t\t\t}", "@Override\n public boolean createComment(NutricionistComment comment) {\n return nutricionistCommentDAO.createComment(comment);\n }", "public void setNewComment(Comment newComment) {\r\n this.newComment = newComment;\r\n }", "public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }", "@Override\n public void onClick(View v){\n setResult(RESULT_OK);\n if (textboxComment.getText().length() > 0) {\n textboxComment.setEnabled(false);\n buttonAddComment.setEnabled(false);\n }\n }", "public void addComment(final CommitComment comment) {\n addItem(TYPE_COMMENT, comment);\n }", "public void addComment(String spid, Comment comment) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tsuper.addComment(PERFORMERS_COMMENTS_NEW, spid, comment);\n\t}", "public void setCommentId(int commentId);", "public CommentForm editCommentByID(int id)\n {\n getDriver().findElement(By.xpath(\"//div[@id='xwikicomment_\" + id + \"']//a[@class='edit']\")).click();\n waitUntilElementIsVisible(By.id(\"XWiki.XWikiComments_\" + id + \"_comment\"));\n return new CommentForm(getDriver().findElement(By.className(\"edit-xcomment\")));\n }", "@RequestMapping(value = \"/comment/subproject/add/{projectId}\", method = RequestMethod.POST)\r\n public String subProjectComment(@PathVariable(\"projectId\") String projectId, @ModelAttribute(\"projectComment\")\r\n @Valid Comment projectComment, BindingResult result) {\r\n if (!result.hasErrors()) {\r\n int pid;\r\n try {\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User u = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n pid = Integer.parseInt(projectId);\r\n\r\n persistComment(projectComment, u, pid,\r\n 2);\r\n return \"redirect:/subproject/\" + projectId;\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n }\r\n return \"redirect:/subproject/\" + projectId;\r\n }", "public int addComment(Comment comment) {\n\t\treturn cdi.addComment(comment);\n\t}", "@FXML\n void addTaskClicked(ActionEvent event)\n {\n createTask();\n }", "public void setComment(String new_comment){\n this.comment=new_comment;\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, CommentActivity.class);\n intent.putExtra(\"comment_id\", String.valueOf(comments.get(pos).getId()));\n intent.putExtra(\"idc\", comments.get(pos).getId());\n intent.putExtra(\"content \",comments.get(pos).getDescription());\n context.startActivity(intent);\n }", "private void setupAddToReviewButton() {\n\t\tImageIcon addreview_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"addtoreview.png\");\n\t\tJButton add_to_review = new JButton(\"\", addreview_button_image);\n\t\tadd_to_review.setBounds(374, 598, 177, 100);\n\t\tadd_to_review.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\twords_to_add_to_review.add(words_to_spell.get(current_word_number));\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tadd_to_review.addMouseListener(new VoxMouseAdapter(add_to_review,null));\n\t\tadd(add_to_review);\n\t}", "@Override\n public void onClick(View view) {\n\n NoteData newNote = new NoteData();\n String header = tagNewHeader.getText().toString();\n String note = tagNewNotes.getText().toString();\n newNote.setNote(header\n + DocumentPOJOUtils.DOC_NOTE_HEADER_DELIMITER\n + note\n );\n newNote.setOwner(globalVariable.getCurrentUser().getName());\n\n TabbedDocumentDialog listener = MappingUtilities.getTabbedDialog(getFragmentManager().getFragments());\n listener.onFinishEditDialog(newNote);\n CreateDocNotesDialog.super.dismiss();\n\n }", "public void insert(Comment comment) {\n if (comment.getParentId() == null || comment.getParentId() == 0) {\n throw new CustomException(CustomErrorCode.TARGET_PARAM_NOT_FOUND);\n }\n if (comment.getType() == null || !CommentTypeEnum.isExist(comment.getType())) {\n throw new CustomException(CustomErrorCode.TYPE_PARAM_ERROR);\n }\n //comment question or comment comment\n if (comment.getType() == CommentTypeEnum.QUESTION.getType()) {\n //comment question\n Question question = questionMapper.selectByPrimaryKey(comment.getParentId());\n if (question == null) {\n throw new CustomException(CustomErrorCode.QUESTION_NOT_FOUNT);\n }\n commentMapper.insert(comment);\n question.setCommentCount(1);\n questionExtMapper.incCommentCount(question);\n //add notification\n CreateNotification(comment, question.getCreator(), question.getId(), NotificationTypeEnum.QUESTION);\n } else {\n //comment comment\n Comment dbComment = commentMapper.selectByPrimaryKey(comment.getParentId()); //dbComment=parentComment\n if (dbComment == null) {\n throw new CustomException(CustomErrorCode.COMMENT_NOT_FOUND);\n }\n commentMapper.insert(comment);\n Comment parentComment = new Comment();\n parentComment.setId(comment.getParentId());\n parentComment.setCommentCount(1L);\n commentExtMapper.incCommentCount(parentComment);\n //add notification\n CreateNotification(comment, comment.getCommentator(), dbComment.getParentId(), NotificationTypeEnum.COMMENT);\n }\n }", "public void addComment(CommentDTO comment) {\n\t\tif (comments == null)\n\t\t\tcomments = new ArrayList<CommentDTO>();\n\t\tcomments.add(comment);\n\t}", "public ThreeDSecureRequest addComment(String comment) {\n //create new comments array list if null\n if (null == this.comments) {\n this.comments = new ArrayList<Comment>();\n }\n\n int size = comments.size();\n this.comments.add(new Comment().addComment(comment).addId(++size));\n return this;\n }", "@FXML\n public void newMatlLine(ActionEvent event) throws SQLException { //ADD NEW MATL LINE\n \tdoCheckingMatl();\n \t\n \tif(checkIntPosMatl && checkFloatPosMatl) {\n \t\t//store the values\n \t\tstoreValuesMatl();\n \t\t\n \t\t//confirmation message for success\n\t\t\tValues.printConfirmationMessage(\"MATL\", true);\n \t\t\n \t\tmainMatlId++;\n \tString mainMatlIdString = Integer.toString(mainMatlId);\n \tString sqlMatl = \"INSERT INTO matl (mainID, SPECIFIC_HEAT, HEAT_OF_REACTION, SPEC_ID, ID, REFERENCE_TEMPERATURE, N_REACTIONS, DENSITY, CONDUCTIVITY) \"\n \t\t\t\t+ \"VALUES ('\" + mainMatlIdString + \"', '', '', '', '', '', '', '', '')\";\n \tConnectionClass connectionClass = new ConnectionClass();\n \t\tConnection connection = connectionClass.getConnection();\n \t\tStatement statement = connection.createStatement();\n \t\tstatement = connection.createStatement();\n \t\tstatement.executeUpdate(sqlMatl);\n \t\t\n \t\tshowInfoMatl();\n \t}\n \telse {\n \t\t//confirmation message for failure\n\t\t\tValues.printConfirmationMessage(\"MATL\", false);\n \t\t//System.out.println(\"Unable to add new MATL line\");\n \t}\n }", "public void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tEditText taskText = (EditText) findViewById(R.id.edit_task);\t//create the text field\n\t\t\t\tTask newTask = new Task(taskText.getText().toString());\t\t\t//save the text of the task\n\t\t\t\tarrayTaskList myArray = arrayTaskList.getInstance();\n\t\t\t\tmyArray.addNewTask(newTask);\t\t\t\t\t\t\t\t\t//add the new task to the list\t\t\t\t\n\t\t\t\tfinish();\n\t\t\t}", "public boolean addComment(BlogEntry blogEntry, String user, String text) {\n try {\n Comment comment = new Comment(blogEntry, user, text);\n comments.add(comment);\n } catch (Exception ex) {\n return false;\n }\n return true;\n }", "public void add(ActionEvent e) {\r\n Customer newCustomer = new Customer();\r\n newCustomer.setContactfirstname(tempcontactfirstname);\r\n newCustomer.setContactlastname(tempcontactlastname);\r\n save(newCustomer);\r\n addRecord = !addRecord;\r\n }", "protected void editNote()\n\t{\n\t\tActivity rootActivity = process_.getRootActivity();\n\t\tActivityPanel rootActivityPanel = processPanel_.getChecklistPanel().getActivityPanel(rootActivity);\n\t\tActivityNoteDialog activityNoteDialog = new ActivityNoteDialog(rootActivityPanel);\n\t\tint dialogResult = activityNoteDialog.open();\n\t\tif (dialogResult == SWT.OK) {\n\t\t\t// Store the previous notes to determine below what note icon to use\n\t\t\tString previousNotes = rootActivity.getNotes();\n\t\t\t// If the new note is not empty, add it to the activity notes\n\t\t\tif (activityNoteDialog.getNewNote().trim().length() > 0)\n\t\t\t{\n\t\t\t\t// Get the current time\n\t\t\t\tString timeStamp = new SimpleDateFormat(\"d MMM yyyy HH:mm\").format(Calendar.getInstance().getTime());\n\t\t\t\t// Add the new notes (with time stamp) to the activity's notes.\n\t\t\t\t//TODO: The notes are currently a single String. Consider using some more sophisticated\n\t\t\t\t// data structure. E.g., the notes for an activity can be a List of Note objects. \n\t\t\t\trootActivity.setNotes(rootActivity.getNotes() + timeStamp + \n\t\t\t\t\t\t\" (\" + ActivityPanel.AGENT_NAME + \"):\\t\" + activityNoteDialog.getNewNote().trim() + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// Determine whether the note icon should change.\n\t\t\tif (previousNotes.trim().isEmpty())\n\t\t\t{\n\t\t\t\t// There were no previous notes, but now there are -- switch to image of note with text \n\t\t\t\tif (!rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithTextImage_);\n\t\t\t}\n\t\t\telse // There were previous notes, but now there aren't -- switch to blank note image\n\t\t\t\tif (rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithoutTextImage_);\n\t\t\t// END of determine whether the note icon should change\n\t\t\t\n\t\t\t// Set the tooltip text of the activityNoteButton_ to the current notes associated with the activity. \n\t\t\tactivityNoteButton_.setToolTipText(rootActivity.getNotes());\n\t\t\t\n\t\t\tprocessHeaderComposite_.redraw();\t// Need to redraw the activityNoteButton_ since its image changed.\n\t\t\t// We redraw the entire activity panel, because redrawing just the activityNoteButton_ \n\t\t\t// causes it to have different background color from the activity panel's background color\n\t\t\tSystem.out.println(\"Activity Note is \\\"\" + rootActivity.getNotes() + \"\\\".\");\n\t\t}\n\t}", "public void addNewQuestionInputTextArea(final String question) {\n if (isQuestionEditMode || getQuestions().isEmpty()) {\n if (getNumberOfQuestions() <= (MAX_NUMBER_OF_QUESTIONS - 1)) {\n UIComponent questionsPanel = FacesContext.getCurrentInstance().getViewRoot().findComponent(\"tabsView:tabViewTasksSettings:viewEditPerformanceAppraisalSettingForm:questionsPerformanceAppraisalPanel\");\n ResourceBundle resourceBundle = PropertyResourceBundle.getBundle(\"messages/messages\");\n//\n// /*****************************QUESTION*TEXT*AREA***************************************************/\n// OutputLabel outputLabel = new OutputLabel();\n// outputLabel.setValue(String.format(\"%d. %s\", questions.indexOf(question) + 1, question));\n// outputLabel.setValueExpression(\"rendered\",\n// createValueExpression(\"#{!performanceAppraisalSettingBean.questionEditMode}\", boolean.class));\n// outputLabel.setStyle(\"width:310px;height:auto\"); //width:335px - default\n//\n// InputTextarea inputTextarea = new InputTextarea();\n// inputTextarea.setId(\"question\" + getNumberOfQuestions());\n// inputTextarea.setRows(1);\n// inputTextarea.setCols(56);\n// inputTextarea.setStyle(\"width:310px;height:auto\"); //width: 335px - default\n// inputTextarea.setValueExpression(\"rendered\",\n// createValueExpression(\"#{performanceAppraisalSettingBean.questionEditMode}\", boolean.class));\n// inputTextarea.setValue(question);\n// inputTextarea.addValidator(new QuestionValidator());\n//\n// AjaxBehavior ajaxBehavior = new AjaxBehavior();\n// ajaxBehavior.setUpdate(\"questionMessage\" + getNumberOfQuestions() + \", performanceAppraisalSettingSave\");\n// inputTextarea.addClientBehavior(\"keyup\", ajaxBehavior);\n// /**************************************************************************************************/\n//\n// column.getChildren().add(outputLabel);\n// column.getChildren().add(inputTextarea);\n//\n// row.getChildren().add(column);\n//\n// questionsPanel.getChildren().add(row);\n\n Row rowMessage = new Row();\n Column columnMessage = new Column();\n columnMessage.setStyle(\"height:30px!important\");\n Message message = new Message();\n message.setFor(\"question\" + getNumberOfQuestions());\n message.setId(\"questionMessage\" + getNumberOfQuestions());\n message.setDisplay(\"text\");\n columnMessage.getChildren().add(message);\n\n rowMessage.getChildren().add(columnMessage);\n\n questionsPanel.getChildren().add(rowMessage);\n\n setNumberOfQuestions(getNumberOfQuestions() + 1); //add one more question | need to iterate all questions and check max of questions\n } else {\n ResourceBundle resourceBundle = PropertyResourceBundle.getBundle(\"messages/messages\");\n String lastQuestionId = \"question\" + (MAX_NUMBER_OF_QUESTIONS - 1);\n FacesContext.getCurrentInstance().addMessage(\"tabsView:tabViewTasksSettings:viewEditPerformanceAppraisalSettingForm:\" + lastQuestionId,\n new FacesMessage(FacesMessage.SEVERITY_ERROR, \"\", resourceBundle.getString(\"AdminTask.PerformanceAppraisal.MaxNumberQuestions\")));\n }\n }\n }", "public void createNoteEditModel() {\n \t\tif (this.mNoteItemModel == null)\n \t\t\tthis.mNoteItemModel = new NoteItemModel(this.getContext());\n \t\tthis.status = STATUS_CREATE;\n \t}", "@Override\n public void onActionReplyClick(String commentId) {\n Pair<Integer, Integer> commentIndex = Utility.FooterUtil.getCommentIndexById(commentId, modelsList);\n\n CommentsViewHolder commentsViewHolder = (CommentsViewHolder) footerRv\n .findViewHolderForAdapterPosition(commentIndex.first + CommentsDelegatesManager.NUMBER_OF_VIEW_ABOVE);\n\n if (commentsViewHolder != null) {\n commentsViewHolder.giveFocusToInputField(v -> {\n if (v instanceof EditText) {\n String threadId = ((ThreadCommentModel) modelsList.get(commentIndex.first)).getThreadId();\n replyInputPresenter.postReply(threadId, ((EditText) v).getText().toString());\n }\n }, extractTarget(commentIndex));\n }\n }", "int insert(FeiWenComment record);", "@ResponseBody\n @RequestMapping(\"/addcomment\")\n public String addComment(@RequestBody Map<String,Object> param){\n return commentService.addComment(param);\n }", "public void addCommentField(String comment, boolean italics) {\n Label commentLabel = new Label(getComposite(), SWT.LEFT | SWT.WRAP);\n commentLabel.setText(comment);\n if (italics) {\n commentLabel.setFont(getCommentFont());\n }\n TableWrapData layoutData = TableWrapLayoutHelper.createLayoutData(true, false, TableWrapData.FILL,\n TableWrapData.FILL);\n layoutData.colspan = 4;\n layoutData.rowspan = 1;\n layoutData.maxWidth = 200;\n commentLabel.setLayoutData(layoutData);\n }", "public void addComment(String comment) {\n checkNotNull(comment);\n addLine(\"// \" + comment);\n }", "public void launch() {\n view.setEditMode(false); \n view.setComments(report.getComments().toArray());\n \n view.addCommentsListSelectionListener(new CommentsListSelectionListener());\n view.addEditButtonActionListener(new EditButtonActionListener());\n view.addDiscardButtonActionListener(new DiscardChangesActionListener());\n view.addSaveButtonActionListener(new SaveCommentChangesActionListener());\n view.addNewCommentActionListener(new NewCommentActionListener());\n \n view.setVisible(true);\n \n refreshView();\n \n /**\n * Craig - TC B2c: Real time updates\n * Register this controller as an observer\n */\n AppObservable.getInstance().addObserver(this);\n }", "private void addComment(Question q)\n\t{\n\t\tQuestion q_comm = new Question(q);\n\t\tq_comm.setQid(q_comm.getQid().concat(\"comment\"));\n\t\tq_comm.setQuestion(q_comm.getQuestion().concat(\" comment\"));\n\t\tq_comm.setType(\"T\");\n\t\t/*\tCond: SE-StudyEventOID/F-FormOID[RepeatKey]/IG-ItemGroupOID/I-ItemOID == \"-oth-\"\n\t\t */\n\t\tString cond_oid = q.getQid().concat(prop.getProperty(\"ext.cond\"));\n\t\tString cond_str = \"$(SE-\" + prop.getProperty(\"dummy.study_event_oid\") + \"/F-\" + survey.getId() + \"/IG-\" + q.getGid() + \"/I-\" + q.getQid() + \")==NULL\";\n\t\tsurvey.addCondition(new Condition(prop.getProperty(\"imi.syntax_name\"), cond_oid, cond_str));\n\t\tq_comm.setCond(cond_oid);\n\t\tsurvey.addQuestion(q_comm);\n\t}", "public void addToCommentsList(Object newValue);" ]
[ "0.686741", "0.6859968", "0.66990584", "0.6458132", "0.6442736", "0.63884723", "0.6302816", "0.6246331", "0.6153052", "0.6142015", "0.6132555", "0.61109555", "0.6102284", "0.61021924", "0.6085413", "0.60428065", "0.60305625", "0.5999062", "0.5986239", "0.5957992", "0.5936071", "0.58646", "0.58594596", "0.5843303", "0.58366716", "0.581822", "0.5803392", "0.5798347", "0.5773884", "0.5769251", "0.5766701", "0.5753883", "0.57379675", "0.5703278", "0.5701989", "0.5698687", "0.56907123", "0.56820315", "0.56802434", "0.5670824", "0.56535125", "0.5652775", "0.5651097", "0.563368", "0.5621931", "0.56198084", "0.5602454", "0.5591929", "0.55828077", "0.55700564", "0.55625045", "0.5551383", "0.554075", "0.55273914", "0.55092967", "0.55043083", "0.55023736", "0.5491143", "0.5488336", "0.54721653", "0.5457659", "0.54575384", "0.54527634", "0.5451958", "0.54431313", "0.5440799", "0.54399383", "0.54376143", "0.54107535", "0.5409817", "0.5397604", "0.53965276", "0.53911084", "0.53747886", "0.53689516", "0.53651065", "0.5359534", "0.535566", "0.53516716", "0.5350526", "0.5341978", "0.5339346", "0.5336877", "0.5322547", "0.53215975", "0.5316855", "0.529034", "0.52839607", "0.5282621", "0.52804995", "0.5280108", "0.52721304", "0.52678555", "0.5262826", "0.5257164", "0.52556336", "0.5254911", "0.5250585", "0.5248697", "0.52448785", "0.5235895" ]
0.0
-1
delete comment from line and db
@FXML private void bRem() throws SQLException { int index = tableView.getSelectionModel().getSelectedIndex(); if(index>=0) { calc calc = data.get(index); String tmp = calc.getComment(); try{ UpdateDb(tmp.substring(0,tmp.lastIndexOf("\n")), calc.getDate()); }catch (StringIndexOutOfBoundsException e) { UpdateDb("", calc.getDate()); } refresh(); }else { Alert alert = new Alert(Alert.AlertType.ERROR); alert.setTitle("ERROR"); alert.setContentText("Nothing Selected!!!"); alert.showAndWait(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(int commentId);", "public void deleteComment() {\n text = null;\n authorName = null;\n timestamp = null;\n }", "@Override\r\n\tpublic void delRecomment(int cm_Seq) {\n\t\trdao.delRecomment(cm_Seq);\r\n\t}", "public void deleteComment(CommentAttributes comment){\n commentsDb.deleteEntity(comment);\n }", "void deleteComment(long mediaId, long commentId);", "int deleteByPrimaryKey(String commentId);", "@Override\n public void delete(LineEntity entity) {\n\n }", "int deleteByPrimaryKey(Long commentId);", "private String removeComments(String line) {\n\t\tint commentIndex = line.indexOf(\"//\");\n\t\tif (commentIndex >= 0) {\n\t\t\tline = line.substring(0, commentIndex);\n\t\t}\n\t\tline = line.trim();\n\n\t\t// clear line if entire line is comment\n\t\tif (line.startsWith(\"#\")) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn line;\n\t}", "public void removeComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "private Comment handleComment(String line) {\n\t\tComment c = new Comment();\n\t\tc.setText(\"\");\n\t\treturn (Comment) c;\n\t}", "public void removeComment() { \n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"removeComment() \" );\n Via via=(Via)sipHeader;\n via.removeComment();\n }", "public void removeComments(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "@Override\r\n\tpublic boolean bgCommentDelete(String br_uuid) {\n\t\treturn false;\r\n\t}", "public static void removeComments(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.remove(model, instanceResource, COMMENTS, value);\r\n\t}", "public static void removeComments( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(model, instanceResource, COMMENTS, value);\r\n\t}", "int deleteByExample(CommentLikeExample example);", "void createSingleFileComment(ChangedFile file, Integer line, String comment);", "int deleteByExample(trackcommentExample example);", "public void delete(TopicComment comment) {\n\t\t\n\t}", "public void deleteComment(String activityId, String commentId) throws ActivityStorageException;", "void unsetComments();", "public void stripComments() {\r\n if (command.contains(\"//\")) {\r\n command = command.substring(0, command.indexOf(\"//\"));\r\n }\r\n command = command.replace(\"\\n\", \"\");\r\n command = command.replace(\"\\t\", \"\");\r\n }", "public void clearComments(Address startAddr, Address endAddr);", "@Override\n\tpublic int boardCommentDelete(Map param) {\n\t\treturn dao.boardCommentDelete(session,param);\n\t}", "int deleteByExample(FeiWenCommentExample example);", "void deleteAllCommentsOfProject(int projectId) throws SQLException;", "void deleteTrackerComments(final Integer id);", "public void removeComment(String c){\n\t\tfor (Comment c1 : comments.values()) {\n\t\t\tif(c1.getId().toString().equals(c)){\n\t\t\t\tcomments.remove(c1.getId().toString());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void closeComment() {\n Log.write(\" -->\");\n }", "private String removeTailComment(String line) {\n //remove any comment from this line\n int commentPos = line.indexOf(\",#\");\n if (commentPos != -1) {\n line = line.substring(0, commentPos);\n }\n return line;\n }", "@Override\n\tpublic int delete(int comment_id) {\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tint deletedCount = 0;\n\n\t\ttry {\n\t\t\tconn = getConnection();\n\n\t\t\tString query = \"UPDATE scomment\t\t\t\" +\n\t\t\t\t\t\t \"SET isdeleted = 'true'\t\" +\n\t\t\t\t\t\t \"WHERE comment_id = ?\t\";\n\t\t\tpstmt = conn.prepareStatement(query);\n\n\t\t\tpstmt.setInt(1, comment_id);\n\n\t\t\tdeletedCount = pstmt.executeUpdate();\n\n\t\t\tSystem.out.println(deletedCount + \"건 삭제\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"error:\" + e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (pstmt != null) pstmt.close();\n\t\t\t\tif (conn != null) conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"error:\" + e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn deletedCount;\n\t}", "void deleteUserLikeComment(long lifeHackId, long userId) throws DaoException;", "@Override\r\n\tpublic void delComment(int commentId) {\n\t\tcommentDao.delComment(commentId);\r\n\t}", "@Override\n public void delete(Comment comment) {\n Session session = sessionFactory.getCurrentSession();\n session.delete(comment);\n }", "public void delete(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex < currentText.getCharacterEdges().length - 1) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, false);\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex < texts.size() - 1) {\n currentText = codeWindow.getTextLineController().merge(currentText, codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex + 1), codeWindow);\n }\n //The cursors position is unchanged\n }\n }", "void decrementCommentLikes(long lifeHackId) throws DaoException;", "private void removeComments(Node node) {\n for (int i = 0; i < node.childNodeSize();) {\n Node child = node.childNode(i);\n if (child.nodeName().equals(\"#comment\")) {\n child.remove();\n } else {\n removeComments(child);\n i++;\n }\n }\n }", "public void remLineNumber(){\n ((MvwDefinitionDMO) core).remLineNumber();\n }", "public static void ClearLine1() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L1.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "@Test\n\tpublic void deleteOrderLine() {\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteOrderLine \n\t\tOrderLine orderline = new ecom.domain.OrderLine();\n\t\tservice.deleteOrderLine(orderline);\n\t}", "public void processRemoveLine() {\n AppYesNoDialogSingleton dialog = AppYesNoDialogSingleton.getSingleton();\n \n // POP UP THE DIALOG\n dialog.show(\"Remove Line\", \"Are you sure you want to remove this line?\");\n \n // DO REMOVE LINE \n dataManager.removeLine();\n }", "@Override\n\tpublic void delete(Note e) {\n\t\t\n\t}", "public static void ClearLine3() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L3.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public static void ClearLine4() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L4.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t */\n\tpublic void removedComment() {\n\t}", "public static void ClearLine2() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L2.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public static void ClearLine8() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L8.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "@Override\n\tpublic int commentsDelete(SnsVO vo) {\n\t\treturn map.commentsDelete(vo);\n\t}", "public void removeAllComments() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMMENTS);\r\n\t}", "@Delete({\n \"delete from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n int deleteByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "public void setDeleteComment(Comment deleteComment) {\r\n this.deleteComment = deleteComment;\r\n }", "@Override\n public void delete(){\n Integer Pointer=0;\n FileWriter editDetails = null;\n ArrayList<String> lineKeeper = saveText();\n\n if(lineKeeper.contains(getUsername())){\n Pointer=lineKeeper.indexOf(getUsername());\n Pointer=Pointer-1;\n for(int i=1;i<=8;i++){\n lineKeeper.remove(Pointer+1);\n }//end for\n homeAddress.delete(lineKeeper);\n }\n try{\n editDetails= new FileWriter(\"employees.txt\",false);\n for( int i=0;i<lineKeeper.size();i++){\n editDetails.append(lineKeeper.get(i));\n editDetails.append(System.getProperty(\"line.separator\"));\n }//end for\n editDetails.close();\n editDetails = null;\n }//end try\n catch (IOException ioe) {}//end catch\n }", "public void modifyComment(String text){\n if (activeEmployee.hasLicence(202)){\n DB.modifyComment(getData().id_comment, getData().id_task, text);\n update();\n } //consideramos que solo se puede modificar el texto no las id\n }", "public int deleteComment(int id) {\n\t\treturn cdi.deleteComment(id);\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete BenchCommentHistory : {}\", id);\n benchCommentHistoryRepository.delete(id);\n }", "public void removeAllComment(Object obj) {\n\t\tdao.deleteAllComment(obj);\n\t}", "public void deleteNote() {\n if (cursor == 0) {\n JOptionPane.showMessageDialog(null, \"There's no note to delete!\", \"Invalid Delete\", JOptionPane.WARNING_MESSAGE);\n } else {\n if (sequence.getNote(cursor) == REST) {\n cursor--;\n controller.setSelected(cursor);\n\n sequence = sequence.withNote(REST, cursor);\n controller.setMidiSequence(sequence);\n } else {\n sequence = sequence.withNote(REST, cursor);\n controller.setMidiSequence(sequence);\n }\n }\n }", "public void deleteFromABSTRACT_NOTES( long id ) {\n\t\tlong rows_affected = getWritableDatabase().delete(TABLE_ABSTRACT_NOTES,\n\t\t\t\t\"NOTE_ID = ?\", new String[] { String.valueOf(id) });\n\t\tLog.d(\"GCA-DB\", \"deleted Note from db - no: \" + rows_affected);\n\t\t}", "public void comment(String data);", "@Override\n\tprotected String deleteStatement() {\n\t\treturn null;\n\t}", "public void removeFromLinesOfBusiness(entity.AppCritLineOfBusiness element);", "public int delete(ProductLine productLine, Connection con) throws SQLException {\r\n\r\n\t\tPreparedStatement ps = con.prepareStatement(\r\n\t\t\t\t\"update productlines set lastmodified_by = ?,lastmodified_at=NOW(),record_status=0 where product_line = ? AND record_status>0\");\r\n\r\n\t\tps.setString(1, productLine.getProductLine());\r\n\t\tps.setString(2, productLine.getProductLine());\r\n\t\tint rs = ps.executeUpdate();\r\n\t\treturn rs;\r\n\t}", "public void delete(String so_cd);", "public static void ClearLine7() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L7.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public void removeAtCursor() {\n lines.remove(cursor);\n if(cursor !=0 && cursor==lines.size())\n cursor--;\n }", "public void clearComments(String key)\n {\n this.comments.remove(key);\n }", "public static void ClearLine6() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L6.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public static void ClearLine9() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L9.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "@Override\n\tpublic void delete(Authentication auth, int id) {\n\t\tOptional<Comment> comment = commentRepository.findOneByIdAndShop_Id(id, Common.getIdFromAuth(auth));\n\t\tif (comment.isPresent()) {\n\t\t\tcommentRepository.delete(comment.get());\n\t\t}\n\t}", "public void deleteLine(long objectId, SupplierSettlementLine line) throws CoreException {\n try (Response response = clientApi.delete(SUPPLIER_SETTLEMENTS + objectId + LINES + line.getId())) {\n readResponse(response, String.class);\n }\n }", "@Test\n public void testDelete() {\n System.out.println(\"delete\");\n Comment instance = new Comment(\"Test Komment 2\", testCommentable, testAuthor);\n instance.delete();\n \n assertFalse(testCommentable.getComments().contains(instance));\n assertFalse(testAuthor.getCreatedComments().contains(instance));\n assertTrue(instance.isMarkedForDeletion());\n assertFalse(Database.getInstance().getComments().contains(instance));\n }", "private String eliminar_contenido_innecesario(String line) {\n \n \tint index_question = line.indexOf('?');\n\t\tint index_point = line.indexOf('.');\n\t\t\n\t\tline = ( index_question > 0 ) ? line.substring(0, index_question+1) : line;\n\t\tline = ( index_point > 0 ) ? line.substring(0, index_point+1) : line;\n\t\t\n \treturn line;\n }", "private void skipCommentLine() {\n while (position < length) {\n int c = data.charAt(position);\n if (c == '\\r' || c == '\\n') {\n return;\n }\n position++;\n }\n }", "public void removeLine(int line) {\n VirtualTeam team = getOrCreateTeam(line);\n String old = team.getCurrentPlayer();\n\n if (old != null && created) {\n getPlayer().sendPacket(removeLine(old));\n getPlayer().sendPacket(team.removeTeam());\n }\n\n lines[line] = null;\n }", "public static void ClearLine5() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L5.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "@GetMapping(\"/delete1Comment\")\r\n\tprivate Object delete1Comment() {\r\n\t\treturn mainService.deleteOneCommentOnly();\r\n\t}", "@Override\n\tpublic boolean deleteCommentForGardenItemId(int itemId, int commentId, String username) {\n\t\treturn false;\n\t}", "private void deleteAdjacentLines(int delta) {\n int y = cursor.getY();\n int upToLine = clampY(y + delta);\n startPatch();\n List<String> removedLines = file.removeLineRange(y, upToLine);\n register.setContents(new TextFragment(Visual.Mode.LINE, false, removedLines));\n file.breakPatch();\n // The cursor is placed on the line following the deleted lines, having\n // the effect that deleting up moves the cursor up.\n int moveBackToLine = clampY(Math.min(upToLine, y));\n cursor.moveTo(moveBackToLine, 0);\n }", "public static void ClearLine10() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L10.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "@Override\r\n\tpublic void deleteBoardQaComment(Integer bdNoQaComments) {\n\t\tthis.boardQaCommentsDao.deleteCommentsByBdNoQaComments(bdNoQaComments);\t// 댓글 지우기\r\n\t}", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n String string0 = SQLUtil.removeComments(\"java.lang.Object@4d3d5d29\");\n assertNotNull(string0);\n }", "int deleteByExample(CommentUserExample example);", "public void testDeleteBreakpoint() throws Exception {\n startTest();\n openFile(\"debug.html\", LineDebuggerTest.current_project);\n EditorOperator eo = new EditorOperator(\"debug.html\");\n setLineBreakpoint(eo, \"window.console.log(a);\");\n\n openFile(\"linebp.js\", LineDebuggerTest.current_project);\n eo = new EditorOperator(\"linebp.js\");\n setLineBreakpoint(eo, \"console.log(\\\"start\\\");\");\n eo.close();\n runFile(LineDebuggerTest.current_project, \"debug.html\");\n evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n EditorOperator currentFile = EditorWindowOperator.getEditor();\n// if (LineDebuggerTest.inEmbeddedBrowser) { // workaround for 226022\n// (new EmbeddedBrowserOperator(\"Web Browser\")).close();\n// }\n currentFile.select(\"console.log(\\\"start\\\");\"); // NOI18N\n new ToggleBreakpointAction().perform(currentFile.txtEditorPane());\n\n currentFile.close();\n runFile(LineDebuggerTest.current_project, \"debug.html\");\n evt.waitNoEvent(GeneralHTMLProject.RUN_WAIT_TIMEOUT);\n new ContinueAction().performMenu();\n evt.waitNoEvent(1000);\n currentFile = EditorWindowOperator.getEditor();\n assertEquals(\"Unexpected file opened at breakpoint\", \"debug.html\", currentFile.getName());\n cleanBreakpoints();\n endTest();\n }", "public void delete(ShoppingCartLine entity) {\n \t\t\t\tLogUtil.log(\"deleting ShoppingCartLine instance\", Level.INFO, null);\n\t try {\n \tentity = entityManager.getReference(ShoppingCartLine.class, entity.getId());\n entityManager.remove(entity);\n \t\t\tLogUtil.log(\"delete successful\", Level.INFO, null);\n\t } catch (RuntimeException re) {\n \t\t\t\tLogUtil.log(\"delete failed\", Level.SEVERE, re);\n\t throw re;\n }\n }", "private String handleLine(String line) {\n if (line == null)\n throw new WrongCommentFormatException(\"\\nNULL line was found\");\n\n // bracketsState shows if the line already begins as a comment (for multiple line comments)\n int bracketsState = isLongComment ? 1 : 0;\n\n // if not a long comment and no long comment open separator found, check if there is any single line comment\n if (!isLongComment && !line.contains(Character.toString(AssemblyConstants.LONG_COMMENT_OPEN))) {\n // if there is a single line comment as well, it must be removed. Remove whitespaces afterwards\n if (!line.contains(Character.toString(AssemblyConstants.LONG_COMMENT_CLOSE)))\n return removeWhitespace(line.contains(Character.toString(AssemblyConstants.SINGLE_LINE_COMMENT))\n ? line.substring(0, line.indexOf(AssemblyConstants.SINGLE_LINE_COMMENT))\n : line);\n else\n return handleMixedLine(line, bracketsState);\n }\n\n // if a long comment and no long comment close separator found, return null (the whole line is a comment)\n if (isLongComment && !line.contains(Character.toString(AssemblyConstants.LONG_COMMENT_CLOSE)))\n return null;\n\n // handle special mixed lines with multiple comments possible\n return handleMixedLine(line, bracketsState);\n }", "private void delete() {\n\n\t}", "private void updateComments() {\r\n if(data == null || (data != null && data.size() == 0)) {\r\n //No Rows to update Comments.\r\n return ;\r\n }\r\n if(!removing){\r\n if(lastSelectedRow != -1 && lastSelectedRow != deletingRow) {\r\n BudgetSubAwardBean prevBudgetSubAwardBean = (BudgetSubAwardBean)data.get(lastSelectedRow);\r\n if((prevBudgetSubAwardBean.getComments() == null && subAwardBudget.txtArComments.getText().trim().length() > 0)\r\n || (prevBudgetSubAwardBean.getComments() != null && !prevBudgetSubAwardBean.getComments().equals(subAwardBudget.txtArComments.getText().trim()))) {\r\n prevBudgetSubAwardBean.setComments(subAwardBudget.txtArComments.getText().trim());\r\n if(prevBudgetSubAwardBean.getAcType() == null) {\r\n prevBudgetSubAwardBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n }\r\n }//End If comment updated\r\n }//End if Not Deleting Row\r\n }//End if not removing\r\n }", "public DocumentMutation delete(String path);", "@RequestMapping(value = \"/line/{lineId}/delete\", method = RequestMethod.GET)\n public void deleteLine(@PathVariable String lineId) {\n this.datasetService.deleteLine(lineId);\n }", "private String trimLine(String line) {\n int idx = line.indexOf(\"//\");\n if (idx != -1) {\n line = line.substring(0, idx);\n }\n return line.trim();\n }", "private void clearDisableComment() {\n \n disableComment_ = 0;\n }", "int deleteByExample(ComplainNoteDOExample example);", "void deleteEditorData(int id){\n dbConnection();\n try{\n stmt = con.prepareStatement(\"DELETE FROM editorData WHERE id = ?\");\n stmt.setInt(1,id);\n stmt.executeUpdate();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n }", "@Override\r\n public void remove() {\n ArrayList<String>Lines=new ArrayList<>();\r\n String Path = \"/home/yara/Documents/4year/OODP/Task.txt\";\r\n \r\n String RID=id.getText();\r\n String Taskname = name.getText();\r\n String startDate = date_start.getText();\r\n String EndDate = date_finish.getText();\r\n String LocalStatus = status.getText();\r\n String MemberID = MemberId.getText();\r\n \r\n Lines.add(RID);\r\n Lines.add(Taskname);\r\n Lines.add(startDate);\r\n Lines.add(EndDate);\r\n Lines.add(LocalStatus);\r\n Lines.add(MemberID);\r\n \r\n FileFacade facade = new FileFacade();\r\n facade.remove(Path, Lines);\r\n \r\n }", "int updateByPrimaryKey(FeiWenComment record);", "@Override\n public String visit(LineComment n, Object arg) {\n return null;\n }", "@Delete({\n \"delete from cost_accounting_statistic_by_line_detail\",\n \"where code = #{code,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long code);", "@Override\r\n\tpublic String deleteDeal() {\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine headLine = headLineService.load(iId);\r\n\t\t\tString filePath = ServletActionContext.getServletContext().getRealPath(\"/\");\r\n\t\t\tnew File(filePath+headLine.getLineImg()).delete();\r\n\t\t\tLong result=headLineService.delete(iId);\r\n\t\t\tif(result>0) {\r\n\t\t\t\treturn \"go_ok\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"go_ok\";\r\n\t}", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n String string0 = SQLUtil.removeComments(\"!}1w/G=6\");\n assertEquals(\"!}1w/G=6\", string0);\n }", "@DeleteMapping(\"/comments/{id}\")\n ResponseEntity<HttpStatus> deleteComment(@PathVariable String id){\n commentService.deleteComment(Integer.parseInt(id));\n return ResponseEntity.ok(HttpStatus.OK);\n }" ]
[ "0.6906828", "0.6837419", "0.6742783", "0.6660366", "0.64900947", "0.6314927", "0.6286737", "0.6212056", "0.6197046", "0.6195016", "0.61923426", "0.6108258", "0.6107228", "0.60649735", "0.6023304", "0.60164243", "0.59371746", "0.59299743", "0.5919574", "0.5913981", "0.5887297", "0.5885192", "0.586429", "0.5864141", "0.5799609", "0.57882905", "0.5762588", "0.5753065", "0.574202", "0.5735217", "0.57199216", "0.5704467", "0.5692126", "0.5671737", "0.56615865", "0.56486416", "0.5648218", "0.55652887", "0.5552711", "0.55409986", "0.5532975", "0.55173576", "0.5511582", "0.55075663", "0.5503517", "0.55008036", "0.5492298", "0.54780126", "0.5475055", "0.546472", "0.5461025", "0.5456181", "0.54518145", "0.5448708", "0.54423636", "0.54304516", "0.5427087", "0.5426805", "0.54198796", "0.5415327", "0.541224", "0.5410953", "0.5407037", "0.5405695", "0.539997", "0.5397556", "0.5393734", "0.5389883", "0.5388053", "0.5371841", "0.5353565", "0.53465116", "0.53374356", "0.53371966", "0.53364706", "0.5314329", "0.5314135", "0.5310995", "0.5308496", "0.5305968", "0.5300529", "0.52927744", "0.5279882", "0.5279606", "0.52794385", "0.52670234", "0.52596253", "0.52590466", "0.5257219", "0.52565587", "0.52532977", "0.5251076", "0.5243355", "0.5235245", "0.52340424", "0.52326226", "0.5224277", "0.5223228", "0.5206772", "0.52061987", "0.5193008" ]
0.0
-1
delete cell from line and db
@FXML private void bRemCell() throws SQLException { int index = tableView.getSelectionModel().getSelectedIndex(); if(index>=0) { calc calc = data.get(index); Alert alert = new Alert(Alert.AlertType.CONFIRMATION); alert.setTitle("Delete cell"); alert.setHeaderText("Start of Day: " + String.valueOf(calc.getStartDay()) + "\n" + "End of Day: " + String.valueOf(calc.getOverDay()) + "\n" + "Start of Receipt: " + String.valueOf(calc.getStartOfReceipt()) + "\n" + "End of Receipt: " + String.valueOf(calc.getEndOfReceipt()) + "\n" + "Sum of Receipt: " + String.valueOf(calc.getSumReceipt()) + "\n" + "User: " + String.valueOf(calc.getUser()) + "\n" + "Date: " + String.valueOf(calc.getDate()) + "\n" + "Comment: " + String.valueOf(calc.getComment())); alert.setContentText("Are you sure you want to delete cell with data?"); Optional<ButtonType> result = alert.showAndWait(); if(result.get() == ButtonType.OK) { delete(String.valueOf(calc.getDate())); refresh(); } else { refresh(); } }else { Alert alert = new Alert(Alert.AlertType.ERROR); alert.setTitle("ERROR"); alert.setContentText("Nothing Selected!!!"); alert.showAndWait(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eraseCell(CellID cid){\n db.eraseCell(cid);\n }", "public void removeCell(int index) {\r\n cells.remove(index);\r\n if(DEBUG) IJ.log(\"Cell \" + (index+1) + \" is gone. Now record has \" + size() + \" cells.\");\r\n }", "public DResult delete(byte[] row, long startId) throws IOException;", "void clearCell(int x, int y);", "void removeRow(int row_index) throws IOException;", "public boolean delCell(int _id) {\n return db.delete(DATABASE_TABLE_CELL, KEY_CELL_ROWID + \"=\" + _id, null) > 0;\n }", "void rowRemoved(Sheet s, int sheetIndex, int row)\r\n/* 203: */ {\r\n/* 204:375 */ this.parser.rowRemoved(sheetIndex, row, s == getSheet());\r\n/* 205:376 */ this.formulaBytes = this.parser.getBytes();\r\n/* 206: */ }", "private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n WriteContext ctx,\n long nowInSec)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, cell),\n DeletionTime.build(cell.timestamp(), nowInSec),\n ctx);\n }", "@Override\n public void remove() throws IOException {\n int i = listEnterprisePanel.getTableListE().getSelectedRow(); // chọn hàng để xóa\n if (i >= 0) {\n String strID = listEnterprisePanel.getTableListE().getValueAt(i, 1).toString().trim(); // lấy ID\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(strID); // Tìm kiếm Enterprise theo ID\n content.set(Collections.singleton(enterprise), null);\n enterpriseBN.deleteEnterprise(enterprise);\n model.removeRow(i);\n loadData();\n }\n\n }", "@Override\n public void revoke() {\n\t\t\tcore(HexEditorConstants.CELL_STATUS_UNDO);\n\t\t\tif (singleCommand) {\n\t\t\t\ttable.select(row);\n\t\t\t\tcursor.setSelection(row, col + 1);\n\t\t\t}\n\t\t}", "@Override\n public void delete(LineEntity entity) {\n\n }", "public void deleteRow(String row) {\n database.delete(ORDER_MASTER, ORDER_ID + \"=\" + row, null);\n }", "@Override\n public void delete(UltraSearchSessions.Session session, UltraSearchBackendEntry.Row entry) {\n List<Object> idParts = this.idColumnValue(entry.id());\n if (idParts.size() > 1 || entry.columns().size() > 0) {\n super.delete(session, entry);\n return;\n }\n\n // The only element is label\n this.deleteEdgesByLabel(session, entry.id());\n }", "public void deleteCoordinates() {\n this.openWriteableDB();\n db.delete(COORD_TABLE, null, null);\n this.close();\n }", "public void deleteEntry(long row) {\n database.delete(ORDER_MASTER, ROW_ID + \"=\" + row, null);\n }", "void oracle(){\n if (this.neighbors < 1){\n if (!isAlive()){\n observer.deleteCell(id);\n }\n }\n }", "public void delete(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex < currentText.getCharacterEdges().length - 1) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, false);\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex < texts.size() - 1) {\n currentText = codeWindow.getTextLineController().merge(currentText, codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex + 1), codeWindow);\n }\n //The cursors position is unchanged\n }\n }", "public void removeRowAt(int row)\r\n throws IllegalStateException {\r\n if(!(Integer.parseInt(((Vector)data.elementAt(row)).elementAt\r\n (numberOfcolumns).toString()) == IS_INSERTED)){\r\n ( (Vector) data.elementAt(row)).\r\n setElementAt(new Integer(IS_DELETED), numberOfcolumns);\r\n dataDeleted.add((Vector)data.elementAt(row));\r\n }\r\n data.removeElementAt(row);\r\n this.deletedStatus = true;\r\n }", "@Override\n\tpublic void removeCell(Cell arg0) {\n\t\t\n\t}", "public void remove(Record r) \n\t{\n\t\tfilled--; //reduce load factor\n\t\tif (r.placement != -1){ //if r's expected position isnt null\n\t\t\tRecord newRecord = new Record(\"deleted\"); //make a new record with value \"deleted\n\t\t\tnewRecord.placement = -2; //set position to -1 (as is standard for deleted\n\t\t\tTable[r.placement] = newRecord; //puts deleted slot in table\n\t\t}\t\n\t}", "public void delete(int xposition, int yposition) throws IndexOutOfBoundsException {\n try {\n this.entries[yposition - 1][xposition - 1] = EMPTY_SYMBOL;\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new IndexOutOfBoundsException(\"The x or y position provided must be within the the dimensions of the\"\n + \"saver table!\");\n }\n }", "public synchronized void delete(long entry) throws IOException {\n long startOfEntry = IDX_START_OF_CONTENT + (entry * bytesPerSlot);\n \n // Remove the entry by writing a '\\n' to the first byte\n idx.seek(startOfEntry);\n idx.writeChar('\\n');\n idx.write(new byte[bytesPerSlot - 2]);\n \n // Update the file header\n entries--;\n idx.seek(IDX_HEADER_ENTRIES);\n idx.writeLong(entries);\n \n logger.debug(\"Removed uri at address '{}' from index\", entry);\n }", "public abstract void rowsDeleted(int firstRow, int endRow);", "public native void deleteRow(int row) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.deleteRow(row);\n }-*/;", "public void localDeleteCell(long cellId)\n\t{\n\t\tCIntentionCell cell = cells.remove(cellId);\n\t\tcellsByCanvasId.remove(cell.getCanvasId());\n\t\tcell.delete();\n\n\t\tIntentionGraph.getInstance().repaint();\n\t}", "private void deleteRecord(){\n if (mCurrentSymptomUri != null) {\n // pull out the string value we are trying to delete\n mEditSymptomText = findViewById(R.id.edit_symptoms);\n String deleteTry = mEditSymptomText.getText().toString();\n\n // set up the ContentProvider query\n String[] projection = {_IDST, SymTraxContract.SymTraxTableSchema.C_SYMPTOM};\n String selectionClause = SymTraxContract.SymTraxTableSchema.C_SYMPTOM + \" = ? \";\n String[] selectionArgs = {deleteTry};\n\n Cursor c = getContentResolver().query(\n SYM_TRAX_URI,\n projection,\n selectionClause,\n selectionArgs,\n null );\n\n // if there are no instances of the deleteTry string in the Machines DB\n // Go ahead and try to delete. If deleteTry value is in CMachineType column do not delete (no cascade delete)\n if (!c.moveToFirst()){\n int rowsDeleted = getContentResolver().delete(mCurrentSymptomUri, null, null);\n if (rowsDeleted == 0) {\n Toast.makeText(this, getString(R.string.delete_record_failure),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, getString(R.string.delete_record_success),\n Toast.LENGTH_SHORT).show();\n }\n c.close();\n finish(); // after deleting field value\n } else {\n c.close();\n showNoCascadeDeleteDialog();\n }\n }\n }", "public Handle delete(Handle handle) {\n\n int homePos = hash(table, handle.getStringAt());\n int pos;\n\n // QUADRATIC PROBE\n for (int i = 0; i < table.length; i++) {\n pos = (homePos + i * i) % table.length;\n\n if (table[pos] == null) {\n // element not in table\n break;\n }\n else if (table[pos].equals(handle)) {\n // we are currently at the element\n Handle toRet = table[pos];\n table[pos] = GRAVESTONE;\n logicalSize--;\n return toRet;\n }\n } // end for-loop\n\n return null; // could not find element\n }", "public synchronized void freeRow(CharacterEntryRow row) {\n }", "public void removeRow(int row) {\r\n\t\tdata.remove(row);\r\n\t}", "public void actionPerformed(ActionEvent e) {\n model.deleteRow();\n }", "public void deleteCertainRow(String itemname1,String itemname2, String tableName, String columnName1,String columnName2) throws SQLException\n {\n\n String deletetStr = \"DELETE FROM \"+tableName+\" WHERE \"+columnName1+\" = \"+quotate(itemname1)+\"AND \"+columnName2+\" = \"+quotate(itemname2);\n stmt.executeUpdate(deletetStr);\n return;\n\n }", "private void delete() {\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tif (list.get(i).toString().equals(lu.toString())) {\r\n\t\t\t\tlist.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.makeXml(list);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tinitTableView();\r\n\t}", "protected void removeLine(int row) {\n\t\t// clear out the true values from row/filled blocks\n\t\tfor(int j = 0; j < blockMatrix[row].length; j++) { \n\t\t\tblockMatrix[row][j] = false; \n\t\t}\n\t}", "public void deleteRow(MyItem row) {\n\n\t\tif (MyItemAdapter.rows.contains(row)) {\n\t\t\tMyItemAdapter.rows.remove(row);\n\t\t}\n\n\t}", "@Override\n\tpublic void deletRow(HongXunWorkNum hongXunWorkNum) {\n\t\tgetHibernateTemplate().delete(hongXunWorkNum);\n\t}", "void deleteCachedLocation(final byte [] tableName, final byte [] row) {\n synchronized (this.cachedRegionLocations) {\n Map<byte[], HRegionLocation> tableLocations = getTableLocations(tableName);\n if (!tableLocations.isEmpty()) {\n // start to examine the cache. we can only do cache actions\n // if there's something in the cache for this table.\n HRegionLocation rl = getCachedLocation(tableName, row);\n if (rl != null) {\n tableLocations.remove(rl.getRegionInfo().getStartKey());\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Removed \" +\n rl.getRegionInfo().getRegionNameAsString() +\n \" for tableName=\" + Bytes.toString(tableName) +\n \" from cache \" + \"because of \" + Bytes.toStringBinary(row));\n }\n }\n }\n }\n }", "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"How would you like to delete data?\", \"Delete Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n jtModel.removeRow(toCount()-toCount());\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted first row\");\n }\n else if(option==1)\n {\n jtModel.removeRow(toCount()-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted last row\");\n }\n else if(option==2)\n {\n toDeletIndex();\n }\n else\n {\n \n }\n }\n }", "void row_delete(int id){\n\t\t//Delete tuple by executing SQL command\n\t\tStatement stm=null;\n\t\tString sql=\"delete from \"+tableName+\" where id=\"+id;\n\t\ttry{\n\t \t stm=con.createStatement(); \n\t \t System.out.println(\"sql: \"+sql); \n\t \t stm.executeUpdate(sql);\n\t \t \n\t \t //Append SQL command and time stamp on log file\n\t \t outfile.write(\"TIMESTAMP: \"+getTimestamp());\n\t\t\t outfile.newLine();\n\t\t\t outfile.write(sql);\n\t\t\t outfile.newLine();\n\t\t\t outfile.newLine();\n\t\t \n\t\t //Catch SQL exception\t \t \n\t }catch (SQLException e ) {\n\t \t e.printStackTrace();\n\t //Catch I/O exception\n\t } catch(IOException ioe){ \n\t \t ioe.printStackTrace();\n\t }finally {\n\t \t try{\n\t if (stm != null) stm.close(); \n\t }\n\t \t catch (SQLException e ) {\n\t \t\t e.printStackTrace();\n\t\t }\n\t }\t\n\t\t \n\t }", "public void deleteOffice(Office office) {\n this.getSessionFactory().getCurrentSession().delete(office);\n\t\t//getSession().createQuery(\"delete from ProductLine where pid >=8\").executeUpdate();\n\t}", "@Override\n public void delete(){\n Integer Pointer=0;\n FileWriter editDetails = null;\n ArrayList<String> lineKeeper = saveText();\n\n if(lineKeeper.contains(getUsername())){\n Pointer=lineKeeper.indexOf(getUsername());\n Pointer=Pointer-1;\n for(int i=1;i<=8;i++){\n lineKeeper.remove(Pointer+1);\n }//end for\n homeAddress.delete(lineKeeper);\n }\n try{\n editDetails= new FileWriter(\"employees.txt\",false);\n for( int i=0;i<lineKeeper.size();i++){\n editDetails.append(lineKeeper.get(i));\n editDetails.append(System.getProperty(\"line.separator\"));\n }//end for\n editDetails.close();\n editDetails = null;\n }//end try\n catch (IOException ioe) {}//end catch\n }", "@Override\n\t\t\t\tpublic void rowsDeleted(int firstRow, int endRow) {\n\n\t\t\t\t}", "public void removeAtCursor() {\n lines.remove(cursor);\n if(cursor !=0 && cursor==lines.size())\n cursor--;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}", "public void removeRow(String rowName);", "public void deleteRow(Row _deleteThis){\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:deleteRow: table invalid, nothing done\");\r\n return;\r\n }\r\n Set<String> keys = rows.keySet();\r\n //Searches for row to delete and then removes it\r\n for(String k : keys) {\r\n if(_deleteThis.getData() == rows.get(k).getData()){\r\n rows.remove(k);\r\n return;\r\n }\r\n }\r\n System.out.println(\"Error:Table:deleteRow: Unable to find passed row, no row deleted\");\r\n }", "public void deleteSelectedFile(int row) {\n\t\tArrayList<File> files = currConfig.getSelectedFiles();\n\t\tfiles.remove(row);\n\t}", "void remove(int row, int column) {\n SparseArrayCompat<TObj> array = mData.get(row);\n if (array != null) {\n array.remove(column);\n }\n }", "public void deleteRow(int row) throws IndexOutOfBoundsException{\r\n data.remove(row);\r\n fireTableRowsDeleted(row,row);\r\n }", "public static void removeRow(String fileName) {\n tableModel.removeRow(fileName);\n }", "public void deleteEntry(int rowid) {\n\t\t\tourDatabase.delete(DATABASE_TABLE1, KEY_ID + \"=\" + rowid, null);\n\t\t}", "@Override\n public void removeFromDb() {\n }", "private void removeRow() {\n gridHeight--; \n for (EscapeBlock block : grid.get(gridHeight)) { // for each block from the last row\n block.disconnectAll();\n this.remove(block); // remove it from the UI\n }\n\n grid.remove(gridHeight); // remove the row\n }", "void removeRowsLock();", "public void removeCell(int x, int y) {\n\t\tMap<Integer, Cell<C>> xCol = cellLookup.get(x);\n\t\tif (null != xCol) {\n\t\t\tcells.remove(xCol.remove(y));\n\t\t}\n\t}", "public void removetuple(String cid) throws SQLException\n {\n StringBuffer tpremove=new StringBuffer();\n tpremove.append(\" DELETE FROM Credit \");\n tpremove.append(\" WHERE CID = \");\n tpremove.append(cid);\n Statement statement =null;\n System.out.println(\"Removing record....\");\n\n try {\n statement = this.getConnection().createStatement();\n statement.executeUpdate (tpremove.toString());\n }catch (SQLException e){\n throw e;\n }finally{\n statement.close();\n }\n }", "@Override\n\tpublic void delete(CelPhone celphone) {\n\t\t\n\t}", "void delData();", "void delete( String officeCode );", "public static void ClearLine8() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L8.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "@Override\n public int deleteByPrimaryKey(BorrowDO record){\n return borrowExtMapper.deleteByPrimaryKey(record);\n }", "@Override\r\n\tpublic void removeRow(int row) {\r\n\t\tsuper.removeRow(row);\r\n\t\telenco = lista.getElenco();\r\n\t\tPersona removable = new Persona();\r\n\t\tremovable.setNome(elenco.elementAt(row).getNome());\r\n\t\tremovable.setCognome(elenco.elementAt(row).getCognome());\r\n\t\tremovable.setTelefono(elenco.elementAt(row).getTelefono());\r\n\t\tremovable.setIndirizzo(elenco.elementAt(row).getIndirizzo());\r\n\t\tremovable.setEta(elenco.elementAt(row).getEta());\r\n\t\ttry {\r\n\t\t\tlista.delete(removable, row);\r\n\t\t\t}\r\n\t\t\tcatch (ArrayIndexOutOfBoundsException aioe) {\r\n\t\t\t\tString message = AIOE_MESSAGE\r\n\t\t\t\t\t\t+row + \" on table \"\r\n\t\t\t\t\t\t+lista.getElenco().indexOf(removable)\r\n\t\t\t\t\t\t+ \" on Lista \";\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message);\r\n\t\t\t}\r\n\t}", "public void removeFromLinesOfBusiness(entity.AppCritLineOfBusiness element);", "private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n DeletionTime deletion,\n WriteContext ctx)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n null));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, null),\n deletion,\n ctx);\n }", "void deleteEditorData(int id){\n dbConnection();\n try{\n stmt = con.prepareStatement(\"DELETE FROM editorData WHERE id = ?\");\n stmt.setInt(1,id);\n stmt.executeUpdate();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n }", "private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }", "public static void ClearLine7() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L7.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public native void deselectCell(String cell) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectCell(cell);\r\n }-*/;", "private void removeairlinerActionPerformed(java.awt.event.ActionEvent evt) {\n int row = airlinerTable.getSelectedRow();\n\n if(row<0) {\n JOptionPane.showMessageDialog(null, \"Please select a row from the table first\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return;\n }\n Airliner a = (Airliner)airlinerTable.getValueAt(row, 0);\n airlinerDirectory.removeAirliner(a);\n refreshTable();\n }", "@Delete({\n \"delete from cost_accounting_statistic_by_line_detail\",\n \"where code = #{code,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long code);", "public void deleteRow(int row)\n throws JPARSECException {\n \tif (row >= m || row < 0)\n \t\tthrow new JPARSECException(\"invalid row.\");\n double newData[][] = new double[m-1][n];\n\n \tint iindex = -1;\n for (int i=0; i<m; i++)\n {\n \tif (i != row) {\n \t\tiindex ++;\n\t for (int j=0; j<n; j++)\n\t {\n\t \tnewData[iindex][j] = this.data[i][j];\n\t }\n \t}\n }\n Matrix m = new Matrix(newData);\n this.m = m.m;\n this.data = m.data;\n }", "public void removeRow(T obj) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter removeRow - T obj\");\r\n\t\t\r\n\t\tint row = data.indexOf(obj);\r\n\t\tif (row >= 0) {\r\n\t\t\tdata.remove(row);\r\n\t\t\tfireTableRowsDeleted(row, row);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.trace(\"Exit removeRow - T obj\");\r\n\t}", "private void delete_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_delete_btnActionPerformed\n // pull current table model\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n if (remindersTable.getSelectedRow() == -1) {\n if (remindersTable.getRowCount() == 0) {\n dm.messageEmptyTable();\n } else {\n dm.messageSelectLine();\n }\n } else {\n int input = JOptionPane.showConfirmDialog(frame, \"Do you want to Delete!\");\n // 0 = yes, 1 = no, 2 = cancel\n if (input == 0) {\n model.removeRow(remindersTable.getSelectedRow());\n dm.messageReminderDeleted();// user message;\n saveDataToFile();// Save changes to file\n getSum(); // Update projected balance\n } else {\n // delete canceled\n }\n }\n }", "public void delete(Transaction tx,Tuple old) throws RelationException;", "public void unsetSeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SECELL$18, 0);\n }\n }", "public void deleteGeominas(Geominas entity) throws Exception;", "public static void ClearLine9() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L9.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public void deleteRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.delete(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listtel.indexOf(rowb);\n\t\t\t\t\tlisttel.remove(removeIndex);\n\t\t\t\t\tgetView().getTelefono().removeRow(removeIndex + 1);\n\t\t\t\t}", "private void deleteAdjacentLines(int delta) {\n int y = cursor.getY();\n int upToLine = clampY(y + delta);\n startPatch();\n List<String> removedLines = file.removeLineRange(y, upToLine);\n register.setContents(new TextFragment(Visual.Mode.LINE, false, removedLines));\n file.breakPatch();\n // The cursor is placed on the line following the deleted lines, having\n // the effect that deleting up moves the cursor up.\n int moveBackToLine = clampY(Math.min(upToLine, y));\n cursor.moveTo(moveBackToLine, 0);\n }", "public void deleteTuple(TransactionId tid, Tuple t)\n throws DbException, TransactionAbortedException {\n // some code goes here\n // not necessary for lab1\n DbFile dbFile = Database.getCatalog().getDatabaseFile(t.getRecordId().getPageId().getTableId());\n Page affectedPg = dbFile.deleteTuple(tid, t);\n affectedPg.markDirty(true, tid);\n\n // bufferPool.remove(affectedPg.getId());\n bufferPool.put(affectedPg.getId(), affectedPg);\n }", "public static void ClearLine4() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L4.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "void columnRemoved(Sheet s, int sheetIndex, int col)\r\n/* 191: */ {\r\n/* 192:347 */ this.parser.columnRemoved(sheetIndex, col, s == getSheet());\r\n/* 193:348 */ this.formulaBytes = this.parser.getBytes();\r\n/* 194: */ }", "public static void ClearLine2() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L2.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}", "private void deleteRow(int n){\n\t\tint lastCol = grid[0].length - 1;\n\t\tfor(int i = n; i < lastCol; ++i) {\n\t\t\tfor(int j = 0; j < grid.length; ++j){\n\t\t\t\tgrid[j][i] = grid[j][i + 1];\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < grid.length; ++i){\n\t\t\tgrid[i][lastCol] = false;\n\t\t}\n\t}", "public static void ClearLine1() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L1.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "private void delete() {\n\n\t}", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "public void deleteRow(int row) {\n\t\tif (row == -1) return;\n\t\t\n\t\tdata.remove(row);\n\t\tfireTableRowsDeleted(row, row);\n\t}", "public static void ClearLine3() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L3.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "public void deleteNote() {\n if (cursor == 0) {\n JOptionPane.showMessageDialog(null, \"There's no note to delete!\", \"Invalid Delete\", JOptionPane.WARNING_MESSAGE);\n } else {\n if (sequence.getNote(cursor) == REST) {\n cursor--;\n controller.setSelected(cursor);\n\n sequence = sequence.withNote(REST, cursor);\n controller.setMidiSequence(sequence);\n } else {\n sequence = sequence.withNote(REST, cursor);\n controller.setMidiSequence(sequence);\n }\n }\n }", "SpCharInSeq delete(Integer spcharinseqId);", "@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}", "public void removeContact() {\r\n int selection = getContactSelection().getMinSelectionIndex();\r\n Statement stmt = null;\r\n try {\r\n rowSet.absolute(selection+1);\r\n Connection con = rowSet.getConnection();\r\n stmt = con.createStatement();\r\n String sql = \"delete from \" + CONTACTS_TABLE + \" where \" + CONTACTS_KEY + \" = \" + rowSet.getObject(CONTACTS_KEY);\r\n stmt.executeUpdate(sql);\r\n rowSet.execute();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n } finally {\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "public void deleteCertainRow(String itemname, String tableName, String columnName) throws SQLException\n {\n\n String deletetStr=\"DELETE FROM \"+tableName+\" WHERE \"+columnName+\" = \"+quotate(itemname);\n stmt.executeUpdate(deletetStr);\n return;\n\n }", "@Override\n public void delete(Iterable<? extends LineEntity> entities) {\n\n }", "public static void ClearLine6() throws SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String clearLine = \"Update \" +StFrmNm+ \" Set Sku = null, Qty = null, Description1 = null, Orig_Sku = null, \"\r\n + \"Description2 = null, Attribute2 = null, Size2 = null, Orig_Retail = null, Manuf_Inspection = null, \"\r\n + \"New_Used = null, Reason = null, Desc_Damage = null, Cust_Satisf = null, Warranty = null, Second_Cost = null, \"\r\n + \"Form_Name = null, Second_Sku_Vendor = null, Ln_Date = null, Second_Sku_VPNum = null, Ord_C$ = null, First_DCS = null, Second_DCS = null \"\r\n + \"WHERE Line = '\" + EBAS.L6.getText() + \"'\";\r\n s.execute(clearLine);\r\n }\r\n }", "private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {\n String delete = TabelSiswa.getValueAt(baris, 1).toString();\n try{\n Statement stmt = koneksi.createStatement();\n String query = \"DELETE FROM pasien WHERE nis = '\" + delete + \"'\";\n int berhasil = stmt.executeUpdate(query);\n if(berhasil == 1){\n JOptionPane.showMessageDialog(null, \"Data berhasil dihapus\");\n dtm.getDataVector().removeAllElements();\n showData();\n showStok();\n }else{\n JOptionPane.showMessageDialog(null, \"Data gagal dihapus\");\n }\n }catch(SQLException ex){\n ex.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Terjadi kesalahan\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }" ]
[ "0.6640689", "0.64109457", "0.6279506", "0.6267244", "0.62574667", "0.62112087", "0.6210918", "0.6203589", "0.6130822", "0.6125463", "0.61213523", "0.6109539", "0.6080671", "0.60507154", "0.60049504", "0.5995819", "0.5969249", "0.5940733", "0.5917228", "0.5908123", "0.5905632", "0.59044117", "0.589981", "0.58445746", "0.5826153", "0.58214116", "0.5802244", "0.57752556", "0.5775255", "0.5769273", "0.57429403", "0.5733071", "0.5731622", "0.5707774", "0.5706512", "0.5696978", "0.5695773", "0.568596", "0.568578", "0.56816554", "0.5678329", "0.5675602", "0.56679684", "0.5665443", "0.5665443", "0.56639796", "0.56625557", "0.5643674", "0.56345665", "0.5629103", "0.5614864", "0.5594508", "0.5587467", "0.5587108", "0.55784094", "0.5577533", "0.5573097", "0.557034", "0.5569517", "0.5569023", "0.55665195", "0.5564939", "0.5560451", "0.5555819", "0.55531645", "0.5548776", "0.554856", "0.55398214", "0.55382806", "0.55333716", "0.55286306", "0.55245745", "0.55243033", "0.5523624", "0.5523228", "0.5520108", "0.5515011", "0.5513909", "0.5513234", "0.54985666", "0.5496236", "0.54856277", "0.5476283", "0.54739696", "0.54705745", "0.5465524", "0.5464022", "0.5458038", "0.5457966", "0.5446933", "0.5443538", "0.54354787", "0.54308796", "0.54209816", "0.5418781", "0.5418333", "0.54137427", "0.541365", "0.5412595", "0.54072326" ]
0.5882888
23
This static method is only used by DatabaseHelper to create database;
public static Boolean create(SQLiteDatabase db) { db.execSQL(CREATE); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n //\n public void onCreate(SQLiteDatabase db)\n {\n db.execSQL(DATABASE_CREATE);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(DATABASE_CREATE);\n }", "@Override\n public void onCreate(SQLiteDatabase _db) {\n _db.execSQL(DATABASE_CREATE);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(DATABASE_CREATE);\n }", "@Override\r\n public void onCreate(SQLiteDatabase db)\r\n {\n }", "@Override\n public void onCreate(SQLiteDatabase db) throws SQLException {\n db.execSQL(DATABASE_CREATE);\n //Log.d(\"OnCreate\",\"Database on create method\");\n }", "Database createDatabase();", "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\n\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(SQL_CREATE);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n try {\n db.execSQL(BD_CREATE);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "DataBase createDataBase();", "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t}", "@Override\r\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\r\n\t\t}", "@Override\n public void onCreate( SQLiteDatabase db) {\n try {Log.i(\"55555555\",\"ONCreat\");\n db.execSQL(DATABASE_CREATE);\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n }", "@Override\r\n public void onCreate(SQLiteDatabase database) {\n }", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n }", "@Override\r\n public void onCreate(SQLiteDatabase db) {\r\n\r\n }", "@Override\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\ttry {\n\t\t\t\tdb.execSQL(TABLE_CREATE);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\n public void onCreate(SQLiteDatabase database) {\n database.execSQL(DATABASE_CREATE);\n }", "@Override\n public void onCreate(SQLiteDatabase database) {\n database.execSQL(DATABASE_CREATE);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n // Create the table.\n db.execSQL(SQL_CREATE);\n }", "@Override\n public boolean onCreate() {\n Log.e(TAG,\"onCreate\");\n DatabaseHelper.createDatabase(getContext(), new AppDb());\n return true;\n }", "@Override\n\t\tpublic void onCreate(SQLiteDatabase database) {\n\t\t\tcreateTable(database);\n\n\t\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n // String sql = String.format(\n // \"CREATE table $TABLE ( \" +\n // \"$C_ID INTEGER NOT NULL PRIMARY KEY,\" +\n // \"%C_CREATED_AT INTEGER, $C_TEXT TEXT, $C_USER TEXT)\",\n // ,\n // , \n // , , );\n String sql = context.getResources().getString(R.string.sql_create);\n db.execSQL(sql); // execute the sql\n Log.d(TAG, \"onCreate'd sql: \" + sql);\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase arg0) {\n\t\t\n\t}", "public static void SetupDB() {\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS User(email TEXT,name TEXT, displayPic BLOB);\");\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS FriendList(ID INTEGER PRIMARY KEY, email TEXT,name TEXT, displayPic BLOB);\");\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS Category(ID INTEGER PRIMARY KEY,name TEXT);\");\n\t}", "private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}", "@Override\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\tdb.execSQL(DATABASE_CHECKLISTITEM_CREATE);\n\t\t\tdb.execSQL(DATABASE_MEDIAITEM_CREATE);\n\t\t\tdb.execSQL(DATABASE_POLLINGPLACE_CREATE);\n\t\t}", "@Override\r\n\tpublic void onCreate(SQLiteDatabase arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource connectionSource) {\n\t\ttry {\n\t\t\tLog.i(DatabaseHelper.class.getName(), \"onCreate\");\n\t\t\tTableUtils.createTable(connectionSource, Place.class);\n\t\t\tTableUtils.createTable(connectionSource, Lock.class);\n\t\t\tTableUtils.createTable(connectionSource, User.class);\n\t\t\tTableUtils.createTable(connectionSource, Locator.class);\n\t\t} catch (SQLException e) {\n\t\t\tLog.e(DatabaseHelper.class.getName(), \"Can't create database\", e);\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n\n }", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n\n }", "@Override\n public void onCreate(SQLiteDatabase db)\n {\n Log.i(TAG, \"Creating new database\");\n db.execSQL(CREATE_TABLE_PAIRS);\n Log.i(TAG, \"Database created\");\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(CREATE_TABLE);\n }", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n String sql = \"drop table \" + MelodyData.CreateDB._TABLENAME;\n sqLiteDatabase.execSQL(AccompanimentData.CreateDB._CREATE);\n sqLiteDatabase.execSQL(MelodyData.CreateDB._CREATE);\n }", "public void dbCreate() throws IOException\n {\n boolean dbExist = dbCheck();\n\n if(!dbExist)\n {\n //By calling this method an empty database will be created into the default system patt\n //of the application so we can overwrite that db with our db.\n this.getReadableDatabase(); // create a new empty database in the correct path\n try\n {\n //copy the data from the database in the Assets folder to the new empty database\n copyDBFromAssets();\n }\n catch(IOException e)\n {\n throw new Error(\"Error copying database\");\n }\n }\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n Log.d(TAG, \"onCreate: Creating Database\");\n db.execSQL(SQL_CREATE_TABLE); //This statement will execute anything in SQL.\n }", "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n }", "private void createDatabase() {\n String parentPath = mContext.getDatabasePath(DBNAME).getParent();\n String path = mContext.getDatabasePath(DBNAME).getPath();\n\n File file = new File(parentPath);\n if (!file.exists()) {\n if (!file.mkdir()) {\n Log.w(TAG, \"Unable to create database directory\");\n return;\n }\n }\n\n InputStream is = null;\n OutputStream os = null;\n try {\n is = mContext.getAssets().open(DBNAME);\n os = new FileOutputStream(path);\n\n byte[] buffer = new byte[1024];\n int length;\n while ((length = is.read(buffer)) > 0) {\n os.write(buffer, 0, length);\n }\n os.flush();\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(mContext);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(SP_KEY_DB_VER, DATABASE_VERSION);\n editor.commit();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (os != null) {\n try {\n os.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void createDatabase() throws IOException {\n boolean dbExist = checkDataBase();\n// if(dbExist) {\n// Log.d(\"E\", \"Database exists.\");\n// try {\n// copyDataBase();\n// } catch (IOException e) {\n// Log.e(\"Error\", e.getMessage());\n// }\n// } else {\n// try {\n// copyDataBase();\n// } catch (IOException e) {\n// Log.e(\"Error1\", e.getMessage());\n// }\n// }\n\n if (!dbExist) {\n this.getReadableDatabase();\n this.close();\n try {\n //Copy the database from assests\n copyDataBase();\n Log.e(TAG, \"createDatabase database created\");\n } catch (IOException mIOException) {\n throw new Error(\"ErrorCopyingDataBase\");\n }\n }\n\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(SQL_CREATE_ENTRIES);\n\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db)\n\t{\n\t\t // TODO Auto-generated method stub\n String sql = \"CREATE TABLE \" + TABLE_NAME + \"(\"\n + \"uid INTEGER(10),\"\n + \"wifi INTEGER(2),\"\n + \"mobile INTEGER(2)\"\n + \")\";\n db.execSQL(sql);\n Log.e(\"db\",\"数据库创建成功\");\n\t}", "public void createDataBase() throws IOException {\n boolean dbExist = checkDataBase();\n\n if (dbExist) {\n\n } else {\n this.getReadableDatabase();\n try {\n copyDataBase();\n } catch (IOException e) {\n Log.e(\"tle99 - create\", e.getMessage());\n }\n }\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n try {\n db.execSQL(CREATE_TABLE);\n Toast.makeText(context,\"onCreate was called \", Toast.LENGTH_SHORT).show();\n }\n catch (SQLException e){\n\n Toast.makeText(context,\" \"+e, Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource connectionSource) {\n\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\t\tcreateTables(database);\n\t}", "public void createDatabase() throws IOException{\r\n\r\n boolean dbDoesExist = checkDatabase();\r\n if(!dbDoesExist)\r\n {\r\n // Create or open db if db is not connected\r\n this.getReadableDatabase();\r\n try{\r\n createNewDB();\r\n }catch (IOException e){\r\n throw new Error(\"DB Copy Failed\");\r\n }\r\n }\r\n }", "DatabaseTable_DataSource(SQLiteDatabase db) {\n createIfNotExists(db);\n }", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n sqLiteDatabase.execSQL(\"create table \" + TABLE_NAME + \" (\" + COL_NAME + \" varchar(30), \" + COL_MOBILE + \" long(10) , \" + COL_PASSWORD + \" varchar(15), \" + COL_STATE + \" varchar(20),\" + COL_EMAIL + \" varchar(35) primary key);\");\n }", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n new Tables(db).makeContactTable();\n new Tables(db).makeTalkTable();\n new Tables(db).makeConferenceTable();\n new Tables(db).makeNotificationTable();\n }", "@Override\n public void onCreate(SQLiteDatabase arg0) {\n }", "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\r\n\t\tString CREATE_TABLE = \"CREATE TABLE \" + TABLE_NAME + \"(\" + KEY_ID + \" INTEGER PRIMARY KEY, \" + KEY_NAME +\r\n\t\t\t\t\" TEXT,\" + KEY_EMAIL + \" TEXT UNIQUE,\" + KEY_UID + \" TEXT,\"\r\n\t\t\t\t+KEY_CREATED_AT + \" TEXT\" + \")\";\r\n\r\n\t\tdb.execSQL(CREATE_TABLE);\r\n\t\t\r\n\t\tLog.d(TAG, \"Database table created\");\r\n\t}", "private void createDatabase() throws Exception{\n Statement stm = this.con.createStatement();\n stm.execute(\"CREATE DATABASE IF NOT EXISTS \" + database +\n \" DEFAULT CHARACTER SET utf8 COLLATE utf8_persian_ci\");\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\t\tAppDBTableCreation.onCreate(database);\n\t}", "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tcreateDataTable(db);\r\n\t\tcreateTableNote(db);\r\n\t}", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(getActivity());\n }", "@Override\n public void onCreate(SQLiteDatabase database) {\n database.execSQL(DATABASE_CREATE);\n Log.i(TAG, \"onCreate()\");\n }", "public static void onCreate(SQLiteDatabase db) throws Exception {\n //Log(\"afaLog\", \"sql\"+CREATE_STATEMENT);\n if(CREATE_STATEMENT != null){\n db.execSQL(CREATE_STATEMENT.toString());\n }else{\n throw new Exception(\"Table not created, the Create DDL not found\");\n }\n }", "@Override\r\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\tdb.execSQL(\"CREATE TABLE \" + DATABASE_TABLE + \" (\" +\r\n\t\t\tKEY_APP_ID + \" TEXT PRIMARY KEY , \" + \r\n\t\t\tKEY_APP_NAME + \" TEXT NOT NULL , \" +\r\n\t\t\tKEY_STATUS + \" TEXT NOT NULL);\"\r\n\t\t\t);\r\n\t\t\tLog.e(\"table created as\", (\"CREATE TABLE \" + DATABASE_TABLE + \" (\" +\r\n\t\t\tKEY_APP_ID + \" TEXT PRIMARY KEY , \" + \r\n\t\t\tKEY_APP_NAME + \" TEXT NOT NULL , \" +\r\n\t\t\tKEY_STATUS + \" TEXT NOT NULL);\"));\r\n\t\t}", "private static void doCreate(SQLiteDatabase db) {\r\n Logger.info(Logger.Type.GHOST_SMS, \"*** execute doCreate\");\r\n final Version version = new Version(VERSION_1, Names.GHOST_SMS, DateTimeUtils.currentDateWithoutSeconds());\r\n Versions.insert(db, version);\r\n doUpgrade(db, version.version);\r\n }", "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tFormDAO.createTable(db);\r\n//\t\tCreate table ENumber\r\n\t\tENumberDAO.createTable(db);\r\n\t\t\r\n\r\n\t}", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "public void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if(dbExist){\n //do nothing - database already exist\n }else{\n\n //By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n this.getReadableDatabase();\n\n try {\n\n copyDataBase();\n\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n\n }\n }\n\n }", "public void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if(dbExist){\n //do nothing - database already exist\n }else{\n\n //By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n this.getReadableDatabase();\n\n try {\n\n copyDataBase();\n\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n\n }\n }\n\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\ttry {\n\t\t\tString createTable = \"CREATE TABLE \" + TABLE_NAME + \" (_id INTEGER PRIMARY KEY AUTOINCREMENT, content VARCHAR(1000), date DATETIME DEFAULT CURRENT_TIMESTAMP)\";\n\t\t\tdb.execSQL(createTable);\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase _db) {\n\t\t_db.execSQL(DIARIO_CREATE);\n\t}", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\n\t\tString query = \"create table _reminders (_id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT, description TEXT, profile TEXT, latitude TEXT, longitude TEXT,address TEXT,date TEXT)\";\n\t\tdb.execSQL(query);\n\t}", "abstract public void onCreate(SQLiteDatabase db);", "@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\r\n\t\t// Log.i(\"DBHelper:\", \"OnCreate() \");\r\n\t\tdb.beginTransaction();\r\n\t\ttry {\r\n\t\t\tdb.execSQL(QUESTION_CREATE);\r\n\t\t\tdb.execSQL(TOPIC_CREATE);\r\n\t\t\tdb.execSQL(CHOICE_CREATE);\r\n\t\t\tdb.execSQL(EXAM_CREATE);\r\n\t\t\tdb.execSQL(QUESTIONEXAM_CREATE);\r\n\t\t\tdb.setTransactionSuccessful();\r\n\t\t} finally {\r\n\t\t\tdb.endTransaction();\r\n\t\t}\r\n\r\n\t\t// import du lieu cho Questions, Topics & Choices\r\n\t\tCommonDAL common = new CommonDAL(db);\r\n\t\tcommon.importDataFromResource();\r\n\t\t// Main.getCommonDAL().importDataFromResource();\r\n\r\n\t\t// String strURL = context.getString(R.string.url_questions);\r\n\t\t// common.importDataFromURL(context, strURL);\r\n\t}", "void createDatabaseOnDevice() throws IOException {\n boolean databaseExists = checkIfDatabaseOnDevice();\n\n if (!databaseExists) {\n this.getReadableDatabase();\n\n try {\n copyDatabaseToDevice();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n setCreateCourseTable(db);\n setCreateAssignmentTable(db);\n }", "public void createDataBase() throws IOException{\n \n \tboolean dbExist = checkDataBase();\n \t\n \n \tif(dbExist){\n \t\t//do nothing - database already exists\n \t\tLog.d(\"Database Check\", \"Database Exists\");\n\n \t}else{\n \t\tLog.d(\"Database Check\", \"Database Doesn't Exist\");\n \t\tthis.close();\n \t\t//By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n \tthis.getReadableDatabase();\n \tthis.close();\n \ttry {\n \t\t\tcopyDataBase();\n \t\t\tLog.d(\"Database Check\", \"Database Copied\");\n \n \t\t} catch (IOException e) {\n \t\tLog.d(\"I/O Error\", e.toString());\n\n \t\tthrow new Error(\"Error copying database\");\n \t}\n \tcatch (Exception e) { \n \t\tLog.d(\"Exception in createDatabase\", e.toString());\n \t\t\n \t}\n \t}\n \n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n String CREATE_LOCATIONS_Table = \"CREATE TABLE IF NOT EXISTS \" +\n TBL_locations + \"(\"\n + COL_ID + \"INTEGER PRIMARY KEY,\"\n + COL_place + \"TEXT,\"\n + COL_URL + \"TEXT\" + \")\";\n db.execSQL(CREATE_LOCATIONS_Table);\n }", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase)\n {\n sqLiteDatabase.execSQL(CREATE_TABLE_Address);\n sqLiteDatabase.execSQL(CREATE_TABLE_USERS);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n db.execSQL(CategoryTable.getCreateTableSqlString());\n db.execSQL(ReminderTable.getCreateTableSqlString());\n }", "public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}", "@Override\n public boolean onCreate() {\n myOpenHelper = new MySQLiteOpenHelper(getContext(),\n MySQLiteOpenHelper.DATABASE_NAME, null, \n MySQLiteOpenHelper.DATABASE_VERSION);\n \n return true;\n }", "@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n // Patients Table.\n sqLiteDatabase.execSQL(DBContract.createTable(Patients.TABLE_NAME, Patients.CONFIG, \"\"));\n // Diagnosis Table.\n sqLiteDatabase.execSQL(DBContract.createTable(DiagnosisTable.TABLE_NAME, DiagnosisTable.CONFIG, \"\"));\n // Glycemic Data Table.\n sqLiteDatabase.execSQL(DBContract.createTable(GlycemicDataTable.TABLE_NAME, GlycemicDataTable.CONFIG, \"\"));\n // Coronary Risk Factor Table.\n sqLiteDatabase.execSQL(DBContract.createTable(CoronaryRiskFactorTable.TABLE_NAME, CoronaryRiskFactorTable.CONFIG, \"\"));\n\n /*\n Insertion Region.\n */\n ContentValues diagnosis = new ContentValues();\n diagnosis.put(DBContract.getName(DiagnosisTable.NAME), \"Type 1\");\n sqLiteDatabase.insert(DiagnosisTable.TABLE_NAME, \"\", diagnosis);\n diagnosis.put(DBContract.getName(DiagnosisTable.NAME), \"Type 2\");\n sqLiteDatabase.insert(DiagnosisTable.TABLE_NAME, \"\", diagnosis);\n diagnosis.put(DBContract.getName(DiagnosisTable.NAME), \"Gestational Type\");\n sqLiteDatabase.insert(DiagnosisTable.TABLE_NAME, \"\", diagnosis);\n }", "private void initDb() {\n\t\tif (dbHelper == null) {\n\t\t\tdbHelper = new DatabaseOpenHelper(this);\n\t\t}\n\t\tif (dbAccess == null) {\n\t\t\tdbAccess = new DatabaseAccess(dbHelper.getWritableDatabase());\n\t\t}\n\t}", "public void createdb(SQLiteDatabase db) {\n\t\t//\r\n\t\t// String create_table_group = \"CREATE TABLE\" + \" \" + TABLE_GROUP + \"(\"\r\n\t\t// + GROUP_ID + \" \" + TYPE_PRIMARY_KEY + \",\" + GROUP_GID + \" \"\r\n\t\t// + TYPE_TEXT + \",\" + GROUP_NAME + \" \" + TYPE_TEXT + \")\";\r\n\t\t//\r\n\t\t// String create_table_communication = \"CREATE TABLE\" + \" \" + TABLE_MSG\r\n\t\t// + \"(\" + MSG_ID + \" \" + TYPE_PRIMARY_KEY + \",\" + MSG_WEBID + \" \"\r\n\t\t// + TYPE_TEXT + \",\" + MSG_PIC + \" \" + TYPE_TEXT + \",\"\r\n\t\t// + MSG_REMARK + \" \" + TYPE_TEXT + \",\" + MSG_TIME + \" \"\r\n\t\t// + TYPE_TEXT + \")\";\r\n\r\n\t\tString create_table_news = \"CREATE TABLE\" + \" \" + TABLE_NEWS + \"(\"\r\n\t\t\t\t+ NEWS_ID + \" \" + TYPE_PRIMARY_KEY + \",\" + NEWS_TITLE + \" \"\r\n\t\t\t\t+ TYPE_TEXT + \",\" + NEWS_SOURCE + \" \" + TYPE_TEXT + \",\"\r\n\t\t\t\t+ NEWS_AUTHOR + \" \" + TYPE_TEXT + \",\" + NEWS_PICTURE + \" \"\r\n\t\t\t\t+ TYPE_TEXT + \",\" + NEWS_CONTENT + \" \" + TYPE_TEXT + \",\"\r\n\t\t\t\t+ NEWS_CREATETIME + \" \" + TYPE_TEXT + \",\" + NEWS_TYPE + \" \"\r\n\t\t\t\t+ TYPE_TEXT + \",\" + NEWS_WEBID + \" \" + TYPE_TEXT + \",\"\r\n\t\t\t\t+ NEWS_THUMBNAIL + \" \" + TYPE_TEXT + \")\";\r\n\r\n\t\t// db.execSQL(create_table_favor);\r\n\t\t// db.execSQL(create_table_group);\r\n\t\t// db.execSQL(create_table_communication);\r\n\t\tdb.execSQL(create_table_news);\r\n\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(CREATE_PASSWORD);\n db.execSQL(CREATE_BANKS);\n db.execSQL(CREATE_DATE);\n }", "public void initializeDataBase() {\r\n\r\n\r\n\r\n\t\tgetWritableDatabase();\r\n\t\tLog.e(\"DBHelper initializeDataBase \", \"Entered\");\r\n\t\tcreateDatabase = true;\r\n\t\tif (createDatabase) {\r\n\t\t\tLog.e(\"DBHelper createDatabase \", \"true\");\r\n\t\t\t/*\r\n\t\t\t * If the database is created by the copy method, then the creation\r\n\t\t\t * code needs to go here. This method consists of copying the new\r\n\t\t\t * database from assets into internal storage and then caching it.\r\n\t\t\t */\r\n\t\t\ttry {\r\n\t\t\t\t/*\r\n\t\t\t\t * Write over the empty data that was created in internal\r\n\t\t\t\t * storage with the one in assets and then cache it.\r\n\t\t\t\t */\r\n\t\t\t\tcopyStream(DB_PATH_IN, new FileOutputStream(DB_PATH));\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) \r\n\t\t\t{\r\n\t\t\t\tthrow new Error(\"Error copying database\");\r\n\t\t\t}\r\n\t\t} \r\n\t\telse if (upgradeDatabase) \r\n\t\t{\r\n\t\t\tLog.e(\"DBHelper upgradeDatabase \", \"true\");\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t/*\r\n\t\t\t\t * Write over the empty data that was created in internal\r\n\t\t\t\t * storage with the one in assets and then cache it.\r\n\t\t\t\t */\r\n\t\t\t\tcopyStream(DB_PATH_IN, new FileOutputStream(DB_PATH));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tthrow new Error(\"Error copying database\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tLog.e(\"DBHelper clear \", \"true\");\r\n\t}", "private void initDB(){\n gistHelper = new GistSQLiteHelper(mainActivity, \"GistsDB\", null, 1);\n db = gistHelper.getWritableDatabase();\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n String CREATE_BEER_TABLE = \"CREATE TABLE \" + TABLE_BEERS + \"(\" + KEY_ID + \" INTEGER PRIMARY KEY,\" +\n BEER_NAME + \" TEXT,\" + BEER_RATING + \" INTEGER,\" + USER_NAME + \" TEXT,\" + BREWERY + \" TEXT)\";\n\n db.execSQL(CREATE_BEER_TABLE);\n }", "@Override\n public void onCreate(SQLiteDatabase db){\n // define the database structure\n String createTableStatement = \"CREATE TABLE \" + USER_TABLE + \" (\" + COLUMN_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" + COLUMN_USER_NAME + \" TEXT, \" + COLUMN_USER_IMAGE +\" BLOB, \" + COLUMN_USER_MAC_ADDRESS + \" TEXT, \" + COLUMN_USER_BLUETOOTH_ADDRESS + \" TEXT);\";\n // create the database\n db.execSQL(createTableStatement);\n }" ]
[ "0.76751584", "0.75747985", "0.7550815", "0.7509883", "0.7444217", "0.7429938", "0.74149156", "0.738659", "0.7383583", "0.7383583", "0.73730034", "0.73441637", "0.7334073", "0.7323588", "0.7307694", "0.7307694", "0.7307694", "0.7267725", "0.72467947", "0.72282666", "0.7227059", "0.72235674", "0.72235173", "0.7217628", "0.7217628", "0.7215881", "0.7193802", "0.7190675", "0.7177268", "0.7177268", "0.7177268", "0.7177268", "0.7177268", "0.71484655", "0.71401143", "0.71325403", "0.7127217", "0.71148086", "0.71056575", "0.7100345", "0.7095571", "0.7095571", "0.7091611", "0.70681417", "0.7064484", "0.70410323", "0.7038603", "0.70215976", "0.70191514", "0.70191514", "0.70191514", "0.7016713", "0.7002339", "0.69955844", "0.6992516", "0.6991081", "0.69894975", "0.6987729", "0.6986152", "0.6983468", "0.6972889", "0.6959759", "0.6958755", "0.69522166", "0.6944761", "0.6941134", "0.6936114", "0.69300485", "0.6919393", "0.69138545", "0.6913291", "0.69074434", "0.6906613", "0.6899811", "0.68993294", "0.68955916", "0.6882139", "0.687682", "0.687682", "0.6874903", "0.68721104", "0.68655396", "0.68556255", "0.6846359", "0.6841701", "0.6835487", "0.6832695", "0.68321145", "0.68298006", "0.68103504", "0.6805638", "0.6804856", "0.68020386", "0.67966145", "0.67818344", "0.6779931", "0.6777169", "0.67725164", "0.6771023", "0.6768204", "0.6759654" ]
0.0
-1
This static method is only used by DatabaseHelper to drop table when Upgrade database;
public static Boolean drop(SQLiteDatabase db) { db.execSQL(DROP); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDowngrade(SQLiteDatabase db, int oldV, int newV ){\n db.execSQL(\"DROP TABLE IF EXISTS \" + DAILY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_TABLE);\n // Drop older table if existed\n db.execSQL(\"DROP TABLE IF EXISTS data\");\n // Create tables again\n onCreate(db);\n }", "@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\r\n db.execSQL(\"drop table if exists \" + COUNTRY_TABLE);\r\n db.execSQL(\"drop table if exists \" + CURRENT_POLL_TABLE);\r\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_USER_TABLE);\n db.execSQL(DROP_MONTH_TABLE);\n db.execSQL(DROP_EXPECTED_TABLE);\n db.execSQL(DROP_PERIOD_TABLE);\n db.execSQL(DROP_TRANSACT_TABLE);\n db.execSQL(DROP_TYPE_TABLE);\n db.execSQL(DROP_CATEGORY_TABLE);\n // Create tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"drop table if exists \" + TABLE_NAME + \";\") ;\n onCreate(db);\n }", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\ttry {\n\t\t\t\tdb.execSQL(TABLE_DROP);\n\t\t\t\tonCreate(db);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}", "public void drop() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME1);\n onCreate(db);\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TB_NAME);\r\n\t\tonCreate(db);\r\n\t\r\n\t\tLog.e(\"Database\", \"onUpgrade\");\r\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {\n sqLiteDatabase.execSQL(\"drop table if exists \" + TABLE_NAME + \"\");\n onCreate(sqLiteDatabase);\n }", "@Override\r\n public void dropTable() {\n if(tableIsExist(TABLE_NAME)){\r\n String sql = \"drop table \" + TABLE_NAME;\r\n database.execSQL(sql);\r\n }\r\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLENAME);\n onCreate(db);\n }", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+DATABASE_TABLE);\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+DATABASE_TABLE1);\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+DATABASE_TABLE2);\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+DATABASE_TABLE4);\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+DATABASE_TABLE5);\n\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+DATABASE_TABLE3);\n\t\t\tonCreate(db);\n\t\t}", "@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_MACHINE);\r\n\r\n // Create tables again\r\n onCreate(db);\r\n }", "@Override\r\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\tdb.execSQL(\"DROP TABLE IF EXITS \" + TABLE_NAME);\r\n\t\t\tonCreate(db);\r\n\t\t}", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {\n String sql = \"DROP TABLE IF EXISTS \" + TABLE_NAME + \";\";\n sqLiteDatabase.execSQL(sql);\n onCreate(sqLiteDatabase);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldV, int newV ){\n db.execSQL(\"DROP TABLE IF EXISTS \" + DAILY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_TABLE);\n // Drop older table if existed\n db.execSQL(\"DROP TABLE IF EXISTS data\");\n // Create tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME1);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_HISTORY);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME3);\n this.onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\n {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + CONTACT_TABLE_NAME);\r\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + GROUP_TABLE_NAME);\r\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + MYSELF_TABLE_NAME);\r\n\t\tonCreate(db);\r\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE);\n // Creating tables again\n onCreate(db);\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tString s3 = \"DROP TABLE IF EXISTS \" + TABLE_NAME_1;\r\n\t\tdb.execSQL(s3);\r\n\r\n\t\tString s4 = \"DROP TABLE IF EXISTS \" + TABLE_NAME_2;\r\n\t\tdb.execSQL(s4);\r\n\r\n\t\tString s5 = \"DROP TABLE IF EXISTS \" + TABLE_NAME_3;\r\n\t\tdb.execSQL(s5);\r\n\r\n\t\tString s6 = \"DROP TABLE IF EXISTS \" + TABLE_NAME_4;\r\n\t\tdb.execSQL(s6);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tonCreate(db);\r\n\r\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + Table_name);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n final String DROP_TABLE_COMMAND = \"DROP TABLE IF EXISTS \" + ShopsContract.ShopsEntry.TABLE_NAME;\n db.execSQL(DROP_TABLE_COMMAND);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_PROFILE_TABLE);\n //db.execSQL(DROP_CUSTOMER_TABLE);\n db.execSQL(DROP_REQUEST_TABLE);\n db.execSQL(DROP_SOUVENIR_TABLE);\n\n // Create tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i2) {\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \"+ AccompanimentData.CreateDB._TABLENAME);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \"+ MelodyData.CreateDB._TABLENAME);\n onCreate(sqLiteDatabase);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + BusinessContract.CategoryEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + BusinessContract.SubCategoryEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + BusinessContract.BusinessEntry.TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + ScheduleContract.ScheduleEntry.TABLE_NAME);\n onCreate(sqLiteDatabase);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\n {\n\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\n\t// Create tables again\n\tonCreate(db);\n\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\r\n\t\t\r\n\t\tonCreate(db);\r\n\t\t\r\n\r\n\t}", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t db.execSQL(\"DROP TABLE IF EXISTS \" + DATABASE_TABLE1);\n\t\t onCreate(db);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n try {\n\n TableUtils.dropTable(connectionSource, Comanda_Item.class, true);\n TableUtils.dropTable(connectionSource, Comanda.class, true);\n\n TableUtils.dropTable(connectionSource, Produto.class, true);\n TableUtils.dropTable(connectionSource, Mesa.class, true);\n\n\n onCreate(database, connectionSource);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n // Create tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \"+TABLE_NAME);\n\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase sdb, int arg1, int arg2) {\n sdb.execSQL(\"DROP TABLE IF EXISTS \" + CodFiveToFifteenDB.TableInfo.TABLE_NAME);\n onCreate(sdb);\n\n\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLENAME);\n\t\tonCreate(db);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS '\" + TABLE_NAME + \"'\");\n onCreate(db);\n }", "@Override\n\t\t\tpublic void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {\n\t\t\t\targ0.execSQL(\"drop table if exists \"+TB_NAME);\n\t\t\t\tonCreate(arg0);\n\t\t\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n String sql = \"DROP TABLE IF EXISTS products\";\n db.execSQL(sql);\n onCreate(db);\n\n String sql_2 = \"DROP TABLE IF EXISTS orders\";\n db.execSQL(sql_2);\n // Buat kembali table setelah di drop\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + AppointmentEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + StaffEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + VisitorEntry.TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) {\n db.execSQL(\"DROP TABLE IF EXIST\" + TABLE_NAME);\n onCreate(db);\n\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_VISITORS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_USERS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_LINKS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_EVENTS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_TAGS);\n onCreate(db);\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(DROP_SCHEDULE_TABLE);\r\n\t\tonCreate(db);\r\n\t}", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + DATABASE_TABLE + \";\");\n\t\t\tonCreate(db);\n\t\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_KAFSH_TABLE);\n db.execSQL(DROP_DARMANI1_TABLE);\n db.execSQL(DROP_DARMANI2_TABLE);\n // Create tables again\n onCreate(db);\n\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\r\n\t\tonCreate(db);\r\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\n // Create tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_DEBITOS);\n\n // create new tables\n onCreate(db);\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\t\tonCreate(db);\n\t}", "@Override\n public void onUpgrade (SQLiteDatabase db, int i, int i1){\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }", "@Override\n \tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FEED);\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FEEDUSER);\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_USER);\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ITEM);\n \t\tonCreate(db);\n \t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \"+TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \"+CART_TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \"+WISHLIST_TABLE_NAME);\n\n onCreate(db);\n\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_BEERS);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\n //create new table\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n // db.execSQL(\"DROP TABLE IF EXISTS \" + CREATE_TABLE_STUDENTS); // drop table if exists\n db.execSQL(\"DROP TABLE IF EXISTS \" + CREATE_TABLE_CHARACTER_CLASSES); // drop table if exists\n db.execSQL(\"DROP TABLE IF EXISTS \" + CREATE_TABLE_CHARACTERS); // drop table if exists\n\n onCreate(db);\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"drop table if exist \" + mDbTableName);\n\t\tonCreate(db);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NODE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_SECTION);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_GPS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_MARKER);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_STATS);\n // create new tables\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n String sql = \"DROP TABLE IF EXISTS \" + TABELA;\n db.execSQL(sql);\n //Chama o metodo onCreate novamente\n onCreate(db);\n }", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n\t\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + DATABASE_TABLE);\n\t\t\tonCreate(db);\n\t\t}", "@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\tString modPersonaQuery = \"DROP TABLE \" + TBL_PERSONA;\n\t\t\tdb.execSQL(modPersonaQuery);\n\t\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n String SQL_DELETE_ENTRIES = \"DROP TABLE IF EXISTS \" + SummaryContract.SummaryEntry.TABLE_NAME ;\n db.execSQL(SQL_DELETE_ENTRIES);\n onCreate(db);\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\t\tonCreate(db);\n\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n try{\n db.execSQL(\"DROP TABLE IF EXISTS \" + CARDS_TABLE_NAME);\n onCreate(db);\n }catch(SQLException e){\n e.printStackTrace();\n }\n\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_VEHICLE_TABLE);\n\n // Create tables again\n onCreate(db);\n\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_USER_TABLE);\n // db.execSQL(DR);\n\n // Create tables again\n onCreate(db);\n\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n Log.w(TAG, \"Ažuriranje verzije baze podataka sa \" + oldVersion + \" na verziju \"\n + newVersion + \", a to će uništiti postojeće podatke\");\n db.execSQL(\"DROP TABLE IF EXISTS single_page_table\");\n db.execSQL(\"DROP TABLE IF EXISTS top_apps_table \");\n db.execSQL(\"DROP TABLE IF EXISTS virtual_games_table \");\n db.execSQL(\"DROP TABLE IF EXISTS quiz_games_table \");\n db.execSQL(\"DROP TABLE IF EXISTS math_games_table \");\n db.execSQL(\"DROP TABLE IF EXISTS casual_games_table \");\n db.execSQL(\"DROP TABLE IF EXISTS coloring_pages_table \");\n db.execSQL(\"DROP TABLE IF EXISTS do_not_miss_table \");\n\n ///SINGLE\n db.execSQL(\"DROP TABLE IF EXISTS single_page_table \");\n\n //TESTIMONIALS\n db.execSQL(\"DROP TABLE IF EXISTS testimonials \");\n\n\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n String SQL_DELETE_ENTRIES =\n \"DROP TABLE IF EXISTS \" + HabitTrackerContract.HabitTrackerEntry.TABLE_NAME;\n db.execSQL(SQL_DELETE_ENTRIES);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n //Drop the old table if exists\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n // Create tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_USER);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CLIENT);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_JOB);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_PHONE);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_PHONE_TYPE);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_JOB_CATEGORY);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_JOB_HAS_JOB_CATEGORY);\n\n // Create new tables\n onCreate(sqLiteDatabase);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE1 );\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE2 );\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE3 );\n\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion) {\n try {\n Message.logMessages(\"onUpgrade :\",\"onUpgrade() called\");\n sqLiteDatabase.execSQL(DROP_TABLE);\n onCreate(sqLiteDatabase);\n } catch (SQLException e) {\n Message.logMessages(\"Error in onUpgrade :\",\"\"+e);\n }\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + ORDER_INFO);\r\n \r\n // Create tables again\r\n onCreate(db);\r\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_Activitys);\n // Create tables again\n onCreate(db);\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+familyTable);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+userTable);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+PostTable);\n\n\t onCreate(db);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int i, int i1) {\n db.execSQL(\"DROP TABLE IF EXISTS \" +Table_Name);\n onCreate(db);\n\n }", "@Override\n public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n try {\n TableUtils.dropTable(connectionSource, PlaceType.class, true);\n TableUtils.dropTable(connectionSource, Place.class, true);\n TableUtils.dropTable(connectionSource, Routine.class, true);\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n Log.e(DatabaseHelper.class.getName(), \"onUpgrade\", e);\n throw new RuntimeException(e); // Force exception to quit and stop application\n }\n onCreate(database, connectionSource);\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int arg1, int arg2) {\n\t\tString sql1= \"DROP TABLE IF EXISTS tips\";\r\n\t\tdb.execSQL(sql1);\r\n\t\tthis.onCreate(db);\r\n\t\t\r\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (oldVersion > 3) {\n switch (oldVersion) {\n case 4:\n new Tables(db).makeConferenceTable();\n case 5:\n new Tables(db).makeTalkTable();\n new Tables(db).makeNotificationTable();\n db.execSQL(\"DROP TABLE IF EXISTS 'table_log'\"); //Removing log table from this version\n db.execSQL(\"DROP TABLE IF EXISTS 'table_database'\"); //Removing JC database table from this version\n db.execSQL(\"DROP TABLE IF EXISTS 'table_external'\"); //Removing External database table from this version\n }\n }\n //Remove support from previous databases\n else {\n new Tables(db).dropAllTables();\n onCreate(db);\n }\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_JOURNAL);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_TASKS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_LIST);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_WISH);\n\n // create new tables\n onCreate(db);\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int old_version, int new_vesion) \n\t{\n\t\tdb.execSQL(\"DROP TABLE IF EXIST \" + this.TBL_INSTITUCIONES);\t\t \n\t\tonCreate(db);\n\t}", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FILE);\n\t\t// Create tables again\n\t\tonCreate(db);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ACCELEROMETER);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_GYROSCOPE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_MAGNETIC);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ORIENTATION);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_GPS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_EVENT);\n // create new tables\n onCreate(db);\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"+TABLE);\n\t\tonCreate(db);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n String sqlQuery = \"drop table if exists \" + TABLE_FRIENDS;\n db.execSQL(sqlQuery);\n\n // re-create the table\n onCreate(db);\n }", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tString dropquery;\r\n\t\tdropquery = \"DROP TABLE IF EXISTS EMPLOYEE\";\r\n db.execSQL(dropquery);\r\n onCreate(db);\r\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + SubRedditEntry.TABLE_NAME);\n onCreate(sqLiteDatabase);\n }", "@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion) {\n\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + \"LATLNG_DETAILS\");\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + \"JOURNEY_DETAILS\");\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + \"DUTY_UPDATES\");\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + \"STATUS\");\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + \"TIMES\");\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + \"LATLNG\");\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + \"LOC_URL\");\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + \"DISTCE\");\n // Create a new one.\n onCreate(sqLiteDatabase);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (oldVersion != newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_BANKS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_INSURANCE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_MICRO_FINANCE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FOREX_BUREAUS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_INVESTMENT_BANKS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_INTERNATIONAL_BANKS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CAPITAL_MARKETS);\n onCreate(db);\n\n }\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + ORDER_RECORDS_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + XREF_TABLE);\n \n // Create tables again\n onCreate(db);\n\t}", "@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_TOPICS);\r\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_WORDS);\r\n\t\t// Recreate the table\r\n\t\tonCreate(db);\r\n\r\n\t}", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS WLAN_TRACK\");\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS BT_TRACK\");\n\t\tthis.onCreate(db);\n\t}", "@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\r\n Log.w(TAG, \"Upgrading database from version \" + oldVersion + \" to \"\r\n + newVersion + \", which will destroy all old data\");\r\n db.execSQL(\"DROP TABLE IF EXISTS \"+DATABASE_TABLE);\r\n onCreate(db);\r\n }", "public void wipeDatabaseData() {\n\t\tdbHelper.onUpgrade(database, 0, 1);\n\t}", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ACTIVITY);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_VITAL);\n // create new tables\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + EventEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + EntrantEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + UserEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + EventUserEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + EventEntrantScorecardEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + ScorecardEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TallyEntry.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + EventEntrantTallyEntry.TABLE_NAME);\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_USERS_TABLE_QUERY);\n db.execSQL(DROP_ACCOUNTS_TABLE_QUERY);\n // Create tables again\n onCreate(db);\n }", "@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"drop table if exists \" + TABLE_USERS);\n\n onCreate(db);\n }", "@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + BOOK_LIST_TABLE_NAME);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + BOOK_TABLE_NAME);\n\t\t\n\t\tonCreate(db);\n\t}" ]
[ "0.76792145", "0.751198", "0.7496128", "0.7475934", "0.7467342", "0.7457051", "0.7423681", "0.7417777", "0.73880726", "0.7366078", "0.73567456", "0.7353656", "0.7341667", "0.7340798", "0.73382175", "0.73320234", "0.73290795", "0.73290795", "0.73290795", "0.73290795", "0.73290795", "0.7321586", "0.7314957", "0.73141927", "0.7313962", "0.7312863", "0.73123235", "0.7309979", "0.729852", "0.72918284", "0.7288055", "0.7286391", "0.7283861", "0.7282013", "0.72807693", "0.72789717", "0.72777", "0.72585374", "0.72575384", "0.7256039", "0.7253478", "0.7252817", "0.7251507", "0.7250214", "0.723964", "0.7235598", "0.72295535", "0.7225556", "0.7218191", "0.7211744", "0.7204745", "0.7202588", "0.720004", "0.719406", "0.7194051", "0.71855974", "0.7184638", "0.71815604", "0.7179469", "0.717175", "0.71665907", "0.71603835", "0.7158758", "0.7151631", "0.7148721", "0.714809", "0.7147525", "0.71395206", "0.7138074", "0.7130152", "0.7125367", "0.71230435", "0.710845", "0.7106911", "0.7099805", "0.7093466", "0.7093259", "0.70851547", "0.70829785", "0.7075583", "0.7067849", "0.7065561", "0.7062798", "0.70607996", "0.7056552", "0.70548886", "0.7051869", "0.7041865", "0.7038409", "0.7037128", "0.7029793", "0.7027249", "0.7020534", "0.70154047", "0.7014675", "0.7014462", "0.7009957", "0.7002012", "0.69989944", "0.6996485", "0.6978515" ]
0.0
-1
getting the value of attribute in xpath
public String getAttributeValue(WebDriver screenName, String ObjectxPath, String attributeName, String Element_Name) throws Exception { try { WebElement inputText = screenName.findElement(By.xpath(ObjectxPath)); Extent_Reporting.Log_Pass(Element_Name + " exist", Element_Name + " has " + inputText.getText()); return inputText.getAttribute(attributeName); } catch (Throwable t) { Extent_Reporting.Log_Fail(Element_Name + " does not Exist", Element_Name + " does not Exist", screenName); t.printStackTrace(); throw new Exception("Element Not Present"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAttribute();", "java.lang.String getAttribute();", "Attribute getAttribute();", "public String getXpath() { \n\t\treturn getXpathElement().getValue();\n\t}", "public String getAttribute(final String attributeLocator);", "public String getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "private static String getValuesFromDom(Document doc, XPath xpath, String typeAttr) {\t\t\t\t// Function definition to get the value of POP12\n \n\t\tString attrValue = null;\n try {\n XPathExpression xpathExpression = xpath.compile(\"/dwml/data/parameters/\"+typeAttr+\"/value/text()\");\n attrValue = (String) xpathExpression.evaluate(doc, XPathConstants.STRING);\n \n } catch (XPathExpressionException e) {\n e.printStackTrace();\n }\n if(attrValue.equals(null)||attrValue.equals(\"\")){\n \treturn \"NA\";\n }\n return attrValue;\n }", "String getXPath();", "String getAttributeStringValue(Object attr);", "private String getValueFromXPathAndDescendants(HtmlPage appPage, String xPath) throws Exception {\n\t\treturn ((HtmlElement) appPage.getByXPath(xPath).get(0)).getTextContent();\n\t}", "private String getValueFromXPath(HtmlPage appPage, String xPath) throws Exception {\n\t\treturn ((HtmlElement) appPage.getByXPath(xPath).get(0)).asText();\n\t}", "Object getAttribute(int attribute);", "public String getXPath();", "public XPath getValue()\n {\n return m_valueExpr;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getElementAttribute(int row, int attr);", "public static String getXPathValue(FuzzyXMLElement element,String xpath){\r\n\t\ttry {\r\n\t\t\tString value = (String)XPath.getValue(element,xpath);\r\n\t\t\treturn value.trim();\r\n\t\t} catch(Exception ex){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String getNodeValue ();", "Object getAttribute(String key);", "Object getAttribute(String key);", "java.lang.String getXpath();", "public String getAttribute(final String elementLocator, final String attributeName);", "public Object getAttribute(String name);", "public String getValue(final String elementLocator);", "public String getProductURLXPath();", "private String getAttribute(Element element, String attributeName)\n {\n String value = \"\";\n\n Attr attribute = element.getAttributeNode(attributeName);\n if (attribute != null)\n {\n value = attribute.getValue();\n }\n\n return value;\n }", "private static String getNodeValue(String property,Element e) {\n try {\n NodeList nodes;\n nodes = e.getElementsByTagName(property).item(0).getChildNodes();\n Node node = (Node)nodes.item(0);\n return node.getNodeValue();\n }\n catch (NullPointerException err) {\n JOptionPane.showMessageDialog(gameboard, \"Error reading XML node: \"+property+\" of \"+e.getNodeName()+\"\\n\"+err.getMessage());\n }\n return null;\n }", "public String getElementAttribute(int row, int attr, int chromosome);", "public String getTextValue (Node node);", "public String getXPath() {\n/* 114 */ return this.xPath;\n/* */ }", "org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector.Xpath xgetXpath();", "public String getValue2(Element elem, String str) {\n if (elem != null) {\n Node child;\n if (elem.hasChildNodes()) {\n StringBuilder sb = new StringBuilder();\n\n for (child = elem.getFirstChild(); child != null; child = child\n .getNextSibling()) {\n// DOMImplementationLS lsImpl = (DOMImplementationLS)elem.getOwnerDocument().getImplementation().getFeature(\"LS\", \"3.0\");\n//\n// LSSerializer lsSerializer = lsImpl.createLSSerializer();\n// sb.append(lsSerializer.writeToString(child));\n// Log.e(TAG, \"getElementValue2: node item\"+child.getPrefix());\n// Element e= (Element) elem;\n//\n// Log.e(TAG, \"getElementValue2: node item\"+e.getAttributeNS(null,\"url\") );\n//\n// if (e.hasAttribute(\"url\")) {\n// String a=e.getAttribute(\"url\");\n// Log.e(TAG, \"getElementValue3: data:: \" + a);\n// return a;\n// }\n if (child.getNodeType() == Node.TEXT_NODE || (child.getNodeType() == Node.CDATA_SECTION_NODE)) {\n return child.getNodeValue();\n }\n if (child.getNodeType() == Node.ATTRIBUTE_NODE) {\n String key = child.getAttributes().getNamedItem(\"url\").getNodeValue();\n Log.e(TAG, \"getElementValuex: \"+key );\n return child.getNodeValue();\n }\n }\n }\n }\n return \"\";\n }", "public abstract XPathExpression getExpression();", "private static String getAttribute(Node node, String attr) {\r\n if( node != null )\r\n if( node.getAttributes() != null )\r\n if( node.getAttributes().getNamedItem(attr) != null )\r\n return node.getAttributes().getNamedItem(attr).getNodeValue();\r\n \r\n return null;\r\n }", "public String getAttributeInCurrentElement(String attribute) throws ParseException {\n int lessThan = html.lastIndexOf(\"<\", position);\n if (lessThan == -1) {\n throw new ParseException(\"Cannot find attribute in current element\", position);\n }\n position = lessThan;\n\n // See if we are in the closing tag, go to the last opening tag of the same tag\n if (html.charAt(position + 1) == '/') {\n String tag = findCurrentTag(html, position);\n position = lastIndexOfLowUpper(html, \"<\" + tag, position);\n if (position == -1) {\n throw new ParseException(\"Cannot find attribute in current element\", position);\n }\n }\n\n // Find either the end of the tag or the attribute\n Pair<Integer, String> result = indexOfFirstOccurance(html, position, attribute + \"=\", \">\");\n if (result == null) {\n return null;\n }\n if (result.second.equals(\">\")) {\n return null;\n }\n int attrStart = result.first + result.second.length();\n\n // See what type of quotes it is using and find the other quote that surrounds the value\n Character quoteChar = html.charAt(attrStart);\n if (quoteChar != '\"' && quoteChar != '\\'') {\n throw new ParseException(\"Cannot find attribute in current element. (Cannot parse attribute)\", position);\n }\n attrStart++;\n int attrEnd = html.indexOf(quoteChar, attrStart);\n if (attrEnd == -1) {\n throw new ParseException(\"Cannot find attribute in current element. (Cannot parse attribute)\", position);\n }\n return html.substring(attrStart, attrEnd);\n }", "@Override\n\t\tprotected String getValueAsString() {\n\t\t\tAttr attr = element.getAttributeNodeNS(namespaceURI, localName);\n\t\t\tif (attr == null) {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\treturn attr.getValue();\n\t\t}", "public String getAttribute(String attribute){\n return getWebElement().getAttribute(attribute);\n }", "public String getMatchingElementXPath()\n\t{\n\t\treturn this.matchingElementXPath;\n\t}", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute(By locator, String attribute){\n\t\tString reqAttribute = null;\n\n\t\tWebElement element = findElement(locator);\n\t\ttry {\n\n\t\t\treqAttribute = element.getAttribute(attribute);\n\t\t\tLOGGER.info(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Pass and value = \"+reqAttribute);\n\t\t\treturn reqAttribute;\n\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail \");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Element is not present with locator: \"+locator);\n\t\n\t\t}\n\n\t}", "protected void deriveMatchingElementXPath()\n\t{\n\t\tString pcXPath = getParentContainerXPath();\n\t\tString base = pcXPath.substring(0, pcXPath.indexOf(\"[\"));\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(base);\n\t\tsb.append(\"[\");\n\t\t\n\t\tif (getAttributeMatchExpression().equals(TaskExprType.STARTS_WITH))\n\t\t{\n\t\t\tsb.append(\"starts-with(\");\n\t\t}\n\t\telse if (getAttributeMatchExpression().equals(TaskExprType.CONTAINS))\n\t\t{\n\t\t\tsb.append(\"contains(\");\n\t\t}\n\n\t\tsb.append(getMatchingAttributeName());\n\t\tsb.append(\",'\");\n\t\tsb.append(getMatchingAttributeValue());\n\t\tsb.append(\"')]\");\n\t\t\n\t\t/*\n\t\t * Should look like this:\n\t\t * setMatchingElementXPath(\"//body/div/div[starts-with(@class,'Heading1')]\");\n\t\t */\n\t\tsetMatchingElementXPath(sb.toString());\n\t}", "@Override\n public Object xpathGet(String xpath, Object alternative) {\n if (xpath==null) {\n return alternative;\n }\n\n try {\n return fetchJXPathContext().getValue(XPath.xpath(xpath));\n } catch (Throwable e) {\n return alternative;\n }\n }", "String getElement();", "public static String getAttributeValue(final Node node, final String xPath, final String attributeName)\r\n throws Exception {\r\n String result = null;\r\n Node element = selectSingleNode(node, xPath);\r\n if (element != null && element.hasAttributes()) {\r\n for (int i = 0; i < element.getAttributes().getLength(); ++i) {\r\n String nodeName = element.getAttributes().item(i).getNodeName();\r\n if (nodeName.endsWith(\":\" + attributeName) || nodeName.equals(attributeName)) {\r\n result = element.getAttributes().getNamedItem(nodeName).getTextContent();\r\n break;\r\n }\r\n }\r\n }\r\n return result;\r\n }", "public String getNodeValue(Node node) throws Exception;", "protected String getAttribute(String chave) throws AtributosException {\r\n\t\tif (tag == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tString attributeValue = tag.getAttributeValue(chave);\r\n\r\n\t\tif (attributeValue == null || attributeValue.trim().equals(\"\")) {\r\n\t\t\tattributeValue = getDefaultValue(chave);\r\n\t\t}\r\n\r\n\t\treturn attributeValue;\r\n\t}", "public String getXPath(String xpath, String value) {\n\t\treturn String.format(xpath, value);\n\t}", "@Override\n public Object xpathGet(String xpath) {\n if (xpath==null) {\n return null;\n }\n\n try {\n return fetchJXPathContext().getValue(XPath.xpath(xpath));\n } catch (JXPathException e) {\n throw new TypeXPathException(e);\n }\n }", "public String getXPath() {\n return xPathStr;\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "public Object getAttribute(Object key);", "Attr getURIAsAttr();", "public TLAttribute getAttribute(String attributeName);", "public Object getProperty(String attName);", "public static void main(String[] args) {\n\n System.out.println(\"/\\\"Hello\\\"/\");\n System.out.println(\"/'Hello'/\");\n System.out.println(\"\\\"Hello\\\"\");\n System.out.println(\"'I love \\\"Java\\\" and \\\"Programming\\\"'\");\n\n\n System.out.println(getXpath(\"Sandeep\")); ////input[@id='Sandeep']\n\n }", "public String getValue(String uri, String localName) {\n/* 208 */ Node a = this.m_attrs.getNamedItemNS(uri, localName);\n/* 209 */ return (a == null) ? null : a.getNodeValue();\n/* */ }", "String getAttributeQName(Object attr);", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "Object getAttribute( String attrName ) throws FileSystemException;", "public String getAttributeValue(By locator, String attributeName) {\n \t\t\t\n \t\t\tWebElement element = driver.findElement(locator);\n \t\t\tString attributeValue = element.getAttribute(attributeName);\n \t\t\treturn attributeValue;\n \t\t}", "public String getXPath() {\n\t\treturn this.builder.toString();\n\t}", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "String getElem();", "private String getAttribute(Node nNode,String name) {\n \tNamedNodeMap attributes = nNode.getAttributes();\n \t\n \t// get the number of nodes in this map\n \tint numAttrs = attributes.getLength();\n \t\n \tfor (int i = 0; i < numAttrs; i++) {\n \t\t\n \t\tAttr attr = (Attr) attributes.item(i);\n \t\tString attrName = attr.getNodeName();\n \t\tString attrValue = attr.getNodeValue();\n \n \t\tif(attrName == name) {\n \t\t\treturn attrValue;\n \t\t}\n \t}\n \t\n \treturn null;\n }", "private String getAttributeValue(final Attribute attribute) {\n\t List<String> values = this.getAttributeValues(attribute);\n\t if (values.size()>0) {\n\t return values.get(0);\n\t } else {\n\t return \"\";\n\t }\n\t}", "public String getXPath(String xpath, int value) {\n\t\treturn String.format(xpath, value);\n\t}", "public synchronized String getValueOfNode(String path)\n throws ProcessingException {\n String value = null;\n\n path = this.createPath(path); // correct path\n value = DOMUtil.getValueOf(data, path, this.xpathProcessor);\n\n return value;\n }", "private static String getValue(XPath xpath, String defaultNamespacePrefix, String XMLPath, Node node) throws XPathExpressionException {\n String expression = \"\";\n if (StringUtils.isNotEmpty(defaultNamespacePrefix)) {\n expression += defaultNamespacePrefix + \":\";\n }\n expression += convertXMLPathToLowerCase(XMLPath);\n return xpath.evaluate(expression, node);\n }", "Map<String, String> getAttr(NodeKey key);", "private String getFieldUsingXPath(String xpathQuery) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"getFieldUsingXPath\");\n\t\t}\n\t\tString result = null;\n\t\ttry {\n\t\t\tresult = DOMUtil.value(this.data, xpathQuery, NamespacesConnections.nameSpaceCtx);\n\t\t} catch (XMLException e) {\n\t\t\tlogger.log(Level.SEVERE, Messages.MessageGenericError + \"getFieldUsingXPath\");\n\t\t}\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.exiting(sourceClass, \"getFieldUsingXPath\");\n\t\t}\n\t\treturn result;\n\t}", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "abstract Object getXMLProperty(XMLName name);", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttributeValue(By elementDefinition, String attributeName) {\n String attributeValue = null;\n try {\n info(\"Retrieving attribute value for attribute \" + attributeName + \" for the element :: \" +\n elementDefinition);\n waitForVisibility(elementDefinition);\n attributeValue = findElement(elementDefinition).getAttribute(attributeName);\n return attributeValue;\n } catch (Exception e) {\n error(\"Exception occurred while retrieving value of \" + attributeName + \" for the element with \" +\n \"definition \" + elementDefinition);\n error(Throwables.getStackTraceAsString(e));\n throw new NoSuchElementException(Throwables.getStackTraceAsString(e));\n }\n }", "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}", "@Test\n public final void testGetXPathForAttributes() {\n \n Document testDoc = TestDocHelper.createDocument(\n \"<a><b attr=\\\"test\\\"/></a>\");\n Element docEl = testDoc.getDocumentElement();\n NamedNodeMap attrs = docEl.getFirstChild().getAttributes();\n \n //Move to beforeclass method\n XPathFactory xPathFac = XPathFactory.newInstance();\n XPath xpathExpr = xPathFac.newXPath();\n \n testXPathForNode(attrs.item(0), xpathExpr);\n }", "ValueExpression getValueExpression(String attributeName);", "public final Object getAttribute(String attribute) {\r\n\t\tfor (String key:annotations.keySet()) {\r\n\t\t\tAnnotationDefinition defn = annotations.get(key);\r\n\t\t\tif (defn.getParams() != null && defn.getParams().containsKey(attribute))\r\n\t\t\t\treturn defn.getParams().get(attribute);\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "public String getAttribute() {\n return attribute;\n }", "String getAttributeNamespaceUri(Object attr);", "public static String getAttributeValue(By locator) throws CheetahException {\n\t\tString value;\n\t\twait_for_element(locator);\n\t\tWebElement element = CheetahEngine.getDriverInstance().findElement(locator);\n\t\tdriverUtils.highlightElement(element);\n\t\tdriverUtils.unHighlightElement(element);\n\t\tvalue = element.getAttribute(\"value\");\n\t\treturn value;\n\t}", "protected String getXpath(String attribute) {\n\t\tString template = this.getClass().getAnnotation(Decoder.class).value().name();\n\t\treturn PathCorrelator.getXpath(template, attribute, defaultNs.getURI());\n\t}", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "void setXpath(java.lang.String xpath);", "String getValueOfNode(String path)\n throws ProcessingException;", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getKey(Node target, String key){\n\t\tElement child = (Element) target;\n\t\treturn child.getAttribute(key);\n\t}", "public XPathExpr getXPathExpr()\n {try{__CLR4_0_68g8gl1l0dv4j.R.inc(311);\n __CLR4_0_68g8gl1l0dv4j.R.inc(312);return getXPathExpr( true );\n }finally{__CLR4_0_68g8gl1l0dv4j.R.flushNeeded();}}", "public String[] getElementAnnotation(int index, String attr);", "public String getNodeValue(Element elem)\n {\n NodeList nlList= elem.getChildNodes();\n Node nValue = (Node) nlList.item(0);\n\n return nValue.getNodeValue();\n }", "private String readAttributeValue(XmlPullParser xpp, String name, String def)\n {\n int count = xpp.getAttributeCount();\n for (int n = 0; n < count; n++)\n {\n String attrName = xpp.getAttributeName(n);\n if (attrName != null && attrName.equalsIgnoreCase(name))\n return xpp.getAttributeValue(n);\n }\n return def;\n }", "Object getAttribute(String key)\n throws ProcessingException;", "@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}", "@Override\n\tpublic IAttributeValue value() { return value; }" ]
[ "0.7108542", "0.7064096", "0.6971019", "0.66208506", "0.65701026", "0.64591646", "0.6454501", "0.6454501", "0.6454501", "0.6437176", "0.64335567", "0.6432893", "0.6424802", "0.63947356", "0.63813573", "0.6360038", "0.6345627", "0.6299483", "0.6287757", "0.62342566", "0.6190154", "0.6175842", "0.6157464", "0.6106446", "0.6106446", "0.6098391", "0.6092482", "0.6074112", "0.6070839", "0.5910328", "0.5862718", "0.5831096", "0.5826813", "0.58167416", "0.58123356", "0.57944673", "0.5755037", "0.5747267", "0.5734772", "0.57150435", "0.57148707", "0.5714131", "0.5708414", "0.57010204", "0.5693852", "0.56788546", "0.56554306", "0.56529945", "0.5626314", "0.5600461", "0.55872023", "0.55762845", "0.5567706", "0.55672836", "0.55669856", "0.55651915", "0.5554758", "0.55532056", "0.55519414", "0.55361396", "0.55333143", "0.55327785", "0.5518809", "0.550854", "0.54795295", "0.54601806", "0.5459626", "0.5442213", "0.54314077", "0.5430668", "0.5430449", "0.5428272", "0.54258424", "0.5425261", "0.5425211", "0.5396819", "0.539266", "0.53711694", "0.53681034", "0.5367149", "0.5365512", "0.53426516", "0.53280616", "0.53146476", "0.5313819", "0.5306402", "0.52925503", "0.52734375", "0.5257817", "0.52452207", "0.5239806", "0.5237858", "0.52364767", "0.52309036", "0.52165455", "0.5211437", "0.52064687", "0.5205947", "0.5198324", "0.5198284" ]
0.54584056
67
Rohit ETS 11 June 2015
public void mouseHoverAction_3(WebDriver driver, String mainElementXP, String subElementXP, String subSubElementXP, String Element_Name) throws Exception { try { Actions action = new Actions(driver); WebElement mainElement = driver.findElement(By.xpath(mainElementXP)); action.moveToElement(mainElement).perform(); WebElement subElement = driver.findElement(By.xpath(subElementXP)); action.moveToElement(subElement).perform(); WebElement subSubElement = driver.findElement(By.xpath(subSubElementXP)); action.moveToElement(subSubElement); action.click(); action.perform(); Extent_Reporting.Log_Pass("Click action is performed on the selected Product Type" + Element_Name, "Click action is performed on the selected Product Type" + Element_Name); } catch (Throwable t) { Extent_Reporting.Log_Fail(Element_Name + " does not Exist", Element_Name + " does not Exist", driver); t.printStackTrace(); throw new Exception("Element Not Present"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tCalendar today = new GregorianCalendar();\n\t\tSystem.out.println(today);\n\t\t\n\t\tGregorianCalendar christmas = new GregorianCalendar(1970,11,5);\n\t\t\n\t\tSystem.out.println(christmas.get(Calendar.DAY_OF_WEEK));\n\t\t\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd (E)\");\n\t\tSystem.out.println(sdf.format(christmas.getGregorianChange())); // 날짜오류\n\t\t\n\t\tSystem.out.println(sdf.format(today.getTime()));\n\t\t\n\t}", "Period mo20733e();", "@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"play ROV 2hr.\";\n\t}", "java.lang.String getFoundingDate();", "public static void main(String[] args) throws ParseException {\n\n System.out.println(getMounthEnd(\"2017-11-17\"));\n\n }", "public void anazitisiSintagisVaseiHmerominias() {\n\t\tDate firstDt = null, lastDt = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t// Zitaw apo ton xrhsth to xroniko euros kata to opoio exei graftei sintagh\n\t\t\tfirstDt = sir.readDate(\"DWSTE ARXIKH HMEROMHNIA: \");\n\t\t\tlastDt = sir.readDate(\"DWSTE TELIKH HMEROMHNIA: \");\n\t\t\tSystem.out.println();\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t// An h hmeromhnia eggrafhs ths syntaghs einai anamesa sta xronika oria pou exei dwsei o xrhsths ektypwnetai\n\t\t\t\tif(firstDt.before(prescription[i].getDate()) && (lastDt.after(prescription[i].getDate()))) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH METAKSY:\" + firstDt + \" KAI: \" + lastDt);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Test\n public void getEpochDay() {\n assertEquals(MinguoDate.of(110, 5, 19), MinguoChronology.INSTANCE.dateEpochDay(18766));\n assertEquals(MinguoDate.of(59, 1, 1), MinguoChronology.INSTANCE.dateEpochDay(0));\n }", "@Override\r\n\tpublic void physics() {\n\t\tSystem.out.println(\"Every Thursday evening\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n RLResult g = getCalendarInfo(\"201902\");\n System.out.println(g);\n }", "public Date getPubDate();", "public void findEasterDay()\n {\n while(year <= endYear)\n {\n EasterMath(year);\n for(int j = 0; j < 11; j++)\n {\n for(int k = 0; k < 30; k++)\n {\n if(month == j && day == k)\n {\n dates[j][k]++;\n }\n }\n }\n year++;\n }\n }", "java.util.Calendar getNextrun();", "public static void main(String args[])\r\n\t{\n\t\tSystem.out.println( getSAPDateAndTime(\"20210426 135157\") );\r\n\t}", "private void getTimestamps() {\n \t\tCalendar calendar = new GregorianCalendar(2007,Calendar.JANUARY,1);\n \t\tcalendar.set(2000 + yy, mm - 1, dd, HH, MM);\n \t\tString[] tempstr = new String[6];\n \n \t\tfor(int i = 0; i < r.length; i++) {\n \t\t\tif(calendar.get(Calendar.YEAR) < 10) {\n \t\t\t\ttempstr[0] = \"0\" + str(calendar.get(Calendar.YEAR));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[0] = str(calendar.get(Calendar.YEAR));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.MONTH) < 9) {\n \t\t\t\ttempstr[1] = \"0\" + str(calendar.get(Calendar.MONTH) + 1);\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[1] = str(calendar.get(Calendar.MONTH) + 1);\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.DATE) < 10) {\n \t\t\t\ttempstr[2] = \"0\" + str(calendar.get(Calendar.DATE));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[2] = str(calendar.get(Calendar.DATE));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.HOUR) < 12) {\n \t\t\t\tif(calendar.get(Calendar.AM_PM) == 1) {\n \t\t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR) + 12);\n \t\t\t\t}\n \t\t\t\telse if(calendar.get(Calendar.HOUR) < 10) {\n \t\t\t\t\ttempstr[3] = \"0\" + str(calendar.get(Calendar.HOUR));\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR));\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.MINUTE) < 10) {\n \t\t\t\ttempstr[4] = \"0\" + str(calendar.get(Calendar.MINUTE));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[4] = str(calendar.get(Calendar.MINUTE));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.SECOND) < 10) {\n \t\t\t\ttempstr[5] = \"0\" + str(calendar.get(Calendar.SECOND));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[5] = str(calendar.get(Calendar.SECOND));\n \t\t\t}\n \t\t\t\n \t\t\t//LightMaskClient.appendMainText(\"\\nGettings time\");\n \t\t\t//matTime[i] = calendar.getTimeInMillis();\n \t\t\t//LightMaskClient.appendMainText(\"\\nGot time\" + matTime[i]);\n \n \t\t\t//timestamps[i] = tempstr[3] + \":\" + tempstr[4] + \":\" + tempstr[5] + \" \" + tempstr[1] + \"/\" + tempstr[2] + \"/\" + tempstr[0];\n \t\t\ttimestamps[i] = tempstr[1] + \"/\" + tempstr[2] + \"/\" + tempstr[0] + \" \" + tempstr[3] + \":\" + tempstr[4] + \":\" + tempstr[5];\n \t\t\t//LightMaskClient.appendMainText(\"\\n\" + timestamps[i]);\n \t\t\tcalendar.add(Calendar.SECOND, period);\n \t\t}\n \t}", "@Override\r\n\tpublic void date() {\n\t\tSystem.out.println(\"10/19/21\");\r\n\t}", "public int getDateRmain() throws ParseException {\n String[] dateParts = description.split(\"<br />\");\n\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"E, dd MMMMM yyyy - HH:mm\");\n String start = dateParts[0];\n Date st = sdf.parse(start.split(\": \")[1]);\n String end = dateParts[1];\n Date ed = sdf.parse(end.split(\": \")[1]);\n Date now = Calendar.getInstance().getTime();\n\n //long daysRemain1=(e.getTime()-s.getTime()+1000000)/(3600*24*1000);\n long diffInMillies = Math.abs(ed.getTime() - st.getTime());\n long diff = TimeUnit.DAYS.convert(diffInMillies, TimeUnit.MILLISECONDS);\n\n dateRmain = (int)diff;\n return dateRmain;\n }", "public static void main(String[] args) {\n\t\tCalendar now = Calendar.getInstance();\r\n\t\tint hour = now.get(Calendar.HOUR_OF_DAY);\r\n\t\tint minute = now.get(Calendar.MINUTE);\r\n\t\tint month = now.get(Calendar.MONTH + 1);\r\n\t\tint day = now.get(Calendar.DAY_OF_MONTH);\r\n\t\tint year = now.get(Calendar.YEAR);\r\n\r\n\t\tSystem.out.println(now.getTime());\r\n\r\n\t\t// Crear una fecha fija\r\n\t\tCalendar sameDate = new GregorianCalendar(2010, Calendar.FEBRUARY, 22, 23, 11, 44);\r\n\r\n\t\t// mostrar los agradecimientos\r\n\t\tif (hour < 12)\r\n\t\t\tSystem.out.println(\"Buenos días. \\n\");\r\n\t\telse if (hour < 17)\r\n\t\t\tSystem.out.println(\"Buenas tardes. \\n\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Buenas noches charAt(\\n)\");\r\n\r\n\t\t// Mostrar minutos\r\n\t\tSystem.out.println(\"It is\");\r\n\t\tif (minute != 0) {\r\n\t\t\tSystem.out.print(\" \" + minute + \" \");\r\n\t\t\tSystem.out.print((minute != 1) ? \"minutes\" : \"minute\");\r\n\t\t\tSystem.out.print(\" past\");\r\n\t\t}\r\n\t\t// Mostrar la hora\r\n\t\tSystem.out.print(\" \");\r\n\t\tSystem.out.print((hour > 12) ? (hour - 12) : hour);\r\n\t\tSystem.out.print(\" o'clock on \\n\");\r\n\r\n\t\t// Mostrar el mes\r\n\r\n\t\tSystem.out.print(\"Estamos en el mes de: \");\r\n\t\tswitch (month) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"Enero\");\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Febrero\");\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Marzo\");\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"Abril\");\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tSystem.out.println(\"Mayo\");\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tSystem.out.println(\"Junio\");\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tSystem.out.println(\"Julio\");\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tSystem.out.println(\"Agosto\");\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tSystem.out.println(\"Septiembre\");\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tSystem.out.println(\"Octubre\");\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tSystem.out.println(\"Noviembre\");\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tSystem.out.println(\"Diciembre\");\r\n\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws Exception{\n\t\t\t Date currentTime = new Date(95,7,6);\n\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MMM/YYYY\");\n\t\t\t String dateString = formatter.format(currentTime);\n\t\t\t System.out.println(dateString);\n\t\t\t \n\t\t}", "@Test\n public void testFindRate_PositiveResult_Mon9to12() {\n System.out.println(\"FindRate-positive result mon 0900-1200\");\n AssertRateFound(\"2015-07-06T09:00:00Z\", \"2015-07-06T20:59:00Z\", 1500); \n }", "@Override\t\r\n\tpublic String getDailyWorkout() {\n\t\treturn \"practice 30 hrs daily\";\r\n\t}", "public static void main(String[] args) {\n System.out.println(\"01 11 2019\");\n }", "void createDailyMessageRaport(String stringCurrentDate);", "public static void main(String[] args) {\n\t\tSystem.out.println(\"현재 기준 월요일 날짜 : \" + getCurMonday());\r\n\t\t\r\n\t\tSystem.out.println(\"현재 기준 일요일 날짜 : \" + getCurSunday());\r\n\t\t\r\n\t\tSystem.out.println(\"현재 날짜 기준 주차 : \" + getWeek());\r\n\t\t\r\n\t\tSystem.out.println(\"설정한 날의 해당월의 마지막날짜 : \" + lastDayOfMonth(\"20190924\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString dateTime = \"\";\r\n\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tDate d = new Date();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMM\");\r\n\r\n\t\ttry {\r\n\t\t\tString today = \"\"; // 오늘\r\n\t\t\tDate targetDay = null; // Biz 로그 대상일(하루 전일자)\r\n\t\t\ttoday = sdf.format(d);\r\n\t\t\ttargetDay = sdf.parse(today);\r\n\t\t\tcal.setTime(targetDay);\r\n\t\t\tcal.add(Calendar.DAY_OF_MONTH, -2);\r\n\t\t\tdateTime = sdf.format(cal.getTime());\r\n\t\t} catch (ParseException pe) {\r\n\t\t\tSystem.out.println(pe);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\tSystem.out.println(dateTime);\r\n\t\t\r\n\t}", "public void EasterMath(int year)\n {\n a = year%19;\n b = Math.floor(year/100);\n c = year%100;\n d = Math.floor((b/4));\n e = b%4;\n f = Math.floor((b+8)/25);\n g = Math.floor((b-f+1)/3);\n h = (19*a+b-d-g+15)%30;\n i = Math.floor(c/4);\n k = c%4;\n l = (32 + 2* e + 2 * i - h - k)%7;\n m = Math.floor((a+11*h+22*l)/451);\n month = (int) Math.floor((h+l-7*m+114)/31);\n day = (int) (((h+l-7*m+114)%31)+1);\n }", "public static void main(String[] args) {\n\t\tDate data = new Date();\n\t\tSystem.out.println(1900 + data.getYear());\n\t\t\n\t\t\n\t\tCalendar cal = Calendar.getInstance();\n\t\tSystem.out.println(cal);\n\t\t\n\t\tDate data2 = cal.getTime();\n\t\tSystem.out.println(\"data 2 - \" +data2);\n\t\t\n\t\t//cal.add(Calendar.DAY_OF_MONTH, 1);//acrescenta +1 dia\n\t\t\n\t\t//verificar roll(Calendar.DAY_MONTH, -10)\n\t\t\n\t\tdata2 = cal.getTime();\n\t\tSystem.out.println(\"data 2 - \" +data2);\n\t\t\n\t\tSimpleDateFormat formatador = new SimpleDateFormat(\n\t\t\t\t\"'manaus 'EEEE dd 'de' MMMM 'de' yyyy \");\n\t\tSystem.out.println(formatador.format(cal.getTime()));\n\t\t\n\t\t\n\t\tString dataDigitada = \"17/02/2015\";\n\t\t\n\t\tSimpleDateFormat parser = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\ttry {\n\t\t\tCalendar cal2 = Calendar.getInstance();\n\t\t\tcal2.setTime(parser.parse(dataDigitada));\n\t\t\tSystem.out.println(\"data formatada: \" + formatador.format(cal2.getTime()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public String[] getStarDate2(){\n\t\tstardate = new String[3];\n\t\t\n\t\tCalendar originaldate = Calendar.getInstance(TimeZone.getTimeZone(\"gmt\"));\n\t\tCalendar instancedate = Calendar.getInstance(TimeZone.getTimeZone(\"gmt\"));\n\t\t\t\t\n\t\t//originaldate.set(2008, 8, 8, 0, 0, 0);\n\t\toriginaldate.set(2162, 0, 4, 0, 0, 0);\n\t\t\n\t\t/*instancedate.add(Calendar.HOUR, 7);\n\t\tinstancedate.add(Calendar.MINUTE, 33);\n\t\tinstancedate.add(Calendar.YEAR, 156);\n\t\tinstancedate.add(Calendar.HOUR, -6*24);\n\t\tinstancedate.add(Calendar.MONTH, -3);*/\n\t\t\n\t\t\n\t\t// Get the represented date in milliseconds\n\t\tlong milis1 = originaldate.getTimeInMillis();\n\t\tlong milis2 = instancedate.getTimeInMillis();\n\t\t\n\t\t// Calculate difference in milliseconds\n\t\tlong diff = milis2 - milis1;\n\t\t \n\t\t// Calculate difference in seconds\n\t\tlong diffSeconds = diff / 1000;\n\t\t \n\t\t// Calculate difference in minutes\n\t\t//long diffMinutes = diff / (60 * 1000);\n\t\t\n\t\t// Calculate difference in hours\n\t\t//long diffHours = diff / (60 * 60 * 1000);\n\t\t\n\t\t// Calculate difference in days\n\t\t//long diffDays = diff / (24 * 60 * 60 * 1000);\n\t\t\n\t\t//double dec = -280000 - ((double)diffSeconds / 17280.0f);\n\t\tdouble dec = ((double)diffSeconds / 17280.0f);\n\t\t\t\t\n\t\tint mantel = (int)Math.ceil(dec/10000.0f);\n\t\t\t\t\n\t\tdouble kropp = (dec + (-(mantel-1)*10000.0f));\n\t\t\n\t\tif(kropp >= 10000) mantel += 2; //Fixing rounding error\n\t\t\n\t\tdouble mantelkropp = ((mantel-1) * 10000.0f) - kropp;\n\t\t\n\t\t/*Log.v(TAG, \"Diff: \" + Long.toString(diff));\n\t\t\n\t\tLog.v(TAG, \"Diff: \" + Double.toString(dec));\n\t\t\n\t\tLog.v(TAG, \"Diff: \" + Integer.toString(mantel));\n\t\t\n\t\tLog.v(TAG, \"Diff: \" + Double.toString(kropp));\n\t\t\n\t\tLog.v(TAG, \"Diff: \" + Double.toString(mantelkropp));*/\n\t\t\n\t\tdec = mantelkropp;\n\t\t\n\t\tDecimalFormat maxDigitsFormatter;\n\t\tif(dec < 0)\n\t\t\tmaxDigitsFormatter = new DecimalFormat(\"#000000.0000\");\n\t\telse\n\t\t\tmaxDigitsFormatter = new DecimalFormat(\"0000000.0000\");\n \n try {\n\t stardate[0] = \"[\" + (maxDigitsFormatter.format(dec)).substring(0, 3) + \"]\";\n\t stardate[1] = \" 0\" + (maxDigitsFormatter.format(dec)).substring(3, 9);\n\t stardate[2] = \"\" + (maxDigitsFormatter.format(dec)).substring(9, 11);\n } catch(StringIndexOutOfBoundsException sbe) {\n \tif(DEBUG) Log.v(TAG, \"Could not format \" + sbe);\n \tif(DEBUG) Log.v(TAG, maxDigitsFormatter.format(dec));\n \tstardate[2] = \"--\"; \t \n }\n \n Log.v(TAG, \"Stardate: \" + stardate[0] + stardate[1] + stardate[2]);\n return stardate;\n\t\t\n\t}", "private TimeSeries createEURTimeSeries(String WellID, String lang) {\n int count = 0;\n String precipitation = \"\";\n if(lang.equals(\"EN\")){\n precipitation = precipitation_en;\n }else{\n precipitation = precipitation_fr;\n }\n TimeSeries t1 = new TimeSeries(precipitation + \" (mm)\");\n //System.out.println (t1.getMaximumItemCount()); \n Hour begin = new Hour( 1, 1, 1, 2005);\n Hour end = new Hour(23, 31, 12, 2012);\n String endStr = end.toString();\n String str = begin.toString();\n \n for(Hour h1 = begin; !str.equals(endStr) ; h1 = (Hour) h1.next()){\n Second s = new Second(0, 0, h1.getHour(), h1.getDayOfMonth(), h1.getMonth(), h1.getYear());\n t1.addOrUpdate(s, new Double(Double.NaN)); \n str = h1.toString();\n }\n \n try {\n // Open the file that is the first \n // command line parameter\n FileInputStream fstream = new FileInputStream(\"Y:\\\\PGMN\\\\Precipitation\\\\\" + WellID + \".csv\");\n // Get the object of DataInputStream\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n //Read File Line By Line\n int i = 0;\n while ((strLine = br.readLine()) != null) {\n if(i>0){ \n String [] temp = strLine.split(\",\");\n //System.out.println (i);\n String [] dateTimeAM = (temp[2]).split(\" \"); //08/20/2009 10:35:00 AM\n \n String [] dates = (dateTimeAM[0]).split(\"/\"); //6/10/2009\n int month = Integer.parseInt(dates[0]);\n int day = Integer.parseInt(dates[1]);\n int year = Integer.parseInt(dates[2]);\n //System.out.println (i);\n int hour = 0;\n int minute = 0;\n int second = 0; \n if (dateTimeAM.length > 1) {\n String [] temp3 = (dateTimeAM[1]).split(\":\"); //10:35:00\n hour = Integer.parseInt(temp3[0]);\n minute = Integer.parseInt(temp3[1]);\n second = Integer.parseInt(temp3[2]);\n //08/20/2009 10:35:00 AM\n if ((dateTimeAM[2]).equals(\"PM\")) {\n if (hour < 12) {\n hour = hour + 12;\n }\n }\n if ((dateTimeAM[2]).equals(\"AM\") && (hour == 12)) {\n hour = 0;\n }\n }\n Second s = new Second(second, minute, hour, day, month, year);\n //System.out.println(strLine);\n //System.out.println(year + \", \" + month + \", \" + day + \", \" + hour + \", \" + minute + \", \" + second);\n //Hour h = new Hour(hour, day, month, year);\n Double d = new Double(Double.NaN);\n //System.out.println(temp[2]);\n if (temp.length > 2){\n d = Double.parseDouble(temp[3]);// - depth;\n count ++;\n }\n t1.addOrUpdate(s, d);\n }\n i = i + 1;\n }\n in.close();\n \n }\n catch (Exception e) {\n System.err.println(e.getMessage());\n }\n \n return t1;\n }", "public Date getGioBatDau();", "public static void main(String[] args) {\n int i =2003;\n long d = 13220100526L;\n System.out.println(new Date(d));\n System.out.println(i / 20 + (i % 20 > 0 ? 1 : 0));\n }", "String getDate();", "String getDate();", "@Test public void Day_1__month__year()\t\t\t\t\t\t\t{tst_date_(\"03-31-02\"\t\t\t\t, \"2002-03-31\");}", "@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 long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }", "public static void main(String[] args)\r\n {\n Date date = new Date();\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.setTime(date);\r\n \r\n year = calendar.get(Calendar.YEAR);\r\n month = calendar.get(Calendar.MONTH) + 1; // Januarry is Month 0 ???\r\n day = calendar.get(Calendar.DAY_OF_MONTH);\r\n \r\n //initialize a dictionary.\r\n Hdict dict = new Hdict();\r\n leechYahoo(dict);\r\n leechNytimes(dict);\r\n leechCNN(dict);\r\n //fox doesn't work, have to find the conversation element.\r\n //leechFOX(dict);\r\n \r\n Words[] output = dict.toArr();\r\n Hdict.arrSort(output);\r\n \r\n for(int i = 0; i < output.length; i++)\r\n {\r\n System.out.println(\"word \" + output[i].getName() + \" has popularity \" + output[i].getPopularity());\r\n }\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tLocalDate date = LocalDate.now(); \n\t\tSystem.out.println(date);\n\t\t//date.atStartOfDay();\n\t\t int d=date.getDayOfMonth();\n\t\t System.out.println(d);\n\t\t int y=date.getYear();\n\t\t System.out.println(y);\n\t\t int m=date.getMonthValue();\n\t\t System.out.println(m);\n\t\t\n\t\t \n\t\t \n\t\t \n\t\t\n\t\t \n\t\t \n\t}", "public static void main(String[] args) {\n\n LocalDate today = LocalDate.now();\n System.out.println(\"today = \" + today);\n\n LocalDate tomorrow = today.plus(1, ChronoUnit.DAYS);\n System.out.println(\"tomorrow = \" + tomorrow );\n\n LocalDate yesterday = tomorrow.minusDays(2);\n System.out.println(\"yesterday = \" + yesterday);\n\n LocalDate independenceDay = LocalDate.of(2019, Month.DECEMBER, 11);\n DayOfWeek dayOfWeek = independenceDay.getDayOfWeek();\n System.out.println(\"dayOfWeek = \" + dayOfWeek);\n\n\n\n\n }", "public String getEmotionDate() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.CANADA);\n return dateFormat.format(emotionDate);\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(parseFirstDayLastYear(\"2017-12-30\"));\r\n\t}", "public int getToday() {\n \treturn 0;\n }", "public int getLBR_ProtestDays();", "public static void main(String[] args) {\n\t\tLocalDate hoje = LocalDate.now();\n\t\tSystem.out.println(hoje);\n\t\t\n\t\t//Criando nova data\n\t\tLocalDate olimpiadas = LocalDate.of(2016, Month.JUNE, 5);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\t//Calculando diferenca de anos\n\t\tint anos = olimpiadas.getYear() - hoje.getYear();\n\t\tSystem.out.println(anos);\n\n\t\t//Demonstracao de imutabilidade\n\t\tolimpiadas.plusYears(4);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\tLocalDate proximasOlimpiadas = olimpiadas.plusYears(4);\n\t\tSystem.out.println(proximasOlimpiadas);\n\t\t\n\t\t//Periodo entre data de inicio e fim \n\t\tPeriod periodo = Period.between(hoje, olimpiadas);\n\t\tSystem.out.println(periodo);\n\n\t\t//Formata data \n\t\tDateTimeFormatter formataData = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\tSystem.out.println(proximasOlimpiadas.format(formataData));\n\t\t\n\t\t//Craindo data e hora\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\tSystem.out.println(agora);\n\t\t\n\t\t//Formatando data e hora\n\t\t//Obs.: O formatado de data e hora nao pode ser usado para formata data.\n\t\tDateTimeFormatter formataDataComHoras = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm\");\n\t\tSystem.out.println(agora.format(formataDataComHoras ));\n\t\t\n\t\tLocalTime intervalo = LocalTime.of(15, 30);\n\t\tSystem.out.println(intervalo);\n\t\t\n\t\t \n\t\t\n\t}", "@Override\r\n\tpublic void maths() {\n\t\tSystem.out.println(\"Maths class is on every wednesday at 2 pm\");\r\n\t\t\r\n\t}", "public String displayEaster(){\n\n if (month == 3){\n Month = \"März\";\n }\n if (month == 4){\n Month = \"April\";\n }\n\n System.out.printf(\"\\nEaster:%s %d, %d \",Month,day,year);\n return String.format(\"Easter: %d. %s %d\",day, Month, year);\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}", "long getDate();", "long getTradeDate();", "public static void main(String[] args) {\r\n System.out.println(\"current date:\" + new Date());\r\n System.out.println(DateUtils.addDays(new Date(), 1));\r\n System.out.println(DateUtils.addWeeks(new Date(), 1));\r\n \r\n System.out.println(DateUtils.setYears(new Date(), 2020));\r\n \r\n System.out.println(DateUtils.round(new Date(), 2));\r\n System.out.println(DateUtils.truncate(new Date(), 2));\r\n }", "public static void main(String[] args) {\n\n LocalDateTime currentTime = LocalDateTime.now();\n\n// new LocalTime();\n// new LocalDateTime();\n// new LocalDate();\n\n LocalDate.now();\n LocalTime lt = LocalTime.now();\n LocalDateTime.now();\n\n // parse the string to a LocalDate\n LocalDate localDateFromString = LocalDate.parse(\"19-07-1999\", DateTimeFormatter.ofPattern(\"dd-MM-yyyy\") );\n\n // Create the new formatter we want\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd MMMM yyyy\");\n\n // Use the formatter on the Date to get what we want\n System.out.println(formatter.format(localDateFromString));\n\n JapaneseDate jDate = JapaneseDate.from(localDateFromString);\n\n System.out.println(jDate.getEra().toString());\n// System.out.println(jDate.getEra().toString());\n\n System.out.println(\"***************\");\n\n DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"dd MMMM yyyy hh-mm-ss\");\n\n System.out.println(\"Current date: \");\n System.out.println(currentTime);\n\n System.out.println(String.format(\"%s hour %s minutes\", currentTime.getHour(), currentTime.getMinute()));\n\n\n System.out.println(\"Formatted date: \");\n System.out.println(timeFormatter.format(currentTime.plusDays(90)));\n\n System.out.println(\"##############\");\n\n LocalDate today = LocalDate.now();\n System.out.println(today.plusDays(17).getDayOfWeek());\n\n// java.time.LocalDate currentDate = java.time.LocalDate.now();\n// System.out.println(currentDate);\n\n }", "private String tilStandardDatostreng(Calendar c)\n {\n return c.get(Calendar.DATE) + \"/\" + (c.get(Calendar.MONTH) + 1) + \"/\" + c.get(Calendar.YEAR);\n }", "public Timestamp getHC_WorkStartDate2();", "private void affichageDateFin() {\r\n\t\tif (dateFinComptage!=null){\r\n\t\t\tSystem.out.println(\"Le comptage est clos depuis le \"+ DateUtils.format(dateFinComptage));\r\n\t\t\tif (nbElements==0){\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos mais n'a pas d'éléments. Le comptage est en anomalie.\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos et est OK.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Le compte est actif.\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tMaDate date = new MaDate(26, 02, 1990);\n\t\tdate.ajouterUnJour();\n\t\tSystem.out.println(date);\n\t}", "String getDayofservice();", "public static void main (String args[]){\n Date date = new Date();\n\n // display time and date using toString()\n System.out.println(\"The current date is: \" + date.toString());\n // display time and date\n System.out.printf(\"%1$s %2$tB %2$td, %2$tY\", \"Due date: \", date);\n System.out.println(\"\\n\");\n\n Date dNow = new Date( );\n SimpleDateFormat ft =\n new SimpleDateFormat (\"E yyyy.MM.dd 'at' hh:mm:ss a zzz\");\n /* For more info, look for: https://www.tutorialspoint.com/java/java_date_time.htm*/\n\n System.out.println(\"Current Date: \" + ft.format(dNow));\n\n\n SimpleDateFormat ft2 = new SimpleDateFormat (\"yyyy-MM-dd\");\n String input = args.length == 0 ? \"1818-11-11\" : args[0];\n\n System.out.print(input + \" Parses as \");\n Date t;\n try {\n t = ft2.parse(input);\n System.out.println(t);\n } catch (ParseException e) {\n System.out.println(\"Unparseable using \" + ft);\n }\n\n try {\n long start = System.currentTimeMillis( );\n System.out.println(new Date( ) + \"\\n\");\n\n Thread.sleep(5*60*10);\n System.out.println(new Date( ) + \"\\n\");\n\n long end = System.currentTimeMillis( );\n long diff = end - start;\n System.out.println(\"Difference is : \" + diff);\n } catch (Exception e) {\n System.out.println(\"Got an exception!\");\n }\n\n }", "public static void main(String[] args) {\n\tDate date=new Date();\n\t//Display Time and Date using toStrng().\n\tSystem.out.println(date.toString());\n\t\n\tDate dNow=new Date();\n\tSimpleDateFormat ft=new SimpleDateFormat(\"E yyyy.MM.dd 'at' hh:mm:ss a zzz\");\n\tSystem.out.println(\"Current Date: \"+ft.format(dNow));\n\t\n\t//This method is used for sleep for 3 seconds.\n\ttry { \n System.out.println(new Date( ) + \"\\n\"); \n Thread.sleep(5*60*10); \n System.out.println(new Date( ) + \"\\n\"); \n } catch (Exception e) {\n System.out.println(\"Got an exception!\"); \n }\n\t GregorianCalendar gcalendar = new GregorianCalendar();\n\t int year = 0;\n\t// Test if the current year is a leap year\n if(gcalendar.isLeapYear(year)) {\n System.out.println(\"The current year is a leap year\");\n }else {\n System.out.println(\"The current year is not a leap year\");\n }\n }", "@Override\n public void date()\n {\n }", "@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 String RevenueDerniere(){\n List<Ticket> tickets=ticketRepository.findAll();\n double revenueJours=0,revenueSemaine=0,revenuemois=0;\n for (Ticket ticket:tickets){\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(30)))){\n revenuemois=revenuemois+ticket.getAddition();\n }\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(7)))){\n revenueSemaine=revenueSemaine+ticket.getAddition();\n }\n if (ticket.getDate().isAfter(Instant.now().minus(Period.ofDays(1)))){\n revenueJours=revenueJours+ticket.getAddition();\n }\n }\n\n return \"Revenue moins derniere :\"+revenuemois+\"\\n Revenue semaine derniere :\"+revenueSemaine+\"\\n \"\n\t\t+ \"Revenue jour derniere :\"+revenueJours;\n }", "public static void main(String[] args) {\n\t\tboolean isFriday=false;\n\t\tint date=13;\n\t\t\n\t\tif(isFriday) {\n\t\tSystem.out.println(\"Today is Friday I am going to watch a movie\");\n\t\tif(date==13) {System.out.println(\"I'll watch a scary movie\");}\n\t\telse {System.out.println(\"I' ll watch a comedy\");}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}else {System.out.println(\"Today is not Friday iam staying home\");}\n\n\t}", "public static void main(String args[]){\r\n\tDatesubday dsd = new Datesubday();\r\n\tSystem.out.println(dsd.dsd(\"2014-09-15\", -16));\r\n }", "@Test\n\t public void testTodayFinnish(){\n\t\t TimeSource mock = new SystemTimeSource();\n\t\t Watch test = new FinnishWatch(mock);\n\t\t String expected = EnumarationDays.vendredi.getFinnish();\n\t\t String actual = test.getDay(Languages.Finnish);\n\t\t assertEquals(actual, expected);\t\t \n\t }", "public static void main(String[] args) {\n\t\tint day = 29;\r\n\t\tString month = \"febbraio\";\r\n\t\tint year = 1583;\r\n\t\tSystem.out.println(calend(day, month, year));\r\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Введите день, месяц, год рождения\");\n\t\tint day;\n\t\tint month;\n\t\tint year;\n\t\tdo {\n\t\t\tSystem.out.println(\"Количество дней в месяце от 1 до 31\");\n\t\t\tday = scan.nextInt();\n\t\t}while((day > 31) || (day <= 0));\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"Месяц равен от 1 до 12\");\n\t\t\tmonth = scan.nextInt();\n\t\t}while(month <1 || month > 12);\n\t\tint i;\n\t\tint n;\n\t\tdo {\n\t\t\ti = 0;\n\t\t\tSystem.out.println(\"Год - четырехзначное число\");\n\t\t\tyear = scan.nextInt();\n\t\t\tn = year;\n\t\t\twhile (n > 0) {\n\t\t\t n = n/10;\n\t\t\t i += 1;\n\t\t\t }\n\t\t}while(i != 4);\n\t\t\n\t\tSystem.out.println(day + \" \" + month + \" \" + year);\n\t\tString znakZodiak;\n\t\tString animalYear;\n\t\t\t\n\t\tif ((month == 3 && day >= 21) || (month == 4 && day <= 20))\n\t\t\tznakZodiak = \"Овен\";\n\t\telse if ((month == 4 && day >= 21) || (month == 5 && day <= 21))\n\t\t\tznakZodiak = \"Телец\";\n\t\telse if ((month == 5 && day >= 22) || (month == 6 && day <= 21))\n\t\t\tznakZodiak = \"Близнецы\";\n\t\telse if ((month == 6 && day >= 22) || (month == 7 && day <= 22))\n\t\t\tznakZodiak = \"Рак\";\n\t\telse if ((month == 7 && day >= 23) || (month == 8 && day <= 22))\n\t\t\tznakZodiak = \"Лев\";\n\t\telse if ((month == 8 && day >= 23) || (month == 9 && day <= 23))\n\t\t\tznakZodiak = \"Дева\";\n\t\telse if ((month == 9 && day >= 24) || (month == 10 && day <= 23))\n\t\t\tznakZodiak = \"Весы\";\n\t\telse if ((month == 10 && day >= 24) || (month == 11 && day <= 21))\n\t\t\tznakZodiak = \"Скорпион\";\n\t\telse if ((month == 11 && day >= 22) || (month == 12 && day <= 21))\n\t\t\tznakZodiak = \"Стрелец\";\n\t\telse if ((month == 12 && day >= 22) || (month == 1 && day <= 21))\n\t\t\tznakZodiak = \"Козерог\";\n\t\telse if ((month == 1 && day >= 22) || (month == 2 && day <= 19))\n\t\t\tznakZodiak = \"Водолей\";\n\t\telse if ((month == 2 && day >= 20) || (month == 3 && day <= 20))\n\t\t\tznakZodiak = \"Рыбы\";\n\t\telse\n\t\t\tznakZodiak = \"Введенный месяц не соответствует ни одному значению знака задиака. Месяц должен быть от 1 до 124\";\n\t\tswitch(year % 12) {\n\t\tcase 0: \n\t\t\tanimalYear = \"Год обезьяны\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tanimalYear = \"Год петуха\";\n\t\t\tbreak;\n\t\tcase 2: \n\t\t\tanimalYear = \"Год собаки\";\n\t\t\tbreak;\n\t\tcase 3: \n\t\t\tanimalYear = \"Год свиньи\";\n\t\t\tbreak;\n\t\tcase 4: \n\t\t\tanimalYear = \"Год крысы\";\n\t\t\tbreak;\n\t\tcase 5: \n\t\t\tanimalYear = \"Год коровы\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tanimalYear = \"Год тигра\";\n\t\t\tbreak;\n\t\tcase 7: \n\t\t\tanimalYear = \"Год зайца\";\n\t\t\tbreak;\n\t\tcase 8: \n\t\t\tanimalYear = \"Год дракона\";\n\t\t\tbreak;\n\t\tcase 9: \n\t\t\tanimalYear = \"Год змеи\";\n\t\t\tbreak;\n\t\tcase 10: \n\t\t\tanimalYear = \"Год лошади\";\n\t\t\tbreak;\n\t\tcase 11: \n\t\t\tanimalYear = \"Год овцы\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tanimalYear = \"Что-то пошло не так\";\n\t\t}\n\t\tSystem.out.println(\"Знак: \" + znakZodiak);\n\t\tSystem.out.println(\"Знак: \" + animalYear);\n\t\tscan.close();\n\t}", "@Override\n\tpublic java.util.Date getNgayKetThuc() {\n\t\treturn _keHoachKiemDemNuoc.getNgayKetThuc();\n\t}", "com.czht.face.recognition.Czhtdev.Week getWeekday();", "public static void main(String[] args) {\n\n\t\tDate date = new Date();\n\t\tSystem.out.println(date.toString());\n\t\t\n\t\t//If date is required in specific format\n\t\t\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"M/d/yyyy hh::mm::ss\");\n\t\tsdf.format(date);\n\t\tSystem.out.println(\"In required date format \"+sdf.format(date));\n\t\t\n\t\t//Using calendar objects\n\t\t\n\t\tCalendar cal = Calendar.getInstance();\n\t\tSimpleDateFormat sdf1 = new SimpleDateFormat(\"M/d/yyyy hh::mm::ss\");\n\t\tSystem.out.println(\"Using the Calendar objects \"+sdf1.format(cal.getTime()));\n\t\tSystem.out.println(\"Methods in Calendar \"+Calendar.DAY_OF_WEEK_IN_MONTH);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void initDate() {\n\n\t}", "public static void main(String[] args) {\n\n\t\t SimpleDateFormat sf = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\");\n\t\t// for(int i=0; i<100; i++) {\n\t\t// String strDT = sf.format(new Date(System.currentTimeMillis()));\n\t\t// System.out.println(strDT);\n\t\t// }\n\n\t\t\n\t\tDate oldDate = new Date();\n\t\tCalendar gcal = new GregorianCalendar();\n\t\tgcal.setTime(oldDate);\n\t\tgcal.add(Calendar.SECOND, -4468);\n\t\tDate newDate = gcal.getTime();\n\t\tSystem.out.println(sf.format(oldDate));\n\t\tSystem.out.println(sf.format(newDate));\n\t}", "public static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tint year,mon,day;\n\t\tyear = reader.nextInt();\n\t\tmon = reader.nextInt();\n\t\tday = reader.nextInt();\n\t\tint day2;\n\t\tif(year%4==0&&year%100!=0)\n\t\t\tday2=29;\n\t\telse if(year%400==0)\n\t\t\tday2=29;\n\t\telse\n\t\t\tday2=28;\n\t\t\n\n\n\t\t\n\t\tSystem.out.println(\"°ÙλÊÇ\"+day2);\n\t\treader.close();\n\t}", "public int MagicDate(){\n return month = day = year = 1;\n \n }", "public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}", "public static void main(String[] args) throws ParseException {\t\t\n\t int mes, ano, diaDaSemana, primeiroDiaDoMes, numeroDeSemana = 1;\n\t Date data;\n\t \n\t //Converter texto em data e data em texto\n\t SimpleDateFormat sdf\t = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t //Prover o calendario\n\t GregorianCalendar gc\t = new GregorianCalendar();\n\t \n\t String mesesCalendario[] = new String[12];\n\t\tString mesesNome[]\t\t = {\"Janeiro\", \"Fevereiro\", \"Marco\", \"Abri\", \"Maio\", \"Junho\", \"Julho\", \"Agosto\", \"Setembro\", \"Outubro\", \"Novembro\", \"Dezembro\"};\n\t\tint mesesDia[]\t\t\t = {31,28,31,30,31,30,31,31,30,31,30,31};\n\t\t\n\t\t//Errado? e pra receber apenas o \"dia da semana\" do \"primeiro dia do mes\" na questao\n\t //Recebendo mes e ano\n\t mes = Entrada.Int(\"Digite o mes:\", \"Entrada de dados\");\n\t ano = Entrada.Int(\"Digite o ano:\", \"Entrada de dados\");\n\t \n\t //Errado? e pra ser o dia inicial do mes na questao\n\t // Dia inicial do ano\n data = sdf.parse(\"01/01/\" + ano);\n gc.setTime(data);\n diaDaSemana = gc.get(GregorianCalendar.DAY_OF_WEEK);\n \n //Nao sei se e necessario por causa da questao\n //*Alteracao feita||| Ano bissexto tem +1 dia em fevereiro\n if(ano % 4 == 0) {\n \tmesesDia[1] = 29;\n \tmesesNome[1] = \"Ano Bissexto - Fevereiro\";\n }\n \n \n //Meses \n for(int mesAtual = 0; mesAtual < 12; mesAtual++) {\n\t int diasDoMes\t= 0;\n\t String nomeMesAtual = \"\";\n\n\n\t nomeMesAtual = mesesNome[mesAtual]; \n diasDoMes\t = mesesDia[mesAtual]; \n\n\n mesesCalendario[mesAtual] = \"\\n \" + nomeMesAtual + \" de \" + ano + \"\\n\";\n mesesCalendario[mesAtual] += \"---------------------------------------------------------------------|\\n\";\n mesesCalendario[mesAtual] += \" Dom Seg Ter Qua Qui Sex Sab | Semanas\\n\";\n mesesCalendario[mesAtual] += \"---------------------------------------------------------------------|\\n \";\n\t\n\t \n\t // Primeira semana comeca em\n\t data = sdf.parse( \"01/\" + (mesAtual+1) + \"/\" + ano );\n gc.setTime(data);\n primeiroDiaDoMes = gc.get(GregorianCalendar.DAY_OF_WEEK);\n\t for (int space = 1; space < primeiroDiaDoMes; space++) {\n\t \tmesesCalendario[mesAtual] += \" \";\n\t }\n\t \n\t //Dias\t \n\t for (int diaAtual = 1; diaAtual <= diasDoMes; diaAtual++)\n\t {\n\t \t// Trata espaco do dia\n\t \t\t//Transforma o diaAtuel em String\n\t String diaTratado = Integer.toString(diaAtual);\n\t if (diaTratado.length() == 1)\n\t \tdiaTratado = \" \" + diaAtual + \" \";\n\t else\n\t \tdiaTratado = \" \" + diaAtual + \" \";\n\t \n\t // dia\n\t mesesCalendario[mesAtual] += diaTratado;\n\t \t\n\t \t// Pula Linha no final da semana\n\t data = sdf.parse( diaAtual + \"/\" + (mesAtual+1) + \"/\" + ano );\n\t gc.setTime(data);\n\t diaDaSemana = gc.get(GregorianCalendar.DAY_OF_WEEK);\n\t if (diaDaSemana == 7) {\n\t \tmesesCalendario[mesAtual] += (\"| \" + numeroDeSemana++);\n\t \tmesesCalendario[mesAtual] += \"\\n |\";\n\t \tmesesCalendario[mesAtual] += \"\\n \";\n\t }\n\t }\n\t mesesCalendario[mesAtual] += \"\\n\\n\\n\\n\";\n\t }\n\t \n //Imprime mes desejado\n\t System.out.println(mesesCalendario[mes-1]);\n\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(System.currentTimeMillis()); // Quantos Milisegundos desde data 01/01/1970\n\t\t\n\t\t// Data Atual\n\t\tDate agora = new Date();\n\t\tSystem.out.println(\"Data Atual: \"+agora);\n\t\t\n\t\tDate data = new Date(1_000_000_000_000L);\n\t\tSystem.out.println(\"Data com 1.000.000.000.000ms: \"+data);\n\t\t\n\t\t// METODOS\n\t\tdata.getTime();\n\t\tdata.setTime(1_000_000_000_000L);\n\t\tSystem.out.println(data.compareTo(agora)); // -1 para anterior, 0 para igual, +1 para posterior\n\t\t\n\t\t// GregorianCalendar\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.set(1980, Calendar.FEBRUARY, 12);\n\t\tSystem.out.println(c.getTime());\n\t\tSystem.out.println(c.get(Calendar.YEAR)); // Ano\n\t\tSystem.out.println(c.get(Calendar.MONTH)); // Mes 0 - 11\n\t\tSystem.out.println(c.get(Calendar.DAY_OF_MONTH)); // Dia do mes\n\t\t\n\t\tc.set(Calendar.YEAR,2016); // Altera o Ano\n\t\tc.set(Calendar.MONTH, 10); // Altera o Mes 0 - 11\n\t\tc.set(Calendar.DAY_OF_MONTH, 24); // Altera o Dia do mes\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.clear(Calendar.MINUTE); // limpa minutos\n\t\tc.clear(Calendar.SECOND); // limpa segundos\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.add(Calendar.DAY_OF_MONTH,1); // adiciona dias (avança o mes e ano)\n\t\tc.add(Calendar.YEAR,1); // adiciona o ano \n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.roll(Calendar.DAY_OF_MONTH,20); // adiciona dias (não avança o mes e ano)\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\t// Saudação com Bom dia, Boa arde ou Boa noite\n\t\tCalendar c1 = Calendar.getInstance();\n\t\tint hora = c1.get(Calendar.HOUR_OF_DAY);\n\t\tSystem.out.println(hora);\n\t\tif(hora <= 12){\n\t\t\tSystem.out.println(\"Bom Dia\");\n\t\t} else if(hora > 12 && hora < 18){\n\t\t\tSystem.out.println(\"Boa Tarde\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Boa Noite\");\n\t\t}\n\t\t\n\n\t}", "@Override\r\n\tpublic String getDailyStudy() {\n\t\treturn \"Practice Expilliarmus and Work on the patronus charm\";\r\n\t}", "public void Print_date()\n {\n \n System.out.println(\"Date: \" + date);\n }", "String getDate() { return epoch; }", "public static String evaluteEventDate(String eventdate){\r\n\t\t return eventdate.substring(0,10).replaceAll(\"-\", \"\");\r\n\t}", "public static void main(String[] args)\r\n/* 96: */ {\r\n/* 97:104 */ SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 98:105 */ String qiandaotime = df.format(new Date());\r\n/* 99:106 */ System.out.println(qiandaotime);\r\n/* 100: */ }", "java.lang.String getDate();", "public static void main(String[] args) {\n\t String str = String.format(\"%tc\", new Date());\r\n\t System.out.printf(str);\r\n\t \r\n//\t // display time and date\r\n//\t System.out.printf(\" Today is : %1$s %2$tB %2$td, %2$tY\", \"Due date : \", new Date());\r\n//\r\n\r\n\t System.out.println( new SimpleDateFormat(\"E yyyy.MM.dd 'at' hh:mm:ss a zzz\").format(new Date()));\r\n\t System.out.println( new SimpleDateFormat(\"EEEE, MMMM d, yyyy\").format(new Date()));\r\n\t}", "public static void main(String[] args) {\n Date date = new Date();\n System.out.println(date);\n System.out.println(getLocalDate(date));\n System.out.println(getDateFrom(date, -1));\n System.out.println(getDateFrom(date, 1));\n }", "public void verifyDate(){\n\n // currentDateandTime dataSingleton.getDay().getDate();\n\n }", "public static void main(String[] args) {\n\n LocalDate date = LocalDate.now();\n System.out.println(\"print date- \"+date);\n // print day \n DayOfWeek dow = date.getDayOfWeek();\n System.out.println(\"print day name - \"+ dow);\n int dateNo = date.getDayOfMonth();\n System.out.println(\"print day (number) - \"+ dateNo);\n // print month \n Month monthName = date.getMonth();\n System.out.println(\"print month name - \"+ monthName);\n int monthNo = date.getMonthValue();\n System.out.println(\"print month (Number) - \"+ monthNo);\n // print month \n int year = date.getYear();\n System.out.println(\"print year - \"+ year);\n // print particuller date like birth day\n LocalDate birthDay = LocalDate.of(1990, Month.NOVEMBER, 20);\n System.out.println(\"print particuller date - \"+birthDay);\n }", "public static void main(String[] args) throws ParseException {\n LocalDate dataAtual = LocalDate.now(); //temos a data atual aqui\n\n System.out.println(\"Data Atual: \" + dataAtual);\n\n LocalTime horaAtual = LocalTime.now(); //hora de agora\n\n System.out.println(\"Hora atual: \" + horaAtual.format(DateTimeFormatter.ofPattern(\"HH:mm:ss\")));\n\n LocalDateTime dataAutalHoraAtual = LocalDateTime.now();\n\n System.out.println(\"Hora e data atual: \" + dataAutalHoraAtual.format(DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm\")));\n }", "public static void main(String[] args) throws Exception {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat simpleformat = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss Z\");\n System.out.println(\"Today's date and time = \"+simpleformat.format(cal.getTime()));\n // displaying date\n simpleformat = new SimpleDateFormat(\"dd/MMMM/yyyy\");\n String str = simpleformat.format(new Date());\n System.out.println(\"Current Date = \"+str);\n // current time\n simpleformat = new SimpleDateFormat(\"HH:mm:ss\");\n String strTime = simpleformat.format(new Date());\n System.out.println(\"Current Time = \"+strTime);\n // displaying hour in HH format\n simpleformat = new SimpleDateFormat(\"HH\");\n String strHour = simpleformat.format(new Date());\n System.out.println(\"Hour in HH format = \"+strHour);\n\n\n\n //formato ideal\n simpleformat = new SimpleDateFormat(\"dd/MM/yyyy - HH:mm:ss\");\n String strTimeDay = simpleformat.format(new Date());\n System.out.println(\"Dia e Hora = \" + strTimeDay);\n\n }", "public String getDataMain(){\n\n calendar = Calendar.getInstance();\n thisYear = calendar.get(Calendar.YEAR);\n Log.d(TAG, \"# thisYear : \" + thisYear);\n\n thisMonth = calendar.get(Calendar.MONTH);\n Log.d(TAG, \"@ thisMonth : \" + thisMonth);\n\n thisDay = calendar.get(Calendar.DAY_OF_MONTH);\n Log.d(TAG, \"$ thisDay : \" + thisDay);\n\n mese = monthIntToString(thisMonth);\n\n /*\n switch (thisMonth){\n case 0:\n mese = \"Gennaio\";\n break;\n case 1:\n mese = \"Febbraio\";\n break;\n case 2:\n mese = \"Marzo\";\n break;\n case 3:\n mese = \"Aprile\";\n break;\n case 4:\n mese = \"Maggio\";\n break;\n case 5:\n mese = \"Giugno\";\n break;\n case 6:\n mese = \"Luglio\";\n break;\n case 7:\n mese = \"Agosto\";\n break;\n case 8:\n mese = \"Settembre\";\n break;\n case 9:\n mese = \"Ottobre\";\n break;\n case 10:\n mese = \"Novembre\";\n break;\n case 11:\n mese = \"Dicembre\";\n break;\n }\n */\n return mese;\n }", "@Test\n\t public void testDayInFinnish(){\n\t\t TimeSource mock = new MockTimeSource();\n\t\t Watch test = new FinnishWatch(mock);\t\n\t\t String expected = EnumarationDays.mercredi.getFinnish();\n\t\t String actual = test.getDay(Languages.Finnish);\n\t\t assertEquals(actual, expected);\t\t \n\t }", "@Override\n public void date_()\n {\n }", "public Date getPublish_tm() {\n return publish_tm;\n }", "java.lang.String getDatesEmployedText();", "public String Get_date() \n {\n \n return date;\n }", "public static void main(String[] args) {\n\t\tLocalDate today = LocalDate.now();\n\t\t\n\t\tLocalDate dayOffDate = today.with(temporal -> {\n\t\t\t//1. temporal로부터 기준이 되는 날짜를 구한다.\n\t\t\tLocalDate theDay = LocalDate.from(temporal);\n\t\t\t\n\t\t\t//2. 둘째, 넷째 일요일을 구한다.\n\t\t\tLocalDate secondSunday = theDay.with(dayOfWeekInMonth(2, DayOfWeek.SUNDAY));\n\t\t\tLocalDate fourthSunday = theDay.with(dayOfWeekInMonth(4, DayOfWeek.SUNDAY));\n\t\t\t\n\t\t\t//3. 기준날짜와 쉬는 날을 비교해준다.\n\t\t\t// 2번째 일요일보다 기준일이 이전이면, 쉬는날을 2번째 일요일로 리턴\n\t\t\t// 4번째 일요일보다 기준일이 이전이면, 쉬는날을 4번째 일요일로 리턴\n\t\t\t// 4번째 일요일보다 기준일이 지났으면, 쉬는날을 다음달 2번째 일요일로 리턴\n\t\t\tif(theDay.isBefore(secondSunday)) {\n\t\t\t\treturn secondSunday;\n\t\t\t}else if(theDay.isBefore(fourthSunday)) {\n\t\t\t\treturn fourthSunday;\n\t\t\t}else {\n\t\t\t\treturn theDay.plusMonths(1).with(dayOfWeekInMonth(2, DayOfWeek.SUNDAY));\n\t\t\t}\n\t\t});\n\t\t\n\t\tSystem.out.println(\"오늘 기준 다음 마트 쉬는 날은 \" + dayOffDate + \"일 입니다.\");\n\t}", "public Integer getKinkenriyousumYmd() {\r\n return kinkenriyousumYmd;\r\n }", "public static void main(String[] args) {\r\n\t\tDateTimeFormatter df=DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\r\n\tLocalDate date=LocalDate.now().plusDays(11).plusMonths(2).plusYears(1);\r\n\tSystem.out.println(df.format(date));\r\n\t}", "public Date getDateResponsed();", "public static void main(String[] args) {\n byte month=0;\n boolean days28 = month ==2;\n boolean days30 = month==4||month==6||month==9||month==11;\n boolean days31 = days28==false&&days30==false;\n if (days28){\n System.out.println(\"it has 28 days\");\n }\n if (days30){\n System.out.println(\"it has 30 days\");\n }\n if (days31){\n System.out.println(\"it has 31 days\");\n }\n\n }", "long getPublishTime();", "private void getDate() {\t// use the date service to get the date\r\n String currentDateTimeText = theDateService.getDateAndTime();\r\n this.send(currentDateTimeText);\r\n }", "public SweDate() {\n\t\tCalendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\t\tsetFields(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DAY_OF_MONTH),\n\t\t\t\tcal.get(Calendar.HOUR_OF_DAY) + cal.get(Calendar.MINUTE) / 60. + cal.get(Calendar.SECOND) / 3600.\n\t\t\t\t\t\t+ cal.get(Calendar.MILLISECOND) / 3600000.,\n\t\t\t\tSE_GREG_CAL);\n\t}", "public static void main(String[] args) {\n System.out.println(\"************\");\n System.out.println(\"Example01\");\n System.out.println(\"************\");\n System.out.println();\n System.out.print(\"100 days ago: \");\n System.out.println(LocalDate.now().plusDays(-100));\n System.out.print(\"Today: \");\n System.out.println(LocalDate.now());\n System.out.print(\"100 days later: \");\n System.out.println(LocalDate.now().plusDays(100));\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"************\");\n System.out.println(\"Example02\");\n System.out.println(\"************\");\n System.out.println();\n \n Period period = Period.between(LocalDate.now(), LocalDate.of(LocalDate.now().getYear(), 12, 25));\n System.out.print(period.getMonths());\n System.out.print(\" Months \");\n System.out.print(period.getDays());\n System.out.print(\" Days to Cristmas!\");\n }" ]
[ "0.6114887", "0.5998004", "0.59669936", "0.5927795", "0.5892362", "0.5767015", "0.56985855", "0.5693347", "0.56589127", "0.56582046", "0.56559", "0.5654136", "0.5653497", "0.5638857", "0.56350803", "0.5627467", "0.560635", "0.55662537", "0.55580866", "0.5554747", "0.55521274", "0.55432403", "0.5537079", "0.55333626", "0.55018026", "0.5497955", "0.54900455", "0.5480273", "0.54788476", "0.5473938", "0.5473938", "0.54673266", "0.5457417", "0.5457286", "0.5445698", "0.543955", "0.543799", "0.5436516", "0.5434358", "0.54341155", "0.5426183", "0.54248583", "0.54234535", "0.5420289", "0.54135007", "0.54091066", "0.5392565", "0.5387109", "0.53760463", "0.5374777", "0.5372231", "0.53711283", "0.53698134", "0.5369315", "0.53581065", "0.53573537", "0.5354931", "0.53538173", "0.53526866", "0.53498006", "0.53494334", "0.53410256", "0.5335868", "0.5334822", "0.5333047", "0.5332702", "0.53301156", "0.5327443", "0.5327337", "0.53170455", "0.53167754", "0.53167415", "0.5316459", "0.53011847", "0.529899", "0.5297352", "0.528877", "0.52872247", "0.52857625", "0.5285148", "0.5282376", "0.5278216", "0.527591", "0.5273958", "0.5273822", "0.52723944", "0.5270535", "0.5267475", "0.5259222", "0.52590257", "0.5257808", "0.5257299", "0.5254037", "0.5246451", "0.524551", "0.52449334", "0.5243163", "0.5243146", "0.52417535", "0.52398634", "0.52395254" ]
0.0
-1
Function for fetching the value from the object when value attribute is not present.
public String getObjectValue(WebDriver driver, WebElement webElement) { JavascriptExecutor e = (JavascriptExecutor) driver; return (String) e.executeScript(String.format("return $('#%s').val();", webElement.getAttribute("id"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValueFrom();", "@Override\n\tpublic Object getValue() {\n\t\treturn null;\n\t}", "public Optional<T> getValue() {\n return Optional.ofNullable(value);\n }", "@NotNull\n T getValue();", "public org.apache.xmlbeans.XmlObject getValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(VALUE$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Object getValue() { return _value; }", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "public Object getValue() { return this.value; }", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "default V getOrElse(V value) {\n return isEmpty() ? value : get();\n }", "E getValue();", "public String getValue() {\n\t\tString value;\n\t\ttry {\n\t\t\tvalue = this.getString(\"value\");\n\t\t} catch (Exception e) {\n\t\t\tvalue = null;\n\t\t}\n\t\treturn value;\n\t}", "public Object getElseValue();", "private static String getPropertyValueOrDefault(String value) {\n return value != null ? value : \"\";\n }", "public /* @Nullable */ T getValue() {\n return value;\n }", "final public Object getValue()\n {\n return getProperty(VALUE_KEY);\n }", "public abstract Value getValue();", "public S getValue() { return value; }", "public java.lang.String getValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }", "public Object getValue() {\r\n return oValue;\r\n }", "public abstract Object getValue(Context context) throws PropertyException;", "protected Object doGetValue() {\n\t\treturn value;\n\t}", "@Override\r\n public Object getValue() {\r\n return value;\r\n }", "@Override\n public Object getValue()\n {\n return value;\n }", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "public Object getValue()\n {\n return value;\n }", "public Object getValue(){\n \treturn this.value;\n }", "Object value();", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}", "public final Object getValue()\n {\n return m_Value;\n }", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}", "private DataValue getValueForKey(String key) {\n DataValue value = valueMap.get(key);\n if (value == null) {\n return DataValue.NO_VALUE;\n } else {\n return value;\n }\n }", "T getValue();", "T getValue();", "T getValue();", "T getValue();", "T getValue();", "T getValue();", "public Object getValue()\n {\n\treturn value;\n }", "public Object getValue()\r\n {\r\n return this.value;\r\n }", "@SuppressWarnings(\"unchecked\")\n @Nullable\n public T getValue() {\n Object data = mData;\n if (data != NOT_SET) {\n return (T) data;\n }\n return null;\n }", "@Override\r\n\tpublic Integer getValue() {\n\t\treturn null;\r\n\t}", "public Object getValue()\r\n\t{\r\n\t\treturn m_value;\r\n\t}", "ValueType getValue();", "public Object getValue() {\r\n return value;\r\n }", "protected T getValue0() {\n\t\treturn value;\n\t}", "public static <T> T getValue(T value){\n return value;\n }", "public Object getValue() {\n return element == null ? null : element.getValue();\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public String getValue () { return value; }", "public Value getValue(){\n return this.value;\n }", "String getVal();", "@Nullable\n private YAMLValue getVal() {\n return getKeyValue().getValue();\n }", "public Object getValue() {\n\t\treturn value;\n\t}", "public Object getValue() {\n\t\treturn value;\n\t}", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public A getValue() { return value; }", "@Override\n\t\tpublic V getValue(){\n\t\t\treturn value;\n\t\t}", "public @Nullable T getValue() {\n return this.value;\n }", "@Override\n public Object getValue(String key) {\n return null;\n }", "public boolean hasValue() { return false; }", "private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }", "public String getValue() { return value; }" ]
[ "0.7128072", "0.7128072", "0.7128072", "0.7128072", "0.7128072", "0.7128072", "0.7128072", "0.70452243", "0.6830089", "0.6733364", "0.6719113", "0.6709822", "0.6679156", "0.6671453", "0.6659978", "0.6659978", "0.6659978", "0.6659978", "0.6659978", "0.65862554", "0.65862554", "0.65862554", "0.6560912", "0.65566605", "0.65566605", "0.65566605", "0.65566605", "0.65566605", "0.65566605", "0.65456945", "0.65190643", "0.6495597", "0.64824796", "0.6476609", "0.6466768", "0.6459204", "0.64315087", "0.6429816", "0.6414155", "0.64135516", "0.64065945", "0.64005077", "0.6393479", "0.6385712", "0.63599473", "0.6352265", "0.6352265", "0.6352265", "0.6352265", "0.6352265", "0.6352265", "0.6352265", "0.6352265", "0.6352265", "0.6352265", "0.63481385", "0.634519", "0.6340859", "0.6338627", "0.6338627", "0.6338627", "0.63342404", "0.63297844", "0.63297844", "0.63297844", "0.6328634", "0.63280123", "0.63280123", "0.63280123", "0.63280123", "0.63280123", "0.63280123", "0.63278776", "0.6324673", "0.6323852", "0.6312467", "0.63047284", "0.62749976", "0.62676346", "0.626633", "0.6250532", "0.62412536", "0.62343836", "0.62343836", "0.62343836", "0.62343836", "0.62343836", "0.6233396", "0.6225049", "0.6203578", "0.61961484", "0.61925185", "0.61925185", "0.61920357", "0.6188093", "0.61877525", "0.61857885", "0.6177839", "0.61776394", "0.61755157", "0.6167454" ]
0.0
-1
Options passed to Beam to influence the job's execution environment
public interface ImportOptions extends PipelineOptions, DataflowPipelineOptions, DirectOptions { @Required @Description( "Default feast project to apply to incoming rows that do not specify project in its feature set reference.") String getDefaultFeastProject(); void setDefaultFeastProject(String defaultProject); @Required @Description( "JSON string representation of the SpecsPipe configuration." + "Job will use this to know where read new FeatureSetSpec from (kafka broker & topic)" + "and where send acknowledgment on successful update of job's state to." + "SpecsStreamingUpdateConfig follows the format in feast.core.IngestionJob.SpecsStreamingUpdateConfig proto." + "The conversion of Proto message to JSON should follow this mapping:" + "https://developers.google.com/protocol-buffers/docs/proto3#json" + "Please minify and remove all insignificant whitespace such as newline in the JSON string" + "to prevent error when parsing the options") String getSpecsStreamingUpdateConfigJson(); void setSpecsStreamingUpdateConfigJson(String json); @Required @Description( "JSON string representation of the Source that will be used to read FeatureRows from." + "Source follows the format in featst.core.Source proto. Currently only kafka source is supported" + "The conversion of Proto message to JSON should follow this mapping:" + "https://developers.google.com/protocol-buffers/docs/proto3#json" + "Please minify and remove all insignificant whitespace such as newline in the JSON string" + "to prevent error when parsing the options") String getSourceJson(); void setSourceJson(String json); @Required @Description( "JSON string representation of the Store that import job will write FeatureRow to." + "Store follows the format in feast.core.Store proto." + "Multiple Store can be passed by specifying '--store={...}' multiple times" + "The conversion of Proto message to JSON should follow this mapping:" + "https://developers.google.com/protocol-buffers/docs/proto3#json" + "Please minify and remove all insignificant whitespace such as newline in the JSON string" + "to prevent error when parsing the options") List<String> getStoresJson(); void setStoresJson(List<String> storeJson); @Description("Properties Map for Kafka Consumer used to pull FeatureRows") Map<String, String> getKafkaConsumerProperties(); void setKafkaConsumerProperties(Map<String, String> kafkaConsumerProperties); @Description( "(Optional) Deadletter elements will be written to this BigQuery table." + "Table spec must follow this format PROJECT_ID:DATASET_ID.PROJECT_ID" + "The table will be created if not exists.") String getDeadLetterTableSpec(); /** * @param deadLetterTableSpec (Optional) BigQuery table for storing elements that failed to be * processed. Table spec must follow this format PROJECT_ID:DATASET_ID.PROJECT_ID */ void setDeadLetterTableSpec(String deadLetterTableSpec); @Description("MetricsAccumulator exporter type to instantiate. Supported type: statsd") @Default.String("none") String getMetricsExporterType(); void setMetricsExporterType(String metricsExporterType); @Description("Host to write the metrics to. Required if the metrics exporter is set to StatsD.") @Default.String("localhost") String getStatsdHost(); void setStatsdHost(String StatsdHost); @Description( "Port on StatsD server to write metrics to. Required if the metrics exporter is set to StatsD.") @Default.Integer(8125) int getStatsdPort(); void setStatsdPort(int StatsdPort); @Description( "Fixed window size in seconds (default 60) to apply before aggregating the numerical value of " + "features and exporting the aggregated values as metrics. Refer to " + "feast/ingestion/transform/metrics/WriteFeatureValueMetricsDoFn.java" + "for the metric nameas and types used.") @Default.Integer(60) int getWindowSizeInSecForFeatureValueMetric(); void setWindowSizeInSecForFeatureValueMetric(int seconds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void runJobFlow() throws InterruptedException{\n JobFlowInstancesConfig instances = new JobFlowInstancesConfig();\n //********************************************************************//\n instances.setHadoopVersion(HADOOP_VERSION);\n instances.withEc2KeyName(\"ayuda-vp1\");\n instances.setInstanceCount(MASTER_INSTANCE_COUNT);\n //instances.setInstanceGroups(instanceGroups)\n instances.setMasterInstanceType(InstanceType.M24xlarge.toString());\n instances.setSlaveInstanceType(InstanceType.M24xlarge.toString());\n //********************************************************************//\n HadoopJarStepConfig hadoopJarStep1 = new HadoopJarStepConfig()\n .withJar(S3N_WORD_COUNT_JAR_) // This should be a full map reduce application.\n .withArgs(BUCKET_NAME+\"inWC\", BUCKET_NAME+\"outWC\");\n \n StepConfig stepConfig1 = new StepConfig()\n .withName(\"wordcount\")\n .withHadoopJarStep(hadoopJarStep1)\n .withActionOnFailure(\"TERMINATE_JOB_FLOW\");\n\n //********************************************************************//\n \n //********************************************************************//\n HadoopJarStepConfig hadoopJarStep2 = new HadoopJarStepConfig()\n .withJar(S3N_MAX_WORD_COUNT_JAR) // This should be a full map reduce application.\n .withArgs(BUCKET_NAME+\"outWC\", BUCKET_NAME+\"outXWC\",\"hate\",\"10\");\n \n \n StepConfig stepConfig2 = new StepConfig()\n .withName(\"maxwordcount\")\n .withHadoopJarStep(hadoopJarStep2)\n .withActionOnFailure(\"TERMINATE_JOB_FLOW\");\n //********************************************************************//\n \n Collection<StepConfig> csc = new ArrayList<StepConfig>();\n csc.add(stepConfig1);\n csc.add(stepConfig2);\n \n // BootstrapActions bootstrapActions = new BootstrapActions();\n RunJobFlowRequest runFlowRequest = new RunJobFlowRequest()\n .withName(FLOW_NAME)\n .withInstances(instances)\n .withSteps(csc)\n .withLogUri(BUCKET_NAME+\"debug\")\n /*.withBootstrapActions(\n bootstrapActions.newRunIf(\n \"instance.isMaster=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.JobTracker, 4096)\n .build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningNameNode=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.NameNode, 4096).build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningDataNode=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.DataNode, 4096).build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningJobTracker=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.JobTracker, 4096).build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningTaskTracker=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.TaskTracker, 4096).build()) \n \n /*,\n \n bootstrapActions.newRunIf(\n \"instance.isSlave=true\",\n bootstrapActions.newConfigureHadoop()\n .withKeyValue(ConfigFile.Site,\"mapred.tasktracker.map.tasks.maximum\", \"4\")) \n )*/;\n \n \n RunJobFlowResult runJobFlowResult = emr.runJobFlow(runFlowRequest);\n\t \n\t String jobFlowId = runJobFlowResult.getJobFlowId();\n\t System.out.println(\"Ran job flow with id: \" + jobFlowId);\n\t \n\t //wasFinished(runJobFlowResult);\n\t \n }", "public static void main(String[] args) {\r\n\r\n\t\toptions = PipelineOptionsFactory.fromArgs(args).withValidation().as(DataIngestionPipelineOptions.class);\r\n\t\t\r\n\t\toptions.setRunner(DataflowRunner.class);\r\n\r\n\t\tPipeline p = Pipeline.create(options);\t\t\r\n\t\t\r\n\t\t//PipelineOptions pOptions = p.getOptions();\r\n\t\t\r\n\t\t//System.out.println(\"options id\" + pOptions.getOptionsId());\r\n\t\t\r\n\t\tTable table = BigQueryOptions.getDefaultInstance().getService().getTable(options.getBqDataset(), options.getBqTargetTable());\r\n\r\n\t\tSchema schema = table.getDefinition().getSchema();\r\n\r\n\t\tList<Field> tableFieldSchema = schema.getFields();\r\n\r\n\t\tList<String> columnNames = new ArrayList<String>();\r\n\r\n\t\tlogger.info(\"tableFieldSchema =>\" + tableFieldSchema);\r\n\r\n\t\tfor (Field fieldSchema : tableFieldSchema) {\r\n\t\t\tcolumnNames.add(fieldSchema.getName());\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"column names====>\"+ columnNames);\r\n\t\t\r\n\t\tlogger.info(String.format(\"The job will be executed on project: %1$s dataset: %2$s table: %3$s\",\r\n\t\t\t\toptions.getProject(), options.getBqDataset(), options.getBqTargetTable()));\r\n\t\t\r\n\t\tp.apply(\"ReadCSVFromCloudStorage\", TextIO.read().from(options.getInputFile()))\t\r\n\t\t .apply(ParDo.of(new StringToRowConverter(columnNames)))\r\n\t\t .apply(BigQueryIO.writeTableRows()\r\n\t\t\t\t.to(options.getProject().trim() + \":\" + options.getBqDataset().trim() + \".\" + options.getBqTargetTable().trim())\r\n\t\t\t\t.withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_NEVER)\r\n\t\t\t\t.withWriteDisposition(getWriteDisposition (options)));\r\n\r\n\t\r\n\t\tPipelineResult result = p.run();\r\n\t\t\r\n\t\tString jobId = ((DataflowPipelineJob) result).getJobId();\t\r\n\t\t\t\t\t\t\r\n\t\tDataflowClient client = DataflowClient.create(options);\r\n\t\t\r\n\t\tlogger.info(\"jobId======>\" + jobId);\r\n\t\t\r\n\t\tswitch (result.waitUntilFinish()) {\r\n\t\t\tcase CANCELLED:\r\n\t\t\t\tbreak;\r\n\t\t\tcase DONE:\r\n\t\t\t\t//System.out.println(\"The status is done\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tJob job = client.getJob(jobId);\r\n\t\t\t\t\t//logger.info(\"Job Details================>\" + job.getId(), job.getName(), job.getCreateTime());\r\n\t\t\t\t\t//logger.info(\"Job create time =============>\" + job.getCreateTime());\r\n\t\t\t\t\t//logger.info(\"Job object================>\" + job);\r\n\t\t\t\t\tMetadataTracker.insert(job.getId().toString(), \"DATA INGESTION\", \"CSV\", options.getInputFile(), options.getOutput() == null ? \"\" : options.getOutput(), job.getCreateTime().toString(), job.getCurrentStateTime().toString(), \"45356\", options.getBqDataset(), options.getBqTargetTable());\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\tcase FAILED:\r\n\t\t\t\tbreak;\r\n\t\t\tcase RUNNING:\r\n\t\t\t\tbreak;\r\n\t\t\tcase STOPPED:\r\n\t\t\t\tbreak;\r\n\t\t\tcase UNKNOWN:\r\n\t\t\t\tbreak;\r\n\t\t\tcase UPDATED:\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\t\t\t\r\n\t\t}\r\n\t\t//MetadataTracker.insert(id, jobType, sourceType, sourcePath, targetPath, startTime, endTime, count, datasetName, tableName);\t\t\t\r\n\t\t\r\n\t\t//MetadataTracker.insert(pOptions.getOptionsId(), \"DATA INGESTION\", \"CSV\", options.getInputFile(), \"\", new DateTime(12312), new DateTime(12324), 434343, options.getBqDataset(), options.getBqTargetTable());\r\n\t}", "protected void beforeJobExecution() {\n\t}", "@Override\n\t\t\tpublic void beforeJob(JobExecution jobExecution) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void beforeJob(JobExecution arg0) {\n\t\t\n\t}", "static PipelineResult runIngestionPipeline(IngestionPipelineOptions options) {\n Pipeline pipeline = Pipeline.create(options);\n long startTime =\n IngestionPipelineOptions.calculatePipelineStart(\n options.getStartTime(), options.getDuration(), 1, Clock.systemUTC());\n PCollection<DataShare> dataShares =\n pipeline\n .apply(new FirestoreReader(startTime))\n // Ensure distinctness of data shares based on document path\n .apply(\n Distinct.<Document, String>withRepresentativeValueFn(\n // Not using a lambda here as Beam has trouble inferring a coder\n new SerializableFunction<Document, String>() {\n @Override\n public String apply(Document document) {\n return document.getName();\n }\n }))\n .apply(ParDo.of(new ConstructDataSharesFn()));\n processDataShares(dataShares).apply(\"SerializePacketHeaderSig\", ParDo.of(new BatchWriterFn()));\n return pipeline.run();\n }", "@Override\n protected UnaryFunction<PipelineOptions, Pipeline> getCreatePipelineFromOpts() {\n return opts -> {\n opts.setRunner(runner);\n if (runner.getSimpleName().equals(\"FlinkRunner\")) {\n prepareFlinkEnvironment(opts.as(FlinkPipelineOptions.class));\n }\n return Pipeline.create(opts);\n };\n }", "public interface IJobshelper {\n\n\t/**\n\t * Can do some initialization for task like file location, Emailer list, Emailer\n\t * message etc This is used to set some configuration for this Job and should be\n\t * using some properties file so that each Job could use specific configuration\n\t * \n\t * @throws JobExecutionException\n\t */\n\tpublic void initialJobContext(String configFileName) throws JobExecutionException;\n\n}", "@Override\n public void prepareRun(BatchSourceContext context) throws IOException {\n Map<String, String> arguments = new HashMap<>();\n FileSetArguments.setInputPaths(arguments, config.files);\n context.setInput(Input.ofDataset(config.fileSetName, arguments));\n }", "@Override\n public void beforeJob(JobExecution jobExecution) {\n super.beforeJob(jobExecution);\n }", "@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}", "@Test\n public void parameterTest () throws SchedulerException, InterruptedException {\n // define the job and tie it to our SimpleJob class\n JobDetail job = JobBuilder.newJob(DataParseJob.class)\n .withIdentity(\"dataParseJob\", \"group2\") // name \"dataParseJob\", group \"group2\"\n .usingJobData(\"jobSays\", \"Hello World!\")\n .usingJobData(\"myFloatValue\", 3.141f)\n .build();\n\n // Trigger the job to run now, and then repeat every 40 seconds\n Trigger trigger = TriggerBuilder.newTrigger()\n .withIdentity(\"trigger2\", \"group2\")\n .startNow()\n .withSchedule(SimpleScheduleBuilder.simpleSchedule()\n .withIntervalInSeconds(10)\n .repeatForever())\n .build();\n\n // Tell quartz to schedule the job using our trigger\n scheduler.scheduleJob(job, trigger);\n\n // make quartz keep going\n while(true) {\n Thread.sleep(3000);\n }\n }", "@Test\n public void shouldRunJob() {\n new DatasetChallenge(\"file:///tmp/yelp_academic_dataset_business.json.gz\").run(spark);\n }", "void beforeJobExecuted(ShardingContexts shardingContexts);", "@Override\n public void execute(IEnvironment env)\n {\n \n }", "public static void main(String[] args) {\n\t\torderSubmitFlowInAmazon();\n\t}", "public void initialJobContext(String configFileName) throws JobExecutionException;", "@Override\n protected void setup(Mapper.Context context) {\n \n String settingsStr = context.getConfiguration().get(ParameterProcessing.SETTINGS_STR);\n Settings settings = Settings.loadFromString(settingsStr);\n Settings.setSettings(settings);\n // System.out.println(\"Mapper setup settings = \" + Settings.getSettings());\n\n String projectStr = context.getConfiguration().get(ParameterProcessing.PROJECT);\n Project project = Project.loadFromString(projectStr);\n \n if (project.isEnvHadoop()) {\n // we need the system check only if we are not in local mode\n OsUtil.systemCheck();\n List <String> status = OsUtil.getSystemSummary();\n for (String stat: status) {\n logger.info(stat);\n }\n Configuration conf = context.getConfiguration();\n String taskId = conf.get(\"mapred.task.id\");\n if (taskId != null) {\n Settings.getSettings().setProperty(\"mapred.task.id\", taskId);\n }\n \n String metadataFileContents = context.getConfiguration().get(EmailProperties.PROPERTIES_FILE);\n try {\n new File(EmailProperties.PROPERTIES_FILE).getParentFile().mkdirs();\n Files.write(metadataFileContents.getBytes(), new File(EmailProperties.PROPERTIES_FILE));\n } catch (IOException e) {\n logger.error(\"Problem writing the email properties file to disk\", e);\n }\n }\n \n if (project.isLuceneIndexEnabled()) {\n luceneIndex = new LuceneIndex(settings.getLuceneIndexDir(),\n project.getProjectCode(), \"\" + context.getTaskAttemptID());\n luceneIndex.init();\n }\n }", "interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next definition stage\n */\n WithCreate withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }", "public static void main(String[] args) throws Exception {\n InputStream clientCert = new FileInputStream(System.getenv(\"TEMPORAL_CLIENT_CERT\"));\n // PKCS8 client key, which should look like:\n // -----BEGIN PRIVATE KEY-----\n // ...\n // -----END PRIVATE KEY-----\n InputStream clientKey = new FileInputStream(System.getenv(\"TEMPORAL_CLIENT_KEY\"));\n // For temporal cloud this would likely be ${namespace}.tmprl.cloud:7233\n String targetEndpoint = System.getenv(\"TEMPORAL_ENDPOINT\");\n // Your registered namespace.\n String namespace = System.getenv(\"TEMPORAL_NAMESPACE\");\n // Create SSL enabled client by passing SslContext, created by SimpleSslContextBuilder.\n WorkflowServiceStubs service =\n WorkflowServiceStubs.newServiceStubs(\n WorkflowServiceStubsOptions.newBuilder()\n .setSslContext(SimpleSslContextBuilder.forPKCS8(clientCert, clientKey).build())\n .setTarget(targetEndpoint)\n .build());\n\n // Now setup and start workflow worker, which uses SSL enabled gRPC service to communicate with\n // backend.\n // client that can be used to start and signal workflows.\n WorkflowClient client =\n WorkflowClient.newInstance(\n service, WorkflowClientOptions.newBuilder().setNamespace(namespace).build());\n // worker factory that can be used to create workers for specific task queues\n WorkerFactory factory = WorkerFactory.newInstance(client);\n // Worker that listens on a task queue and hosts both workflow and activity implementations.\n factory.newWorker(TASK_QUEUE);\n // TODO now register your workflow types and activity implementations.\n // worker.registerWorkflowImplementationTypes(...);\n // worker.registerActivitiesImplementations(...);\n factory.start();\n }", "public EchoJob(){\n\t\tsuper.vertexStages = new ArrayList<VertexStage>();\n\t\t\n\t\t// note: input/output job directory HDFS paths are specified on client.sh command line\n\t\t\n\t\t// define the first stage & add to stage list\n\t\t// - JobServer will load this class, instantiate it\n\t\t// and invoke the getVertexStages() (defined in\n\t\t// the super-class) to get the list of stages\n\t\tVertexStage echoStage = new VertexStage();\n\t\techoStage.setVertex(EchoVertex.class);\n\t\tvertexStages.add(echoStage);\n\t}", "public Flow createFlow(ProcessXmlOptions options) throws IOException, InterruptedException {\n System.setProperty(\"javax.xml.parsers.DocumentBuilderFactory\",\n \"com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl\");\n\n JobConf conf = new JobConf();\n conf.set(\"mapred.child.java.opts\", \"-server\");\n \n Properties props = new Properties();\n FlowConnector.setApplicationJarClass(props, ProcessXmlTool.class);\n\n if (!options.isDebugLogging()) {\n props.put(\"log4j.logger\", \"cascading=INFO\");\n }\n \n MultiMapReducePlanner.setJobConf(props, conf);\n\n Tap sourceTap = new Hfs(new TextLine(), options.getInputFile());\n \n Tap sinkTap = new Hfs(new SequenceFile(FIELDS), options.getOutputDir(), SinkMode.REPLACE);\n \n Pipe xmlPipe = new Pipe(\"xml\");\n xmlPipe = new Each(xmlPipe, new ParseXml());\n xmlPipe = new Each(xmlPipe, new Debug());\n \n FlowConnector flowConnector = new FlowConnector(props);\n return flowConnector.connect(sourceTap, sinkTap, xmlPipe);\n }", "@Bean\n JobLauncher jobLauncher(JobRepository jobRepository, TaskExecutor taskExecutor) {\n SimpleJobLauncher jobLauncher = new SimpleJobLauncher();\n jobLauncher.setJobRepository(jobRepository);\n //jobLauncher.setTaskExecutor(taskExecutor);\n return jobLauncher;\n }", "com.google.cloud.aiplatform.v1.Context getPipelineRunContext();", "public static void main(String[] args) {\n new ExecutionPipeline(\n new ExerciseSelector(\"sheet\"),\n new ExerciseSheetFactory(\n new ExerciseSelector()\n )).run();\n }", "public void run(Object options);", "protected BatchImageBuilder(StateImpl state, ConfigurableOption[] options) {\r\n\tfDC = (JavaDevelopmentContextImpl) state.getDevelopmentContext();\r\n\tstate.setCompilerOptions(options);\r\n\tfCompilerOptions = options;\r\n\tfNewState = state;\r\n\tfWorkQueue = new WorkQueue();\r\n}", "public static void main(String[] args) {\n Config config = ResourceAllocator.loadConfig(new HashMap<>());\n System.out.println(\"read config values: \" + config.size());\n System.out.println(config);\n\n // build JobConfig\n HashMap<String, Object> configurations = new HashMap<>();\n configurations.put(SchedulerContext.THREADS_PER_WORKER, 8);\n\n JobConfig jobConfig = new JobConfig();\n jobConfig.putAll(configurations);\n\n // build the job\n Twister2Job twister2Job = Twister2Job.loadTwister2Job(config, jobConfig);\n\n // now submit the job\n Twister2Submitter.submitJob(twister2Job, config);\n\n // now terminate the job\n terminateJob(config);\n// jobWriteTest(twister2Job);\n// jobReadTest();\n }", "AgentPolicyBuilder setJobPriority(JobPriority jobPriority);", "public interface ExecutionTargetContextAware {\n\n /**\n * @param context the context used by the application\n */\n void setExecutionTargetContext(ExecutionTargetContext context);\n\n}", "@SuppressWarnings(\"deprecation\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tfinal DataflowPipelineOptions options = PipelineOptionsFactory.as(DataflowPipelineOptions.class);\r\n\t\tDefineProperties.configurePipeLineOptions(options);\r\n\t\t//FileSystems.setDefaultPipelineOptions(options);\r\n\r\n\t \tfinal Pipeline pipeline = Pipeline.create(options);\r\n\t \t \t\t\r\n\t \t//PCollection<TableRow> tableRow1 = pipeline.apply(BigQueryIO.read().fromQuery(PropertyUtil.getProperty(\"dataflow.job.query1\")));\r\n\t \t//PCollection<TableRow> tableRow2 = pipeline.apply(BigQueryIO.read().fromQuery(PropertyUtil.getProperty(\"dataflow.job.query2\")));\r\n \t\t//tableRow1.apply(\"ConverToString\",ParDo.of(new TableRowtoString()))\r\n\t\t//.apply(TextIO.write().to(PropertyUtil.getProperty(\"dataflow.job.gcswritefile\")));\t\t\r\n\t \t\r\n\t \tString key1 = PropertyUtil.getProperty(\"dataflow.job.joinkey1\");\r\n\t \tString key2 = PropertyUtil.getProperty(\"dataflow.job.joinkey2\");\r\n\t \t\t \t\r\n\t \tWithKeys<String, TableRow> joinkey = WithKeys.of(\r\n\t \t\t (TableRow row) ->\r\n\t \t\t String.format(\"%s#%s\",\r\n\t \t\t row.get(key1)\r\n\t \t\t ,row.get(key2)\r\n\t \t\t ))\r\n\t \t\t .withKeyType(TypeDescriptors.strings());\r\n\t \t\r\n\t \tPCollection<KV<String, TableRow>> table1Rows = pipeline\r\n\t \t\t .apply(\"ReadTable1\",BigQueryIO.read().fromQuery(PropertyUtil.getProperty(\"dataflow.job.query1\")))\r\n\t \t\t .apply(\"WithKeys\", joinkey);\r\n\r\n\t \tPCollection<KV<String, TableRow>> table2Rows = pipeline\r\n\t\t \t\t.apply(\"ReadTable2\",BigQueryIO.read().fromQuery(PropertyUtil.getProperty(\"dataflow.job.query2\")))\r\n\t\t \t .apply(\"WithKeys\", joinkey);\r\n\t \t\r\n\r\n\r\n\t\tfinal TupleTag<TableRow> table1Tag = new TupleTag<>();\r\n\t \tfinal TupleTag<TableRow> table2Tag = new TupleTag<>();\r\n\t \t//final TupleTag<TableRow> table3Tag = new TupleTag<>();\r\n\r\n\t \t \t\r\n\t //Merge collection values into a CoGbkResult collection\r\n\t \tPCollection<KV<String, CoGbkResult>> coGbkResult = KeyedPCollectionTuple\r\n\t \t .of(table1Tag, table1Rows)\r\n\t \t .and(table2Tag, table2Rows)\r\n\t \t //.and(table3Tag, table3Rows)\r\n\t \t .apply(\"joinkey\", CoGroupByKey.create());\r\n\t \t\r\n\r\n\t \t\r\n\t //Final coGroup Result\r\n\t \tcoGbkResult.apply(\"ProcessResults\", \r\n\t \t\t ParDo.of(new DoFn<KV<String, CoGbkResult>, TableRow>()\r\n\t \t{\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\t\t@ProcessElement\r\n\t \t\tpublic void processElement(ProcessContext c) throws Exception {\r\n\t \t {\t\r\n\t \t\t KV<String, CoGbkResult> e = c.element();\r\n\t \t\t String key=c.element().getKey();\r\n\t \t\t CoGbkResult result = e.getValue();\r\n\t \t\t \r\n\t \t\t \r\n\t \t\t List<TableRow> pt1Val = (List<TableRow>) result.getAll(table1Tag);\r\n\t \t\t List<TableRow> pt2Val = (List<TableRow>) result.getAll(table2Tag);\r\n\r\n\t \t\t TableRow row = new TableRow();\r\n\t \t\t TableRow row1 = new TableRow();\r\n\t \t\t \r\n\t \t\t TableFieldSchema col = new TableFieldSchema();\r\n\t \t\t TableFieldSchema col1 = new TableFieldSchema();\r\n\t \t\t\r\n\t \t\t\t \t\t \r\n\t \t\t if(pt1Val != null && pt2Val != null) \r\n\t \t\t {\r\n\t \t\t \t\r\n\t \t\t \tfor(TableRow a : pt1Val) \r\n\t \t\t \t{\r\n\t \t\t \t\tif(a.values()!=null)\r\n\t \t\t \t\t{ \t\r\n\t \t\t \t\t\tfor (int i = 0; i < 4 ; i++) \r\n\t \t\t \t\t\t{\r\n\t \t\t \t\t\t col = Table_Schema.getTableSchema().getFields().get(i);\r\n\t \t\t \t\t\t row.set(col.getName(), a.get(col.getName()));\r\n\t \t\t \t\t\t}\r\n\t \t\t \t\t}\r\n\t \t\t \t }\r\n\t \t\t \t\r\n\t \t\t \t for(TableRow b : pt2Val) \r\n\t \t\t \t \t{\r\n\t \t\t \t\t if(b.values()!=null)\r\n\t \t\t \t\t { \t\t\r\n\t \t\t \t\t\t for (int i = 0; i < 4 ; i++) \r\n\t \t\t \t\t\t {\r\n\t \t\t \t\t\t\t col1 = Table_Schema.getTableSchema().getFields().get(i);\r\n\t \t\t \t\t\t\t row1.set(col1.getName(), b.get(col1.getName()));\r\n\t \t\t \t\t\t }\r\n\t \t\t \t\t }\r\n\t \t\t \t \t}\r\n\r\n\t \t\t \t//Right Outer Join\r\n\t \t\t \t//if(row.isEmpty())\t\r\n\t \t\t \t\t//{c.output(row);}\r\n\t \t\t \t\r\n\t \t\t //Left Outer Join\r\n\t \t\t \t//if(row1.isEmpty())\t\r\n\t \t\t \t\t//{c.output(row1);}\r\n\t \t\t \t\r\n\t \t\t //Inner Join\r\n \t\t \tif(!row.isEmpty() && !row1.isEmpty())\t\r\n \t\t \t \t{c.output(row);}\r\n\t \t\t \t\r\n\t \t \r\n\t \t \t\t}}}\r\n\t \t }))\r\n\t \t\t//.apply(TextIO.write().to(PropertyUtil.getProperty(\"dataflow.job.gcswritefile\")));\r\n\t \t .apply(\"WriteToBq\", BigQueryIO.writeTableRows()\r\n\t .to(PropertyUtil.getProperty(\"dataflow.job.tablename\"))\r\n\t .withWriteDisposition(WriteDisposition.WRITE_TRUNCATE)\r\n\t .withCreateDisposition(CreateDisposition.CREATE_NEVER));\r\n\t\t \t\r\n\t \tpipeline.run().waitUntilFinish();\r\n\t}", "JobResponse apply(Context context);", "public TriggerEchoJob() {\n\t}", "public interface EnvironmentRunner {\n void run(Environment environment, Config config);\n}", "void prepareForExecution(boolean alwaysPopulateWorkGraph);", "public void setLocation(String location, Job job) throws IOException\n {\n conf = HadoopCompat.getConfiguration(job);\n setLocationFromUri(location);\n\n if (ConfigHelper.getInputSlicePredicate(conf) == null)\n {\n SliceRange range = new SliceRange(slice_start, slice_end, slice_reverse, limit);\n SlicePredicate predicate = new SlicePredicate().setSlice_range(range);\n ConfigHelper.setInputSlicePredicate(conf, predicate);\n }\n if (System.getenv(PIG_WIDEROW_INPUT) != null)\n widerows = Boolean.parseBoolean(System.getenv(PIG_WIDEROW_INPUT));\n if (System.getenv(PIG_USE_SECONDARY) != null)\n usePartitionFilter = Boolean.parseBoolean(System.getenv(PIG_USE_SECONDARY));\n if (System.getenv(StorageHelper.PIG_INPUT_SPLIT_SIZE) != null)\n {\n try\n {\n ConfigHelper.setInputSplitSize(conf, Integer.parseInt(System.getenv(StorageHelper.PIG_INPUT_SPLIT_SIZE)));\n }\n catch (NumberFormatException e)\n {\n throw new IOException(\"PIG_INPUT_SPLIT_SIZE is not a number\", e);\n } \n } \n\n if (usePartitionFilter && getIndexExpressions() != null)\n ConfigHelper.setInputRange(conf, getIndexExpressions());\n\n if (username != null && password != null)\n ConfigHelper.setInputKeyspaceUserNameAndPassword(conf, username, password);\n\n if (splitSize > 0)\n ConfigHelper.setInputSplitSize(conf, splitSize);\n if (partitionerClass!= null)\n ConfigHelper.setInputPartitioner(conf, partitionerClass);\n if (rpcPort != null)\n ConfigHelper.setInputRpcPort(conf, rpcPort);\n if (initHostAddress != null)\n ConfigHelper.setInputInitialAddress(conf, initHostAddress);\n\n ConfigHelper.setInputColumnFamily(conf, keyspace, column_family, widerows);\n setConnectionInformation();\n\n if (ConfigHelper.getInputRpcPort(conf) == 0)\n throw new IOException(\"PIG_INPUT_RPC_PORT or PIG_RPC_PORT environment variable not set\");\n if (ConfigHelper.getInputInitialAddress(conf) == null)\n throw new IOException(\"PIG_INPUT_INITIAL_ADDRESS or PIG_INITIAL_ADDRESS environment variable not set\");\n if (ConfigHelper.getInputPartitioner(conf) == null)\n throw new IOException(\"PIG_INPUT_PARTITIONER or PIG_PARTITIONER environment variable not set\");\n if (loadSignature == null)\n loadSignature = location;\n initSchema(loadSignature);\n }", "public interface GcsOptions extends ApplicationNameOptions, GcpOptions, PipelineOptions {\n /** The GcsUtil instance that should be used to communicate with Google Cloud Storage. */\n @JsonIgnore\n @Description(\"The GcsUtil instance that should be used to communicate with Google Cloud Storage.\")\n @Default.InstanceFactory(GcsUtil.GcsUtilFactory.class)\n @Hidden\n GcsUtil getGcsUtil();\n\n void setGcsUtil(GcsUtil value);\n\n /**\n * The ExecutorService instance to use to create threads, can be overridden to specify an\n * ExecutorService that is compatible with the user's environment. If unset, the default is to use\n * {@link ExecutorOptions#getScheduledExecutorService()}.\n *\n * @deprecated use {@link ExecutorOptions#getScheduledExecutorService()} instead\n */\n @JsonIgnore\n @Default.InstanceFactory(ExecutorServiceFactory.class)\n @Hidden\n @Deprecated\n ExecutorService getExecutorService();\n\n /**\n * @deprecated use {@link ExecutorOptions#setScheduledExecutorService} instead. If set, it may\n * result in multiple ExecutorServices, and therefore thread pools, in the runtime.\n */\n @Deprecated\n void setExecutorService(ExecutorService value);\n\n /** GCS endpoint to use. If unspecified, uses the default endpoint. */\n @JsonIgnore\n @Hidden\n @Description(\"The URL for the GCS API.\")\n String getGcsEndpoint();\n\n void setGcsEndpoint(String value);\n\n /**\n * The buffer size (in bytes) to use when uploading files to GCS. Please see the documentation for\n * {@link AsyncWriteChannelOptions#getUploadChunkSize} for more information on the restrictions\n * and performance implications of this value.\n */\n @Description(\n \"The buffer size (in bytes) to use when uploading files to GCS. Please see the \"\n + \"documentation for AsyncWriteChannelOptions.getUploadChunkSize for more \"\n + \"information on the restrictions and performance implications of this value.\\n\\n\"\n + \"https://github.com/GoogleCloudPlatform/bigdata-interop/blob/master/util/src/main/java/\"\n + \"com/google/cloud/hadoop/util/AsyncWriteChannelOptions.java\")\n @Nullable\n Integer getGcsUploadBufferSizeBytes();\n\n void setGcsUploadBufferSizeBytes(@Nullable Integer bytes);\n\n /**\n * The class of the validator that should be created and used to validate paths. If pathValidator\n * has not been set explicitly, an instance of this class will be constructed and used as the path\n * validator.\n */\n @Description(\n \"The class of the validator that should be created and used to validate paths. \"\n + \"If pathValidator has not been set explicitly, an instance of this class will be \"\n + \"constructed and used as the path validator.\")\n @Default.Class(GcsPathValidator.class)\n Class<? extends PathValidator> getPathValidatorClass();\n\n void setPathValidatorClass(Class<? extends PathValidator> validatorClass);\n\n /**\n * The path validator instance that should be used to validate paths. If no path validator has\n * been set explicitly, the default is to use the instance factory that constructs a path\n * validator based upon the currently set pathValidatorClass.\n */\n @JsonIgnore\n @Description(\n \"The path validator instance that should be used to validate paths. \"\n + \"If no path validator has been set explicitly, the default is to use the instance factory \"\n + \"that constructs a path validator based upon the currently set pathValidatorClass.\")\n @Default.InstanceFactory(PathValidatorFactory.class)\n PathValidator getPathValidator();\n\n void setPathValidator(PathValidator validator);\n\n /** If true, reports metrics of certain operations, such as batch copies. */\n @Description(\"Whether to report performance metrics of certain GCS operations.\")\n @Default.Boolean(false)\n Boolean getGcsPerformanceMetrics();\n\n void setGcsPerformanceMetrics(Boolean reportPerformanceMetrics);\n\n /**\n * Returns the default {@link ExecutorService} to use within the Apache Beam SDK. The {@link\n * ExecutorService} is compatible with AppEngine.\n */\n class ExecutorServiceFactory implements DefaultValueFactory<ExecutorService> {\n @Override\n public ExecutorService create(PipelineOptions options) {\n return options.as(ExecutorOptions.class).getScheduledExecutorService();\n }\n }\n\n /**\n * Creates a {@link PathValidator} object using the class specified in {@link\n * #getPathValidatorClass()}.\n */\n class PathValidatorFactory implements DefaultValueFactory<PathValidator> {\n @Override\n public PathValidator create(PipelineOptions options) {\n GcsOptions gcsOptions = options.as(GcsOptions.class);\n return InstanceBuilder.ofType(PathValidator.class)\n .fromClass(gcsOptions.getPathValidatorClass())\n .fromFactoryMethod(\"fromOptions\")\n .withArg(PipelineOptions.class, options)\n .build();\n }\n }\n}", "@Override\n\t\tprotected void setup(Context context) throws IOException,\n\t\t\t\tInterruptedException {\n\t\t\tsuper.setup(context);\n\t\t\t\n\t\t\tConfiguration config = context.getConfiguration();\n\t\t\tPath stPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.ST_PATH)));\n\t\t\tPath RPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.R_PATH)));\n\t\t\tPath sttmpPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.TMP_ST_PATH)));\n\t\t\tPath RtmpPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.TMP_R_PATH)));\n\t\t\tcolnums=Integer.parseInt(config.get(ComputeAvailabilitiesJob.COL_NUMS));\n\t\t\tConfiguration depConf = new Configuration(config);\n\t\t\t\n\t\t\tst = new DistributedRowMatrix(stPath,\n sttmpPath,\n colnums,\n colnums);\n\t\t\tR = new DistributedRowMatrix(RPath,\n RtmpPath,\n colnums,\n colnums);\n\t\t\tR.setConf(config);\n\t\t\tst.setConf(config);\n\t\t\titeratorst=st.iterateAll();\n\t\t\titeratorR=R.iterateAll();\n\t\t\t\n\t\t}", "interface WithContainerSettings {\n /**\n * Specifies containerSettings.\n * @param containerSettings If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM\n * @return the next definition stage\n */\n WithCreate withContainerSettings(ContainerSettings containerSettings);\n }", "interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next definition stage\n */\n WithCreate withExperimentName(String experimentName);\n }", "private static void runStandalone(ApplicationContext context) throws InterruptedException {\r\n\t\tJobParameters jobParameters = new JobParametersBuilder()\r\n\t\t\t.addString(\"user\", \"satadru02\").toJobParameters(); \r\n \t\r\n \tJobLauncher launcher = (JobLauncher)context.getBean(JobLauncher.class);\r\n \tJob dbToCsvJob = (Job)context.getBean(Job.class);\r\n \t\r\n \tJobExecution jobExecution = null;\r\n \ttry{\r\n \t jobExecution = launcher.run(dbToCsvJob, jobParameters);\r\n \t}catch(JobExecutionException e)\r\n \t{\r\n \t\tSystem.out.println(\"#### OOPS #### Job Launch Exception !!\" + e.getMessage());\r\n \t\tSystem.exit(0);\r\n\t }\r\n \t\r\n \tBatchStatus batchStatus = jobExecution.getStatus();\r\n \twhile(batchStatus.isRunning()){\r\n \t\tSystem.out.println(\"..... Batch Is running .....................\");\r\n \t\tThread.sleep(5000);\r\n \t}\r\n\t\t\tExitStatus exitStatus = jobExecution.getExitStatus();\r\n\t\t\tString exitCode = exitStatus.getExitCode();\r\n\t\t\tSystem.out.println(String.format(\"###### Exit status: %s\", exitCode));\r\n\r\n\t\t\tif(exitStatus.equals(ExitStatus.COMPLETED)){\r\n\t\t\t\tSystem.out.println(\"####### COMPLETED STATUS #######\");\r\n\t\t\t}\r\n\t}", "@Override\n public void setExecutionContext(ExecutionContext context) {\n logger.debug(\"MetricsReceiver join in setExecutionContext.\");\n logger.debug(\"Getting context and properties\");\n this.context = context;\n\n if(this.props.getProperty(\"prefix\") == null || this.props.getProperty(\"prefix\").isEmpty()) {\n this.props.setProperty(\"prefix\", \"vmware\");\n }\n\n if(this.props.getProperty(\"use_fqdn\") != null && !this.props.getProperty(\"use_fqdn\").isEmpty()) {\n this.use_fqdn = Boolean.valueOf(this.props.getProperty(\"use_fqdn\"));\n } else {\n this.use_fqdn= true;\n }\n\n if(this.props.getProperty(\"use_entity_type_prefix\") != null && !this.props.getProperty(\"use_entity_type_prefix\").isEmpty()) {\n this.use_entity_type_prefix = Boolean.valueOf(this.props.getProperty(\"use_entity_type_prefix\"));\n }\n\n if(this.props.getProperty(\"only_one_sample_x_period\")!= null && !this.props.getProperty(\"only_one_sample_x_period\").isEmpty()) {\n this.only_one_sample_x_period = Boolean.valueOf(this.props.getProperty(\"only_one_sample_x_period\"));\n } else {\n this.only_one_sample_x_period = true;\n }\n\n if(this.props.getProperty(\"place_rollup_in_the_end\") != null && !this.props.getProperty(\"place_rollup_in_the_end\").isEmpty()) {\n this.place_rollup_in_the_end = Boolean.valueOf(this.props.getProperty(\"place_rollup_in_the_end\"));\n }\n\n if(this.props.getProperty(\"disable_instance_metrics\") != null && !this.props.getProperty(\"disable_instance_metrics\").isEmpty()) {\n this.instanceMetrics = Boolean.valueOf(this.props.getProperty(\"disable_instance_metrics\"));\n } else {\n this.instanceMetrics = false;\n }\n \n if(this.props.getProperty(\"use_global_instance\") != null && !this.props.getProperty(\"use_global_instance\").isEmpty()) {\n this.globalInstance = Boolean.valueOf(this.props.getProperty(\"use_global_instance\"));\n } else {\n this.globalInstance = false;\n }\n\n boolean isRules = false;\n if(this.props.getProperty(\"names_transformation_rules\") != null && !this.props.getProperty(\"names_transformation_rules\").isEmpty()) {\n isRules = Boolean.valueOf(this.props.getProperty(\"names_transformation_rules\"));\n }\n\n if(isRules){\n String path = null;\n if(this.props.getProperty(\"names_transformation_rules_path\") != null && !this.props.getProperty(\"names_transformation_rules_path\").isEmpty()) {\n path = this.props.getProperty(\"names_transformation_rules_path\");\n }\n if(path != null) {\n ReadRules readRules = new ReadRules(path);\n this.rules = readRules.getRules();\n }\n }\n\n try{\n this.disconnectAfter = Integer.parseInt(this.props.getProperty(\"graphite_force_reconnect_timeout\"));\n if(this.disconnectAfter < 1){\n logger.info(\"if graphite_force_reconnect_timeout is set to < 1 will not be supported: \" + this.disconnectAfter);\n this.disconnectAfter = -1;\n }else{\n logger.info(\"In setExecutionContext:: disconnectCounter and disconnectAfter Values: \" + this.disconnectCounter + \"\\t\" + this.disconnectAfter);\n }\n }catch(Exception e){\n logger.debug(\"graphite_force_reconnect_timeout attribute is not set or not supported.\");\n logger.debug(\"graphite_force_reconnect_timeout is set to < 1 will not be supported: \");\n this.disconnectAfter = -1;\n }\n\n long frequencyInSeconds = this.context.getConfiguration().getFrequencyInSeconds();\n this.refreshClusterMapPeriod = Utils.calculateIteration(frequencyInSeconds, this.props.getProperty(\"cluster_map_refresh_timeout\"), \"cluster_map_refresh_timeout\");\n this.refreshHostMapPeriod = Utils.calculateIteration(frequencyInSeconds, this.props.getProperty(\"alternate_vm_prefix_sufix_timeout\"), \"alternate_vm_prefix_sufix_timeout\");\n\n if(this.props.getProperty(\"use_alternate_vm_prefix_sufix\") != null && !this.props.getProperty(\"use_alternate_vm_prefix_sufix\").isEmpty()) {\n this.isHostMap = Boolean.valueOf(this.props.getProperty(\"use_alternate_vm_prefix_sufix\"));\n }\n if(this.isHostMap) {\n String hostMapPath = this.props.getProperty(\"alternate_vm_prefix_sufix_map_file\");\n if (hostMapPath != null && !hostMapPath.equals(\"\")) {\n try {\n MapperPrefixSuffix mapperPrefixSuffix = new MapperPrefixSuffix(hostMapPath);\n this.hostMap = mapperPrefixSuffix.getAllMapper();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n }\n Utils.initClusterHostMap(null, null, this.context, this.clusterMap);\n logger.debug(\"MetricsReceiver setExecutionContext.\");\n }", "default void beforeRun(TransformWork work) throws ValidationException, IOException {}", "public void jobToBeExecuted(JobExecutionContext jobExecutionContext) {}", "public static void main(String[] args) {\n TaskLocatorService taskLocatorService = new TaskLocatorService();\n MarshallerLocatorService marshallerLocatorService = new MarshallerLocatorService();\n TaskExecutorService taskExecutorService = new TaskExecutorService(taskLocatorService, marshallerLocatorService);\n\n // Register filters\n before((request, response) -> {});\n\n after((request, response) -> {\n response.type(\"application/json\");\n });\n\n // Register Spark endpoints\n CartEndpoints cartEndpoints = new CartEndpoints(taskExecutorService);\n cartEndpoints.register();\n }", "public static void main(String[] args) {\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"classpath:/kr/or/ddit/config/spring/batch-context.xml\");\n\t\t\n\t\t//job 실행 : jobLauncher, job\n\t\t//JobLauncher jobLauncher = (JobLauncher)context.getBean(\"jobLauncher\");\n\t\t\n\t\tJobLauncher jobLauncher = context.getBean(\"jobLauncher\", JobLauncher.class);\n\t\tJob job = context.getBean(\"rangersJob\", Job.class);\n\t\t\n\t\t\n\t\ttry {\n\t\t\tjobLauncher.run(job, new JobParameters());\n\t\t} catch (JobExecutionAlreadyRunningException | JobRestartException | JobInstanceAlreadyCompleteException\n\t\t\t\t| JobParametersInvalidException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) throws InterruptedException {\n TransformationBackendMain.main(new String[] { \"2551\", \"campaign1\", \"campaign2\" });\n }", "public void setJob(String job) {\n this.job = job;\n }", "public static void main(String[] args) throws Exception {\n StreamExecutionEnvironment environment = StreamExecutionEnvironment.getExecutionEnvironment();\n environment.setParallelism(1);\n // output path can be made dynamic by passing value in ParameterTool class as done in join & connector sub-package\n String output = \"file:///Users/ranvsing/CodeBase/Flink/output/state/broadcast\";\n // input path can be made dynamic by passing value in ParameterTool class as done in join & connector package\n String input = \"file:///Users/ranvsing/CodeBase/Flink/input/salaryrange\";\n\n // Connect to port for listing the incoming data\n DataStream<String> excludeSalary = environment.socketTextStream(\"localhost\", 9090);\n\n // creating broadcast stream for other nodes\n BroadcastStream<String> excludeSalaryBroadcast = excludeSalary.broadcast(excludeSalaryDescriptor);\n\n // Create Tuple for incoming data divide based on gender group\n DataStream<Tuple2<String, Integer>> employees = environment.readTextFile(input)\n .map(new MapFunction<String, Tuple2<String, String>>() {\n public Tuple2<String, String> map(String value) {\n return new Tuple2<String, String>(value.split(\",\")[1], value);\n }\n })\n .keyBy(0)\n .connect(excludeSalaryBroadcast)\n .process(new ExcludeSalary());\n //Printing the result, which can be seen in the log\n employees.print();\n employees.writeAsText(output, FileSystem.WriteMode.OVERWRITE);\n //execute program.\n environment.execute(\"Broadcast Exmaple\");\n }", "public static void main(String... args) {\n\n TestWrkactjob_ actJob = new TestWrkactjob_(args[0], args[1], args[2]);\n\n actJob.initJobList();\n actJob.loadJobList();\n\n actJob.setSortOnCPUTime();\n\n actJob.getJobList(\"csv\");\n\n }", "public void setUseJobQueue(boolean useJobQueue)\n\t{\n\t\tthis.useJobQueue = useJobQueue;\n\t}", "interface DefinitionStages {\n /**\n * The first stage of a Job definition.\n */\n interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the Job definition allowing to specify the resource group.\n */\n interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCluster> {\n }\n\n /**\n * The stage of the job definition allowing to specify Cluster.\n */\n interface WithCluster {\n /**\n * Specifies cluster.\n * @param cluster the cluster parameter value\n * @return the next definition stage\n*/\n WithNodeCount withCluster(ResourceId cluster);\n }\n\n /**\n * The stage of the job definition allowing to specify NodeCount.\n */\n interface WithNodeCount {\n /**\n * Specifies nodeCount.\n * @param nodeCount The job will be gang scheduled on that many compute nodes\n * @return the next definition stage\n*/\n WithStdOutErrPathPrefix withNodeCount(int nodeCount);\n }\n\n /**\n * The stage of the job definition allowing to specify StdOutErrPathPrefix.\n */\n interface WithStdOutErrPathPrefix {\n /**\n * Specifies stdOutErrPathPrefix.\n * @param stdOutErrPathPrefix The path where the Batch AI service will upload stdout and stderror of the job\n * @return the next definition stage\n*/\n WithCreate withStdOutErrPathPrefix(String stdOutErrPathPrefix);\n }\n\n /**\n * The stage of the job definition allowing to specify Caffe2Settings.\n */\n interface WithCaffe2Settings {\n /**\n * Specifies caffe2Settings.\n * @param caffe2Settings the caffe2Settings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffe2Settings(Caffe2Settings caffe2Settings);\n }\n\n /**\n * The stage of the job definition allowing to specify CaffeSettings.\n */\n interface WithCaffeSettings {\n /**\n * Specifies caffeSettings.\n * @param caffeSettings the caffeSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffeSettings(CaffeSettings caffeSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify ChainerSettings.\n */\n interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CntkSettings.\n */\n interface WithCntkSettings {\n /**\n * Specifies cntkSettings.\n * @param cntkSettings the cntkSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCntkSettings(CNTKsettings cntkSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify Constraints.\n */\n interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next definition stage\n */\n WithCreate withConstraints(JobBasePropertiesConstraints constraints);\n }\n\n /**\n * The stage of the job definition allowing to specify ContainerSettings.\n */\n interface WithContainerSettings {\n /**\n * Specifies containerSettings.\n * @param containerSettings If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM\n * @return the next definition stage\n */\n WithCreate withContainerSettings(ContainerSettings containerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CustomToolkitSettings.\n */\n interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify EnvironmentVariables.\n */\n interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next definition stage\n */\n WithCreate withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }\n\n /**\n * The stage of the job definition allowing to specify ExperimentName.\n */\n interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next definition stage\n */\n WithCreate withExperimentName(String experimentName);\n }\n\n /**\n * The stage of the job definition allowing to specify InputDirectories.\n */\n interface WithInputDirectories {\n /**\n * Specifies inputDirectories.\n * @param inputDirectories the inputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withInputDirectories(List<InputDirectory> inputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify JobPreparation.\n */\n interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }\n\n /**\n * The stage of the job definition allowing to specify OutputDirectories.\n */\n interface WithOutputDirectories {\n /**\n * Specifies outputDirectories.\n * @param outputDirectories the outputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withOutputDirectories(List<OutputDirectory> outputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify Priority.\n */\n interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next definition stage\n */\n WithCreate withPriority(Integer priority);\n }\n\n /**\n * The stage of the job definition allowing to specify TensorFlowSettings.\n */\n interface WithTensorFlowSettings {\n /**\n * Specifies tensorFlowSettings.\n * @param tensorFlowSettings the tensorFlowSettings parameter value\n * @return the next definition stage\n */\n WithCreate withTensorFlowSettings(TensorFlowSettings tensorFlowSettings);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<Job>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithCaffe2Settings, DefinitionStages.WithCaffeSettings, DefinitionStages.WithChainerSettings, DefinitionStages.WithCntkSettings, DefinitionStages.WithConstraints, DefinitionStages.WithContainerSettings, DefinitionStages.WithCustomToolkitSettings, DefinitionStages.WithEnvironmentVariables, DefinitionStages.WithExperimentName, DefinitionStages.WithInputDirectories, DefinitionStages.WithJobPreparation, DefinitionStages.WithOutputDirectories, DefinitionStages.WithPriority, DefinitionStages.WithTensorFlowSettings {\n }\n }", "@Override\n public void run(Map<String, LogicalInput> inputs,\n Map<String, LogicalOutput> outputs) throws Exception {\n try {\n Class<?> clazz = Class.forName(\"org.apache.tez.common.ProgressHelper\");\n Constructor<?> ctor = clazz.getConstructor(Map.class, ProcessorContext.class, String.class);\n progressHelper = ctor.newInstance(inputs, getContext(), this.getClass().getSimpleName());\n Method scheduleProgressTaskService = clazz.getMethod(\"scheduleProgressTaskService\", long.class, long.class);\n scheduleProgressTaskService.invoke(progressHelper, 100,\n Math.max(1000, conf.getInt(TezConfiguration.TEZ_TASK_AM_HEARTBEAT_INTERVAL_MS,\n TezConfiguration.TEZ_TASK_AM_HEARTBEAT_INTERVAL_MS_DEFAULT) - 50));\n }\n catch (IllegalAccessException | IllegalArgumentException | InstantiationException | InvocationTargetException\n | ClassNotFoundException | NoSuchMethodException | SecurityException e) {\n // ignore\n }\n\n try {\n initializeInputs(inputs);\n\n initializeOutputs(outputs);\n\n\n List<PhysicalOperator> leaves = null;\n\n if (!execPlan.isEmpty()) {\n leaves = execPlan.getLeaves();\n // TODO: Pull from all leaves when there are multiple leaves/outputs\n leaf = leaves.get(0);\n }\n\n LOG.info(\"Aliases being processed per job phase (AliasName[line,offset]): \" + conf.get(\"pig.alias.location\"));\n\n runPipeline(leaf);\n\n if (Boolean.valueOf(conf.get(JobControlCompiler.END_OF_INP_IN_MAP, \"false\"))\n && !execPlan.endOfAllInput) {\n // If there is a stream in the pipeline or if this map job belongs to merge-join we could\n // potentially have more to process - so lets\n // set the flag stating that all map input has been sent\n // already and then lets run the pipeline one more time\n // This will result in nothing happening in the case\n // where there is no stream or it is not a merge-join in the pipeline\n execPlan.endOfAllInput = true;\n runPipeline(leaf);\n }\n\n // Calling EvalFunc.finish()\n UDFFinishVisitor finisher = new UDFFinishVisitor(execPlan,\n new DependencyOrderWalker<PhysicalOperator, PhysicalPlan>(\n execPlan));\n try {\n finisher.visit();\n } catch (VisitorException e) {\n int errCode = 2121;\n String msg = \"Error while calling finish method on UDFs.\";\n throw new VisitorException(msg, errCode, PigException.BUG, e);\n }\n\n if (!fileOutputs.isEmpty()) {\n while (!getContext().canCommit() && !isAborted) {\n Thread.sleep(100);\n }\n if (isAborted) {\n return;\n }\n for (MROutput fileOutput : fileOutputs){\n fileOutput.flush();\n if (fileOutput.isCommitRequired()) {\n fileOutput.commit();\n }\n }\n }\n\n // send event containing parallelism to sorting job of order by / skewed join\n if (conf.getBoolean(ESTIMATE_PARALLELISM, false)) {\n int parallelism = 1;\n if (sampleMap!=null && sampleMap.containsKey(ESTIMATED_NUM_PARALLELISM)) {\n parallelism = (Integer)sampleMap.get(ESTIMATED_NUM_PARALLELISM);\n }\n String sortingVertex = conf.get(SORT_VERTEX);\n // Should contain only 1 output for sampleAggregation job\n LOG.info(\"Sending numParallelism \" + parallelism + \" to \" + sortingVertex);\n VertexManagerEvent vmEvent = VertexManagerEvent.create(\n sortingVertex, ByteBuffer.wrap(Ints.toByteArray(parallelism)));\n List<Event> events = Lists.newArrayListWithCapacity(1);\n events.add(vmEvent);\n getContext().sendEvents(events);\n }\n } catch (Exception e) {\n LOG.error(\"Encountered exception while processing: \", e);\n abortOutput();\n throw e;\n }\n }", "public static void main(String[] args) throws Exception {\n ParameterTool params = ParameterTool.fromPropertiesFile(args[0]);\n\n // create streaming environment\n final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n\n // enable event time processing\n env.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);\n env.getConfig().setAutoWatermarkInterval(1000L);\n\n // enable fault-tolerance, 60s checkpointing\n env.enableCheckpointing(60000);\n\n // enable restarts\n env.setRestartStrategy(RestartStrategies.fixedDelayRestart(50, 500L));\n env.setStateBackend(new RocksDBStateBackend(\"file:///tmp/rocks_state_store\"));\n\n Properties kParams = params.getProperties();\n kParams.setProperty(\"group.id\", UUID.randomUUID().toString());\n //kParams.setProperty(\"group.id\", \"FLINK_KAFKA_GROUP\");\n DataStream<ObjectNode> inputStream = env.addSource(new FlinkKafkaConsumer010<>(params.getRequired(\"topic\"), new JSONDeserializationSchema(), kParams)).name(\"Kafka 0.10 Source\");\n\n DataStream<PlaneModel> planes = inputStream\n .assignTimestampsAndWatermarks(new PlaneTimestampExtractor())\n .keyBy(jsonNode -> jsonNode.get(\"icao\").textValue())\n .map(new PlaneMapper())\n .name(\"Timestamp -> KeyBy ICAO -> Map\");\n\n DataStream<Tuple2<Integer,PlaneModel>> keyedPlanes = planes\n .keyBy(\"icao\")\n .window(TumblingEventTimeWindows.of(Time.seconds(5)))\n .apply(new PlaneWindow())\n .name(\"Tumbling Window\");\n\n // Print plane stream to stdout\n keyedPlanes.print();\n\n DataStream<Tuple2<Integer,PlaneModel>> military_planes = keyedPlanes.filter(new MilitaryPlaneFilter())\n .name(\"Military Plane Filter\");\n military_planes.print();\n\n // At this point, build a stream that stores all the active (seen in the last\n // 60 seconds) ICAOs in our current airspace, and store in a single well known\n // queryable key. Emit every 5 seconds. This stream is only here to populate \n // the managed state, but if you use the print sink you'll get the array of \n // ICAOs as a string for debugging.\n DataStream<String> airspace = keyedPlanes.windowAll(SlidingEventTimeWindows.of(Time.seconds(60), Time.seconds(5)))\n .apply(new AirspaceWindow())\n .keyBy(0) // this will always be the 'AIRPLANE' key\n .map(new AirspaceMapper()); // mapper to store state\n\n airspace.print();\n\n String app_name = String.format(\"Streaming Planes <- Kafka Topic: %s\", params.getRequired(\"topic\"));\n env.execute(app_name);\n\n }", "interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }", "public void setHadoopJob( Job currJob ) ;", "public static void main(String[] args) {\n PipelineOptionsFactory.register(MozartOptions.class);\n MozartExampleOptions options =\n PipelineOptionsFactory.fromArgs(args).withValidation().as(MozartExampleOptions.class);\n options.getCustomDataColumnNames().isAccessible();\n Pipeline p = Pipeline.create(options);\n\n // Load additional custom (non-SA360) data. For example: a file containing information about\n // whether a certain brand is in promotion state\n PCollection<Map<String, String>> customData =\n p.apply(\"ReadCustomData\", TextIO.read().from(options.getInputCustomDataFile()))\n // Create dictionary\n .apply(\n \"CreateCustomDataDict\",\n ParDo.of(\n new DoFn<String, Map<String, String>>() {\n @ProcessElement\n public void processElement(ProcessContext c) {\n String[] element = c.element().split(\",\");\n String[] headers =\n c.getPipelineOptions()\n .as(MozartExampleOptions.class)\n .getCustomDataColumnNames()\n .get()\n .split(\",\");\n Map<String, String> newOutput = new HashMap<>();\n if (element.length == headers.length) {\n for (int i = 0; i < headers.length; i++) {\n newOutput.put(headers[i], element[i]);\n }\n c.output(newOutput);\n } else {\n LOG.warn(\n \"Different length for headers and element. header: {}. element: {}\",\n headers,\n element);\n }\n }\n }));\n\n // Create a view of your custom data (this is necessary to pass it as side input to your\n // main PTransform\n PCollectionView<List<Map<String, String>>> customDataView =\n customData.apply(\"CreateCustomDataView\", View.asList());\n\n final String maxCPCPromo = \"5\";\n final String maxCPCNormal = \"1\";\n\n // Define your PTransform. Here is where your business logic is implemented\n PTransform<? super PCollection<Map<String, String>>, PCollection<Map<String, String>>>\n businessTransform =\n ParDo.of(\n new DoFn<Map<String, String>, Map<String, String>>() {\n @ProcessElement\n public void processElement(ProcessContext c) {\n List<Map<String, String>> customData = c.sideInput(customDataView);\n final Map<String, String> element = c.element();\n // Skip if element is empty\n if (element.size() > 0) {\n String newMaxCPC = maxCPCNormal;\n for (Map<String, String> customEntry : customData) {\n if (element.get(\"Keyword\").contains(customEntry.get(\"brand\"))) {\n if (customEntry.get(\"status\").equals(\"promotion\")) {\n newMaxCPC = maxCPCPromo;\n }\n }\n }\n element.put(\"Keyword max CPC\", newMaxCPC);\n c.output(element);\n }\n }\n })\n .withSideInputs(customDataView);\n\n // Use Mozart to complete the pipeline\n // First, get the PCollection with all the keywords\n PCollection<Map<String, String>> keywordsBeforeLogic = Mozart.getKeywords(options, p);\n\n // Then, apply your business logic over the keywords\n PCollection<Map<String, String>> keywordsAfterLogic =\n keywordsBeforeLogic.apply(businessTransform);\n\n // Lastly, use Mozart to write the keywords output\n Mozart.writeKeywordsOutput(options, keywordsAfterLogic);\n\n // Run your pipeline as usual\n p.run();\n }", "interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next update stage\n */\n Update withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public void initialize() throws Exception {\n sampleVertex = null;\n sampleMap = null;\n\n // Reset static variables cleared for avoiding OOM.\n new JVMReuseImpl().cleanupStaticData();\n\n // Set an empty reporter for now. Once we go to Tez 0.8\n // which adds support for mapreduce like progress (TEZ-808),\n // we need to call progress on Tez API\n PhysicalOperator.setReporter(new ProgressableReporter());\n\n UserPayload payload = getContext().getUserPayload();\n conf = TezUtils.createConfFromUserPayload(payload);\n SpillableMemoryManager.getInstance().configure(conf);\n PigContext.setPackageImportList((ArrayList<String>) ObjectSerializer\n .deserialize(conf.get(\"udf.import.list\")));\n Properties log4jProperties = (Properties) ObjectSerializer\n .deserialize(conf.get(PigImplConstants.PIG_LOG4J_PROPERTIES));\n if (log4jProperties != null) {\n PropertyConfigurator.configure(log4jProperties);\n }\n\n // To determine front-end in UDFContext\n conf.set(MRConfiguration.JOB_APPLICATION_ATTEMPT_ID, getContext().getUniqueIdentifier());\n\n // For compatibility with mapreduce. Some users use these configs in their UDF\n // Copied logic from the tez class - org.apache.tez.mapreduce.output.MROutput\n // Currently isMapperOutput is always false. Setting it to true produces empty output with MROutput\n boolean isMapperOutput = conf.getBoolean(MRConfig.IS_MAP_PROCESSOR, false);\n TaskAttemptID taskAttemptId = org.apache.tez.mapreduce.hadoop.mapreduce.TaskAttemptContextImpl\n .createMockTaskAttemptID(getContext().getApplicationId().getClusterTimestamp(),\n getContext().getTaskVertexIndex(), getContext().getApplicationId().getId(),\n getContext().getTaskIndex(), getContext().getTaskAttemptNumber(), isMapperOutput);\n conf.set(JobContext.TASK_ATTEMPT_ID, taskAttemptId.toString());\n conf.set(JobContext.TASK_ID, taskAttemptId.getTaskID().toString());\n conf.setBoolean(JobContext.TASK_ISMAP, isMapperOutput);\n conf.setInt(JobContext.TASK_PARTITION,\n taskAttemptId.getTaskID().getId());\n conf.set(JobContext.ID, taskAttemptId.getJobID().toString());\n if (conf.get(PigInputFormat.PIG_INPUT_LIMITS) != null) {\n // Has Load and is a root vertex\n conf.setInt(JobContext.NUM_MAPS, getContext().getVertexParallelism());\n } else {\n conf.setInt(JobContext.NUM_REDUCES, getContext().getVertexParallelism());\n }\n\n conf.set(PigConstants.TASK_INDEX, Integer.toString(getContext().getTaskIndex()));\n UDFContext.getUDFContext().addJobConf(conf);\n UDFContext.getUDFContext().deserialize();\n\n String execPlanString = conf.get(PLAN);\n execPlan = (PhysicalPlan) ObjectSerializer.deserialize(execPlanString);\n SchemaTupleBackend.initialize(conf);\n PigMapReduce.sJobContext = HadoopShims.createJobContext(conf, new org.apache.hadoop.mapreduce.JobID());\n\n // Set the job conf as a thread-local member of PigMapReduce\n // for backwards compatibility with the existing code base.\n PigMapReduce.sJobConfInternal.set(conf);\n\n Utils.setDefaultTimeZone(conf);\n\n boolean aggregateWarning = \"true\".equalsIgnoreCase(conf.get(\"aggregate.warning\"));\n PigStatusReporter pigStatusReporter = PigStatusReporter.getInstance();\n pigStatusReporter.setContext(new TezTaskContext(getContext()));\n pigHadoopLogger = PigHadoopLogger.getInstance();\n pigHadoopLogger.setReporter(pigStatusReporter);\n pigHadoopLogger.setAggregate(aggregateWarning);\n PhysicalOperator.setPigLogger(pigHadoopLogger);\n\n LinkedList<TezTaskConfigurable> tezTCs = PlanHelper.getPhysicalOperators(execPlan, TezTaskConfigurable.class);\n for (TezTaskConfigurable tezTC : tezTCs){\n tezTC.initialize(getContext());\n }\n }", "interface MozartExampleOptions extends MozartOptions {\n @Description(\"Path to the custom input file (customer data table)\")\n ValueProvider<String> getInputCustomDataFile();\n\n void setInputCustomDataFile(ValueProvider<String> value);\n\n @Description(\"Custom data column names\")\n ValueProvider<String> getCustomDataColumnNames();\n\n void setCustomDataColumnNames(ValueProvider<String> value);\n }", "@Override\n\t\tprotected void setup(Context context) throws IOException, InterruptedException {\n\t\t\tFileSplit inputSplit = (FileSplit) context.getInputSplit();\n\t\t\tname = inputSplit.getPath().getName();\n\t\t}", "public static void main(final String[] args) throws BindException, InjectionException {\n // TODO : build LocalRuntimeConfiguration\n\n /*\n final Tang tang = Tang.Factory.getTang();\n\n final JavaConfigurationBuilder cb = tang.newConfigurationBuilder();\n\n try {\n new CommandLine(cb)\n .registerShortNameOfClass(Local.class)\n .registerShortNameOfClass(TimeOut.class)\n .registerShortNameOfClass(LinearSGD_REEF.InputDir.class)\n .processCommandLine(args);\n\n } catch (final IOException ex) {\n LOG.log(Level.SEVERE, \"Configuration error: cannot load data\", ex);\n throw new RuntimeException(\"Configuration error: cannot load data\", ex);\n }\n\n final Injector injector = tang.newInjector(cb.build());\n\n final boolean isLocal = injector.getNamedInstance(Local.class);\n final int jobTimeout = injector.getNamedInstance(TimeOut.class);\n final String inputDir = injector.getNamedInstance(LinearSGD_REEF.InputDir.class);\n\n final Configuration runtimeConfiguration;\n if (isLocal) {\n LOG.log(Level.INFO, \"Running on the local runtime\");\n runtimeConfiguration = LocalRuntimeConfiguration.CONF\n .set(LocalRuntimeConfiguration.NUMBER_OF_THREADS, NUM_LOCAL_THREADS).build();\n } else {\n LOG.log(Level.INFO, \"Running on YARN\");\n runtimeConfiguration = YarnClientConfiguration.CONF.build();\n }\n\n final EvaluatorRequest computeRequest = EvaluatorRequest.newBuilder()\n .setNumber(NUM_COMPUTE_EVALUATORS)\n .setMemory(1024)\n .setNumberOfCores(4)\n .build();\n\n final Configuration dataLoadConfiguration = new DataLoadingRequestBuilder()\n .setMemoryMB(1024)\n .setInputFormatClass(TextInputFormat.class)\n .setInputPath(inputDir)\n .setNumberOfDesiredSplits(NUM_SPLITS)\n .setComputeRequest(computeRequest)\n .setDriverConfigurationModule(DriverConfiguration.CONF\n .set(DriverConfiguration.GLOBAL_LIBRARIES, EnvironmentUtils.getClassLocation(LinearSGD_Driver.class))\n .set(DriverConfiguration.ON_CONTEXT_ACTIVE, LinearSGD_Driver.ContextActiveHandler.class)\n .set(DriverConfiguration.ON_TASK_COMPLETED, LinearSGD_Driver.TaskCompletedHandler.class)\n .set(DriverConfiguration.DRIVER_IDENTIFIER, \"DataLoadingREEF\"))\n .build();\n\n final LauncherStatus status = run(runtimeConfiguration, JOB_TIMEOUT);\n */\n final Configuration runtimeConfiguration = LocalRuntimeConfiguration.CONF\n .set(LocalRuntimeConfiguration.NUMBER_OF_THREADS, NUM_LOCAL_THREADS)\n .build();\n final LauncherStatus status = run(runtimeConfiguration, TIMEOUT);\n LOG.log(Level.INFO, \"REEF job completed: {0}\", status);\n }", "Ec2RunnerBuilder( InputStream in ) throws IOException {\n props.load( in );\n extractValues();\n\n if ( props.containsKey( SERVLET_TEMP_DIR ) ) {\n props.setProperty( Runner.RUNNER_TEMP_DIR_KEY, props.getProperty( SERVLET_TEMP_DIR ) );\n }\n }", "public String getJobId();", "interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next update stage\n */\n Update withExperimentName(String experimentName);\n }", "@Override\n\tpublic void configure(JobConf arg0) {\n\t\t\n\t}", "ViewCycleExecutionOptions getDefaultExecutionOptions();", "public void setEnvironment(Map<String, String> environment);", "void setEnvironment(Environment environment) {\n this.environment = environment;\n }", "java.lang.String getJobId();", "void checkJobExecutionEnvironment() throws JobExecutionEnvironmentException;", "public RunProcDefJob() {\n\t}", "@Override\n public boolean executeBeforeRunTask(ExecutionEnvironment env) {\n throw new RuntimeException(\n String.format(\n \"Unexpected code path: program runner %s, executor: %s\",\n env.getRunner().getClass(), env.getExecutor().getId()));\n }", "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 }", "boolean hasPipelineRunContext();", "@Override\n public boolean onStopJob(JobParameters job) {\n return true;\n }", "public int getJobId() ;", "public JobBuilder executionSystem(String executionSystem) {\r\n job.setExecutionSystem(executionSystem);\r\n return this;\r\n }", "public abstract void setupSeamEnvironment();", "interface WithContainerSettings {\n /**\n * Specifies containerSettings.\n * @param containerSettings If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM\n * @return the next update stage\n */\n Update withContainerSettings(ContainerSettings containerSettings);\n }", "public void setIsTemplateJob(boolean isTemplateJob) {\n this.isTemplateJob = isTemplateJob;\n }", "public interface ExecutionContext {\n}", "public void jobExecutionVetoed(JobExecutionContext jobExecutionContext) {}", "interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next update stage\n */\n Update withJobPreparation(JobPreparation jobPreparation);\n }", "interface Definition extends DefinitionStages.Blank, DefinitionStages.WithJobAgent, DefinitionStages.WithMembers, DefinitionStages.WithCreate {\n }", "public static void main(String[] args) {\n final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n //env.enableCheckpointing(5000); // checkpoint every 5000 msecs\n Properties properties = new Properties();\n //kafka setting\n properties.setProperty(\"bootstrap.servers\", Constants.KafkaAddress.CU_LF_KAFKA_PROD.getValue());\n //properties.setProperty(\"bootstrap.servers\", \"127.0.0.1:9092\");\n properties.setProperty(\"group.id\", \"repair_data\");\n\n String accessLogTitle = Constants.AccessLogField.vault_name + \",\" + Constants.AccessLogField.server_name + \",\" +\n Constants.AccessLogField.client_id + \",\" + Constants.AccessLogField.user_id + \",\" +\n Constants.AccessLogField.remote_address + \",\" + Constants.AccessLogField.request_method + \",\" +\n Constants.AccessLogField.protocol + \",\" + Constants.AccessLogField.object_length + \",\" +\n Constants.AccessLogField.object_name + \",\" + Constants.AccessLogField.time_start + \",\" +\n Constants.AccessLogField.time_finish + \",\" + Constants.AccessLogField.user_agent + \",\" +\n Constants.AccessLogField.status + \",\" + Constants.AccessLogField.midstream_error + \",\" +\n Constants.AccessLogField.error_code + \",\" + Constants.AccessLogField.request_latency + \",\" +\n Constants.AccessLogField.response_length + \",\" + Constants.AccessLogField.turn_around_time + \",\" +\n Constants.AccessLogField.error_message ;\n\n SinkFunction<AccessLogBack> sinkFunction = new SinkFunction<AccessLogBack>(){\n\n @Override\n public void invoke(AccessLogBack accessLogBack, Context context) throws Exception {\n\n // folder name\n String folderName = accessLogBack.getFolderName();\n String dateName = accessLogBack.getDataName();\n String vault_name = accessLogBack.getVault_name();\n if (!cuBucketMap.containsKey(vault_name)){\n vault_name = \"ibm\";\n }\n String filePath = \"/data1/flink/\"+folderName + \"/\" +\n accessLogVersion + getAccessLogSite + vault_name + \"_\" + dateName + suffix;\n\n // if file not exist, touch file and set title\n File file = new File(filePath);\n File parentFile = file.getParentFile();\n if (!parentFile.exists() || !parentFile.isDirectory()){\n parentFile.mkdirs();\n }\n if (!file.exists()){\n FileWriter fileWriter = new FileWriter(filePath,true);\n fileWriter.write(accessLogTitle + \"\\n\");\n fileWriter.close();\n }\n // writer to file\n FileWriter fileWriter = new FileWriter(filePath,true);\n fileWriter.write(accessLogBack.toString() + \"\\n\");\n fileWriter.close();\n }\n };\n try {\n FlinkKafkaConsumer<String> stringFlinkKafkaConsumer = new FlinkKafkaConsumer<>(Constants.cmAccessLogTopic.cu_flink_lf_ca_access.getTopic(),\n new SimpleStringSchema(), properties);\n //FlinkKafkaConsumer<String> stringFlinkKafkaConsumer = new FlinkKafkaConsumer<>(\"test\", new SimpleStringSchema(), properties);\n //long startTimeMi = simpleDateFormat.parse(startTime).getTime();\n //stringFlinkKafkaConsumer.setStartFromTimestamp(startTimeMi);\n SingleOutputStreamOperator<AccessLogBack> accessLogBackSingleOutputStreamOperator = env.\n addSource(stringFlinkKafkaConsumer).flatMap(new FlatMapFunction<String, AccessLogBack>() {\n @Override\n public void flatMap(String s, Collector<AccessLogBack> collector) throws Exception {\n //2021-01-25T15:08:02.707Z\n JSONObject jsonObject = new JSONObject(s);\n String timestamp = jsonObject.getString(\"@timestamp\");\n AccessLogBack accessLogBack = new AccessLogBack();\n String dataName = DateUtil.dataName(timestamp);\n accessLogBack.setDataName(dataName);\n accessLogBack.setFolderName(dataName.substring(0,10));\n\n if (jsonObject.has(Constants.AccessLogField.vault_name.getField())) {\n accessLogBack.setVault_name(jsonObject.getString(Constants.AccessLogField.vault_name.getField()));\n }\n\n if (jsonObject.has(Constants.AccessLogField.server_name.getField())) {\n accessLogBack.setServer_name(jsonObject.getString(Constants.AccessLogField.server_name.getField()));\n } else {\n accessLogBack.setServer_name(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.client_id.getField())) {\n accessLogBack.setClient_id(jsonObject.getString(Constants.AccessLogField.client_id.getField()));\n } else {\n accessLogBack.setClient_id(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.user_id.getField())) {\n accessLogBack.setUser_id(jsonObject.getString(Constants.AccessLogField.user_id.getField()));\n } else {\n accessLogBack.setUser_id(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.remote_address.getField())) {\n accessLogBack.setRemote_address(jsonObject.getString(Constants.AccessLogField.remote_address.getField()));\n } else {\n accessLogBack.setUser_id(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.request_method.getField())) {\n accessLogBack.setRequest_method(jsonObject.getString(Constants.AccessLogField.request_method.getField()));\n } else {\n accessLogBack.setRequest_method(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.protocol.getField())) {\n accessLogBack.setProtocol(jsonObject.getString(Constants.AccessLogField.protocol.getField()));\n } else {\n accessLogBack.setProtocol(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.object_length.getField())) {\n accessLogBack.setObject_length(jsonObject.getString(Constants.AccessLogField.object_length.getField()));\n } else {\n accessLogBack.setObject_length(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.object_name.getField())) {\n accessLogBack.setObject_name(jsonObject.getString(Constants.AccessLogField.object_name.getField()));\n } else {\n accessLogBack.setObject_name(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.time_start.getField())) {\n accessLogBack.setTime_start(jsonObject.getString(Constants.AccessLogField.time_start.getField()));\n } else {\n accessLogBack.setTime_start(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.time_finish.getField())) {\n accessLogBack.setTime_finish(jsonObject.getString(Constants.AccessLogField.time_finish.getField()));\n } else {\n accessLogBack.setTime_finish(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.user_agent.getField())) {\n accessLogBack.setUser_agent(jsonObject.getString(Constants.AccessLogField.user_agent.getField()));\n } else {\n accessLogBack.setUser_agent(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.status.getField())) {\n accessLogBack.setStatus(jsonObject.getString(Constants.AccessLogField.status.getField()));\n } else {\n accessLogBack.setStatus(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.midstream_error.getField())) {\n accessLogBack.setMidstream_error(jsonObject.getString(Constants.AccessLogField.midstream_error.getField()));\n } else {\n accessLogBack.setMidstream_error(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.error_code.getField())) {\n accessLogBack.setError_code(jsonObject.getString(Constants.AccessLogField.error_code.getField()));\n } else {\n accessLogBack.setError_code(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.request_latency.getField())) {\n accessLogBack.setRequest_latency(jsonObject.getString(Constants.AccessLogField.request_latency.getField()));\n } else {\n accessLogBack.setRequest_latency(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.response_length.getField())) {\n accessLogBack.setResponse_length(jsonObject.getString(Constants.AccessLogField.response_length.getField()));\n } else {\n accessLogBack.setResponse_length(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.turn_around_time.getField())) {\n accessLogBack.setTurn_around_time(jsonObject.getString(Constants.AccessLogField.object_length.getField()));\n } else {\n accessLogBack.setTurn_around_time(Constants.AccessLogField.None.getField());\n }\n\n if (jsonObject.has(Constants.AccessLogField.error_message.getField())) {\n accessLogBack.setError_code(jsonObject.getString(Constants.AccessLogField.error_message.getField()));\n } else {\n accessLogBack.setError_code(Constants.AccessLogField.None.getField());\n }\n collector.collect(accessLogBack);\n }\n }).setParallelism(4);\n accessLogBackSingleOutputStreamOperator.addSink(sinkFunction).setParallelism(1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n try {\n env.execute(\"Kafka_access_log\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testAMWorkflow() throws Throwable {\n describe(\"Create a committer with a null output path & use as an AM\");\n JobData jobData = startJob(true);\n JobContext jContext = jobData.jContext;\n TaskAttemptContext tContext = jobData.tContext;\n\n TaskAttemptContext newAttempt = new TaskAttemptContextImpl(\n jContext.getConfiguration(),\n taskAttempt0);\n Configuration conf = jContext.getConfiguration();\n\n // bind\n TextOutputForTests.bind(conf);\n\n OutputFormat<?, ?> outputFormat\n = ReflectionUtils.newInstance(newAttempt.getOutputFormatClass(), conf);\n Path outputPath = FileOutputFormat.getOutputPath(newAttempt);\n Assertions.assertThat(outputPath)\n .as(\"null output path in new task attempt\")\n .isNotNull();\n\n ManifestCommitter committer2 = (ManifestCommitter)\n outputFormat.getOutputCommitter(newAttempt);\n committer2.abortTask(tContext);\n\n }", "void setRunMode(TaskRunMode runMode);", "public interface Job {\n\n public enum Status {\n IDLE,\n RUNNING,\n SUCCESS,\n ERROR,\n FAIL\n }\n\n /**\n * @return the job ID.\n */\n public default JobId getId() {\n return getContext().getId();\n }\n\n /**\n * @return the job status\n */\n public Status getStatus();\n\n /**\n * @return the job priority\n */\n public Priority getPriority();\n\n /**\n * @return The context of this job.\n */\n public JobContext getContext();\n\n /**\n * Run the job using the {@link XProcEngine}.\n */\n public void run(XProcEngine engine);\n\n}", "protected abstract void executeInternal(JobExecutionContext context) throws JobExecutionException;", "public ExecutionEnvironment getExecutionEnvironment() {\n return executionEnvironment;\n }", "@Override\n public boolean onStopJob(JobParameters params) {\n return false;\n }", "@Override\n\tpublic void execute(JobExecutionContext context) throws JobExecutionException {\n\t\tSystem.out.println(this.getClass().getSimpleName());\n\t\tthis.run();\n\t}", "public interface DwCAExportPipelineOptions extends IndexingPipelineOptions {\n\n @Description(\"Message format compatible Image service URL path\")\n String getImageServicePath();\n\n void setImageServicePath(String imageServicePath);\n\n @Description(\"Local filesystem path to use to generate a path for ZIP\")\n String getLocalExportPath();\n\n void setLocalExportPath(String localExportPath);\n\n @Default.Boolean(true)\n @Description(\"Predicate exports enabled\")\n Boolean getPredicateExportEnabled();\n\n void setPredicateExportEnabled(Boolean predicateExportEnabled);\n}", "public UseCaseExecution(UseCase<UseCaseResponse<T>> useCase) {\n this.useCase = useCase;\n }", "public static void main(String[] args) throws Exception {\n\t\tfinal StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n\t\t//TODO make this configurable get the class information from a config file\n\t\tIFlinkDataPipeline<String, String> pipeline = new FlinkDataPipeline();\n\t\tString jobName = pipeline.getJobName();\n\t\t\n\t\tTuple3<String, String, String> sourceTuple = pipeline.getSourceKafka();\n\t\tTuple2<String, String> sinkTuple = pipeline.getSinkKafka();\n\n\t\t//simple predefined DAG source -> filter -> map -> sink \n\t\tFlinkKafkaConsumer<String> source = getKafkaSource(sourceTuple);\n\t\tFlinkKafkaProducer<String> sink = getKafkaSink(sinkTuple);\n\t\tenv\n\t\t\t.addSource(source)\n\t\t\t.filter(pipeline.getFilterFunction())\n\t\t\t.map(pipeline.getMapperFunction())\n\t\t\t.addSink(sink);\n\t\t//run the job\n\t\tenv.execute(jobName);\n\t}", "public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}", "Map<String, Object> execStreamTaskInstance(User loginUser, long projectCode,\n long taskDefinitionCode, int taskDefinitionVersion,\n int warningGroupId,\n String workerGroup, Long environmentCode,\n Map<String, String> startParams,\n int dryRun);", "public static void main(String[] args) throws IOException,\r\n\tInterruptedException, ClassNotFoundException {\nJob job = new Job();\r\njob.setJarByClass(EvideoJoinDMVIDFormatMR.class);\r\njob.setJobName(\"EvideoJoinDMVIDFormatETL\");\r\njob.getConfiguration().set(\"mapred.job.tracker\", \"local\");\r\njob.getConfiguration().set(\"fs.default.name\", \"local\");\r\n\r\nFileInputFormat.addInputPaths(job, \"output_evideo,conf/dm_common_vid\");\r\nFileOutputFormat.setOutputPath(job, new Path(\"output_vid_evideo\"));\r\njob.setMapperClass(EvideoJoinDMVIDFormatMap.class);\r\njob.setReducerClass(EvideoJoinDMVIDFormatReduce.class);\r\njob.setOutputKeyClass(Text.class);\r\njob.setOutputValueClass(Text.class);\r\nSystem.exit(job.waitForCompletion(true) ? 0 : 1);\r\n}", "public static void main(String[] args) {\n MyOptions options = PipelineOptionsFactory\n .fromArgs(args)\n .withValidation()\n .as(MyOptions.class);\n \n options.setStreaming(true);\n projectName = options.getProject();\n\n String subscription = \"projects/\"\n + projectName\n + \"/subscriptions/\"\n + \"dataflow-stream-demo\";\n\n String batchSubscription = \"projects/\"\n + projectName\n + \"/subscriptions/\"\n + \"dataflow-stream-gcs-demo\";\n Pipeline p = Pipeline.create(options);\n PCollection<String> merged;\n\n // Collect batched data events from Pub/Sub\n PCollection<String> uris = p.apply(PubsubIO.readMessagesWithAttributes()\n .fromSubscription(batchSubscription))\n .apply(MapElements\n .via(new InferableFunction<PubsubMessage, String>() {\n private static final long serialVersionUID = 1L;\n public String apply(PubsubMessage msg) throws Exception {\n return GcsPath.fromComponents(\n msg.getAttribute(\"bucketId\"),\n msg.getAttribute(\"objectId\")\n ).toString();\n }\n }));\n\n // Get our files from the batched events\n PCollection<String> batchedData = uris.apply(FileIO.matchAll()\n .withEmptyMatchTreatment(EmptyMatchTreatment.DISALLOW))\n .apply(FileIO.readMatches())\n .apply(TextIO.readFiles());\n\n // Read live data from Pub/Sub\n PCollection<String> pubsubStream = p.apply(\"Read from Pub/Sub\", PubsubIO.readStrings()\n .fromSubscription(subscription));\n \n // Merge our two streams together\n merged = PCollectionList\n .of(batchedData)\n .and(pubsubStream)\n .apply(\"Flatten Streams\",\n Flatten.<String>pCollections());\n // Decode the messages into TableRow's (a type of Map), split by tag\n // based on how our decode function emitted the TableRow\n PCollectionTuple decoded = merged.apply(\"Decode JSON into Rows\", ParDo\n .of(new DecodeMessage())\n .withOutputTags(windowData, TupleTagList\n .of(badData)\n .and(rawData)));\n \n // @decoded is now a single object that contains 3 streams, badData, rawData,\n // and windowData. This illustrates a \"mono\" stream approach where data from\n // a stream can be split and worked differently depending on variables in the\n // data at run time.\n\n // Write data that we couldn't decode (bad JSON, etc) to BigQuery\n decoded.get(badData)\n .apply(\"Send Dead Letter (Failed Decode)\", new DeadLetter(\"Failed Decode\"));\n\n // Write full, raw output, to a BigQuery table\n decoded.get(rawData)\n .apply(\"Raw to BigQuery\", BigQueryIO.writeTableRows()\n .to(projectName + \":dataflow_demo.rawData\")\n .withMethod(Method.STREAMING_INSERTS)\n .withSchema(Helpers.generateSchema(Helpers.rawSchema))\n .withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED)\n .withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND)\n .withFailedInsertRetryPolicy(InsertRetryPolicy.retryTransientErrors()))\n .getFailedInserts()\n .apply(\"Send Dead Letter (Raw)\", new DeadLetter(\"Raw\"));\n\n // Write full, raw output, to a BigTable table.\n decoded.get(rawData).apply(\"Convert to Mutation\", ParDo\n .of(new CreateMutation()))\n .apply(\"Raw to BigTable\", BigtableIO.write()\n .withProjectId(projectName)\n .withInstanceId(\"df-demo\")\n .withTableId(\"df-demo\"));\n\n // Process our previously decoded KV of (event, TableRow) outputs\n // and bucket them into 1 minute long buckets of data. Think of this\n // as a dam that opens the gates every minute.\n decoded.get(windowData)\n .apply(\"1 Minute Window\", Window.<KV<String,TableRow>>\n into(FixedWindows\n .of(Duration.standardMinutes(1))))\n\n // Take our 1 minute worth of data and combine it by Key, and\n // call our previously defined SumEvents function. This will in turn\n // emit a series of KV (event, TableRows) for each unique event\n // type.\n .apply(\"Calculate Rollups\", Combine.<String, TableRow>perKey(new SumEvents()))\n\n // Get the event name for this rollup, and apply it to the TableRow\n .apply(\"Apply Event Name\", ParDo\n .of(new DoFn<KV<String, TableRow>, TableRow>(){\n private static final long serialVersionUID = -690923091551584848L;\n @ProcessElement\n public void processElement(ProcessContext c, BoundedWindow window) {\n TableRow r = c.element().getValue();\n r.set(\"event\", c.element().getKey());\n r.set(\"timestamp\",window.maxTimestamp().getMillis() / 1000);\n c.output(r);\n }\n }))\n // Write our one minute rollups for each event to BigQuery\n .apply(\"Rollup to BigQuery\", BigQueryIO.writeTableRows()\n .to(projectName + \":dataflow_demo.rollupData\")\n .withMethod(Method.STREAMING_INSERTS)\n .withSchema(Helpers.generateSchema(Helpers.rollupSchema))\n .withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED)\n .withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND)\n .withFailedInsertRetryPolicy(InsertRetryPolicy.retryTransientErrors()))\n .getFailedInserts()\n .apply(\"Send Dead Letter (Rollups)\", new DeadLetter(\"Rollups\"));\n\n // Run our pipeline, and do not block/wait for execution!\n p.run();\n }" ]
[ "0.56019413", "0.558995", "0.5176342", "0.5106984", "0.5078236", "0.50298", "0.5023733", "0.49883634", "0.49602735", "0.49530092", "0.49485883", "0.49420777", "0.49089518", "0.49071196", "0.48988658", "0.4865687", "0.4862277", "0.48613524", "0.4823387", "0.48152512", "0.48093012", "0.47889605", "0.47865745", "0.47851917", "0.47841847", "0.47713122", "0.47586066", "0.47558805", "0.47530243", "0.47450793", "0.47437268", "0.47335446", "0.47097605", "0.47055563", "0.47050518", "0.469643", "0.46871376", "0.46870056", "0.46681824", "0.4662887", "0.46501923", "0.46468583", "0.4641342", "0.46386054", "0.46271098", "0.46242765", "0.4620545", "0.46155432", "0.4606136", "0.4605835", "0.4598924", "0.45940557", "0.45873547", "0.45772225", "0.45587933", "0.45528972", "0.45472002", "0.45440295", "0.45345894", "0.45341706", "0.45283923", "0.4526891", "0.4524046", "0.4516326", "0.45154333", "0.45150086", "0.45076782", "0.45069513", "0.4502849", "0.45018917", "0.4500525", "0.44985965", "0.44878426", "0.4480685", "0.44785064", "0.44751376", "0.44738322", "0.4469573", "0.446774", "0.44671637", "0.44637734", "0.4462297", "0.44561496", "0.44525626", "0.44521877", "0.4438179", "0.4435866", "0.44328025", "0.44297868", "0.4428212", "0.44201058", "0.44199416", "0.44174805", "0.4415472", "0.44145104", "0.44066972", "0.44066796", "0.44025204", "0.44016993", "0.43986592" ]
0.57903475
0
TODO Autogenerated method stub
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { String Selecteditem = itemname[+position]; if(Selecteditem.equals("Usage Monitor")){ Intent appInfo = new Intent(AP_Menu.this, ActivityMain.class); startActivity(appInfo); } else if(Selecteditem.equals("Data Sniffer")){ Intent appInfo = new Intent(AP_Menu.this, ApplicationListDataSniff.class); startActivity(appInfo); } else if(Selecteditem.equals("Log Manager")){ Intent appInfo = new Intent(AP_Menu.this, CallLogger.class); startActivity(appInfo); } else if(Selecteditem.equals("Task Manager")){ Intent appInfo = new Intent(AP_Menu.this, AndroidTaskManager.class); startActivity(appInfo); } else if(Selecteditem.equals("Version Updates")){ Intent appInfo = new Intent(AP_Menu.this, ApkListActivity.class); startActivity(appInfo); } else if(Selecteditem.equals("Frames Calculation")){ Intent appInfo = new Intent(AP_Menu.this, MaxFPSActivity.class); startActivity(appInfo); } else if(Selecteditem.equals("Battery Radar")){ Intent appInfo = new Intent(AP_Menu.this, BatteryTop.class); startActivity(appInfo); } else if(Selecteditem.equals("App Advisor")){ Intent appInfo = new Intent(AP_Menu.this, PowerManagerActivity.class); startActivity(appInfo); } }
{ "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
Exported constructors. Construct a new parallel section.
public ParallelSection() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IntPar() { }", "@Override\n\tpublic void visit(ParallelSectionsConstruct n) {\n\t\tcfgNode = n;\n\t}", "void create(Section section);", "private SectionSets ()\r\n {\r\n }", "Section createSection();", "public SectionDesc ()\r\n {\r\n }", "protected void createSection() {\r\n\t\tsection = new GraphSection();\r\n\t}", "public ParallelReceptacle() {\n }", "public AbstractParallelAlgorithm()\n {\n this(null);\n }", "public SubSectionDetail() {\r\n\t}", "public MeshPart() {\n\t}", "private void __sep__Constructors__() {}", "private void initSections() {\n sections = new HashMap<>();\n addSection(JsonFailuresInput.class, new JsonFailuresInput(inputProgram, jsonObject));\n addSection(JsonTransformationCollectionInput.class,\n new JsonTransformationCollectionInput(inputProgram, jsonObject));\n addSection(JsonHeaderInput.class, new JsonHeaderInput(inputProgram, jsonObject, verifyProject));\n }", "SectionList createSectionList();", "public Section(SectionCreator sc, Document doc, String name, String contents, boolean autoLink) {\n super(NAME_FEATURE_NAME, sc);\n this.name = name;\n ord = doc.countSections();\n if (autoLink)\n \tdoc.addSection(this);\n this.document = doc;\n this.contents = contents;\n fileName = Strings.join(new String[] { document.getId(), Integer.toString(ord), name }, \"__\");\n addFeatures(sc.getConstantSectionFeatures());\n }", "public synchronized TestResult.Section createSection(String name) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n Section section = new Section(name);\n sections = DynamicArray.append(sections, section);\n notifyCreatedSection(section);\n // avoid creating output (which will cause observer messages)\n // before the createdSection has been notified\n section.createOutput(TestResult.MESSAGE_OUTPUT_NAME);\n\n return section;\n }", "public BNHaystackLearnStructureJob() {}", "public Course(int ID, String name, Time time1, Time time2){\n\t\tthis.ID = ID;\n\t\tthis.name = name;\n\t\tthis.section1 = new Section(time1,name,ID,this,1);\n\t\tthis.section2 = new Section(time2,name,ID,this,2);\n\t}", "public Section(String sectionName, int lineNumber) {\n\t\t\tthis.name = sectionName;\n\t\t\tthis.startLineNumber = lineNumber;\n\t\t}", "public ParkingSpace() {}", "public PARiverDataGenerator() {\n }", "public Course(String n, String i, int m, String in, int s, String l) {\n\t\tname = n;\n\t\tid = i;\n\t\tmaxstudents = m;\n\t\tinstructor = in;\n\t\tsection = s;\n\t\tlocation = l;\n\t}", "public ParallelMinimalSeparatorsEnumerator()\n {\n super();\n Q = new ConcurrentQueueSet<>();\n P = ConcurrentHashMap.newKeySet();\n componentsCache = ConcurrentHashMap.newKeySet();\n }", "public void construct(){\n\t\tbuilder.buildPart1();\n\t\tbuilder.buildPart2();\n\t\tbuilder.retrieveResult();\n\t}", "Parcelle createParcelle();", "public Section newSection() {\n\t\tSection page = new Section();\r\n\t\tpage.setWpPublished(DateUtils.now());\r\n\t\treturn page;\r\n\t}", "public PESection(PEFile pef, long baseoffset) {\n m_pe = pef;\n m_baseoffset = baseoffset;\n }", "public ModuleParams()\n\t{\n\t}", "public Partage() {\n }", "public ClusterServicePlanSpec() {\n }", "private void initializationParameters(int numberOfPartitions){\n int tempNumber = numberOfPartitions * 2 + 1;\n ksi = new int[tempNumber];\n ksi[0] = NUMOFTESTCASES;\n eta = new int[numberOfPartitions];\n Y = new int[numberOfPartitions];\n d = 2;\n p = new double[numberOfPartitions];\n for (int i = 0; i < numberOfPartitions; i++) {\n p[i] = 1.0 / numberOfPartitions ;\n }\n }", "public ModuleParams() {\n }", "Sect1 createSect1();", "void createdSection(TestResult tr, Section section);", "public DivisionJSP() {\r\n\t\tsetBackground(Color.WHITE);\r\n\t\tsetOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\t\tsetDividerLocation(SPLIT_POSITION);\r\n\t\tsetElements();\r\n\t}", "@Override\n public void setParallel(boolean parallel) {\n super.setParallel(true);\n }", "public Ms2Cluster() { super(); }", "public Task(Task source) {\n if (source.Application != null) {\n this.Application = new Application(source.Application);\n }\n if (source.TaskName != null) {\n this.TaskName = new String(source.TaskName);\n }\n if (source.TaskInstanceNum != null) {\n this.TaskInstanceNum = new Long(source.TaskInstanceNum);\n }\n if (source.ComputeEnv != null) {\n this.ComputeEnv = new AnonymousComputeEnv(source.ComputeEnv);\n }\n if (source.EnvId != null) {\n this.EnvId = new String(source.EnvId);\n }\n if (source.RedirectInfo != null) {\n this.RedirectInfo = new RedirectInfo(source.RedirectInfo);\n }\n if (source.RedirectLocalInfo != null) {\n this.RedirectLocalInfo = new RedirectLocalInfo(source.RedirectLocalInfo);\n }\n if (source.InputMappings != null) {\n this.InputMappings = new InputMapping[source.InputMappings.length];\n for (int i = 0; i < source.InputMappings.length; i++) {\n this.InputMappings[i] = new InputMapping(source.InputMappings[i]);\n }\n }\n if (source.OutputMappings != null) {\n this.OutputMappings = new OutputMapping[source.OutputMappings.length];\n for (int i = 0; i < source.OutputMappings.length; i++) {\n this.OutputMappings[i] = new OutputMapping(source.OutputMappings[i]);\n }\n }\n if (source.OutputMappingConfigs != null) {\n this.OutputMappingConfigs = new OutputMappingConfig[source.OutputMappingConfigs.length];\n for (int i = 0; i < source.OutputMappingConfigs.length; i++) {\n this.OutputMappingConfigs[i] = new OutputMappingConfig(source.OutputMappingConfigs[i]);\n }\n }\n if (source.EnvVars != null) {\n this.EnvVars = new EnvVar[source.EnvVars.length];\n for (int i = 0; i < source.EnvVars.length; i++) {\n this.EnvVars[i] = new EnvVar(source.EnvVars[i]);\n }\n }\n if (source.Authentications != null) {\n this.Authentications = new Authentication[source.Authentications.length];\n for (int i = 0; i < source.Authentications.length; i++) {\n this.Authentications[i] = new Authentication(source.Authentications[i]);\n }\n }\n if (source.FailedAction != null) {\n this.FailedAction = new String(source.FailedAction);\n }\n if (source.MaxRetryCount != null) {\n this.MaxRetryCount = new Long(source.MaxRetryCount);\n }\n if (source.Timeout != null) {\n this.Timeout = new Long(source.Timeout);\n }\n if (source.MaxConcurrentNum != null) {\n this.MaxConcurrentNum = new Long(source.MaxConcurrentNum);\n }\n if (source.RestartComputeNode != null) {\n this.RestartComputeNode = new Boolean(source.RestartComputeNode);\n }\n if (source.ResourceMaxRetryCount != null) {\n this.ResourceMaxRetryCount = new Long(source.ResourceMaxRetryCount);\n }\n }", "public Park(int parkId, String name, double latitude, double longitude, String washroom,\n String neighName, String neighURL, String streetNumber, String streetName,\n String[] facility, String[] feature) {\n this.parkId = parkId;\n this.name = name;\n this.latitude = latitude;\n this.longitude = longitude;\n this.washroom = washroom;\n this.neighbourhoodName = neighName;\n this.neighbourhoodurl = neighURL;\n this.streetNumber = streetNumber;\n this.streetName = streetName;\n this.facility = facility;\n this.feature = feature;\n }", "protected ParkingSpace(Parcel in) {\n address = in.readParcelable(Address.class.getClassLoader());\n owner = in.readParcelable(User.class.getClassLoader());\n parkingImageUrl = in.readString();\n specialInstruction = in.readString();\n parkingID = in.readString();\n }", "void initializeMandatorySectionFields();", "Parallelogram(){\n length = width = height = 0;\n }", "public VectorGridSlice() {\n\n }", "private PartitionFunctionFactory() {\n }", "public Section(String name, List<String> emails) {\n this.name = name;\n this.emails = emails;\n }", "public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}", "public BusShared(String n, double l, double v, double h, double a, double num){\r\n\t\t\tsuper(n, l, v, h);\r\n\t\t\tthis.additional = a;\r\n\t\t\tthis.Stops = num;\r\n\t }", "public SAR(String options, String p1Name, String p2Name) {\n\t\tthis.options = options;\n//\t\tSystem.out.println(\"options:\" + this.options);\n\t\tthis.p1Name = p1Name;\n\t\tthis.p2Name = p2Name;\n\n\t\tif (this.options.contains(\"#\")) {\n\t\t\tint index = this.options.indexOf(\"#\");\n\t\t\tthis.experimentType = Integer.parseInt(options.substring(index + 1, index + 2));\n\t\t\tSystem.out.println(\"Experiment type is? \" + this.experimentType);\n\t\t}\n\n\t\tcanvas = new DrawCanvas(); // Construct a drawing canvas (a JPanel)\n\t\tcanvas.setFocusable(true);\n\t\tcanvas.setPreferredSize(new Dimension(CANVAS_WIDTH, CANVAS_HEIGHT));\n\t\tcanvas.setBorder(BorderFactory.createEmptyBorder(2, 5, 4, 5));\n\n\t\t//draw rooms\n\t\tcanvas.setLayout(new GridLayout(ROWS,COLS));\n\t\tfor (int i = 0; i < ROWS; i++)\n\t\t\tfor (int j = 0; j < COLS; j++){\n\t\t\t\tsquares[i][j] = new DrawRoom();\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\tsquares[i][j].setBorder(BorderFactory.createLineBorder(Color.black));\n\t\t\t\tcanvas.add(squares[i][j]);\n\t\t\t}\n\n\t\t// Setup the title bar (JLabel)\n\t\ttitleBar = new JLabel(new ImageIcon(\"images/title.png\"));\n\t\ttitleBar.setBorder(BorderFactory.createEmptyBorder(2, 5, 4, 5));\n\n\t\t// Setup the status bar (JLabel) to display status message during mission\n\t\tstatusBar = new JLabel(\" \");\n\t\tstatusBar.setFont(new Font(\"Serif\", Font.BOLD, 24));\n\t\tstatusBar.setBorder(BorderFactory.createEmptyBorder(2, 5, 4, 5));\n\n\t\tinstructions = new JTextArea();\n\t\tinstructions.setFont(new Font(\"Serif\", Font.ITALIC, 15));\n\t\tinstructions.setFocusable(false);\n\t\tinstructions.setEditable(false);\n\t\tinstructions.setWrapStyleWord(true);\n\t\tinstructions.setBorder(BorderFactory.createEmptyBorder(2, 5, 4, 5));\n\t\tinstructionsSP = new JScrollPane(instructions);\n\n\t\t//This button is used for tutorial only, and disabled by default\n\t\tbtnNext = new JButton(\"Next\");\n\t\tthis.setBtnNextVisible(false);\n\n\t\t//Initialize tutorial objects and stat variables\n\t\tthis.nullifyTutorialObjectsAndStats();\n\n\t\t//A label (used in tutorial only) to let the user know which page of the tutorial they're on\n\t\t//Disabled by default\n\t\tthis.pageNo = new JLabel(\"Page __ of __\");\n\t\tthis.pageNo.setVisible(false);\n\n\t\t//Put the above button into a horizontal box\n\t\tBox boxHoriz = Box.createHorizontalBox();\n\t\tboxHoriz.add(btnNext);\n\t\tboxHoriz.add(Box.createHorizontalStrut(10));\n\t\tboxHoriz.add(pageNo);\n\n\t\t//Now create a vertical box\n\t\tbox = Box.createVerticalBox();\n\t\tbox.add(instructionsSP);\t//Add the instruction text\n\t\tbox.add(boxHoriz);\t\t\t//Add the horizontal box containing the button above\n\n\t\tContainer cp = getContentPane();\n\t\tcp.setLayout(new BorderLayout());\n\t\tcp.setBackground(Color.WHITE);\n\t\tcp.add(titleBar, BorderLayout.NORTH);\n\t\tcp.add(canvas, BorderLayout.CENTER);\n\t\tcp.add(box, BorderLayout.EAST);\n\t\tcp.add(statusBar, BorderLayout.PAGE_END); // same as SOUTH\n\n\t\tthis.setPreferredSize(new Dimension(1600, 800));\n\n//\t\tToolkit tk = Toolkit.getDefaultToolkit();\n//\t int xSize = ((int) tk.getScreenSize().getWidth());\n//\t int ySize = ((int) tk.getScreenSize().getHeight());\n//\t this.setPreferredSize(new Dimension(xSize, ySize));\n\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.pack(); // pack all the components in this JFrame\n\t\tsetTitle(\"Search & Rescue\");\n\t\tsetVisible(true); // show this JFrame\n\n\n\t\tif (this.options.contains(\"T\")) {\t//tutorial mode\n\t\t\tthis.initTutorial();\t//enable this later once debugging complete\n//\t\t\tthis.initFinalMission();\n\t\t} else {\t\t\t\t\t\t\t//non-tutorial mode\n\n\t\t\t// Setup the instruction area (JTextArea)\n\t\t\tsetInstrText(InstructionMsg.DEFAULT);\n\n\t\t\t(new StartMissionPopupThread()).start();\t//popup GUI to start mission\n\n\t\t\t//custom method to initialize board and players\n\t\t\tthis.initMission();\n\t\t}\n\t\t//end if (this.options.contains(\"T\")) / else\n\t}", "@Override\n\tpublic void visit(ParallelConstruct n) {\n\t\tcfgNode = n;\n\t}", "protected void constructPartitions( Callback c, List nodes, int level ){\n //we want to ignore the dummy node partition\n String id = getPartitionID( mCurrentDepth );\n Partition p = new Partition( nodes, id );\n p.setIndex( mCurrentDepth );\n\n p.constructPartition();\n mLogger.log( \"Partition \" + p.getID() + \" is :\" + p.getNodeIDs(),\n LogManager.DEBUG_MESSAGE_LEVEL );\n c.cbPartition( p );\n\n }", "public PipelineImpl() {\n }", "public Chunk() {\n }", "public Course(String codeNo, String title)\n {\n // initialise instance variables\n this.codeNo = codeNo;\n this.title = title;\n \n module1 = new Module(\"Programming Concepts\", \"CO452\");\n module2 = new Module(\"Game Design\", \"CO459\");\n module3 = new Module(\"Networking\", \"CO451\");\n module4 = new Module(\"Computer Architectures\", \"CO450\");\n }", "public ParallelMatrix(int me,int n,int p,int m1[][] ,int m2[][],int res[][]) {\r\n B = n/p;\r\n this.me = me ;\r\n matrix1 = m1;\r\n matrix2 = m2;\r\n N = n;\r\n matrix = res;//new int[N][N];\r\n }", "serial() {\n super(1, 2, 3);\n }", "public ParallelUtilTest(\n String testName)\n {\n super(testName);\n }", "public StudentTask() {\n\t\tthis(\"student_task\", null);\n\t}", "public final AstValidator.parallel_clause_return parallel_clause() throws RecognitionException {\n AstValidator.parallel_clause_return retval = new AstValidator.parallel_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree PARALLEL24=null;\n CommonTree INTEGER25=null;\n\n CommonTree PARALLEL24_tree=null;\n CommonTree INTEGER25_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:144:17: ( ^( PARALLEL INTEGER ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:144:19: ^( PARALLEL INTEGER )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n PARALLEL24=(CommonTree)match(input,PARALLEL,FOLLOW_PARALLEL_in_parallel_clause261); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n PARALLEL24_tree = (CommonTree)adaptor.dupNode(PARALLEL24);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(PARALLEL24_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n INTEGER25=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_parallel_clause263); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INTEGER25_tree = (CommonTree)adaptor.dupNode(INTEGER25);\n\n\n adaptor.addChild(root_1, INTEGER25_tree);\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "SectionsType createSectionsType();", "void startAboutSectionCB(int classType) {\n startSectionCB(classType);\n }", "@Override\n public void initialize() {\n int numReduceTasks = conf.getNumReduceTasks();\n String jobID = taskAttemptID.getJobID();\n File mapOutputFolder = new File(\"mapoutput\");\n if (!mapOutputFolder.exists()) {\n mapOutputFolder.mkdir();\n }\n for (int reduceID = 0; reduceID < numReduceTasks; reduceID++) {\n outputFiles.add(\"mapoutput/\" + jobID + \"_r-\" + reduceID + \"_\" + this.partition);\n }\n }", "public AbstractParallelAlgorithm(\n final ThreadPoolExecutor threadPool)\n {\n super();\n\n this.setThreadPool(threadPool);\n }", "public Parallelogramm(Point a, Point b, Point c, Point d){\r\n\t\tsuper(a,b,c,d);\r\n\t}", "public Assembler() {\r\n // Instantiate internals\r\n instructionMap = new HashMap<String, Method>();\r\n instructionSpec = new HashMap<String, Processor>();\r\n codeSectionList = new LinkedList<Section>();\r\n // Regular expressions\r\n patternInstruction = Pattern.compile(\"\\\\s*(?:(\\\\w+):)?\\\\s*(?:(\\\\w+)(?:\\\\s+(.*))?)?\");\r\n patternSection = Pattern.compile(\"\\\\s*SECTION\\\\s+(\\\\.\\\\w+)\\\\s*\", Pattern.CASE_INSENSITIVE);\r\n patternOpBoolean = Pattern.compile(\"\\\\$true|\\\\$false\", Pattern.CASE_INSENSITIVE);\r\n patternOpString = Pattern.compile(\"\\\"[^\\\"]*\\\"\");\r\n patternOpLabel = Pattern.compile(\"[a-zA-Z_]\\\\w*\");\r\n // Instantiate the code emitter\r\n codeEmitter = new AssemblerIREmitter();\r\n // Populate instruction processors\r\n populateProcessors();\r\n }", "public TaskProgram() {\n initComponents();\n list=new ArrayList();\n li=list.listIterator();\n curtask=0;\n tottask=0;\n }", "public Task() {\n\t}", "public HomographyTask(){\n\n }", "SectionType createSectionType();", "Parking createParking();", "public PointDistributer() {\n }", "public Object par(IModule[] modules);", "public ParallelMapping(int numberOfThreads, ClassToThreads[] cToT) {\n //alex\n //this.maxNumberOfthreads = maxNumberOfThreads;\n //this.minNumberOfThreads = minNumberOfThreads;\n //this.numberOfthreadsAC = numberOfThreads;\n \n queues = new BlockingQueue[numberOfThreads];\n \n for (int i = 0; i < queues.length; i++) {\n //queues[i] = new LinkedBlockingQueue();\n queues[i] = new FIFOQueue();\n } \n this.classes = cToT;\n \n for(int i = 0; i < this.classes.length;i++){\n BlockingQueue[] q = new BlockingQueue[this.classes[i].tIds.length];\n for(int j = 0; j < q.length; j++){\n q[j] = queues[this.classes[i].tIds[j]];\n }\n this.classes[i].setQueues(q); \n }\n \n\n //this.barriers.put(CONFLICT_ALL, new CyclicBarrier(getNumThreadsAC()));\n\n //this.executorThread.put(CONFLICT_ALL, 0);\n reconfBarrier = new CyclicBarrier(numberOfThreads + 1);\n //reconfThreadBarrier = new CyclicBarrier(maxNumberOfthreads);\n }", "protected abstract void construct();", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n public void initialize() {\n sectionsPanel.removeAll();\n \n section1 = new ProgressReportSectionSettingPanel(this);\n section2 = new ProgressReportSectionSettingPanel(this);\n section3 = new ProgressReportSectionSettingPanel(this);\n section4 = new ProgressReportSectionSettingPanel(this);\n addSectionElement(0,section1);\n addSectionElement(1,section2);\n addSectionElement(2,section3);\n addSectionElement(3,section4);\n \n refresh();\n }", "public EnsembleLettre() {\n\t\t\n\t}", "public PSRelation()\n {\n }", "MemoryPartition createMemoryPartition();", "private RadiusSector() {}", "public OlcDistProcConfig()\n {\n super();\n }", "public Classroom()\n { \n // Create a new world with 10x6 cells with a cell size of 130x130 pixels.\n super(10, 6, 130); \n prepare();\n }", "@Override\n\tpublic void initialize(InputSplit arg0, TaskAttemptContext arg1)\n\t\t\tthrows IOException, InterruptedException {\n\n\t}", "public ForkJoinPoolMgr() {\n }", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "public ExportThread( String[] params )\n {\n super();\n execParams = params;\n }", "@Override\n\tpublic void visit(ParallelForConstruct n) {\n\t\tcfgNode = n;\n\t}", "public Parrot(String name) {\r\n\t\tsuper(name);\r\n\t}", "public Particle() {\n\t}", "private TMCourse() {\n\t}", "public Job() {\n\t\t\t\n\t\t}", "public BasicLoader() {\n }", "public LiteralValuePartitionAlgorithm() {\n\t\t\n\t}", "public Course(String codeNo, String title)\n {\n // initialise variables\n this.codeNo = codeNo;\n this.title = title;\n \n // Setup the four individual modules\n // I did it this way as I couldn't bear pointing-and-clicking to add modules!\n moduleProgramming = new Module(\"Programming\", \"ABC001\");\n moduleWeb = new Module(\"Web Design\", \"ABC002\");\n moduleDigitalTech = new Module(\"Digital Technology\", \"ABC003\");\n moduleCompArchitecture = new Module(\"Computer Architecture\", \"ABC004\");\n \n complete = false;\n totalCredits = 0;\n totalMark = 0;\n }" ]
[ "0.6135611", "0.59943116", "0.5973167", "0.5957472", "0.5908618", "0.5827007", "0.5817449", "0.5561983", "0.5543419", "0.52969307", "0.5296177", "0.5269992", "0.5219785", "0.5176894", "0.51348245", "0.51020586", "0.50781965", "0.5072841", "0.50675166", "0.49891087", "0.49747935", "0.49737406", "0.49726373", "0.49538192", "0.49377093", "0.49229887", "0.4911344", "0.49014926", "0.4884539", "0.48769826", "0.4867729", "0.4850147", "0.48427537", "0.48355585", "0.4832825", "0.4813515", "0.48093018", "0.48071942", "0.48029518", "0.479101", "0.4784342", "0.47812778", "0.4774551", "0.4753595", "0.47330526", "0.47330132", "0.4731697", "0.4729423", "0.47247565", "0.47073698", "0.470258", "0.4697197", "0.46966842", "0.4687572", "0.46796954", "0.4679055", "0.4674163", "0.46715182", "0.46599436", "0.4653311", "0.46532792", "0.46526754", "0.46516845", "0.4630744", "0.4628982", "0.46254325", "0.4621053", "0.46201056", "0.461949", "0.4618282", "0.46137914", "0.4610969", "0.46058354", "0.4599897", "0.4599897", "0.45996547", "0.459605", "0.45922884", "0.45900828", "0.4589085", "0.45871013", "0.45846167", "0.4578939", "0.45738676", "0.4573222", "0.4573222", "0.4573222", "0.4573222", "0.4573222", "0.4573222", "0.4573222", "0.45701724", "0.45699608", "0.4568783", "0.45562807", "0.455429", "0.4550392", "0.4548607", "0.4546992", "0.45433408" ]
0.81657517
0
Exported operations. Execute this parallel section. The run() method must be implemented in a subclass.
public abstract void run() throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void execute() {\n\t\tlog.debug(\"Execute was called\");\n\t\tfor (String mdl : executors.keySet()) {\n\t\t\tSubstructureExecutorI exe = executors.get(mdl);\n\t\t\texe.startStep(getStep(),\n\t\t\t\t\tMtxUtils.list2DoubleArray(displacementsMap.get(mdl)));\n\t\t}\n\t}", "public void execute() {\n\t\tlaunch();\n\t}", "public ParallelApply() {\n super.setParallel(true);\n }", "@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "public void run() {\n super.executeStep();\n }", "protected void execute() {\n\t\t//execution handled by pid thread\n\t}", "public void execute(){\n if (pipeline != null){\n pipeline.addTask(this);\n } else {\n run();\n }\n }", "public void execute() {\r\n\t\r\n\t}", "protected void execute() {\n\t\t\r\n\t\tParticleAnalysisReport[] reports = simpleVision.getFrame();\r\n\t\t for (int i = 0; i < reports.length; i++) { // print results\r\n ParticleAnalysisReport r = reports[i];\r\n SmartDashboard.putString(\"Particle\" + i, r.center_mass_x + \", \" + r.center_mass_y);\r\n\t\t }\r\n\t\t\r\n\t}", "public void run()\n\t{\n\t\tthis.partition();\n\t}", "public void execute() {\n\t\t/* Create a new thread and kick it off */\n\t\tThread tempThread = new Thread(exec, \"ROSpec Executer\");\n\t\ttempThread.start();\n\t}", "public void execute(String accNo) {\n log.info(\"executing partial export of {}\", accNo);\n\n Submission submission = submissionService.getSubmission(accNo);\n processCreatedAndUpdatedSubmissions(Collections.singletonList(submission));\n }", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\n\t}", "@Override\n public void execute() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n exportData();\n return null;\n }\n\n @Override\n protected void succeeded(){\n callback.onSuccess();\n super.succeeded();\n }\n\n @Override\n protected void failed(){\n callback.onFail(this.getException());\n super.failed();\n }\n };\n new Thread(task).start();\n }", "@Override\n protected void runComponent() {\n File outputDirectory = this.runExternal();\n // Attach the output files to the component output with addOutputFile(..>)\n\n if (outputDirectory.isDirectory() && outputDirectory.canRead()) {\n File file0 = new File(outputDirectory.getAbsolutePath() + \"/output.csv\");\n if (file0 != null && file0.exists()) {\n Integer nodeIndex0 = 0;\n Integer fileIndex0 = 0;\n String label0 = \"tab-delimited\";\n this.addOutputFile(file0, nodeIndex0, fileIndex0, label0);\n \n } else {\n this.addErrorMessage(\"An unknown error has occurred.\");\n }\n }\n \n // Send the component output back to the workflow.\n System.out.println(this.getOutput());\n }", "public void execute() {\n\n\t}", "public ParallelSection()\n\t\t{\n\t\tsuper();\n\t\t}", "protected void execute() {\n\t\t\n\t}", "public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}", "public void execute() {\n for (CoordAction<PCEData,PCEData> pce : this) {\n pce.setRequestData(this.getRequestData());\n // Aggregators trigger the execution of its children PCE's before they are\n // executed themselves.\n pce.process();\n }\n }", "public void execute() {\n TestOrchestratorContext context = factory.createContext(this);\n\n PipelinesManager pipelinesManager = context.getPipelinesManager();\n ReportsManager reportsManager = context.getReportsManager();\n TestDetectionOrchestrator testDetectionOrchestrator = context.getTestDetectionOrchestrator();\n TestPipelineSplitOrchestrator pipelineSplitOrchestrator = context.getPipelineSplitOrchestrator();\n\n pipelinesManager.initialize(testTask.getPipelineConfigs());\n reportsManager.start(testTask.getReportConfigs(), testTask.getTestFramework());\n pipelineSplitOrchestrator.start(pipelinesManager);\n\n testDetectionOrchestrator.startDetection();\n testDetectionOrchestrator.waitForDetectionEnd();\n LOGGER.debug(\"test - detection - ended\");\n\n pipelineSplitOrchestrator.waitForPipelineSplittingEnded();\n pipelinesManager.pipelineSplittingEnded();\n LOGGER.debug(\"test - pipeline splitting - ended\");\n\n pipelinesManager.waitForExecutionEnd();\n reportsManager.waitForReportEnd();\n\n LOGGER.debug(\"test - execution - ended\");\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \tint POV_value = Robot.m_oi.operator.getPOV();\n \tboolean input = true; \n \t//SmartDashboard.putNumber(\"POV Value\", POV_value);\n\t\tSmartDashboard.putNumber(\"Col Speed\", Robot.ss_Collector.getOutSpeed());\n \tswitch (POV_value){\n \tcase 0:\n \t\tthis.speed = .60;\n \t\tbreak;\n \tcase 45:\n \t\tthis.speed = .50;\n \t\tbreak;\n \tcase 90:\n \t\tthis.speed = .40; \n \t\tbreak;\n \tcase 135:\n \t\tthis.speed = .30;\n \t\tbreak;\n \tcase 180:\n \t\tthis.speed = .20;\n \t\tbreak;\n \tcase 270:\n \t\tthis.speed = .80;\n \t\tbreak;\n \tcase 315: \n \t\tthis.speed = .70;\n \t\tbreak;\n \tdefault:\n \t\tinput = false; \n \t\tbreak;\n \t}\n \t\n \tif (!running && input) {\n\t \trunning = true;\n \t\tthis.c_Drive = new C_CollectorDrive(false, -1, speed);\n \t\tc_Drive.start();\n \t}\n \t\n \telse if (running && !input) {\n \t\trunning = false;\n \t\tthis.c_Drive.cancel();\n \t}\n }", "public void execute() {\n }", "@Override\r\n\tpublic void executer() {\n\t}", "protected void execute() {\n\t\tSystem.out.println(\"Vision error: \" + RobotMap.VisionDistanceLeftPIDController.getError() + \" , \" + RobotMap.VisionDistanceRightPIDController.getError());\n\t\tSystem.out.println(\"vision, pidcontroller output: \" + RobotMap.VisionDistanceLeftPIDController.get() + \" , \" + RobotMap.VisionDistanceRightPIDController.get());\n\n\t}", "protected void execute() {\n\n\t}", "protected void execute() {\r\n }", "public RunProcDefJob() {\n\t}", "public void execute(){\n\t\t\n\t}", "protected void execute() {}", "protected void internalRun() {\n work();\n }", "@Override\n \tprotected void doExecutionStarted() throws CoreException {\n \t\tfinal OpenMpiRuntimeSystem rtSystem = (OpenMpiRuntimeSystem) getRtSystem();\n \t\tfinal IPJob ipJob = PTPCorePlugin.getDefault().getUniverse().getResourceManager(rtSystem.getRmID()).getQueueById(rtSystem.getQueueID()).getJobById(getJobID());\n \t\tfinal String zeroIndexProcessID = rtSystem.createProcess(getJobID(), \"Open MPI run\", 0);\n \t\tprocessIDs = new String[] { zeroIndexProcessID } ;\n \n \t\t/*\n \t\t * Listener that saves stdout.\n \t\t */\n \t\tfinal PipedOutputStream stdoutOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream stdoutInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tstdoutInputStream.connect(stdoutOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream stdoutPipedStreamListener = new InputStreamListenerToOutputStream(stdoutOutputStream);\n \t\t\n \t\tThread stdoutThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tBufferedReader stdoutBufferedReader = new BufferedReader(new InputStreamReader(stdoutInputStream));\n \t\t\t\tIPProcess ipProc = ipJob.getProcessById(zeroIndexProcessID);\n \t\t\t\ttry {\n \t\t\t\t\tString line = stdoutBufferedReader.readLine();\n \t\t\t\t\twhile (line != null) {\n \t\t\t\t\t\tsynchronized (lock1) {\n \t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStdoutAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tSystem.out.println(line);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tline = stdoutBufferedReader.readLine();\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tPTPCorePlugin.log(e);\n \t\t\t\t} finally {\n \t\t\t\t\tstdoutPipedStreamListener.disable();\n //\t\t\t\t\tif (stdoutObserver != null) {\n //\t\t\t\t\t\tstdoutObserver.removeListener(stdoutPipedStreamListener);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstdoutOutputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstdoutInputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Listener that saves stderr.\n \t\t */\n \t\tfinal PipedOutputStream stderrOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream stderrInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tstderrInputStream.connect(stderrOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream stderrPipedStreamListener = new InputStreamListenerToOutputStream(stderrOutputStream);\n \t\tThread stderrThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tfinal BufferedReader stderrBufferedReader = new BufferedReader(new InputStreamReader(stderrInputStream));\n \t\t\t\tIPProcess ipProc = ipJob.getProcessById(zeroIndexProcessID);\n \t\t\t\ttry {\n \t\t\t\t\tString line = stderrBufferedReader.readLine();\n \t\t\t\t\twhile (line != null) {\n \t\t\t\t\t\tsynchronized (lock1) {\n \t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStderrAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStdoutAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tSystem.err.println(line);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tline = stderrBufferedReader.readLine();\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tPTPCorePlugin.log(e);\n \t\t\t\t} finally {\n \t\t\t\t\tstderrPipedStreamListener.disable();\n //\t\t\t\t\tif (stderrObserver != null) {\n //\t\t\t\t\t\tstderrObserver.removeListener(stderrPipedStreamListener);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstderrOutputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstderrInputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Thread that parses map information.\n \t\t */\n \t\tfinal PipedOutputStream parserOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream parserInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tparserInputStream.connect(parserOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream parserPipedStreamListener = new InputStreamListenerToOutputStream(parserOutputStream);\n \t\tThread parserThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tOpenMpiResourceManagerConfiguration configuration = (OpenMpiResourceManagerConfiguration) getRtSystem().getRmConfiguration();\n \t\t\t\ttry {\n \t\t\t\t\t// Parse stdout or stderr, depending on mpi 1.2 or 1.3\n \t\t\t\t\tif (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_12)) {\n \t\t\t\t\t\tmap = OpenMpiProcessMapText12Parser.parse(parserInputStream);\n \t\t\t\t\t} else if (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_13)) {\n \t\t\t\t\t\tmap = OpenMpiProcessMapXml13Parser.parse(parserInputStream, new IOpenMpiProcessMapXml13ParserListener() {\n \t\t\t\t\t\t\tpublic void startDocument() {\n \t\t\t\t\t\t\t\t// Empty\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tpublic void endDocument() {\n \t\t\t\t\t\t\t\t/*\n \t\t\t\t\t\t\t\t * Turn of listener that generates input for parser when parsing finishes.\n \t\t\t\t\t\t\t\t * If not done, the parser will close the piped inputstream, making the listener\n \t\t\t\t\t\t\t\t * get IOExceptions for closed stream.\n \t\t\t\t\t\t\t\t */\n \t\t\t\t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\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} else {\n \t\t\t\t\t\tassert false;\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t/*\n \t\t\t\t\t * If output could not be parsed, the kill the mpi process.\n \t\t\t\t\t */\n \t\t\t\t\tparserException = e;\n \t\t\t\t\tprocess.destroy();\n \t\t\t\t} finally {\n \t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Create and start listeners.\n \t\t */\n \t\tstdoutThread.start();\n \t\tstderrThread.start();\n \t\tparserThread.start();\n \n \t\tstderrObserver = new InputStreamObserver(process.getErrorStream());\n \t\tstdoutObserver = new InputStreamObserver(process.getInputStream());\n \n\t\tstdoutObserver.addListener(stdoutPipedStreamListener);\n\t\tstderrObserver.addListener(stderrPipedStreamListener);\n \n \t\t// Parse stdout or stderr, depending on mpi 1.2 or 1.3\n \t\tOpenMpiResourceManagerConfiguration configuration = (OpenMpiResourceManagerConfiguration) getRtSystem().getRmConfiguration();\n \t\tif (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_12)) {\n \t\t\tstderrObserver.addListener(parserPipedStreamListener);\n \t\t} else if (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_13)) {\n \t\t\tstdoutObserver.addListener(parserPipedStreamListener);\n \t\t} else {\n \t\t\tassert false;\n \t\t}\n \n \t\tstderrObserver.start();\n \t\tstdoutObserver.start();\n \n \t\ttry {\n \t\t\tparserThread.join();\n \t\t} catch (InterruptedException e) {\n \t\t\t// Do nothing.\n \t\t}\n \n \t\tif (parserException != null) {\n \t\t\tprocess.destroy();\n \t\t\tthrow new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), \"Failed to parse Open Mpi run command output.\", parserException));\n \t\t}\n \n \t\t/*\n \t\t * Copy job attributes from map.\n \t\t */\n \t\trtSystem.changeJob(getJobID(), map.getAttributeManager());\n \n \t\t/*\n \t\t * Copy process attributes from map.\n \t\t */\n \t\tList<Process> newProcesses = map.getProcesses();\n \t\tprocessIDs = new String[newProcesses.size()];\n \t\tfor (Process newProcess : newProcesses) {\n \t\t\tString nodename = newProcess.getNode().getName();\n \t\t\tString nodeID = rtSystem.getNodeIDforName(nodename);\n \t\t\tif (nodeID == null) {\n \t\t\t\tprocess.destroy();\n \t\t\t\tthrow new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), \"Hostnames from Open MPI output do not match expected hostname.\", parserException));\n \t\t\t}\n \n \t\t\tString processName = newProcess.getName();\n \t\t\tint processIndex = newProcess.getIndex();\n \t\t\tString processID = null;\n \t\t\tif (processIndex == 0) {\n \t\t\t\tprocessID = zeroIndexProcessID;\n \t\t\t} else {\n \t\t\t\tprocessID = rtSystem.createProcess(getJobID(), processName, processIndex);\n \t\t\t}\n \t\t\tprocessIDs[processIndex] = processID;\n \n \t\t\tAttributeManager attrMgr = new AttributeManager();\n \t\t\tattrMgr.addAttribute(ElementAttributes.getNameAttributeDefinition().create(processName));\n \t\t\tattrMgr.addAttribute(ProcessAttributes.getStateAttributeDefinition().create(ProcessAttributes.State.RUNNING));\n \t\t\tattrMgr.addAttributes(newProcess.getAttributeManager().getAttributes());\n \t\t\trtSystem.changeProcess(processID, attrMgr);\n \t\t}\n \t}", "protected void execute() {\n\t}", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "@Override\n public void run() {\n result.prod(indexes.getI(),indexes.getJ(),matrix1,matrix2);\n }", "@Override\n public void execute() {\n var swerveModuleStates = calcDrive(//\n xSmooth.calc(xSpd.get() * DriveConstants.kTeleDriveMaxSpeedMetersPerSecond), //\n ySmooth.calc(ySpd.get() * DriveConstants.kTeleDriveMaxSpeedMetersPerSecond), //\n rotSmooth.calc(rotSpd.get() * DriveConstants.kTeleDriveMaxAngularSpeedRadiansPerSecond), //\n fieldOriented);\n swerveDrivetrain.setModuleStates(swerveModuleStates);\n }", "public void performOtherTasks() {\n\t\t\tSystem.out.println(\"performing tasks other than servicing\");\n\t\t\t// do whatever you want to do in the servicing package\n\t\t}", "public abstract void runOperation();", "public void execute() {\n // empty\n }", "public abstract void run();", "public abstract void run();", "public abstract void run();", "@SuppressWarnings(\"deprecation\")\n\tprotected void execute() {\n \t\n \n \t \n\t \t/*\n\t SmartDashboard.putDouble(\"Encoder Period: \", ExampleSubsystem.encoder.getPeriod());\n\t SmartDashboard.putDouble(\"Encoder Get: \", ExampleSubsystem.encoder.get());\n\t SmartDashboard.putDouble(\"Encoder RAW: \", ExampleSubsystem.encoder.getRaw());\n\t SmartDashboard.putDouble(\"Encoder Distance\", ExampleSubsystem.encoder.getDistance());\n\t SmartDashboard.putDouble(\"Encoder PID: \", ExampleSubsystem.encoder.pidGet());\n */\n \t\n \t/* System out println with Riolog\n \t \n\t \tSystem.out.println(\"Encoder Rate: \" + ExampleSubsystem.encoder.pidGet());\n\t \tSystem.out.println(\"Encoder Period: \" + ExampleSubsystem.encoder.getPeriod());\n\t \tSystem.out.println(\"Encoder Get: \" + ExampleSubsystem.encoder.get());\n\t \tSystem.out.println(\"Encoder RAW: \" + ExampleSubsystem.encoder.getRaw());\n\t \tSystem.out.println(\"Encoder Distance\" + ExampleSubsystem.encoder.getDistance());\n\t \tSystem.out.println(\"Encoder PID: \" + ExampleSubsystem.encoder.pidGet());\n \t*/\n \t\n }", "@Override\r\n\tabstract public void run();", "private static void automate() {\n \tLOG.info(\"Begin automation task.\");\n \t\n \tcurrentOpticsXi = clArgs.clusteringOpticsXi;\n \tdouble opticsXiMax = (clArgs.clusteringOpticsXiMaxValue > ELKIClusterer.MAX_OPTICS_XI ? ELKIClusterer.MAX_OPTICS_XI : clArgs.clusteringOpticsXiMaxValue);\n \tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \tint opticsMinPointsMax = clArgs.clusteringOpticsMinPtsMaxValue;\n \t\n \tLOG.info(\"optics-xi-start: {}, optics-xi-min-points-start: {}, optics-xi-step-size: {}, optics-min-points-step-size: {}\",\n \t\t\tnew Object[] { \n \t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints), \n \t\t\t\tdf.format(clArgs.clusteringOpticsXiStepSize), df.format(clArgs.clusteringOpticsMinPtsStepSize)\n \t\t\t});\n \t\n \twhile (currentOpticsXi <= opticsXiMax) {\n \t\twhile (currentOpticsMinPoints <= opticsMinPointsMax) {\n \t\t\t// Run automation for each combination of opticsXi and opticsMinPoints\n \t\t\tLOG.info(\"Run automation with optics-xi: {}, optics-xi-min-points: {}\", \n \t\t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints));\n \t\t\t\n \t\t\ttry {\n\t \t\t\t// Step 1: Clustering\n\t \t\t\tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir, currentOpticsXi, currentOpticsMinPoints);\n\t \t\t\t\n\t \t\t\t// Step 2: Build shared framework\n\t \t\t\tbuildFramework();\n\t \t\t\t\n\t \t\t\t// Step 3: Build user hierarchical graphs\n\t \t\t\tbuildHierarchicalGraphs();\n\t \t\t\t\n\t \t\t\t// Step 4: Calculate similarity between all users and create evaluation results afterwards\n\t \t\t\tcalculateSimilarity();\n \t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"An error occurred during the automation task. Jumping to the next pass.\", e);\n\t\t\t\t} finally {\n\t \t\t\t// Step 5: Clean up for the next run\n\t \t\t\tcleanAutomationResults();\n\t \t\t\t\n\t \t\t\t// Increase the currentOpticsMinPoints for the next run if desired\n\t \t\t\tif (clArgs.clusteringOpticsMinPtsStepSize > 0)\n\t \t\t\t\tcurrentOpticsMinPoints += clArgs.clusteringOpticsMinPtsStepSize;\n\t \t\t\telse\n\t \t\t\t\tbreak;\n\t\t\t\t}\n \t\t}\n \t\t// Reset current values\n \t\tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \t\t\n \t\t// Increase currentOpticsXi for the next run if desired\n \t\tif (clArgs.clusteringOpticsXiStepSize > 0)\n\t\t\t\tcurrentOpticsXi += clArgs.clusteringOpticsXiStepSize;\n\t\t\telse\n\t\t\t\tbreak;\n \t}\n \t\n \tLOG.info(\"End automation task.\");\n }", "protected abstract R runStep();", "public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}", "protected void execute()\n\t{\n\t}", "public void run()\n {\n Process exportProc = null;\n\n try\n {\n exportProc = Runtime.getRuntime().exec( execParams );\n exportProc.waitFor();\n }\n catch( IOException ex )\n {\n statusCode = ExportStatusCode.SCCERR_JAVA_IO_ERROR;\n return;\n }\n catch( InterruptedException ex )\n {\n // We've been interrupted (probably a timeout). Kill the process.\n exportProc.destroy();\n statusCode = ExportStatusCode.SCCERR_JAVA_INTERRUPTED;\n return;\n }\n\n statusCode = new ExportStatusCode( exportProc.exitValue() );\n }", "@Override\r\n\tpublic abstract void run();", "public void run() {\n // The run method should be overridden by the subordinate class. Please\n // see the example applications provided for more details.\n }", "@Override\n\tprotected void compute() {\n\t\tSystem.out.println(\"This is an action\");\n\t}", "@Override\n public void run() {\n if (checkFailure()) {\n throw new InvalidInputException(\"任务结果计算器暂时无法工作,因为未满足条件\");\n } else {\n analysisDistribution();\n File file = writeFile();\n task.setResult(OSSWriter.upload(file));\n task.setHasResult(true);\n taskController.update(task);\n }\n }", "protected void execute() {\n\t\tRobotMap.leftMaster.set(ControlMode.PercentOutput, vision.blockCheck() * turnMultiplier(\"left\"));\n\t\tRobotMap.rightMaster.set(ControlMode.PercentOutput, vision.blockCheck() * turnMultiplier(\"right\"));\n\t}", "public void Execute() {\n\n }", "@Override\r\n protected void compute() {\r\n //if count != 0 || splitA.length == 1 then go, else for loop to make splitA.length subtasks to run splitArrayB and then they all call mergeAB\r\n if(global_count == 0){\r\n splitArrayB();\r\n }\r\n if(global_count != 0 || splitA.length == 1){\r\n mergeAB();\r\n }\r\n else{\r\n List<ConcurrentMerge> subtasks = new ArrayList<>();\r\n ConcurrentMerge temp;\r\n for(int i = 0; i < splitA.length; i++){\r\n global_count++;\r\n temp = new ConcurrentMerge(A, B, splitA, splitB, C, global_count);\r\n subtasks.add(temp);\r\n }\r\n invokeAll(subtasks);\r\n }\r\n }", "@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 public void runTask() {\n PortugueseDistrictImportAuxiliaryServices aux = PortugueseDistrictImportAuxiliaryServices.getInstance();\n aux.executeTask(this);\n }", "protected void execute()\n {\n }", "public abstract void run() ;", "public void compute() {}", "public void run()\n\t{\n\t\t\n\t\t\n\t\tString[] args = new String[] { };\n\t\ttry \n\t\t{\n\t\t\tToolRunner.run(this, args);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tlogger.error(\"Hadoop job execution failed\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void execute() {\n if(cb) {\n Main.cb.step(Main.cpu.get8BitImm());\n }\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}", "abstract void exec();", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "public void startCompute();", "@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}", "public ExportThread( String[] params )\n {\n super();\n execParams = params;\n }", "public void run() {\n\t\t\n\t\t\n\t\t\tsaleMethod1();\n\t\t\t//saleMethod3();\n\t\t\t//saleMethod2();\n\t}", "public void _run() {\n String[] args = (String[])tEnv.getObjRelation(\"ARGS\");\n\n log.println(\"Running with arguments:\");\n for (int i=0; i< args.length; i++)\n log.println(\"#\" + i + \": \" + args[i]);\n\n oObj.run(args);\n\n tRes.tested(\"run()\", true);\n }", "protected void execute() {\n\t\tBBox bBox = bBoxLocator.getBBox();\n\t\tSmartDashboard.putBoolean(\"Can See With Vision\", wasDetected);\n\n\t\tif (bBox != null) {\n\t\t\twasDetected = true;\n\t\t\tpidAngle.setSetpoint(Robot.drivetrain.getHeading() + bBox.angleDeg);\n\t\t\tSmartDashboard.putNumber(\"PID Vision Setpoint Angle\", pidAngle.getSetpoint());\n\t\t}\n\n\t\tif (!waitForVision || wasDetected) {\n\t\t\tRobot.drivetrain.drive(driveOutput * (useAccelerationFiler ? filter.output() : 1), driveCurve);\n\t\t}\n\t}", "@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}" ]
[ "0.6536316", "0.6172779", "0.61268", "0.6122819", "0.6069699", "0.6069699", "0.6064798", "0.6064798", "0.6064798", "0.6064798", "0.6064798", "0.6064798", "0.6064798", "0.59975874", "0.5980408", "0.59721446", "0.59510607", "0.59417045", "0.59370446", "0.590748", "0.5865413", "0.58352214", "0.58352214", "0.58352214", "0.583387", "0.58238125", "0.58142877", "0.58078307", "0.5741906", "0.57346255", "0.56926364", "0.56908363", "0.56841", "0.56777537", "0.56777537", "0.56754524", "0.5668321", "0.5668022", "0.5661999", "0.56507564", "0.56471443", "0.56316036", "0.56282306", "0.5604402", "0.5601919", "0.5592234", "0.5568582", "0.5560254", "0.5560254", "0.5560254", "0.5560254", "0.5560254", "0.5560254", "0.5560254", "0.5560254", "0.5560254", "0.5560254", "0.5560254", "0.5560254", "0.5553494", "0.5544901", "0.55324244", "0.5526232", "0.5523887", "0.5518201", "0.5518201", "0.5518201", "0.5514474", "0.551069", "0.55030924", "0.5491533", "0.54888976", "0.5483897", "0.54679775", "0.5463924", "0.54574794", "0.5448599", "0.54484034", "0.5446824", "0.54440093", "0.5440751", "0.5435667", "0.54335487", "0.5430213", "0.5429714", "0.5419929", "0.54197896", "0.54171485", "0.5408209", "0.54036987", "0.53984493", "0.53984493", "0.53984493", "0.53984493", "0.53939205", "0.5393496", "0.53928053", "0.5385344", "0.5373085", "0.5370436", "0.53692657" ]
0.0
-1
Gets the metric unit.
@Override public IMetricDimension getMetricUnit() { // TODO Auto-generated method stub return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}", "public String unit() {\n return this.unit;\n }", "TimeUnit getUnit();", "public String getUnit()\n {\n return (this.unit);\n }", "public String getUnitOfMeasurement() {\r\n\t\treturn unitOfMeasurement;\r\n\t}", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n\t\treturn unit;\n\t}", "String getUnit();", "public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }", "public String getUnitOfMeasure() {\r\n return this.unitOfMeasure;\r\n }", "public String getUnit();", "public String getUnit () {\n\treturn this.unit;\n }", "@javax.persistence.Column(name = \"unit\", precision = 5)\n\tpublic java.lang.String getUnit() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);\n\t}", "public String getDurationUnit() {\n\t\treturn (String) get_Value(\"DurationUnit\");\n\t}", "public String getUnitOfMeasure() {\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver, \"//input[@name='unitOfMeasure']/following-sibling::input[@type='text']\").getAttribute(\"value\");\r\n\t}", "ChronoUnit getUnit();", "public jkt.hms.masters.business.MasUnitOfMeasurement getUnitOfMeasurement() {\n\t\treturn unitOfMeasurement;\n\t}", "public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }", "public String getWeightUnit() {\n return (String) get(\"weight_unit\");\n }", "private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }", "@Accessor(qualifier = \"Unit\", type = Accessor.Type.GETTER)\n\tpublic B2BUnitModel getUnit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(UNIT);\n\t}", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum getUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNIT$6, 0);\n if (target == null)\n {\n return null;\n }\n return (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum)target.getEnumValue();\n }\n }", "public Unit getUnit() {\n\t\treturn unit;\n\t}", "public String getMetric() {\n return metric;\n }", "public String getTimeUnit()\n\t{\n\t\treturn timeUnit;\n\t}", "public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }", "public String getToUnit() {\r\n return this.toUnit;\r\n }", "public String getUnits() {\n return units;\n }", "String getUnits();", "String getUnits();", "String getUnits();", "public String getUnits() {\n return units;\n }", "Unit getUnit();", "public String getUnits() {\r\n\t\treturn units;\r\n\t}", "public String getUnit() {\n\t\treturn(symbol);\n\t}", "String getUnitsString();", "@Updatable\n public String getUnit() {\n return unit;\n }", "protected String getUnits()\n {\n return units;\n }", "public String getUnitsString() {\n return units;\n }", "DefinedUnitType getDefinedUnit();", "public String getUnitnm() {\r\n return unitnm;\r\n }", "public String getUnits() {\n\t\treturn units;\n\t}", "public String getMetric() {\n return this.metric;\n }", "public String getUnits() {\n return this.units;\n }", "public String getMeasuredUnitId() {\n return this.measuredUnitId;\n }", "public java.lang.String getUnits() {\r\n return localUnits;\r\n }", "public int getUnits() {\r\n return units;\r\n }", "Units getUnits();", "public String getUnitName() {\n return unitName;\n }", "public String getUnitName() {\n return unitName;\n }", "public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }", "public String getUnitName () {\n return unitName;\n }", "public Unit getUnit() {\n return unit;\n }", "public String getUnitName() {\r\n return unitName;\r\n }", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType xgetUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType)get_store().find_element_user(UNIT$6, 0);\n return target;\n }\n }", "public int getUnitNum(){\n\t\treturn Integer.parseInt(unitNumLbl.getText());\n\t}", "public int getUnits() {\n\t\treturn units;\n\t}", "java.lang.String getMetricName();", "public Length getUnit() {\n return unit;\n }", "public String getKcUnit() {\n return kcUnit;\n }", "String getBaseUnit() {\n return baseUnit;\n }", "public int getUnits() {\r\n\r\n\t\treturn this.units;\r\n\t}", "public String getMetricName() {\n return this.MetricName;\n }", "public Unit<?> getUnit() {\n return _unit;\n }", "public abstract String getUnit();", "public String getDataUnit() {\n return dataUnit;\n }", "DefiningUnitType getDefiningUnit();", "public String getUnits() {\n\t\tif (GridDialog.GRID_UNITS.containsKey(name)) {\n\t\t\treturn GridDialog.GRID_UNITS.get(name);\n\t\t}else {\n\t\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\t\treturn esf.getGridUnits();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public static Unit getDefaultUnit() {\r\n return (Unit)getDefaultUnit(AngularMeasurement.class);\r\n }", "public String metricName() {\n return this.metricName;\n }", "public String getTransferUnit() {\n\n if (transferUnit.length() > 0) {\n return transferUnit + \"/sec\";\n } else {\n return transferUnit; // default value is empty string\n }\n }", "TimeUnit getTimeUnit() {\n return timeUnit;\n }", "public int getUnits()\n {\n return m_cUnits;\n }", "@Override protected String getDurationUnit() {\n return super.getDurationUnit();\n }", "public String getUserUnitString() {\n\t\treturn NonSIext.getUnitString(userUnit);\n\t}", "public static String units(String unit) {\n\t\tswitch (unit) {\n\t\t\tcase \"feet\":\n\t\t\t\treturn \"ft\";\n\t\t\tcase \"miles\":\n\t\t\t\treturn \"mi\";\n\t\t\tcase \"meters\":\n\t\t\t\treturn \"m\";\n\t\t\tcase \"kilometers\":\n\t\t\t\treturn \"km\";\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t}\n\t}", "public com.mpe.financial.model.ItemUnit getItemUnit () {\r\n\t\treturn itemUnit;\r\n\t}", "public int getUnits()\n {\n return m_cCurUnits;\n }", "public SystemOfUnits getSystemOfUnits() {\n return SI.getInstance();\n }", "private String getDistanceUnit(int distance) {\n switch (distance) {\n case DISTANCE_KM:\n return getResourceString(R.string.val_km);\n case DISTANCE_MILES:\n return getResourceString(R.string.val_m);\n }\n\n return \"\";\n }", "public Units getUnitTable();", "public Identifier getCostUnitOfMeasureIdentifier()\r\n\t{\r\n\t\treturn costUnitOfMeasureIdentifier;\r\n\t}", "public FioUnit getUnits() {\n\t\treturn this.units;\n\t}", "public String getUnitcd() {\r\n return unitcd;\r\n }", "@Override\n\tpublic String getUnitsString() {\n\t\treturn null;\n\t}", "public String getFromUnit() {\r\n return this.fromUnit;\r\n }", "public byte getUnits() { return units; }", "public jkt.hms.masters.business.MasStoreAirForceDepot getUnit () {\n\t\treturn unit;\n\t}", "public java.lang.String getUnitDWT() {\n\t\treturn _tempNoTiceShipMessage.getUnitDWT();\n\t}", "final Unit getUnits() {\n Unit units = null;\n for ( int i = getDimension(); --i >= 0; ) {\n final Unit check = getUnits( i );\n if ( units == null )\n units = check;\n else if ( !units.equals( check ) )\n return null;\n }\n return units;\n }", "protected float getDpUnit() {\n return mDpUnit;\n }", "public short getResolutionUnit()\r\n\t{\r\n\t\treturn super.getShort(0);\r\n\t}", "private String getAmountUnit(int unit) {\n switch (unit) {\n case UNIT_LITERS:\n return getResourceString(R.string.val_l);\n case UNIT_GALLONS:\n return getResourceString(R.string.val_g);\n }\n\n return \"\";\n }", "public String getChargeUnit() {\n return this.ChargeUnit;\n }", "public double getUnitsPerPercent()\n {\n return unitsPerPercent;\n }", "@JsonGetter(\"measurement_unit\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public CatalogMeasurementUnit getMeasurementUnit() {\r\n return measurementUnit;\r\n }", "public static UnitTypes GetUnitType(Units unit)\n {\n return MethodsCommon.GetTypeFromUnit(unit);\n }", "public String getUnitDescription ()\n {\n return unitDescription;\n }" ]
[ "0.84433717", "0.8131432", "0.8035111", "0.8025007", "0.79209155", "0.78993434", "0.78993434", "0.78993434", "0.78964394", "0.77192277", "0.7712121", "0.77056396", "0.7602951", "0.7601868", "0.7595201", "0.75803494", "0.7460136", "0.73038226", "0.7293079", "0.72504723", "0.7230466", "0.72217405", "0.7221575", "0.7215884", "0.7169643", "0.71677667", "0.71566397", "0.71406394", "0.7118892", "0.70954597", "0.7094628", "0.7094628", "0.7094628", "0.70835483", "0.70725423", "0.70506585", "0.7049205", "0.7040117", "0.703272", "0.7014728", "0.7009449", "0.7006118", "0.7004092", "0.69972837", "0.69630957", "0.6946736", "0.6916843", "0.6883689", "0.68593085", "0.68585473", "0.683711", "0.683711", "0.6825403", "0.6814971", "0.68101066", "0.6794129", "0.6794031", "0.6790662", "0.67792755", "0.6776647", "0.6749189", "0.6741679", "0.66706145", "0.6669288", "0.66651356", "0.66287094", "0.66177815", "0.6597948", "0.657439", "0.6572182", "0.6570826", "0.65482897", "0.6520653", "0.6520391", "0.6510247", "0.6504862", "0.6502215", "0.64749205", "0.64505017", "0.64457697", "0.64302313", "0.6416343", "0.641223", "0.64079624", "0.6389321", "0.6384451", "0.6379213", "0.6348893", "0.6330587", "0.6318746", "0.6316771", "0.63002354", "0.6273052", "0.6270125", "0.62609935", "0.62607807", "0.62489456", "0.6245414", "0.62414616", "0.6240816" ]
0.7876791
9
Gets the metric value.
@Override public double getMetricValue() { // TODO Auto-generated method stub return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getValue() {\n synchronized (mutex) {\n return statisticsAccumulator.getValue();\n }\n }", "public String getMetric() {\n return this.metric;\n }", "public String getMetric() {\n return metric;\n }", "public double getValue() {\n return value_;\n }", "public double getValue() {\n return value_;\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return this.value;\n }", "public double getValue() {\n return this.value;\n }", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue()\n {\n return this.value;\n }", "public double getValue() {\n\t\treturn this.value; \n\t}", "public double getValue() {\r\n return this.value;\r\n }", "public double getValue(){\n return value;\n }", "public double getValue() {\n\t\treturn this.value;\n\t}", "public double getValue() {\r\n\t\treturn value;\r\n\t}", "public double getValue() {\n return this._value;\n }", "public double getValue() {\n\t\treturn(value);\n\t}", "@Override\n\tpublic double getValue() {\n\t\treturn value;\n\t}", "public double getValue();", "public InformationLoss getValue(final Metric<?> metric) {\n return values.get(metric);\n }", "private double getValue() {\n return value;\n }", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "double getValue();", "double getValue();", "double getValue();", "public Double getValue() {\n return value;\n }", "public Double getValue() {\n return value;\n }", "public double getValue()\r\n\t{\r\n\t\treturn (double) value;\r\n\t}", "public float getValue()\n\t{\n\t\treturn this.value;\n\t}", "@Override\n public double getValue()\n {\n return value;\n }", "protected Object getMetricValue(ObjectName metricObjectName)\n {\n Object metricValue;\n try\n {\n try\n {\n metricValue = getMBeanAttribute(metricObjectName, \"Value\");\n }\n catch (AttributeNotFoundException ignored)\n {\n metricValue = getMBeanAttribute(metricObjectName, \"Count\");\n }\n }\n catch (Exception e)\n {\n throw new RuntimeException(e);\n }\n return metricValue;\n }", "protected Object getMetricValue(ObjectName metricObjectName)\n {\n Object metricValue;\n try\n {\n try\n {\n metricValue = getMBeanAttribute(metricObjectName, \"Value\");\n }\n catch (AttributeNotFoundException ignored)\n {\n metricValue = getMBeanAttribute(metricObjectName, \"Count\");\n }\n }\n catch (Exception e)\n {\n throw new RuntimeException(e);\n }\n return metricValue;\n }", "public float getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n\t\treturn sensorval;\n\t}", "public float getValue() {\n return value;\n }", "@VTID(14)\r\n double getValue();", "public float getValue() {\n return value_;\n }", "public double value() {\r\n return value;\r\n }", "double getValue() {\n return mValue;\n }", "public int getValue()\n {\n return mi_value;\n }", "public int getValue()\n {\n return mi_value;\n }", "@Override\n public Number getValue() {\n return tcpStatWrapper.query().get(entry.getKey());\n }", "public final float getValue() {\r\n\t\treturn value;\r\n\t}", "public Integer getValue() {\n return formatter.getValue();\n }", "public float getValue() {\n return value_;\n }", "Double getValue();", "public Integer getValue();", "float getValue();", "float getValue();", "float getValue();", "public int getValue()\n {\n return value;\n }", "public double getValue() {\n\t\treturn m_dValue;\n\t}", "public int getValue()\r\n {\r\n return value;\r\n }", "public int getValue()\n {\n return value;\n }", "public int getValue() \n {\n return value;\n }", "public int getValue();", "public int getValue();", "public int getValue() {\r\n return value;\r\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public String getValue() {\n return getMethodValue(\"value\");\n }", "public int getValue () {\n return value;\n }", "public Value getValue(){\n return this.value;\n }", "public int getValue() {\r\n return value;\r\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return value_;\n }", "public int getValue() {\n return value_;\n }", "public Integer getValue() {\n return _value ;\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }" ]
[ "0.7417612", "0.735728", "0.73550636", "0.73321533", "0.72863066", "0.72751075", "0.72751075", "0.72751075", "0.7232794", "0.7232794", "0.7225768", "0.7225768", "0.7225768", "0.72246945", "0.7220427", "0.7215571", "0.72152877", "0.71903265", "0.7189901", "0.71730435", "0.7169864", "0.71389073", "0.71236515", "0.7045479", "0.7035038", "0.7002554", "0.70019007", "0.70019007", "0.70019007", "0.6982154", "0.6982154", "0.69756", "0.6936781", "0.6919226", "0.6894536", "0.6894536", "0.6893955", "0.6861739", "0.68512994", "0.682783", "0.6805956", "0.6805599", "0.6798846", "0.6794678", "0.6794678", "0.6786517", "0.6769", "0.67679054", "0.6747101", "0.6742583", "0.67325115", "0.672163", "0.672163", "0.672163", "0.6714716", "0.6706747", "0.66812897", "0.6678344", "0.66758275", "0.667476", "0.667476", "0.66713685", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66702783", "0.66689897", "0.6668896", "0.6664577", "0.66544175", "0.6653801", "0.6653801", "0.6650715", "0.6650715", "0.6650715", "0.6650715", "0.6650715", "0.6650715", "0.66441196", "0.66441196", "0.66441196", "0.66441196", "0.66391534", "0.66391534", "0.66360426", "0.6635934", "0.6635934", "0.6635934", "0.6635934" ]
0.71360457
22
This interface will allow to have multiple data storage implementations.
public interface TransactionDAO { String addTransaction(Long userId, String transaction) throws Exception; String showTransaction(Long userId, String transactionId) throws Exception; String listTransactions(Long userId) throws Exception; String sumTransactions(Long userId) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataStorage getDataStorage();", "public interface DataStore {\n\n Bucket loadBucket(String bucketName);\n\n List<Bucket> loadBuckets();\n\n void saveBucket(Bucket bucket);\n\n void deleteBucket(String bucketName);\n\n Blob loadBlob(String bucketName, String blobKey);\n\n List<Blob> loadBlobs(String bucketName);\n\n void saveBlob(String bucketName, Blob blob);\n\n void deleteBlob(String bucketName, String blobKey);\n}", "public interface DataManager {\n void saveData(String key, String data);\n String getData(String key);\n}", "public interface DataManager {\n\n void saveData(String key, String value);\n\n String getData(String key);\n}", "public interface Storage extends ClientListStorage, UserPrefsStorage, PolicyListStorage {\n\n @Override\n Optional<UserPrefs> readUserPrefs() throws DataConversionException, IOException;\n\n @Override\n void saveUserPrefs(ReadOnlyUserPrefs userPrefs) throws IOException;\n\n @Override\n Path getClientListFilePath();\n\n @Override\n Optional<ReadOnlyClientList> readClientList() throws DataConversionException, IOException;\n\n @Override\n void saveClientList(ReadOnlyClientList clientList) throws IOException;\n\n @Override\n Path getPolicyListFilePath();\n\n @Override\n Optional<PolicyList> readPolicyList() throws DataConversionException, IOException;\n\n @Override\n void savePolicyList(PolicyList policyList) throws IOException;\n}", "public interface DistributeStorage<T> {\n public void store(String path, T t, boolean create) throws StorageException;\n\n public T get(String path, Class<T> tClass) throws StorageException;\n\n public void del(String path) throws StorageException;\n\n public boolean exist(String path) throws StorageException;\n}", "public interface SerializableStorage {\n\n /**\n * Method to save the binary data\n *\n * @param uuid identifier for the data\n * @param context binary data to save\n * @throws FailedToStoreDataInStorage in case when storage has failed to save the data\n */\n void store(UUID uuid, byte[] context) throws FailedToStoreDataInStorage;\n\n /**\n * Method to retrieve stored data\n *\n * @param uuid identifier for the data\n * @return binary data\n * @throws FailedToRetrieveStorageData in case when storage has faile to retrieve the data\n * @throws DataNotFoundInStorage in case when data has not been found\n */\n byte[] retrieve(UUID uuid) throws FailedToRetrieveStorageData, DataNotFoundInStorage;\n\n /**\n * Method to delete stored data from storage\n *\n * @param uuid identifier for the data\n * @throws DataNotFoundInStorage in case when data has not been found\n * @throws FailedToDeleteDataInStorage in case when storage has failed to delete the data\n */\n void delete(UUID uuid) throws DataNotFoundInStorage, FailedToDeleteDataInStorage;\n\n /**\n * Method to retrieve an occupied data size. Lets suppose it measured in bytes\n * @return occupied place size in bytes\n */\n long getOccupiedSize();\n}", "public interface DBStorage {\n \n /**\n * Get the name of the storage vendor (DB vendor name)\n *\n * @return name of the storage vendor (DB vendor name)\n */\n String getStorageVendor();\n \n /**\n * Can this storage handle the requested database?\n *\n * @param dbm database meta data\n * @return if storage can handle the requested database\n */\n boolean canHandle(DatabaseMetaData dbm);\n \n /**\n * Get the ContentStorage singleton instance\n *\n * @param mode used storage mode\n * @return ContentStorage singleton instance\n * @throws FxNotFoundException if no implementation was found\n */\n ContentStorage getContentStorage(TypeStorageMode mode) throws FxNotFoundException;\n \n /**\n * Get the EnvironmentLoader singleton instance\n *\n * @return EnvironmentLoader singleton instance\n */\n EnvironmentLoader getEnvironmentLoader();\n \n /**\n * Get the SequencerStorage singleton instance\n *\n * @return SequencerStorage singleton instance\n */\n SequencerStorage getSequencerStorage();\n \n /**\n * Get the TreeStorage singleton instance\n *\n * @return TreeStorage singleton instance\n */\n TreeStorage getTreeStorage();\n \n /**\n * Get the LockStorage singleton instance\n *\n * @return LockStorage singleton instance\n */\n LockStorage getLockStorage();\n \n /**\n * Get a data selector for a sql search\n *\n * @param search current SqlSearch to operate on\n * @return data selector\n * @throws FxSqlSearchException on errors\n */\n DataSelector getDataSelector(SqlSearch search) throws FxSqlSearchException;\n \n /**\n * Get a data filter for a sql search\n *\n * @param con an open and valid connection\n * @param search current SqlSearch to operate on\n * @return DataFilter\n * @throws FxSqlSearchException on errors\n */\n DataFilter getDataFilter(Connection con, SqlSearch search) throws FxSqlSearchException;\n \n /**\n * Get the CMIS SQL Dialect implementation\n *\n * @param environment environment\n * @param contentEngine content engine in use\n * @param query query\n * @param returnPrimitives return primitives?\n * @return CMIS SQL Dialect implementation\n */\n SqlDialect getCmisSqlDialect(FxEnvironment environment, ContentEngine contentEngine, CmisSqlQuery query, boolean returnPrimitives);\n \n /**\n * Get the database vendor specific Boolean expression\n *\n * @param flag the flag to get the expression for\n * @return database vendor specific Boolean expression for <code>flag</code>\n */\n String getBooleanExpression(boolean flag);\n \n /**\n * Get the boolean <code>true</code> expression string for the database vendor\n *\n * @return the boolean <code>true</code> expression string for the database vendor\n */\n String getBooleanTrueExpression();\n \n /**\n * Get the boolean <code>false</code> expression string for the database vendor\n *\n * @return the boolean <code>false</code> expression string for the database vendor\n */\n String getBooleanFalseExpression();\n \n /**\n * Escape reserved words properly if needed\n *\n * @param query the query to escape\n * @return escaped query\n */\n String escapeReservedWords(String query);\n \n /**\n * Get a database vendor specific \"IF\" function\n *\n * @param condition the condition to check\n * @param exprtrue expression if condition is true\n * @param exprfalse expression if condition is false\n * @return database vendor specific \"IF\" function\n */\n String getIfFunction(String condition, String exprtrue, String exprfalse);\n \n /**\n * Get the database vendor specific operator to query regular expressions\n *\n * @param column column to match\n * @param regexp regexp to match the column against\n * @return database vendor specific operator to query regular expressions\n */\n String getRegExpLikeOperator(String column, String regexp);\n \n /**\n * Get the database vendor specific statement to enable or disable referential integrity checks.\n * When in a transaction, be sure to check {@link #isDisableIntegrityTransactional()}\n * since not all databases support this in a transactional context.\n *\n * @param enable enable or disable checks?\n * @return database vendor specific statement to enable or disable referential integrity checks\n */\n String getReferentialIntegrityChecksStatement(boolean enable);\n \n /**\n * Return true if calling {@link #getReferentialIntegrityChecksStatement(boolean)} is possible\n * in a transactional context.\n *\n * @return true if calling {@link #getReferentialIntegrityChecksStatement(boolean)} is possible\n * in a transactional context\n */\n boolean isDisableIntegrityTransactional();\n \n /**\n * Get the sql code of the statement to fix referential integrity when removing selectlist items\n *\n * @return sql code of the statement to fix referential integrity when removing selectlist items\n */\n String getSelectListItemReferenceFixStatement();\n \n /**\n * Get a database vendor specific timestamp of the current time in milliseconds as Long\n *\n * @return database vendor specific timestamp of the current time in milliseconds as Long\n */\n String getTimestampFunction();\n \n /**\n * Get a database vendor specific concat statement\n *\n * @param text array of text to concatenate\n * @return concatenated text statement\n */\n String concat(String... text);\n \n /**\n * Get a database vendor specific concat_ws statement\n *\n * @param delimiter the delimiter to use\n * @param text array of text to concatenate\n * @return concatenated text statement\n */\n String concat_ws(String delimiter, String... text);\n \n /**\n * If a database needs a \" ... from dual\" to generate valid queries, it is returned here\n *\n * @return from dual (or equivalent) if needed\n */\n String getFromDual();\n \n /**\n * Get databas evendor specific limit statement\n *\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @return limit statement\n */\n String getLimit(boolean hasWhereClause, long limit);\n \n /**\n * Get database vendor specific limit/offset statement\n *\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @param offset offset\n * @return limit/offset statement\n */\n String getLimitOffset(boolean hasWhereClause, long limit, long offset);\n \n /**\n * Get database vendor specific limit/offset statement using the specified variable name\n *\n * @param var name of the variable to use\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @param offset offset\n * @return limit/offset statement\n */\n String getLimitOffsetVar(String var, boolean hasWhereClause, long limit, long offset);\n \n /**\n * Get the statement to get the last content change timestamp\n *\n * @param live live version included?\n * @return statement to get the last content change timestamp\n */\n String getLastContentChangeStatement(boolean live);\n \n /**\n * Format a date to be used in a query condition (properly escaped)\n *\n * @param date the date to format\n * @return formatted date\n */\n String formatDateCondition(Date date);\n \n /**\n * Correctly escape a flat storage column if needed\n *\n * @param column name of the column\n * @return escaped column (if needed)\n */\n String escapeFlatStorageColumn(String column);\n \n /**\n * Returns true if the SqlError is a foreign key violation.\n *\n * @param exc the exception\n * @return true if the SqlError is a foreign key violation\n */\n boolean isForeignKeyViolation(Exception exc);\n \n /**\n * Returns true if the given exception was caused by a query timeout.\n *\n * @param e the exception to be examined\n * @return true if the given exception was caused by a query timeout\n * @since 3.1\n */\n boolean isQueryTimeout(Exception e);\n \n /**\n * Does the database rollback a connection if it encounters a constraint violation? (eg Postgres does...)\n *\n * @return database rollbacks a connection if it encounters a constraint violation\n */\n boolean isRollbackOnConstraintViolation();\n \n /**\n * Returns true if the SqlError is a unique constraint violation.\n *\n * @param exc the exception\n * @return true if the SqlError is a unique constraint violation\n */\n boolean isUniqueConstraintViolation(Exception exc);\n \n /**\n * Returns true if the given SqlException indicates a deadlock.\n *\n * @param exc the exception\n * @return true if the given SqlException indicates a deadlock.\n * @since 3.1\n */\n boolean isDeadlock(Exception exc);\n \n /**\n * When accessing the global configuration - does the config table has to be prefixed with the schema?\n * (eg in postgres no schemas are supported for JDBC URL's hence it is not required)\n *\n * @return access to configuration tables require the configuration schema to be prepended\n */\n boolean requiresConfigSchema();\n \n /**\n * Get a connection to the database using provided parameters and (re)create the database and/or schema\n *\n * @param database name of the database\n * @param schema name of the schema\n * @param jdbcURL JDBC connect URL\n * @param jdbcURLParameters optional JDBC URL parameters\n * @param user name of the db user\n * @param password password\n * @param createDB create the database?\n * @param createSchema create the schema?\n * @param dropDBIfExist drop the database if it exists?\n * @return an open connection to the database with the schema set as default\n * @throws Exception on errors\n */\n Connection getConnection(String database, String schema, String jdbcURL, String jdbcURLParameters, String user, String password, boolean createDB, boolean createSchema, boolean dropDBIfExist) throws Exception;\n \n /**\n * Initialize a configuration schema\n *\n * @param con an open and valid connection to the database\n * @param schema the schema to create\n * @param dropIfExist drop the schema if it exists?\n * @return success\n * @throws Exception on errors\n */\n boolean initConfiguration(Connection con, String schema, boolean dropIfExist) throws Exception;\n \n /**\n * Initialize a division\n *\n * @param con an open and valid connection to the database\n * @param schema the schema to create\n * @param dropIfExist drop the schema if it exists?\n * @return success\n * @throws Exception on errors\n */\n boolean initDivision(Connection con, String schema, boolean dropIfExist) throws Exception;\n \n /**\n * Export all data of a division to an OutputStream as ZIP\n *\n * @param con an open and valid connection to the database to be exported\n * @param out OutputStream that will be used to create the zip file\n * @throws Exception on errors\n */\n void exportDivision(Connection con, OutputStream out) throws Exception;\n \n /**\n * Import a complete division from a zip stream\n *\n * @param con an open and valid connection\n * @param zip zip archive that contains an exported divison\n * @throws Exception on errors\n */\n void importDivision(Connection con, ZipFile zip) throws Exception;\n }", "public interface IStorageManager {\n public IStorageBook getValue(String key);\n\n public void addStorageBook(String key, IStorageBook book);\n\n public void clear();\n\n public boolean isEmpty();\n\n public void remove(String key);\n}", "public interface IDataStorage<TKey extends ISizable, TValue extends ISizable> {\n WrappedKeyValue<TKey, TValue> Get(TKey key) throws IOException;\n\n //TODO: replace with iterator\n List<WrappedKeyValue<TKey, TValue>> GetElements() throws IOException;\n\n void AddOrUpdate(TKey key, TValue value) throws IOException;\n\n void AddOrUpdate(List<WrappedKeyValue<TKey, TValue>> values) throws IOException;\n\n void Delete(TKey key) throws IOException;\n\n void Clear();\n\n void Close() throws IOException;\n}", "public interface NamedStorage extends Iterable<String>, AutoCloseable {\n\n /**\n * Gets data stored by specified key and puts it to the provided stream.\n * Does not close given stream.\n * @param key data key\n * @param stream stream to process data\n * @return true if data was found, false otherwise\n */\n boolean getInto(String key, OutputStream stream);\n\n /**\n * Saves data from stream using provided key. If there was data for this key it will be overwritten with new data.\n * Does not close given stream.\n * @param key data key\n * @param stream stream to get data from\n */\n void saveFrom(String key, InputStream stream);\n\n /**\n * Checks that there is data stored for provided key\n * @param key data key\n * @return true if there is data for this key, false otherwise\n */\n boolean contains(String key);\n\n /**\n * Deletes key and associated data from storage. Does nothing if there is no such key in storage\n * @param key\n */\n void delete(String key);\n\n /**\n *\n * @return iterator for all keys. Order of keys is unknown.\n */\n Iterator<String> iterator();\n\n /**\n * Closes storage and flushes all changes on disk.\n */\n void close();\n\n /**\n * Copies all data to the specified storage\n * @param storage\n */\n void cloneTo(NamedStorage storage);\n}", "public interface IStorage extends Serializable {\n\n /**\n * Removes all stored values.\n */\n void clear();\n\n /**\n * Removes the value stored under the given key (if one exists).\n *\n * @return {@code true} if a successful.\n */\n StoragePrimitive remove(String key);\n\n /**\n * Adds all mappings in {@code val} to this storage object, overwriting any existing values.\n *\n * @see #addAll(String, IStorage)\n */\n void addAll(IStorage val);\n\n /**\n * Adds all mappings in {@code val} to this storage object, where all keys are prefixed with\n * {@code prefix}. Any existing values are overwritten.\n */\n void addAll(String prefix, IStorage val);\n\n /**\n * @return All stored keys.\n * @see #getKeys(String)\n */\n Collection<String> getKeys();\n\n /**\n * @return A collection of all stored keys matching the given prefix, or all stored keys if the prefix is\n * {@code null}.\n */\n Collection<String> getKeys(@Nullable String prefix);\n\n /**\n * @return {@code true} if this storage object contains a mapping for the given key.\n */\n boolean contains(String key);\n\n /**\n * Returns raw value stored under the given key.\n */\n StoragePrimitive get(String key);\n\n /**\n * Returns value stored under the given key converted to a boolean.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key, or if\n * the value couldn't be converted to the desired return type.\n * @see #getString(String, String)\n */\n boolean getBoolean(String key, boolean defaultValue);\n\n /**\n * Convenience method for retrieving a 32-bit signed integer. This is equivalent to calling\n * {@link IStorage#getDouble(String, double)} and casting the result to int.\n *\n * @see #getDouble(String, double)\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Convenience method for retrieving a 64-bit signed integer. This is equivalent to calling\n * {@link IStorage#getDouble(String, double)} and casting the result to long.\n *\n * @see #getDouble(String, double)\n */\n long getLong(String keyTotal, long defaultValue);\n\n /**\n * Returns value stored under the given key converted to a double.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key, or if\n * the value couldn't be converted to the desired return type.\n * @see #getString(String, String)\n */\n double getDouble(String key, double defaultValue);\n\n /**\n * Returns value stored under the given key converted to a string.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Stores a value under the given key. If {@code null}, removes any existing mapping for the given key\n * instead.\n */\n void set(String key, @Nullable StoragePrimitive val);\n\n /**\n * Stores a boolean value under the given key.\n *\n * @see #setString(String, String)\n */\n void setBoolean(String key, boolean val);\n\n /**\n * Convenience method for storing an integer. All values are stored as double-precision floating point\n * internally.\n *\n * @see #setDouble(String, double)\n */\n void setInt(String key, int val);\n\n /**\n * Convenience method for storing a long. All values are stored as double-precision floating point\n * internally.\n *\n * @see #setDouble(String, double)\n */\n void setLong(String key, long val);\n\n /**\n * Stores a double-precision floating point value under the given key.\n *\n * @see #setString(String, String)\n */\n void setDouble(String key, double val);\n\n /**\n * Stores a string value under the given key.\n *\n * @param val The value to store. If {@code null}, removes any existing mapping for the given key instead.\n */\n void setString(String key, String val);\n\n}", "public interface Storage {\n\n String getId();\n}", "public interface Storage {\n\n public Collection<Developers> values();\n\n public int add(final Developers developer);\n\n public void edit(final Developers developer);\n\n public void delete(final int id);\n\n public Developers get(final int id);\n\n public Developers findByName(String name);\n\n public void close();\n}", "public interface StorageModel {\n}", "public interface IStorageManager {\n\n\tpublic String getStorageType();\n\n\tpublic String getStorageId();\n\n\tpublic void initialize(String configFile) throws Exception;\n}", "public interface StorageService {\n\n /**\n * Return the ReplicatSet configuration (list of services able to pin a file)\n * @return ReplicaSet List of PinningService\n */\n Set<PinningService> getReplicaSet();\n \n /**\n * Write content on the storage layer\n * @param content InputStream\n * @param noPin Disable persistence, require to pin/persist asynchrounsly (can improve the writing performance)\n * @return Content ID (hash, CID)\n */\n String write(InputStream content, boolean noPin);\n\n /**\n * Write content on the storage layer\n * @param content Byte array\n * @param noPin Disable persistence, require to pin/persist asynchrounsly (can improve the writing performance)\n * @return Content ID (hash, CID)\n */\n String write(byte[] content, boolean noPin);\n\n /**\n * Read content from the storage layer and write it in a ByteArrayOutputStream\n * @param id Content ID (hash, CID\n * @return content\n */\n OutputStream read(String id);\n \n /**\n * Read content from the storage layer and write it the OutputStream provided\n * @param id Content ID (hash, CID\n * @param output OutputStream to write content to\n * @return Outputstream passed as argument\n */\n OutputStream read(String id, OutputStream output);\n}", "protected abstract RegistryStorage storage();", "public IData getStoreddata();", "DataStore getDataStore ();", "OStorage getStorage();", "public interface StorageService {\n\t\n\t/**\n\t * Storage.\n\t *\n\t * @param storage the storage\n\t * @return the storage state\n\t */\n\tpublic StorageState storage(ArrayList<StorageVO> storage);\n\t\n}", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public interface StorageDao {\n\n /**\n * Connects to database and returns {@link Storage} object by id of dessert.\n *\n * @param dessertId is dessert's id value.\n * @return {@link Storage} if storage data found, null if not.\n * @throws DaoException when problems with database connection occurs.\n */\n Storage findByDessertId(Integer dessertId) throws DaoException;\n\n /**\n * Connects to database and update storage data.\n *\n * @param storage is {@link Storage} object that contains all info about storage for update.\n * @throws DaoException when problems with database connection occurs.\n */\n void updateStorage(Storage storage) throws DaoException;\n\n /**\n * Connects to database and add new storage.\n *\n * @param storage is {@link Storage} object that contains all info about storage.\n * @throws DaoException when problems with database connection occurs.\n */\n void insertStorage(Storage storage) throws DaoException;\n\n /**\n * Connects to database and set count to the storage by dessert ID.\n *\n * @param dessertId is dessert ID value.\n * @param count is count of dessert in storage\n * @throws DaoException when problems with database connection occurs.\n */\n void updateStorageByDessert(Integer dessertId, Integer count) throws DaoException;\n}", "public interface StorageFactory {\n\n\t<T> List<T> createList();\n\t\n\t<T> Set<T> createSet();\n\t\n\t<V> Map<Character, V> createMap();\n\t\n}", "public interface DataStore {\n\n void storeTokenEntry(TokenEntry tokenEntry);\n\n TokenEntry getTokenEntry(byte[] keyHandle);\n\n int incrementCounter(byte[] keyHandle);\n\n List<byte[]> getKeyHandlesByIssuerAndAppId(String application, String issuer);\n\n List<byte[]> getAllKeyHandles();\n\n List<String> getTokenEntries();\n\n void deleteTokenEntry(byte[] keyHandle);\n\n //Methods for logs (save, get, delete, ....)\n\n void saveLog(LogInfo logText);\n List<LogInfo>getLogs();\n void deleteLogs();\n void deleteLogs(OxPush2Request... logInfo);\n void deleteLogs(List<LogInfo> logInfo);\n void changeKeyHandleName(TokenEntry tokenEntry, String newName);\n void deleteKeyHandle(TokenEntry tokenEntry);\n}", "public interface IDataStore {\n\n boolean newCycle(Cycle cycle);\n\n List<Cycle> getQueue();\n\n List<Cycle> getHistory();\n\n Temperature getTemperature();\n\n List<Temperature> getTemperatures();\n\n boolean logTemperature(Temperature temp);\n\n boolean updateCycle(Cycle cycle);\n\n boolean cancelCycle(String cycleID);\n\n boolean moveToHistory(String cycleID);\n}", "public interface SaveDataStream {\n\n /**\n * Load from the save.\n *\n * @param initData the data that want to be load from\n * @param context the context of this app\n * @return load from the save\n */\n Object getSaves(Object initData, Context context);\n\n /**\n * Save the given data.\n *\n * @param data the data that want to be save to\n * @param context the context of this app\n */\n void saveSaves(Object data, Context context);\n}", "public interface IWritableStorage extends IStorage {\n\n\tpublic void setContents(InputStream source, IProgressMonitor monitor) throws CoreException;\n\t\n\tpublic IStatus validateEdit(Object context);\n}", "interface Storage {\n String getStorageSize() ;\n}", "public interface IPersistence\n{\n\t/**\n\t * When overridden in a child class, determines whether data exists which\n\t * can be loaded\n\t * @pre (none)\n\t * @post (none)\n\t * @return True if data can be loaded. Otherwise, false.\n\t */\n\tboolean canLoadData();\n\n\t/**\n\t * When overridden in a child class, loads all data from specified store to\n\t * the passed Inventory\n\t * @pre inventory is not null. storeName refers to a valid data store.\n\t * @post inventory's original contents have been cleared and replaced with\n\t * the data from the specified data store\n\t * @throws SerializerException\n\t */\n\tvoid loadData() throws SerializerException;\n\n\t/**\n\t * When overridden in a child class, saves all data from the Inventory with\n\t * the specified name\n\t * @pre storeName is a valid string for the system we are saving to\n\t * @post The passed Inventory has been saved under the passed name\n\t * @throws SerializerException\n\t */\n\tvoid saveData() throws SerializerException;\n}", "public interface SCStorage\r\n{\r\n\t/**\r\n\t * The server will register a driver before making any method calls\r\n\t *\r\n\t * @param driver the driver\r\n\t */\r\n\tpublic void setStorageServerDriver(SCStorageServerDriver driver);\r\n\r\n\t/**\r\n\t * Open the storage at the given path\r\n\t *\r\n\t * @param path path to the storage\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void\topen(File path) throws IOException;\r\n\r\n\t/**\r\n\t * Return the object associated with the given key\r\n\t *\r\n\t * @param key the key\r\n\t * @return the object or null if not found\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic SCDataSpec get(String key) throws IOException;\r\n\r\n\t/**\r\n\t * Add an object to the storage\r\n\t *\r\n\t * @param key key\r\n\t * @param data object\r\n\t * @param groups associated groups or null\r\n\t */\r\n\tpublic void put(String key, SCDataSpec data, SCGroupSpec groups);\r\n\r\n\t/**\r\n\t * Close the storage. The storage instance will be unusable afterwards.\r\n\t *\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void close() throws IOException;\r\n\r\n\t/**\r\n\t * Return the keys that match the given regular expression\r\n\t *\r\n\t * @param regex expression\r\n\t * @return matching keys\r\n\t */\r\n\tpublic Set<String> regexFindKeys(String regex);\r\n\r\n\t/**\r\n\t * Remove the given object\r\n\t *\r\n\t * @param key key of the object\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void remove(String key) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method deletes all objects\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to delete\r\n\t * @return list of keys deleted.\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> removeGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method lists all keys\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to list\r\n\t * @return list of keys\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> listGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * Returns storage statistics\r\n\t *\r\n\t * @param verbose if true, verbose stats are returned\r\n\t * @return list of stats\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> dumpStats(boolean verbose) throws IOException;\r\n\r\n\t/**\r\n\t * Write a tab delimited file with information about the key index\r\n\t *\r\n\t * @param f the file to write to\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void writeKeyData(File f) throws IOException;\r\n}", "public interface IStore<T> {\t\n\t\n\tpublic final static int default_capacity = 999;\t\n\t\n\tpublic int getSize(); //Return the number of objects stored\n\t//public void setSizer(IStoreSizer storeSizer); //Allows for size to be determined by an external party. \n\tpublic T get(int index); // Return the object stored at the corresponding index value\n\tpublic int getCapacity(); //Return the maximum number of IRegisteredParcel objects that can be stored by this Store\n\tpublic T put(int index, T t); //Place input Object at the specified index and return existing object\n\tpublic void clear(); //return oldStore and set new . used for Clearing the store.\n\tpublic IStore<T> clone(); //Return a clone of the current store that is an image frozen at invocation time.\n}", "public interface Datastore<DatastoreSession extends com.buschmais.cdo.spi.datastore.DatastoreSession, EntityMetadata extends DatastoreEntityMetadata<Discriminator>, Discriminator> extends AutoCloseable {\n\n /**\n * Initialize the datastore.\n *\n * @param registeredMetadata A collection of all registerted types.\n */\n void init(Collection<TypeMetadata<EntityMetadata>> registeredMetadata);\n\n /**\n * Return the datastore specific metadata factory.\n *\n * @return The metadata factory.\n */\n DatastoreMetadataFactory<EntityMetadata, Discriminator> getMetadataFactory();\n\n /**\n * Create a datastore session, e.g. open a connection to the datastore.\n *\n * @return The session.\n */\n DatastoreSession createSession();\n\n /**\n * Close the datastore.\n */\n void close();\n\n}", "public interface DatastoreText {\n\n /**\n * Stores a property.. The kind, name and property can be thought of as\n * corresponding roughly to table,column, row key.\n * \n * @param kind\n * @param name\n * @param property\n * @param value\n */\n void put(String kind, String name, String property, String value);\n\n /**\n * Returns a property value keyed by kind,name and property.\n * \n * @param kind\n * @param name\n * @param property\n * @return\n */\n String get(String kind, String name, String property);\n\n}", "public interface DBManager {\n\n\t// Populate Data can have different Implementations\n\tvoid populateData();\n}", "public interface IPersistence {\n\n ArrayList<String> loadData(String pathFile);\n}", "public interface DataBase {\n public void save(BuzzTalkData data);\n\n public ArrayList<OpenCalaisTag> getAllTags();\n\n public ArrayList<Publication> getAllPublications();\n}", "public interface IStore\n{\n /**\n * Returns true if the store only supports reading.\n * If true, user can not change information in the Store and\n * \"commit()\" method throws IOException if called.\n */\n boolean isReadOnly();\n\n /**\n * Populate AIDA Tree: create appropriate AIDA objects in the Tree\n * and fill them with data from the Store.\n * This method is called only once, during Tree-Store association, to\n * populate the Tree. \n * Tree relies on IStore calling IDevTree.hasBeenFilled(String path) method,\n * to let Tree know that a particular folder has been filled.\n *\n * @throws IOException If there are problems reading from the Store\n */\n void read(IDevTree tree, Map options, boolean readOnly, boolean createNew) throws IOException;\n\n /**\n * Copy data from Tree to the Store.\n *\n * @throws IOException If there are problems writing to the Store or the Store is Read-Only.\n */\n void commit(IDevTree tree, Map options) throws IOException; \n\n /**\n * Close Store and free all resources associated with it.\n * Should be called from ITree.close() method only.\n * After the Store is closed, the Tree associated with it becomes unusable.\n */\n void close() throws IOException;\n}", "public HashMap<String, T> getStorage();", "public interface Storable<T> {\n\n /**\n * Creates a new instance.\n *\n * @param instance is a generic type that the implementor class decides.\n */\n void create(T instance) throws IOException;\n\n /**\n * Reads an existing instance.\n * Note that each implementing class must know the fields of the object it reads,\n * thus demanding a unique implementation for each respective model.\n *\n * @param identifier is a String representation of a unique property of the type T.\n * @return a generic type that the implementor class decides.\n */\n T read(String identifier) throws IOException;\n\n\n /**\n * Updates an existing instance.\n * Note that each implementing class must know the fields of the object it updates,\n * thus demanding a unique implementation for each respective model.\n *\n * @param identifier is a String representation of a unique property of the type T.\n * @param instance is the generic object to be updated.\n */\n void update(String identifier, T instance) throws IOException;\n\n\n /**\n * Deletes an existing instance.\n * Note that each implementing class must know the fields of the object it deletes,\n * thus demanding a unique implementation for each respective model.\n *\n * @param identifier is a String representation of a unique property of the type T.\n */\n void delete(String identifier) throws IOException;\n}", "interface Database {\n\tpublic void persist(String data); \n\t\n}", "public interface BaseDataInterface {\r\n}", "public interface Storage {\n String SPLITTER = \" &&& \";\n\n /**\n * Gets the list of tasks held by the storage.\n * @return the list of tasks\n */\n TaskList getList();\n\n /**\n * Writes the task to the storage file.\n * @param task the task that is to be written in the task\n * @throws InvalidCommandException should never been thrown unless the file path is not working\n */\n void addToList(Task task) throws InvalidCommandException;\n\n /**\n * Re-writes the storage file because of deletion or marking-as-done executed.\n * @param list the new task list used for updating the storage file\n * @throws InvalidCommandException should never been thrown unless the file path is not working\n */\n void reWrite(TaskList list) throws InvalidCommandException;\n}", "public interface DataStoreManager {\n\n\t/**\n\t * Create a database file.\n\t * \n\t * If only a file name is given, the database will create in %USER_HOME%/zoodb on Windows \n\t * or ~/zoodb on Linux/UNIX.\n\t * \n\t * If a full path is given, the full path will be used instead.\n\t * \n * Any necessary parent folders are created automatically.\n\n * It is recommended to use <code>.zdb</code> as file extension, for example \n * <code>myDatabase.zdb</code>.\n * \n\t * @param dbName The database file name or path \n\t * @see ZooJdoProperties#ZooJdoProperties(String)\n\t */\n\tvoid createDb(String dbName);\n\t\n\t/**\n\t * Check if a database exists. This checks only whether the file exists, not whether it is a \n\t * valid database file.\n\t * \n\t * @param dbName The database file name or path \n\t * @return <code>true</code> if the database exists.\n\t */\n\tboolean dbExists(String dbName);\n\n /**\n * Delete a database(-file).\n * @param dbName The database file name or path \n * @return {@code true} if the database could be removed, otherwise false\n */\n\tboolean removeDb(String dbName);\n\t\n /**\n * \n * @return The default database folder.\n */\n\tString getDefaultDbFolder();\n\t\n\t/**\n\t * Calculates the full path for the given database name, whether the database exists or not.\n\t * @param dbName The database file name or path \n\t * @return The full path of the database given by <code>dbName</code>.\n\t */\n\tString getDbPath(String dbName);\n}", "public interface DataSource {\r\n\t\r\n\tstatic final String FILE_PATH = \"plugins/DataManager/\";\r\n\t\r\n\tpublic void setup();\r\n\t\r\n\tpublic void close();\r\n\r\n\tpublic boolean set(String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(String pluginKey, String dataKey);\r\n\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(UUID uuid, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(UUID uuid, String pluginKey, String dataKey);\r\n\t\r\n\tpublic boolean addGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean deleteGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean isGroup(String group, String pluginKey);\r\n\t\r\n\tpublic boolean addMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic boolean removeMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic boolean isMember(UUID uuid, String group, String pluginKey);\r\n\t\r\n\tpublic Optional<List<UUID>> getMemberIDs(String group, String pluginKey);\r\n\t\r\n\tpublic List<String> getGroups(String pluginKey);\r\n\t\r\n\tpublic List<String> getGroups(UUID uuid, String pluginKey);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, String data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(String group, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(String group, String pluginKey, String dataKey);\r\n\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, String data) ;\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, int data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, long data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, float data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, double data);\r\n\t\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, boolean data);\r\n\r\n\tpublic boolean set(UUID uuid, String group, String pluginKey, String dataKey, List<String> data);\r\n\t\r\n\tpublic Optional<String> getString(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Integer> getInt(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Long> getLong(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Float> getFloat(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Double> getDouble(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<Boolean> getBoolean(UUID uuid, String group, String pluginKey, String dataKey);\r\n\t\r\n\tpublic Optional<List<String>> getList(UUID uuid, String group, String pluginKey, String dataKey);\r\n\r\n}", "public interface DataProvider<T> {\n T getData(String key);\n}", "public interface FileStoreInterface {\r\n boolean isAuthenticated();\r\n @Nullable\r\n List<String> get(String path);\r\n void archive(String path, List<String> lines);\r\n void startLogin(Activity caller, int i);\r\n void deauthenticate();\r\n void browseForNewFile(Activity act, String path, FileSelectedListener listener, boolean txtOnly);\r\n void modify(String mTodoName, List<String> original,\r\n List<String> updated,\r\n List<String> added,\r\n List<String> removed);\r\n int getType();\r\n void setEol(String eol);\r\n boolean isSyncing();\r\n public boolean initialSyncDone();\r\n void invalidateCache();\r\n void sync();\r\n String readFile(String file);\r\n boolean supportsSync();\r\n public interface FileSelectedListener {\r\n void fileSelected(String file);\r\n }\r\n}", "public interface PersistenceImplementor {\n public boolean persistObject(Object object);\n\n public boolean persistAllObjects(Object[] objects);\n\n public Object loadObject(String objectID);\n\n public Object[] loadAllObjects();\n}", "public interface Storage {\r\n\r\n\tpublic void createSeat(int number, int situation, int musicalEvent,int iCategory);\r\n\tpublic int updateSeat(int number, int situation, int idMusicalEvent);\r\n\tpublic int deleteSeat(int number, int idMusicalEvent);\r\n\tpublic int getSeatNumber(int number, int idMusicalEvent);\r\n\tpublic Seat getSeat(int number, int idMusicalEvent);\r\n\tpublic Seat getSeatById(int id, int idMusicalEvent);\r\n\tpublic void createMusicalEvent(String eventName, Date date, String description);\r\n\tpublic String loadMusicalEvent();\r\n\tpublic MusicalEvent getMusicalEvent(int id);\r\n\tpublic void createClient(String firstname, String surname, String mobilePhone, String firstPhone, String secondPhone, String email,String passport,\r\n\t\t\tString rg, String address, String city, String cpf, Date bornDate);\r\n\tpublic Client getClient(String passport);\r\n\tpublic Client getClient(int id);\r\n\tpublic void updateClient(String firstname, String surname, String mobilePhone, String firstPhone, String secondPhone, String email,String passport,\r\n\t\t\tString rg, String address, String city, String cpf, Date bornDate);\r\n\tpublic String deleteClient(String idPassport);\r\n\tpublic String getSeats(String musicalEvent);\r\n\tpublic String getClients();\r\n\tpublic int createTicket(int musicalEvent,int seat, int price, Date saleDate, int client, String paidForm);\r\n\tpublic void createCategory(String name, int tax);\r\n\tpublic int updateCategory(String name, int tax);\r\n\tpublic int deleteCategory(String name);\r\n\tpublic SeatCategory findCategory (String name);\r\n\tpublic SeatCategory findCategory (int id);\r\n\tpublic String getCategories();\r\n\tpublic TicketSale getTicketSale(Client c, Seat s, Date date);\r\n\tpublic TicketSale getTicketSale(int id);\r\n\tpublic int getTaxFromCategory(Seat seat);\r\n\tpublic int deleteTicket(int idTicket);\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n}", "public interface IDocumentStorage<L> {\n\t/**\n\t * Returns the current location (of the current document).\n\t * @return the current location\n\t */\n\tpublic L getDocumentLocation();\n\n\t/**\n\t * Sets the current location (of the current document), can be used by a save-as action.\n\t * @param documentLocation\n\t */\n\tpublic void setDocumentLocation(L documentLocation);\n\n\t/**\n\t * Adds an IDocumentStorageListener that will be notified when the current location changes.\n\t * @param documentStorageListener\n\t */\n\n\tpublic void addDocumentStorageListener(IDocumentStorageListener<L> documentStorageListener);\n\t/**\n\t * Removes an IDocumentStorageListener.\n\t * @param documentStorageListener\n\t */\n\tpublic void removeDocumentStorageListener(IDocumentStorageListener<L> documentStorageListener);\n\n\t/**\n\t * Creates a new documents and sets it as the current one, can be used by a new action.\n\t */\n\tpublic void newDocument();\n\n\t/**\n\t * Loads a documents from the provided location and sets it as the current one, can be used by an open action.\n\t */\n\tpublic void openDocument(L documentLocation) throws IOException;\n\n\t/**\n\t * Saves the current document (to the current location), can be used by a save action.\n\t */\n\tpublic void saveDocument() throws IOException;\n\n\t/**\n\t * Returns the set of IDocumentImporters, can be used by an import action.\n\t * @return\n\t */\n\tpublic Collection<IDocumentImporter> getDocumentImporters();\n}", "public interface DataAPI {\n\t// Query\n\tDataTree getDataHierarchy(); // Tree List of Data and Datatypes\n\t\n\tDataTree getDatatypeHierarchy(); // Tree List of Datatypes\n\n\tDataTree getMetricsHierarchy(); // Tree List of Metrics and Metric\n\t\t\t\t\t\t\t\t\t\t\t// types\n\n\tArrayList<String> getAllDatatypeIds();\n\n\tMetadataProperty getMetadataProperty(String propid);\n\n\tArrayList<MetadataProperty> getMetadataProperties(String dtypeid, boolean direct);\n\n\tArrayList<MetadataProperty> getAllMetadataProperties();\n\n\tDataItem getDatatypeForData(String dataid);\n\n\tArrayList<DataItem> getDataForDatatype(String dtypeid, boolean direct);\n\n\tString getTypeNameFormat(String dtypeid);\n\n\tString getDataLocation(String dataid);\n\n\tArrayList<MetadataValue> getMetadataValues(String dataid, ArrayList<String> propids);\n\n\t// Write\n\tboolean addDatatype(String dtypeid, String parentid);\n\n\tboolean removeDatatype(String dtypeid);\n\n\tboolean renameDatatype(String newtypeid, String oldtypeid);\n\n\tboolean moveDatatypeParent(String dtypeid, String fromtypeid, String totypeid);\n\n\tboolean addData(String dataid, String dtypeid);\n\n\tboolean renameData(String newdataid, String olddataid);\n\n\tboolean removeData(String dataid);\n\n\tboolean setDataLocation(String dataid, String locuri);\n\n\tboolean setTypeNameFormat(String dtypeid, String format);\n\n\tboolean addObjectPropertyValue(String dataid, String propid, String valid);\n\n\tboolean addDatatypePropertyValue(String dataid, String propid, Object val);\n\n\tboolean addDatatypePropertyValue(String dataid, String propid, String val, String xsdtype);\n\n\tboolean removePropertyValue(String dataid, String propid, Object val);\n\n\tboolean removeAllPropertyValues(String dataid, ArrayList<String> propids);\n\n\tboolean addMetadataProperty(String propid, String domain, String range);\n\t\n\tboolean addMetadataPropertyDomain(String propid, String domain);\n\n\tboolean removeMetadataProperty(String propid);\n\t\n\tboolean removeMetadataPropertyDomain(String propid, String domain);\n\n\tboolean renameMetadataProperty(String oldid, String newid);\n\n\t// Sync/Save\n\tboolean save();\n\t\n\tvoid end();\n\t\n\tvoid delete();\n}", "public interface DataLocator<E> {\n\n E getData(int readLocation);\n\n void setData(int writeLocation1, E value);\n\n void writeAll(E[] newData, int length);\n\n int getCapacity();\n}", "public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}", "public EhcacheSessionDataStorage() {\n this(SESSION_NAME);\n }", "public interface SensorDataService{\n Temperature saveTemperature(Temperature temperature);\n Humidity saveHumidity(Humidity humidity);\n AirPressure saveAirPressure(AirPressure airPressure);\n}", "protected void setStorage(IStorage aStorage)\n\t{\n\n\t\tthis.storage = aStorage;\n\t}", "public interface PersistentDataCallbacks {\n \n /**\n * Provides keyed storage of strings. Should be used for per-folder data. Do not use for\n * per-message data.\n * @param key identifier for the data (e.g. \"sync.key\" or \"folder.id\")\n * @param value Data to persist. All data must be encoded into a string,\n * so use base64 or some other encoding if necessary.\n */\n public void setPersistentString(String key, String value);\n\n /**\n * @param key identifier for the data of interest\n * @return the data saved by the Folder, or defaultValue if never set.\n */\n public String getPersistentString(String key, String defaultValue);\n \n /**\n * In a single transaction: Set a key/value pair for the folder, and bulk set or clear\n * message flags. Typically used at the beginning or conclusion of a bulk sync operation.\n * \n * @param key if non-null, the transaction will set this folder persistent value\n * @param value the value that will be stored for the key\n * @param setFlags if non-null, flag(s) will be set for all messages in the folder\n * @param clearFlags if non-null, flag(s) will be cleared for all messages in the folder\n */\n public void setPersistentStringAndMessageFlags(String key, String value,\n Flag[] setFlags, Flag[] clearFlags) throws MessagingException;\n }", "public interface BlobStore {\n\n /**\n * Validation pattern for namespace.\n */\n public static Pattern VALID_NAMESPACE_PATTERN = Pattern.compile(\"[A-Za-z0-9_-]+\");\n\n\n /**\n * Validation pattern for id.\n */\n public static Pattern VALID_ID_PATTERN = Pattern.compile(\"[A-Za-z0-9_.:-]+\");\n\n /**\n * Store a new object inside the blob store.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @param content The actual content.\n * @throws StageException\n */\n public void store(String namespace, String id, long version, String content) throws StageException;\n\n /**\n * Return latest version for given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Latest version (usual integer comparison)\n * @throws StageException\n */\n public long latestVersion(String namespace, String id) throws StageException;\n\n /**\n * Validates if given object exists on at least one version.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return If given object in given namespace exists\n */\n public boolean exists(String namespace, String id);\n\n /**\n * Validates if given object exists on given version.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @return If given object on given in given namespace exists\n */\n public boolean exists(String namespace, String id, long version);\n\n /**\n * Return all versions associated with given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Set of all stored versions.\n * @throws StageException\n */\n public Set<Long> allVersions(String namespace, String id);\n\n /**\n * Retrieve given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @return Object itself\n * @throws StageException\n */\n public String retrieve(String namespace, String id, long version) throws StageException;\n\n /**\n * Sub-interface to encapsulate tuple of content with it's version.\n */\n public interface VersionedContent {\n /**\n * Version of the content.\n */\n long version();\n\n /**\n * Actual content\n */\n String content();\n }\n\n /**\n * Convenience method to return latest version for given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Object itself\n * @throws StageException\n */\n public VersionedContent retrieveLatest(String namespace, String id) throws StageException;\n\n /**\n * Delete given object from the store.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @throws StageException\n */\n public void delete(String namespace, String id, long version) throws StageException;\n\n /**\n * Delete all versions of given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @throws StageException\n */\n public void deleteAllVersions(String namespace, String id) throws StageException;\n}", "public interface IDataIslem {\n <T> void addOrUpdate(T data, String serviceUrl,\n EnumUtil.SendingDataType dataType, Context ctx);\n\n <T> List<T> get(String serviceUrl, Class clazz, Context ctx);\n\n <T> void updateDeleteCreateProcess(EnumUtil.SendingDataType sendingDataType, String message, Context context,\n T data, String serviceUrl);\n}", "public interface ContentStoreIF {\n\n /**\n * INTERNAL: Returns true if the content store contains an entry with\n * the specified key.\n */\n boolean containsKey(int key) throws ContentStoreException;\n\n /**\n * INTERNAL: Gets the data value associated with the specified key.\n */\n ContentInputStream get(int key) throws ContentStoreException;\n \n /**\n * INTERNAL: Creates an entry for the specified data value.\n */\n int add(ContentInputStream data) throws ContentStoreException;\n \n /**\n * INTERNAL: Creates an entry for the specified data value.\n */\n int add(InputStream data, int length) throws ContentStoreException;\n\n /**\n * INTERNAL: Removes the entry associated with the key. If the key\n * is not present the call has no effect.\n *\n * @return true if the key was present; false otherwise\n */\n boolean remove(int key) throws ContentStoreException;\n\n /**\n * INTERNAL: Closes the content store. This allows all internal\n * resources to be released.\n */\n void close() throws ContentStoreException;\n \n}", "public interface InternalStorage {\r\n\r\n /**\r\n * Returns variable from Storages\r\n *\r\n * @param variable name of Shared variable\r\n * @param indexes (optional) indexes into the array\r\n *\r\n * @return value of variable[indexes] or variable if\r\n * indexes omitted\r\n *\r\n * @throws ClassCastException there is more indexes than\r\n * variable dimension\r\n * @throws ArrayIndexOutOfBoundsException one of indexes\r\n * is out of bound\r\n */\r\n <T> T get(String variable, int... indexes) throws ClassCastException, ArrayIndexOutOfBoundsException;\r\n\r\n /**\r\n * Puts new value of variable to Storage into the array,\r\n * or as variable value if indexes omitted\r\n *\r\n * @param variable name of Shared variable\r\n * @param newValue new value of variable\r\n * @param indexes (optional) indexes into the array\r\n *\r\n * @throws ClassCastException there is more indexes than\r\n * variable dimension or value cannot be assigned to the\r\n * variable\r\n * @throws ArrayIndexOutOfBoundsException one of indexes\r\n * is out of bound\r\n */\r\n <T> void put(String variable, T newValue, int... indexes) throws ClassCastException, ArrayIndexOutOfBoundsException;\r\n\r\n /**\r\n * Compare and set. Atomically sets newValue when\r\n * expectedValue is set in variable (on specified,\r\n * optional indexes). Method returns value of variable\r\n * before executing variable.\r\n *\r\n * @param <T> type of variable\r\n * @param variable variable name\r\n * @param expectedValue expected value of variable\r\n * @param newValue new value for variable\r\n * @param indexes optional indexes\r\n * @return variable value before CAS\r\n */\r\n <T> T cas(String variable, T expectedValue, T newValue, int... indexes) throws ClassCastException, ArrayIndexOutOfBoundsException;\r\n\r\n /**\r\n * Tells to monitor variable\r\n *\r\n * @param variable name of Shared variable\r\n */\r\n void monitor(String variable);\r\n\r\n /**\r\n * Pauses current Thread and wait for modification of\r\n * variable.\r\n * <p>\r\n * The same as calling waitFor method using\r\n * <code>waitFor(variable, 1)</code>.\r\n *\r\n * @param variable name of Shared variable\r\n */\r\n int waitFor(String variable);\r\n\r\n /**\r\n * Pauses current Thread and wait for <code>count</code>\r\n * modifications of variable. At the end, decrease\r\n * modification count by <code>count</code>.\r\n *\r\n * @param variable name of Shared variable\r\n * @param count number of modifications\r\n */\r\n int waitFor(String variable, int count);\r\n\r\n /**\r\n * Gets names of all Shared variables of the Storage\r\n *\r\n * @return array with names of all Shared variables\r\n */\r\n String[] getSharedFields();\r\n\r\n /**\r\n * Checks if value can be assigned to variable stored in\r\n * Storage\r\n *\r\n * @param variable name of variable stored in Storage\r\n * @param value to check\r\n * @return true if the value can be assigned to the\r\n * variable\r\n */\r\n boolean isAssignable(String variable, Object value, int... indexes);\r\n\r\n void setFaultTolerancePolicy(FaultTolerancePolicy waitForHandler);\r\n}", "public interface Persistence<T> {\n public T retrieve(String path) throws IOException, BadFormatException;\n public void save(T object, String path) throws IOException;\n}", "public interface IDatabase {\n\n void setProfile(Profile profile) throws DatabaseException;\n\n Profile getProfile() throws DatabaseException;\n\n void storeProblem(Problem problem) throws DatabaseException;\n\n void storeProblem(Problem problem, ProblemDataFiles problemDataFiles) throws DatabaseException;\n\n Problem[] readProblems() throws DatabaseException;\n\n Problem readProblem(ElementId elementId) throws DatabaseException;\n\n ProblemDataFiles readProblemDataFile(Problem problem) throws DatabaseException;\n\n void storeGeneralProblem(Problem problem) throws DatabaseException;\n\n /**\n * The General problem is used to report contest clarifications. \n * @param elementId\n * @return\n * @throws DatabaseException\n */\n Problem readGeneralProblem(ElementId elementId) throws DatabaseException;\n\n void storeLanguage(Language language) throws DatabaseException;\n\n void storeLanguages(Language[] languages) throws DatabaseException;\n\n Language[] readLanguages() throws DatabaseException;\n\n Language readLanguage(ElementId elementId) throws DatabaseException;\n\n void storeContestTime(ContestTime contestTime) throws DatabaseException;\n\n ContestTime[] readContestTimes() throws DatabaseException;\n\n ContestTime readContestTime(ElementId elementId) throws DatabaseException;\n\n void storeSite(Site site) throws DatabaseException;\n\n void storeSites(Site[] sites) throws DatabaseException;\n\n Site[] readSites() throws DatabaseException;\n\n Site readSite(ElementId elementId) throws DatabaseException;\n\n void storeJudgement(Judgement judgement) throws DatabaseException;\n\n void storeJudgements(Judgement[] judgements) throws DatabaseException;\n\n Judgement[] readJudgements() throws DatabaseException;\n\n Judgement readJudgement(ElementId elementId) throws DatabaseException;\n\n void storeAccount(Account account) throws DatabaseException;\n\n void storeAccounts(Account[] accounts) throws DatabaseException;\n\n Account[] readAccounts() throws DatabaseException;\n\n Account readAccount(ElementId elementId) throws DatabaseException;\n\n void storeGroup(Group group) throws DatabaseException;\n\n void storeGroups(Group[] groups) throws DatabaseException;\n\n Group[] readGroups() throws DatabaseException;\n\n Group readGroup(ElementId elementId) throws DatabaseException;\n\n void storeContestInformation(ContestInformation contestInformation) throws DatabaseException;\n\n ContestInformation[] readContestInformations() throws DatabaseException;\n\n ContestInformation readContestInformation(ElementId elementId) throws DatabaseException;\n\n void storeBalloonSettings(BalloonSettings balloonSettings) throws DatabaseException;\n\n void storeBalloonSettingss(BalloonSettings[] balloonSettings) throws DatabaseException;\n\n BalloonSettings[] readBalloonSettingss() throws DatabaseException;\n\n BalloonSettings readBalloonSettings(ElementId elementId) throws DatabaseException;\n\n void storeClientSettings(ClientSettings clientSettings) throws DatabaseException;\n\n void storeClientSettingss(ClientSettings[] clientSettings) throws DatabaseException;\n\n ClientSettings[] readClientSettingss() throws DatabaseException;\n\n ClientSettings readClientSettings(ElementId elementId) throws DatabaseException;\n\n void storeSiteNumber(int siteNumber) throws DatabaseException;\n\n int readSiteNumber() throws DatabaseException;\n\n void storeRun(Run run) throws DatabaseException;\n\n void storeRuns(Run[] runs, RunFiles[] runFiles) throws DatabaseException;\n\n void storeRun(Run run, RunFiles runFiles) throws DatabaseException;\n\n Run[] readRuns() throws DatabaseException;\n\n Run readRun(ElementId elementId) throws DatabaseException;\n\n Run getRunFiles(Run run) throws DatabaseException;\n\n void storeClarification(Clarification clarification) throws DatabaseException;\n\n void storeClarifications(Clarification[] clarifications) throws DatabaseException;\n\n Clarification[] readClarifications() throws DatabaseException;\n\n Clarification readClarification(ElementId elementId) throws DatabaseException;\n\n void storeRunResultFiles(Run run, RunResultFiles runResultFiles) throws DatabaseException;\n\n RunResultFiles readRunResultFiles(Run run) throws DatabaseException;\n\n RunResultFiles readRunResultFiles(ElementId elementId) throws DatabaseException;\n}", "public interface KeyValueStore {\n\n\t/**\n\t * Put a value into the database with an associated key\n\t * @param key The key of the value\n\t * @param value The value to store\n\t * @return True if successful\n\t */\n\tpublic HasID put(@SuppressWarnings(\"rawtypes\") Class type, HasID value);\n\t\n\t/**\n\t * Get a value using the associated key\n\t * @param key The key\n\t * @return The value or null\n\t */\n\tpublic HasID get(@SuppressWarnings(\"rawtypes\") Class type, String key);\n\t\n\t/**\n\t * \n\t * @param c\n\t * @return\n\t */\n\tpublic List<HasID> getAll(@SuppressWarnings(\"rawtypes\") Class type);\n\t\n\t/**\n\t * Delete a value in the store\n\t * @param key The key of the value\n\t * @return True if removed\n\t */\n\tpublic boolean delete(@SuppressWarnings(\"rawtypes\") Class type, String key);\n\t\n}", "public interface InternalStorageInterface {\n\n boolean isUserLogged();\n\n void saveToken(String token);\n\n void saveUser(User user);\n\n User getUser();\n\n String getToken();\n\n void onLogOut();\n\n void saveProductId (Integer id);\n\n int getProductId();\n\n}", "public interface IDatabase {\n void createIfNotCreated();\n void openDatabase();\n void closeDatabase();\n\n Day loadDay(Date date);\n Day loadLatestDay();\n List<Day> loadMonth(Date date);\n List<Day> loadYear(Date date);\n List<Day> getAllEntries();\n\n void saveDay(Day day);\n void saveMonth(List<Day> days);\n void saveYear(List<Day> days);\n\n void deleteDay(Date date);\n void deleteMonth(Date date);\n void deleteYear(Date date);\n void deleteAll();\n void deleteMeterList();\n void deleteMeterPref();\n\n void savePreferences(MyPreferences pref);\n MyPreferences loadPreferences();\n}", "public interface RdbStorage extends ReadonlyRdbStorage {\n /**\n * insert new record into rdb.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return new object\n */\n Object insert(String key, Object param);\n\n /**\n * update records.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return effected row count\n */\n Integer update(String key, Object param);\n\n /**\n * delete records.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return effected row count\n */\n Integer delete(String key, Object param);\n}", "@Override\n\tpublic Datastore getDatastore() {\n\t\treturn SKBeanUtils.getDatastore();\n\t}", "public interface IOData<T> {\n\t/**\n\t * An abstract method to write/overwrite class object data to text file.\n\t * \n\t * @param fileName The name of the file to write to.\n\t * @param overwrite To indicate whether to overwrite the file or to simply\n\t * append at the bottom of the text file.\n\t * @return boolean value to confirm if writing is successful.\n\t */\n\tpublic abstract boolean writeDataToFile(String fileName, boolean overwrite);\n\n\t/**\n\t * To read each line of data from the text file.\n\t * \n\t * @param fileLine To indicate which line of code to read from.\n\t * @return relevant information.\n\t */\n\tpublic abstract T readDataFile(String fileLine);\n}", "public interface Store {\n\n void addPeople(List<Person> people);\n\n void addEvents(List<Event> events);\n\n List<Person> getNewPeople();\n\n Map<String, Event> getEvents();\n\n Map<Person,String[]> getPreferences();\n\n void addPreference(String personId, String[] split);\n\n void save();\n\n}", "public interface DataManager extends PreferencesHelper, KamusEngIndHelper, KamusIndEngHelper {\n}", "public interface IPersistencia<E> {\r\n void openInput(String fileName) throws Exception;\r\n\r\n void closeInput() throws Exception;\r\n\r\n void openOutput(String fileName) throws Exception;\r\n\r\n void closeOutput() throws Exception;\r\n\r\n void write(E obj) throws Exception;\r\n\r\n E read() throws Exception;\r\n}", "public interface HelperDataManager {\n\n\t/**\n\t * add data to the workingset.\n\t * \n\t * @param data\n\t */\n\tpublic void putData(HelperData data);\n\n\t/**\n\t * retrieve data of the given type, or null if not available.\n\t * \n\t * @param type\n\t * the type of the data to retrieve\n\t * @return the data\n\t */\n\tpublic Data getData(HelperDataType type);\n\n\t/**\n\t * @return all the {@link HelperDataType}s for which data is available\n\t */\n\tpublic List<HelperDataType> getDataTypes();\n\n\t/**\n\t * sets the data of tyhe given type as active one.\n\t * \n\t * @param dataType\n\t */\n\tpublic void setActiveHelperData(HelperDataType dataType);\n\t\n\t/**\n\t * @return the actually active Helper-Data\n\t */\n\tpublic Data getActiveHelperData();\n\t\n\t/**\n\t * adds a listener\n\t * \n\t * @param listener\n\t * the listener to add\n\t */\n\tpublic void addListener(HelperDataManagerListener listener);\n\n\t/**\n\t * removes a listener\n\t * \n\t * @param listener\n\t * the listener to remove\n\t */\n\tpublic void removeListener(HelperDataManagerListener listener);\n}", "public interface DataView {\n\n /**\n * The name of the data store.\n * \n * @return\n */\n String getName();\n\n /**\n * Returns the value mapped to the given key.\n * \n * @param key\n * @return\n */\n <T> T getValue(DataKey<T> key);\n\n Object getValueRaw(String id);\n\n Collection<DataKey<?>> getDataKeysWithValues();\n\n Collection<String> getKeysWithValues();\n\n default Object getValueRaw(DataKey<?> key) {\n return getValueRaw(key.getName());\n }\n\n /**\n * \n * @param key\n * @return true if the store contains a value for the given key\n */\n <T> boolean hasValue(DataKey<T> key);\n\n /**\n * \n * @return the objects mapped to the key ids\n */\n // Map<String, Object> getValuesMap();\n\n public static DataView newInstance(DataStore dataStore) {\n return new DefaultCleanSetup(dataStore);\n }\n\n public static DataView empty() {\n return new DataView() {\n\n @Override\n public <T> T getValue(DataKey<T> key) {\n return null;\n }\n\n @Override\n public String getName() {\n return \"<empty>\";\n }\n\n // @Override\n // public Map<String, Object> getValuesMap() {\n // return Collections.emptyMap();\n // }\n\n @Override\n public <T> boolean hasValue(DataKey<T> key) {\n return false;\n }\n\n @Override\n public Object getValueRaw(String id) {\n return null;\n }\n\n @Override\n public Collection<DataKey<?>> getDataKeysWithValues() {\n return Collections.emptyList();\n }\n\n @Override\n public Collection<String> getKeysWithValues() {\n return Collections.emptyList();\n }\n };\n }\n\n default DataStore toDataStore() {\n return DataStore.newInstance(this);\n }\n}", "public interface DataManagerAPI {\n\n /**\n * Retrieves the habits for a user\n *\n * @return a list of habit objects\n * @see User\n */\n ArrayList<Habit> getHabits();\n\n /**\n * Retrieves the habitEvents for a particular habit\n *\n * @param forHabit the habit in which the habitEvents are wanted\n * @return a list of habitEvents for that particular habit\n * @see HabitEvent\n */\n ArrayList<HabitEvent> getHabitEvents(Habit forHabit);\n\n /**\n * Retrieves the habitEvents for a particular user\n *\n * @return a list of all the habitEvents a user has\n * @see User\n */\n ArrayList<HabitEvent> getHabitEvents();\n\n /**\n * Adds a habit object to the data storage\n *\n * @param habit the new habit to be added\n * @return 0 if success, -1 if any issues\n * @see User\n */\n int addHabit(Habit habit);\n\n /**\n * Removes a habit from storage\n *\n * @param habit the habit to be removed\n * @return 0 if success, -1 if any issues\n * @see Habit\n */\n int removeHabit(Habit habit);\n\n /**\n * Updates the contents of a habit in storage with new information\n *\n * @param oldHabit the habit to be updated\n * @param newHabit the new habit data to replace the old data\n * @return 0 if success, -1 if any issues\n * @see Habit\n */\n int editHabit(Habit oldHabit, Habit newHabit);\n\n /**\n * Adds a habitEvent for a habit to storage\n *\n * @param habit the habit for which the event is being logged\n * @param habitEvent the habitEvent to add\n * @return 0 if success, -1 if any issues\n * @see Habit\n * @see HabitEvent\n */\n int addHabitEvent(Habit habit, HabitEvent habitEvent);\n\n /**\n * Removes a habitEvent from storage\n *\n * @param habitEvent the habitEvent to be removed\n * @return 0 if success, -1 if any issues\n * @see HabitEvent\n */\n int removeHabitEvent(HabitEvent habitEvent);\n\n /**\n * Updates an existing habitEvent with new data\n *\n * @param oldHabitEvent the habitEvent being updated\n * @param newHabitEvent the new data to update the old event with\n * @return 0 if success, -1 if any issues\n * @see HabitEvent\n */\n int editHabitEvent(HabitEvent oldHabitEvent, HabitEvent newHabitEvent);\n\n int editUser(User user);\n\n /**\n * Removes a user from the application, all data will be lost for that user\n *\n * @param user the user to be removed\n * @return 0 if success, -1 if any issues\n * @see User\n */\n int removeUser(User user);\n\n /**\n * Retrieves the current user\n *\n * @return a User instance representing the current user\n * @see User\n */\n User getUser();\n\n /**\n * Adds a new user to storage.\n *\n * @param userName a string representing the user's username\n * @return true if success, false if any issues\n * @see User\n */\n boolean addUser(String userName, AsyncResultHandler handler);\n\n /**\n * used to pass users between activities\n * only returns the user once and then returns null til a new user is set by setPassedUser(User passedUser)\n *\n * @return the last user passed using setPassedUser(User passedUser)\n */\n User getPassedUser();\n\n /**\n * used to pass users between activities\n *\n * @param passedUser the user to be passed, is return by getPassedUser()\n */\n void setPassedUser(User passedUser);\n\n /**\n * used to pass habit between activities\n * only returns the habit once and then returns null til a new user is set by setPassedHabit(Habit passedHabit)\n *\n * @return the last habit passed using setPassedHabit(Habit passedHabit)\n */\n Habit getPassedHabit();\n\n /**\n * used to pass users between activities\n *\n * @param passedHabit the user to be passed, is return by getPassedHabit()\n */\n void setPassedHabit(Habit passedHabit);\n\n /**\n * used to pass habitEvents between activities\n * only returns the habitEvent once and then returns null til a new user is set by setPassedHabitEvent(HabitEvent passedHabitEvent)\n *\n * @return the last habit passed using setPassedHabitEvent(HabitEvent passedHabitEvent)\n */\n HabitEvent getPassedHabitEvent();\n\n /**\n * used to pass users between activities\n *\n * @param passedHabitEvent the user to be passed, is return by getPassedHabitEvent()\n */\n void setPassedHabitEvent(HabitEvent passedHabitEvent);\n\n /**\n * Retrieve the current users who want to follow the current user\n *\n * @return an array list of users who want to follow the current user\n */\n int getFollowRequests(AsyncResultHandler handler);\n\n /**\n * Accept a follow request by a user\n *\n * @param user the user that is allowed to follow the current user\n * @return true if the acceptance was successful, false if not\n */\n Boolean acceptRequest(User user);\n\n /**\n * Reject a pending follow request\n *\n * @param user\n * @return true if the rejection was successful, false if not\n */\n Boolean rejectRequest(User user, AsyncResultHandler handler);\n\n /**\n * Unfollows the given user\n * @param user the user to unfollow\n */\n void unFollow(User user);\n\n /**\n * Get the users which the specified user follows\n *\n * @param user the user you want to get the followers of\n * @return a list of the particular user's followers\n */\n int getWhoThisUserFollows(User user, AsyncResultHandler handler);\n\n /**\n * Gets the followers of a particular user\n *\n * @param user a list of users who follow the specified user\n * @return a list of users who follow the specified user\n */\n int getWhoFollows(User user, AsyncResultHandler handler);\n\n /**\n * Search users\n *\n * @param minStreak the min streak to include\n * @param query the search query\n * @param alreadyFollowing if true, do not include the users you are already following\n * @return a list of the users who meet the criteria\n */\n int findUsers(int minStreak, String query, Boolean alreadyFollowing, AsyncResultHandler handler);\n\n /**\n * Send a request to follow the user\n *\n * @param user the user the current user wants to follow\n * @return true if success, false if not\n */\n Boolean sendFollowRequest(User user);\n\n /**\n * Cancel a pending follow request\n *\n * @param user\n * @return true if the rejection was successful, false if not\n */\n public Boolean cancelRequest(User user, AsyncResultHandler handler);\n\n /**\n * Search Habits\n *\n * @param forUser the search query\n * @return a list of habits that contain the search query\n */\n int findHabits(User forUser, AsyncResultHandler<Habit> handler);\n\n /**\n * Search HabitEvents\n *\n * @param forHabit the search query\n * @return a list of habits that contain the search query\n */\n int findHabitEvents(Habit forHabit, AsyncResultHandler<HabitEvent> handler);\n\n /**\n * Search HabitEvents\n *\n * @param forUser the search query\n * @return a list of habits that contain the search query\n */\n int findHabitEvents(User forUser, AsyncResultHandler<HabitEvent> handler);\n\n /**\n * returns an Array of SuperCombinedManagerObjectToManageTheMostRecentHabitForUser that holds the Habit and its most recent event for the User\n *\n * @param forUser the User to get the array of most recent events\n * @param handler what to call when the results come back\n */\n void findMostRecentEvent(User forUser, AsyncResultHandler<SuperCombinedManagerObjectToManageTheMostRecentHabitForUser> handler);\n\n\n}", "public interface DataManagerInterface {\n Observable saveData(List<Vacancy> vacancies);\n\n Observable overwriteData(List<Vacancy> vacancies, int totalItemCount);\n}", "public interface Data extends Bookmarkable, Closeable {\n\n /**\n * Returns custom metadata that will be available to processor with prefix 'c_'.\n */\n Map<String, String> getCustomMetadata();\n\n /**\n * Identifies type of data in {@link Data#getInputStream()}. Typically it will be a string including provider type and\n * data type - i.e 'ALM/tests'. A result processor will be selected based on the data type.\n */\n @NotNull\n String getDataType();\n\n /**\n * MIME type value (i.e application/xml, text/plain).\n */\n @NotNull\n String getMimeType();\n\n /**\n * Returns charset of the content. If the content is binary then returns null.\n */\n String getCharset();\n\n /**\n * Returns input stream for reading data. The data may be binary, textual etc. Its content type is identified by\n * {@link Data#getMimeType()}.\n */\n @NotNull\n InputStream getInputStream() throws IOException;\n}", "public interface IDBStorableModel {\n\n\t/**\n\t * Saves the model to db\n\t * \n\t * @param db\n\t * @return\n\t */\n\tpublic void store(DBConnection db) throws IOException;\n\t\n}", "public void setStorage(Storage storage) {\n this.storage = storage;\n }", "public Storage getStorage() {\n return this.storage;\n }", "public interface HMMStorage {\n\n /**\n * Stores HMM initial probability.\n *\n * @param <S> A type of labels.\n * @param hmmId HMM id.\n * @param probability Probability object to store.\n * @throws IOException\n */\n <S> void storeInitialProbability(String hmmId, HMMInitialProbability<S> probability) throws IOException;\n\n /**\n * Stores HMM transition probability.\n *\n * @param <S> A type of labels.\n * @param hmmId HMM id.\n * @param probability Probability object to store.\n * @throws IOException\n */\n <S> void storeTransitionProbability(String hmmId, HMMTransitionProbability<S> probability) throws IOException;\n\n /**\n * Stores HMM emission probability.\n *\n * @param <S> A type of labels.\n * @param hmmId HMM id.\n * @param probability Probability object to store.\n * @throws IOException\n */\n <S> void storeEmissionProbability(String hmmId, HMMEmissionProbability<S> probability) throws IOException;\n\n /**\n * Fetches stored probability information object.\n *\n * @param <S> A type of labels.\n * @param hmmId HMM id.\n * @return Stored probability object.\n */\n <S> HMMProbabilityInfo<S> getProbabilityInfo(String hmmId) throws IOException;\n}", "public DefaultStorage() {\n }", "public interface Backend {\n\t\n\t/**\n\t * read a user from storage into memory\n\t * @param id - the user's id to be read from storage\n\t * @return \n\t */\n\tpublic User read(String id);\n\t\n\t/**\n\t * write a user to storage\n\t * @param id - the user's id to be written to storage\n\t */\n\tpublic void write(String id);\n\t\n\t/**\n\t * add an user\n\t * @param user - the user to be added\n\t * @return true on success, false otherwise\n\t */\n\tpublic boolean addUser(User user);\n\t/**\n\t * delete an user\n\t * @param id - the id of user to be deleted\n\t * @return true on success, false otherwise\n\t */\n\tpublic boolean deleteUser(String id);\n\t\n\t\n\t/**\n\t * @return a list of existing users\n\t */\n\tpublic List<User> getUsers();\n}", "public interface KeyValueStore {\n\n /**\n * Stores the given key with the given value\n * @param key the given key\n * @param value the given value\n * @throws StorageException the data store could not be accessed\n * @throws ValidationException if the values of the key-value store are not valid after the operation\n * @throws KeyValueStoreException if a to-be-validated value could not be found\n */\n void put(String key, String value) throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Stores the given key with the given value\n * @param key the given key\n * @param value the given value\n * @throws StorageException the data store could not be accessed\n * @throws ValidationException if the values of the key-value store are not valid after the operation\n * @throws KeyValueStoreException if a to-be-validated value could not be found\n */\n void put(String key, int value) throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Stores the given key with the given value\n * @param key the given key\n * @param value the given value\n * @throws StorageException the data store could not be accessed\n * @throws ValidationException if the values of the key-value store are not valid after the operation\n * @throws KeyValueStoreException if a to-be-validated value could not be found\n */\n void put(String key, double value) throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Stores the given key with the given value\n * @param key the given key\n * @param value the given value\n * @throws StorageException the data store could not be accessed\n * @throws ValidationException if the values of the key-value store are not valid after the operation\n * @throws KeyValueStoreException if a to-be-validated value could not be found\n */\n void put(String key, boolean value) throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Retrieves the value for the given key\n * @param key the given key\n * @return the stored value for the given key,\n * @throws KeyValueStoreException If no value for the given key was found\n */\n String getString(String key) throws KeyValueStoreException;\n\n /**\n * Retrieves the int value for the given key\n * @param key the given key\n * @return the stored int value for the given key,\n * @throws KeyValueStoreException If the value could not be converted to an integer or no value for the given key was found\n */\n int getInt(String key) throws KeyValueStoreException;\n\n /**\n * Retrieves the double value for the given key\n * @param key the given key\n * @return the stored double value for the given key,\n * @throws KeyValueStoreException If no value for the given key is found\n * or the value could not be converted to a double\n */\n double getDouble(String key) throws KeyValueStoreException;\n\n /**\n * Retrieves the boolean value for the given key\n * @param key the given key\n * @return the stored boolean value for the given key,\n * @throws KeyValueStoreException If no value for the given key is found\n * or the value could not be converted to a boolean\n */\n boolean getBoolean(String key) throws KeyValueStoreException;\n\n /**\n * Restores the default values for all values in the key-value store.\n * @throws StorageException If either the data store for the default values could not be accessed or\n * one of the default values could not be restored\n * @throws ValidationException If one of the default values is invalid or a folder referenced by a default value could no tbe created\n * @throws KeyValueStoreException If a to-be-validated value could not be found\n */\n void restoreDefaultProperties() throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Validates and writes out all changes made to the key-value store since last commit.\n * @throws StorageException If the data store could not be accessed\n * @throws ValidationException If any of the given values is invalid or a folder referenced by a default value could not be created\n * @throws KeyValueStoreException If a to-be-validated value could not be found\n */\n void commit() throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Undoes all uncommited changes made since the last commit\n */\n void rollBack();\n\n /**\n * Change if a commit should be made after every change to the key-value store\n * @param autoCommit Enable or disable auto commit\n * @throws StorageException If the data store could not be accessed\n */\n void setAutoCommit(boolean autoCommit) throws StorageException;\n\n}", "public interface DataAccess {\n String USER_PATH = \"user/%s\";\n String CARS_PATH = USER_PATH + \"/cars/%s\";\n String FUELENTRY_PATH = CARS_PATH + \"/fuel_entries/%s\";\n String REPAIRENTRY_PATH = CARS_PATH + \"/repair_entries/%s\";\n String OTHERENTRY_PATH = CARS_PATH + \"/other_entries/%s\";\n String REMINDERENTRY_PATH = USER_PATH + \"/reminders/%s\";\n\n\n void update(String path, Object object);\n void push(String path, Object object);\n void delete(String path);\n\n <T> void getAll(String path, MyList<T> list, Type typeOfT);\n\n String getUid();\n}", "public interface Data {\n\t/* nothing special at the moment */\n}", "public interface DataWriter extends DataAdapter {\n\n /**\n * add an item to the list of pending work to be written.\n *\n * @param record DataRecord to add\n */\n void addItem(DataRecord record);\n\n /**\n * flush the list of work to be written\n */\n void flushBatch();\n\n /**\n * called by the system just prior to a normal shutdown.\n */\n void finish();\n\n\n}", "public Data storeData(String repository,byte[] data){\n Data result = null;\n\n //Check if the repository exists\n if(!storage.containsKey(repository)){\n //Create it if it doesn't\n storage.put(repository,new HashMap<>());\n }\n\n //Create the counter for the new object\n String id = String.valueOf(idCounter++);\n\n //Create the Object that will store the data\n result = new Data(id,data);\n\n //Get the repository and store\n storage.get(repository).put(id,result);\n\n return result;\n }", "public interface SaveData {\n\tvoid saveChildAccountData (ChildAccount childAccount) throws JsonGenerationException, JsonMappingException, IOException;\n\n\tvoid saveDataFileBasedParentAccountData (DataFileBasedParentAccount parentAccount) throws JsonGenerationException, JsonMappingException, IOException;\n}", "public interface ISaveable {\n List<String> write();\n void read(List<String> savedValues);\n}", "public interface StorageStats {\n\n /**\n * Returns storage usage for all resources.\n *\n * @return a list of storage resource usage objects\n */\n List<StorageResourceUsage> getStorageResourceUsage();\n\n /**\n * Returns the storage usage for the specified resource.\n *\n * @param resourceName the name of the resource\n * @return a storage resource usage object\n */\n StorageResourceUsage getStorageResourceUsage(String resourceName);\n\n\n long getTotalStorageUsage(DataCategory dataCategory);\n\n long getTotalStorageUsage(DataCategory dataCategory, String projectId);\n\n}", "public interface Store {\n\n}", "void saveStorage(StorageEntity storage);", "public interface IStorageService {\n List<Storage> findStorageList();\n}", "public interface DataDao {\r\n\t/*\r\n\t * Get the latest data of a specific device despite of sensor data type.\r\n\t */\r\n\tpublic DataValue getLastDataByDeviceIdSortedByTimestamp(String deviceId) throws Exception;\r\n\t/*\r\n\t * Get the latest data of a specific device and a sensor data type.\r\n\t */\r\n\tpublic DataValue getLastDataByDeviceIdAndSensorTypeSortedByTimestamp(SensorValue sensorVal) throws Exception;\r\n\t/*\r\n\t * Get the data information list from database that is between a specific time interval.\r\n\t */\r\n\tpublic List<DataValue> getDataListByDeviceIdAndSensorTypeAndDateSortedByTimestamp(DataValue dataVal) throws Exception;\r\n\t/*\r\n\t * Insert new sensor data into database.\r\n\t */\r\n\tpublic int insertSensorData(DataValue dataVal) throws Exception;\r\n\t/*\r\n\t * Get the greatest data value of a specific sensor type.\r\n\t */\r\n\tpublic DataValue getGreatestDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;\r\n\t/*\r\n\t * Get the least data value of a specific sensor type.\r\n\t */\r\n\tpublic DataValue getLeastDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;\r\n}", "public interface UserStorage {\n\tpublic void add(User user); \n\tpublic void put(User user);\n\tpublic User get(String username); \n\tpublic void remove(String username); \n\tpublic List<User> list(); \n\tpublic List<User> list(int pageNo, int pageSize);\n}", "public interface ExternalBlobIO {\n /**\n * Write data to blob store\n * @param in: InputStream containing data to be written\n * @param actualSize: size of data in stream, or -1 if size is unknown. To be used by implementor for optimization where possible\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return locator string for the stored blob, unique identifier created by storage protocol\n * @throws IOException\n * @throws ServiceException\n */\n String writeStreamToStore(InputStream in, long actualSize, Mailbox mbox) throws IOException, ServiceException;\n\n /**\n * Create an input stream for reading data from blob store\n * @param locator: identifier string for the blob as returned from write operation\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return InputStream containing the data\n * @throws IOException\n */\n InputStream readStreamFromStore(String locator, Mailbox mbox) throws IOException;\n\n /**\n * Delete a blob from the store\n * @param locator: identifier string for the blob\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return true on success false on failure\n * @throws IOException\n */\n boolean deleteFromStore(String locator, Mailbox mbox) throws IOException;\n}", "public interface DataAccessObject {\n\n}", "public interface IDataSource {\r\n\t\r\n\t/**\r\n\t * Method to check if there are any stored credential in the data store for the user.\r\n\t * @param userId\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public boolean checkAuth(String userId) throws IOException;\r\n\t\r\n\t/**\r\n\t * Method to build the Uri used to redirect the user to the service provider site to give authorization.\r\n\t * @param userId\r\n\t * @param authCallback callback URL used when the app was registered on the service provider site. Some providers require\r\n\t * to specify it with every request.\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String buildAuthRequest(String userId, String authCallback) throws IOException;\r\n\t\r\n\t/**\r\n\t * Once the user has authorized the application, the provider redirect it on the app using the callback URL. This method \r\n\t * saves the credentials sent back with the request in the data store.\r\n\t * @param userId\r\n\t * @param params HashMap containing all the parameters of the request\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public void saveAuthResponse(String userId, HashMap<String, String> params) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of a single resource\r\n\t * @param userId\r\n\t * @param name resource name as in the XML config file\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String updateData(String userId, String resourceName, long lastUpdate) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of all resources\r\n\t * @param userId\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String[] updateAllData(String userId, long lastUpdate) throws IOException;\r\n\t\r\n}", "public KVCommInterface getStore();" ]
[ "0.7826507", "0.77183306", "0.7460902", "0.7365257", "0.7241195", "0.71717155", "0.7147815", "0.71369857", "0.7126275", "0.7054258", "0.6936826", "0.6916722", "0.6892586", "0.6850171", "0.68116397", "0.67953616", "0.67093", "0.6688883", "0.66715056", "0.6660584", "0.66268027", "0.66238993", "0.66205466", "0.6595458", "0.6586062", "0.65664726", "0.6563325", "0.6554325", "0.6527583", "0.6523356", "0.64961714", "0.64820945", "0.64776427", "0.6458764", "0.6456963", "0.6410506", "0.6401048", "0.6370653", "0.63353664", "0.632627", "0.63205916", "0.63129944", "0.6302773", "0.62968206", "0.62947", "0.6278201", "0.6257174", "0.62269485", "0.6220564", "0.6213626", "0.62133175", "0.6211593", "0.618917", "0.6136842", "0.61327946", "0.6130973", "0.61189663", "0.61183536", "0.6114223", "0.61137813", "0.6097829", "0.6097232", "0.60972077", "0.6096318", "0.60767007", "0.6075374", "0.6074495", "0.6063262", "0.6059034", "0.60584706", "0.60428846", "0.60292125", "0.5991782", "0.5985514", "0.59842855", "0.59746796", "0.59633017", "0.5961603", "0.596023", "0.5951825", "0.59376353", "0.59362346", "0.5936141", "0.59344506", "0.59279263", "0.5927286", "0.59233665", "0.5922788", "0.5922281", "0.5920197", "0.5920114", "0.5899731", "0.5898695", "0.589091", "0.58882785", "0.58797264", "0.5877602", "0.5876648", "0.58758885", "0.5875087", "0.58648884" ]
0.0
-1
contains all earnings, except for current payroll receipt
public SHrsLoan(SDbLoan loan) { moLoan = loan; maPayrollReceiptEarnings = new ArrayList<>(); maPayrollReceiptDeductions = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateEarnings(){\n if (wages.size() > expenses.size()){\n //check size difference\n int sizeUp = wages.size() - expenses.size();\n for(int i = 0; i < sizeUp; i++){\n //add zero(s) to expenses to match up(this assumes no expenses for the week(s))\n expenses.add(BigDecimal.ZERO);\n }\n }\n\n if(expenses.size() > wages.size()){\n //check size difference\n int sizeUp = expenses.size() - wages.size();\n for(int i = 0; i < sizeUp; i++){\n //add zero(s) to expenses to match up(this assumes no income for the week(s))\n wages.add(BigDecimal.ZERO);\n }\n }\n for(int i=0; i < wages.size(); i++){\n BigDecimal profits;\n profits = wages.get(i).subtract(expenses.get(i));\n BigDecimal roundUp = profits.setScale(2, RoundingMode.HALF_UP);\n earningsList.add(roundUp);\n }\n }", "@Override\n public double earnings() {\n return getCommissionRate() * getGrossSales();\n }", "public int getTotalEarnings() {\r\n\t\tint total = 0;\r\n\t\tfor (int i = 0; i < this.receiptissued.size(); i++) {\r\n\t\t\ttotal = total + this.receiptissued.get(i).getPrice();\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t}", "public double getEarnings() {\n//\t\tif (hoursWorked > 40) {\n//\t\t\treturn (40 * hoursWorked) + \n//\t\t\t\t\t((hoursWorked - 40) * wagePerHour * 1.5);\n//\t\t} else {\n//\t\t\treturn hoursWorked * wagePerHour;\n//\t\t}\n\t\t\t\t// condition \n\t\treturn hoursWorked > 40 ? \n\t\t\t\t// condition true \n\t\t\t(40 * wagePerHour) + ((hoursWorked - 40) * wagePerHour * 1.5) \n\t\t\t\t// condition false\n\t\t\t: hoursWorked * wagePerHour;\t\n\t}", "@Override\n public double earnings() {\n return salary + commission + quantity;\n }", "public double earnings() {\r\n double earnings;\r\n double overtime;\r\n double overtimeRate = hourlyRate * 1.5;\r\n\r\n // if hours, hourlyRate, or salary is negative (default numerical values are -1) earnings is -1\r\n if (hours < 0 || hourlyRate < 0 || salary < 0) {\r\n earnings = -1;\r\n }\r\n else if (hours > 40) {\r\n overtime = (hours - 40) * overtimeRate;\r\n earnings = overtime + salary;\r\n }\r\n else {\r\n earnings = salary;\r\n }\r\n\r\n return earnings;\r\n }", "public double getTotalEarnings() {\n return this.totalEarnings;\n }", "public double earnings() {\n\t\treturn getCommissionRate()+getGrossSales();\r\n\t}", "public BigDecimal getTotalEarnings() {\n totalEarnings = new BigDecimal(0);\n for(BigDecimal earnings: earningsList){\n totalEarnings = totalEarnings.add(earnings);\n }\n return totalEarnings.setScale(2, RoundingMode.HALF_UP);\n }", "boolean examinePaidItems(){\n\t\t\tint count = 0;\n\t\t\tif (!this.items.isEmpty()){\n\t\t\t\tfor (int i = 0; i < this.items.size(); i++){\n\t\t\t\t\tif (this.items.get(i).montaryValue != 0){\n\t\t\t\t\t\tSystem.out.print(this.items.get(i).itemName + \" ($\" + (this.items.get(i).montaryValue * -1) + \"), \");\n\t\t\t\t\t\tcount++;}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!this.receptacle.isEmpty()){//if the location has containers.\n\t\t\t\tfor (int k = 0; k < this.receptacle.size(); k++){//loops through the containers in the location\n\t\t\t\t\tif (!(this.receptacle.get(k) instanceof SpecialtyContainer)){//some containers are hidden, like the depths of the cove. \n\t\t\t\t\t\tfor (int j = 0; j < this.receptacle.get(k).contents.size(); j++){//looks for the items in the non hidden containers\n\t\t\t\t\t\t\tif (this.receptacle.get(k).contents.get(j).montaryValue < 0){//if the item needs to be bought\n\t\t\t\t\t\t\t\tSystem.out.print(this.receptacle.get(k).contents.get(j).itemName + \" ($\" + \n\t\t\t\t\t\t\t\t\t\t(this.receptacle.get(k).contents.get(j).montaryValue * -1) + \"), \");\n\t\t\t\t\t\t\t\tcount++;}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == 0){//it didn't find any items you need to pay for.\n\t\t\t\tSystem.out.println(\"There's nothing here that costs money.\");\n\t\t\t\treturn false;}\n\t\t\treturn true;\n\t\t}", "protected boolean isDocFinalWithNoAppliedAmountsExceptDiscounts(CustomerInvoiceDocument document) {\n boolean isFinal = document.getDocumentHeader().getWorkflowDocument().isFinal();\n\n InvoicePaidAppliedService<CustomerInvoiceDetail> paidAppliedService = SpringContext.getBean(InvoicePaidAppliedService.class);\n boolean hasAppliedAmountsExcludingDiscounts = paidAppliedService.doesInvoiceHaveAppliedAmounts(document);\n\n return isFinal && !hasAppliedAmountsExcludingDiscounts;\n }", "List<Receipt> getNotApproved() throws DbException;", "public List<BigDecimal> getEarningsList(){\n return earningsList;\n }", "public double calcTotalEarnings() {\n double total = 0;\n for (int i = 0; i < numRegions; i++) {\n total += regionList[i].calcEarnings();\n }\n return total;\n }", "@Override\n public double earnings() {\n if (getHours() < 40)\n return getWage() * getHours();\n else\n return 40 * getWage() + ( getHours() - 40 ) * getWage() * 1.5;\n }", "double getUnpaidAmount();", "public double earnings() {\n\t\treturn weeklySalary; \n\t}", "public double totalEarnings() {\n\t\treturn dayEarnings;\n\t}", "public ArrayList<Transaction> isRenting(){\n ArrayList<Transaction> renting= new ArrayList<Transaction>();\n for(int i=0;i< Library.Transactions.size();i++){\n //transaction book title equals the book returning\n if((Library.Transactions.get(i).getUsername().equals(this.getUserName()))&&(Library.Transactions.get(i).getReturndate()==null)){\n renting.add(Library.Transactions.get(i));\n }\n }\n return renting;\n\t}", "public void printTotalRentProfit () {\n System.out.println(\"The total rent profit is currently: \" + totalRent + \" US Dollars.\");\n }", "public Double getRawGross(int orNo, int storeCode ) {\r\n//\t\tString query = \"SELECT SUM(IF(o.RETURN=0,i.SELL_PRICE*i.QUANTITY,p.AMT)) FROM invoice_item i, invoice o, payment_item p WHERE MONTH (o.TRANS_DT) = '\"+month+\"' && YEAR(o.TRANS_DT) = '\"+year+\"' && DAY(o.TRANS_DT) = '\"+day+\"' AND i.OR_NO = o.OR_NO AND p.OR_NO = o.OR_NO AND p.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\";\r\n\t\tString query = \"SELECT SUM(i.SELL_PRICE*i.QUANTITY) FROM invoice_item i, invoice o WHERE o.OR_NO= '\"+orNo+\"' AND i.OR_NO = o.OR_NO AND i.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\"\r\n\t\t+ \" AND NOT EXISTS (SELECT 1 FROM INVOICE_SET s WHERE s.OR_NO = o.OR_NO) \"\r\n\t\t;\r\n\t\t\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n//\t\tResultSet rs = Main.getDBManager().executeQuery(\"SELECT sum(p.AMT) from payment_item p WHERE MONTH (p.TRANS_DT) = '\"+month+\"' && YEAR(p.TRANS_DT) = '\"+year+\"' && DAY(p.TRANS_DT) = '\"+day+\"' AND p.STORE_CODE = '\"+storeCode+\"'\");\r\n\t\tDouble dailySale = 0.0d;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n//\t\t\t\tdouble amount = rs.getDouble(1);\r\n//\t\t\t\tdailySale = amount/getVatRate();\r\n\t\t\t\t\r\n\t\t\t\tdailySale = rs.getDouble(1);\r\n\t\t\t\tlogger.debug(\"Raw Gross BEFORE SUBTRACTION: \"+dailySale);\r\n\t\t\t\t\r\n\t\t\t\tdailySale = dailySale - getDeductibles(orNo, storeCode) + getCompletedTransactions(orNo, storeCode);\r\n\t\t\t\tlogger.debug(\"Raw Gross AFTER SUBTRACTION: \"+dailySale);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n\t\tlogger.debug(\"Raw Gross: \"+dailySale);\r\n\t\treturn dailySale;\r\n\t}", "private void givenExchangeRatesExistsForEightMonths() {\n }", "public void dispersePayout(Room room){\n \n Dice d = new Dice();\n ArrayList<Integer> payoutVals = d.rollPayout(room.getSceneCard().getSceneBudget());\n \n ArrayList<Player> players = room.getOccupants();\n \n ArrayList<Role> roles = room.getSceneCard().getRoles();\n ArrayList<Integer> ranks = new ArrayList<Integer>();\n \n for(Role r : roles){\n ranks.add(r.getRank());\n }\n \n Collections.sort(ranks);\n Collections.reverse(ranks);\n \n //loop through roles and pay respective players\n for(int i = 0; i < payoutVals.size(); i++){\n int roleRank = ranks.get(i % ranks.size()); \n \n for(Player p : players){\n if(p.getCurrentRole() != null){\n if(p.getCurrentRole().isOnCard() && p.getCurrentRole().getRank() == roleRank){\n p.addMoney(payoutVals.get(i));\n }\n }\n \n \n }\n }\n for(Player p : players){\n if(p.getCurrentRole() != null){\n if(!(p.getCurrentRole().isOnCard())){\n p.addMoney(p.getCurrentRole().getRank());\n }\n }\n \n }\n }", "@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }", "@Override\n\tpublic int getProfit() {\n\t\treturn 0;\n\t}", "@Override\n public List<Employee> getEmployeePositiveBalance() {\n return employeeRepository\n .readEmployee()\n .stream()\n .filter(employee -> employee.getBalance() > 0)\n .collect(Collectors.toList())\n ;\n }", "public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }", "@Override\n\tpublic ArrayList<TY_SaleEligibleItems> getEligibleSaleItems(TY_SCTxn_Summary txnSummary) throws EX_General\n\t{\n\t\tArrayList<TY_SaleEligibleItems> eligibleItems = new ArrayList<TY_SaleEligibleItems>();\n\n\t\tTY_Scrip_PositionModel posModel = null;\n\n\t\t// First get the Positions for Current scrip from Portfolio Manager\n\n\t\tif (portFMgrSrv != null)\n\t\t{\n\n\t\t\tposModel = portFMgrSrv.getPositionsModelforScrip(txnSummary.getScCode());\n\n\t\t\tif (posModel != null)\n\t\t\t{\n\t\t\t\t// Get TENTATIVE SELL ITEMS\n\t\t\t\tArrayList<TY_SaleEligibleItems> allItems = this.getTentativeSellItems(posModel, txnSummary.getTxnDate());\n\n\t\t\t\tif (allItems.size() > 0 && baseConfig != null)\n\t\t\t\t{\n\t\t\t\t\t// Process tentative items for Taxation consideration to get final list of Sell Items with\n\t\t\t\t\t// corresponding quantities to sell\n\t\t\t\t\teligibleItems = processTentativeSellItems(allItems, txnSummary);\n\n\t\t\t\t\t// Process for Free Shares\n\t\t\t\t\tif (eligibleItems != null)\n\t\t\t\t\t{\n\t\t\t\t\t\teligibleItems = processForFreeShares(eligibleItems, txnSummary, posModel);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn eligibleItems;\n\t}", "private void checkWholesaleMarket (WholesaleMarket market)\n {\n int offset =\n market.getTimeslotSerialNumber()\n - visualizerBean.getCurrentTimeslotSerialNumber();\n if (offset == 0) {\n market.close();\n // update model:\n wholesaleService.addTradedQuantityMWh(market.getTotalTradedQuantityMWh());\n // let wholesaleMarket contribute to global charts:\n WholesaleSnapshot lastSnapshot =\n market.getLastWholesaleSnapshotWithClearing();\n if (lastSnapshot != null) {\n WholesaleServiceJSON json = wholesaleService.getJson();\n try {\n json.getGlobalLastClearingPrices()\n .put(new JSONArray().put(lastSnapshot.getTimeslot()\n .getStartInstant()\n .getMillis())\n .put(lastSnapshot.getClearedTrade()\n .getExecutionPrice()));\n json.getGlobalLastClearingVolumes()\n .put(new JSONArray().put(lastSnapshot.getTimeslot()\n .getStartInstant()\n .getMillis())\n .put(lastSnapshot.getClearedTrade()\n .getExecutionMWh()));\n\n json.getGlobalTotalClearingVolumes()\n .put(new JSONArray().put(lastSnapshot.getTimeslot()\n .getStartInstant()\n .getMillis())\n .put(market.getTotalTradedQuantityMWh()));\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n }", "private ArrayList<TY_SaleEligibleItems> getTentativeSellItems(TY_Scrip_PositionModel posModel, Date sellDate) throws EX_General\n\t{\n\t\tArrayList<TY_SaleEligibleItems> allItems = null;\n\t\t// 2. Get Buy Positions Items with ETQ > 0\n\t\tArrayList<OB_Positions_Item> buyItemsposETQ = posModel.getScPosItems().stream().filter(x -> x.getTxnType().equals(SCEenums.txnType.BUY))\n\t\t .filter(w -> w.getETQ() > 0).collect(Collectors.toCollection(ArrayList::new));\n\t\tif (buyItemsposETQ != null && dateSrv != null)\n\t\t{\n\t\t\t// 3.Calculate Days difference for Each of the Items thus obtained\n\t\t\tallItems = new ArrayList<TY_SaleEligibleItems>();\n\n\t\t\tfor ( OB_Positions_Item posItem : buyItemsposETQ )\n\t\t\t{\n\t\t\t\tint daysDiff = 0;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tdaysDiff = dateSrv.getNumDaysbwSqlSysDates(posItem.getTxnDate(), sellDate);\n\t\t\t\t}\n\t\t\t\tcatch (ParseException e)\n\t\t\t\t{\n\t\t\t\t\tEX_General egen = new EX_General(\"ERR_DATE_PARSE\", new Object[]\n\t\t\t\t\t{ e.getMessage()\n\t\t\t\t\t});\n\t\t\t\t\tthrow egen;\n\t\t\t\t}\n\n\t\t\t\tTY_SaleEligibleItems eligItem = new TY_SaleEligibleItems(posItem.getPrimaryKey_Int(), daysDiff, posItem.getETQ(), 0);\n\t\t\t\tallItems.add(eligItem);\n\t\t\t}\n\t\t}\n\t\treturn allItems;\n\t}", "public List<Payment> viewUnPaidPayments(User user, Offer offer) {\n\t\tList<Payment> payments = new ArrayList<>();\n\t\tfor (int i = 1; i <= offer.getInstallments(); i++) {\n\t\t\tPayment payment = new Payment();\n\t\t\tpayment.setOffer(offer);\n\t\t\t// need to figure out how the date works\n\t\t\tpayment.setAmount(offer.getBalance() / offer.getInstallments());\n\t\t\tpayment.setUser(user);\n\t\t\tpayments.add(payment);\n\t\t}\n\t\t// log.debug(\"View Unpaid Payments Method = Installments: \" + payments);\n\n\t\treturn payments;\n\t}", "private void calculateRealizedProfit() {\n\n // Calculate the realized profit for this stock. Realized profit is\n // the sum of money already gained or lost for all the shares sold for\n // this stock.\n this.realizedProfit = 0 ;\n for( final Trade buyTrade : this.allCashBuyTrades ) {\n final List<Trade> sellTrades = buyTrade.getSellTrades() ;\n if( sellTrades != null ) {\n for( final Trade sellTrade : sellTrades ) {\n this.realizedProfit += sellTrade.getMatchedUnits() *\n ( sellTrade.getAvgPrice() - buyTrade.getAvgPrice() ) ;\n }\n }\n }\n }", "private void processSalaryForEmployee(Epf epf, Esi esi, List<PayOut> payOuts,\r\n\t\t\tReportPayOut reportPayOut, PayrollControl payrollControl, List<LoanIssue> loanIssues, List<OneTimeDeduction> oneTimeDeductionList ) {\r\n\t\t\r\n\t\tPayRollProcessUtil util = new PayRollProcessUtil();\r\n\t\tBigDecimal netSalary = new BigDecimal(0);\r\n\t\tPayRollProcessHDDTO payRollProcessHDDTO = new PayRollProcessHDDTO();\r\n\t\t\r\n\t\tpayRollProcessHDDTO.setPayMonth(payrollControl.getProcessMonth());\r\n\t\tpayRollProcessHDDTO.setEpf(epf);\r\n\t\tpayRollProcessHDDTO.setEsi(esi);\t\r\n\t\tpayRollProcessHDDTO.setReportPayOut(reportPayOut);\r\n\t\tsetProfessionalTax(reportPayOut, payRollProcessHDDTO);\r\n\t\tList<PayRollProcessDTO> earningPayStructures = new ArrayList<PayRollProcessDTO>();\r\n\t\t\r\n\t\tDateUtils dateUtils = new DateUtils();\r\n\t\tDate currentDate = dateUtils.getCurrentDate();\r\n\t\t\r\n\t\t/*List<PayStructure> payStructures = attendanceRepository\r\n\t\t\t\t.fetchPayStructureByEmployee( reportPayOut.getId().getEmployeeId(), currentDate );*/\r\n\t\t\r\n\t\tlogger.info( \" reportPayOut.getId().getEmployeeId() \"+ reportPayOut.getId().getEmployeeId() );\r\n\t\t\r\n\t\tPayStructureHd payStructureHd = payStructureService.findPayStructure( reportPayOut.getId().getEmployeeId() );\r\n\t\t\r\n\t\tfor ( PayStructure payStructure : payStructureHd.getPayStructures() ) {\r\n\t\t\tif ( payStructure.getPayHead().getEarningDeduction() == null ) {\r\n\t\t\t\tPayHead payHead = payHeadService.findPayHeadById( payStructure.getPayHead().getPayHeadId() );\r\n\t\t\t\tpayStructure.setPayHead(payHead); \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t processEarning( payOuts, reportPayOut, util, payRollProcessHDDTO, earningPayStructures, payStructureHd.getPayStructures() , payrollControl );\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t if (earningPayStructures != null && earningPayStructures.size() > 0) {\r\n\t\t\tpayRollProcessHDDTO.setTotalGrossSalary( reportPayOut.getGrossSalary() );\r\n\t\t\tpayOuts.addAll(calcualteDeduction( payRollProcessHDDTO, reportPayOut, payrollControl, payStructureHd ,loanIssues, oneTimeDeductionList ));\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t \r\n\t\t if ( reportPayOut.getGrossSalary() != null ) {\r\n\t\t\t netSalary = reportPayOut.getTotalEarning().subtract( reportPayOut.getTotalDeduction() );\r\n\t\t }\r\n\t\t\r\n\t\t reportPayOut.setNetPayableAmount( netSalary );\r\n\t}", "private List<AccountPortfolio> findNonSecured(Map<String, Double> marketPrice, AccountDetails[] accountDetails) {\n return Arrays.stream(accountDetails)\n .map(p -> {\n double sumPositions = p.getPositions()\n .stream()\n .mapToDouble(x -> x.getQuantity() * marketPrice.get(x.getId()))\n .sum();\n\n return new AccountPortfolio(p.getId(), p.getCreditpolicy(), p.getAmount(), sumPositions);\n })\n .filter(p -> p.getAmount() > p.getEligible_collateral())\n .collect(Collectors.toList());\n }", "public ArrayList<OverdueNotice> createOverdueNotices(){\n ArrayList<OverdueNotice> overdueList = new ArrayList<OverdueNotice>();\n Set<String> patronNames = this.patron.keySet();\n for (String patronName : patronNames){\n ArrayList<Book> books = this.patron.get(patronName).getBooks();\n for (Book book : books){\n if (book.getDueDate() == (this.calendar.getDate()-1)){\n overdueList.add(new OverdueNotice(this.patron.get(patronName),this.calendar.getDate()));\n break;\n }\n }\n }\n return overdueList;\n }", "public void printAllRegionsEarnings() {\n for (int i = 0; i < numRegions; i++) {\n System.out.println(\"The earning of \" + regionList[i].getRegionName() + \" is $\" + regionList[i].calcEarnings());\n } //hey we need to change the double with the good proper formatting\n }", "private static void salariedEmployeeEarningReport(final SalariedEmployee salariedEmployee) {\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\\n\", \"Name\", \"Weekly Pay Amount\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t\tfinal StringBuilder employeeName = new StringBuilder();\r\n\t\temployeeName.append(salariedEmployee.getFirstName()).append(\" \").append(salariedEmployee.getLastName());\r\n\t\tfinal NumberFormat formatter = NumberFormat.getCurrencyInstance();\r\n\t\tSystem.out.format(\"%s\\t\\t\\t%s\", employeeName.toString(), formatter.format(salariedEmployee.getMonthlySalary() / 4));\r\n\t}", "List<TradeItem> getUnhandledAcceptedTrades(long accountId);", "double getTotalProfit();", "private float[] calculateAllGrossPay()\n {\n int numberEmployees = employees.size();\n float[] allGrossPay = new float[numberEmployees];\n int position = 0;\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext())\n {\n myEmployee = emp.next();\n allGrossPay[position] = myEmployee.getHours() * myEmployee.getRate();\n position++;\n }\n return allGrossPay;\n }", "public double earnings()\r\n {\r\n /* write code to return the earnings for a PieceWorker */\r\n return getWage() * getPieces();\r\n }", "public double completeSale(double payment){\n \tsaleInfo.setAmountPaid(payment);\n \tnotifyObservers();\n \tdouble change = saleInfo.getChange();\n Map<ItemDTO, Integer> items = saleInfo.getItems();\n for (Map.Entry<ItemDTO, Integer> entry : items.entrySet()){\n //Doesn't handle case where cashier tries to remove more items than are in stock\n inventory.removeFromStock(entry.getKey().getItemIdentifier(), entry.getValue());\n }\n System.out.println(Printer.printReceipt(saleInfo));\n return change;\n }", "public BigDecimal getEntrustPaid() {\n return entrustPaid;\n }", "List<TradeItem> getDeclinedTrades(long accountId);", "@Test\n void totalPercentageNoOrderLineForThisProduct() {\n allProducts.add(new Product(null, 1, \"productTest\", 10.0, null, null, null,null));\n allOrderLines.add(new OrderLine(new Product(2), null, 2, 10.0));\n\n ArrayList<ProductIncome> productIncomes = productBusiness.computeProductsIncome(allProducts, allOrderLines);\n productIncomes.get(0).calculPercentage();\n assertEquals(0.0, productIncomes.get(0).getPercentage(), 0 );\n }", "@Override\r\n\tpublic boolean isPaid() {\n\t\treturn false;\r\n\t}", "private String marketSellAmounts() {\r\n\t\tint[] amounts= market.getSellAmounts();\r\n\t\tString out = \"Sell Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "@Override\r\n\tpublic Set<Beneficiary> showAllUnapprovedBeneficiaries() {\n\t\treturn bankRepresentativeDAO.getAllBeneficiaryDetails();\r\n\t}", "private Paragraph createTableForOverallUnpaidBillAmount() throws BadElementException {\r\n\t\tCompanyDto companyDto = null;\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tSessionObject<String, CompanyDto> sessionObjectForCompany = Session.getInstance().getSessionObject();\r\n\t\tif (null != sessionObjectForCompany) {\r\n\t\t\tcompanyDto = sessionObjectForCompany.getComponent(Constants.COMPANY_DETAILS);\r\n\t\t}\r\n\t\tParagraph overallAmountParagraph = new Paragraph(\"Overall Amount\", subFont);\r\n\t\tParagraph paragraph = new Paragraph();\r\n\t\taddEmptyLine(paragraph, 2);\r\n\t\tPdfPTable table = new PdfPTable(3);\r\n\r\n\t\tPdfPCell c1 = new PdfPCell(new Phrase(\"Overall Bill\", tableHeaderRowFont));\r\n\t\tc1.setBackgroundColor(GrayColor.LIGHT_GRAY);\r\n\t\tc1.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n\t\ttable.addCell(c1);\r\n\r\n\t\tc1 = new PdfPCell(new Phrase(\"Overall Paid\", tableHeaderRowFont));\r\n\t\tc1.setBackgroundColor(GrayColor.LIGHT_GRAY);\r\n\t\tc1.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n\t\ttable.addCell(c1);\r\n\r\n\t\tc1 = new PdfPCell(new Phrase(\"Overall Balance\", tableHeaderRowFont));\r\n\t\tc1.setBackgroundColor(GrayColor.LIGHT_GRAY);\r\n\t\tc1.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n\t\ttable.addCell(c1);\r\n\r\n\t\ttable.setHeaderRows(1);\r\n\r\n\t\tPdfPCell overallBillValue = new PdfPCell(\r\n\t\t\t\tnew Phrase(Util.getValueUpto2Decimal((float) totalBill), tableDataRowFont));\r\n\t\toverallBillValue.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n\t\tPdfPCell overallPaidValue = new PdfPCell(\r\n\t\t\t\tnew Phrase(Util.getValueUpto2Decimal((float) totalPaid), tableDataRowFont));\r\n\t\toverallPaidValue.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n\t\tPdfPCell overallBalanceValue = new PdfPCell(\r\n\t\t\t\tnew Phrase(Util.getValueUpto2Decimal((float) totalBalance), tableDataRowFont));\r\n\t\toverallBalanceValue.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n\r\n\t\ttable.addCell(\r\n\t\t\t\tIConstants.WHITE_SPACE + companyDto.getBillingCurrency() + overallBillValue.getPhrase().getContent());\r\n\t\ttable.addCell(\r\n\t\t\t\tIConstants.WHITE_SPACE + companyDto.getBillingCurrency() + overallPaidValue.getPhrase().getContent());\r\n\t\ttable.addCell(IConstants.WHITE_SPACE + companyDto.getBillingCurrency()\r\n\t\t\t\t+ overallBalanceValue.getPhrase().getContent());\r\n\r\n\t\toverallAmountParagraph.add(table);\r\n\t\treturn overallAmountParagraph;\r\n\r\n\t}", "private double getExpenditureAmount(long startTimestamp, long endTimestamp) {\n Points p = getTransactions(startTimestamp, endTimestamp);\n if (p.x == -1 && p.y == -1)\n return 0;\n double total = 0;\n for (int i = p.x; i <= p.y; i++) {\n if (transactionList.get(i).transactionType == 0)\n total += transactionList.get(i).transactionAmount;\n }\n return total;\n }", "public boolean getContainsRedeemablePayment() {\n Payment[] payments = getPaymentTransaction().getPaymentsArray();\n for (int index = 0; index < payments.length; index++) {\n if (payments[index] instanceof Redeemable && !(payments[index] instanceof HouseAccount)) {\n return true;\n }\n }\n return false;\n }", "public BigDecimal getEXCLUDE_PROFIT_AMOUNT() {\r\n return EXCLUDE_PROFIT_AMOUNT;\r\n }", "public Collection<Object> findPurchaserSpendMoreMoney(){\n\t\tcheckAdminRole();\n\t\tCollection<Object> res=new ArrayList<Object>();\n\t\tres=purchaserRepository.findPurchaserSpendMoreMoney();\n\t\treturn res;\n\t}", "public BigDecimal getTOTAL_EARNED_PROFIT() {\r\n return TOTAL_EARNED_PROFIT;\r\n }", "@Test\n void totalPercentageNoOrderLine() {\n allProducts.add(new Product(null, 1, \"productTest\", 10.0, null, null, null,null));\n\n ArrayList<ProductIncome> productIncomes = productBusiness.computeProductsIncome(allProducts, allOrderLines);\n productIncomes.get(0).calculPercentage();\n assertEquals(0.0, productIncomes.get(0).getPercentage(), 0 );\n }", "private ListSeries getTodayData() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tdouble number = 0;\n\t\tnumber = controler.getTodaysTransactionSummary();\n\t\tdollarEarning.addData(number);\n\t\t\n\t\treturn dollarEarning;\n\t}", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "public void payAllEmployeers() {\n\t\t\n\t\tSystem.out.println(\"PAYING ALL THE EMPLOYEES:\\n\");\n\t\t\n\t\tfor(AbsStaffMember staffMember: repository.getAllMembers())\n\t\t{\n\t\t\tstaffMember.pay();\n\t\t\tSystem.out.println(\"\\t- \" + staffMember.getName() + \" has been paid a total of \" + staffMember.getTotalPaid());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\");\n\t}", "public void btnShowUnpaid_onClick(View view) {\n setTitle(R.string.title_booklist_unpaid);\n\n mBookingList = mDataSource.getAllBookings();\n ArrayList<Booking> mUnpaidBookings = new ArrayList<>();\n\n for(int i=0;i<mBookingList.size();i++){\n if(mBookingList.get(i).isPaid()==0)\n mUnpaidBookings.add(mBookingList.get(i));\n }\n\n mAdapter = new BookingListAdapter(this, mUnpaidBookings);\n mRV.setAdapter(mAdapter);\n mRV.setLayoutManager(new LinearLayoutManager(this));\n }", "@Test\r\n\tpublic void testCancelAuctionOnAuctionExsistsForNonProfitEqualAuctionDate(){\r\n\t\t\r\n\t\tCalendar c = new Calendar();\t\t\r\n\t\tc.addAuction(new AuctionRequest(d1, t1, myNonProfit.getOrgName()));\t\t\r\n\t\tassertFalse(c.cancelAuction(myNonProfit, myCurrDate, myCurrDate));\r\n\t\t\r\n\t}", "private List<Map<String, Object>> calcProfit(List<Map<String, Object>> revenue,\n List<Map<String, Object>> dep,\n List<Map<String, Object>> maintenance\n ) {\n int index = 0;\n List<Map<String, Object>> profit = new ArrayList<>();\n\n for (Map<String, Object> item : revenue) {\n \n String key = item.get(\"key\")!=null ? item.get(\"key\").toString() : \"\";\n\n HashMap<String, Object> node = new HashMap<>();\n\n double value = (Double) item.get(\"value\");\n if ((value > -0.00001) && (value < 0.00001)) {\n // revenue equals zero, it should be data input error, therefore, profit will be zero too\n node.put(\"value\", 0.0);\n } else {\n // revenue did not equal to zero, let us calculate profit\n if (dep.get(index).get(\"key\") != null) {\n value = value - (Double) dep.get(index).get(\"value\");\n }\n\n if (maintenance.get(index).get(\"key\") != null) {\n value = value - (Double) maintenance.get(index).get(\"value\");\n }\n node.put(\"value\", value);\n }\n\n node.put(\"key\", key);\n profit.add(node);\n index++;\n }\n\n return profit;\n }", "@Test\r\n\tpublic void testCancelAuctionOnAuctionDoesntExistForNonProfit(){\r\n\t\tCalendar c = new Calendar();\t\r\n\t\tassertFalse(c.cancelAuction(myNonProfit, myAuctDateMoreThan2Days, myCurrDate));\t\t\r\n\t}", "public Double getRawGross(java.sql.Timestamp transDate, java.sql.Timestamp eodDate, int storeCode) {\r\n\t\tString query = \"SELECT SUM(i.SELL_PRICE*i.QUANTITY) FROM invoice_item i, invoice o WHERE o.TRANS_DT >= ? AND o.TRANS_DT <= ? AND i.OR_NO = o.OR_NO AND i.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = ?\"\r\n\t\t+ \" AND NOT EXISTS (SELECT 1 FROM INVOICE_SET s WHERE s.OR_NO = o.OR_NO) \";\r\n\t\tPreparedStatement pquery;\r\n\t\tResultSet rs = null;\r\n\t\tDouble dailySale = 0.0d;\r\n\t\ttry {\r\n\t\t\tpquery = Main.getDBManager().getConnection().prepareStatement(query);\r\n\t\t\t\r\n\t\t\tpquery.setTimestamp(1, transDate);\r\n\t\t\tpquery.setTimestamp(2, eodDate);\r\n\t\t\tpquery.setInt(3, storeCode);\r\n\t\t\tlogger.debug(\"TRANS DATE BEFORE\"+transDate.toLocaleString());\r\n\t\t\tlogger.debug(\"TRANS DATE BEFORE\"+eodDate.toLocaleString());\r\n\t\t\t\r\n\t\t\trs = pquery.executeQuery();\r\n\t\t\t\r\n\t\t\twhile(rs.next()){\r\n//\t\t\t\tdouble amount = rs.getDouble(1);\r\n//\t\t\t\tdailySale = amount/getVatRate();\r\n\t\t\t\tdailySale = rs.getDouble(1);\r\n\t\t\t\tlogger.debug(\"Raw Gross BEFORE SUBTRACTION: \"+dailySale);\r\n\t\t\t\t// SUBTRACT all returned items\r\n\t\t\t\tdailySale = dailySale - getDeductibles(transDate, eodDate, storeCode) + getCompletedTransactions(transDate, eodDate, storeCode);\r\n\t\t\t\tlogger.debug(\"Raw Gross AFTER RETURNED SUBTRACTION: \"+dailySale);\r\n\t\t\t\treturn dailySale;\r\n\t\t\t}\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\treturn dailySale;\r\n\r\n\t}", "private void calculateEarnings()\n {\n // get user input\n int items = Integer.parseInt( itemsSoldJTextField.getText() );\n double price = Double.parseDouble( priceJTextField.getText() );\n Integer integerObject = \n ( Integer ) commissionJSpinner.getValue();\n int commissionRate = integerObject.intValue();\n \n // calculate total sales and earnings\n double sales = items * price;\n double earnings = ( sales * commissionRate ) / 100;\n \n // display the results\n DecimalFormat dollars = new DecimalFormat( \"$0.00\" );\n grossSalesJTextField.setText( dollars.format( sales ) );\n earningsJTextField.setText( dollars.format( earnings ) );\n\n }", "@Test\n public void notSell() {\n Game game = Game.getInstance();\n Player player = new Player(\"ED\", 4, 4, 4,\n 4, SolarSystems.GHAVI);\n game.setPlayer(player);\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(2, Goods.Water));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Food));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(0, Goods.Furs));\n CargoItem good = game.getPlayer().getShip().getShipCargo().get(2);\n \n int oldCredits = game.getPlayer().getCredits();\n good.getGood().sell(good.getGood(), 1);\n \n CargoItem water = game.getPlayer().getShip().getShipCargo().get(0);\n CargoItem food = game.getPlayer().getShip().getShipCargo().get(1);\n water.setQuantity(2);\n food.setQuantity(1);\n good.setQuantity(0);\n //int P = good.getGood().getPrice(1);\n int curr = game.getPlayer().getCredits();\n //boolean qn = water.getQuantity() == 2 && food.getQuantity() == 1 && good.getQuantity() == 0;\n boolean check = water.getQuantity() == 2;\n System.out.print(curr);\n assertEquals(curr, oldCredits);\n }", "public BigDecimal getBSCA_ProfitPriceListEntered();", "boolean hasIncomeRange();", "double getTodaysExpenditureAmount() {\n Long time = new Date().getTime();\n Date date = new Date(time - time % (DAY_DURATION));\n return getExpenditureAmount(date.getTime(), date.getTime() + (DAY_DURATION));\n }", "@Test\r\n\tpublic void testCancelAuctionOnAuctionExsistsForNonProfitPastAuctionDate(){\r\n\t\t\r\n\t\tCalendar c = new Calendar();\t\t\r\n\t\tc.addAuction(new AuctionRequest(d1, t1, myNonProfit.getOrgName()));\t\t\r\n\t\tassertFalse(c.cancelAuction(myNonProfit, myAuctDateAfterAuctionDate, myCurrDate));\r\n\t\t\r\n\t}", "public BigDecimal getRealProfit() {\r\n return realProfit;\r\n }", "@Override\n\tpublic List<String> unpaidOnlinePay(List<String> waybillNos) {\n\t\treturn null;\n\t}", "public void getSalary() {\n this.payDay(this.monthlyIncome);\n }", "@Test\r\n\tpublic void testCancelAuctionOnAuctionExsistsForNonProfitLessThan2Days(){\r\n\t\t\r\n\t\tCalendar c = new Calendar();\t\t\r\n\t\tc.addAuction(new AuctionRequest(d1, t1, myNonProfit.getOrgName()));\t\t\r\n\t\tassertFalse(c.cancelAuction(myNonProfit, myAuctDateLessThan2Days, myCurrDate));\r\n\t\t\r\n\t}", "public boolean considerExit() {\n\t\tboolean testing=false; \n//\t\ttesting=world.gui.retailerDetail_table2c.retailer==this;\n\t\tdouble aSumPayRate=0; // the sum of the earnings per effective labor unit, calculated for all the retailer's friends\n\t\tint aFriends=0; // the total number of the agent's friends who are non-retailers\n\t\tfor (Agent friend: owner.friends) {\n\t\t\tif (friend.enterprises.size()==0) {\n\t\t\t\taFriends++;\n\t\t\t\tDouble earnings=0.0;\n\t\t\t\tDouble marketLabor=0.0;\n\t\t\t\tif (friend.earned!=null) {\n\t\t\t\t\tfor (int i=0; i<friend.earned.length; i++) {\n\t\t\t\t\t\tif (friend.earned[i]>0) {\n\t\t\t\t\t\t\tearnings=earnings+friend.earned[i]; // Add up everything the friend earned\n\t\t\t\t\t\t\tmarketLabor=marketLabor+Math.max(0, friend.labor.labor[i]-friend.cons.used[i]); // Add up market labor, i.e., labor on goods he sold, minus the amounts he consumed\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (marketLabor>0) aSumPayRate=aSumPayRate+earnings/marketLabor;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tDouble aAvgPayRate=aSumPayRate/aFriends;\n\t\tif (testing==true) System.out.println(\"TESTING Retailer.considerExit(). Retailer id=\"+id+\". aAvgPayRate=\"+aAvgPayRate);\n\t\tif (dividendHistory.size()>3) {\n\t\t\tdouble ownEarnings3Turns=0;\n\t\t\tfor (int i=0; i<3; i++) {\n\t\t\t\tint turn=dividendHistory.size()-1-i;\n\t\t\t\tdouble dividend=dividendHistory.get(turn);\n\t\t\t\tdouble capValue=cashHistory.get(turn)+basePrice*inventoryHistory.get(turn);\n\t\t\t\tdouble prevCapValue=cashHistory.get(turn-1)+basePrice*inventoryHistory.get(turn-1);\n\t\t\t\tdouble earnings=dividend+capValue-prevCapValue;\n\t\t\t\townEarnings3Turns=ownEarnings3Turns+earnings;\n\t\t\t}\n\t\t\tDouble ownPayRate=ownEarnings3Turns/3;\n\t\t\tDouble logOwnPayRate=Double.NEGATIVE_INFINITY;\n\t\t\tif (ownPayRate>0) logOwnPayRate=Math.log(ownPayRate);\n\t\t\tDouble logAvgPayRate=Math.log(aAvgPayRate);\n\t\t\tDouble increment=0.5+0.5*logAvgPayRate-0.5*logOwnPayRate;\n\t\t\tif (increment.isNaN()) increment=0.0;\n\t\t\tif (increment>world.MAX_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_LOW_PAY) \n\t\t\t\tincrement=world.MAX_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_LOW_PAY;\n\t\t\tif (increment<world.MIN_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_HIGH_PAY) \n\t\t\t\tincrement=world.MIN_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_HIGH_PAY;\n\t\t\toddsOfExit=oddsOfExit+increment;\n\t\t\tif (testing==true) System.out.println(\"TESTING Retailer.considerExit(). Retailer id=\"+id+\". ownPayRate=\"+ownPayRate);\n\t\t}\n\t\t// If the retailer has been out of inventory for three turns or more, \n\t\t// the likelihood of the retailer quitting rises by RETAILER_EXIT_PROB_INCREMENT_DUE_TO_NO_SALES\n\t\tif (incomeHistory.size()>3) {\n\t\t\tboolean threeTurnsNegligibleSales=true;\n\t\t\tfor (int i=0; i<3; i++) {\n\t\t\t\tDouble income=incomeHistory.get(incomeHistory.size()-1-i);\n\t\t\t\tif (income>0.0001) threeTurnsNegligibleSales=false;\n\t\t\t}\n\t\t\tif (threeTurnsNegligibleSales) oddsOfExit=oddsOfExit+world.RETAILER_EXIT_PROB_INCREMENT_DUE_TO_NO_SALES;\t\t\t\n\t\t}\n\t\tif (testing) System.out.println(\"oddsOfExit=\"+oddsOfExit);\n\t\tif (oddsOfExit<world.MIN_RETAILER_EXIT_PROB) oddsOfExit=world.MIN_RETAILER_EXIT_PROB;\n\t\tif (oddsOfExit>world.MAX_RETAILER_EXIT_PROB) oddsOfExit=world.MAX_RETAILER_EXIT_PROB; // Maximum 50% odds of exit based on lower earnings\n\t\tboolean exit=Math.random()<oddsOfExit;\n\t\tif (exit) exit();\n\t\treturn exit;\n\t}", "@Override\r\n\tpublic List<ExemptTeamMember> getReviewOfPastYearDetails(String clockNumber, String currentYear) {\n\t\treturn exemptTeamMemberDAO.getReviewOfPastYearDetails(clockNumber, currentYear);\r\n\t}", "@Test(expected=MissingPrice.class)\n\tpublic void testNotEnoughBought() {\n\t\tpos.setPricing(\"A\", 4, 7);\n\n\t\tpos.scan(\"A\");\n\t\tpos.total();\n\t}", "boolean hasExchangeprice();", "public void setEXCLUDE_PROFIT_AMOUNT(BigDecimal EXCLUDE_PROFIT_AMOUNT) {\r\n this.EXCLUDE_PROFIT_AMOUNT = EXCLUDE_PROFIT_AMOUNT;\r\n }", "public void initSalarys() {\n\t\tList ls = departmentServiceImpl.findAll(Employees.class);\n\t\temployeesList = ls;\n\t\temployeesList = employeesList.stream().filter(fdet -> \"0\".equalsIgnoreCase(fdet.getActive()))\n\t\t\t\t.collect(Collectors.toList());\n\t\ttotalSalary = new BigDecimal(0);\n\t\ttotalSalaryAfter = new BigDecimal(0);\n\n\t\tif (conId != null) {\n\t\t\temployeesList = new ArrayList<Employees>();\n\t\t\tcon = new Contracts();\n\t\t\tcon = (Contracts) departmentServiceImpl.findEntityById(Contracts.class, conId);\n\t\t\tList<ContractsEmployees> empIds = departmentServiceImpl.loadEmpByContractId(conId);\n\t\t\tfor (ContractsEmployees id : empIds) {\n\t\t\t\tEmployees emp = (Employees) departmentServiceImpl.findEntityById(Employees.class, id.getEmpId());\n\t\t\t\temployeesList.add(emp);\n\t\t\t\temployeesList = employeesList.stream().filter(fdet -> \"0\".equalsIgnoreCase(fdet.getActive()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t}\n\n\t\t}\n\n\t\tif (enterpriseAdd != null && enterpriseAdd.size() > 0) {\n\t\t\tList<Employees> empAllList = new ArrayList<>();\n\t\t\tfor (String entId : enterpriseAdd) {\n\t\t\t\t// enterpriseId = Integer.parseInt(entId);\n\t\t\t\tList<Employees> empList = employeesList.stream()\n\t\t\t\t\t\t.filter(fdet -> fdet.getEnterpriseId().equals(Integer.parseInt(entId)))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tif (empList != null && empList.size() > 0) {\n\t\t\t\t\tempAllList.addAll(empList);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\temployeesList = empAllList;\n\t\t}\n\n//\t\tif (employeesList != null && employeesList.size() > 0) {\n//\t\t\tlistTotalSum = employeesList.stream().filter(fdet -> fdet.getSalary() != 0.0d)\n//\t\t\t\t\t.mapToDouble(fdet -> fdet.getSalary()).sum();\n//\t\t\ttotalSalary = new BigDecimal(listTotalSum).setScale(3, RoundingMode.HALF_UP);\n\t\t// totalSalaryAfter = totalSalary;\n//\t\t\tSystem.out.println(\"\" + totalSalary);\n//\n//\t\t}\n\t\tif (con != null) {\n\t\t\tloadSalaries();\n\t\t}\n\n//\t\tls = departmentServiceImpl.findAll(Enterprise.class);\n//\t\tenterpriseList = ls;\n\t}", "@Override \r\npublic double earnings() { \r\n\t return getWage() * getPieces(); \r\n}", "public double getTotalSalesProfit(){\n return totalSaleProfit;\n }", "public double getAmountEarned(){\r\n return getSalary() + getBonus() + getCommission() * getNumSales();\r\n }", "List<MonthlyExpenses> lastMonthExpenses();", "@Test\n\tpublic void negativeNumYrs() {\n\t\tWebElement new_page = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\tdouble dwnpymnt = Double.valueOf(new_page.findElement(By.name(\"downpayment\")).getAttribute(\"value\"));\n\t\tdouble interest = Double.valueOf(new_page.findElement(By.name(\"interest\")).getAttribute(\"value\"));\n\t\t\n\t\t// modify year to a negative integer\n\t\tint year = -5;\n\t\tnew_page.findElement(By.name(\"year\")).clear();\n\t\tnew_page.findElement(By.name(\"year\")).sendKeys(\"-5\");\n\t\t\n\t\tdouble price_tax = Double.valueOf(new_page.findElement(By.name(\"price_with_taxes\")).getAttribute(\"value\"));\n\t\t\n\t\tdouble price_interest = priceWithInterest(price_tax, dwnpymnt, interest, year);\n\t\tint nMnths = numMonths(year);\n\t\tdouble ttl = totalPrice(price_interest, dwnpymnt);\n\t\tdouble ttl_per_mnth = totalPricePerMonth(price_interest, nMnths);\n\t\t\n\t\t// click calculate button\n\t\tnew_page.findElement(By.name(\"calculate_payment_button\")).click();\n\t\twait(2);\n\t\t\n\t\tWebElement solutions = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\tDecimalFormat twoDForm = new DecimalFormat(\"#.##\");\n\t\t\n\t\tassertEquals(Double.valueOf(twoDForm.format(dwnpymnt)), Double.valueOf(solutions.findElement(By.id(\"total_downpayment\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl_per_mnth)), Double.valueOf(solutions.findElement(By.id(\"total_price_per_month\")).getAttribute(\"value\")));\n\t\tassertEquals(Integer.valueOf(nMnths), Integer.valueOf(solutions.findElement(By.id(\"n_of_months\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl)), Double.valueOf(solutions.findElement(By.id(\"total_price\")).getAttribute(\"value\")));\n\t}", "public Double getRawGross(int month, int day, int year, int storeCode, int...hour ) {\r\n//\t\tString query = \"SELECT SUM(IF(o.RETURN=0,i.SELL_PRICE*i.QUANTITY,p.AMT)) FROM invoice_item i, invoice o, payment_item p WHERE MONTH (o.TRANS_DT) = '\"+month+\"' && YEAR(o.TRANS_DT) = '\"+year+\"' && DAY(o.TRANS_DT) = '\"+day+\"' AND i.OR_NO = o.OR_NO AND p.OR_NO = o.OR_NO AND p.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\";\r\n\t\tString query = \"SELECT SUM(i.SELL_PRICE*i.QUANTITY) FROM invoice_item i, invoice o WHERE MONTH (o.TRANS_DT) = '\"+month+\"' && YEAR(o.TRANS_DT) = '\"+year+\"' && DAY(o.TRANS_DT) = '\"+day+\"' AND i.OR_NO = o.OR_NO AND i.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\"\r\n\t\t + \" AND NOT EXISTS (SELECT 1 FROM INVOICE_SET s WHERE s.OR_NO = o.OR_NO) \";\r\n\t\t\r\n\t\tif (hour.length > 0) {\r\n\t\t\tquery += \" AND HOUR(o.TRANS_DT) = \" + hour[0];\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"RAW GROSS QUERY = \" + query);\r\n\t\t\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n//\t\tResultSet rs = Main.getDBManager().executeQuery(\"SELECT sum(p.AMT) from payment_item p WHERE MONTH (p.TRANS_DT) = '\"+month+\"' && YEAR(p.TRANS_DT) = '\"+year+\"' && DAY(p.TRANS_DT) = '\"+day+\"' AND p.STORE_CODE = '\"+storeCode+\"'\");\r\n\t\tDouble dailySale = 0.0d;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n//\t\t\t\tdouble amount = rs.getDouble(1);\r\n//\t\t\t\tdailySale = amount/getVatRate();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tdailySale = rs.getDouble(1);\r\n\t\t\t\tlogger.debug(\"Raw Gross BEFORE SUBTRACTION: \"+dailySale);\r\n\t\t\t\t\r\n\t\t\t\tdailySale = dailySale - getDeductibles(month, day, year, storeCode) + getCompletedTransactions(month, day, year, storeCode);\r\n\t\t\t\tlogger.debug(\"Raw Gross AFTER SUBTRACTION: \"+dailySale);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n//\t\tdailySale = dailySale - getDeductibles(month, day, year, storeCode) + getCompletedTransactions(month, day, year, storeCode);\r\n\t\tlogger.debug(\"Raw Gross: \"+dailySale);\r\n\t\treturn dailySale;\r\n\t}", "public BigDecimal getSumOfOutstanding(){\n\t\t BigDecimal a = new BigDecimal(0);\r\n//\t\t int outstandingIndex = 0;\r\n//\t\t for (int i=0 ; i<mColumnNames.length ; i++){\r\n//\t\t\t if (mColumnNames[i].equals(DBService.OUTSTANDING)){\r\n//\t\t\t\t outstandingIndex = i;\r\n//\t\t\t\t break;\r\n//\t\t\t }\r\n//\t\t }\r\n\t\t \r\n\t\t for (int i=0 ; i<getRowCount() ; i++){\r\n\t\t\t float value = (Float)getValueAt(i, 11);\r\n\t\t\t \r\n\t\t\t if (value != 0){\r\n\t\t\t\t BigDecimal b = new BigDecimal(value);\r\n\t\t\t\t a = a.add(b);\r\n\t\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t return a;\r\n\t }", "void calculateReceivableByUIComponent() throws Exception{\t\t\n\t\tdouble receivableAmt = ConvertUtil.convertCTextToNumber(txtDueAmount).doubleValue();\t\n\t\tdouble receiveAmt = chkPayall.isSelected()?ConvertUtil.convertCTextToNumber(txtDueAmount).doubleValue()\n\t\t\t\t:ConvertUtil.convertCTextToNumber(txtReceiptAmount).doubleValue();\n\t\tdouble bfAmt = ConvertUtil.convertCTextToNumber(txtCustomerBF).doubleValue();\n\t\tdouble paidAmt = ConvertUtil.convertCTextToNumber(txtPaidAmount).doubleValue(); \n\t\tdouble cfAmt = bfAmt + receivableAmt - receiveAmt - paidAmt;\t\t\n\t\ttxtReceiptAmount.setText(SystemConfiguration.decfm.format(receiveAmt));\n\t\ttxtCustomerCfAmount.setText(SystemConfiguration.decfm.format(cfAmt));\t\n\t\ttxtReceiptAmount.selectAll();\n\t}", "public ObjectList getList(){\n return payroll;\n }", "@Test\n public void testNotEnoughCash() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // trying to pay for a sale with insufficient funds\n assertEquals(-1, shop.receiveCashPayment(saleId, toBePaid-1), 0.001);\n\n // verify sale did not change state to PAID/COMPLETED\n assertFalse(isTransactionInAccountBook(saleId));\n\n // verify system's balance did not change\n assertEquals(totalBalance, shop.computeBalance(), 0.001);\n }", "@Override\n\tpublic List<Article> getNotReviewed() {\n\t\treturn articleRepository.findArticleForReviewByProfessions();\n\t}", "@Override\n public void newSale(double payment) {\n calculateTotalRevenue(payment);\n showTotalRevenue();\n }", "public void newFund(int year, int order, long yourCoins, long partnerCoins) {\n /* Do nothing */\n }", "public NM getPsl27_DaysWithoutBilling() { \r\n\t\tNM retVal = this.getTypedField(27, 0);\r\n\t\treturn retVal;\r\n }", "public void removeExpiredAuctions(){\r\n ArrayList <String> expiredAuction = new ArrayList <String>(super.size());\r\n for(String expiredKey: keySet()){\r\n if(getAuction(expiredKey).getTimeRemaining() == 0){\r\n expiredAuction.add(expiredKey);\r\n }\r\n } \r\n for(String expiredKey: expiredAuction){\r\n super.remove(expiredKey);\r\n }\r\n }", "public List getUserUnpaidHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n criteria.add(Expression.eq(\"type\", \"Unpaid\"));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }", "public double getProfit() {\n\n\n double difference = maxRange * GAS_RATE;\n double sum = super.getProfit();\n\n return sum - difference;\n\n }", "private ArrayList<TY_SaleEligibleItems> processTentativeSellItems(ArrayList<TY_SaleEligibleItems> probableItems, TY_SCTxn_Summary txnSummary)\n\t{\n\n\t\tint currQty = 0;\n\t\tint qtytaxable = 0;\n\n\t\tArrayList<TY_SaleEligibleItems> sellItems = new ArrayList<TY_SaleEligibleItems>();\n\n\t\tArrayList<TY_SaleEligibleItems> taxFreeItems = null;\n\n\t\tArrayList<TY_SaleEligibleItems> taxNotFreeItems = null;\n\n\t\tArrayList<TY_SaleEligibleItems> taxNotFreeItemsSorted = null;\n\n\t\ttaxFreeItems = probableItems.stream().filter(x -> x.getDaysDiff() >= baseConfig.getNumDays_LTCG())\n\t\t .collect(Collectors.toCollection(ArrayList::new));\n\n\t\ttaxNotFreeItems = probableItems.stream().filter(x -> x.getDaysDiff() < baseConfig.getNumDays_LTCG())\n\t\t .collect(Collectors.toCollection(ArrayList::new));\n\n\t\t/*\n\t\t * Get the sum of tax free quantities that can be sold off w/o any tax obligation\n\t\t */\n\t\tif (taxFreeItems != null)\n\t\t{\n\t\t\tif (taxFreeItems.size() > 0)\n\t\t\t{\n\n\t\t\t\tcurrQty += taxFreeItems.stream().mapToInt(x -> x.getQtytoSell()).sum();\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Check if we need any more quantities to pull in from Taxable quantities to complete Sell Order\n\t\t */\n\t\tif (currQty > 0)\n\t\t{\n\t\t\tqtytaxable = txnSummary.getTotalQty() - currQty;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tqtytaxable = txnSummary.getTotalQty();\n\t\t}\n\n\t\tif (qtytaxable > 0)\n\t\t{\n\t\t\t// Add tax free quantities to Final Sell Quantities\n\t\t\tsellItems.addAll(taxFreeItems);\n\n\t\t\tComparator<TY_SaleEligibleItems> byDiffDays = (e1, e2) -> Integer.compare(e1.getDaysDiff(), e2.getDaysDiff());\n\t\t\t// Sort Non Tax Free items in ascending order by DaysDiff to LTCG\n\t\t\ttaxNotFreeItemsSorted = taxNotFreeItems.stream().sorted(byDiffDays).collect(Collectors.toCollection(ArrayList::new));\n\n\t\t\tint idx = 0;\n\t\t\twhile (qtytaxable != 0)\n\t\t\t{\n\n\t\t\t\tif (qtytaxable > taxNotFreeItemsSorted.get(idx).getQtytoSell())\n\t\t\t\t{\n\t\t\t\t\tqtytaxable -= taxNotFreeItemsSorted.get(idx).getQtytoSell();\n\t\t\t\t\tsellItems.add(taxNotFreeItemsSorted.get(idx));\n\n\t\t\t\t}\n\n\t\t\t\telse\n\t\t\t\t{\n\n\t\t\t\t\tsellItems.add(new TY_SaleEligibleItems(taxNotFreeItemsSorted.get(idx).getPosItemNo(),\n\t\t\t\t\t taxNotFreeItemsSorted.get(idx).getDaysDiff(), qtytaxable, 0));\n\t\t\t\t\tqtytaxable = 0;\n\t\t\t\t}\n\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t}\n\t\telse // Sufficient Quantities available as Non Taxable only - Utilize them\n\t\t{\n\t\t\tint curr_Qty = 0, sumQty = 0;\n\n\t\t\tboolean furtherLoop = true;\n\n\t\t\tfor ( int idx = 0; idx <= taxFreeItems.size(); idx++ )\n\t\t\t{\n\t\t\t\tif (furtherLoop)\n\t\t\t\t{\n\t\t\t\t\tcurr_Qty += taxFreeItems.get(idx).getQtytoSell();\n\n\t\t\t\t\tif (curr_Qty <= txnSummary.getTotalQty())\n\t\t\t\t\t{\n\t\t\t\t\t\tsellItems.add(taxFreeItems.get(idx));\n\t\t\t\t\t\tsumQty += taxFreeItems.get(idx).getQtytoSell();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tint numSell = txnSummary.getTotalQty() - sumQty;\n\t\t\t\t\t\tsellItems.add(new TY_SaleEligibleItems(taxFreeItems.get(idx).getPosItemNo(), taxFreeItems.get(idx).getDaysDiff(),\n\t\t\t\t\t\t numSell, 0));\n\n\t\t\t\t\t\tfurtherLoop = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn sellItems;\n\n\t}", "public double getUnpaidBalance() \r\n\t{\r\n\t\t\r\n\t\treturn unpaidBalance;\r\n\t\t\r\n\t}", "private Collection<ProductAmountTO> removeUnavailableProducts(\n\t\t\tCollection<ProductAmountTO> requiredProductAmounts,\n\t\t\tHashtable<Store, Collection<StockItem>> storeStockItems) {\n\t\t\n\t\tCollection<ProductAmountTO> foundProductAmounts = new ArrayList<ProductAmountTO>();\n\t\t\n\t\tIterator<ProductAmountTO> requiredProductAmountsIterator = requiredProductAmounts.iterator();\n\t\twhile(requiredProductAmountsIterator.hasNext()) {\n\t\t\tProductAmountTO currentProductAmountTO = requiredProductAmountsIterator.next();\n\t\t\t\n\t\t\tIterator<Collection<StockItem>> storeStockItemCollectionsIterator = storeStockItems.values().iterator();\n\t\t\twhile(storeStockItemCollectionsIterator.hasNext()) { //iterate over stock of stores\n\t\t\t\tCollection<StockItem> currentStockItemCollection = storeStockItemCollectionsIterator.next();\n\t\t\t\t\n\t\t\t\tStockItem stockItem =\n\t\t\t\t\tsearchForProductOffered(currentStockItemCollection, currentProductAmountTO);\n\t\t\t\tif (stockItem != null && currentStockItemCollection.contains(stockItem)) {\n\t\t\t\t\tfoundProductAmounts.add(currentProductAmountTO);\n\t\t\t\t} else {\n\t\t\t\t\t//TODO: remove debug:\n//\t\t\t\t\tSystem.out.println(\"KK: NOT found\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//no need to search for the same product at other stores: found --> available\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn foundProductAmounts;\n\t}", "public Criteria andFreightPriceNotEqualToColumn(LitemallOrder.Column column) {\n addCriterion(new StringBuilder(\"freight_price <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }" ]
[ "0.62775844", "0.603326", "0.59390545", "0.58572334", "0.58474296", "0.5637213", "0.5629337", "0.5577645", "0.55577236", "0.54193693", "0.5381246", "0.5320783", "0.52873427", "0.5249083", "0.524592", "0.52296597", "0.51790327", "0.51768637", "0.5163349", "0.51588684", "0.5156955", "0.51558733", "0.51505303", "0.5144961", "0.5117406", "0.5117297", "0.5111095", "0.510751", "0.5100003", "0.50854045", "0.5068659", "0.50606537", "0.5059212", "0.50527304", "0.5047311", "0.5033764", "0.5030134", "0.5013473", "0.4998161", "0.49913093", "0.49842387", "0.49802142", "0.49747413", "0.49736592", "0.49624795", "0.49552134", "0.49419284", "0.49385095", "0.4936138", "0.49216634", "0.4917882", "0.4916061", "0.49156725", "0.4896419", "0.48945686", "0.48890793", "0.48802853", "0.48665124", "0.4861325", "0.48611283", "0.48473382", "0.48185372", "0.48153946", "0.48138645", "0.48134294", "0.4809111", "0.47998992", "0.47955844", "0.47931254", "0.47906607", "0.47797242", "0.4777301", "0.4774368", "0.47682264", "0.47606558", "0.475284", "0.4752362", "0.47514302", "0.47450525", "0.4744149", "0.4738277", "0.473078", "0.4730057", "0.4729932", "0.4719168", "0.47165966", "0.47146842", "0.4709127", "0.4708176", "0.47012085", "0.46935198", "0.46914318", "0.4691025", "0.46883512", "0.46865833", "0.46808848", "0.4678608", "0.46741718", "0.46721172", "0.46717653", "0.4669232" ]
0.0
-1
Get a database connection.
public void getConnection() throws RtpException { /* Create the database connection */ try { conn = Connector.connect(cInfo, credentials, null); } catch (RtpException rtpe) { throw rtpe; } catch (Exception e) { throw new RtpException("Database Connection has failed for:" + cInfo.toString(), e); } log.info("Database Connected Successfully. ID: {}", conn.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Connection getConnection()\n {\n if (ds == null) {\n try {\n initCtx = new InitialContext();\n envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n ds = (DataSource) envCtx.lookup(dbName);\n }\n catch (javax.naming.NamingException e) {\n Logger.log(Logger.ERROR, \"A problem occurred while retrieving a DataSource object\");\n Logger.log(Logger.ERROR, e.toString());\n }\n }\n\n Connection dbCon = null;\n try {\n dbCon = ds.getConnection();\n }\n catch (java.sql.SQLException e) {\n Logger.log(Logger.ERROR, \"A problem occurred while connecting to the database.\");\n Logger.log(Logger.ERROR, e.toString());\n }\n return dbCon;\n }", "private Connection getDBConnection() {\n\n\t\tConnection dbConnection = null;\n\n\t\ttry {\n\n\t\t\tClass.forName(dbDriver);\n\n\t\t} catch (ClassNotFoundException e) {\n\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t}\n\n\t\ttry {\n\n\t\t\tdbConnection = DriverManager.getConnection(dbConnectionURL, dbUser, dbPassword);\n\t\t\treturn dbConnection;\n\n\t\t} catch (SQLException e) {\n\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t}\n\n\t\treturn dbConnection;\n\n\t}", "public Connection getConnection() {\n if(connection == null) throw new RuntimeException(\"Attempt to get database connection before it was initialized\");\n return connection;\n }", "public Connection getConnection() throws SQLException {\n\t\treturn Database.getConnection();\n\t}", "public static DatabaseConnection getDb() {\n return db;\n }", "public Connection getConnection() {\n try {\n return ds.getConnection();\n } catch (SQLException e) {\n System.err.println(\"Error while connecting to database: \" + e.toString());\n }\n return null;\n }", "public static Connection getDbConnection() throws SQLException {\n return getDbConnection(FxContext.get().getDivisionId());\n }", "public static Connection getConnection() {\n\t\ttry {\n\t\t\treturn DBUtil.getInstance().ds.getConnection();\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 null;\n\n\t}", "public DatabaseConnection getDatabaseConnection() {\n return query.getDatabaseConnection();\n }", "private static Connection getDBConnection() {\n\n\t\tConnection dbConnection = null;\n\n\t\ttry {\n\n\t\t\tClass.forName(DB_DRIVER);\n\n\t\t} catch (ClassNotFoundException e) {\n\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t}\n\n\t\ttry {\n\n\t\t\tdbConnection = DriverManager.getConnection(DB_CONNECTION, DB_USER,\n\t\t\t\t\tDB_PASSWORD);\n\t\t\treturn dbConnection;\n\n\t\t} catch (SQLException e) {\n\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t}\n\n\t\treturn dbConnection;\n\n\t}", "public Connection getConnection() {\n try {\n return DriverManager.getConnection(\"jdbc:sqlite:\" + dbName);\n } catch (SQLException e) {\n return null;\n }\n }", "public IDatabaseConnection getConnection() {\n try {\n DatabaseConnection databaseConnection = new DatabaseConnection(getDataSource().getConnection());\n editConfig(databaseConnection.getConfig());\n return databaseConnection;\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public static Connection GetConnection() throws SQLException {\n return connectionPool.getConnection();\n }", "public static Connection getConnection() {\n\t\t\n\t\treturn conn;\n\t}", "public static Connection getConnectionToDB() {\n\t\tProperties properties = getProperties();\n\n\t\ttry {\n\t\t\tmyConnection = DriverManager.getConnection(JDBC_URL, properties);\n\t\t\treturn myConnection;\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public Connection getDBConnection() {\n Connection con = connectDB();\n createTables(con);\n return con;\n }", "public static Connection getConnection() {\n\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = getConnectionPool().getConnection();\n\t\t} catch (Exception e) {\n\n\t\t\tthrow new SystemException(\"Getting Connection from DB Connection Pool\",e,SystemCode.UNABLE_TO_EXECUTE);\n\t\t}\n\t\treturn conn;\n\n\t}", "public Connection getDBConnection()\r\n {\r\n Connection conn = null;\r\n try\r\n {\r\n // Quitamos los drivers\r\n Enumeration e = DriverManager.getDrivers();\r\n while (e.hasMoreElements())\r\n {\r\n DriverManager.deregisterDriver((Driver) e.nextElement());\r\n }\r\n DriverManager.registerDriver(new com.geopista.sql.GEOPISTADriver());\r\n String sConn = aplicacion.getString(UserPreferenceConstants.LOCALGIS_DATABASE_URL);\r\n conn = DriverManager.getConnection(sConn);\r\n AppContext app = (AppContext) AppContext.getApplicationContext();\r\n conn = app.getConnection();\r\n conn.setAutoCommit(false);\r\n } catch (Exception e)\r\n {\r\n return null;\r\n }\r\n return conn;\r\n }", "public static Connection getConnection() throws SQLException {\n\t\t// Create a connection reference var\n\t\tConnection con = null;\n\n\t\t// Int. driver obj from our dependency, connect w/ JDBC\n\t\tDriver postgresDriver = new Driver();\n\t\tDriverManager.registerDriver(postgresDriver);\n\n\t\t// Get database location/credentials from environmental variables\n\t\tString url = System.getenv(\"db_url\");\n\t\tString username = System.getenv(\"db_username\");\n\t\tString password = System.getenv(\"db_password\");\n\t\t\n\t\t// Connect to db and assign to con var.\n\t\tcon = DriverManager.getConnection(url, username, password);\n\n\t\t// Return con, allowing calling class/method etc to use the connection\n\t\treturn con;\n\t}", "public Connection connection()\n {\n String host = main.getConfig().getString(\"db.host\");\n int port = main.getConfig().getInt(\"db.port\");\n String user = main.getConfig().getString(\"db.user\");\n String password = main.getConfig().getString(\"db.password\");\n String db = main.getConfig().getString(\"db.db\");\n\n MysqlDataSource dataSource = new MysqlDataSource();\n dataSource.setServerName(host);\n dataSource.setPort(port);\n dataSource.setUser(user);\n if (password != null ) dataSource.setPassword(password);\n dataSource.setDatabaseName(db);\n Connection connection = null;\n try\n {\n connection = dataSource.getConnection();\n }\n catch (SQLException sqlException)\n {\n sqlException.printStackTrace();\n }\n return connection;\n }", "public Connection getConnection(){\n try{\n if(connection == null || connection.isClosed()){\n connection = FabricaDeConexao.getConnection();\n return connection;\n } else return connection;\n } catch (SQLException e){throw new RuntimeException(e);}\n }", "public static Connection getDBInstance() {\r\n\t\tif (db == null)\r\n\t\t\ttry {\r\n\t\t\t\tloadDBDriver();\r\n\t\t\t\tdb = DriverManager.getConnection(url, user, password);\r\n\t\t\t} catch (SQLException 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\treturn db;\r\n\t}", "public static Connection getConnection() {\n \t\treturn connPool.getConnection();\n \t}", "public Connection getConnection() {\n if (con == null) {\n try {\n con = DriverManager.getConnection(url, user, password);\n return con;\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n }\n }\n\n return con;\n }", "public static Connection getConnection() {\n return singleInstance.createConnection();\n }", "private Connection getConnection() {\n\t\tlog.debug(\"getConnection start\");\n\t\tif (con != null)\n\t\t\treturn con;\n\t\tString url = \"jdbc:mysql://localhost:3306/\" + db;\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\t\t\tlog.debug(\"getConnection obtained driver\");\n\t\t\tcon = DriverManager.getConnection(url, user, password);\n\t\t\tlog.debug(\"getConnection got connection\");\n\t\t} catch (Exception ex) {\n\t\t\tlog.error(\"getConnection: error:\" + ex.getMessage(), ex);\n\t\t\treturn null;\n\t\t}\n\t\treturn con;\n\t}", "public static Connection getConnection() {\r\n\t\tsetProperties();\r\n\t\tConnection connection = null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tconnection = (Connection) DriverManager.getConnection(DBURL,\r\n\t\t\t\t\tproperties);\r\n//\t\t\tSystem.err.println(\"Connection Established\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"connection Not Established\");\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t}\r\n\t\treturn connection;\r\n\t}", "private Connection getDBConnection(){\n\t\tConnection conn = null;\n\t\t\t\t\n\t\ttry{\n\t\t\t\t// name of the database\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\t\t} catch(ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\t\t\n\t\ttry{\n\t\t\t// type of the database file\n\t\t\tString url = \"jdbc:sqlite:vehicles.sqlite\";\n\t\t\tconn = DriverManager.getConnection(url);\n\t\t}catch(SQLException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn conn;\n\t}", "public Connection getConexao() {\t\n\t\ttry {\n\t\t\t\n\t\t\tif (this.conn!=null) {\n\t\t\t\treturn this.conn;\n\t\t\t}\n\t\t\t\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/\"+this.db,this.user,this.pass);\n\t\t\t\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn this.conn;\n\t}", "public static MyConnection getConnection() throws SQLException{\n\t\treturn MyConnection.getConnection();\n\t}", "public static Connection getConnection() {\r\n\r\n\t\tConfigLoader loader = new ConfigLoader();\r\n\t\tProperties properties = null;\r\n\t\t;\r\n\t\ttry {\r\n\t\t\tproperties = loader.loadConfigurations();\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(e.getStackTrace().toString());\r\n\t\t}\r\n\t\tConnection connection = null;\r\n\t\ttry {\r\n\t\t\tString url = properties.getProperty(\"hsqldb.url\");\r\n\t\t\tString user = properties.getProperty(\"hsqldb.user\");\r\n\t\t\tString password = properties.getProperty(\"hsqldb.password\");\r\n\t\t\tlogger.info(\"Connecting to hsqlDB with db:\" + url);\r\n\t\t\tconnection = DriverManager.getConnection(url, user, password);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(e.getStackTrace().toString());\r\n\t\t}\r\n\t\treturn connection;\r\n\t}", "public static Connection getConnection() {\r\n\t\tConnection conn = null;\r\n\t\ttry {\r\n\t\t\tClass.forName(DB_DRIVER);\r\n\t\t\tconn = DriverManager.getConnection(DRIVER_URL, DB_USERNAME,\r\n\t\t\t\t\tDB_PASSWORD);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn conn;\r\n\t}", "public Connection getConnection() {\r\n\tConnection result = null;\r\n\tif (isConnected()) {\r\n\t result = conn;\r\n\t}\r\n\treturn result;\r\n }", "public Connection getConnection() {\n\t\t\tConnection conn = null;\n\t\t\tProperties prop = new Properties();\n\n\t\t\ttry {\n\t\t\t\tString url = \"jdbc:postgresql://java2010rev.cfqzgdfohgof.us-east-2.rds.amazonaws.com:5432/postgres?currentSchema=jensquared\";\n\t\t\t\tString username = \"jenny77\";\n\t\t\t\tString password = \"zeus1418\";\n//\t\t\t\tClassLoader loader = Thread.currentThread().getContextClassLoader();\n//\t prop.load(loader.getResourceAsStream(\"database.properties\"));\n//\t\t\t\tconn = DriverManager.getConnection(prop.getProperty(\"url\"),\n//\t\t\t\t\t\tprop.getProperty(\"username\"),prop.getProperty(\"password\"));\n\t\t\t\tconn = DriverManager.getConnection(url, username, password);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n//\t\t\t} catch (FileNotFoundException e) {\n//\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\te.printStackTrace();\n//\t\t\t} catch (IOException e) {\n//\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn conn;\n\t\t}", "public final Connection getConnection() throws SQLException {\n\t\tString[] threadCredentials = (String[]) this.threadBoundCredentials.get();\n\t\tif (threadCredentials != null) {\n\t\t\treturn doGetConnection(threadCredentials[0], threadCredentials[1]);\n\t\t}\n\t\telse {\n\t\t\treturn doGetConnection(this.username, this.password);\n\t\t}\n\t}", "public static DbConnection getInstance() {\n if (!DbConnectionHolder.INSTANCE.isInitialized.get()) {\n synchronized (lock) {\n DbConnectionHolder.INSTANCE.initialize();\n }\n }\n return DbConnectionHolder.INSTANCE;\n }", "private Connection getConnection() {\n Connection conn = null;\n\n // Force the class loader to load the JDBC driver\n try { \n // The newInstance() call is a work around for some \n // broken Java implementations\n Class.forName(jdbcDriver).newInstance(); \n } catch (Exception ex) { \n System.err.println(\"Failed to load the JDBC driver: \" + jdbcDriver);\n }\n\n // Include the username and password on the URL\n StringBuffer url = new StringBuffer();\n url.append(jdbcUrl);\n if (jdbcUsername != null) {\n url.append(\"?user=\" + jdbcUsername);\n if (jdbcPassword != null) {\n url.append(\"&password=\" + jdbcPassword);\n }\n }\n\n // Establish a connection to the database\n try {\n conn = DriverManager.getConnection(url.toString());\n } catch (SQLException ex) {\n System.err.println(\"Failed to establish a database connection: url=\" + url.toString());\n System.err.println(\"SQLException: \" + ex.getMessage()); \n System.err.println(\"SQLState: \" + ex.getSQLState()); \n System.err.println(\"VendorError: \" + ex.getErrorCode()); \n ex.printStackTrace();\n }\n\n return conn;\n }", "private Connection getConnection() {\n if (_connection != null) return _connection;\n\n Element ncElement = getNetcdfElement();\n \n //See if we can get the database connection from a JNDI resource.\n String jndi = ncElement.getAttributeValue(\"jndi\");\n if (jndi != null) {\n try {\n Context initCtx = new InitialContext();\n Context envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n DataSource ds = (DataSource) envCtx.lookup(jndi);\n _connection = ds.getConnection();\n } catch (Exception e) {\n String msg = \"Failed to get database connection from JNDI: \" + jndi;\n _logger.error(msg, e);\n throw new TSSException(msg, e);\n }\n return _connection;\n }\n\n //Make the connection ourselves.\n String connectionString = ncElement.getAttributeValue(\"connectionString\");\n String dbUser = ncElement.getAttributeValue(\"dbUser\");\n String dbPassword = ncElement.getAttributeValue(\"dbPassword\");\n String jdbcDriver = ncElement.getAttributeValue(\"jdbcDriver\");\n \n try {\n Class.forName(jdbcDriver);\n _connection = DriverManager.getConnection(connectionString, dbUser, dbPassword);\n } catch (Exception e) {\n String msg = \"Failed to get database connection: \" + connectionString;\n _logger.error(msg, e);\n throw new TSSException(msg, e);\n } \n \n return _connection;\n }", "public static Connection getConnection() {\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = getConnectionPool().getConnection();\n\t\t\t// will get a thread-safe connection from the BoneCP connection\n\t\t\t// pool.\n\t\t\t// synchronization of the method will be done inside BoneCP source\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn conn;\n\t}", "public static Connection getInstanceConnection(){\r\n\t\ttry {\r\n\t\t\tif(conn==null) {\r\n\t\t\t\tconn=DriverManager.getConnection(url, userDb, pwdDb);\r\n\t\t\t\tSystem.out.println(\"Connexion �tablie avec la base\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Probl�me de connexion\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn conn;\r\n\t}", "public static Connection getConnection() {\n Connection conn = null;\n\n try {\n DataSource dataSource = (DataSource) new InitialContext().lookup(\"jdbc/library\");\n conn = dataSource.getConnection();\n } catch (SQLException | NamingException e) {\n LOG.error(e.getMessage(), e);\n }\n return conn;\n }", "private Connection getConnection() {\n if ( conn==null ) {\n conn = Util.getConnection( \"root\", \"\" );\n }\n return conn;\n }", "protected Connection connection() {\n\t\tif (connection == null) {\n\t\t\ttry {\n\t\t\t\tdblogger.info(\"Connecting to \" + connectionUrlString);\n\t\t\t\tconnection = DriverManager.getConnection(connectionUrlString,\n\t\t\t\t\t\tusername, password);\n\t\t\t} catch (SQLException exception) {\n\t\t\t\tdblogger.fatal(\"Failed to connect to database using \"\n\t\t\t\t\t\t+ connectionUrlString + \" User: \" + username\n\t\t\t\t\t\t+ \" Password: \" + password);\n\t\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\t\"Failed to connect to the database using \"\n\t\t\t\t\t\t\t\t+ connectionUrlString\n\t\t\t\t\t\t\t\t+ \". Please contact your DBA.\");\n\t\t\t}\n\t\t}\n\t\treturn connection;\n\t}", "private Connection getConnection() throws ClassNotFoundException, SQLException {\n\n log.info(\"Get DB connection\");\n\n String url = AppConfig.getInstance().getProperty(\"db.URL\") +\n AppConfig.getInstance().getProperty(\"db.schema\") +\n AppConfig.getInstance().getProperty(\"db.options\");\n String sDBUser = AppConfig.getInstance().getProperty(\"db.user\");\n String sDBPassword = AppConfig.getInstance().getProperty(\"db.password\");\n\n if (sDBUser != null && sDBPassword != null && sDBPassword.startsWith(\"crypt:\")) {\n AltEncrypter cypher = new AltEncrypter(\"cypherkey\" + sDBUser);\n sDBPassword = cypher.decrypt(sDBPassword.substring(6));\n }\n\n return DriverManager.getConnection(url, sDBUser, sDBPassword);\n }", "private Connection dbConnection() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tConnection result = null;\t// holds the resulting connection\n\t\t\n\t\t// try to make the connection\n\t\ttry {\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\t\t\tresult = DriverManager.getConnection(CONNECTION_STRING);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\t\t\n\t\t// return the resulting connection\n\t\treturn result;\n\t\t\n\t}", "public static String getConnectionDB(){\n return \"jdbc:mysql://\" + hostname +\":\"+ port+\"/\" + database;\n }", "public Connection getDatabaseConnection() {\n return con;\n }", "public static Connection getDBConnection(){\n\t\tConnection conn = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t/*InputStream is = DBConfig.class.getClass().\r\n\t\t\t\t\tgetResourceAsStream(\"/resources/db.properties\");\r\n\t\t\tprop.load(is);\r\n\t\t\tClass.forName(prop.getProperty(\"drivername\"));\r\n\t\t\tconn = DriverManager.getConnection(prop.getProperty(\"jdbcurl\"),\r\n\t\t\t\t\tprop.getProperty(\"username\"),prop.getProperty(\"password\"));*/\r\n\t\t\t\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tconn = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:orcl\",\"fred\",\"flintstone\");\r\n\t\t\t/*Statement stmt = conn.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT LOCATION_NAME FROM LOCATIONS\");\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tSystem.out.println(rs.getString(\"LOCATION_NAME\"));\r\n\t\t\t}*/\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} /*catch (FileNotFoundException e){\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}*/\r\n\t\t\r\n\t\treturn conn;\r\n\t}", "public Connection getConnection() throws SQLException {\r\n if (user != null) {\r\n return dataSource.getConnection(user, password);\r\n } else {\r\n return dataSource.getConnection();\r\n }\r\n }", "public Connection getDbConnect() {\n return dbConnect;\n }", "public static Connection connect() throws SQLException {\n\t\tif (connection != null) {\n\t\t\treturn connection;\n\t\t} else {\n\n\t\t\tDBConnection db = new DBConnection();\n\t\t\treturn db.connection;\n\t\t}\n\n\t}", "public static Connection getConnection() throws SQLException{\n\t\tif( conn != null ){\n\t\t\treturn conn;\n\t\t}else{\n\t\t\topenConnection();\n\t\t\treturn conn;\n\t\t}\n\t}", "protected Connection getConnection()\n {\n Connection connection = null;\n try\n {\n connection = DriverManager.getConnection(url, user, password);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(DB_Utils.class.getName()).log(Level.SEVERE, null, ex);\n }\n return connection;\n }", "public static Connection getConnection() throws Exception {\n\t\treturn jdbcConnectionPool.getConnection();\r\n\r\n\t\t// return getInstance().dataSourse.getConnection();\r\n\t}", "@Override\n\tpublic Connection getConnection() throws SQLException {\n\t\tConnection conn;\n\t\tconn = ConnectionFactory.getInstance().getConnection();\n\t\treturn conn;\n\t}", "public final Connection getConnection() throws SQLException {\n\t\treturn this.ds != null ? this.ds.getConnection() : DriverManager\n\t\t\t\t.getConnection(this.url);\n\t}", "public static Connection getConnection() {\n Connection localConnection = connection;\n if (localConnection == null) synchronized (DB_ConnectionProvider.class) {\n\n // multi thread supported, double checker lock\n\n localConnection = connection;\n if (localConnection == null) {\n try {\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n // oracle driver: oracle.jdbc.driver.OracleDriver\n // mysql driver: com.mysql.jdbc.Driver\n connection = localConnection = DriverManager.getConnection(\n \"jdbc:oracle:thin:@localhost:1521:XE\", USERNAME, PASSWORD);\n // mysql url: jdbc:mysql://localhost:3306/world\n // oracle url: jdbc:oracle:thin:@localhost:1521:XE\n } catch (Exception ex) {\n System.out.println(\"Could not connect with the database.\");\n }\n }\n }\n return localConnection;\n }", "public Connection getConnection() throws SQLException {\n\t\tif (connection == null) {\n\t\t\tconnection = ConnectBDD.jdbcConnexion();\n\t\t}\n\t\treturn connection;\n\t}", "private Connection getDb() throws TzException {\n if (conn != null) {\n return conn;\n }\n\n try {\n dbPath = cfg.getDbPath();\n\n if (debug()) {\n debug(\"Try to open db at \" + dbPath);\n }\n\n conn = DriverManager.getConnection(\"jdbc:h2:\" + dbPath,\n \"sa\", \"\");\n\n final ResultSet rset =\n conn.getMetaData().getTables(null, null,\n aliasTable, null);\n if (!rset.next()) {\n clearDb();\n loadInitialData();\n }\n } catch (final Throwable t) {\n // Always bad.\n error(t);\n throw new TzException(t);\n }\n\n return conn;\n }", "public static Connection getConnection() throws SQLException\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn (con == null || con.isClosed()) ? init() : con;\n\t\t} \n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn init();\n\t\t}\n\t}", "public static Connection getConnection() {\n try {\n return DriverManager.getConnection(CONNECTION_STRING);\n } catch (final SQLException e) {\n throw new RuntimeException(e);\n }\n }", "public static Connection getConnection() {\n\t\treturn null;\r\n\t}", "public Connection getConnection() {\n try {\n return dataSource.getConnection();\n } catch (SQLException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static Connection getConnection() {\r\n\t\tString DRIVER_CLASS = \"com.mysql.cj.jdbc.Driver\";\r\n\t\ttry {\r\n\t\t\tClass.forName(DRIVER_CLASS).getDeclaredConstructor().newInstance();\r\n\t\t} catch(Exception e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t\tjava.sql.Connection conn = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(DatabaseInfo.url, DatabaseInfo.username, DatabaseInfo.password);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t\treturn conn;\r\n\t}", "public static Connection getConnection() {\n\t\treturn null;\n\t}", "public static Connection getInstance() {\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/restaurant?useSSL=false\", \"root\", \"1234\");\n\t\t} catch (SQLException e) {\n\t\t\te.getStackTrace();\n\t\t}\n\t\treturn conn;\n\t}", "public Connection getConnection(){\n\t\tif(connection == null){\r\n\t\t\tinitConnection();\r\n\t\t}\r\n\t\treturn connection;\r\n\t}", "public static Connection getConnection(){\n\t\t/***********************************************************************\n\t\t * Method................................................getConnection *\n\t\t * Author..........................................................JLH *\n\t\t *---------------------------------------------------------------------*\n\t\t * This method obtains a connection to the database *\n\t\t * *\n\t\t * Return Value \t\t\t\t\t\t\t\t\t\t\t\t\t *\n\t\t * (Connection) conn: Returns a connection to the database or null if *\n\t\t * one cannot be obtained. *\n\t\t ***********************************************************************/\n\t\tConnection conn=null;\n\t\t \n\t\ttry {\n\t\t Class.forName(\"com.mysql.jdbc.Driver\"); \n\t\t conn = DriverManager.getConnection(\"jdbc:mysql://70.178.114.2:3306/stagecraft?user=root&password=Security_Pr0bs12!@\");\n\t\t}\n\t\tcatch (SQLException ex) {\n\t\t System.out.println(\"Error: \" + ex);\n\t\t return null;\n\t\t}\n\t\tcatch(NullPointerException ex) {\n\t\t\tSystem.out.println(\"Error: \" + ex);\n\t\t \treturn null;\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t}\n\t return conn;\t\t\n\t}", "static Connection getDBConnection(){\r\n\t\t if(mainConnection != null)\r\n\t\t\t return mainConnection;\r\n\t\t \r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\t// loading Oracle Driver\r\n\t\t \t\tSystem.out.print(\"Looking for Oracle's jdbc-odbc driver ... \");\r\n\t\t\t \tDriverManager.registerDriver(new oracle.jdbc.OracleDriver());\r\n\t\t\t \tSystem.out.println(\", Loaded.\");\r\n\r\n\t\t\t\t\tString URL = \"jdbc:oracle:thin:@localhost:1521:orcl\";\r\n\t\t\t \tString userName = \"system\";\r\n\t\t\t \tString password = \"password\";\r\n\r\n\t\t\t \tSystem.out.print(\"Connecting to DB...\");\r\n\t\t\t \tmainConnection = DriverManager.getConnection(URL, userName, password);\r\n\t\t\t \tSystem.out.println(\", Connected!\");\r\n\t\t \t\t}\r\n\t\t \t\tcatch (Exception e)\r\n\t\t \t\t{\r\n\t\t \t\tSystem.out.println( \"Error while connecting to DB: \"+ e.toString() );\r\n\t\t \t\te.printStackTrace();\r\n\t\t \t\tSystem.exit(-1);\r\n\t\t \t\t}\r\n\t\t\t\treturn mainConnection;\r\n\t\t \r\n\t}", "public static Connection getConnection() {\n if (connection == null) {\n try {\n connect();\n } catch (IOException e) {\n if (sc != null) {\n sc.log(\"connect \", e);\n }\n }\n }\n if (connection == null) {\n if (sc != null) {\n sc.log(\"BigtableHelper-No Connection\");\n }\n }\n return connection;\n }", "public static Connection getConnection() {\n try {\n String dbURL = \"jdbc:mysql://\" + HOST + \":3306/soccer\" ;\n Class.forName(DRIVER);\n Connection connection = DriverManager.getConnection(dbURL, USERNAME, PASSWORD);\n return connection;\n } catch (Exception e) {\n System.out.println(\"Error in Database.getConnection: \" + e.getMessage());\n return null;\n }\n }", "public Connection getConnection() {\n\t// register the JDBC driver\n\ttry {\n\t Class.forName(super.driver);\n\t} catch (ClassNotFoundException e) {\n\t e.printStackTrace();\n\t}\n \n\t// create a connection\n\tConnection connection = null;\n\ttry {\n\t connection = DriverManager.getConnection (super.jdbc_url,super.getu(), super.getp());\n\t} catch (SQLException e) {\n\t e.printStackTrace();\n\t}\n\treturn connection;\n }", "public static Connection getConn() {\n return conn;\n }", "public static Connection getCon() {\n Connection con= null;\n try{\n Class.forName(driver);\n con = DriverManager.getConnection(dBUrl);\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return con;\n }", "public static Connection getConnection() {\n Connection con = null;\n try {\n Class.forName(\"org.hsqldb.jdbcDriver\");\n con = DriverManager.getConnection(\n \"jdbc:hsqldb:mem:avdosdb\", \"sa\", \"\");\n } catch(Exception e) {\n e.printStackTrace();\n }\n return con;\n }", "@Override\n\tpublic DBConnection getDBConnection() {\n\t\t\n\t\tSystem.out.println(\"Started to create DB Connection Object\");\n\t\tDBConnection connection = new DBConnection();\n\t\tconnection.setImplementorName(\"MySQL Implementation\");\n\t\tSystem.out.println(\"Completed to create DB Connection Object\");\n\t\treturn connection;\n\t}", "public final DBI getConnect() {\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n // String dbc = System.getenv(\"DB_CONNECTION\");\n // if (dbc == null || dbc.equals(\"\")) {\n // dbc = \"localhost:3306\";\n // }\n // DBI dbi = new DBI(\"jdbc:mysql://\" + dbc + \"/MLPXX?allowPublicKeyRetrieval=true&useSSL=false\", \"MLPXX\", \"MLPXX\");\n DBI dbi = new DBI(\"jdbc:mysql://localhost:3306/MLPXX?allowPublicKeyRetrieval=true&useSSL=false\", \"MLPXX\", \"MLPXX\");\n\n //DBI dbi = new DBI(\"jdbc:mysql://\" + dbc + \"/MLPXX?useSSL=false\", \"MLPXX\", \"MLPXX\");\n // dbi.setSQLLog(new PrintStreamLog());\n return dbi;\n } catch (ClassNotFoundException e) {\n //return null;\n throw new RuntimeException(e);\n }\n }", "public Connection getConnection() throws SQLException {\n return new ConnectionWrapper(currentPreparedStatement.getConnection());\n }", "public Connection getConnection() {\n this.connect();\n return this.connection;\n }", "public static Connection getConnection() throws SQLException {\n\t\tString url = \"\";\n\t\tString user = \"\";\n\t\tString pass = \"\";\n\t\treturn DriverManager.getConnection(url,user,pass);\n\t}", "public static Connection getConnection()\n throws SQLException, IOException\n { \n Properties props = new Properties();\n FileInputStream in = new FileInputStream(\"database.properties\");\n props.load(in);\n in.close();\n\n String drivers = props.getProperty(\"jdbc.drivers\");\n if (drivers != null) System.setProperty(\"jdbc.drivers\", drivers);\n String url = props.getProperty(\"jdbc.url\");\n String username = props.getProperty(\"jdbc.username\");\n String password = props.getProperty(\"jdbc.password\");\n\n return DriverManager.getConnection(url, username, password);\n }", "private static Connection getConnection() throws SQLException {\n return DriverManager.getConnection(\n Config.getProperty(Config.DB_URL),\n Config.getProperty(Config.DB_LOGIN),\n Config.getProperty(Config.DB_PASSWORD)\n );\n }", "private static Connection getConnection(){\n Connection conn = THREAD_CONNECTION.get();\n if(conn == null){\n try {\n conn = DATA_SOURCE.getConnection();\n } catch (SQLException e) {\n e.printStackTrace();\n LOGGER.error(\"getConnection error\", e);\n throw new RuntimeException(e);\n } finally {\n THREAD_CONNECTION.set(conn);\n }\n }\n AssertUtil.notNull(conn);\n return conn;\n }", "public Connection getConnection() throws SQLException {\r\n return connection;\r\n }", "public static Connection getConnection() throws SQLException {\n\t\ttry {\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\"); //registering Oracle Driver\n\t\t}\n\t\tcatch(ClassNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tString url = System.getenv(\"DB_URL\"); // best not to hard code in your db credentials ! \n\t\tString username = System.getenv(\"DB_USERNAME\");\n\t\tString password = System.getenv(\"DB_PASSWORD\");\n\t\tif(connection == null || connection.isClosed()) {\n\t\t\tconnection = DriverManager.getConnection(url, username, password);\n\t\t\tSystem.out.println(connection.getMetaData().getDriverName());\n\t\t}\n\t\treturn connection;\n\t}", "public static DatabaseConnection getInstance() throws SQLException {\n if (instance == null) {//if we didn't create it earlier\n instance = new DatabaseConnection();//we create new one\n }\n return instance;//otherwise it returns old one\n }", "public Connection getConnection() throws SQLException {\n String connectionUrl = \"jdbc:postgresql://\" + url + \":\" + port + \"/\" + database;\n return DriverManager.getConnection(connectionUrl, SISOBProperties.getDataBackendUsername(), SISOBProperties.getDataBackendPassword());\n }", "public Connection getConnection() throws SQLException{\n return ds.getConnection();\n }", "public Connection getConnection() throws SQLException {\n\t\treturn DriverManager.getConnection(this.url, this.username, this.password);\n\t}", "public Connection getConnection() {\n java.sql.Connection connection = null;\n try {\n connection = DriverManager.getConnection(\n \"jdbc:postgresql://cslvm74.csc.calpoly.edu:5432/bfung\", \"postgres\",\n \"\");\n } catch (SQLException e) {\n System.out.println(\"Connection Failed! Check output console\");\n e.printStackTrace();\n return null;\n }\n return connection;\n }", "protected Connection getConnection() throws PersistenceException {\r\n try {\r\n if (this.connectionName == null) {\r\n return dbConnectionFactory.createConnection();\r\n } else {\r\n return dbConnectionFactory.createConnection(connectionName);\r\n }\r\n } catch (DBConnectionException e) {\r\n StringBuffer sb = new StringBuffer(\"failed to obtain connection:\");\r\n sb.append((connectionName == null) ? \"default connection\" : connectionName);\r\n throw new PersistenceException(sb.toString(), e);\r\n }\r\n }", "private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }", "private Connection getConnection() throws SQLException {\n OracleDataSource ods = new OracleDataSource();\n ods.setURL(url);\n ods.setUser(user);\n ods.setPassword(password);\n\n // Creates a physical connection to the database.\n return ods.getConnection();\n }", "public synchronized Connection getConnection() throws DBException {\n Connection con = null;\n try{\n if (s_ds != null) {\n try {\n con = s_ds.getConnection();\n } catch (Exception e) {\n SystemLog.getInstance().getErrorLog().error(\"ERR,HSQLDBTomCTRL,getCon-JNDI,\" + e\n , e);\n }\n } \n // If null try another method\n \n\t\t\tif ( con == null ){\n\t DriverManager.setLoginTimeout(5);\n\t\t\t\tcon = DriverManager.getConnection(m_dbURL , m_userName , m_password);\n\t\t\t\tSystem.out.println(\"HSQLDB-DBCON:user=\"+m_userName+\":Connection !!\");\n\t\t\t}\n\n return con;\n }catch(SQLException e) {\n System.err.println( \"DBCON:ERROR: user=\"+m_userName+\":Get Connection from pool-HSQLDB\");\n\t\t\tthrow new DBException(\"DBCON:ERROR: user=\"+m_userName+\":Get Connection HSQLDB:\" + e.getMessage()); \n }\n }", "public static Connection getConnection() {\n Connection conn = null;\n try {\n Class.forName(\"org.hsqldb.jdbcDriver\");\n //conn = DriverManager.getConnection(\"jdbc:hsqldb:hsql://localhost/bancodb\", \"sa\", \"\");\n conn = DriverManager.getConnection(\"jdbc:hsqldb:hsql://localhost/paciente2db\", \"sa\", \"\");\n } catch (SQLException e) {\n System.out.println(\"Problemas ao conectar no banco de dados\");\n } catch (ClassNotFoundException e) {\n System.out.println(\"O driver não foi configurado corretamente\");\n }\n\n return conn;\n }", "private Connection getConnection() throws SQLException { //gets and returns a connection to the database at the file path specified when the object was instantiated\n return DriverManager.getConnection(\"jdbc:sqlite:\" + databasePath); //returns the connection to the specified database\n }", "public static Connection getConnection() throws SQLException {\n if (connection == null) {\n try {\n final String url = \"jdbc:mysql://localhost:3306\";\n final String user = \"root\";\n final String pass = \"guevara88\";\n // DriverManager.registerDriver(); // Legacy: needed before ver.4\n connection = DriverManager.getConnection(url, user, pass);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n return connection;\n }", "private Connection connect() {\n String url = \"jdbc:sqlite:\" + dbPath + dbName;\n Connection con = null;\n try {\n con = DriverManager.getConnection(url);\n }\n catch (SQLException e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n\n return con;\n }", "public Connection getConnection();", "public Connection getConnection();", "public Connection getConnection();" ]
[ "0.79740214", "0.7870475", "0.7821664", "0.77915174", "0.77844065", "0.77358437", "0.76986563", "0.7691666", "0.76805294", "0.7679787", "0.767893", "0.764312", "0.7635242", "0.7630473", "0.7613832", "0.7608595", "0.7607148", "0.75812817", "0.7576804", "0.75540596", "0.7544787", "0.75364935", "0.75329286", "0.75162137", "0.75138307", "0.75111836", "0.75042963", "0.74987334", "0.748243", "0.7469692", "0.74471605", "0.74165374", "0.7408136", "0.74002194", "0.73958576", "0.73958546", "0.7392109", "0.7380109", "0.73714596", "0.73709345", "0.73398614", "0.73385257", "0.73357207", "0.7333362", "0.73300076", "0.73263943", "0.7324008", "0.73224556", "0.73104477", "0.73086494", "0.7297044", "0.7292515", "0.72787666", "0.7272602", "0.72588104", "0.7258385", "0.7251796", "0.7248837", "0.7248558", "0.72469825", "0.72464615", "0.7240655", "0.72308534", "0.72280806", "0.7227186", "0.72238636", "0.7213226", "0.7208131", "0.7207499", "0.72036934", "0.7202283", "0.71993315", "0.7193115", "0.71721107", "0.7171309", "0.71627235", "0.71535265", "0.7152747", "0.7139078", "0.71304256", "0.7123328", "0.7104771", "0.71016294", "0.7092824", "0.70869356", "0.70859295", "0.7066893", "0.7061735", "0.7045252", "0.70188963", "0.7005702", "0.69862854", "0.6977615", "0.6974288", "0.69733566", "0.69704854", "0.69613296", "0.69590867", "0.6954662", "0.6954662", "0.6954662" ]
0.0
-1
Close the database connection.
public void closeConnection() { try { String token = conn.toString(); conn.close(); log.info("Database Connection Closed. ID: {} ", token); } catch (Exception e) { log.error("Error closing the database connection. \n Trace: {}", ExceptionUtilities.stacktraceToString(e)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeDB() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tconn = null;\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Failed to close database connection: \" + e);\n\t\t}\n\t}", "public void closeDB() throws SQLException\r\n {\r\n conn.close();\r\n }", "public void close() {\n if (db.isOpen()) {\n db.close();\n }\n }", "private void closeDatabase() {\r\n try {\r\n if ( connect != null ) {\r\n connect.close();\r\n }\r\n } catch ( Exception e ) {\r\n System.err.println( \"ERROR: Could not close database connection, \" + e.getMessage() );\r\n } finally {\r\n connect = null;\r\n }\r\n }", "public void close() {\n\t\t\tdb.close();\n\t\t}", "public void close() {\r\n closeDatabase();\r\n }", "public void close() {\n db.close();\n }", "public void close() {\n db.close();\n }", "private void closeConnection() { // TEMPORARILY PUBLIC\n if (db != null) {\n db.close();\n }\n }", "public void close() {\n \t\tdb.close();\n \t}", "public void close() {\n try {\n connect.close();\n } catch (SQLException ex) {\n System.err.println(\"Error while closing db connection\" + ex.toString());\n }\n }", "public final void close() {\n\t\ttry {\n\t\t\tcon.commit( ); // Commit any updates\n\t\t\tcon.close ( );\n\t\t}\n\t\tcatch ( Exception e ) {\n\t\t\tnotify( \"Db.close\", e );\n\t\t};\n\t}", "public void close(){\n this.db.close();\n }", "public void closeConnection() {\n try {\n //check if the connection is not null close it and make it null.\n if (this.dbConnection != null) {\n this.dbConnection.close();\n this.dbConnection = null;\n }\n } catch (SQLException ex) {\n System.err.println(\"Exception in closing the connection\");\n System.err.println(ex.getMessage());\n }\n }", "public static void closeDatabase() {\n\t\ttry {\n\t\t\tif (status == OPEN_SUCCESS) {\n\t\t\t\tif (stmt != null)\n\t\t\t\t\tstmt.close();\n\t\t\t\tif (c != null)\n\t\t\t\t\tc.close();\n\t\t\t\tlogger.info(\"Closed database successfully\");\n\t\t\t} else {\n\t\t\t\tlogger.warn(\"Can not close: previous operation failed.\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tstatus = OPEN_FAILED;\n\t\t\tlogger.warn(e.getClass().getName() + \": \" + e.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void closeConnection() {\n client.close();\n System.out.println(\"Connection to db closed.\");\n }", "public void closeDBConnection() {\r\n\t\ttry {//如果连接有效(存在),关闭他\r\n\t\t\tif (dbConnection != null /*&& !dbConnection.isClosed()*/){\r\n\t\t\t\tdbConnection.close();// Return to connection pool\r\n\t\t\t\tdbConnection = null; //Make sure we don't close it twice\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tErrorLog.log(\"Database->closeDBConnection:\" + e.getMessage()+\"//\"+ e);\r\n\t\t}\r\n\t}", "public void closeConnection() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"ERROR: cannot close connection to local database\");\n\t\t}\n\t}", "public static void closeConnection(){\n try {\n if (connection != null) {\n connection.close();\n System.out.println(\"Database Connection closed\");\n }\n } catch (SQLException e) {\n // connection close failed.\n System.err.println(e.getMessage());\n }\n }", "public void close() {\n if (database != null) {\n this.database.close();\n }\n }", "public void close() {\n if (database != null) {\n this.database.close();\n }\n }", "public void close() {\n if (database != null) {\n this.database.close();\n }\n }", "public void close() {\n if (database != null) {\n this.database.close();\n }\n }", "@Override\n public void close() {\n closeDB();\n }", "public void close() {\n\n\t\tdebug();\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"=== CLOSE === \");\n\t\t}\n\n\t\ttry {\n\n\t\t\tif (connection != null) {\n\n\t\t\t\tlog.debug(\"Antes Connection Close\");\n\t\t\t\tconnection.close();\n\t\t\t\tlog.debug(\"Pos Connection Close\");\n\t\t\t}\n\n\t\t\tif (m_dbConn != null) {\n\t\t\t\tm_dbConn.close();\n\t\t\t}\n\n\t\t\tif (isDebug == true) {\n\t\t\t\tlog.debug(\"Connection Close\");\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tlog.debug(\"ERRO Connection Close\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tconnection = null;\n\t\tm_dbConn = null;\n\n\t}", "public void closeConnection() throws SQLException {\n\t\tDatabase.closeConnection();\n\t}", "public void close() {\n if (connection == null) {\n LOGGER.error(\"DB : Uninitialized DB Connection.\");\n return;\n }\n\n try {\n if (connection.isClosed()) {\n LOGGER.warn(\"Connection is already closed.\");\n return;\n }\n connection.close();\n } catch (SQLException e) {\n LOGGER.error(\"Error closing the connection.\", e);\n }\n\n }", "private static void disconnectDatabase(){\n\t\ttry{\n\t\t\tif (connection != null) connection.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void closeConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\tdatabaseConnection.close();\n\t\t}\n\t\tcatch (SQLException currentSQLError)\n\t\t{\n\t\t\tdisplaySQLErrors(currentSQLError);\n\t\t}\n\t}", "public void closeConnection() {\n try {\n if (db.isOpen())\n db.close();\n } catch(SQLException e) {\n Log.e(TAG, e.getMessage());\n }\n }", "public void closeDB() {\n\t\tboolean gotSQLExc = false;\n\t\ttry {\n\t\t\tconn.close();\n //DriverManager.getConnection(\"jdbc:derby:;shutdown=true\"); \n \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tif (e.getSQLState().equals(\"XJ015\") ) {\t\t\n\t gotSQLExc = true;\n\t } else e.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void close(){\n\t\tif(tr != null && tr.inTransaction()){\n\t\t\ttr.rollback();\n\t\t}\n\t\ttry{\n\t\t\tif(db != null)\n\t\t\t\tdb.close();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void close()\n\t{\n\t\ttry\n\t\t{\n\t\t\tthis.conexao.close();\n\t\t\tSystem.out.println(\"\\n\"+nomeDao+\" desconectado!\\n\");\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tSystem.out.println(\"\\nNao ha conexao \"+nomeDao+\" a ser fechada!\\n\");\n\t\t}\n\t}", "public void close() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void close()\r\n {\r\n try\r\n {\r\n connection.close();\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n }\r\n }", "public void close() throws SQLException {\r\n connection.close();\r\n }", "public void close() throws SQLException;", "public void close() {\n\t\tdbHelper.close();\n\t}", "@Override\n\tpublic void closeDB() {\n\t\tcommonDao.closeDB();\n\t}", "public void closeDatabase() {\n hoardDBOpenHelper.close();\n }", "public void disconnectDB() {\n try {\n this.conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n if (this.conn != null) {\n try {\n this.conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void close() throws SQLException {\n connection.close();\n }", "public void close() throws SQLException {\n dataBaseConnector.close();\n }", "@Override public void close() throws SQLException {\r\n connection.close();\r\n connection = null;\r\n }", "public void close() {\n\t\t_dbHelper.close();\n\t}", "@Override\n public void closeConnection() throws SQLException{\n getConnection().close();\n }", "private void closeDB() {\n/* 29 */ Connection conn = null;\n/* 30 */ PreparedStatement pstmt = null;\n/* 31 */ ResultSet rs = null;\n/* */ \n/* */ try {\n/* 34 */ if (rs != null) rs.close(); \n/* 35 */ if (pstmt != null) pstmt.close(); \n/* 36 */ if (conn != null) conn.close(); \n/* 37 */ System.out.println(\"DB 접속 해제\");\n/* 38 */ } catch (Exception e) {\n/* 39 */ e.printStackTrace();\n/* */ } \n/* */ }", "public synchronized void close() {\n\n mOpenCounter--;\n\n if(mOpenCounter == 0) {\n // Closing database\n mDatabase.close();\n }\n }", "public void closeCon(){\r\n\t\ttry\r\n\t\t{\r\n\t\t\tmyConnection.close();\r\n\r\n\t\t}\r\n\r\n\t\tcatch (SQLException e )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"something went wrong with closing DB connection\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected void close() {\n if (conn == null)\n return;\n // Close our prepared statements (if any) \n try {\n ps.close();\n } catch (Throwable f) {\n ExceptionUtils.handleThrowable(f);\n }\n this.ps = null;\n // Close this database connection, and log any errors \n try {\n conn.close();\n } catch (SQLException e) {\n container.getLogger().error(sm.getString(\"jdbcAccessLogValeve.close\"), e);\n } finally {\n this.conn = null;\n }\n}", "public void close()\r\n {\r\n DBHelper.close();\r\n }", "public void close() {\r\n\t\tthis.mDbHelper.close();\r\n\t}", "public void close () throws SQLException {\r\n\t\tconn.close();\r\n\t}", "public static void dbClose(String databaseName) throws Exception {\n DataBaseConnection.closeConnection(databaseName);\n }", "@Override\n public void closeDBConnection() throws SQLException {\n if (sessionFactory.getCurrentSession() != null && sessionFactory.getCurrentSession().isOpen()) {\n sessionFactory.getCurrentSession().close();\n }\n }", "public static void closeDatabase() {\n if (instance != null) {\n instance.kill();\n instance = null;\n }\n }", "public void closeConnection() throws SQLException {\n conn.close();\r\n }", "public void close() throws SQLException{\n\t\tconn.close();\n\t}", "public void close()\n {\n DBHelper.close();\n }", "public void close()\n {\n DBHelper.close();\n }", "public void schliessen() {\n try {\n mDb.close();\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n }", "private void close() {\n\t\t\tDB.close(m_rs, m_pstmt);\n\t\t\tm_rs = null;\n\t\t\tm_pstmt = null;\n\t\t}", "public void closeConnection() throws SQLException;", "private void closeConnection () {\n\t\ttry {\n\t\t\tconnection.close();\n\t\t\tconnection = null;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void close () throws IOException , GateException {\n try{\n conn.close();\n }\n catch (SQLException e){\n log.error(\"Problem closing database connection\", e);\n System.exit(5);\n }\n\n }", "@Override\n\tpublic void closeDB()\n\t{\n\n\t}", "public void closeConnection() {\n\t\ttry{\n\t\t\tif(this.connection!=null)\n\t\t\t\tthis.connection.close();\n\t\t}catch(SQLException se){\n\t\t\tse.printStackTrace();\n\t\t}\n\t}", "public void schliessen() {\n mDb.close();\n }", "public void closeConnection() throws SQLException {\n if(connected) {\n dbConnection.close();\n }\n Logger logger = Logger.getAnonymousLogger();\n logger.log(Level.INFO, \"Closed connection successfully\");\n }", "public void close(){\n myDB.close();\n myDataBase.close();\n }", "public void close(){\r\n if(conn!=null){\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n System.out.println(\"Error al cerrar la base de datos: \\n\"+ex.getMessage());\r\n }\r\n }\r\n }", "public void closeConnection() {\n try {\n con.close();\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }", "public void close()\n\n {\n DBHelper.close();\n }", "@Override\r\n\tpublic void close()\r\n {\r\n\t\ttry\r\n {\r\n\t connection.close();\r\n }\r\n\t\tcatch (final SQLException e)\r\n {\r\n\t\t\t// Ignore, shutting down anyway\r\n }\r\n }", "public void close() throws SQLException {\n\t}", "private void closeConnection() {\n sqlLiteHelper.close();\n }", "void close() throws SQLException;", "public void close() {\n try {\n con.close();\n } catch (SQLException se) { /*can't do anything */ }\n try {\n stmt.close();\n } catch (SQLException se) { /*can't do anything */ }\n }", "@Override\r\n @SuppressWarnings(\"empty-statement\")\r\n public void close()\r\n {\r\n curDb_ = null;\r\n curConnection_ = null;\r\n try\r\n {\r\n for(Map.Entry<Db_db, Connection> entry: connections_.entrySet())\r\n {\r\n entry.getValue().close();\r\n }\r\n }catch(Exception e){};\r\n \r\n connections_.clear();\r\n }", "public void close() {\n dbHelper.close();\n }", "public void close() {\n dbHelper.close();\n }", "public void close() {\n dbHelper.close();\n }", "public synchronized void close() throws SQLException {\n/* 204 */ if (this.physicalConn != null) {\n/* 205 */ this.physicalConn.close();\n/* */ \n/* 207 */ this.physicalConn = null;\n/* */ } \n/* */ \n/* 210 */ if (this.connectionEventListeners != null) {\n/* 211 */ this.connectionEventListeners.clear();\n/* */ \n/* 213 */ this.connectionEventListeners = null;\n/* */ } \n/* */ }", "public static void close_DB() {\n try {\n for (int i=0; i<conns; i++) {\n if (con_pool[i]!=null)\n con_pool[i].close();\n }\n } catch (SQLException ex) {\n Logger.getLogger(DB_Backend.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void close() {\n\t mDbHelper.close();\n\t }", "public void connectionClose() {\n try {\n conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void closeDB() {\n locationDBAdapter.close();\n }", "public void close(){\n\t\tif(dbReadable != null && dbReadable.isOpen()){\n\t\t\tdbReadable.close();\n\t\t\tdbReadable = null;\n\t\t}\n\t\t\n\t\tif(dbWritable != null && dbWritable.isOpen()){\n\t\t\tdbWritable.close();\n\t\t\tdbWritable = null;\n\t\t}\n\t}", "public void close() throws SQLException {\n stmt.close();\n con.close();\n isOpen = false;\n }", "public void close() {\r\n\t\ttry {\r\n\t\t\trs.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tst.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tconn.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void closeConnection() {\n\t\tif (conn != null) {\n\t\t\ttry {\n\t\t\t\tconn.close();\n\t\t\t} catch(SQLException se){\n\t\t\t\tse.printStackTrace();\n\t\t\t}\n\t\t} \n\t}", "public static void closeConnection(){\r\n\t\tif(connection != null)\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException 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}", "public void closeConnection(){\n try {\n connection.close();\n } catch (SQLException ex) {\n System.out.println(\"SQLException in closeConnection()\");\n }\n }", "public void close()\n\t{\n\t\thdbTsDb.closeConnection();\n\t\thdbTsDb = null;\n\t\tif (timeSeriesDAO != null)\n\t\t\ttimeSeriesDAO.close();\n\t}", "public void close() {\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException e) {\n logger.error(\"Failed to close the connection.\");\n }\n }\n }", "private void closeConnection() {\n try {\n bufferedWriter.close();\n } catch (IOException e) {\n System.err.println(\"Cannot close connection to MS SQL DB\");\n e.printStackTrace();\n }\n System.out.println(\"Close connection to MS SQL DB\");\n }", "@Override\n public void disconnect() {\n\n // silently return if connection is closed\n if (!is_open) {\n return;\n }\n\n // close connection and statement, shutdown driver\n try {\n statement.close();\n connection.close();\n DriverManager.getConnection(\"jdbc:derby:\" + db_name + \";shutdown=true\");\n is_open = false;\n } catch (SQLException e) {\n System.out.println(\"Java DB connection did not shutdown successfully.\");\n }\n\n //System.out.println(\"Java DB connection shutdown successfully!\");\n\n }", "public void close() {\n\t\tcloseConnection();\n\t\tcloseStatement();\n\t\tcloseResultSet();\n\t}", "public void disconnect(){\n try {\n if(conn!=null){\n conn.close();\n System.out.println(\"Closed connection to the Database\");\n }else{\n System.out.println(\"Not closed connection to the Database\");\n }\n } catch (SQLException e) {\n System.out.println(\"ERROR, Cannot close the connection\" + e.getSQLState());\n }\n catch (NullPointerException e){\n System.out.println(\"ERROR, Not Created previous connection to the database\");\n e.getStackTrace();\n }\n }", "private void closeDirtyConnection() {\n\t\ttry {\n\t\t\tif (dirtyConnection != null) {\n\t\t\t\tdirtyConnection.close();\n\t\t\t}\n\t\t} catch (DatabaseException e) {\n\t\t} finally {\n\t\t\tdirtyConnection = null;\n\t\t}\n\t}" ]
[ "0.82049865", "0.8109345", "0.80854", "0.8083696", "0.8069195", "0.8038914", "0.79841536", "0.79841536", "0.7964884", "0.79640317", "0.79610175", "0.7958632", "0.7910468", "0.7853626", "0.7845886", "0.77667254", "0.7746259", "0.77236414", "0.77164465", "0.77006805", "0.77006805", "0.77006805", "0.77006805", "0.76845366", "0.7650752", "0.7598726", "0.75834805", "0.7561551", "0.7547972", "0.7536885", "0.7518057", "0.74926394", "0.74870986", "0.7477955", "0.74754035", "0.7474461", "0.7431605", "0.7418925", "0.74188185", "0.7414825", "0.7414395", "0.7405007", "0.7393802", "0.73880893", "0.73793715", "0.7361532", "0.7357196", "0.735087", "0.7342833", "0.73400044", "0.7331352", "0.73288643", "0.7320867", "0.7318353", "0.73158544", "0.7313174", "0.73115486", "0.7310924", "0.729955", "0.729955", "0.7295718", "0.72920626", "0.72898585", "0.72871584", "0.7268077", "0.72613794", "0.7253185", "0.72506917", "0.7246125", "0.72455764", "0.72376007", "0.7234144", "0.72253066", "0.7208832", "0.72038025", "0.719472", "0.7191045", "0.71838", "0.7180556", "0.71759814", "0.71759814", "0.71759814", "0.7174443", "0.7169154", "0.7163987", "0.7162694", "0.71566045", "0.71541965", "0.7152556", "0.7128986", "0.711958", "0.71189815", "0.70993394", "0.70889807", "0.70822614", "0.70585054", "0.70580405", "0.705614", "0.7033952", "0.7032283" ]
0.7420047
37
Close the statement connection.
public void closeStmt(CallableStatement stmt) { try { stmt.close(); } catch (Exception e) { log.error("Error closing the statement. \n Trace: {}", ExceptionUtilities.stacktraceToString(e)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeStatement() {\n\t\tif (stmt != null) {\n\t\t\ttry {\n\t\t\t\tstmt.close();\n\t\t\t} catch (SQLException se2) {\n\t\t\t\tse2.printStackTrace();\n\t\t\t}\n\t\t} \n\t\tif (pstmt != null) {\n\t\t\ttry {\n\t\t\t\tpstmt.close();\n\t\t\t} catch (SQLException se2) {\n\t\t\t\tse2.printStackTrace();\n\t\t\t}\n\t\t} \n\t}", "public void closeConnection()\n {\n try{\n if(statement!=null)\n connection.close();\n }catch(SQLException se){\n System.out.println(\"Close statement ex:\"+ se.getMessage());\n }// do nothing\n try{\n if(connection!=null)\n connection.close();\n }catch(SQLException se){\n System.out.println(\"Close connection ex:\"+ se.getMessage());\n }//end finally try\n }", "public void close() throws SQLException {\r\n connection.close();\r\n }", "public void close() throws SQLException {\n connection.close();\n }", "public void close() throws SQLException {\n stmt.close();\n con.close();\n isOpen = false;\n }", "public void close() {\n try {\n con.close();\n } catch (SQLException se) { /*can't do anything */ }\n try {\n stmt.close();\n } catch (SQLException se) { /*can't do anything */ }\n }", "public void closeConnection() throws SQLException;", "@Override public void close() throws SQLException {\r\n connection.close();\r\n connection = null;\r\n }", "public void close () throws SQLException {\r\n\t\tconn.close();\r\n\t}", "public void closeConnection() throws SQLException {\n conn.close();\r\n }", "public void close() throws SQLException{\n\t\tconn.close();\n\t}", "public void close() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void close()\r\n {\r\n try\r\n {\r\n connection.close();\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n }\r\n }", "public void closeConnection(Connection conn) throws SQLException;", "public void close() throws SQLException;", "public void close() throws SQLException {\n enable_stmt.close();\n disable_stmt.close();\n show_stmt.close();\n }", "public void close() {\n\n\t\tdebug();\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"=== CLOSE === \");\n\t\t}\n\n\t\ttry {\n\n\t\t\tif (connection != null) {\n\n\t\t\t\tlog.debug(\"Antes Connection Close\");\n\t\t\t\tconnection.close();\n\t\t\t\tlog.debug(\"Pos Connection Close\");\n\t\t\t}\n\n\t\t\tif (m_dbConn != null) {\n\t\t\t\tm_dbConn.close();\n\t\t\t}\n\n\t\t\tif (isDebug == true) {\n\t\t\t\tlog.debug(\"Connection Close\");\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tlog.debug(\"ERRO Connection Close\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tconnection = null;\n\t\tm_dbConn = null;\n\n\t}", "public void close() throws SQLException {\n\t\tif(stmt != null)\n\t\t\tstmt.close();\n\t\t\tstmt = null;\n\t\tif(connection != null)\n\t\t\tconnection.close();\n\t\t\tconnection = null;\n\t}", "@Override\n public void closeConnection() throws SQLException{\n getConnection().close();\n }", "private void closeConnection () {\n\t\ttry {\n\t\t\tconnection.close();\n\t\t\tconnection = null;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void close() {\n if (conn == null)\n return;\n // Close our prepared statements (if any) \n try {\n ps.close();\n } catch (Throwable f) {\n ExceptionUtils.handleThrowable(f);\n }\n this.ps = null;\n // Close this database connection, and log any errors \n try {\n conn.close();\n } catch (SQLException e) {\n container.getLogger().error(sm.getString(\"jdbcAccessLogValeve.close\"), e);\n } finally {\n this.conn = null;\n }\n}", "public void connectionClose() {\n try {\n conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void closeConnection(){\n try {\n connection.close();\n } catch (SQLException ex) {\n System.out.println(\"SQLException in closeConnection()\");\n }\n }", "public void closeConnection() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"ERROR: cannot close connection to local database\");\n\t\t}\n\t}", "@Override\r\n\tpublic void close()\r\n {\r\n\t\ttry\r\n {\r\n\t connection.close();\r\n }\r\n\t\tcatch (final SQLException e)\r\n {\r\n\t\t\t// Ignore, shutting down anyway\r\n }\r\n }", "private void closeConnection() {\n try {\n bufferedWriter.close();\n } catch (IOException e) {\n System.err.println(\"Cannot close connection to MS SQL DB\");\n e.printStackTrace();\n }\n System.out.println(\"Close connection to MS SQL DB\");\n }", "public static void closeConnection(){\n try {\n if (connection != null) {\n connection.close();\n System.out.println(\"Database Connection closed\");\n }\n } catch (SQLException e) {\n // connection close failed.\n System.err.println(e.getMessage());\n }\n }", "void close() throws SQLException;", "public static void close()\n\t{\n\t\t\n\t\ttry \n\t\t{\t\t\t\n\t\t\t\n\t\t\tif (RESULT_SET != null)\n\t\t\t{\n\t\t\t\tRESULT_SET.close();\n\t\t\t}\n\t\t\t\n\t\t\tSTATEMENT.close();\n\t\t\tCONNECTION.close();\t\t\n\t\t\n\t\t} catch (Exception e)\n\t\t{\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void close() throws SQLException {\n\t\t//Commit must be explicit before closing the connection\n\t\tconnection.commit();\n\t\tconnection.close();\n\t}", "public void close() {\n try {\n connect.close();\n } catch (SQLException ex) {\n System.err.println(\"Error while closing db connection\" + ex.toString());\n }\n }", "public void closeConnection() {\n try {\n con.close();\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }", "public static void closeConnection(){\r\n\t\tif(connection != null)\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException 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}", "public void closeConnection(){\r\n if (connection != null)\r\n try{\r\n log.info(\"close connection\");\r\n connection.close();\r\n }\r\n catch (SQLException e){\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "public void close() {\n if (stmt == null) {\n return;\n }\n\n try {\n commit();\n } catch (HandledException ex) {\n Exceptions.ignore(ex);\n }\n\n safeClose();\n context.unregister(this);\n }", "public void close() {\n\t\tcloseConnection();\n\t\tcloseStatement();\n\t\tcloseResultSet();\n\t}", "public synchronized void close() throws SQLException {\n/* 204 */ if (this.physicalConn != null) {\n/* 205 */ this.physicalConn.close();\n/* */ \n/* 207 */ this.physicalConn = null;\n/* */ } \n/* */ \n/* 210 */ if (this.connectionEventListeners != null) {\n/* 211 */ this.connectionEventListeners.clear();\n/* */ \n/* 213 */ this.connectionEventListeners = null;\n/* */ } \n/* */ }", "public void close() throws SQLException {\n\t}", "public void closeConnection() {\n\t\ttry{\n\t\t\tif(this.connection!=null)\n\t\t\t\tthis.connection.close();\n\t\t}catch(SQLException se){\n\t\t\tse.printStackTrace();\n\t\t}\n\t}", "public void close() {\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException e) {\n logger.error(\"Failed to close the connection.\");\n }\n }\n }", "public void closeConnection() {\n\t\tif (conn != null) {\n\t\t\ttry {\n\t\t\t\tconn.close();\n\t\t\t} catch(SQLException se){\n\t\t\t\tse.printStackTrace();\n\t\t\t}\n\t\t} \n\t}", "public void closeConnection() {\n client.close();\n System.out.println(\"Connection to db closed.\");\n }", "public void closeConnection() {\n this.session.close();\n }", "public void closeConnection() throws SQLException {\n\t\tDatabase.closeConnection();\n\t}", "public void closeDB() throws SQLException\r\n {\r\n conn.close();\r\n }", "public void closeConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\tdatabaseConnection.close();\n\t\t}\n\t\tcatch (SQLException currentSQLError)\n\t\t{\n\t\t\tdisplaySQLErrors(currentSQLError);\n\t\t}\n\t}", "public void Disconnect() {\n\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tps.close(); // cerrar el statement tb cierra el resultset.\n\t\t} catch (SQLException e) {\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tconn.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\t/* no hago nada */}\n\t\t\ttry {\n\t\t\t\tps.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\t/* no hago nada */}\n\t\t}\n\t}", "public void closeConnection() {\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException sqlEx) {\n dbg(\"closeConnection-->SQLException raised while closing conn =\" + sqlEx.getMessage());\n }\n }\n }", "public void pgClose() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tSystem.out.println(\"Connection closed\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.err.println(\"Connection could not be closed ĘC SQLexception\");\n\t\t}\n\t\t\n\t}", "public void close() {\n if (connection == null) {\n LOGGER.error(\"DB : Uninitialized DB Connection.\");\n return;\n }\n\n try {\n if (connection.isClosed()) {\n LOGGER.warn(\"Connection is already closed.\");\n return;\n }\n connection.close();\n } catch (SQLException e) {\n LOGGER.error(\"Error closing the connection.\", e);\n }\n\n }", "private void endConnection(){\n\t\tif(this.connection != null){\n\t\t\ttry {\n\t\t\t\tthis.connection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void closeConnection() {\n try {\n //check if the connection is not null close it and make it null.\n if (this.dbConnection != null) {\n this.dbConnection.close();\n this.dbConnection = null;\n }\n } catch (SQLException ex) {\n System.err.println(\"Exception in closing the connection\");\n System.err.println(ex.getMessage());\n }\n }", "public void closeConnection() {\n try {\n String token = conn.toString();\n conn.close();\n log.info(\"Database Connection Closed. ID: {} \", token);\n } catch (Exception e) {\n log.error(\"Error closing the database connection. \\n Trace: {}\", ExceptionUtilities.stacktraceToString(e));\n }\n }", "public void close() {\n\t\ttry {\n\t\t\tif (resultSet != null) {\n\t\t\t\tresultSet.close();\n\t\t\t}\n\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\n\t\t\tif (connect != null) {\n\t\t\t\tconnect.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "public void close() throws SQLException {\n currentPreparedStatement.close();\n }", "public void close() {\r\n\t\ttry {\r\n\t\t\tif (resultSet != null) {\r\n\t\t\t\tresultSet.close();\r\n\t\t\t}\r\n\r\n\t\t\tif (statement != null) {\r\n\t\t\t\tstatement.close();\r\n\t\t\t}\r\n\r\n\t\t\tif (connect != null) {\r\n\t\t\t\tconnect.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t}", "public void close() {\r\n\t\ttry {\r\n\t\t\tif (resultSet != null) {\r\n\t\t\t\tresultSet.close();\r\n\t\t\t}\r\n\r\n\t\t\tif (statement != null) {\r\n\t\t\t\tstatement.close();\r\n\t\t\t}\r\n\r\n\t\t\tif (connect != null) {\r\n\t\t\t\tconnect.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t}", "public void close() {\r\n\t\ttry {\r\n\t\t\trs.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tst.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tconn.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void close()\n throws SQLException\n {\n m_rs.close();\n }", "public void closeConnection() {\n\t\ttry {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t}\n\t\tconn = null;\n\t}", "@Override\n public void disconnect() {\n\n // silently return if connection is closed\n if (!is_open) {\n return;\n }\n\n // close connection and statement, shutdown driver\n try {\n statement.close();\n connection.close();\n DriverManager.getConnection(\"jdbc:derby:\" + db_name + \";shutdown=true\");\n is_open = false;\n } catch (SQLException e) {\n System.out.println(\"Java DB connection did not shutdown successfully.\");\n }\n\n //System.out.println(\"Java DB connection shutdown successfully!\");\n\n }", "public void ExitConection(){\n try {\n resultSet.close();\n preparedStatement.close();\n conection.close();\n } catch (Exception e) {\n// MessageEmergent(\"Fail ExitConection(): \"+e.getMessage());\n }\n }", "public void closeConnection() {\n if (this.connection != null && this.connected) {\n try {\n this.connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }", "private void close() {\n\t\t try {\n\t\t\tresultSet.close();\n\t\t\tstatement.close();\n\t\t\t connect.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t }", "public static void closeConnection() throws SQLException{\n\t\tif( conn != null ){\n\t\t\tlogger.info(\"Closing connection.\");\n\t\t\tconn.close();\n\t\t\tconn = null;\n\n\t\t}\n\t}", "public void close() throws SQLException {\n\n try {\n debugCodeCall(\"close\");\n closeInternal();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public static void terminate()\r\n\t{\r\n\t\ttry\r\n \t\t{ \t// close the statement\r\n \t\taStatement.close();\r\n\t\t}\r\n\t\tcatch (SQLException e)\r\n\t\t\t{ System.out.println(e);\t}\r\n\t}", "public void closeConnection() throws SQLException {\n if(connected) {\n dbConnection.close();\n }\n Logger logger = Logger.getAnonymousLogger();\n logger.log(Level.INFO, \"Closed connection successfully\");\n }", "public static void closeConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\tconnect.close();\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void destroy() {\n\t\ttry {\n//\t\t\tif(stmt!=null&&!stmt.isClosed()){\n//\t\t\t\tstmt.close();\n//\t\t\t}\n\t\t\tif(conn!=null&&conn.isClosed()){\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tsuper.destroy();\n\t}", "@Override\r\n\tpublic void close() {\n\t \t if (conn != null) {\r\n\t \t\t try {\r\n\t \t\t\t conn.close();\r\n\t \t\t } catch (Exception e) {\r\n\t \t\t\t e.printStackTrace();\r\n\t \t\t }\r\n\t \t }\r\n\t}", "public void close() throws SQLException {\n dataBaseConnector.close();\n }", "public void disconnect() {\n \t for (PreparedStatementID i: _preparedStatements.keySet()) {\n \t try { _preparedStatements.get(i).close(); } catch (SQLException ignore) {}\n \t }\n \t _preparedStatements.clear();\n \t // Close the database connection:\n \t try {con.close(); } catch (SQLException ignore) {}\n \t con = null;\n \t return;\n \t }", "@Override\n public void close() throws SQLException {\n }", "public void closeConnection() {\n //It's important to close the connection when you are done with it\n try {\n connection.close();\n DriverManager.getConnection(JDBC_URL + \";shutdown=true\"); // shut Derby down, See: https://db.apache.org/derby/papers/DerbyTut/embedded_intro.html#shutdown\n } catch (SQLException ignore) {\n LOGGER.log(Level.SEVERE, \"Unable to close DB connection due to error {0}\", ignore.getMessage());\n\n // Alternative: Cascade the original exception (or rewrap it as a more specific exception)\n // Here, we just log it \n }\n }", "public void close()\n\t{\n\t\ttry\n\t\t{\n\t\t\tthis.conexao.close();\n\t\t\tSystem.out.println(\"\\n\"+nomeDao+\" desconectado!\\n\");\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tSystem.out.println(\"\\nNao ha conexao \"+nomeDao+\" a ser fechada!\\n\");\n\t\t}\n\t}", "public static void close (Connection c, Statement s) {\n\t\tclose (c, s, null);\n\t}", "public void close(){\r\n if(conn!=null){\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n System.out.println(\"Error al cerrar la base de datos: \\n\"+ex.getMessage());\r\n }\r\n }\r\n }", "public void cleanup(){\n try{\n if (this._connection != null){\n this._connection.close ();\n }//end if\n }catch (SQLException e){\n // ignored.\n }//end try\n }", "public static void closeStatement(PreparedStatement statement) throws SQLException {\n\tif (null != statement) {\n\t statement.close();\n\t}\n }", "public void closeCon(){\r\n\t\ttry\r\n\t\t{\r\n\t\t\tmyConnection.close();\r\n\r\n\t\t}\r\n\r\n\t\tcatch (SQLException e )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"something went wrong with closing DB connection\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void close() {\n\t\t\tDB.close(m_rs, m_pstmt);\n\t\t\tm_rs = null;\n\t\t\tm_pstmt = null;\n\t\t}", "public void closeConnection();", "public void disconnect(){\n try {\n if(conn!=null){\n conn.close();\n System.out.println(\"Closed connection to the Database\");\n }else{\n System.out.println(\"Not closed connection to the Database\");\n }\n } catch (SQLException e) {\n System.out.println(\"ERROR, Cannot close the connection\" + e.getSQLState());\n }\n catch (NullPointerException e){\n System.out.println(\"ERROR, Not Created previous connection to the database\");\n e.getStackTrace();\n }\n }", "public final void close() {\n\t\ttry {\n\t\t\tcon.commit( ); // Commit any updates\n\t\t\tcon.close ( );\n\t\t}\n\t\tcatch ( Exception e ) {\n\t\t\tnotify( \"Db.close\", e );\n\t\t};\n\t}", "protected void close() {\n\t\tthis.connection.close();\n\t\tthis.connection = null;\n\t}", "public void closeConnection() throws SQLException {\r\n\t\ttry {\r\n\t\t\tif (preparedStatement != null)\r\n\t\t\t\tpreparedStatement.close();\r\n\t\t} finally {\r\n\t\t\tif (connection != null)\r\n\t\t\t\tconnection.close();\r\n\t\t}\r\n\t}", "@Override\n public void closeConnection() {\n if (connection != null) {\n try {\n //restore autocommit value\n connection.setAutoCommit(autoCommit);\n connection.close();\n } catch (SQLException e) {\n LOGGER.error(\"Can't close connection \", e);\n }\n }\n }", "@Override\n\tpublic void disconnect() throws SQLException {\n if (jdbcConnection != null && !jdbcConnection.isClosed()) {\n jdbcConnection.close();\n }\t\t \n\t\t\n\t}", "private static void closeStatement(PreparedStatement statement) throws ProfileKeyManagerPersistenceException {\n try {\n statement.close();\n } catch (SQLException ex) {\n throw new ProfileKeyManagerPersistenceException(\"error closing statement: \" + ex.getMessage(), ex);\n }\n }", "public void close() throws SQLException {\n Exception foundExeption = null;\n for (PreparedStatement prep : prepHash.values()) {\n try {\n prep.close();\n } catch (Exception e) {\n foundExeption = e;\n }\n }\n // Close the connection\n try {\n conn.close();\n } catch (SQLException e) {\n throw new SQLException(\"Failed to close database: \" + e);\n }\n\n\n // we do this so we know we tried to close every connection\n // unfortunately we only recieve the final connection error\n if (foundExeption != null) {\n throw new SQLException(\"Failed to close database prepareStatement: \"\n + foundExeption);\n }\n }", "public void closeConnection() {\r\n if (getConnection() != null && StringUtil.isNotBlank(config.getDataSource())\r\n /*&& this.conn.getConnection() instanceof PooledConnection */) {\r\n LOG.ok(\"Close the pooled connection\");\r\n dispose();\r\n }\r\n }", "public void ExitStatements() {\n try {\n preparedStatement.close();\n } catch (Exception e) {\n// MessageEmergent(\"Fail ExitStatements(): \"+e.getMessage());\n }\n }", "private void close(Statement stmt) {\n\t\tif (stmt != null) {\n\t\t\ttry {\n\t\t\t\tstmt.close();\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t}\n\t\t}\n\t}", "private void closeConnection()\n\t{\n\t\tif(result != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tresult.close();\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t\tcatch(Exception ignore){}\n\t\t}\n\t\tif(con != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tcon.close();\n\t\t\t\tcon = null;\n\t\t\t}\n\t\t\tcatch(Exception ignore){}\n\t\t}\n\t}", "protected void closeDriver() throws SQLException {\n this.getStatement().close();\n this.getConnection().close();\n }", "public static void close(Statement statementDb) {\n if (statementDb != null) {\n try {\n statementDb.close();\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING, \"Eroare inchidere interogare!\");\n }\n }\n }", "public void closeConnection() {\n try {\n if (connection != null) {\n connection.close();\n connection = null;\n }\n } catch (Exception e) {\n System.out.print(e.getMessage());\n }\n }", "private void close() {\n/* */ try {\n/* 253 */ if (this.dataReader != null) {\n/* 254 */ this.dataReader.close();\n/* 255 */ this.dataReader = null;\n/* */ } \n/* 257 */ } catch (SQLException e) {\n/* 258 */ logger.log(Level.SEVERE, (String)null, e);\n/* */ } \n/* */ try {\n/* 261 */ if (this.pstmt != null) {\n/* 262 */ this.pstmt.close();\n/* 263 */ this.pstmt = null;\n/* */ } \n/* 265 */ } catch (SQLException e) {\n/* 266 */ logger.log(Level.SEVERE, (String)null, e);\n/* */ } \n/* */ }", "public void close () throws IOException , GateException {\n try{\n conn.close();\n }\n catch (SQLException e){\n log.error(\"Problem closing database connection\", e);\n System.exit(5);\n }\n\n }", "public abstract void close() throws SQLException;" ]
[ "0.7691169", "0.7663132", "0.76481664", "0.7578802", "0.7576546", "0.7527081", "0.7488203", "0.74849063", "0.7471875", "0.7453921", "0.74535316", "0.73837674", "0.7352254", "0.72955364", "0.726536", "0.72442514", "0.7225725", "0.72255284", "0.7219425", "0.72043395", "0.7203006", "0.7195941", "0.71562135", "0.7135663", "0.71319383", "0.7107238", "0.7106052", "0.70892584", "0.70877165", "0.7078769", "0.7075957", "0.7075312", "0.7074362", "0.7072408", "0.70723975", "0.7069129", "0.7061613", "0.70565486", "0.70515865", "0.7044564", "0.70339566", "0.7021108", "0.70095485", "0.7005152", "0.69968414", "0.69869477", "0.69868916", "0.6969871", "0.696522", "0.6960306", "0.69418126", "0.693984", "0.69364977", "0.69279104", "0.6925846", "0.6924447", "0.6924447", "0.6923403", "0.689227", "0.68912756", "0.688605", "0.6869096", "0.6850974", "0.6831783", "0.68257725", "0.68250513", "0.68134725", "0.68071795", "0.6799787", "0.6778372", "0.676148", "0.6759637", "0.6745913", "0.67436016", "0.6743392", "0.67319924", "0.6719274", "0.67174", "0.67155564", "0.6712963", "0.6701533", "0.6694854", "0.66929734", "0.66928494", "0.6689751", "0.66845846", "0.66775954", "0.66541785", "0.66497034", "0.66446716", "0.6625171", "0.6625169", "0.6624296", "0.66216326", "0.66204643", "0.661999", "0.66175413", "0.65969163", "0.65964997", "0.65945554", "0.65943813" ]
0.0
-1
Executes a SELECT statement. By default this method will print the output to the console as a CSV. The output manager can be set explicitly by using the setOutputManager method. If the query is successful a CallableStatement is returned. Otherwise null is returned.
public CallableStatement execute(String query) throws RtpException { /* Create a Callable statement. */ CallableStatement stmt = Connector.createCallableStatement(conn, query); /* Execute the statement */ if (stmt != null) { try { boolean check = stmt.execute(); if (check) { if(outputManager.getFormat() != OutputFormat.NONE || outputManager.getDevice() != OutputDevice.NONE) { // ResultWriter.writeResult(stmt, outputManager, stmt.getResultSet()); } } else { log.error("Error executing the statement"); } } catch (Exception e) { throw new RtpException("Error preparing/executing the statement: " + query, e); } } return stmt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultSet executeSQL() {\t\t\n\t\tif (rs != null) {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t} catch(SQLException se) {\n\t\t\t} finally {\n\t\t\t\trs = null;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\trs = pstmt.executeQuery();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public ResultSet executeQuery() throws SQLException {\n return statement.executeQuery();\n }", "Object executeSelectQuery(String sql) { return null;}", "public static String getSelectStatement() {\n return SELECT_STATEMENT;\n }", "protected final CallableStatement getCallableStatement()\n throws SQLException\n {\n return (CallableStatement)getStatement();\n }", "ResultSet runSQL(String query) {\n try {\n return connection.prepareStatement(query).executeQuery();\n }\n catch (SQLException e) {\n System.err.println(e.getMessage());\n return null;\n }\n }", "@Override\n public Object doInCallableStatement(CallableStatement cs) throws SQLException, DataAccessException {\n cs.execute();\n\n //result.add(cs.getString(9));\n //result.add(cs.getString(10));\n return null;\n }", "public ResultSet execute(PreparedStatement query)\r\n {\r\n try\r\n {\r\n return query.executeQuery();\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n }\r\n return null;\r\n }", "ResultSet executeQuery() throws SQLException;", "public ResultSet executeQuery() throws SQLException {\n return currentPreparedStatement.executeQuery();\n }", "private void executeSelect(String query){\n try {\n statement = connection.createStatement();\n rs = statement.executeQuery(query);\n } catch (SQLException e) {\n throw new RuntimeException(e);\n } \n }", "private ResultSet execute_statement(String sql, boolean returns_rs) {\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n\n try {\n connection = this.connect(); //connect to database\n statement = connection.createStatement();\n if (returns_rs) {\n resultSet = statement.executeQuery(sql); //calculate resultSet\n } else {\n statement.execute(sql); //execute statement\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n if (!returns_rs) {\n try {\n this.disconnect(null, statement, connection); //disconnect from database\n } catch (SQLException ignored) {\n\n }\n }\n }\n return resultSet;\n }", "public SelectStatement getSelectStatement() {\r\n return selectStatement;\r\n }", "public ResultSet execute(final String stmt) throws SQLException {\n return connection.createStatement().executeQuery(stmt);\n }", "public DbmsOutput(Connection conn) throws SQLException {\n enable_stmt = conn.prepareCall(\"begin dbms_output.enable(:1); end;\");\n disable_stmt = conn.prepareCall(\"begin dbms_output.disable; end;\");\n\n show_stmt = conn.prepareCall(\n \"declare \"\n + \" l_line varchar2(255); \"\n + \" l_done number; \"\n + \" l_buffer long; \"\n + \"begin \"\n + \" loop \"\n + \" exit when length(l_buffer)+255 > :maxbytes OR l_done = 1; \"\n + \" dbms_output.get_line( l_line, l_done ); \"\n + \" l_buffer := l_buffer || l_line || chr(10); \"\n + \" end loop; \"\n + \" :done := l_done; \"\n + \" :buffer := l_buffer; \"\n + \"end;\");\n }", "public ResultSet doQuery( String sql) throws SQLException {\r\n\t\tif (dbConnection == null)\r\n\t\t\treturn null;\r\n\t\t// prepare sql statement\r\n\t\toutstmt = dbConnection.prepareStatement(sql);\r\n\t\tif (outstmt == null)\r\n\t\t\treturn null;\r\n\t\tif (outstmt.execute()){\r\n\t\t\t//return stmt.getResultSet(); //old\r\n\t\t\toutrs = outstmt.getResultSet();\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn null;\r\n\t\treturn outrs;\r\n\t}", "private void sampleQuery(final SQLManager sqlManager, final HttpServletResponse resp)\n throws IOException {\n try (Connection sql = sqlManager.getConnection()) {\n\n // Execute the query.\n final String query = \"SELECT 'Hello, world'\";\n try (PreparedStatement statement = sql.prepareStatement(query)) {\n \n // Gather results.\n try (ResultSet result = statement.executeQuery()) {\n if (result.next()) {\n resp.getWriter().println(result.getString(1));\n }\n }\n }\n \n } catch (SQLException e) {\n LOG.log(Level.SEVERE, \"SQLException\", e);\n resp.getWriter().println(\"Failed to execute database query.\");\n }\n }", "public void executeQuery(Statement stmt, String query) throws SQLException {\n //check if it is select\n Boolean ret = stmt.execute(query);\n if (ret) {\n ResultSet result = stmt.executeQuery(query);\n ResultSetMetaData rsmd = result.getMetaData();\n int columnCount = rsmd.getColumnCount();\n // The column count starts from 1\n\n //ArrayList<String> column_names = new ArrayList<String>();\n for (int i = 1; i <= columnCount; i++) {\n String name = rsmd.getColumnName(i);\n //column_names.add(name);\n System.out.format(\"|%-30s \",name);\n // Do stuff with name\n }\n System.out.println();\n\n while (result.next()) {\n for (int i = 0; i < columnCount; i++) {\n System.out.format(\"|%-30s \",result.getString(i+1));\n }\n System.out.println();\n }\n // STEP 5: Clean-up environment\n result.close();\n }\n }", "public int executeQueryAndPrintResult (String query) throws SQLException {\n // creates a statement object\n Statement stmt = this._connection.createStatement ();\n\n // issues the query instruction\n ResultSet rs = stmt.executeQuery (query);\n\n /*\n ** obtains the metadata object for the returned result set. The metadata\n ** contains row and column info.\n */\n ResultSetMetaData rsmd = rs.getMetaData ();\n int numCol = rsmd.getColumnCount ();\n int rowCount = 0;\n\n // iterates through the result set and output them to standard out.\n boolean outputHeader = true;\n while (rs.next()){\n\t if(outputHeader){\n\t for(int i = 1; i <= numCol; i++){\n\t\tSystem.out.print(rsmd.getColumnName(i) + \"\\t\");\n\t }\n\t System.out.println();\n\t outputHeader = false;\n\t }\n for (int i=1; i<=numCol; ++i)\n System.out.print (rs.getString (i) + \"\\t\");\n System.out.println ();\n ++rowCount;\n }//end while\n stmt.close ();\n return rowCount;\n }", "public ResultSet executeQueryCmd(String sql) {\n\t\ttry {\n\t\t\treturn stmt.executeQuery(sql);\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} \n\t}", "public List<List<String>> executeQueryAndReturnResult (String query) throws SQLException { \n // creates a statement object \n Statement stmt = this._connection.createStatement (); \n \n // issues the query instruction \n ResultSet rs = stmt.executeQuery (query); \n \n /* \n ** obtains the metadata object for the returned result set. The metadata \n ** contains row and column info. \n */ \n ResultSetMetaData rsmd = rs.getMetaData (); \n int numCol = rsmd.getColumnCount (); \n int rowCount = 0; \n \n // iterates through the result set and saves the data returned by the query. \n boolean outputHeader = false;\n List<List<String>> result = new ArrayList<List<String>>(); \n while (rs.next()){\n List<String> record = new ArrayList<String>(); \n for (int i=1; i<=numCol; ++i) \n record.add(rs.getString (i)); \n result.add(record); \n }//end while \n stmt.close (); \n return result; \n }", "@Override\n\tpublic ResultSet executeQuery(final String sql) throws SQLException {\n\n\t\tfinal String transformedSQL = transformSQL(sql);\n\n\t\tif (transformedSQL.length() > 0) {\n\n\t\t\tfinal Statement statement = new SimpleStatement(transformedSQL);\n\n\t\t\tif (getMaxRows() > 0)\n\t\t\t\tstatement.setFetchSize(getMaxRows());\n\n\t\t\tresultSet = session.execute(statement);\n\n\t\t\twarnings.add(resultSet);\n\n\t\t\treturn new CassandraResultSet(driverContext, resultSet);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\r\n\tpublic ResultSet call() throws Exception {\n\t\tif (statement.execute()) {\r\n\t\t\tpool.checkIn(conn);\r\n\t\t\treturn statement.getResultSet();\r\n\t\t}\r\n\t\tpool.checkIn(conn); // Release the connection back to the pool\r\n\t\treturn null;\r\n\t}", "public static ResultSet read(final ILogger aLogger, final PreparedStatement aStatement) {\r\n try {\r\n return aStatement.executeQuery();\r\n } catch (SQLException ex) {\r\n error(aLogger, \"read\", \"PreparedStatement read failed.\", ex);\r\n return null;\r\n }\r\n }", "public static String getQueryResult(SQLquery query, Connection con) throws SQLException {\n\n //load selected database query and run it against database\n\n Statement stmt = con.createStatement();\n ResultSet result = stmt.executeQuery(query.sql);\n String output = \"\";\n\n /**\n * build output string\n */\n while (result.next()) {\n ResultSetMetaData rsmd = result.getMetaData();\n int columnsnumber = rsmd.getColumnCount();\n for (int i = 1; i < columnsnumber + 1; i++) {\n String name = rsmd.getColumnName(i);\n if (i == columnsnumber) {\n\n /**\n * add new line when last column is reached otherwise just add \",\" for CSV format\n */\n output = output + result.getString(name) + \"\\n\";\n } else {\n output = output + result.getString(name) + \",\";\n }\n }\n }\n /**\n * return output string\n */\n return output;\n }", "public ResultSet runQuery(String sql){\n\n try {\n\n Statement stmt = conn.createStatement();\n\n return stmt.executeQuery(sql);\n\n } catch (SQLException e) {\n e.printStackTrace(System.out);\n return null;\n }\n\n }", "public ResultSet ExecuteQuery(String statement) throws SQLException{\r\n\t\treturn _dbStatement.executeQuery(statement);\r\n\t}", "public Statement getStatement() throws SQLException {\n\n try {\n debugCodeCall(\"getStatement\");\n checkClosed();\n if (closeStatement) {\n // if the result set was opened by a DatabaseMetaData call\n return null;\n }\n return stat;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public void prepareExecuteSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteSelect();\n }", "public ResultSet executeQuery(final String sql) {\n\t\ttry {\n\t\t\tassert !_connection.isClosed() : \"The connection is not open.\";\n\t\t} catch (SQLException e1) {\n\t\t\tSystem.err.println(\"The connection is not open.\");\n\t\t\te1.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\tStatement statement = null;\n\t\ttry {\n\t\t\tstatement = _connection.createStatement();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Statement <\" + statement + \"> Failed.\");\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tfinal ResultSet rs = statement.executeQuery(sql);\n\n\t\t\trs.last();\n\t\t\tfinal int noDataReturned = 0;\n\t\t\tif (rs.getRow() == noDataReturned) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\trs.first();\n\t\t\treturn rs;\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"RS Failed.\");\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public ResultSet getResultSet() throws SQLException {\n if (isClosed()) {\n throw new SQLException(\"Statement was closed\");\n }\n if (stmt_ref == null) {\n throw new SQLException(\"Prepare something first\");\n }\n\n if (!returnsResultSet) {\n return null;\n }\n\n // getResultSet can only be called once per result\n ResultSet to_return = select_result;\n this.select_result = null;\n return to_return;\n }", "private static void runQuery(Statement stmt, String sqlQuery) throws SQLException {\n\t\tResultSet rs;\n\t\tResultSetMetaData rsMetaData;\n\t\tString toShow;\n\t\trs = stmt.executeQuery(sqlQuery);\n\t\trsMetaData = rs.getMetaData();\n\t\tSystem.out.println(sqlQuery);\n\t\ttoShow = \"\";\n\t\twhile (rs.next()) {\n\t\t\tfor (int i = 0; i < rsMetaData.getColumnCount(); i++) {\n\t\t\t\ttoShow += rs.getString(i + 1) + \", \";\n\t\t\t}\n\t\t\ttoShow += \"\\n\";\n\t\t}\n\t\tif (toShow == \"\" ) {\n\t\t\ttoShow = \"No results found matching your criteria.\";\n\t\t}\n\t\tJOptionPane.showMessageDialog(null, toShow);\n\t}", "@Override\n \tpublic List<?> execute() {\n \t\ttry {\n \t\t\n \t\t\treturn _jdbcTemplate.query(_sql, new RowMapper() {\n \t\t\t\tpublic Object mapRow(ResultSet rs, int rowNum) throws SQLException {\n \t\t\t\t\tint campaignId = rs.getInt(1);\n \t\t\t\t\tint groupId = rs.getInt(2);\n \t\t\t\t\tint count = rs.getInt(3);\n \t\t\t\t\treturn new CampaignPromptGroupItemCount(campaignId, groupId, count);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t} catch (org.springframework.dao.DataAccessException dae) {\n \t\t\t\n \t\t\t_logger.error(\"an exception occurred running the sql '\" + _sql + \"' \" + dae.getMessage());\n \t\t\tthrow new DataAccessException(dae);\n \t\t\t\n \t\t}\n \t}", "ResultSet getResultSet(String query) {\n try {\n Statement statement = connection.createStatement();\n return statement.executeQuery(query);\n } catch (Exception e) {\n logger.info(\"getResultSet \" + e.getStackTrace().toString());\n return null;\n }\n }", "public void getSelect(String query, ArrayList<Object> params) {\r\n\t\tif (null != connection) {\r\n\t\t\tSystem.out.println(QueryProcessor.exec(connection, query, params));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Hubo algún error con la conexión...\");\r\n\t\t}\r\n\t}", "private ResultSet GetData(String query){\n\t\ttry{\n\t\t\tstat = connection.createStatement();\n\t\t\treturn stat.executeQuery(query);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public synchronized ResultSet executeQuery(String sql)\n throws SQLException {\n\n // tinySQL only supports one result set at a time, so\n // don't let them get another one, just in case it's\n // hanging out.\n //\n tinySQLResultSet trs;\n result = null; \n statementString = sql;\n\n // create a new tinySQLResultSet with the tsResultSet\n // returned from connection.executetinySQL()\n //\n if ( debug ) {\n System.out.println(\"executeQuery conn is \" + connection.toString());\n }\n trs = new tinySQLResultSet(connection.executetinySQL(this), this);\n return trs; \n }", "public ResultSet executeQuery(String sql) throws SQLException {\n return currentPreparedStatement.executeQuery(sql);\n }", "public ResultSet executeSQL(String sql) {\t\t\t\t\t\n\t\tif (rs != null) {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t} catch(SQLException se) {\n\t\t\t} finally {\n\t\t\t\trs = null;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch(SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}\n\t\treturn rs;\t\t\t\t\t\t\t\t\t\t\t\t\t// Note that result can be null if something fail.\n\t}", "@Override\r\n\tpublic String getResult(CallableStatement cs, int columnIndex)\r\n\t\t\tthrows SQLException {\n\t\treturn null;\r\n\t}", "public Statement getStatement(){\n \n try{\n \n return this.connection.createStatement();\n \n }catch(SQLException e){\n \n System.out.println(e.getMessage());\n return null;\n \n }\n \n }", "public ResultSet executeQuery(String query) throws SQLException {\n Connection con = this.getConnection();\n\n if (con == null) {\n throw new SQLException(\"Can't get database connection\");\n }\n\n Statement statement = con.createStatement();\n\n ResultSet result = statement.executeQuery(query);\n con.close(); // Not sure if allowed to close connection before result.\n // MAKE SURE to close result after using it! result.close();\n return result;\n }", "public static ResultSet getResultSet() throws SQLException\n\t{\n\t\tstatement = connection.createStatement();\n\t\tresultSet = statement.executeQuery(selectQuery);\n\t\t\n\t\treturn resultSet;\n\t}", "public static ResultSet Execute(String query) throws SQLException{\r\n\t\ttry {\r\n\t\t\tinitConnection();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(e.toString());\r\n\t\t}\r\n\t\tStatement state = dbCon.createStatement();\r\n\t\treturn state.executeQuery(query);\t\t\t\r\n\t}", "SortingPlanOutputRow getFPDSortingPlanOutput();", "Statement getStmt();", "public void execute() throws SQLException {\n\t\ttry {\n\t\t\tselect.setUsername(\"INTRANET\");\n\t\t\tselect.setPassword(\"INTRANET\");\n\t\t\tselect.execute();\n\t\t}\n\n\t\t// Liberar recursos del objeto select.\n\t\tfinally {\n\t\t\tselect.close();\n\t\t}\n\t}", "public ResultSet execute(String query)\n\t{\n\t\tResultSet resultSet = null;\n\t\ttry {\n\t\tStatement statement = this.connection.createStatement();\n\t\tresultSet = statement.executeQuery(query);\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error while executing query.\" +e.getMessage());\n\t\t}\n\t\treturn resultSet;\n\t}", "private ResultSet executeQuery(String query) {\r\n Statement stmt;\r\n ResultSet result = null;\r\n try {\r\n// System.out.print(\"Connect DB .... \");\r\n conn = openConnect();\r\n// System.out.println(\"successfully \");\r\n stmt = conn.createStatement();\r\n result = stmt.executeQuery(query);\r\n } catch (SQLException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return result;\r\n }", "public static ResultSet executeQuery(ISession session, \n String sql) \n throws SQLException \n {\n \tISQLConnection sqlcon = session.getSQLConnection(); \n if (sqlcon == null || sql == null) {\n return null;\n }\n Statement stmt = null;\n ResultSet rs = null;\n \n Connection con = sqlcon.getConnection();\n try {\n if (DialectFactory.isMySQL(session.getMetaData())) {\n stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY,\n ResultSet.CONCUR_READ_ONLY);\n \n stmt.setFetchSize(Integer.MIN_VALUE);\n } else if (DialectFactory.isTimesTen(session.getMetaData())) {\n \tstmt = con.createStatement();\n \tint fetchSize = _prefs.getSelectFetchSize();\n \t// TimesTen allows a maximum fetch size of 128. \n \tif (fetchSize > 128) {\n \t\tlog.info(\n \t\t\t\"executeQuery: TimesTen allows a maximum fetch size of \" +\n \t\t\t\"128. Altering preferred fetch size from \"+fetchSize+\n \t\t\t\" to 128.\");\n \t\tfetchSize = 128;\n \t}\n \tstmt.setFetchSize(fetchSize);\n } else { \n stmt = con.createStatement();\n // Allow the user to set \"0\" for the fetch size to indicate that\n // this should not be called. JDBC-ODBC bridge driver fails to\n // execute SQL once you have set the fetch size to *any* value.\n if (_prefs.getSelectFetchSize() > 0) {\n stmt.setFetchSize(_prefs.getSelectFetchSize());\n }\n }\n } catch(SQLException e) {\n // Only close the statement if SQLException - otherwise it has to \n // remain open until the ResultSet is read through by the caller.\n SQLUtilities.closeResultSet(rs);\n SQLUtilities.closeStatement(stmt);\n throw e;\n }\n if (log.isDebugEnabled()) {\n //i18n[DBUtil.info.executequery=executeQuery: Running SQL:\\n '{0}']\n String msg = \n s_stringMgr.getString(\"DBUtil.info.executequery\", sql);\n log.debug(msg);\n }\n try {\n lastStatement = sql;\n rs = stmt.executeQuery(sql);\n } catch (SQLException e) {\n // Only close the statement if SQLException - otherwise it has to \n // remain open until the ResultSet is read through by the caller.\n if (stmt != null) { \n try {stmt.close();} catch (SQLException ex) { /* Do Nothing */}\n }\n throw e; \n }\n \n return rs;\n }", "public String getAllCallsStatement() {\n\t\treturn \"SELECT * FROM CALLS\";\n\t}", "public static ResultSet readTableWithReturnValue(String spOrQueryName) {\r\n\t\ttry {\r\n\t\t\topenCon();\r\n\t\t\ts = conn.createStatement();\r\n\t\t\t_rs = s.executeQuery(spOrQueryName);\r\n\t\t\tcloseCon();\r\n\r\n\t\t} catch (Exception e) {\r\n//\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn _rs;\r\n\t}", "@Override\r\n\t\tpublic CallableStatement prepareCall(String sql, int resultSetType,\r\n\t\t\t\tint resultSetConcurrency) throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "public Statement getStatement() throws SQLException\n {\n return m_rs.getStatement();\n }", "public static ResultSet executeQuery(String query) {\n\t\t\n\t\tString url = \"jdbc:postgresql://localhost:5432/postgres\";\n String user = \"postgres\";\n String password = \"admin\";\n \n ResultSet rs = null;\n\n try {\n \tConnection con = DriverManager.getConnection(url, user, password);\n \t\tStatement st = con.createStatement();\n \t\n rs = st.executeQuery(query);\n\n\t\t\t/*\n\t\t\t * if (rs.next()) { System.out.println(rs.getString(1)); }\n\t\t\t */\n \n \n\n } catch (SQLException ex) {\n \n System.out.println(\"Exception occured while running query\");\n ex.printStackTrace();\n }\n \n return rs;\n\t}", "public String executeQueryS(String SQL){\n\t\ttry {\n\t\t\trs = stmt.executeQuery(SQL);\n\t\t\tif(rs.next()){\n\t\t\t\treturn rs.getString(\"Name\");\n\t\t\t}\n\t\t\treturn \"\";\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 \"\";\n\t}", "public String getStatement();", "public abstract Statement queryToRetrieveData();", "public ResultSet execute(final String sql) {\n\n\t\ttry {\n\t\t\tassert !_connection.isClosed() : \"The connection is not open.\";\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\tStatement statement = null;\n\t\ttry {\n\t\t\tstatement = _connection.createStatement();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Statement Failed\");\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tstatement.execute(sql);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"RS Failed\");\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tfinal ResultSet rs = statement.getGeneratedKeys();\n\t\t\trs.first();\n\n\t\t\tfinal int nowDataReturned = 0;\n\t\t\tif (rs.getRow() == nowDataReturned) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn rs;\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"RS Failed\");\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic String getSelect() {\n\t\treturn SQL;\r\n\t}", "public ResultSet executeQuery(String sql) throws Exception {\n\n\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t// stmt.close();\n\t\treturn rs;\n\t}", "public Statement getStatement() {\n try {\n stmt = conn.createStatement();\n } catch (SQLException sqle) {\n System.out.println(sqle.getMessage());\n }\n return stmt;\n }", "public ResultSet execute(String command) {\n try {\n connect = getConnection();\n statement = connect.createStatement();\n statement.execute(command);\n return statement.getResultSet();\n } catch (SQLException e) {\n System.err.println(\"Error while executing SQL statement\" + e.toString());\n return null;\n }\n }", "public abstract ResultList executeQuery(DatabaseQuery query);", "org.apache.calcite.avatica.proto.Common.StatementHandle getStatement();", "public void processResult(String sql, Consumer<ResultSet> resultSetConsumer) throws SQLException {\n processResult(sql, resultSetConsumer, (x) -> true, AppConstants.DEFAULT_FETCH_SIZE, ResultSet.FETCH_FORWARD);\n }", "public static ResultSet getSelectStatement(String sqlQuery) {\r\n\t\tResultSet results = null;\r\n\t\ttry {\r\n\r\n\t\t\tConnection conn = getConnection();\r\n\t\t\tStatement query = conn.createStatement();\r\n\t\t\tresults = query.executeQuery(sqlQuery);\r\n\t\t\tquery.close();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn results;\r\n\t}", "public SelectStatement() {\n\t\tthis.columnSpecs = new ArrayList<>();\n\t}", "public ResultSet executeQueryStatement(String statement) throws SQLException {\n\t\tStatement sqlStmt = connection.createStatement();\n\n\t\t// execute the statement and check whether there is a result\n\t\treturn sqlStmt.executeQuery(statement);\n\t}", "public ResultSet executeQuery(String query)\n\t{\n\t\tStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//System.out.println(\"Performing query: \" + query);\n\t\t\tstatement = getConnection().createStatement();\n\t\t\tresultSet = statement.executeQuery(query);\n\t\t\t//System.out.println(\"Query performed\");\n\t\t\t\n\t\t\treturn resultSet;\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public ResultSet querySelect(String query) throws SQLException {\n\t \t\t// Création de l'objet gérant les requêtes\n\t \t\tstatement = cnx.createStatement();\n\t \t\t\n\t \t\t// Exécution d'une requête de lecture\n\t \t\tResultSet result = statement.executeQuery(query);\n\t \t\t\n\t \t\treturn result;\n\t \t}", "public static ResultSet read(final ILogger aLogger,\r\n final String aSql,\r\n final Statement aStatement){\r\n if (aStatement == null) return null;\r\n if (StringUtility.isBlank(aSql)) return null;\r\n try {\r\n return aStatement.executeQuery(aSql);\r\n }\r\n catch (SQLException ex) {\r\n error(aLogger, \"read\", \"Query failed:\\n\" + aSql, ex);\r\n return null;\r\n }\r\n }", "public String getSQL() throws org.exolab.castor.jdo.QueryException {\r\n if (_expr != null) {\r\n return _expr.getStatement(true);\r\n }\r\n\r\n return _spCall;\r\n }", "@Override\n public void emitTuples() {\n\n Statement query = queryToRetrieveData();\n logger.debug(String.format(\"select statement: %s\", query.toString()));\n RecordSet rs;\n try {\n rs = store.getClient().query(null, query);\n while(rs.next()){\n Record rec = rs.getRecord();\n T tuple = getTuple(rec);\n outputPort.emit(tuple);\n }\n }\n catch (Exception ex) {\n store.disconnect();\n DTThrowable.rethrow(ex);\n }\n }", "boolean supportsCallableStatement();", "protected synchronized ResultSet pureSQLSelect(String query) {\n if(this.connect()) {\n try {\n this.statement = this.connection.createStatement();\n this.resultSet = this.statement.executeQuery(query);\n } catch(SQLException ex) {\n Logger.getLogger(MySQLMariaDBConnector.class.getName()).log(Level.SEVERE, null, ex);\n this.resultSet = null;\n }\n }\n return this.resultSet;\n }", "@Override\n\t@Nullable\n\tpublic <T> T execute(PreparedStatementCreator psc, PreparedStatementCallback<T> action) throws DataAccessException {\n\n\t\tAssert.notNull(psc, \"PreparedStatementCreator must not be null\");\n\t\tAssert.notNull(action, \"Callback object must not be null\");\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tString sql = getSql(psc);\n\t\t\tlogger.debug(\"Executing prepared SQL statement\" + (sql != null ? \" [\" + sql + \"]\" : \"\"));\n\t\t}\n\n\t\tConnection con = getTracedConnection();\n\n\t\tSpan queryExecSpan = tracer.spanBuilder(\"execute statement\").setRecordEvents(true).setSampler(Samplers.alwaysSample()).startSpan();\n\n\t\tPreparedStatement ps = null;\n\t\ttry (Scope ws = tracer.withSpan(queryExecSpan)) {\n\t\t\tps = psc.createPreparedStatement(con);\n\t\t\tapplyStatementSettings(ps);\n\t\t\tqueryExecSpan.addAnnotation(\"Statement:\" + ps.toString());\n\t\t\tT result = action.doInPreparedStatement(ps);\n\t\t\thandleWarnings(ps);\n\t\t\treturn result;\n\t\t} catch (SQLException ex) {\n\t\t\t// Release Connection early, to avoid potential connection pool deadlock\n\t\t\t// in the case when the exception translator hasn't been initialized yet.\n\t\t\tif (psc instanceof ParameterDisposer) {\n\t\t\t\t((ParameterDisposer) psc).cleanupParameters();\n\t\t\t}\n\t\t\tString sql = getSql(psc);\n\t\t\tJdbcUtils.closeStatement(ps);\n\t\t\tps = null;\n\t\t\tDataSourceUtils.releaseConnection(con, getDataSource());\n\t\t\tcon = null;\n\t\t\tthrow translateException(\"PreparedStatementCallback\", sql, ex);\n\t\t} finally {\n\t\t\tif (psc instanceof ParameterDisposer) {\n\t\t\t\t((ParameterDisposer) psc).cleanupParameters();\n\t\t\t}\n\t\t\tJdbcUtils.closeStatement(ps);\n\t\t\tDataSourceUtils.releaseConnection(con, getDataSource());\n\t\t\tqueryExecSpan.end();\n\t\t}\n\t}", "ResultSet executeQuery(DatabaseConnection dbConnection, ParameterList parameters, JDataRow parentRow)\n throws PLException {\n ps = this.getStatement(dbConnection);\n this.fillValues(ps, parameters, parentRow);\n ResultSet rs;\n try {\n // StatementInfo\n TransactionInfo tInfo = dbConnection.getDatabase().getTransactionInfo(dbConnection.getId());\n if(tInfo != null) {\n tInfo.addStatement(dbConnection, this);\n }\n if(myRequest.isDebug()) {\n String sql = this.toString();\n logger.debug(sql);\n }\n // Statement ausführen\n long _startTime = System.currentTimeMillis();\n rs = ps.executeQuery();\n // Zeit messen\n long _dura = System.currentTimeMillis() - _startTime;\n // 1. default aus Datenbank\n long maxExecutionTime = dbConnection.getDatabase().getDefaultMaxExecutionTime();\n // 2. aus Statement\n if(this.getMaxExecutionTime() != Integer.MAX_VALUE) {\n maxExecutionTime = this.getMaxExecutionTime();\n }\n // 3. aus Parameter\n if(parameters != null && parameters.getMaxExecutionTime() != Integer.MAX_VALUE) {\n maxExecutionTime = parameters.getMaxExecutionTime();\n }\n if(_dura > maxExecutionTime) {\n Logger slowLog = dbConnection.getDatabase().getSlowQueryLogger();\n if(slowLog != null) {\n String msg = \"Statement: \" + this.getSql() + \"\\n Paramter: \" + parameters\n + \"\\n maxExecutionTime exceeded: \" + _dura + \">\" + maxExecutionTime;\n slowLog.warn(msg);\n }\n }\n return rs;\n }\n catch(SQLException ex) {\n String msg = \"PL [ \" + myRequest.getLayerName() + \" ] Error executing query statement: \" + ex.getMessage();\n logger.error(msg, ex);\n throw new PLException(msg, ex);\n }\n }", "List<Map<String,Object>> executeSelectQuery(String query) {\n\n\t\t// preparing the list for the retrieved statements in the database\n\t\tList<Map<String, Object>> statementsList = new ArrayList<>();\n\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tstatement.setQueryTimeout(30); // set timeout to 30 sec.\n\n\t\t\t// the ResultSet represents a table of data retrieved in the database\n\t\t\tResultSet rs = statement.executeQuery(query);\n\n\t\t\t// the ResultSetMetaData represents all the metadata of the ResultSet\n\t\t\tResultSetMetaData rsmd = rs.getMetaData();\n\t\t\tint columnsNumber = rsmd.getColumnCount();\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tMap<String, Object> statementMap = new HashMap<>();\n\n\t\t\t\tfor (int i = 1; i <= columnsNumber; i++) {\n\n\t\t\t\t\tint columnType = rsmd.getColumnType(i);\n\n\t\t\t\t\tswitch (columnType) {\n\t\t\t\t\t\tcase Types.VARCHAR:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getString(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.NULL:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), null);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.CHAR:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getString(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.TIMESTAMP:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getTimestamp(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.DOUBLE:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getDouble(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.INTEGER:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getString(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.SMALLINT:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getInt(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.DECIMAL:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getBigDecimal(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getString(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// adding the Map to the statementsList\n\t\t\t\tstatementsList.add(statementMap);\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// in the end, we return the populated statementsList\n\t\treturn statementsList;\n\t}", "private void executeQuery() {\n }", "public ResultSet query(String table_name, String[] columns,\n String where_condition, String[] whereArgs, String order_by) {\n\n // silently return if connection is closed\n if (!is_open) {\n return null;\n }\n\n // build the query string\n StringBuilder query_string = new StringBuilder(\"SELECT \");\n\n // if there are specific columns to select, do so\n if (columns != null) {\n\n int length = columns.length;\n for (int i = 0; i < length; i++) {\n query_string.append(columns[i]);\n\n // if we aren't at the last value, separate with a comma\n if (i != length - 1) {\n query_string.append(\", \");\n }\n }\n } else {\n // select everything\n query_string.append(\"*\");\n }\n\n // add from clause and table name\n query_string.append(\" FROM \");\n query_string.append(table_name);\n\n // if there is a condition, include it\n if (where_condition != null) {\n query_string.append(\" WHERE \");\n\n // replace question marks in where condition with strings (Android style!)\n if (where_condition.contains(\"?\") && whereArgs != null && whereArgs.length > 0) {\n for (String whereArg : whereArgs) {\n where_condition = where_condition.replaceFirst(\"\\\\?\", \"'\" + whereArg + \"'\");\n }\n }\n\n // append the new where condition\n query_string.append(where_condition);\n } else {\n // if no condition, query every row! (not too dangerous)\n query_string.append(\" WHERE 1 = 1\");\n }\n\n // if there is an order, include it\n if (order_by != null) {\n query_string.append(\" ORDER BY \");\n query_string.append(order_by);\n }\n\n // try the query\n try {\n return statement.executeQuery(query_string.toString());\n } catch (SQLException e) {\n System.out.println(\"Could not process query for table \" + table_name);\n e.printStackTrace();\n }\n\n // default return value\n return null;\n\n }", "public void queryTransactions(){\n System.out.println(\"-----find transaction by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n //for every query input, do not format it into sql if it is null\n String sql = \"select * from transactionrecords join ClubMembers on transactionrecords.CustomerID = ClubMembers.CustomerID where 1=1\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n\n //if id is given, no need for other information\n if(!StringUtils.isNullOrEmpty(id)){\n sql+=(\" and TransactionID=\"+id);\n }else{\n System.out.print(\"cashier id: \");\n String cashierid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(cashierid)){\n sql+=(\" and CashierID=\"+cashierid);\n }\n System.out.print(\"store id: \");\n String storeid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(storeid)){\n sql+=(\" and StoreID=\"+storeid);\n }\n System.out.print(\"customer id: \");\n String customerid=scanner.nextLine();\n if(!StringUtils.isNullOrEmpty(customerid)){\n sql+=(\" and CustomerID=\"+customerid);\n }\n }\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\n\n //print all qualified result one by one\n while (result.next()) {\n cnt++;\n System.out.println(\"\\n=== No.\"+cnt+\" ===\");\n System.out.println(\"transaction id: \"+result.getInt(\"TransactionID\"));\n System.out.println(\"cashier id: \"+result.getInt(\"CashierID\"));\n System.out.println(\"store id: \"+result.getInt(\"StoreID\"));\n System.out.println(\"customer id: \"+result.getInt(\"CustomerID\"));\n System.out.println(\"customer first name: \"+result.getString(\"FirstName\"));\n System.out.println(\"customer last name: \"+result.getString(\"LastName\"));\n System.out.println(\"total price: \"+result.getDouble(\"TotalPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public static ResultSet query(String command) {\r\n\t\tif (isConnected()) try {\r\n\t\t\tConsole.sql(command);\r\n\t\t\treturn con.createStatement().executeQuery(command);\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "protected final ResultSet getResultSet(\n \t final PreparedStatement st,\n-\t final boolean autodiscovertypes,\n-\t final boolean callable,\n \t final RowSelection selection,\n+\t final LimitHandler limitHandler,\n+\t final boolean autodiscovertypes,\n \t final SessionImplementor session)\n \tthrows SQLException, HibernateException {\n \n-\t\tResultSet rs = null;\n \t\ttry {\n-\t\t\tDialect dialect = getFactory().getDialect();\n-\t\t\trs = st.executeQuery();\n+\t\t\tResultSet rs = st.executeQuery();\n \t\t\trs = wrapResultSetIfEnabled( rs , session );\n \n-\t\t\tif ( !dialect.supportsLimitOffset() || !useLimit( selection, dialect ) ) {\n+\t\t\tif ( !limitHandler.supportsLimitOffset() || !LimitHelper.useLimit( limitHandler, selection ) ) {\n \t\t\t\tadvance( rs, selection );\n \t\t\t}\n \n \t\t\tif ( autodiscovertypes ) {\n \t\t\t\tautoDiscoverTypes( rs );\n \t\t\t}\n \t\t\treturn rs;\n \t\t}\n \t\tcatch ( SQLException sqle ) {\n \t\t\tst.close();\n \t\t\tthrow sqle;\n \t\t}\n \t}", "public void demo5() {\n\n\t\t\t\t\tConnection con = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:orcl\",\"scott\",\"tiger\");\n\n\t\t\t\t\t\tCallableStatement cs = con.prepareCall(\"CALL squareNum(?,?)\");\n\n\t\t\t\t\t\tcs.setInt(1, 5);\n\t\t\t\t\t\tcs.registerOutParameter(2, Types.INTEGER);\n\t\t\t\t\t\t\n\t\t\t\t\t\tcs.execute();\n\t\t\t\t\t\tint res = cs.getInt(2);\n\t\t\t\t\t\tSystem.out.println(\"Result: \" + res);\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} finally {\n\t\t\t\t\t\t//DbUtils.closeConnection();\n\t\t\t\t\t}\n\n\t\t\t\t}", "protected T selectImpl(String sql, String... paramentros) {\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = BancoHelper.db.rawQuery(sql, paramentros);\n\t\t\t\n\t\t\tif (cursor.getCount() > 0 && cursor.moveToFirst()) {\n\t\t\t\treturn fromCursor(cursor);\n\t\t\t}\n\n\t\t\tthrow new RuntimeException(\"Não entrou no select\");\n\n\t\t} finally {\n\n\t\t\tif (cursor != null && !cursor.isClosed()) {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\r\n\t\tpublic CallableStatement prepareCall(String sql, int resultSetType,\r\n\t\t\t\tint resultSetConcurrency, int resultSetHoldability)\r\n\t\t\t\tthrows SQLException {\n\t\t\treturn null;\r\n\t\t}", "@Override\n public boolean execute(String sql) throws SQLException {\n\n // a result set object\n //\n tsResultSet r;\n\n // execute the query \n //\n r = connection.executetinySQL(this);\n\n // check for a null result set. If it wasn't null,\n // use it to create a tinySQLResultSet, and return whether or\n // not it is null (not null returns true).\n //\n if( r == null ) {\n result = null;\n } else {\n result = new tinySQLResultSet(r, this);\n }\n return (result != null);\n\n }", "public static ResultSet executeSelectQuery(String query){\n\t\tStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tCachedRowSetImpl cachedRowSet = null;\n\t\ttry{\n\t\t\tconnectDatabase();\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(query);\n\t\t\tcachedRowSet = new CachedRowSetImpl(); // cache the resultset\n\t\t\tcachedRowSet.populate(resultSet);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry{\n\t\t\t\t// close the connections\n\t\t\t\tif (resultSet != null) resultSet.close();\n\t\t\t\tif (statement != null) statement.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tdisconnectDatabase();\n\t\t}\n\t\treturn cachedRowSet;\n\t}", "public void demo3() {\n\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\",\"root\",\"root\");\n\n\t\t\tCallableStatement cs = con.prepareCall(\"CALL p2(?)\");\n\n\t\t\tcs.registerOutParameter(1, Types.INTEGER);\n\n\t\t\tcs.execute();\n\t\t\tint res = cs.getInt(1);\n\t\t\tSystem.out.println(\"Max price is : \" + res);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t//DbUtils.closeConnection();\n\t\t}\n\n\t}", "public void demo4() {\n\n\t\t\tConnection con = null;\n\t\t\ttry {\n\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\",\"root\",\"root\");\n\n\t\t\t\tCallableStatement cs = con.prepareCall(\"CALL squareNum(?,?)\");\n\t\t\t\t\t\n\t\t\t\tcs.setInt(1, 10);\n\t\t\t\tcs.registerOutParameter(2, Types.INTEGER);\n\t\t\t\t\n\t\t\t\tcs.execute();\n\t\t\t\tint res = cs.getInt(2);\n\t\t\t\tSystem.out.println(\"Square of 10 : \" + res);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\t//DbUtils.closeConnection();\n\t\t\t}\n\n\t\t}", "public ResultSet exicutionSelect(Connection con, String Query) throws SQLException {\n\tStatement stmt = con.createStatement();\n\t\n\t// step4 execute query\n\t\tResultSet rs = stmt.executeQuery(Query);\n\t\treturn rs;\n\t\n\t}", "public void impl(String tableName, String path, String encryptionType, String compressionType) {\n\t\tString query = selectQuery + tableName;\n\t\tAppLogger.getLogger().debug(\"firing query: \" + query);\n\t\tResultSet rs = null;\n\t\tResultSetMetaData rsmd = null;\n\n\t\tBufferedWriter bw = null;\n\n\t\ttry {\n\n\t\t\tdbconnection = this.ps.getConnection();\n\n\t\t\tAppLogger.getLogger().debug(\"Config received: \" + hdfsuri);\n\n\t\t\tFileSystem dfs = FileSystem.get(new URI(hdfsuri), this.conf);\n\t\t\tif (path.charAt(path.length() - 1) != '/')\n\t\t\t\tpath = hdfsuri + path + \"/\" + tableName + \".csv\";\n\t\t\telse\n\t\t\t\tpath = hdfsuri + path + tableName + \".csv\";\n\n\t\t\tbw = new BufferedWriter(new OutputStreamWriter(dfs.create(new Path(path))));\n\n\t\t\tdbstatement = dbconnection.createStatement();\n\n\t\t\trs = dbstatement.executeQuery(query);\n\n\t\t\trsmd = rs.getMetaData();\n\t\t\tint i = 1;\n\n\t\t\twhile (i <= rsmd.getColumnCount()) {\n\t\t\t\tString columnName = rsmd.getColumnName(i) + \" ,\";\n\t\t\t\tif (i == rsmd.getColumnCount())\n\t\t\t\t\tcolumnName = columnName.substring(0, columnName.length() - 2);\n\t\t\t\tbw.write(columnName);\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\tbw.write(QueryIOConstants.NEW_LINE);\n\n\t\t\trs.setFetchSize(1000);\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tfor (i = 1; i <= rsmd.getColumnCount() - 1; i++) {\n\t\t\t\t\tbw.write(rs.getString(rsmd.getColumnName(i)) + \" ,\");\n\t\t\t\t}\n\t\t\t\tbw.write(rs.getString(rsmd.getColumnName(i)));\n\t\t\t\tbw.write(QueryIOConstants.NEW_LINE);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tAppLogger.getLogger().fatal(e.getMessage(), e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (bw != null)\n\t\t\t\t\tbw.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tAppLogger.getLogger().fatal(\"Error closing outputstream connection.\", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (dbstatement != null) {\n\t\t\t\t\tdbstatement.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tAppLogger.getLogger().fatal(\"Error closing statements.\", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (dbconnection != null) {\n\t\t\t\t\tdbconnection.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tAppLogger.getLogger().fatal(\"Error closing connection.\", e);\n\t\t\t}\n\t\t}\n\t}", "public static void callEx942d() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"We will count all the products with a price greater than what you enter.\");\n System.out.println(\"Price: \");\n int price = input.nextInt();\n\n Properties properties = new Properties();\n properties.setProperty(\"user\", USER);\n properties.setProperty(\"password\", PASS);\n properties.setProperty(\"useSSL\", \"false\");\n properties.setProperty(\"autoReconnect\", \"true\");\n\n Connection conn = null;\n Statement stmt = null;\n ResultSet rs = null;\n try{\n // Register JDBC driver\n Class.forName(JDBC_DRIVER);\n\n // Open a connection\n System.out.println(\"Connecting to database...\");\n //conn = DriverManager.getConnection(DB_URL, USER, PASS);\n conn = DriverManager.getConnection(DB_URL, properties);\n System.out.println(\"Connected Successfully.\");\n\n // Execute a query\n System.out.println(\"Executing Procedure...\");\n stmt = conn.createStatement();\n\n CallableStatement cStmt = conn.prepareCall(\"{call bobbykain_942d(?)}\");\n cStmt.setInt(1, price);\n boolean hadResults = cStmt.execute();\n if (hadResults) {\n rs = cStmt.getResultSet();\n ResultSetMetaData rsmd = rs.getMetaData();\n System.out.println(\"Procdure Result:\");\n int columnsNumber = rsmd.getColumnCount();\n while (rs.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue = rs.getString(i);\n System.out.print(columnValue + \" \" + rsmd.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n /* process second result set */\n if (cStmt.getMoreResults()) {\n ResultSet rs2 = cStmt.getResultSet();\n ResultSetMetaData rsmd2 = rs2.getMetaData();\n System.out.println(\"Procdure \" + \"{call bobbykain_931a(?)}\");\n System.out.println(\"Procdure Result:\");\n int columnsNumber2 = rsmd2.getColumnCount();\n while (rs2.next()) {\n for (int i = 1; i <= columnsNumber2; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue2 = rs2.getString(i);\n System.out.print(columnValue2 + \" \" + rsmd2.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n /* process second third set */\n if (cStmt.getMoreResults()) {\n ResultSet rs3 = cStmt.getResultSet();\n ResultSetMetaData rsmd3 = rs3.getMetaData();\n System.out.println(\"Procdure \" + \"{call bobbykain_931a(?)}\");\n System.out.println(\"Procdure Result:\");\n int columnsNumber3 = rsmd3.getColumnCount();\n while (rs3.next()) {\n for (int i = 1; i <= columnsNumber3; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue3 = rs3.getString(i);\n System.out.print(columnValue3 + \" \" + rsmd3.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n System.out.println(\"test\");\n\n\n System.out.println(\"Procedure Exexuted Successfully.\");\n }catch(SQLException se) {\n // Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e) {\n // Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n // finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2) {\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se) {\n se.printStackTrace();\n }// end finally try\n }// end try\n System.out.println(\"Goodbye!\");\n }", "@Override\n\tpublic ResultSet getResultSet() throws SQLException {\n\t\treturn new CassandraResultSet(driverContext, resultSet);\n\t}", "public void writeSQL(SQLOutput stream) throws SQLException {\n}", "public ResultSet ExecuteQuery(PreparedStatement PS)\n\t{\n\t\t\n\t\ttry {\n\t \n\t PS.execute();\n\t ResultSet rs = PS.getResultSet();\n\t return rs;\n\t } catch( Exception e ) {\n\t e.printStackTrace();\n\t }\n\t\treturn null;\n\t}", "protected ResultSet executeQuery(String query) {\n ResultSet rs = null;\n \n try {\n Statement stmt = getConnection().createStatement();\n rs = stmt.executeQuery(query);\n } catch (SQLException e) {\n String msg = \"Failed to execute query: \" + query;\n _logger.error(msg, e);\n throw new TSSException(msg, e);\n } \n \n return rs;\n }", "public ResultSet getResultSet() throws SQLException {\n return currentPreparedStatement.getResultSet();\n }", "public List<TransferObject> select(WhereStatement whereClause){\r\n\t long start, end;\r\n\t start = (new java.util.Date()).getTime(); \r\n\t String tableName = this.getTableName();\r\n\t List<TransferObject> items = new ArrayList<TransferObject>();\r\n\t Cursor c = null;\r\n\t StatementArguments arguments = new StatementArguments(tableName);\r\n\t \r\n\t arguments.setWhereClause(whereClause.createWhereStatement().toString());\r\n\t SelectStatement sql = new SelectStatement(arguments);\r\n\t\ttry {\r\n\t\t\tc = getDb().rawQuery(sql.createStatement().toString(), whereClause.getArguments());\r\n\t\t\tLog.i(\"GPA\", sql.createStatement().toString());\r\n\t c.moveToFirst(); \r\n\t while(!c.isAfterLast()){ \r\n\t \tTransferObject bean = this.fill(c);\r\n\t \titems.add( bean ); \r\n\t \tc.moveToNext(); \r\n\t } \r\n\t c.close();\r\n\t return items;\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}finally{\r\n\t\t\t if(c!=null){c.close();}\r\n\t end = (new java.util.Date()).getTime();\r\n\t Log.i(\"GPALOG\", \"Time to query: \" + (end - start) + \" ms\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}" ]
[ "0.5637839", "0.5481321", "0.52849656", "0.52032787", "0.51812637", "0.516199", "0.51539886", "0.5095385", "0.50707227", "0.5068915", "0.501845", "0.49983972", "0.49754044", "0.49501216", "0.49486443", "0.49484292", "0.4910265", "0.4904683", "0.48732117", "0.4850092", "0.48445135", "0.48415467", "0.48348054", "0.48127484", "0.47946036", "0.47882435", "0.47870845", "0.4782365", "0.4780383", "0.47644848", "0.4738086", "0.47132942", "0.46987456", "0.4679491", "0.46779656", "0.4673714", "0.465877", "0.46499804", "0.4646041", "0.46399152", "0.463417", "0.46266574", "0.46180743", "0.4614775", "0.46078303", "0.46011093", "0.45971695", "0.4584403", "0.45740208", "0.45720136", "0.4568796", "0.4547736", "0.454333", "0.45304212", "0.45118514", "0.4504286", "0.45030555", "0.44982496", "0.44905037", "0.44898704", "0.44847003", "0.44845548", "0.4483854", "0.4483594", "0.44713646", "0.44690442", "0.44677368", "0.44639617", "0.4463665", "0.4440029", "0.4429937", "0.4416613", "0.43961328", "0.43847403", "0.43842193", "0.43833503", "0.4379231", "0.43688574", "0.43578365", "0.43509647", "0.43396118", "0.4333297", "0.43264893", "0.43230036", "0.4311907", "0.43046865", "0.4292746", "0.42913753", "0.42703852", "0.42644504", "0.42636427", "0.4261769", "0.42611137", "0.4250125", "0.42492315", "0.42455024", "0.42300972", "0.4225445", "0.4209519", "0.42072153" ]
0.5652669
0
Sets the Output type for the query.
public void setOutputManager(OutputDevice device, OutputFormat format) { outputManager.setDevice(device); outputManager.setFormat(format); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AIOutput(int type) {\n\t\tsetOutput(type);\n\t}", "public void setQueryType(String queryType);", "public void setResultSetType(Class<? extends ResultSet> resultSetType)\r\n/* 40: */ {\r\n/* 41: 92 */ this.resultSetType = resultSetType;\r\n/* 42: */ }", "public Type getOutputType() {\n Preconditions.checkState(prepared);\n Preconditions.checkState(!closed);\n return outputType;\n }", "@Override\n public void setOutputType(TypeInformation<T> outTypeInfo, ExecutionConfig executionConfig) {\n Preconditions.checkState(\n elements != null,\n \"The output type should've been specified before shipping the graph to the cluster\");\n checkIterable(elements, outTypeInfo.getTypeClass());\n TypeSerializer<T> newSerializer = outTypeInfo.createSerializer(executionConfig);\n if (Objects.equals(serializer, newSerializer)) {\n return;\n }\n serializer = newSerializer;\n try {\n serializeElements();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }", "@Override\n public Map<String, Class> getReturnedTypes() {\n return outputTypes;\n }", "@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }", "void setOutputFormat(String outputFormat);", "public void setQueryType(String queryType) {\r\n\t\tthis._queryType = queryType;\r\n\t}", "public Builder setType(speech.multilang.Params.OutputControllerParams.Type value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value.getNumber();\n onChanged();\n return this;\n }", "@java.lang.Override public speech.multilang.Params.OutputControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.OutputControllerParams.Type result = speech.multilang.Params.OutputControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.OutputControllerParams.Type.UNKNOWN : result;\n }", "@java.lang.Override\n public speech.multilang.Params.OutputControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.OutputControllerParams.Type result = speech.multilang.Params.OutputControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.OutputControllerParams.Type.UNKNOWN : result;\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "@Override\n public void setType(String type) {\n this.type = type;\n }", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "void setType(String type) {\n this.type = type;\n }", "public void setType(String inType)\n {\n\ttype = inType;\n }", "public void setType(String type) \n {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setResult(String name, int type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setSqlType(type);\r\n }", "void setType(Type type)\n {\n this.type = type;\n }", "public void setType(String type){\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType( String type )\n {\n this.type = type;\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String value) {\n this.type = value;\n }", "public void setType(String type){\n \tthis.type = type;\n }", "public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}", "public void setType (String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType( String type ) {\n this.type = type;\n }", "public void setType(Type type) {\n this.type = type;\n }", "public void setType(Type type) {\n this.type = type;\n }", "public void setType(Type type) {\n this.type = type;\n }", "public final void setOutput(String sinkName, Object output) throws ConnectException,\n UnsupportedOperationException {\n if (output instanceof ContentHandler) {\n this.result = new SAXResult((ContentHandler) output);\n } else if (output instanceof WritableByteChannel) {\n this.result = new StreamResult(Channels.newOutputStream((WritableByteChannel) output));\n } else if (output instanceof OutputStream) {\n this.result = new StreamResult((OutputStream) output);\n } else if (output instanceof Writer) {\n this.result = new StreamResult((Writer) output);\n } else if (output instanceof File) {\n this.result = new StreamResult((File) output);\n } else if (output instanceof Node) {\n this.result = new DOMResult((Node) output);\n } else {\n throw new ConnectException(i18n.getString(\"unsupportedOutputType\", output.getClass(),\n XMLReaderFilter.class.getName()));\n }\n }", "public void setType (String typ) {\n type = typ;\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "void setType(java.lang.String type);", "@Override\n\tpublic void setType(String type) {\n\t\tthis.type = type;\n\t}", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n m_Type = type;\n }", "public Format setOutputFormat(Format output) {\n outputFormat = output;\n return output;\n }", "public void setIOType(final String iOTypeValue) {\n this.iOType = iOTypeValue;\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public final void setType(String type){\n\t\tthis.type = type;\t\n\t}", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setIOType(final String iOTypeValue) {\n this.iOType = iOTypeValue;\n }", "public void setIOType(final String iOTypeValue) {\n this.iOType = iOTypeValue;\n }", "public final void setType(String type) {\n this.type = type;\n }", "public void setType(String type){\n\t\tthis.type = type;\n\t}", "public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}", "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "public void declareOutputFields(OutputFieldsDeclarer declarer) {\n\t\tdeclarer.declare(new Fields(\"type\", \"word\"));\n\t}", "public void setResult(String name, Class type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setType(type);\r\n }", "public void setType(String type) {\n\n this.type = type;\n }", "public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}", "public void setType(Type type){\n\t\tthis.type = type;\n\t}", "public QueryType getType();", "public void setOutputEncoding(org.apache.xmlbeans.XmlAnySimpleType outputEncoding)\n {\n generatedSetterHelperImpl(outputEncoding, OUTPUTENCODING$18, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public abstract void setType();", "public void set_type(String t)\n {\n type =t;\n }", "public void setType(int type) {\n type_ = type;\n }", "public void setOutput(int output) {\n Output = output;\n }", "public DXExporterFromA3 setDocumentType(String DocumentType)\n\t{\n\t\tthis.despatchAdviceDocumentType = DocumentType;\n\n\t\treturn this;\n\t}", "public void setType(Type t) {\n type = t;\n }", "public void setType (int type) {\n this.type = type;\n }", "public void setType (int type) {\n this.type = type;\n }", "public void setOutput(String output) { this.output = output; }" ]
[ "0.60731065", "0.6044213", "0.5971325", "0.58461314", "0.57925457", "0.57590777", "0.5699003", "0.56939656", "0.5691975", "0.5634489", "0.5577086", "0.5576054", "0.5552802", "0.55326146", "0.54963213", "0.54706407", "0.54706407", "0.54706407", "0.54329395", "0.5423155", "0.5421508", "0.5413983", "0.5407889", "0.5403335", "0.5401619", "0.5387225", "0.5387225", "0.538504", "0.5384673", "0.53751457", "0.5371504", "0.5369315", "0.5363184", "0.5363184", "0.5363184", "0.5353794", "0.53534806", "0.53534806", "0.53534806", "0.53510165", "0.5350859", "0.53440285", "0.53440285", "0.53440285", "0.53440285", "0.5322041", "0.5322033", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.5310306", "0.53000546", "0.52939665", "0.5291091", "0.5290061", "0.5289575", "0.5276681", "0.5276681", "0.5266969", "0.52639866", "0.52639866", "0.526382", "0.5253092", "0.5250752", "0.524888", "0.524888", "0.524888", "0.5240045", "0.5239475", "0.5234814", "0.52302635", "0.52205545", "0.5220229", "0.52141637", "0.5213282", "0.5208969", "0.5208261", "0.5205155", "0.51984715", "0.51941556", "0.5187811", "0.5187811", "0.5183605" ]
0.0
-1
String bs = ((ActivityAlbum)myActivity).myGroup; Log.d("PASSED", bs);
@Override public void onBindViewHolder(Adapter_Album.myViewHolder holder, int position) { holder.tv_title.setText(mData.get(position).getProfileName()); //holder.background_img.setImageResource(mData.get(position).getBackground()); //holder.profile_photo.setImageResource(mData.get(position).getProfilePhoto()); //holder.tv_nbfollowers.setText(mData.get(position).getFollowers()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAlbum()\n {\n return album;\n }", "@Override\n protected void getFromIntent() {\n this.groupID = getIntent().getStringExtra(\"groupId\");\n this.groupName = getIntent().getStringExtra(\"groupName\");\n }", "private String getAlbumName(){\n return getString(R.string.album_name);\n }", "String getAlbumName()\n {\n return albumName;\n }", "public String getAlbumName()\n {\n return albumName;\n }", "public String getAlbum() {\n\t\treturn album;\r\n\t}", "public abstract String getAndroidPackage();", "@Override\n public void onClick(View v) {\n Toast.makeText(ct,\" Blood Group \"+bloodgroup[position], Toast.LENGTH_LONG).show();\n }", "public String getGroup();", "private String loadGroupName(String _id) {\n SQLiteDatabase sqlDB = null;\n String groupName = \"\";\n try {\n sqlDB = DatabaseHelper.instance().getReadableDatabase();\n String query = \"select * \"\n + \" from \" +\n Table.Group.TABLE_NAME +\n \" where \" + Table.DELETED + \" = 0 and \" + Table.ID + \" = \" + _id;\n Log.d(\"query is \", query);\n Cursor cursor = sqlDB != null ? sqlDB\n .rawQuery(query\n , null) : null;\n if (cursor != null && cursor.moveToNext()) {\n groupName = cursor.getString(cursor\n .getColumnIndex(Table.Group.NAME));\n }\n assert cursor != null;\n cursor.close();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n }\n\n return groupName;\n}", "public void onClick(View view) {\n Log.d(\"Parti\",\"participants\");\n }", "public String getActivity(){\n return Activity;\n }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public String toString() {\n\t\treturn this.albumName;\n\t}", "public String group() { return group; }", "private String getAlbumName() {\n return \"fotos_credencial\";\n }", "@Override\r\n public void onClick(View view) {\r\n Intent albumIntent = new Intent(MainActivity.this, AlbumActivity.class);\r\n startActivity(albumIntent);\r\n }", "public String getGroup ()\n {\n return group;\n }", "public String getGroup ()\n {\n return group;\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n category = getArguments().getString(\"someTitle\");\r\n\r\n\r\n }", "@Override\n public String toString() {\n return this.title + \": \" + this.duration;\n //next step 6 create an album class\n }", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }", "public String getGroup() {\n return this.group;\n }", "private void getGroupInformation()\n {\n gName = groupName.getText().toString();\n gId = groupId.getText().toString();\n gAddress = groupAddress.getText().toString();\n gDescription = groupDescription.getText().toString();\n time = fTime.getText().toString();\n }", "public long getGroup()\r\n { return group; }" ]
[ "0.5848568", "0.57778215", "0.56821287", "0.5651277", "0.5456501", "0.54489446", "0.5399678", "0.5374931", "0.53035897", "0.52785593", "0.5267306", "0.52658886", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.5252242", "0.52280545", "0.5201347", "0.5189667", "0.5176283", "0.5168085", "0.5168085", "0.5161438", "0.5147786", "0.51397085", "0.51005954", "0.5088871", "0.5074762" ]
0.0
-1
Create line instance with name and color
public static Line CreateLine(String id) { return new MyLine(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Line createLine();", "private void lineColor() {\n\n\t}", "public Line(){\n\t\t\n\t}", "public Line (String name, int x1, int y1, int x2, int y2, Color color, GeometricalObjectListener[] listeners) {\n\t\tif (name == null || color == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.name = name;\n\t\tthis.x1 = x1;\n\t\tthis.x2 = x2;\n\t\tthis.y1 = y1;\n\t\tthis.y2 = y2;\n\t\tthis.color = color;\n\t\tif (listeners != null) {\n\t\t\tthis.listeners = new LinkedList<>(Arrays.asList(listeners));\n\t\t}\n\t}", "private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}", "public Line()\n\t{\n\t\tthis(1.0f, 1.0f, 0.0f);\n\t}", "public String getLineColor()\n {\n return lineColor;\n }", "public Color getLineColor()\n {\n return lineacolore;\n }", "public Color getLineColor();", "public String getLine() {\n \treturn this.lineColor;\n }", "public LineSymbolizer(final StyleFactory<R> factory) {\n super(factory);\n }", "public OMAbstractLine() {\n super();\n }", "public Color getLineColor() {\n return lineColor;\n }", "public BSPLine() {\n super();\n }", "public GeoLine(GeoPoint start, Color color, GeoPoint end ){\n super(start,color);\n this.setEnd(end);\n this.setEdgeColor(color);\n }", "public int getLineColor() { return mLineColor; }", "public LineShape() {\n sc=new ShapeComponent[4];\n sc[0]=new ShapeComponent(0,0);\n sc[1]=new ShapeComponent(0,5);\n sc[2]=new ShapeComponent(0,10);\n sc[3]=new ShapeComponent(0,15);\n size=5;\n }", "public int getLineColor() {\r\n return LineColor;\r\n }", "public LineElement(\n final double firstPointX, final double firstPointY,\n final double secondPointX, final double secondPointY,\n final double width, final Color color) {\n this.firstPointX = firstPointX;\n this.firstPointY = firstPointY;\n this.secondPointX = secondPointX;\n this.secondPointY = secondPointY;\n this.width = width;\n this.color = color;\n }", "public LineaAbstract() {\n super();\n this.ColorRelleno=Color.BLACK;\n ColorRelleno=null;\n this.width=1.0F;\n isRelleno=false;\n isContinuo=true;\n isGradiente=false;\n }", "public LineData()\n\t{\n\t}", "public void drawLine(int x, int y, int x2, int y2, int color);", "public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}", "@Override\n\tpublic void drawLine(Vector3f from, Vector3f to, Vector3f color) {\n\n\t\tfloat[] positions = new float[6];\n\t\tpositions[0] = from.x;\n\t\tpositions[1] = from.y;\n\t\tpositions[2] = from.z;\n\n\t\tpositions[3] = to.x;\n\t\tpositions[4] = to.y;\n\t\tpositions[5] = to.z;\n\n\t\t// Create a rawmodel to store the line\n\t\tRawModel model = Globals.getLoader().loadToVAO(positions, 3);\n\n\t\tshader.start();\n\t\tshader.loadProjectionMatrix(Globals.getRenderer().getProjectionMatrix());\n\t\tshader.loadViewMatrix(Globals.getActiveCamera());\n\t\tGL30.glBindVertexArray(model.getVaoID());\n\n\t\tGL20.glEnableVertexAttribArray(0);\n\t\tGL11.glDrawArrays(GL11.GL_LINES, 0, 6);\n\t\tGL20.glDisableVertexAttribArray(0);\n\t\tGL30.glBindVertexArray(0);\n\t\tshader.stop();\n\t\tmodel.cleanUp();\n\n\t}", "private void drawLine(Vector3 point1, Vector3 point2, Node n) {\n\n Node nodeForLine= new Node();\n nodeForLine.setName(LINE_STRING);\n //First, find the vector extending between the two points and define a look rotation\n //in terms of this Vector.\n final Vector3 difference = Vector3.subtract(point1, point2);\n final Vector3 directionFromTopToBottom = difference.normalized();\n final Quaternion rotationFromAToB =\n Quaternion.lookRotation(directionFromTopToBottom, Vector3.up());\n MaterialFactory.makeTransparentWithColor(getApplicationContext(), new Color(this.colorLine.x, this.colorLine.y, this.colorLine.z,this.alphaColor))\n .thenAccept(\n material -> {\n /* Then, create a rectangular prism, using ShapeFactory.makeCube() and use the difference vector\n to extend to the necessary length. */\n ModelRenderable model = ShapeFactory.makeCube(\n new Vector3(this.sizeLine, this.sizeLine, difference.length()),\n Vector3.zero(), material);\n /* Last, set the world rotation of the node to the rotation calculated earlier and set the world position to\n the midpoint between the given points . */\n\n nodeForLine.setParent(n);\n\n\n nodeForLine.setRenderable(model);\n nodeForLine.setWorldPosition(Vector3.add(point1, point2).scaled(.5f));\n nodeForLine.setWorldRotation(rotationFromAToB);\n }\n );\n\n }", "public Line(final Pos first, final Pos second) {\n this(first, second, new Black());\n }", "public void setLineColor(ColorRGB lineColor) {\n this.lineColor = lineColor;\n currentPath = new Path(new MoveTo(myCursor.getPosition().getX(), myCursor.getPosition().getY()));\n currentPath.setStroke(Color.rgb(lineColor.getRed(), lineColor.getGreen(), lineColor.getBlue()));\n group.getChildren().add(currentPath);\n\n }", "private ListStore<Line> createLines() {\n\t\tStyleInjectorHelper.ensureInjected(CommonGanttResources.resources.css(), true);\n\n\t\tLineProperties lineProps = GWT.create(LineProperties.class);\n\t\tListStore<Line> store = new ListStore<Line>(lineProps.key());\n\t\tString customCssStyle = CommonGanttResources.resources.css().todayLineMain();\n\t\tLine line = new Line(new Date(), \"Текушая дата :\" + new Date().toString(), customCssStyle);\n\t\tstore.add(line);\n\t\treturn store;\n\t}", "public Line() {\r\n this.line = new ArrayList < Point > ();\r\n this.clickedPoint = null;\r\n this.direction = null;\r\n }", "private Line createSeparator(int length){\n\n Line sep = new Line();\n sep.setEndX(length);\n sep.setStroke(Color.DARKGRAY);\n return sep;\n\n }", "public Line(Point p1, Point p2) {\n super(p1, p2);\n this.p1 = p1;\n this.p2 = p2;\n }", "public GeoLine( GeoPoint start, GeoPoint end ){\n this(start,DEFAULT_COLOR,end);\n }", "public PlotPanel(Color[] lineColors) {\n this(lineColors, false);\n }", "public Line(Point startingPoint, Point endingPoint) {\n this.startingPoint = startingPoint;\n this.endingPoint = endingPoint;\n }", "public final Pen changeColor(Color lineColor) {\n return new Pen(stroke, lineColor);\n }", "public void setLineColor(Color c) {\n lineColor = c;\n }", "public OMAbstractLine(int rType, int lType, int dcType, Color lc, Color fc,\n Color sc) {\n super(rType, lType, dcType, lc, fc, sc);\n }", "private LineStyleUtils() {\n\n }", "public Shape(String color) { \n System.out.println(\"Shape constructor called\"); \n this.color = color; \n }", "public static Line fromText(String data) {\n\t\tif (data == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tString[] dats = data.trim().split(\" \");\n\t\tif (dats.length != 7) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\ttry {\n\t\t\tint x1 = Integer.parseInt(dats[0].trim());\n\t\t\tint y1 = Integer.parseInt(dats[1].trim());\n\t\t\tint x2 = Integer.parseInt(dats[2].trim());\n\t\t\tint y2 = Integer.parseInt(dats[3].trim());\n\t\t\tint r = Integer.parseInt(dats[4].trim());\n\t\t\tint g = Integer.parseInt(dats[5].trim());\n\t\t\tint b = Integer.parseInt(dats[6].trim());\n\t\t\treturn new Line(\"Line\", x1, y1, x2, y2, new Color(r, g, b), null);\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t}", "@Override\n public void setLineColor(int linen, Color color) {\n assemblyView.setLineColor(linen, color);\n }", "@Override\n \t\t\t\tpublic void doCreateLineParticle() {\n \n \t\t\t\t}", "protected void addColorPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Line_color_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Line_color_feature\", \"_UI_Line_type\"),\n\t\t\t\t GraphicsPackage.Literals.LINE__COLOR,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public Diner(int x, int y, String name, int seatNum, Color colour){\n this.x = x;\n this.y = y;\n this.name = name;\n this.seatNum = seatNum;\n this.colour = colour;\n \n }", "public String toString() {\n\t\treturn \"LINE:(\"+startPoint.getX()+\"-\"+startPoint.getY() + \")->(\" + endPoint.getX()+\"-\"+endPoint.getY()+\")->\"+getColor().toString();\n\t}", "public void setLineColor(Color lineColor) {\r\n myLineColor = lineColor;\r\n }", "public FieldLineNode(){\n\t\tthis(1, new Vector3f(0,1,0));\n\t}", "public LineTool(IColorProvider colorProvider, DrawingModel model) {\n\t\tthis.colorProvider = colorProvider;\n\t\tthis.model = model;\n\t}", "private LineDataSet createSet(){\n LineDataSet set = new LineDataSet(null, \"SPL Db\");\n set.setDrawCubic(true);\n set.setCubicIntensity(0.2f);\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n set.setColor(ColorTemplate.getHoloBlue());\n set.setLineWidth(2f);\n set.setCircleSize(4f);\n set.setFillAlpha(65);\n set.setFillColor(ColorTemplate.getHoloBlue());\n set.setHighLightColor(Color.rgb(244,117,177));\n set.setValueTextColor(Color.WHITE);\n set.setValueTextSize(10f);\n\n return set;\n }", "public static native GPolyline create(JavaScriptObject points, String color)/*-{\r\n\t\treturn new $wnd.GPolyline(points, color);\r\n\t}-*/;", "private void setUpLedger() {\n _ledgerLine = new Line();\n _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH);\n _staffLine = new Line();\n _staffLine.setStrokeWidth(1);\n }", "public Line(float dT)\n\t{\n\t\tthis(dT, 1.0f, 0.0f);\n\t}", "public CrnLineContainer() {\n }", "public LineTool(IColorProvider fgColorProvider, DrawingModel model) {\n\t\tthis.fgColorProvider = fgColorProvider;\n\t\tthis.model = model;\n\t}", "public OrderLine() {\n }", "private static void addLine(String[] input) throws NumberFormatException, IncorrectParametersException{\n if (input.length == 5){\n try{\n int x1 = Integer.parseInt(input[1]); \n int y1 = Integer.parseInt(input[2]);\n int x2 = Integer.parseInt(input[3]); \n int y2 = Integer.parseInt(input[4]);\n try{\n canvas.createLine(x1, y1, x2, y2);\n System.out.println(canvas.render());\n } catch (NullPointerException ex) {\n System.out.println(\"Initialise a new canvas first!\");\n }\n } catch (NumberFormatException ex) {\n System.out.println(\"HELP: to create a new line enter `L x1 y1 x2 y2`\");\n }\n } else {\n System.out.println(\"HELP: to create a new line enter `L x1 y1 x2 y2`\");\n throw new IncorrectParametersException(\"\");\n }\n }", "private LineData generateDataLine(int cnt, String name, ArrayList<Double> mainEmotion) {\n\n ArrayList<Entry> values1 = new ArrayList<>();\n\n //int[] val = {(int) happinessr, (int) sadnessr, (int) surpriser, (int) fearr, (int) neutralr, (int) contemptr, (int) angerr, (int) disgustr};\n\n for (int i = 0; i < mainEmotion.size(); i++) {\n values1.add(new Entry(i, mainEmotion.get(i).intValue()));\n }\n\n LineDataSet d1 = new LineDataSet(values1, name);\n d1.setLineWidth(2.5f);\n d1.setCircleRadius(4.5f);\n //Toast.makeText(getContext().getApplicationContext(), name, Toast.LENGTH_LONG).show();\n\n switch (name) {\n case \"Happiness\":\n d1.setColor(Color.rgb(189, 237, 255));\n d1.setCircleColors(Color.rgb(189, 237, 255));\n break;\n case \"Sadness\":\n d1.setColor(Color.rgb(74, 88, 176));\n d1.setCircleColors(Color.rgb(74, 88, 176));\n break;\n case \"Contempt\":\n d1.setColor(Color.rgb(242, 5, 92));\n d1.setCircleColors(Color.rgb(242, 5, 92));\n break;\n case \"Disgust\":\n d1.setColor(Color.rgb(79, 139, 62));\n d1.setCircleColors(Color.rgb(79, 139, 62));\n break;\n case \"Fear\":\n d1.setColor(Color.rgb(89, 72, 122));\n d1.setCircleColors(Color.rgb(89, 72, 122));\n break;\n case \"Surprise\":\n d1.setColor(Color.rgb(205, 185, 39));\n d1.setCircleColors(Color.rgb(205, 185, 39));\n break;\n case \"Anger\":\n d1.setColor(Color.rgb(189, 73, 84));\n d1.setCircleColors(Color.rgb(189, 73, 84));\n break;\n case \"Neutral\":\n d1.setColor(Color.rgb(220, 235, 221));\n d1.setCircleColors(Color.rgb(220, 235, 221));\n break;\n default:\n break;\n\n }\n\n d1.setHighLightColor(Color.rgb(255, 0, 0));\n d1.setDrawValues(false);\n\n ArrayList<Entry> values2 = new ArrayList<>();\n\n for (int i = 0; i < mainEmotion.size(); i++) {\n values2.add(new Entry(i, values1.get(i).getY() - 30));\n }\n\n ArrayList<ILineDataSet> sets = new ArrayList<>();\n sets.add(d1);\n //sets.add(d2);\n\n return new LineData(sets);\n }", "public Line (double x0, double y0, double x1, double y1) {\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n }", "private void colorLine(Node child) {\r\n String id = child.getId();\r\n colorObject(\"p\" + id, edgeHighlightColor);\r\n lastP = \"p\" + id;\r\n }", "void addLine(int index, Coordinate start, Coordinate end);", "public void setmLinePaint(Paint color){\n this.mLinePaint = color;\n }", "public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }", "public GLineGroup() {\n\t\t// empty\n\t}", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<String> getLineColor() {\n return (PropertyValue<String>) new PropertyValue(nativeGetLineColor());\n }", "public Emrld() {\n super(\n new Color(211, 242, 163),\n new Color(151, 225, 150),\n new Color(108, 192, 139),\n new Color(76, 155, 130),\n new Color(33, 122, 121),\n new Color(16, 89, 101),\n new Color(7, 64, 80)\n\n );\n\n\n }", "public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }", "public Shape(Color c) {\n\t\tcolor = c;\n\t}", "public LinesDimension1() {\n \n }", "public OMAbstractLine(int rType, int lType, int dcType) {\n super(rType, lType, dcType);\n }", "public void MakeLine() {\n\t\tLineButton = new JButton(\n\t\t\t\tnew ImageIcon(getClass().getResource(GetLineChartImage())));\n\t\tLineButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tGetHost().instructionText.setVisible(false);\n\t\t\t\tGetHost().ExportEnabled();\n\t\t\t\t\n\t\t\t\tif(GetHost().GetTitle() == UNSET) {\n\t\t\t\t\tGetHost().LeftPanelContent(new LineChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\t\"Line Chart\", \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}else {\n\t\t\t\t\tGetHost().LeftPanelContent(new LineChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\tGetHost().GetTitle(), \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tChartTypeInterface.add(LineButton);\n\t}", "public void drawLine(float x, float y, float x2, float y2, float width, float u, float v, float texW, float texH) {\n throw new NotImplementedException(); // TODO Implement\n }", "public static native GPolyline create(JavaScriptObject points, String color, int weight, double opacity)/*-{\r\n \treturn new $wnd.GPolyline(points, color, weight, opacity);\r\n }-*/;", "private void drawLine(double x1, double y1, double x2, double y2) {\r\n\t\tGLine line = new GLine(x1,y1,x2,y2);\r\n\t\tadd(line);\r\n\t}", "private void defineLinePoints(int x1, int y1,int x2,int y2){\n Line line1 = new Line(x1, y1, x2, y2);\n for(int i = 0; i < line1.points.size(); i++){\n super.points.add(line1.points.get(i));\n }\n }", "@Override\n public void drawLine(String id, Location start, Location end, double weight, Color color, boolean screenCoords) {\n drawLine(id, start, end, weight, color, false, screenCoords);\n }", "public void setTransportLineColor(Paint p)\r\n {\r\n line_color = p;\r\n }", "public Line() {\n\t\t\n\t\tthis.point1 = null;\n\t\tthis.point2 = null;\n\t\tthis.distance = 0;\n\t}", "public String getName() {\n return this.lineName;\n }", "public Paint getTransportLineColor()\r\n {\r\n return line_color;\r\n }", "public Line(double x1, double y1, double x2, double y2) {\r\n this(new Point(x1, y1), new Point(x2, y2));\r\n }", "private static Text createOffset(int line) {\n String offset = Integer.toHexString(line * 16);\n StringBuilder stringBuilder = new StringBuilder();\n for (int j = 0; j < (8 - offset.length()); j++) {\n stringBuilder.append(0);\n }\n stringBuilder.append(offset).append(' ');\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }", "public LineInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public LineChart() {\n init();\n }", "public BSPLine(float x1, float y1, float x2, float y2) {\n setLine(x1, y1, x2, y2);\n }", "KeyColor(String name){\n this.name = name;\n }", "public static native GPolyline create(JavaScriptObject points, String color, int weight)/*-{\r\n\t\treturn new $wnd.GPolyline(points, color, weight);\r\n\t}-*/;", "public Lines()\r\n\t{\r\n\t\tlines = new LinkedList<Line>();\r\n\t}", "protected abstract E createEntity(String line);", "public Shape (int x, int y, Color color)\r\n {\r\n\tthis.x = x;\r\n\tthis.y = y;\r\n\tthis.color = color;\r\n }", "private LineData generateLineData() {\n\n LineData d = new LineData();\n LineDataSet set = new LineDataSet(ReportingRates, \" ARVs (Reporting Rates)\");\n set.setColors(Color.parseColor(\"#90ed7d\"));\n set.setLineWidth(2.5f);\n set.setCircleColor(Color.parseColor(\"#90ed7d\"));\n set.setCircleRadius(2f);\n set.setFillColor(Color.parseColor(\"#90ed7d\"));\n set.setMode(LineDataSet.Mode.CUBIC_BEZIER);\n set.setDrawValues(true);\n\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n d.addDataSet(set);\n\n return d;\n }", "public RecodedColor getLineColor(){\n return ps == null ? null :(RecodedColor) ps.getFillLegend().getFillColorLegend();\n }", "public static void writeLine(Model model, int x1, int y1, int x2, int y2, char colour) {\n int xLength = model.getWidth();\n int yLength = model.getHeight();\n\n if (x1 > xLength || x2 > xLength || y1 > yLength || y2 > yLength) {\n System.out.println(String.format(\"Couldn't create line inside current simpleCanvas width: %d, height: %d\", xLength, yLength));\n return;\n }\n\n // Simple optimization if the line are orthogonal x or y.\n if (x1 == x2 || y1 == y2) {\n for (int i = Math.min(x1, x2); i <= Math.max(x1, x2); i++)\n for (int j = Math.min(y1, y2); j <= Math.max(y1, y2); j++)\n model.set(i, j, colour);\n } else {\n // try to draw line from left to write\n // To do this we should find min x coordinate\n int startx, starty, endx, endy;\n if (x1 < x2) {\n startx = x1;\n starty = y1;\n endx = x2;\n endy = y2;\n } else {\n startx = x2;\n starty = y2;\n endx = x1;\n endy = y1;\n }\n\n model.set(startx, starty, colour);\n model.set(endx, endy, colour);\n\n if (y1 < y2) {\n // Find line equation of the line\n // (y - y1)/(y2-y1) = (x - x1)/(x2 - x1)\n // y - y1 = (x - x1)(y2-y1)/(x2 - x1)\n // y = y1 + (x - x1)(y2-y1)/(x2 - x1)\n int newX = startx;\n int newY = starty;\n while (newX < endx && newY <= endy) {\n //TODO optimize coefficient\n double newYcompare = findY(newX + 1, startx, starty, endx, endy);\n\n if (newYcompare == newY + 1) {\n newY++;\n newX++;\n model.set(newX, newY, colour);\n model.set(newX, newY - 1, colour);\n } else if (newYcompare < newY + 1) {\n newX++;\n model.set(newX, newY, colour);\n } else {\n newY++;\n model.set(newX, newY, colour);\n }\n }\n } else {\n // Find line equation of the line\n // (x - x1)/(x2 - x1) = (y - y1)/(y2-y1)\n // (x - x1) = (y - y1)(x2 - x1)/(y2-y1)\n // x = x1 + (y - y1)(x2 - x1)/(y2-y1)\n int newX = startx;\n int newY = starty;\n while (newX <= endx && newY > endy) {\n //TODO optimize coefficient\n double newXcompare = findX(newY - 1, startx, starty, endx, endy);\n\n if (newXcompare == newX + 1) {\n newY--;\n newX++;\n model.set(newX, newY, colour);\n // array[newX - 2][newY - 1] = colour;\n model.set(newX, newY + 1, colour);\n } else if (newXcompare < newX + 1) {\n newY--;\n model.set(newX, newY, colour);\n } else {\n newX++;\n model.set(newX, newY, colour);\n }\n }\n }\n }\n }", "private LineSymbolizer() {\n // Thread-local factory will be used.\n }", "public LineStroker() {\n }", "public TextShape (String str, int x, int y, Color col){\n this.str = str;\n this.x = x;\n this.y = y;\n this.col = col;\n }", "public Seagull(String name){\n this.name = name;\n this.color = SWT.COLOR_DARK_BLUE;\n }", "public RubberLinesPanel()\n\t{\n\t\tLineListener listener = new LineListener();\n\t\tpoints = new HashMap<Point, Point>();\n\t\taddMouseListener(listener);\n\t\taddMouseMotionListener(listener);\n\t\tsetBackground(Color.black);\n\t\tsetPreferredSize(new Dimension(400, 200));\n\t}", "public void drawLine(Point[] Points,String lineNames){\n\t\tfloat x1 = Points[0].x;\r\n\t\tfloat y1 = Points[0].y;\r\n\t\tfloat x2 = Points[1].x;\r\n\t\tfloat y2 = Points[1].y;\r\n//\t\tString paramLineNames = Arrays.asList(lineNames).toString();\r\n\t\tJSXController.getInstance().invoke(\"createPath\", x1 + \"\",y1 + \"\",x2 + \"\",y2 + \"\",lineNames);\r\n\t}", "public static Linea createEntity(EntityManager em) {\n Linea linea = new Linea()\n .nombre(DEFAULT_NOMBRE)\n .visible(DEFAULT_VISIBLE);\n return linea;\n }", "public Pen(float thickness, @Nullable Color color, LineStyle style) {\n Color c = Color.BLACK;\n if (color != null) {\n c = color;\n }\n this.color = c;\n this.stroke = LineStyleUtils.getStroke(style, thickness);\n }" ]
[ "0.73658496", "0.69451976", "0.6713903", "0.6692684", "0.6590157", "0.64523125", "0.62965965", "0.6278601", "0.62517035", "0.6244132", "0.623395", "0.61511296", "0.6114047", "0.60906976", "0.6028875", "0.6020669", "0.59632313", "0.5954356", "0.5953129", "0.5930354", "0.59001124", "0.587893", "0.58729595", "0.5843388", "0.5819596", "0.5816884", "0.578107", "0.575297", "0.57460093", "0.57280797", "0.5723639", "0.57195246", "0.5716924", "0.5716318", "0.5709274", "0.57019997", "0.57004404", "0.5697488", "0.56815827", "0.5678987", "0.5676157", "0.5663646", "0.56328523", "0.56327814", "0.56319076", "0.5621815", "0.56171495", "0.5616345", "0.5614557", "0.5603124", "0.5595549", "0.5572058", "0.5570158", "0.55607533", "0.5557541", "0.55571663", "0.5545663", "0.55388737", "0.55294526", "0.55278224", "0.5527385", "0.5521959", "0.5510205", "0.550927", "0.54919845", "0.549151", "0.546833", "0.5439468", "0.5414471", "0.54057956", "0.53977215", "0.5391927", "0.5388057", "0.5376563", "0.53719455", "0.5371091", "0.5369579", "0.53634757", "0.5356666", "0.53487456", "0.53379434", "0.53360265", "0.53311795", "0.5319985", "0.531699", "0.5315207", "0.53071046", "0.5304829", "0.5302098", "0.5300156", "0.5293765", "0.5293124", "0.52921444", "0.5283311", "0.5279741", "0.52759045", "0.52716255", "0.52663493", "0.52565217", "0.5247878" ]
0.69584537
1
Add given stop with name and time to get there on line
@Override public void AddStop(Stop stop, int delta) { // is the street neighboring any existing streets? if(!AddTraversalStreet(stop.getStreet())) return; if(!stop.getStreet().AddStopToStreet(stop)) return; stops.add(new AbstractMap.SimpleImmutableEntry<>(stop,delta)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToStopList(Stop s){ this.stopList.add(s); }", "public void addToStopList(String stopID, String stopName, String weekTimes, String satTimes\n , String sunTimes, float latitude, float longitude) {\n Stop s = new Stop(stopID, stopName, weekTimes, satTimes,sunTimes, latitude, longitude);\n this.stopList.add(s);\n }", "public void saveStopsInLine(Stopsinlinedb stopsInLine);", "public Stop(int id, String name, double latitude, double longitude, boolean addToList) {\n this.id = id;\n this.name = name;\n this.latitude = latitude;\n this.longitude = longitude;\n if (addToList) {\n addStop(this);\n }\n\n }", "public void addBreak(final String _break) {\n\t\tfinal SimpleDateFormat format = new SimpleDateFormat(\"HH:MM:SS\");\n\t\tDate date = null;\n\t\ttry {\n\t\t\tdate = format.parse(_break);\n\t\t} catch (ParseException e) {\n\t\t\tdate = null;\n\t\t} finally {\n\t\t\tif(date != null) {\n\t\t\t\tsynchronized(breaktimes) {\n\t\t\t\t\tbreaktimes.add(System.currentTimeMillis() + date.getTime());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addTime(Time t) {\n\t\tif (t.isStart()) {\n\t\t\tif (startTimes.isEmpty()) {\n\t\t\t\tfor (Time m : meanTimes) {\n\t\t\t\t\tif (Time.diff(m, t).getTimeAsInt() > stipulatedTime) {\n\t\t\t\t\t\tfinishTimes.add(m);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (Time f : finishTimes) {\n\t\t\t\t\tmeanTimes.remove(f);\n\t\t\t\t}\n\t\t\t}\n\t\t\tstartTimes.add(t);\n\t\t} else {\n\t\t\tif (!startTimes.isEmpty() && Time.diff(t, startTimes.getFirst()).getTimeAsInt() > stipulatedTime) {\n\t\t\t\tfinishTimes.add(t);\n\t\t\t} else {\n\t\t\t\tmeanTimes.add(t);\n\t\t\t}\n\t\t}\n\t}", "Stop getStopPerID(String id);", "public Stop(String name) {\n this.name = name;\n }", "void updateStops(HashMap<String, List<TimedStopProblem>> problemsToAdd);", "List<Stop> getStopsPerLine(String line);", "public void addTime(Time a){\n\t\ttimes.add(a);\n\t}", "public void addDelayTime(int add)\r\n\t{\r\n\t\tString[] parts = departureTime.split(\":\");\r\n\t\tString[] parts1 = arrivalTime.split(\":\");\r\n\t\tString departureHour = parts[0];\r\n\t\tString departureMin = parts[1];\r\n\t\tString arrivalHour = parts1[0];\r\n\t\tString arrivalMin = parts1[1];\r\n\t\t// converting string to integer\r\n\t\tint departureHour1 = Integer.parseInt(departureHour);\r\n\t\tint arrivalHour1 = Integer.parseInt(arrivalHour);\r\n\t\t// adding delay time and start form 0 if it is 24\r\n\t\tint departHour = (departureHour1 + add)%24;\r\n\t\tint arriveHour = (arrivalHour1+add)%24;\r\n\t\tString dHour = String.format(\"%02d\",departHour);\r\n\t\tString aHour = String.format(\"%02d\",arriveHour);\r\n\t\t// combining hour and minute.\r\n\t\tthis.departureTime = dHour + \":\" + departureMin;\r\n\t\tthis.arrivalTime = aHour + \":\" + arrivalMin;\r\n\t\t\r\n\t}", "public static void addStop(Stop stop) throws IllegalArgumentException {\n if (stopExists(stop)) {\n String msg = \"Stop with ID #\" + stop.getID() + \" already exists\";\n throw new IllegalArgumentException(msg);\n }\n\t\tallStops.add(stop);\n updateDistances(stop);\n Walk.stopAdded(stop);\n\t}", "public boolean addStop(Stop stop)\r\n {\r\n stops_map.add(stop);\r\n addStreet(stop.getStreet());\r\n\r\n if (streets_map.size() > 1)\r\n {\r\n if (streets_map.get(0).follows(streets_map.get(1)) == false || streets_map.get(0).follows(streets_map.get(1)) == false)\r\n {\r\n stops_map.remove(stop);\r\n streets_map.remove(stop.getStreet());\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "void addStopNotification(List<String> stopIDs, String lineID, String note);", "public double getStopTime();", "public static List<Stop> findStop(String name) {\n List<Stop> matchingStops = new ArrayList<>();\n String pattern = \"(?i)(.*)\" + name + \"(.*)\";\n for (Stop s : getAllStops()) {\n if (s.getName().matches(pattern)) {\n matchingStops.add(s);\n }\n }\n return matchingStops;\n }", "public Stop(int id, String name, double latitude, double longitude) {\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t\tthis.latitude = latitude;\n\t\tthis.longitude = longitude;\n\t\taddStop(this);\n\t}", "public TimeField(String start, String stop) {\n\t\tsuper('t', start + \" \" + stop);\n\t}", "public void adaptTimetableToRequest(TrainServiceRequest request) throws RepositoryException {\n String startStopLower = request.getFrom().toLowerCase();\n String endStopLower = request.getTo().toLowerCase();\n LinkedList<Stop> updatedTimetable = new LinkedList<>();\n boolean startAddingStops = false;\n for (Iterator stopIterator = timetable.iterator(); stopIterator.hasNext(); ) {\n Stop stop = (Stop) stopIterator.next();\n String stopLower = stop.getStopName().toLowerCase();\n if (!startAddingStops && stopLower.equals(startStopLower)) {\n stop.setTimeIN(null);\n startAddingStops = true;\n setFrom(stop.getStopName());\n int minutes = stop.getTimeOut().getMinute();\n String minutesPlaceholder = \"\";\n if (minutes < 10) minutesPlaceholder = \"0\";\n setDeparture(stop.getTimeOut().getHour() + \":\" + minutesPlaceholder + minutes);\n }\n if (startAddingStops){\n updatedTimetable.add(stop);\n }\n if (stopLower.equals(endStopLower)) {\n stop.setTimeOut(null);\n setTo(stop.getStopName());\n int minutes = stop.getTimeIN().getMinute();\n String minutesPlaceholder = \"\";\n if (minutes < 10) minutesPlaceholder = \"0\";\n setArrival(stop.getTimeIN().getHour() + \":\" + minutesPlaceholder + minutes);\n break;\n }\n }\n timetable = updatedTimetable;\n }", "public void setStopTime(int time) {\n\t\t\tmStopTime = time;\n\t\t}", "public Timeline createPartLineAnimation(int duration, int stop_duration, ArrayList<Coordinate> affected_points, int slow_duration, int slow_stop_duration, Circle vehicle, ArrayList<Coordinate> line_coordinates_part, EventHandler<MouseEvent> handler, boolean detour_delay)\r\n {\r\n Timeline affected_timeline = new Timeline();\r\n int original_duration = duration;\r\n int original_stop_duration = stop_duration;\r\n addLineVehicles(vehicle);\r\n vehicle.setOnMouseClicked(handler);\r\n\r\n // add all keyframes to timeline - one keyframe means path from one coordinate to another coordinate\r\n // vehicle waits in stop for 1 seconds and go to another coordinate for 2 seconds (in default mode)\r\n int delta_time = 0;\r\n KeyFrame waiting_in_stop = null;\r\n\r\n //int affected_stops_count = 0;\r\n for (int i = 0; i < line_coordinates_part.size() - 1; i++) {\r\n // if we go through street affected by slow traffic\r\n if (line_coordinates_part.get(i).isInArray(affected_points) && line_coordinates_part.get(i+1).isInArray(affected_points))\r\n {\r\n // duration between coordinates and duration of waiting in stop is different\r\n duration = slow_duration;\r\n stop_duration = slow_stop_duration;\r\n }\r\n else\r\n {\r\n // else use default duration\r\n duration = original_duration;\r\n stop_duration = original_stop_duration;\r\n }\r\n\r\n for (Stop s : this.getStopsMap()) {\r\n // if we are in stop, we wait 'stop_duration' time\r\n if (line_coordinates_part.get(i).getX() == s.getCoordinate().getX() && line_coordinates_part.get(i).getY() == s.getCoordinate().getY()) {\r\n waiting_in_stop = new KeyFrame(Duration.seconds(delta_time + stop_duration), // this means waiting in stop for some time\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates_part.get(i).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates_part.get(i).getY()));\r\n\r\n delta_time = delta_time + stop_duration;\r\n\r\n break;\r\n }\r\n }\r\n // we travelled for 'duration' time\r\n KeyFrame end = new KeyFrame(Duration.seconds(delta_time + duration), // this means that the path from one coordinate to another lasts 2 seconds\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates_part.get(i + 1).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates_part.get(i + 1).getY()));\r\n\r\n if (waiting_in_stop != null) {\r\n affected_timeline.getKeyFrames().addAll(end, waiting_in_stop);\r\n } else {\r\n affected_timeline.getKeyFrames().addAll(end);\r\n }\r\n\r\n delta_time = delta_time + duration;\r\n }\r\n\r\n this.setLineMovement(affected_timeline); // set movement of specified line\r\n\r\n if (detour_delay == false)\r\n {\r\n this.setDelay(duration, slow_duration, affected_points.size());\r\n }\r\n else\r\n {\r\n this.delay = this.detour_streets.size() * duration - duration;\r\n }\r\n\r\n\r\n return affected_timeline;\r\n }", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "public void addTime(long time)\r\n {\r\n listOfTimes.add(time);\r\n }", "public void addTime(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), TIME, value);\r\n\t}", "void removeProblem(String stopOrLineId, Date time) throws Exception;", "public String toString() {\n return \"Stop #\" + getID() + \": \" + getName();\n }", "public static void insertStopwatchBefore(String methodName){\r\n if(!times.containsKey(methodName)){\r\n //System.out.println(\"Measuring method: \" + methodName);\r\n TimeMeasurement timeMeasurementUnit = new TimeMeasurement();\r\n timeMeasurementUnit.methodName = methodName;\r\n times.put(methodName, timeMeasurementUnit);\r\n }else{\r\n times.get(methodName).createNewMethodRun();\r\n }\r\n //System.out.println(times.size());\r\n }", "List<Stopsinlinedb> fetchStopsInLines();", "public void addAssociatedStops(Stop stop) {\n\t\tString id = stop.getID();\n\t\tif(!associatedStops.containsKey(id)) {\n\t\t\tassociatedStops.put(id, stop);\n\t\t}\n\t}", "List<Map.Entry<Long, String>> getStopTimeTable(String stopId) throws Exception;", "public void durata(long start, long stop){\n\t\tlong durata = stop - start;\n\t\tlong secondi = durata % 60;\n\t\tlong minuti = durata / 60;\n\t\t\n\t\tSystem.out.println(\"Durata: \" + minuti + \"m \" + secondi + \"s\");\n\t}", "@Override\n public void addTimeOffset(double timeOffset)\n {\n throw new RuntimeException(\"This method should not be used with footstep lists.\");\n }", "abstract Long getStopTimestamp();", "private Vector <BusStopInfo> findStopInfo(BusStopInterface busStop)\r\n {\r\n Vector <BusStopInfo> result = new Vector<BusStopInfo>();\r\n Awtobus checking = null;\r\n for(int i=0; i < lines.size(); i++)\r\n {\r\n checking = lines.get(i);\r\n int length = checking.busLine.getNumberOfBusStops();\r\n for(int j=0; j<length; j++)\r\n {\r\n if(busStop == checking.busLine.getBusStop(j))\r\n {\r\n result.add(new BusStopInfo(checking, j));\r\n }\r\n }\r\n }\r\n return result;\r\n }", "public Timeline createLineAnimation(AnchorPane anchor_pane_map, int duration, int stop_duration, ArrayList<Coordinate> affected_points, int slow_duration, int slow_stop_duration, EventHandler<MouseEvent> handler, boolean detour_delay)\r\n {\r\n // coordinates of path for vehicle on transportline\r\n ArrayList<Coordinate> line_coordinates = this.transportLinePath();\r\n // ids of coordinates of path for vehicle on transportline\r\n ArrayList<String> line_coordinates_ids = this.transportLinePathIDs();\r\n // all stops for transportline\r\n List<Stop> line_stops = this.getStopsMap();\r\n // create vehicle for line (circle)\r\n Circle vehicle = new Circle(this.getStopsMap().get(0).getCoordinate().getX(), this.getStopsMap().get(0).getCoordinate().getY(), 10);\r\n vehicle.setStroke(Color.AZURE);\r\n vehicle.setFill(this.getTransportLineColor());\r\n vehicle.setStrokeWidth(5);\r\n addLineVehicles(vehicle);\r\n vehicle.setOnMouseClicked(handler);\r\n\r\n Timeline timeline = new Timeline();\r\n int original_duration = duration;\r\n int original_stop_duration = stop_duration;\r\n\r\n // add all keyframes to timeline - one keyframe means path from one coordinate to another coordinate\r\n // vehicle waits in stop for 1 seconds and go to another coordinate for 2 seconds (in default mode)\r\n int delta_time = 0;\r\n KeyFrame waiting_in_stop = null;\r\n for (int i = 0; i < line_coordinates.size() - 1; i++) {\r\n // if we go through street affected by slow traffic\r\n if (line_coordinates.get(i).isInArray(affected_points) && line_coordinates.get(i+1).isInArray(affected_points))\r\n {\r\n // duration between coordinates and duration of waiting in stop is different\r\n duration = slow_duration;\r\n stop_duration = slow_stop_duration;\r\n }\r\n else\r\n {\r\n // else use default duration\r\n duration = original_duration;\r\n stop_duration = original_stop_duration;\r\n }\r\n\r\n for (Stop s : line_stops) {\r\n // if we are in stop, we wait 'stop_duration' time\r\n if (line_coordinates.get(i).getX() == s.getCoordinate().getX() && line_coordinates.get(i).getY() == s.getCoordinate().getY()) {\r\n waiting_in_stop = new KeyFrame(Duration.seconds(delta_time + stop_duration), // this means waiting in stop for some time\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates.get(i).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates.get(i).getY()));\r\n\r\n delta_time = delta_time + stop_duration;\r\n break;\r\n }\r\n }\r\n // we travelled for 'duration' time\r\n KeyFrame end = new KeyFrame(Duration.seconds(delta_time + duration), // this means that the path from one coordinate to another lasts 2 seconds\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates.get(i + 1).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates.get(i + 1).getY()));\r\n\r\n if (waiting_in_stop != null) {\r\n timeline.getKeyFrames().addAll(end, waiting_in_stop);\r\n } else {\r\n timeline.getKeyFrames().addAll(end);\r\n }\r\n\r\n delta_time = delta_time + duration;\r\n }\r\n\r\n timeline.setCycleCount(Timeline.INDEFINITE); // infinity number of repetitions\r\n anchor_pane_map.getChildren().add(vehicle);\r\n\r\n if (detour_delay == false)\r\n {\r\n this.setDelay(duration, slow_duration, affected_points.size());\r\n }\r\n else\r\n {\r\n this.delay = this.detour_streets.size() * duration - duration;\r\n }\r\n\r\n return timeline;\r\n }", "private void makeSubPlan(Plan plan,Time currentTime,ArrayList<POI> POIs,Time timeEnd,Trip trip,Plan mPlan,boolean skip){\n if(mPlan!=null) \n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),mPlan.getFullCost(),mPlan);\n else\n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),0,mPlan);\n POI last=plan.getLastPOI();\n for(int i=0; i< POIs.size();i++){\n // Check if iam in Time range or not\n if(!currentTime.compare(timeEnd))\n break;\n else{\n if(canInsertLast(plan, POIs.get(i), trip, currentTime,mPlan,skip)){\n // update current time & plan\n Time from = new Time (0,0);\n Time to = new Time (0,0);\n if(last!=null){\n // cal travel time\n currentTime.add(last.getShortestPath(POIs.get(i).getId()));\n // cal waste time\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n \n from.hour = currentTime.hour;\n from.min = currentTime.min;\n // cal poi duration \n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n else{\n if(mPlan==null){\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n from.hour = currentTime.hour;\n from.min = currentTime.min;\n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n else{\n POI mLast = mPlan.getLastPOI();\n if(mLast!=null)\n currentTime.add(mLast.getShortestPath(POIs.get(i).getId()));\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n from.hour = currentTime.hour;\n from.min = currentTime.min;\n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n }\n plan.insert(POIs.get(i), plan.getNOV(),from,to,null);\n if(mPlan!=null)\n plan.makeCalculations(trip.getStartTime(), trip.getEndTime(),mPlan.getFullCost(),mPlan);\n else\n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),0,mPlan);\n last=POIs.get(i);\n // Remove poi from POIs\n POIs.remove(i);\n i--;\n }\n }\n }\n }", "public void addValueTime(IValueTime vt){\n \tthis.generator.addValueTime(vt);\n }", "public List<Stop> getListStopByMoreTime(Date time){\n List<Stop> items = null;\n Session session = beanHibernateUtil.getSession();\n try {\n session.beginTransaction();\n Criteria criteria = session.createCriteria(Stop.class);\n criteria.add(Restrictions.gt(\"arrivalTime\",time.getTime()-2*60*60000));//lay du lieu tu 16h hom trc toi 18h sau tranh luc giao ke hoạch 18h bi thieu 1 stop\n criteria.addOrder(Order.asc(\"arrivalTime\"));//de chuan thi phai ket hop dc ca du lieu arrivalTime va departureTime cong lai moi het dc cac truong hop\n items = criteria.list();\n session.getTransaction().commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n beanHibernateUtil.closeSession(session);\n }\n\n return items;\n }", "public void setStopTime(double stopTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STOPTIME$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STOPTIME$24);\r\n }\r\n target.setDoubleValue(stopTime);\r\n }\r\n }", "net.opengis.gml.x32.TimeInstantPropertyType addNewEnd();", "net.opengis.gml.x32.TimePositionType addNewEndPosition();", "public void addTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), TIME, value);\r\n\t}", "public void xsetStopTime(org.landxml.schema.landXML11.GPSTime stopTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.GPSTime target = null;\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().find_attribute_user(STOPTIME$24);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().add_attribute_user(STOPTIME$24);\r\n }\r\n target.set(stopTime);\r\n }\r\n }", "private void parseStopTimes(Set<String> tripID){\n \tSystem.out.println(\"start stop_times parsing\");\n String[] column = new String[]{\"trip_id\",\"stop_id\"};\n Set<String> stopID = new HashSet<String>();\n\n List<StopTimesTransit> beans;\n\n ColumnPositionMappingStrategy<StopTimesTransit> strategy =\n new ColumnPositionMappingStrategy<StopTimesTransit>();\n strategy.setType(StopTimesTransit.class);\n strategy.setColumnMapping(column);\n\n CsvToBean<StopTimesTransit> csvToBean = new CsvToBean<>();\n\n CSVReader csvReader;\n\t\ttry {\n\t\t\tcsvReader = new CSVReader(new FileReader(\"D:\\\\JavaProj\\\\XMLPreProcessor\\\\src\\\\stop_times.csv\"));\n\t beans = csvToBean.parse(strategy, csvReader);\n\n Iterator<StopTimesTransit> itr = beans.iterator();\n while(itr.hasNext()) {\n StopTimesTransit i = itr.next();\n String id = i.getTrip_id();\n if (!tripID.contains(id)) {\n itr.remove();\n }\n }\n\n for(StopTimesTransit data: beans){\n stopID.add(data.getStop_id());\n }\n\n parseStopID(stopID);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"end stop_times parsing\");\n\n }", "public static Stopwatch getStopwatch(String id) {\n if (id == null) {\n logger.info(\"id is null\");\n throw new IllegalArgumentException(\"id is null\");\n }\n if (id.isEmpty()) {\n logger.info(\"id is empty\");\n throw new IllegalArgumentException(\"id is empty\");\n }\n if (stopwatchMap.containsKey(id)) {\n logger.info(\"id is already taken\");\n throw new IllegalArgumentException(\"id is already taken\");\n }\n synchronized (lock) {\n final Stopwatch stopwatch = new StopwatchImpl(id);\n stopwatchMap.put(id, stopwatch);\n logger.info(\"Created new stopwatch: \" + id);\n return stopwatch;\n }\n }", "public List<Stop> findStopsByName(String name) {\n return stops.values()\n .stream()\n .filter(stop -> stop.getName().toLowerCase(Locale.ROOT).contains(name.toLowerCase(Locale.ROOT)))\n .collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }", "List<Stop> getStops();", "private static boolean stopExists(Stop stop) {\n for (Stop s : allStops) {\n if (s.equals(stop)) {\n return true;\n }\n }\n return false;\n }", "private static void showTime(String comment,long entryPoint, long endPoint) {\n long elapsedTime = endPoint - entryPoint;\n System.out.println(comment+elapsedTime+\" msec\");\n }", "public abstract TimeObject add(long time, int val);", "public ClipLog(String name, String start, String end){\n this.name = name;\n this.start = start;\n this.end = end;\n }", "TimeInstrument stop();", "public static synchronized void recordTimerActivity(String name, long time, Object o, boolean writeToMessageLog) {\r\n Timer t = (Timer) _timers.get(name);\r\n if (t == null) {\r\n t = new Timer();\r\n _timers.put(name, t);\r\n }\r\n t.count++;\r\n t.totalTime += time;\r\n if (writeToMessageLog)\r\n MessageLog.writeDebugMessage(\"Timer:\" + name + \" elapsed time (ms):\" + time, o);\r\n }", "public String addEvent(String name, String time) {\n USER_TASKS.add(new Event(name, time));\n return \" \" + USER_TASKS.get(USER_TASKS.size() - 1).toString();\n }", "private void parseStopSchedule(JSONObject object) throws JSONException\n {\n String info = \"\";\n\n // Get Stop Information\n JSONObject stopObject = object.getJSONObject(\"stop\");\n info += \"Stop: \" + stopObject.getString(\"key\") + \" - \"\n + stopObject.getString(\"name\") + \"\\n\\n\";\n\n // Get route schedules\n JSONArray routeSchedulesArray = object.getJSONArray(\"route-schedules\");\n\n for (int i = 0; i < routeSchedulesArray.length(); i++)\n {\n JSONObject routeScheduleObj = routeSchedulesArray.getJSONObject(i);\n\n // Get route description\n JSONObject routeObj = routeScheduleObj.getJSONObject(\"route\");\n info += \"Route \" + routeObj.getString(\"number\") + \":\\n\";\n\n // Get schedule and estimated times\n JSONArray scheduledArray = routeScheduleObj.getJSONArray(\"scheduled-stops\");\n for (int j = 0; j < scheduledArray.length(); j++)\n {\n JSONObject scheduledObj = scheduledArray.getJSONObject(j);\n\n JSONObject variantObj = scheduledObj.getJSONObject(\"variant\");\n info += \" \" + variantObj.getString(\"name\") + \"\\n\";\n\n JSONObject arrivalObj = scheduledObj.getJSONObject(\"times\").getJSONObject(\"arrival\");\n info += \" Scheduled: \" + extractHourMinute(arrivalObj.getString(\"scheduled\")) + \"\\n\";\n info += \" Estimated: \" + extractHourMinute(arrivalObj.getString(\"estimated\")) + \"\\n\\n\";\n }\n }\n\n TextView tvSchedule = (TextView) findViewById(R.id.tvSchedule);\n tvSchedule.setText(info);\n }", "public org.landxml.schema.landXML11.TimingDocument.Timing addNewTiming()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.TimingDocument.Timing target = null;\r\n target = (org.landxml.schema.landXML11.TimingDocument.Timing)get_store().add_element_user(TIMING$2);\r\n return target;\r\n }\r\n }", "public static synchronized void recordTimerActivity(String name, long time, Object o) {\r\n recordTimerActivity(name, time, o, false);\r\n }", "public void addTime(long in) {\n if (current < max) {\n times[current] = in;\n current++;\n }\n else System.out.println(\"Adding past max\");\n }", "public static void addTime(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, TIME, value);\r\n\t}", "public static void main(String[] args) {\n\t\tTime t1 = new Time(4,18,12);\r\n Time t2 = new Time(7,35,50);\r\n Time t3 = t1.add(t2);\r\n t1.display(\"Time 1 : \");\r\n t2.display(\"Time 2 : \");\r\n t3.display(\"Time after addition : \");\r\n\t}", "public void addToTimeTraining( String time )\r\n\t{\n\t\ttimeTraining.add( validateInteger( time, \"time training\") );\r\n\t}", "public Slot(String a,ArrayList<ClassTiming> b){\n\t\tslotName = a;\n\t\tclassTimings = b;\n\t}", "private List<Edge<Stop>> getWalkingEdgesFromStop(long timeAtStop, Stop stop, Set<Stop> found) {\n //Calculate a list of geohashes around the stop\n List<Geohash> nearbyGeohashes = Geohash.getSurroundingGeohashes(\n BigDecimal.valueOf(stop.getLocation().getLatitude()),\n BigDecimal.valueOf(stop.getLocation().getLongitude()), STOP_INDEX_GEOHASH_LEVEL);\n\n return nearbyGeohashes.stream()\n //Get all stops inside the geohashes\n .flatMap(geohash -> stopByGeohashIndex.getItems(geohash).stream())\n //Filter stops that have been already found\n .filter(stopFromIndex -> !found.contains(stopFromIndex))\n //Filter stops that are too far\n .filter(stopFromIndex -> stopFromIndex.getLocation().distanceTo(stop.getLocation()) <= MAX_WALKING_DISTANCE_IN_METERS\n && !stopFromIndex.getId().equals(stop.getId()))\n .map(walkableStop -> new StopEdge(null, //No public transport route used when walking -> route = null, trip = null\n null,\n TransportMode.WALK,\n stop,\n walkableStop,\n //Calculate walking time\n timeAtStop + 1 + Math.round(walkableStop.getLocation().distanceTo(stop.getLocation()) / AVERAGE_WALKING_SPEED_MS),\n timeAtStop))\n .collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }", "private void findStop(Airport departAPT, double distanceNeed, double maxRange){\n\t\t\tint stopIndex=-1;\r\n\t\t\tdouble stopDist=0;\r\n\t\t\tdouble stopToDestnDistance=999999999; //distance from depart to destination\r\n\t\t\tdouble startToStopDistance; //depart to stop distance\r\n\t\t\tdouble testDistance;\r\n\t\t\tString id;\r\n\r\n\t\t\tfor(int i=0; i<apt.size();++i){ //test every airport\r\n\t\t\t\t//cannot be destination or departing airport or dead end airport;\r\n\t\t\t\tid=apt.get(i).getID();\r\n\t\t\t\tif(id!=departAPT.getID() && id!=destnAPT.getID() && !deadEnd.contains(id)){\r\n\t\t\t\t\t//test avaliable fuel for this airplane type\r\n\t\t\t\t\tif(apt.get(i).getFuelType().contains(usePlane.getMatchType())){\r\n\t\t\t\t\t\tstartToStopDistance=findDistance(departAPT.getLat(),departAPT.getLon(),apt.get(i).getLat(),apt.get(i).getLon());\r\n\t\t\t\t\t\t//test if distance between depart and stop is in airplane's max travel range and if not same range as previous stop\r\n\t\t\t\t\t\tif(startToStopDistance<=maxRange && !stopAPTDist.contains(startToStopDistance)){\r\n\t\t\t\t\t\t\ttestDistance=findDistance(apt.get(i).getLat(),apt.get(i).getLon(),destnAPT.getLat(),destnAPT.getLon());\r\n\t\t\t\t\t\t\tif(testDistance<stopToDestnDistance){\r\n\t\t\t\t\t\t\t\tstopDist=startToStopDistance;\r\n\t\t\t\t\t\t\t\tstopIndex=i;\r\n\t\t\t\t\t\t\t\tstopToDestnDistance=testDistance;\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\tif(stopIndex!=-1){ //when stop is avaliable add this stop to info list\r\n\t\t\t\tstopAPT.add(apt.get(stopIndex));\r\n\t\t\t\tstopAPTDist.add(stopDist);\r\n\t\t\t\tif(stopToDestnDistance<=usePlane.getMaxRange()){ //if stop can reach destination, add final round and return to plan method\r\n\t\t\t\t\tstopAPT.add(destnAPT);\r\n\t\t\t\t\tstopAPTDist.add(findDistance(apt.get(stopIndex).getLat(),apt.get(stopIndex).getLon(),destnAPT.getLat(),destnAPT.getLon()));\r\n\t\t\t\t\tdeadEnd.clear();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse findStop(apt.get(stopIndex),stopToDestnDistance, usePlane.getMaxRange());\r\n\t\t\t}\r\n\t\t\telse { //when no stop is find, break the plan and clear everything\r\n\t\t\t\tif(stopAPT.isEmpty() || deadEnd.size()>5){\r\n\t\t\t\t\tstopAPT.clear();\r\n\t\t\t\t\tstopAPTDist.clear();\r\n\t\t\t\t\tdeadEnd.clear();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{ //when stops routine cannot reach destination, clear all and start another path\r\n\t\t\t\tdeadEnd.add(departAPT.getID());\r\n\t\t\t\tstopAPT.clear();\r\n\t\t\t\tstopAPTDist.clear();\r\n\t\t\t\tif(startAPT.getFuelType().contains(usePlane.getMatchType())){\r\n\t\t\t\t\tfindStop(startAPT,dist,usePlane.getMaxRange());\r\n\t\t\t\t}else findStop(startAPT,dist,((fuelTank/usePlane.getFuelTank())*usePlane.getMaxRange()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t}", "private void printNameWithTimes(Course course, String name, String type) {\n String startTime = \"\";\n String endTime = \"\";\n int[][] selection;\n\n if (type.equals(\"Section\")) {\n selection = course.getSubClassTimes().get(name);\n } else if (type.equals(\"Lab\")) {\n selection = course.getLabTimes().get(name);\n } else {\n selection = course.getTutorialTimes().get(name);\n }\n\n if (selection[0][1] == 0) {\n startTime = String.valueOf(selection[0][0]) + \":00\";\n } else {\n startTime = String.valueOf(selection[0][0]) + \":\" + String.valueOf(selection[0][1]);\n }\n\n if (selection[1][1] == 0) {\n endTime = String.valueOf(selection[1][0]) + \":00\";\n } else {\n endTime = String.valueOf(selection[1][0]) + \":\" + String.valueOf(selection[1][1]);\n }\n\n String days = intsToDays(selection[2]);\n\n System.out.println(\"\\t\" + type + \": \" + name + \"\\t Start: \" + startTime\n + \"\\t End: \" + endTime + \"\\t Days: \" + days);\n }", "public static void triathlon(Scanner data) {\n String name = data.next();\n int winnerTime = data.nextInt() + data.nextInt() + data.nextInt();\n System.out.println(name + \": \" + winnerTime + \" min\");\n\n while (data.hasNext()) {\n name = data.next();\n int time = data.nextInt() + data.nextInt() + data.nextInt();\n System.out.println(name + \": \" + time + \" min (+\" + (time - winnerTime) + \" min)\");\n }\n }", "public M csolAddTimeStart(Object start){this.put(\"csolAddTimeStart\", start);return this;}", "public void addProcess(String name, int time, HashMap<Integer, Integer> listOfInOut, HashMap<Integer, Integer> listOfResource) {\n listOfProcess.add(new Processus(name, time, listOfInOut, listOfResource));\n }", "net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();", "public void addTimeTable(TimeTable timetable) {\n\t\t\n\t}", "private void updateClock(String timeToAdd) {\n\t\tint TTA = Integer.parseInt(timeToAdd);\n\t\thours += TTA / 60;\n\t\tminutes += TTA % 60;\n\t\tif (minutes > 60) {\n\t\t\thours++;\n\t\t\tminutes -= 60;\n\t\t}\n\t}", "List<Tour> getTourSchedule(String line);", "public Cashier(String name, double startTime, double endTime, double breakTime){\n this.name = name;\n this.startTime = startTime;\n this.endTime = endTime;\n this.breakTime = breakTime;\n this.allocations = new int[(int)((endTime - startTime)/0.25 + 1)];\n }", "public abstract void sendTraceTimeCustom(Player p, String prefix);", "@Override\n\tpublic Seconds addTime() {\n\t\treturn new HTLSeconds();\n\n\t}", "public static void time_curve(final String name, final long milliSecs) {\n\n final byte[] curve_ptr = VEC.getCurve(name);\n\n final String h = String.format(\"%nTiming curve: %s (%d ms/function)\",\n name, milliSecs);\n System.out.println(h);\n System.out.println(\n \"----------------------------------------------------\");\n\n String r;\n\n r = String.format(\"%12d additions\",\n time_add(curve_ptr, milliSecs));\n System.out.println(r);\n\n r = String.format(\"%12d multiplications\",\n time_mul(curve_ptr, milliSecs));\n System.out.println(r);\n\n r = String.format(\"%12d fixed-base multiplications\",\n time_fmul(curve_ptr, milliSecs));\n System.out.println(r);\n }", "net.opengis.gml.x32.TimePositionType addNewBeginPosition();", "public void addStop(final int floor) {\n if (!destinations.contains(floor)) {\n destinations.add(floor);\n }\n }", "@Override\n\tpublic Map getStartandStopByGPS(String terminalId, String start_time,\n\t\t\tString stop_time) {\n\t\tMap map = new HashMap();\n\t\ttry {\n\t\t\tif(start_time.length()==12&&stop_time.length()==12){\n\t\t\t\tString start_time_in_format = start_time.substring(0,2) + \"-\" + start_time.substring(2,4) + \"-\" + start_time.substring(4,6) + \" \" + start_time.substring(6,8) + \":\" + start_time.substring(8,10) + \":\" + start_time.substring(10,12);\n\t\t\t\tString stop_time_in_format = stop_time.substring(0,2) + \"-\" + stop_time.substring(2,4) + \"-\" + stop_time.substring(4,6) + \" \" + stop_time.substring(6,8) + \":\" + stop_time.substring(8,10) + \":\" + stop_time.substring(10,12);\n\t\t\t\tmap.put(\"start_time_in_format\", start_time_in_format);\n\t\t\t\tmap.put(\"stop_time_in_format\", stop_time_in_format);\n\t\t\t\tList<PositionData> position_between = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' and date>'\" + start_time_in_format + \"' and date<'\" + stop_time_in_format + \"' order by date desc\");\n\t\t\t\tfor(int i=0;i<position_between.size();i++){\n\t\t\t\t\tif(position_between.get(i).getInfo().contains(\"GPS状态:GPS不定位;\")){\n\t\t\t\t\t\tposition_between.remove(i);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString start_point = \"Nil\";\n\t\t\t\tString stop_point = \"Nil\";\n\t\t\t\tif(position_between.size()>0){\n\t\t\t\t\tString stop_point_latitude = position_between.get(0).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.substring(0,stop_point_latitude.indexOf(\";\"));\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.split(\":\")[1];\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstop_point_latitude = stop_point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\t\tString tempStrPart = stop_point_latitude.split(\"\\\\.\")[1];\n\t\t\t\t\ttempStrPart = \"0.\" + tempStrPart;\n\t\t\t\t\tdouble tempD = Double.parseDouble(tempStrPart)/60*100;\n\t\t\t\t\tstop_point_latitude = Integer.parseInt(stop_point_latitude.split(\"\\\\.\")[0]) + tempD + \"\";\n\t\t\t\t\t\n\t\t\t\t\tString stop_point_longitute = position_between.get(0).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.substring(0,stop_point_longitute.indexOf(\";\"));\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.split(\":\")[1];\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstop_point_longitute = stop_point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\t\tString _tempStrPart = \"0.\" + stop_point_longitute.split(\"\\\\.\")[1];\n\t\t\t\t\tdouble _tempD = Double.parseDouble(_tempStrPart)/60*100;\n\t\t\t\t\tstop_point_longitute = Integer.parseInt(stop_point_longitute.split(\"\\\\.\")[0]) + _tempD + \"\";\n\t\t\t\t\tstop_point = stop_point_longitute + \",\" + stop_point_latitude;\n\t\t\t\t\t\n\t\t\t\t\tString start_point_latitude = position_between.get(position_between.size()-1).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\t\tstart_point_latitude = start_point_latitude.substring(0,start_point_latitude.indexOf(\";\"));\n\t\t\t\t\tstart_point_latitude = start_point_latitude.split(\":\")[1];\n\t\t\t\t\tstart_point_latitude = start_point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstart_point_latitude = start_point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\t\tString tempStrPart1 = start_point_latitude.split(\"\\\\.\")[1];\n\t\t\t\t\ttempStrPart1 = \"0.\" + tempStrPart1;\n\t\t\t\t\tdouble tempD1 = Double.parseDouble(tempStrPart1)/60*100;\n\t\t\t\t\tstart_point_latitude = Integer.parseInt(start_point_latitude.split(\"\\\\.\")[0]) + tempD1 + \"\";\n\t\t\t\t\t\n\t\t\t\t\tString start_point_longitute = position_between.get(position_between.size()-1).getInfo().substring(position_between.get(0).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\t\tstart_point_longitute = start_point_longitute.substring(0,start_point_longitute.indexOf(\";\"));\n\t\t\t\t\tstart_point_longitute = start_point_longitute.split(\":\")[1];\n\t\t\t\t\tstart_point_longitute = start_point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\t\tstart_point_longitute = start_point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\t\tString _tempStrPart1 = \"0.\" + start_point_longitute.split(\"\\\\.\")[1];\n\t\t\t\t\tdouble _tempD1 = Double.parseDouble(_tempStrPart1)/60*100;\n\t\t\t\t\tstart_point_longitute = Integer.parseInt(start_point_longitute.split(\"\\\\.\")[0]) + _tempD1 + \"\";\n\t\t\t\t\tstart_point = start_point_longitute + \",\" + start_point_latitude;\n//\t\t\t\t\tSystem.out.println(start_point + \"-->\" + stop_point);\n//\t\t\t\t\tmap.put(\"start_point\",start_point);\n//\t\t\t\t\tmap.put(\"stop_point\", stop_point);\n\t\t\t\t}\n\t\t\t\treturn map;\n\t\t\t}\n\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public ArrayList<Station> searchTrainTimes ( String stationName,int deparH, String befAft) {\r\n ArrayList<Station> result = new ArrayList<>();\r\n \r\n Station station;\r\n String s_name;\r\n int hh;\r\n int mm;\r\n \r\n AdditionalTestData();\r\n \r\n Iterator<Station> iterator = stationList.iterator();\r\n \r\n // record start time\r\n long sTime = System.currentTimeMillis();\r\n while (iterator.hasNext()) {\r\n \r\n station = iterator.next();\r\n s_name = station.getStationName();\r\n hh = station.getDepartureHour();\r\n mm = station.getDepartureMinute();\r\n \r\n System.out.println(\"Searching..........: \" + stationName + \"----\" + deparH);\r\n \r\n if( befAft.compareTo( \"After\" ) == 0) {\r\n if( s_name.compareTo( stationName ) == 0 && hh >= deparH )\r\n result.add(station);\r\n }\r\n \r\n if( befAft.compareTo( \"Before\" ) == 0) {\r\n if( s_name.compareTo( stationName ) == 0 && hh <= deparH)\r\n result.add(station);\r\n }\r\n }\r\n \r\n long eTime = System.currentTimeMillis();\r\n \r\n long timeNeeded = eTime - sTime;\r\n System.out.println(\"Time needed:\" + timeNeeded);\r\n \r\n return result; \r\n }", "public void addBreakTime(LocalTime startTime) {\n\t\tif(startTime == null) {\n\t\t\tthrow new IllegalArgumentException(\"the start time can't be null!\");\n\t\t}\n\t\tLocalTime startBreak = LocalTime.of(11, 0);\n\t\tLocalTime endBreak = LocalTime.of(13, 0);\n\t\tLocalTime endTime = startTime.plusHours(1);\n\t\tif(startTime.isBefore(startBreak) || endTime.isAfter(endBreak)) {\n\t\t\tthrow new IllegalArgumentException(\"The break time must be between 11:00 end 13:00\");\n\t\t}\n\t\tsetBreakTime(new AvailabilityPeriod(startTime, endTime));\n\t}", "public Vector atTime(double t) {\n return start.add(direction.scale(t));\n }", "@When(\"^I have a StopPoint called \\\"([^\\\"]*)\\\"$\")\n public void iHaveAStopPointCalled(String stopPointName) throws Throwable {\n sp1Name = stopPointName;\n createStopPoint(stopPointName);\n }", "public M csmiAddTimeStart(Object start){this.put(\"csmiAddTimeStart\", start);return this;}", "private void startTimer(String time){\n\n String[] splitTime = time.split(\":\");\n\n int splitMinute = Integer.valueOf(splitTime[0]);\n int splitSecond = Integer.valueOf(splitTime[1]);\n\n Long mMilisSecond = (long) (((splitMinute * 60) + splitSecond) * 1000);\n\n int max = (((splitMinute * 60) + splitSecond) * 1000);\n mCircularBarPager.getCircularBar().setMax(max);\n mStep = (int) ((max * INTERVAL) / mMilisSecond);\n mCounter = new Counter(mMilisSecond, INTERVAL);\n\n mStart = mEnd;\n mEnd = mEnd + mStep;\n mCounter.start();\n }", "private void appendFinishTime(StringBuilder sb, Competitor c) {\n\t\tif (!c.getFinishTimes().isEmpty()) {\n\t\t\tsb.append(Formater.formatColumns(c.getFinishTimes().get(\n\t\t\t\t\tc.getFinishTimes().size() - 1)));\n\t\t}\n\t\tif (c.getStartTimes().size() > 1) {\n\t\t\tsb.append(\"; \" + MULTIPLE_STARTS + \" \");\n\t\t\tfor (int i = 1; i < c.getStartTimes().size(); i++) {\n\t\t\t\tsb.append(c.getStartTimes().get(i));\n\t\t\t}\n\t\t}\n\t\tappendCheckImpossibleLapTime(sb, c);\n\n\t}", "public void setTime(int time)\n {\n this.time = time;\n start = time;\n end = time;\n }", "public void setClosedStop(Stop stop)\r\n {\r\n closed_stop = stop;\r\n }", "public void setStopTimestamp(long value) {\n this.stopTimestamp = value;\n }", "private PointInTime findTime(float time) {\n for (int i=0;i<keyframes.size();i++){\n if (((PointInTime)keyframes.get(i)).time==time)\n return (PointInTime) keyframes.get(i);\n if (((PointInTime)keyframes.get(i)).time>time){\n PointInTime t=new PointInTime(time);\n keyframes.add(i,t);\n return t;\n }\n }\n PointInTime t=new PointInTime(time);\n keyframes.add(t);\n return t;\n }", "public static String addTime(String time, int increase)\r\n/* 96: */ {\r\n/* 97:129 */ SimpleDateFormat format = new SimpleDateFormat(\"HH:mm\");\r\n/* 98:130 */ String retTime = \"\";\r\n/* 99: */ try\r\n/* 100: */ {\r\n/* 101:133 */ Date date = format.parse(time);\r\n/* 102:134 */ long Time = date.getTime() / 1000L + increase * 60;\r\n/* 103:135 */ date.setTime(Time * 1000L);\r\n/* 104:136 */ retTime = format.format(date);\r\n/* 105: */ }\r\n/* 106: */ catch (Exception localException) {}\r\n/* 107:141 */ return retTime;\r\n/* 108: */ }", "public void addTestMs(String name, Throwing.Runnable toTest) {\n\t\taddTest(name, toTest, LapTimer.createMs());\n\t}", "public void addTest(String name, ITimed test) {\n\t\ttests.add(new Test(name, test));\n\t}", "public String getStopTime() {\n\t\treturn (new Parser(value)).skipString().getString();\n\t}", "public String addTime(Stream strm){\n\t\tString str = \"\";\n\t\tstr += genTableStr + strm.getName() + \"_time AS WCACHE \\r\\n\";\n\t\tstr += \"select wid, max(timestamp) as timestamp\\r\\n\";\n\t\tstr\t+= \"from \"+streamSet.toArray()[0]+\"\\r\\n\";\n\t\tstr\t+= \"group by wid;\\r\\n\";\n\t\treturn str;\n\t}", "private List<StopEdge> getPossibleDestinations(Stop stop, long timeAtStop, Route route, String tripId, LocalDate departureDate, long departureTime, List<StopTime> stopTimesOfTrip, Set<Stop> found, Map<String, Long> bestArrivalTime) {\n List<StopEdge> edges = new TiraArrayList<>();\n\n long departureTimeMillis = calculateTime(departureDate, departureTime);\n //If the public transport service departs from the stop before current time, that service cannot be used for the route -> return empty list\n if (departureTimeMillis < timeAtStop) {\n return Collections.emptyList();\n }\n\n for (StopTime stopTime : stopTimesOfTrip) {\n Stop destinationStop = stops.get(stopTime.getStopId());\n if (destinationStop == null) {\n //This should happen only if the GTFS feed is malformed\n return Collections.emptyList();\n }\n\n //Don't add new edge if a better route to the destination was already found\n long arrivalTimeMillis = calculateTime(departureDate, stopTime.getArrivalTime());\n if (arrivalTimeMillis > bestArrivalTime.getOrDefault(destinationStop.getId(), Long.MAX_VALUE)) {\n continue;\n }\n\n if (arrivalTimeMillis > departureTimeMillis) {\n //If the trip would pass through any of already found stops, return empty list as it would be slower to reach the final destination using this route than the route that was used for reaching the previously found route\n if (found.contains(destinationStop)) {\n return Collections.emptyList();\n }\n\n bestArrivalTime.put(destinationStop.getId(), arrivalTimeMillis);\n edges.add(new StopEdge(route.getName(), tripId, route.getMode(), stop, destinationStop, arrivalTimeMillis, departureTimeMillis));\n }\n }\n\n return edges;\n }", "public TimeLine(Spatial target) {\r\n this.target = target;\r\n }", "public void addExtraTime (int t) {\n\t\textraTime += t;\n\t\textTime.setText(String.valueOf(extraTime));\n\t}", "@Query(\"select :stopName from Timetable order by id\")\n List<Integer> selectStop(String stopName);" ]
[ "0.6932524", "0.63434625", "0.6188373", "0.6020072", "0.60186595", "0.5964824", "0.59588784", "0.58356255", "0.5793081", "0.5782304", "0.5745042", "0.5736816", "0.57171184", "0.570476", "0.56693107", "0.563705", "0.56294394", "0.56187224", "0.5561436", "0.55443186", "0.5514748", "0.550975", "0.5477193", "0.54694235", "0.5468307", "0.5453488", "0.5442511", "0.5441125", "0.54277265", "0.5410303", "0.5408086", "0.5378799", "0.537115", "0.53650075", "0.5312308", "0.5248694", "0.5238102", "0.5229807", "0.52278405", "0.51998734", "0.5172856", "0.5168826", "0.51573837", "0.51565176", "0.5148363", "0.51078665", "0.5106252", "0.5094621", "0.5092484", "0.5076936", "0.50700945", "0.506888", "0.5065665", "0.5025164", "0.50112057", "0.49980384", "0.49979296", "0.49938717", "0.49723253", "0.49606732", "0.4959618", "0.49439374", "0.49287307", "0.492085", "0.49174228", "0.4913663", "0.4901284", "0.49006158", "0.4896725", "0.48953983", "0.48918492", "0.48870346", "0.48784813", "0.4877911", "0.48745963", "0.48727724", "0.48669285", "0.48609006", "0.48548475", "0.48533803", "0.48522368", "0.48498178", "0.4838735", "0.48365068", "0.48341253", "0.4820976", "0.48172712", "0.48136047", "0.48048633", "0.48029545", "0.48007664", "0.47931048", "0.47924575", "0.47916764", "0.47862175", "0.47850394", "0.47774303", "0.47632095", "0.47546455", "0.47529304" ]
0.6133071
3
Get all stops line vehicles have to cross
public List<AbstractMap.SimpleImmutableEntry<Stop, Integer>> getStops() { return stops;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Stopsinlinedb> fetchStopsInLines();", "List<Stop> getStops();", "public ArrayList<Circle> getLineVehicles()\r\n {\r\n return this.all_line_vehicles;\r\n }", "public ArrayList<Coordinate> transportLinePath()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<Coordinate> line_coordinates = new ArrayList<Coordinate>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates.add(stop.getCoordinate());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates.add(s.getCoordinates().get(1));\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n\r\n }\r\n\r\n line_coordinates.add(getStopsMap().get(getStopsMap().size()-1).getCoordinate());\r\n return line_coordinates;\r\n }", "List<Stop> getStopsPerLine(String line);", "public ArrayList<String> transportLinePathIDs()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<String> line_coordinates_ids = new ArrayList<String>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates_ids.add(stop.getId());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n }\r\n\r\n line_coordinates_ids.add(getStopsMap().get(getStopsMap().size()-1).getId());\r\n return line_coordinates_ids;\r\n }", "public String[] obtainStops() {\n\n String[] stopsNone = { \"No stops found\" };\n String[] stopsArbutus = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Administration Dr. Bus Shelter\", \"Hilltop Cir. & Hilltop Rd.\", \"Hilltop Cir. & Walker Ave.\", \"Hilltop Cir. & Center Rd.\", \"Poplar Ave. & Stadium Lot\", \"TRC @ Linden Ave\", \"Westland Blvd. & Circle Dr.\", \"Westland Blvd. & Courtney Rd.\", \"Maiden Choice La. & Westland Blvd\", \"Maiden Choice La. & Warren Tree\", \"Maiden Choice La. & Wilkens Ave\", \"Maiden Choice La. & Grouse Ct\", \"Maiden Choice La. & Symmington Aven.\"};\n String[] stopsArundel = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"BWI Marc Station\", \"Arundel Mills Mall Visitor Entrace #5\", \"BWI Marc Station\", \"Administration Dr. Bus Shelter\", \"Hilltop Circle & Hilltop Rd.\" };\n String[] stopsCatonsville = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Administration Dr. Bus Shelter\", \"Rolling Rd @YMCA\", \"Rolling Rd @Valley Rd (CCBC)\", \"Catonsville High @Bloomsbury Ave\", \"Mellor Ave & Bloomsbury Ave\" };\n String[] stopsDowntownA = { \"Commons Dr. & Park Rd\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Greyhound Station @ Haines\",\"MLK Blvd & Pratt St (UMB)\", \"Green St & Fayette St\", \"Green St & Lombard St (UMB)\" };\n\n if ( this.longName.toLowerCase().contains(\"Arbutus\".toLowerCase()) ) {\n return stopsArbutus;\n }\n if ( this.longName.contains(\"Arundel\") ) {\n return stopsArundel;\n }\n if ( this.longName.contains(\"Catonsville\") ) {\n return stopsCatonsville;\n }\n if ( this.longName.contains(\"Downtown\") ) {\n return stopsDowntownA;\n }\n\n return stopsNone;\n\n }", "public static List<Stop> getAllStops() {\n return allStops;\n }", "List<Vehicle> getLineVehicles(String line);", "public Observable<Stop> getEndPoints() {\n return loadRoutesData()\n .flatMap(availableRoutes ->\n Observable.from(availableRoutes.routes()))\n .flatMap(route -> Observable.from(route.segments()).last())\n .map(segment -> segment.stops().get(segment.stops().size() - 1));\n\n }", "private Collection<GJSmoothCurve2D> smoothCurves() {\n\t\tGJPoint2D lastControl = null;\n\t\tGJPoint2D lastStart = null;\n\t\tGJPoint2D[] pts;\n\t\t\n\t\tint n = this.segments.size();\n\t\tArrayList<GJSmoothCurve2D> curves = new ArrayList<GJSmoothCurve2D>(n);\n\t\t\n\t\tfor (Segment seg : this.segments) {\n\t\t\tswitch (seg.type()) {\n\t\t\tcase MOVE:\n\t\t\t\t// update last control and initial point\n\t\t\t\tlastStart = seg.lastControl();\n\t\t\t\tlastControl = lastStart;\n\t\t\t\tbreak;\n\n\t\t\tcase LINE:\n\t\t\t\tpts = seg.controlPoints();\n\t\t\t\tcurves.add(new GJLineSegment2D(lastControl, pts[0]));\n\t\t\t\tlastControl = pts[0];\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase QUAD:\n\t\t\t\tpts = seg.controlPoints();\n\t\t\t\tcurves.add(new GJQuadBezierCurve2D(lastControl, pts[0], pts[1]));\n\t\t\t\tlastControl = pts[1];\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase CUBIC:\n\t\t\t\tpts = seg.controlPoints();\n\t\t\t\tcurves.add(new GJCubicBezierCurve2D(lastControl, pts[0], pts[1], pts[2]));\n\t\t\t\tlastControl = pts[2];\n\t\t\t\tbreak;\n\n\t\t\tcase CLOSE:\n\t\t\t\t// connect to the last initial point\n\t\t\t\tcurves.add(new GJLineSegment2D(lastControl, lastStart));\n\t\t\t\tlastControl = lastStart;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tthrow new RuntimeException(\"Unknown Path segment type: \" + seg.type());\n\t\t\t}\n\t\t}\n\n\t\t// Returns the set of curves\n\t\treturn curves;\n\t}", "public List<Line> getEdgeLines()\r\n {\r\n final List<Line> lineList = new ArrayList<Line>();\r\n lineList.add(new Line(getUpperLeft(), getLowerLeft()));\r\n lineList.add(new Line(getLowerLeft(), getLowerRight()));\r\n lineList.add(new Line(getLowerRight(), getUpperRight()));\r\n lineList.add(new Line(getUpperRight(), getUpperLeft()));\r\n return lineList;\r\n }", "public List<Polyline> getAllLines() {\n return lines;\n }", "private List<Edge<Stop>> getWalkingEdgesFromStop(long timeAtStop, Stop stop, Set<Stop> found) {\n //Calculate a list of geohashes around the stop\n List<Geohash> nearbyGeohashes = Geohash.getSurroundingGeohashes(\n BigDecimal.valueOf(stop.getLocation().getLatitude()),\n BigDecimal.valueOf(stop.getLocation().getLongitude()), STOP_INDEX_GEOHASH_LEVEL);\n\n return nearbyGeohashes.stream()\n //Get all stops inside the geohashes\n .flatMap(geohash -> stopByGeohashIndex.getItems(geohash).stream())\n //Filter stops that have been already found\n .filter(stopFromIndex -> !found.contains(stopFromIndex))\n //Filter stops that are too far\n .filter(stopFromIndex -> stopFromIndex.getLocation().distanceTo(stop.getLocation()) <= MAX_WALKING_DISTANCE_IN_METERS\n && !stopFromIndex.getId().equals(stop.getId()))\n .map(walkableStop -> new StopEdge(null, //No public transport route used when walking -> route = null, trip = null\n null,\n TransportMode.WALK,\n stop,\n walkableStop,\n //Calculate walking time\n timeAtStop + 1 + Math.round(walkableStop.getLocation().distanceTo(stop.getLocation()) / AVERAGE_WALKING_SPEED_MS),\n timeAtStop))\n .collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }", "public Obs findStops(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY) {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t/**\n\t\t * Stops sets and time stamps for these stops\n\t\t */\n\t\tString stops = \"\";\n\t\tString tstops = \"\";\n\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\t\tfor (int i = 0; i < towers.length; i++) {\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tbuffer.add(towers[i]);\n\t\t\ttbuffer.add(tstamps[i]);\n\n\t\t\tif (max_distance > dist_th) {\n\n\t\t\t\ttry {\n\t\t\t\t\t/**\n\t\t\t\t\t * if the time exceeds timing threshold, then check the\n\t\t\t\t\t * distance between towers. If this distance less than the\n\t\t\t\t\t * distance threshold, then previous tower is the end of the\n\t\t\t\t\t * current trip.\n\t\t\t\t\t *\n\t\t\t\t\t */\n\t\t\t\t\tjava.util.Date sTime = formatter.parse(tbuffer.get(0));\n\t\t\t\t\tjava.util.Date eTime = formatter.parse(tbuffer.get(tbuffer.size() - 1));\n\t\t\t\t\tcal.setTime(sTime);\n\t\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\tcal.setTime(eTime);\n\t\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\n\t\t\t\t\tif (time_diff > time_th) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Add buffer mode to the stops\n\t\t\t\t\t\t */\n\t\t\t\t\t\tint index = modeIndex(buffer);\n\t\t\t\t\t\tif (index != -1) {\n\t\t\t\t\t\t\t// System.out.println(\"Find stop\");\n\t\t\t\t\t\t\tif (!stops.isEmpty()) {\n\t\t\t\t\t\t\t\tstops += CLM;\n\t\t\t\t\t\t\t\ttstops += CLM;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstops += buffer.get(index);\n\t\t\t\t\t\t\ttstops += tbuffer.get(index);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// else {\n\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t/**\n\t\t\t\t\t * Reset maximum distances\n\t\t\t\t\t */\n\t\t\t\t\tmax_distance = 0;\n\t\t\t\t\t// }\n\t\t\t\t} catch (ParseException ex) {\n\t\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\t/**\n\t\t\t * Add buffer mode to the stops\n\t\t\t */\n\t\t\tint index = modeIndex(buffer);\n\t\t\tif (index != -1) {\n\t\t\t\t// System.out.println(\"Find from the remaining buffer\");\n\t\t\t\tif (!stops.isEmpty()) {\n\t\t\t\t\tstops += CLM;\n\t\t\t\t\ttstops += CLM;\n\t\t\t\t}\n\t\t\t\tstops += buffer.get(index);\n\t\t\t\ttstops += tbuffer.get(index);\n\n\t\t\t}\n\n\t\t}\n\n\t\t// System.out.println(\"stops:\\t\" + stops);\n\t\t// System.out.println(\"time stamps:\\t\" + tstops);\n\t\treturn new Obs(stops, tstops);\n\n\t}", "public Observable<Stop> getStartPoints() {\n\n return loadRoutesData()\n .flatMap(availableRoutes ->\n Observable.from(availableRoutes.routes()))\n .flatMap(route -> Observable.from(route.segments()).first())\n .map(segment -> segment.stops().get(0));\n\n\n }", "public ArrayList<Lane> getCrossingYieldToLaneList() {\r\n\t\treturn crossingYieldToLaneList;\r\n\t}", "@Override\n public boolean AddVehicleToLine(Vehicle v) {\n boolean alreadyContainsThisVehicle = false;\n for(Vehicle vehicle : vehicles) {\n if(vehicle.getStart() == v.getStart()) {\n alreadyContainsThisVehicle = true;\n break;\n }\n }\n if(!alreadyContainsThisVehicle) {\n vehicles.add(v);\n for(int i=0; i<stops.size()-1;i++) {\n Route route = new MyRoute();\n route.ConstructRoute(streets,\n new PointInPath(route, stops.get(i).getKey().getStreet(), stops.get(i).getKey().getCoordinate()),\n new PointInPath(route, stops.get(i+1).getKey().getStreet(), stops.get(i+1).getKey().getCoordinate()),\n stops.get(i+1).getValue());\n v.AddRoute(route);\n }\n return true;\n } else {\n return false;\n }\n }", "public List<Stop> getStopsMap()\r\n {\r\n return stops_map;\r\n }", "public List<Segment2> verticalLinesinCell() {\n\n\t\tList<Float> boundings = getBoundingsOfCell();\n\t\tint partitionPrecision = 1000;\n\t\tfloat distanceBtwLineSegments = (boundings.get(1) - boundings.get(0))\n\t\t\t\t/ partitionPrecision;\n\n\t\tList<Segment2> segments = new ArrayList<Segment2>();\n\t\tdouble startingPoint = boundings.get(0);\n\t\tint i = 0;\n\n\t\twhile (startingPoint < boundings.get(1)) {\n\n\t\t\tstartingPoint = boundings.get(0) + i\n\t\t\t\t\t* distanceBtwLineSegments;\n\t\t\tPoint2 source = new Point2(startingPoint,\n\t\t\t\t\tboundings.get(2));\n\t\t\tPoint2 target = new Point2(startingPoint,\n\t\t\t\t\tboundings.get(3));\n\n\t\t\tSegment2 segment = new Segment2(source, target);\n\t\t\ti++;\n\t\t\tsegments.add(segment);\n\t\t}\n\n\t\treturn segments;\n\n\t}", "public ArrayList<Coordinate> affectTravellingPath(Coordinate actual_c)\r\n {\r\n ArrayList<Coordinate> line_coordinates_part = new ArrayList<Coordinate>();\r\n line_coordinates_part.add(actual_c);\r\n\r\n for (int i = 0; i < this.transportLinePath().size() - 1; i++) {\r\n Coordinate coordinates1 = this.transportLinePath().get(i);\r\n Coordinate coordinates2 = this.transportLinePath().get(i + 1);\r\n String id_coordinates_2 = this.transportLinePathIDs().get(i + 1);\r\n\r\n if (actual_c.isBetweenTwoCoordinates(coordinates1, coordinates2) == true) {\r\n for (int j = 0; j < this.transportLinePathIDs().size(); j++) {\r\n if (j >= this.transportLinePathIDs().indexOf(id_coordinates_2)) {\r\n line_coordinates_part.add(this.transportLinePath().get(j));\r\n }\r\n }\r\n }\r\n }\r\n\r\n return line_coordinates_part;\r\n }", "public ArrayList<Vehicle> getVehicles() {\r\n ArrayList<Vehicle> allVehicles = new ArrayList<>();\r\n for (Lane lane : lanes) {\r\n allVehicles.addAll(lane.getVehicles());\r\n }\r\n return allVehicles;\r\n }", "List<AirlineFlightDelays> listArrivalFlightDelaysByAirlineAsAirlineFlightDelays();", "private Vector <BusStopInfo> findStopInfo(BusStopInterface busStop)\r\n {\r\n Vector <BusStopInfo> result = new Vector<BusStopInfo>();\r\n Awtobus checking = null;\r\n for(int i=0; i < lines.size(); i++)\r\n {\r\n checking = lines.get(i);\r\n int length = checking.busLine.getNumberOfBusStops();\r\n for(int j=0; j<length; j++)\r\n {\r\n if(busStop == checking.busLine.getBusStop(j))\r\n {\r\n result.add(new BusStopInfo(checking, j));\r\n }\r\n }\r\n }\r\n return result;\r\n }", "public ArrayList getStops(String route, int direction){\r\n // Will hold all the stops returned from query\r\n ArrayList stopDataList = new ArrayList();\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n int route_id = getData.getInt(0);\r\n final String query = \"select distinct Stops.Stop_Name \" +\r\n \"from Trips join \" +\r\n \"Calendar on Trips.Service_Id=Calendar._Id join \" +\r\n \"Routes on Trips.Route_Id=Routes._Id join \" +\r\n \"Stop_Times on Trips._Id=Stop_Times.Trip_Id JOIN \" +\r\n \"Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id= \" + route_id + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"AND direction_id = \" + direction;\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n // the data count is 0 when a route is not in service on a particular day\r\n if(getData.getCount() == 0){\r\n stopDataList.add(\"No Stops Available Today For This Route\");\r\n return stopDataList;\r\n }else{\r\n while (getData.moveToNext()){\r\n stopDataList.add(getData.getString(0));\r\n }\r\n }\r\n\r\n getData.close();\r\n\r\n return stopDataList;\r\n }", "private String viewListOfStops() {\n StringBuilder result = new StringBuilder();\n for (TTC stops : this.listOfStops) {\n result.append(stops.toString());\n result.append(\" -> \");\n }\n return (result.toString()).substring(0, result.length() - 2);\n }", "public List<Polyline> getPolylines() {\n return this.polylines.obtainAll();\n }", "private List<Edge<Stop>> getPublicTransportEdgesFromStop(long timeAtStop, Stop stop, Set<Stop> found) {\n GregorianCalendar gregorianCalendar = new GregorianCalendar(timeZone);\n gregorianCalendar.setTimeInMillis(timeAtStop);\n\n LocalDate date = LocalDate.of(gregorianCalendar.get(java.util.Calendar.YEAR), gregorianCalendar.get(java.util.Calendar.MONTH) + 1, gregorianCalendar.get(java.util.Calendar.DAY_OF_MONTH));\n\n List<StopTime> stopTimes = stopTimesByStopIdIndex.getItems(stop.getId());\n return stopTimes.stream().flatMap(stopTime -> {\n ServiceDates serviceDatesForStopTime = serviceDates.get(trips.get(stopTime.getTripId()).getServiceId());\n\n LocalDate estimatedDepartureDate = date.minus(Math.round(stopTime.getArrivalTime() / 86400f), ChronoUnit.DAYS);\n\n List<StopEdge> edges = new TiraArrayList<>();\n\n //Optimization: list of best arrival times (to ignore routes that would arrive to these stops later than the previously found best route)\n //This optimization is not optimal but should decrease the amount of possible returned edges\n Map<String, Long> bestArrivalTime = new TiraHashMap<>();\n\n /**\n * Check possible departure dates that are: yesterday, today and the day after today\n */\n for (int i = -1; i <= 1; i++) {\n LocalDate departureDate = estimatedDepartureDate.plus(i, ChronoUnit.DAYS);\n\n if (serviceDatesForStopTime.runsOn(departureDate)) {\n edges.addAll(\n getPossibleDestinations(stop,\n timeAtStop,\n routes.get(trips.get(stopTime.getTripId()).getRouteId()),\n stopTime.getTripId(),\n departureDate,\n stopTime.getArrivalTime(),\n stopTimesByTripIdIndex.getItems(stopTime.getTripId()),\n found,\n bestArrivalTime));\n }\n }\n\n return edges.stream();\n }).collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }", "public PVector separate (ArrayList<Boid> vehicles) {\n float desiredseparation = r*15;\n PVector steer = new PVector(0,0);\n int count = 0;\n // For every boid in the system, check if it's too close\n for (Boid other : vehicles) {\n float d = PVector.dist(location, other.location);\n // If the distance is greater than 0 and less than an arbitrary amount (0 when you are yourself)\n if ((d > 0) && (d < desiredseparation)) {\n // Calculate vector pointing away from neighbor\n PVector diff = PVector.sub(location, other.location);\n diff.normalize();\n diff.div(d); // Weight by distance\n steer.add(diff);\n count++; // Keep track of how many\n }\n }\n // Average -- divide by how many\n if (count > 0) {\n steer.div((float)count);\n // Our desired vector is the average scaled to maximum speed\n steer.normalize();\n steer.mult(maxspeed);\n // Implement Reynolds: Steering = Desired - Velocity\n steer.sub(velocity);\n steer.limit(maxforce);\n }\n return steer;\n }", "public String printRouteStops()\r\n {\r\n String route_output = \"-> \";\r\n for (Stop s : stops_map)\r\n {\r\n route_output = route_output + s.getId() + \" ->\";\r\n }\r\n\r\n return route_output;\r\n }", "private static List<int[]> getSkyLineRecur(int[][] buildings, int start, int end) {\n List<int[]> result = new ArrayList<>();\n if (start == end) {\n int[] building = buildings[start];\n result.add(new int[]{building[0], building[2]});\n result.add(new int[]{building[1], 0});\n return result;\n }\n int mid = start + (end - start) / 2;\n List<int[]> leftPoints = getSkyLineRecur(buildings, start, mid);\n List<int[]> rightPoints = getSkyLineRecur(buildings, mid + 1, end);\n int prevLeftHeight = 0, prevRightHeight = 0;\n int prevHeight = 0;\n int l = 0, r = 0;\n for(; l < leftPoints.size() && r < rightPoints.size();) {\n int[] leftPoint = leftPoints.get(l);\n int[] rightPoint = rightPoints.get(r);\n if (leftPoint[0] < rightPoint[0]) {\n int newHeight = Math.max(leftPoint[1], prevRightHeight);\n if (newHeight != prevHeight) {\n result.add(new int[]{leftPoint[0], newHeight});\n prevHeight = newHeight;\n }\n prevLeftHeight = leftPoint[1];\n l++;\n } else if (leftPoint[0] > rightPoint[0]) {\n int newHeight = Math.max(rightPoint[1], prevLeftHeight);\n if (newHeight != prevHeight) {\n result.add(new int[]{rightPoint[0], newHeight});\n prevHeight = newHeight;\n }\n prevRightHeight = rightPoint[1];\n r++;\n } else {\n int newHeight = Math.max(leftPoint[1], rightPoint[1]);\n if (newHeight != prevHeight) {\n result.add(new int[]{leftPoint[0], newHeight});\n prevHeight = newHeight;\n }\n prevLeftHeight = leftPoint[1];\n prevRightHeight = rightPoint[1];\n l++;\n r++;\n }\n }\n List<int[]> rest = (l == leftPoints.size()) ? rightPoints : leftPoints;\n int i = (l == leftPoints.size()) ? r : l;\n for (; i < rest.size(); ++i) {\n result.add(rest.get(i));\n }\n return result;\n }", "Iterable<Airline> getAirlines();", "public ArrayList<Coordinate> getAffectedPointsTraffic(ArrayList<Line> affected_lines)\r\n {\r\n ArrayList<Coordinate> new_affected_points = new ArrayList<Coordinate>();\r\n\r\n for (Street s : this.getStreetsMap()) {\r\n for (Line l : affected_lines) {\r\n if (s.begin().getX() == l.getStartX() && s.begin().getY() == l.getStartY() && s.end().getX() == l.getEndX() && s.end().getY() == l.getEndY()) {\r\n System.out.println(\"Street of line is affected with traffic now\");\r\n\r\n for (int i = 0; i < this.transportLinePath().size(); i++) {\r\n if (this.transportLinePath().get(i).isBetweenTwoCoordinates(s.begin(), s.end()) || (this.transportLinePath().get(i).getX() == s.begin().getX() && this.transportLinePath().get(i).getY() == s.begin().getY()) || (this.transportLinePath().get(i).getX() == s.end().getX() && this.transportLinePath().get(i).getY() == s.end().getY())) {\r\n System.out.println(\"Affected points: \" + this.transportLinePath().get(i).getX() + \", \" + this.transportLinePath().get(i).getY());\r\n new_affected_points.add(this.transportLinePath().get(i));\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return new_affected_points;\r\n }", "List<double[]> getVerticalDoors();", "public Obs findStops_trips(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY)\n\t\t\tthrows ParseException {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t/**\n\t\t * Stops sets and time stamps for these stops\n\t\t */\n\t\tString stops = towers[0];\n\t\tString tstops = tstamps[0];\n\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\t\tfor (int i = 0; i < towers.length; i++) {\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tbuffer.add(towers[i]);\n\t\t\ttbuffer.add(tstamps[i]);\n\n\t\t\tif (max_distance > dist_th) {\n\n\t\t\t\t/**\n\t\t\t\t * if the time exceeds timing threshold, then check the distance\n\t\t\t\t * between towers. If this distance less than the distance\n\t\t\t\t * threshold, then previous tower is the end of the current\n\t\t\t\t * trip.\n\t\t\t\t *\n\t\t\t\t */\n\t\t\t\tjava.util.Date sTime = formatter.parse(tbuffer.get(0));\n\t\t\t\tjava.util.Date eTime = formatter.parse(tbuffer.get(tbuffer.size() - 1));\n\t\t\t\tcal.setTime(sTime);\n\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tcal.setTime(eTime);\n\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\n\t\t\t\tif (time_diff > time_th) {\n\t\t\t\t\t// if (buffer.size() >= trip_length) {\n\t\t\t\t\tif (!stops.isEmpty()) {\n\t\t\t\t\t\tstops += CLM;\n\t\t\t\t\t\ttstops += CLM;\n\t\t\t\t\t}\n\t\t\t\t\t/**\n\t\t\t\t\t * Add start and end of the trips to the stop sequences\n\t\t\t\t\t */\n\t\t\t\t\tstops += buffer.get(buffer.size() - 1);\n\t\t\t\t\ttstops += tbuffer.get(tbuffer.size() - 1);\n\n\t\t\t\t\t// }\n\t\t\t\t}\n\t\t\t\t// else {\n\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t/**\n\t\t\t\t * Reset maximum distances\n\t\t\t\t */\n\t\t\t\tmax_distance = 0;\n\t\t\t\t// }\n\n\t\t\t}\n\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\t// if (buffer.size() >= trip_length) {\n\t\t\tif (!stops.isEmpty()) {\n\t\t\t\tstops += CLM;\n\t\t\t\ttstops += CLM;\n\t\t\t}\n\t\t\t/**\n\t\t\t * Add start and end of the trips to the stop sequences\n\t\t\t */\n\t\t\tstops += buffer.get(buffer.size() - 1);\n\t\t\ttstops += tbuffer.get(tbuffer.size() - 1);\n\n\t\t\t// }\n\t\t}\n\n\t\t// System.out.println(\"stops:\\t\" + stops);\n\t\t// System.out.println(\"time stamps:\\t\" + tstops);\n\t\treturn new Obs(stops, tstops);\n\n\t}", "private static List<List<Integer>> getSkyLine(int[][] buildings) {\n if (buildings.length == 0) { return new ArrayList<>(); }\n return getSkyLine(buildings, 0, buildings.length - 1);\n }", "public ArrayList<BlipModel> lineOfSightMarineBlips(MarineModel marine)\r\n/* 324: */ {\r\n/* 325:373 */ ArrayList<BlipModel> models = new ArrayList();\r\n/* 326:374 */ for (AgentModel model : this.agentModels.values()) {\r\n/* 327:376 */ if ((model instanceof BlipModel))\r\n/* 328: */ {\r\n/* 329:378 */ System.out.println(\"blip\");\r\n/* 330:379 */ if (marine.fov(model.getX(), model.getY())) {\r\n/* 331:381 */ if (line(marine.getX(), marine.getY(), model.getX(), model.getY())) {\r\n/* 332:383 */ models.add((BlipModel)model);\r\n/* 333: */ }\r\n/* 334: */ }\r\n/* 335: */ }\r\n/* 336: */ }\r\n/* 337:388 */ return models;\r\n/* 338: */ }", "public java.util.List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> getRoute()\r\n {\r\n List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> roads_map = new ArrayList<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>>();\r\n java.util.AbstractMap.SimpleImmutableEntry<Street,Stop> entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(null, null);\r\n\r\n for (Street s : streets_map)\r\n {\r\n if (s.getStops().isEmpty() == false)\r\n {\r\n for (int i = 0; i < s.getStops().size(); i++)\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,s.getStops().get(i));\r\n }\r\n\r\n }\r\n else\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,null);\r\n }\r\n\r\n roads_map.add(entry);\r\n\r\n }\r\n\r\n return roads_map;\r\n\r\n }", "private List<RouteInfo> createList() {\r\n\r\n List<RouteInfo> results = new ArrayList<>();\r\n\r\n for (String temp [] : stops) {\r\n\r\n RouteInfo info = new RouteInfo();\r\n info.setTitle(temp[0]);\r\n info.setRouteName(\"Stop ID: \" + temp[1]);\r\n info.setRouteDescription(\"Next bus at: \");\r\n results.add(info);\r\n }\r\n\r\n return results;\r\n }", "@Override\n public Stop[] getStops(String name) throws Exception {\n String query = \"{\\n\"\n + \"stops(name: \\\"\" + name + \"\\\") {\\n\"\n + \"name\\n\"\n + \"desc\\n\"\n + \"url\\n\"\n + \"code\\n\"\n + \"gtfsId\\n\"\n + \"}\\n\"\n + \"}\";\n \n String json = new GraphQLAPIQuery(apiUrl, query).execute();\n \n Stop[] deserialized = new GsonBuilder()\n .registerTypeAdapter(Stop[].class, new TransitDataJsonDeserializer())\n .create()\n .fromJson(json, Stop[].class);\n \n return deserialized;\n }", "public static ArrayList<City> getCitiesFlight(Flight voo) {\n\t\t\n\t\tArrayList<City> aux = new ArrayList<City>();\n\t\t\n\t\taux.add(voo.getCityOrigin());\n\t\taux.addAll(voo.getStops());\n\t\taux.add(voo.getCityDistin());\n\t\t\n\t\treturn aux;\n\t}", "public boolean getCurvedLines() {\n return (_curvedLines);\n }", "@Override\n\tpublic List<StopPoint> listStopPoints() {\n\t\tString jql = \"SELECT s FROM StopPoint s\";\n\t\tList<StopPoint> listStopPoints = this.entityManager.createQuery(jql, StopPoint.class ).getResultList();\n\t\treturn listStopPoints;\n\t}", "List<ConnectingFlights> getPossibleRoutes(int loc_start_id, int loc_end_id);", "ArrayList<TTC> generateSegments() {\n if ((START_STATION instanceof Station) && (endStation instanceof Station)) {\n ArrayList<TTC> route = TTC.SUBWAY_LIST.get(NUMBER);\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n } else {\n ArrayList<TTC> route = TTC.BUS_MAP.get((START_STATION).getNUMBER());\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n }\n }", "public DetectLED findSegments() {\n\t\tchains = new ArrayList<Chain>();\n\t\t// Every single line segment is a candidate to build a chain upon it\n\t\t// So let's seed the starting points for all potential chains\n\t\tfor (int i=0; i < lights.size(); i++) {\n\t\t\tfor (int j=0; j < lights.size(); j++) {\n\t\t\t\tif(i != j && lights.get(i).minus(lights.get(j)).norm() < maxSeg) {\n\t\t\t\t\t// Also seed chains for different number of nodes\n\t\t\t\t\t// maxNodes/2 is an arbitrary pick but should be good enough\n\t\t\t\t\tfor(int n = maxNodes; n > maxNodes/2; n--) {\n\t\t\t\t\t\tchains.add(new Chain(i, j, n));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}", "private Vector combinationAlgorithm(Stroke theStroke){\n\t\tCurvatureBasedDetection cbd = new CurvatureBasedDetection();\n\t\tSpeedBasedDetection sbd = new SpeedBasedDetection();\n\t\tCommonSegmentPts = new Vector();\n\t\tCurvPts = cbd.getCurvatureData();\n\t\tdouble SpeedPts[][] = sbd.getSpeedData();\n\t\tCurvPtCount = cbd.getIndex();\n\t\tint SpeedPtCount = sbd.getIndex();\n\t\tint index ;\n\t\tCurvVector = new Vector();\n\t\t//copy the speed and curvature data in two vectors\n\t\tfor (index = 0; index < CurvPtCount ; index++){\n\t\t\tDouble obj = CurvPts[index][0];\n\t\t\tCurvVector.add(new Integer(obj.intValue()));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Curvature Indices\");\n\t\tprintValues(CurvVector);\n\t\t\n\t\tSpeedVector = new Vector();\n\t\tfor (index = 0; index < SpeedPtCount ; index++){\n\t\t\tDouble obj = SpeedPts[index][0];\n\t\t\tSpeedVector.add(new Integer(obj.intValue()));\n\t\t}\n\t\tSystem.out.println(\"Speed Indices\");\n\t\tprintValues(SpeedVector);\n\t\tSort sort = new Sort();\n\t\tint ElementIndex;\n\t\t// find common points (intersection of speed and curvature) and put it in CommonSegmentPts vector\n\t\t\n\t\tboolean flag = false;\n\t\tfor(index = 0; index < SpeedVector.size(); index++ ){\n\t\t\t\n\t\t\tElementIndex = sort.linearSearch(CurvVector, (Integer)SpeedVector.elementAt(index));\n\t\t\t\n\t\t\tif(ElementIndex != -1){\n\t\t\t\tCommonSegmentPts.add((Integer)(CurvVector.elementAt(ElementIndex)));\n\t\t\t\tCurvVector.remove(ElementIndex);\n\t\t\t\tSpeedVector.remove(index --); // point is removed from vectors\n\t\t\t\t\n\t\t\t}\t\t\n\t\t}\n\t\tSystem.out.println(\"Common Points\");\n\t\tprintValues(CommonSegmentPts);\n\t\tint ElemAtIndex;\n\t\t// Find the curvature based segment points in the Tolerance Distance of speed based segment points \n\t\tfor(index = 0; index < SpeedVector.size(); index++ ){\n\t\t\tElementIndex = FindNearbyPts(CurvVector, (Integer)SpeedVector.elementAt(index), theStroke);\n\t\t\tif(ElementIndex != -1){\n\t\t\t\tElemAtIndex = ((Integer)CurvVector.elementAt(ElementIndex) + (Integer)SpeedVector.elementAt(index))/2;\n\t\t\t\tCommonSegmentPts.add(ElemAtIndex);\n\t\t\t\tCurvVector.remove(ElementIndex);\n\t\t\t\tSpeedVector.remove(index--);\n\t\t\t}\n\t\t}\n\t\t//printValues(CommonSegmentPts);\n\t\tremoveNearbyPixels(theStroke);\n\t\t//setNewScalingFactor(theStroke);\n\t\tCollections.sort(CommonSegmentPts);\n\t\tprintValues(CommonSegmentPts);\n\t\tdouble PrevIterError;\n\t\tdouble NewIterError;\n\t\tVector IterationPts = new Vector(); \n\t\t//System.out.println(\"Error \" + (PrevIterError = calculateError(CommonSegmentPts, theStroke)));\n\t\t// create a vector that stores segment points of each iteration\n\t\tIterWiseSegPts = new Vector();\n\t\t// for hybrid\n\t\tIterationPts = copyVector(IterationPts, CommonSegmentPts);\n\t\tdouble PrevError = calculateError(IterationPts, theStroke);\n\t\tif(PrevError > 10000.0){\t// if stroke consists of curves\n\t\t\terrorTolerance = 90.0;\n\t\t}\n\t\tIterationPts.add((double ) PrevError);\n\t\tIterWiseSegPts = appendVector(IterWiseSegPts,IterationPts);\n\t\tdouble NewError = -1;\n/*\t\tint vectorIndex = 0;\n\t\t\n\t\twhile(CurvVector.size()!=0 || SpeedVector.size()!=0){\n\t*/\t\t\n\t\t\t// code for accepting seg points uptil pts reduce the error by 100\n\t\t/*\n\t\t\tif(CurvVector.size()!=0){\n\t\t\t\tint CurvIndex = (Integer)CurvVector.get(0);\n\t\t\t\tCommonSegmentPts.add(CurvIndex);\n\t\t\t\tCurvVector.remove(0);\n\t\t\t\tCollections.sort(CommonSegmentPts);\n\t\t\t\tNewIterError = calculateError(CommonSegmentPts, theStroke);\n\t\t\t\tif((PrevIterError - NewIterError) > 100.0){\n\t\t\t\t\tvectorIndex++;\n\t\t\t\t\tIterWiseSegPts.add(CurvIndex);\n\t\t\t\t\tPrevIterError = NewIterError;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\twhile(CurvVector.size()!=0){\n\t\t\t\t\t\tCurvVector.remove(0);\n\t\t\t\t\t}\t\t\t\t\t//return IterWiseSegPts;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(SpeedVector.size()!=0){\n\t\t\t\tint SpeedIndex = (Integer)SpeedVector.get(0);\n\t\t\t\tCommonSegmentPts.add(SpeedIndex);\n\t\t\t\tSpeedVector.remove(0);\n\t\t\t\tCollections.sort(CommonSegmentPts);\n\t\t\t\tNewIterError = calculateError(CommonSegmentPts, theStroke);\n\t\t\t\tSystem.out.println(\"New Error = \" + NewIterError);\n\t\t\t//CommonSegmentPts.add((Double)NewIterError);\n\t\t\t\tif((PrevIterError - NewIterError) > 100.0 ){\n\t\t\t\t\tvectorIndex++;\n\t\t\t\t\tIterWiseSegPts.add(SpeedIndex);\n\t\t\t\t\tPrevIterError = NewIterError;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\twhile(SpeedVector.size()!=0){\n\t\t\t\t\t\tSpeedVector.remove(0);\n\t\t\t\t\t}\t\t\n\t\t\t\t\t//return IterWiseSegPts;\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t}*/\n\t\t\t// my approach\n\t/*\t\t\n\t\t\tif(CurvVector.size()!=0){\n\t\t\t\tint Index = findMinimumErrorIndex(CurvVector,CommonSegmentPts,theStroke);\n\t\t\t\tif(Index != -1){\n\t\t\t\tint CurvIndex = (Integer)CurvVector.get(Index);\n\t\t\t\tCommonSegmentPts.add((Integer)CurvIndex);\n\t\t\t\tCurvVector.remove(Index);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tCurvVector = clearVector(CurvVector);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(SpeedVector.size()!=0){\n\t\t\t\tint Index = findMinimumErrorIndex(SpeedVector,CommonSegmentPts,theStroke);\n\t\t\t\tif(Index != -1){\n\t\t\t\tint SpeedIndex = (Integer)SpeedVector.get(Index);\n\t\t\t\tCommonSegmentPts.add((Integer)SpeedIndex);\n\t\t\t\tSpeedVector.remove(Index);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSpeedVector = clearVector(SpeedVector);\n\t\t\t\t}\n\t\t\t}\n\t\t\tIterationPts = clearVector(IterationPts);\n\t\t\tIterationPts = copyVector(IterationPts, CommonSegmentPts);\n\t\t\tCollections.sort(IterationPts);\n\t\t\tIterError = calculateError(IterationPts, theStroke);\n\t\t\tIterationPts.add((double) IterError);\n\t\t\tIterWiseSegPts = appendVector(IterWiseSegPts,IterationPts);\n\t\t\tremoveNearbyPixels(theStroke);\n\n\t\t}\n\t\tCommonSegmentPts = clearVector(CommonSegmentPts);\n\t\tCommonSegmentPts = selectBestSegPtsSet(IterWiseSegPts);*/\n\t\t\n\t\t/*\tif(CurvVector.size()!=0){\n\t\tint Index = findMinimumErrorIndex(CurvVector,CommonSegmentPts,theStroke);\n\t\tif(Index != -1){\n\t\tint CurvIndex = (Integer)CurvVector.get(Index);\n\t\tCommonSegmentPts.add((Integer)CurvIndex);\n\t\tCurvVector.remove(Index);\n\t\t}\n\t\telse{\n\t\t\tCurvVector = clearVector(CurvVector);\n\t\t}\n\t}\n\tif(SpeedVector.size()!=0){\n\t\tint Index = findMinimumErrorIndex(SpeedVector,CommonSegmentPts,theStroke);\n\t\tif(Index != -1){\n\t\tint SpeedIndex = (Integer)SpeedVector.get(Index);\n\t\tCommonSegmentPts.add((Integer)SpeedIndex);\n\t\tSpeedVector.remove(Index);\n\t\t}\n\t\telse{\n\t\t\tSpeedVector = clearVector(SpeedVector);\n\t\t}\n\t}\n\tIterationPts = clearVector(IterationPts);\n\tIterationPts = copyVector(IterationPts, CommonSegmentPts);\n\tCollections.sort(IterationPts);\n\tIterError = calculateError(IterationPts, theStroke);\n\tIterationPts.add((double) IterError);\n\tIterWiseSegPts = appendVector(IterWiseSegPts,IterationPts);\n\tremoveNearbyPixels(theStroke);\n\n}\nCommonSegmentPts = clearVector(CommonSegmentPts);\nCommonSegmentPts = selectBestSegPtsSet(IterWiseSegPts);*/\n\t\t\n\t\t\n\t\t// hybrid fit approach\n\t\tint curvIndex = -1, speedIndex = -1;\n\t\tdouble curvError,speedError;\n\t\tVector curvPts = new Vector();\n\t\tVector speedPts = new Vector();\n\t\tVector changeInError = new Vector();\n\t\twhile((CurvVector.size() != 0) || (SpeedVector.size() != 0) ){\n\t\t\tcurvError = DEFAULT;\n\t\t\tspeedError = DEFAULT;\n\t\t\t\n\t\t\tif(CurvVector.size() != 0){\n\t\t\t\tclearVector(curvPts);\n\t\t\t\tcurvPts = copyVector(curvPts, CommonSegmentPts);\n\t\t\t\tcurvIndex = (Integer)CurvVector.get(0);\n\t\t\t\tcurvPts.add((Integer)curvIndex);\n\t\t\t\tCurvVector.remove(0);\n\t\t\t\tCollections.sort(curvPts);\n\t\t\t\tcurvError = calculateError(curvPts, theStroke);\n\t\t\t\tcurvPts.add((Double)curvError);\n\t\t\t}\n\t\t\t\n\t\t\tif(SpeedVector.size() != 0){\n\t\t\t\tclearVector(speedPts);\n\t\t\t\tspeedPts = copyVector(speedPts, CommonSegmentPts);\n\t\t\t\tspeedIndex = (Integer)SpeedVector.get(0);\n\t\t\t\tspeedPts.add((Integer)speedIndex);\n\t\t\t\tSpeedVector.remove(0);\n\t\t\t\tCollections.sort(speedPts);\n\t\t\t\tspeedError = calculateError(speedPts, theStroke);\n\t\t\t\tspeedPts.add((Double)speedError);\n\t\t\t}\n\t\t\t\n\t\t\tif((speedError <= curvError) || (curvError == DEFAULT)){\n\t\t\t\tNewError = speedError;\n\t\t\t\t//changeInError.add((Double)(NewError - PrevError));\n\t\t\t\tif((PrevError - NewError) > errorTolerance){\n\t\t\t\tIterWiseSegPts = appendVector(IterWiseSegPts, speedPts);\n\t\t\t\tCommonSegmentPts.add((Integer)speedIndex);\n\t\t\t\tchangeInError.add((Double)(PrevError - NewError));\n\t\t\t\tPrevError = NewError;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((curvError < speedError) || (speedError == DEFAULT)){\n\t\t\t\tNewError = curvError;\n\t\t\t\tif((PrevError - NewError) > errorTolerance){\n\t\t\t\tIterWiseSegPts = appendVector(IterWiseSegPts, curvPts);\n\t\t\t\tCommonSegmentPts.add((Integer)curvIndex);\n\t\t\t\tchangeInError.add((Double)(PrevError - NewError));\n\t\t\t\tPrevError = NewError;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\n\t\t}\n\t\t\t\n\t\tCommonSegmentPts = clearVector(CommonSegmentPts);\n\t\tVector TempVect = new Vector();\n\t\tCommonSegmentPts = copyVectorIndex(IterWiseSegPts, TempVect, IterWiseSegPts.size() - 1);\n\t\t//TempVect = copyVectorIndex(IterWiseSegPts, TempVect, IterWiseSegPts.size() -1);\n\t\t/*index = 0;\n\t\twhile(index < (TempVect.size()-1)){\n\t\t\tCommonSegmentPts.add((Integer)TempVect.get(index++));\n\t\t}*/\n\t\t//CommonSegmentPts = selectBestSegPtsSet(IterWiseSegPts);\n\t\t\n\t\treturn CommonSegmentPts;\n\t}", "public Vector getAllRealBeamlines()\n\t{\n\t\tVector simBeamlines = getAllSimBeamlines();\n\t\t\n\t\tHashtable uProp = userInfo.getProperties();\n\t\tString bb = (String)uProp.get(\"Auth.AllBeamlines\");\n\t\tStringTokenizer tok = new StringTokenizer(bb, \";\");\n\t\tVector ret = new Vector();\n\t\tboolean found = false;\n\t\twhile (tok.hasMoreTokens()) {\n\t\t\tfound = false;\n\t\t\tString b = tok.nextToken();\n\t\t\t// Check if this beamline is defined as sim beamline\n\t\t\t// in webice.properties.\n\t\t\tfor (int i = 0; i < simBeamlines.size(); ++i) {\n\t\t\t\tif (b.equals(simBeamlines.elementAt(i))) {\t\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found)\n\t\t\t\tret.add(b);\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "@Override\n\t@Transactional\n\tpublic List<Route> getRoutesOfVehicleWithStartStationLaterThanTime(int vehicleId, int startStationId, String time) {\n\t\treturn routeDAO.getRoutesOfVehicleWithStartStationLaterThanTime(vehicleId, startStationId, time);\n\t}", "public java.util.List getWaypoints();", "public SortedSet<WServiceChain> getInOutOrTraversingServiceChains () { return n.getAssociatedRoutes(getNet().getIpLayer().getNe()).stream().map(ee->new WServiceChain(ee)).collect(Collectors.toCollection(TreeSet::new)); }", "public ArrayList<Integer> path(int startVertex, int stopVertex) {\r\n ArrayList<Integer> paths = new ArrayList<Integer>();\r\n Iterator<Integer> iter = new DFSIterator(startVertex);\r\n while (!paths.contains(stopVertex) && pathExists(startVertex, stopVertex)) {\r\n Integer thisVertex = iter.next();\r\n if (pathExists(thisVertex, stopVertex)) {\r\n \tpaths.add(thisVertex);\r\n }\r\n } \r\n return paths;\r\n }", "public List<IPos> getCurvePoints() {\n\t\t// Create the array ready to hold all the points\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tList<IPos> points = new ArrayList<IPos>();\n\t\tif (segmentCount > 1) {\n\t\t\t// Get the influencing points, from simple tests 1/3rd the ditance to the next\n\t\t\t// point at the incoming angle seems to work fine.\n\t\t\tstartInfluencePoint = calculateInfluencingPoint(start, influenceDistance, startAngle);\n\t\t\tendInfluencePoint = calculateInfluencingPoint(end, influenceDistance, endAngle);\n\t\t\t// Once those points are removed, remember to change the rail as well or the\n\t\t\t// data will be wrong\n\n\t\t\t// Add the sub points that will create the bend\n\t\t\tfor (int i = 1; i <= segmentCount; i++) {\n\t\t\t\tfloat t = i / (segmentCount + 1f);\n\t\t\t\tfloat x = getCurveValue(start.x(), startInfluencePoint.x(), end.x(), endInfluencePoint.x(), t);\n\t\t\t\tfloat z = getCurveValue(start.z(), startInfluencePoint.z(), end.z(), endInfluencePoint.z(), t);\n\t\t\t\tfloat y = start.y() + ((end.y() - start.y()) * t);\n\t\t\t\tpoints.add(new Pos(x, y, z));\n\t\t\t\t// TODO we could use a lambda expression to create an add directly to the host\n\t\t\t\t// allowing more reusablity\n\t\t\t}\n\n\t\t}\n\t\treturn points;\n\t}", "public static ArrayList<double[]> isBorder()\n {\n ArrayList<double[]> borders = new ArrayList<double[]>() ;\n // for all points\n for(int i=0; i<POINTS.length; i++)\n {\n // for all neighbouring points\n for(int k=i+1; k<POINTS.length; k++)\n {\n // System.out.println(\"Checking pair: \" + Arrays.toString(POINTS[i]) + \" \" + Arrays.toString(POINTS[k]));\n ArrayList<Double> sides = new ArrayList<Double>();\n // checking tmp vals\n for(int n=0; n<POINTS.length; n++) // O(n^3)\n {\n double[] test = POINTS[n];\n // find which side of line the test is on\n double d = side(POINTS[i], POINTS[k], POINTS[n]);\n // append to sides\n\n sides.add(d);\n //System\n }\n // check if sides for this pairing is same\n if (neg(sides) || pos(sides))\n {\n\n borders.add(POINTS[i]);\n borders.add(POINTS[k]);\n }\n }\n }\n /**double[] tmp = POINTS[i];\n double d = side(p1, p2, tmp);\n sides.add(d);\n //System.out.println(\"Printing sides array for pairing \" + p1[0] + \",\" + p1[1] + \" and \" + p2[0] + \",\" + p2[1] );\n if (neg(sides) || pos(sides))\n {\n System.out.println(\"p1 and p2 are borders\");\n borders.add(p1); borders.add(p2);\n }\n }\n for (int i=0; i<borders.size(); i++){\n System.out.println(Arrays.toString(borders.get(i)));\n }\n /**\n System.out.println(\"is all neg: \");\n System.out.println(neg(sides));\n System.out.println(\"is all pos: \");\n System.out.println(pos(sides));*/\n// return false;\n return borders;\n }", "public List<String> getAirlines(){\n List<String> airlines = new LinkedList<String>();\n for (Flight flight : flights) {\n airlines.add(flight.getAirlineCode());\n }\n return airlines;\n }", "private Vector<Vector<BusStopInfo>> findRek (BusStopInterface from, BusStopInterface to, Vector <BusStopInfo> toInfo, Vector<BusStopInfo> visited, int swaps, int transfers )\r\n {\r\n Vector<Vector<BusStopInfo>> sciezka = new Vector<Vector<BusStopInfo>>();\r\n \r\n if(from.getName()==to.getName())\r\n {\r\n sciezka.add(toInfo);\r\n return sciezka;\r\n }\r\n\r\n for(BusStopInfo vis: visited)\r\n {\r\n if(vis.awtobus.busLine.getBusStop(vis.pozycja).getName()==from.getName())\r\n return sciezka;\r\n }\r\n\r\n Vector <BusStopInfo> fromInfo = findStopInfo(from);\r\n\r\n fromInfo = infoFilter(fromInfo, toInfo);\r\n\r\n for(BusStopInfo info: fromInfo)\r\n {\r\n int swapsNow = swaps;\r\n if(visited.size()>0 && info.awtobus.bus.getBusNumber()!=visited.lastElement().awtobus.bus.getBusNumber())\r\n {\r\n swapsNow++;\r\n }\r\n\r\n if(swapsNow <= transfers)\r\n {\r\n int nextPosition = info.pozycja +1; //ide do przodu linii\r\n int prevPosition = info.pozycja -1; //ide do tyłu linii\r\n\r\n Vector<BusStopInfo> temp = new Vector<BusStopInfo>(visited);\r\n temp.add(info);\r\n Vector<Vector<BusStopInfo>> result ;\r\n if(nextPosition<info.awtobus.busLine.getNumberOfBusStops())\r\n {\r\n BusStopInterface nextStop = info.awtobus.busLine.getBusStop(nextPosition);\r\n result = findRek(nextStop, to, toInfo, temp, swapsNow, transfers);\r\n for(Vector<BusStopInfo> res: result)\r\n {\r\n res.add(0, info);\r\n sciezka.add(res);\r\n }\r\n }\r\n if(prevPosition >= 0)\r\n {\r\n BusStopInterface prevStop = info.awtobus.busLine.getBusStop(prevPosition);\r\n result = findRek(prevStop, to, toInfo, temp, swapsNow, transfers);\r\n for(Vector<BusStopInfo> res: result)\r\n {\r\n res.add(0, info);\r\n sciezka.add(res);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return sciezka;\r\n }", "public Map<Long, List<LineStation>> getConnections(RailwayConnectionsRequest request) {\n return linesStationsRepository.findAllConnections(request.getStartingStation(),request.getFinalStation(), request.getDepartureDate()).stream()\n .sorted(Comparator.comparing(LineStation::getArrivalDate))\n .collect(Collectors.groupingBy(x -> x.getTrain().getTrainNumber(), Collectors.toList()));\n }", "List<FlightResponse> getConnectingFlights(String departure, String arrival, LocalDateTime departureDate,\n LocalDateTime arrivalDate, List<Route> allRoutes) throws ValidationException, ServiceException {\n\n List<ConnectionRoute> connectionRoutes = routeService.getConnectionRoutes(departure, arrival, allRoutes);\n List<FlightResponse> responses = new ArrayList<>();\n\n for (ConnectionRoute cr : connectionRoutes) {\n String depFrom = cr.getDeparture().getAirportFrom();\n String depTo = cr.getDeparture().getAirportTo();\n List<Leg> departureLegs = getDirectFlights(depFrom, depTo, departureDate, arrivalDate).getLegs();\n\n String arrFrom = cr.getArrival().getAirportFrom();\n String arrTo = cr.getArrival().getAirportTo();\n List<Leg> arrivalLegs = getDirectFlights(arrFrom, arrTo, departureDate, arrivalDate).getLegs();\n\n for (Leg depLeg : departureLegs) {\n LocalDateTime depFromConnection = depLeg.getArrivalDateTime().plusHours(2);\n List<Leg> filteredArrivalLegs = arrivalLegs.stream()\n .filter(leg -> leg.getDepartureDateTime().isAfter(depFromConnection))\n .filter(leg -> leg.getDepartureAirport().equals(depLeg.getArrivalAirport()))\n .collect(Collectors.toList());\n\n for (Leg leg : filteredArrivalLegs) {\n responses.add(new FlightResponse(1, Stream.of(depLeg, leg).collect(Collectors.toList())));\n }\n }\n }\n\n return responses;\n }", "Line[] neighborOppositeLinesFromPoint(int sourcePointId) {\n\t\tPVector leftNeighbor = new PVector();\n\t\tPVector rightNeighbor = new PVector();\n\t\tPVector opposite = new PVector();\n\n\t\tleftNeighbor.set(point[neighbor(sourcePointId)[0]].beginPosition);\n\t\trightNeighbor.set(point[neighbor(sourcePointId)[1]].beginPosition);\n\t\topposite.set(point[neighbor(sourcePointId)[2]].beginPosition);\n\n\t\t// create teporary lines from neighbor points\n\t\tLine leftOppositeLine = new Line(myParent, leftNeighbor, opposite);\n\t\tLine rightOppositeLine = new Line(myParent, rightNeighbor, opposite);\n\n\t\tLine[] lines = { leftOppositeLine, rightOppositeLine // 0,1\n\t\t};\n\t\treturn lines;\n\t}", "java.util.List<org.landxml.schema.landXML11.RoadsideDocument.Roadside> getRoadsideList();", "public Collection<GJPoint2D> intersections(GJLinearShape2D line) {\n\t\tArrayList<GJPoint2D> pts = new ArrayList<GJPoint2D>();\n\t\t\n\t\t// Iterate on the set of curves, and compute intersections\n\t\tfor (GJSmoothCurve2D curve : this.smoothCurves()) {\n\t\t\tpts.addAll(curve.intersections(line));\n\t\t}\n\t\t\n\t\t// returns the full set of intersections\n\t\treturn pts;\n\t}", "ArrayList<OrderedPair<Curve, Integer>>\n tryFindCurveIntersections(\n LineCurve lc,\n HashSet<Curve> all_curves)\n {\n HashSet<OrderedTriplet<Curve, Double, Double>> intersecting_curves = new HashSet<>();\n\n for (Curve c : all_curves)\n {\n ArrayList<OrderedPair<Double, Double>> intersections =\n BRepUtil.curveCurveIntersect(lc, c);\n\n if (intersections == null)\n continue;\n\n for (OrderedPair<Double, Double> intersection : intersections)\n {\n double dot = c.tangent(intersection.Second).dot(lc.Direction.rot270());\n\n // chicken out and scrap any line that has a glancing contact with a curve\n // a bit more than .1 degrees\n if (Math.abs(dot) < 0.001)\n return null;\n\n intersecting_curves.add(new OrderedTriplet<>(c, intersection.First, dot));\n }\n }\n\n if (intersecting_curves.size() == 0)\n return null;\n\n // sort by distance down the line\n ArrayList<OrderedTriplet<Curve, Double, Double>> ordered =\n intersecting_curves.stream().sorted((x, y) -> (int) Math.signum(x.Second - y.Second))\n .collect(Collectors.toCollection(ArrayList::new));\n\n int crossings = 0;\n\n ArrayList<OrderedPair<Curve, Integer>> ret = new ArrayList<>();\n\n for (OrderedTriplet<Curve, Double, Double> entry : ordered)\n {\n if (entry.Third > 0)\n {\n crossings++;\n }\n else\n {\n crossings--;\n }\n\n ret.add(new OrderedPair<>(entry.First, crossings));\n }\n\n return ret;\n }", "public ArrayList<Vehicle> getPlanes() {\n return vehicles.stream().filter(loc -> loc.getClass().getSuperclass().getSimpleName().equals(\"Plane\")).collect(Collectors.toCollection(ArrayList::new));\n }", "public void roadList(){\n for(int i = 0; i < roads.size(); i++){\n System.out.println(i + \" \" + roads.get(i).start.getCityName() + \", \" + roads.get(i).end.getCityName());\n }\n }", "private List<List<Cell>> constructFireDirectionLines(int range) {\n List<List<Cell>> directionLines = new ArrayList<>();\n for (Direction direction : Direction.values()) {\n List<Cell> directionLine = new ArrayList<>();\n for (int directionMultiplier = 1; directionMultiplier <= range; directionMultiplier++) {\n\n int coordinateX = currentWorm.position.x + (directionMultiplier * direction.x);\n int coordinateY = currentWorm.position.y + (directionMultiplier * direction.y);\n\n if (!isValidCoordinate(coordinateX, coordinateY)) {\n break;\n }\n\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, coordinateX, coordinateY) > range) {\n break;\n }\n\n Cell cell = gameState.map[coordinateY][coordinateX];\n if (cell.type != CellType.AIR) {\n break;\n }\n\n directionLine.add(cell);\n }\n directionLines.add(directionLine);\n }\n\n return directionLines;\n }", "public List<List<Object>> getElementaryCycles()\n {\n this.cycles = new Vector<>();\n this.blocked = new boolean[this.adjList.length];\n this.B = new Vector[this.adjList.length];\n this.stack = new Vector<>();\n StrongConnectedComponents sccs = new StrongConnectedComponents(this.adjList);\n int s = 0;\n\n while (true) {\n SCCResult sccResult = sccs.getAdjacencyList(s);\n if (sccResult != null && sccResult.getAdjList() != null) {\n Vector[] scc = sccResult.getAdjList();\n s = sccResult.getLowestNodeId();\n for (int j = 0; j < scc.length; j++) {\n if ((scc[j] != null) && (scc[j].size() > 0)) {\n this.blocked[j] = false;\n this.B[j] = new Vector();\n }\n }\n\n this.findCycles(s, s, scc);\n s++;\n }\n else {\n break;\n }\n }\n\n return this.cycles;\n }", "public SortedSet<WLightpathUnregenerated> getInOutOrTraversingLigtpaths () { return n.getAssociatedRoutes(getNet().getWdmLayer().getNe()).stream().map(ee->new WLightpathUnregenerated(ee)).collect(Collectors.toCollection(TreeSet::new)); }", "@Test\r\n void findRouteDifferentLine() {\r\n List<Station> route = model.findRoute(9, 60);\r\n assertNotNull(route);\r\n assertEquals(10, route.size());\r\n assertEquals(\"SuffolkDowns\", route.get(0).getName());\r\n assertEquals(\"Broadway\", route.get(9).getName());\r\n }", "public HashSet<String> getTrainsWithFinishedRoutes() {\n\t\tHashSet<String> finishedTrains = new HashSet<String>();\n\t\tfor (Train t : trains) {\n\t\t\tif (t.currentBlock == t.destination) {\n\t\t\t\tif (t.distanceTraveledOnBlock == ((DefaultBlock)blockData.get(t.currentBlock)).blockLength/2) { // it is at the station\n\t\t\t\t\tif ((t.remainingTravelTime == 0) && (t.currSpeed == 0)) {\n\t\t\t\t\t\tfinishedTrains.add(t.trainName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (finishedTrains.size() > 0) {\n\t\t\treturn finishedTrains;\n\t\t}\n\t\treturn null;\n\t}", "public ArrayList<Vehicle> getAircraftCarriers() {\n return getShips().stream().filter(ship -> ship.getClass().getSimpleName().equals(\"AircraftCarrier\")).collect(Collectors.toCollection(ArrayList::new));\n }", "Set<CyEdge> getExternalEdgeList();", "public void saveStopsInLine(Stopsinlinedb stopsInLine);", "public List<double[]> calculateCurvature(){\n List<double[]> values = new ArrayList<>();\n\n\n for(Node3D node: mesh.nodes){\n List<Triangle3D> t_angles = node_to_triangle.get(node);\n //all touching triangles.\n if(t_angles==null) continue;\n\n double[] curvature = getNormalAndCurvature(node, t_angles);\n double[] pt = node.getCoordinates();\n double mixedArea = calculateMixedArea(node);\n values.add(new double[]{\n pt[0], pt[1], pt[2],\n curvature[3],\n curvature[0], curvature[1], curvature[2],\n mixedArea\n });\n\n\n }\n return values;\n }", "public ArrayList<Road> loadRoads()\n\t{\n\t\t/* Requete SQL */\n\t\tCursor cursor = mainDatabase.rawQuery(\"SELECT \" + DBContract.RoadTable.ROADNAME[0] + \", \" +\n\t\t\t\tDBContract.RoadTable.LENGTH[0] + \", \" + DBContract.RoadTable.DURATION[0] + \", \" +\n\t\t\t\tDBContract.RoadTable.PRICE[0] + \" FROM \" + DBContract.RoadTable.TABLE_NAME, null);\n\t\t\n\t\tArrayList<Road> result = new ArrayList<Road>();\n\t\t\n\t\t/* Parcour du resultat */\n\t\tif(cursor.moveToFirst())\n\t\t{\n\t\t\t\twhile(!cursor.isAfterLast())\n\t\t\t\t{\n\t\t\t\t\t/* Instancie la nouvelle route */\n\t\t\t\t\tRoad tmp = new Road(cursor.getString(0), cursor.getDouble(1), cursor.getDouble(2),\n\t\t\t\t\t\t\tcursor.getDouble(3));\t\n\t\t\t\t\tresult.add(tmp);\n\t\t\t\t\tcursor.moveToNext();\n\t\t\t\t}\n\t\t}\n\t\tcursor.close();\n\t\treturn result;\n\t}", "public Timeline createPartLineAnimation(int duration, int stop_duration, ArrayList<Coordinate> affected_points, int slow_duration, int slow_stop_duration, Circle vehicle, ArrayList<Coordinate> line_coordinates_part, EventHandler<MouseEvent> handler, boolean detour_delay)\r\n {\r\n Timeline affected_timeline = new Timeline();\r\n int original_duration = duration;\r\n int original_stop_duration = stop_duration;\r\n addLineVehicles(vehicle);\r\n vehicle.setOnMouseClicked(handler);\r\n\r\n // add all keyframes to timeline - one keyframe means path from one coordinate to another coordinate\r\n // vehicle waits in stop for 1 seconds and go to another coordinate for 2 seconds (in default mode)\r\n int delta_time = 0;\r\n KeyFrame waiting_in_stop = null;\r\n\r\n //int affected_stops_count = 0;\r\n for (int i = 0; i < line_coordinates_part.size() - 1; i++) {\r\n // if we go through street affected by slow traffic\r\n if (line_coordinates_part.get(i).isInArray(affected_points) && line_coordinates_part.get(i+1).isInArray(affected_points))\r\n {\r\n // duration between coordinates and duration of waiting in stop is different\r\n duration = slow_duration;\r\n stop_duration = slow_stop_duration;\r\n }\r\n else\r\n {\r\n // else use default duration\r\n duration = original_duration;\r\n stop_duration = original_stop_duration;\r\n }\r\n\r\n for (Stop s : this.getStopsMap()) {\r\n // if we are in stop, we wait 'stop_duration' time\r\n if (line_coordinates_part.get(i).getX() == s.getCoordinate().getX() && line_coordinates_part.get(i).getY() == s.getCoordinate().getY()) {\r\n waiting_in_stop = new KeyFrame(Duration.seconds(delta_time + stop_duration), // this means waiting in stop for some time\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates_part.get(i).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates_part.get(i).getY()));\r\n\r\n delta_time = delta_time + stop_duration;\r\n\r\n break;\r\n }\r\n }\r\n // we travelled for 'duration' time\r\n KeyFrame end = new KeyFrame(Duration.seconds(delta_time + duration), // this means that the path from one coordinate to another lasts 2 seconds\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates_part.get(i + 1).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates_part.get(i + 1).getY()));\r\n\r\n if (waiting_in_stop != null) {\r\n affected_timeline.getKeyFrames().addAll(end, waiting_in_stop);\r\n } else {\r\n affected_timeline.getKeyFrames().addAll(end);\r\n }\r\n\r\n delta_time = delta_time + duration;\r\n }\r\n\r\n this.setLineMovement(affected_timeline); // set movement of specified line\r\n\r\n if (detour_delay == false)\r\n {\r\n this.setDelay(duration, slow_duration, affected_points.size());\r\n }\r\n else\r\n {\r\n this.delay = this.detour_streets.size() * duration - duration;\r\n }\r\n\r\n\r\n return affected_timeline;\r\n }", "public ArrayList<Integer> path(int startVertex, int stopVertex) {\n \tArrayList<Integer> toReturn = new ArrayList<Integer>();\n \tArrayList<Integer> temporary = new ArrayList<Integer>();\n \tif (!pathExists(startVertex, stopVertex)) {\n \t\treturn toReturn;\n \t}\n \tif (startVertex == stopVertex) {\n \t\ttoReturn.add(startVertex);\n \t\treturn toReturn;\n \t}\n \tIterator<Integer> iter = new DFSIterator(startVertex);\n \twhile (iter.hasNext()) {\n \t\tInteger toAdd = iter.next();\n \t\ttemporary.add(toAdd);\n \t\tif (toAdd.equals(stopVertex)) {\n \t\t\tbreak;\n \t\t}\n \t}\n \ttoReturn.add(0, stopVertex);\n \treturn pathHelper(temporary, toReturn);\n }", "public SortedSet<WServiceChain> getIncomingServiceChains () { return n.getAssociatedRoutes(getNet().getIpLayer().getNe()).stream().map(ee->new WServiceChain(ee)).filter(sc->sc.getB().equals(this)).collect(Collectors.toCollection(TreeSet::new)); }", "public List<Flight> TopAirline(int max) throws TravelException;", "public LineSegment[] segments(){\n\t\tPoint[] ptArr = new Point[numpoints];\n\t\tfor(int i =0; i < numpoints; i++){\n\t\t\tfor(int j =0; j < numpoints;j++) ptArr[j] = mypoints[j];\n\t\t\tPoint origin = mypoints[i];\t\t\n\t\t\t//Sort the points using mergeSort for doubles\n\t\t\tArrays.sort(ptArr,origin.slopeOrder());\t\n\t\t\tfindAllCollinearPts(ptArr,origin);\n\t\t}\n\t\treturn getSegments();\n\t}", "public Set<V> findCycles()\n {\n // ProbeIterator can't be used to handle this case,\n // so use StrongConnectivityAlgorithm instead.\n StrongConnectivityAlgorithm<V, E> inspector =\n new KosarajuStrongConnectivityInspector<>(graph);\n List<Set<V>> components = inspector.stronglyConnectedSets();\n\n // A vertex participates in a cycle if either of the following is\n // true: (a) it is in a component whose size is greater than 1\n // or (b) it is a self-loop\n\n Set<V> set = new LinkedHashSet<>();\n for (Set<V> component : components) {\n if (component.size() > 1) {\n // cycle\n set.addAll(component);\n } else {\n V v = component.iterator().next();\n if (graph.containsEdge(v, v)) {\n // self-loop\n set.add(v);\n }\n }\n }\n\n return set;\n }", "public List<int[]> getSkyline(int[][] buildings) {\n List<int[]> result = new ArrayList<>();\n\n //Can also use TreeMap<Height, Count> here to implement multi-map\n TreeSet<Rectangle> bst = new TreeSet<>();\n List<KeyPoint> sortedKeyPoints = new ArrayList<>();\n for (int i = 0; i < buildings.length; ++i) {\n Rectangle rec = new Rectangle(buildings[i][0], buildings[i][1], buildings[i][2]);\n sortedKeyPoints.add(new KeyPoint(rec.l, rec));\n sortedKeyPoints.add(new KeyPoint(rec.r, rec));\n }\n sortedKeyPoints.sort(null);\n for (int i = 0; i < sortedKeyPoints.size(); ++i) {\n int x = sortedKeyPoints.get(i).x;\n Rectangle rec = sortedKeyPoints.get(i).rec;\n if (x == rec.l) {\n bst.add(rec);\n } else {\n bst.remove(rec);\n }\n int[] curPoint = bst.isEmpty() ? new int[]{x, 0} : new int[]{x, bst.last().h};\n if (result.isEmpty()) {\n result.add(curPoint);\n } else {\n int[] prePoint = result.get(result.size()-1);\n if (prePoint[0] == curPoint[0]) {\n prePoint[1] = curPoint[1];\n } else if (prePoint[1] != curPoint[1]) {\n result.add(curPoint);\n }\n }\n }\n return result;\n }", "List<CyEdge> getInternalEdgeList();", "private ArrayList<ColorMixerModel.ColorItem> pathIntersection(){\n ArrayList<ColorMixerModel.ColorItem> toDel = new ArrayList<>();\n for(ColorMixerModel.ColorItem c: cmModel.colorSet){\n Ellipse2D.Float cobj = new Ellipse2D.Float(c.getPos().x,c.getPos().y, c.getR(),c.getR());\n if(mouseTrace.intersects(cobj.getBounds2D())){\n toDel.add(c);\n }\n }\n return toDel;\n }", "private Collection<LineItem> getIntersectingWaterways(final Atlas atlas, final LineItem line)\n {\n final PolyLine linePoly = line.asPolyLine();\n final Iterable<LineItem> intersectingWaterways = atlas.lineItemsIntersecting(line.bounds(),\n lineItem -> this.waterwayTagFilter.test(lineItem)\n && lineItem.asPolyLine().intersects(linePoly));\n final Set<LineItem> sameLayerWays = Iterables.stream(intersectingWaterways)\n .filter(potential -> LayerTag.areOnSameLayer(line, potential)\n && !this.waterwayConnects(line, potential))\n .collectToSet();\n sameLayerWays.removeIf(line::equals);\n return sameLayerWays;\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 }", "private LineSegment[] findSegments() {\n List<LineSegment> segmentList = new ArrayList<>();\n int N = points.length;\n for (int i = 0; i < N; i++) {\n for (int j = i+1; j < N; j++) {\n Double slopePQ = points[i].slopeTo(points[j]);\n for (int k = j+1; k < N; k++) {\n Double slopePR = points[i].slopeTo(points[k]);\n if (slopePQ.equals(slopePR)) {\n for (int l = k + 1; l < N; l++) {\n Double slopePS = points[i].slopeTo(points[l]);\n if (slopePQ.equals(slopePS)) {\n LineSegment lineSegment = new LineSegment(points[i], points[l]);\n segmentList.add(lineSegment);\n }\n }\n }\n }\n }\n }\n return segmentList.toArray(new LineSegment[segmentList.size()]);\n }", "private Set<Edge> reachableDAG(Vertex start, Vertex obstacle) {\n \tHashSet<Edge> result = new HashSet<Edge>();\n \tVector<Vertex> currentVertexes = new Vector<Vertex>();\n \tint lastResultNumber = 0;\n \tcurrentVertexes.add(start);\n \t\n \tdo {\n \t\t//System.out.println(\"size of currentVertexes:\" + currentVertexes.size());\n \t\t\n \t\tVector<Vertex> newVertexes = new Vector<Vertex>();\n \t\tlastResultNumber = result.size();\n \t\t\n \t\tfor (Vertex v : currentVertexes) {\n \t\t\t//System.out.println(\"layerID:\" + v.layerID + \"\\tlabel:\" + v.label);\n \t\t\taddIncomingEdges(v, obstacle, result, newVertexes);\n \t\t\taddOutgoingEdges(v, obstacle, result, newVertexes);\n \t\t}\n \t\t\n \t\t//System.out.println(\"size of newVertexes:\" + newVertexes.size());\n \t\t\n \t\tcurrentVertexes = newVertexes;\t\n \t\t//System.out.println(\"lastResultNumber:\" + lastResultNumber);\n \t\t//System.out.println(\"result.size():\" + result.size());\n \t} while (lastResultNumber != result.size());\n \t\n\t\treturn result;\n }", "public void addLineVehicles(Circle c)\r\n {\r\n this.all_line_vehicles.add(c);\r\n return;\r\n }", "public ArrayList<Point> getTrios(final LineData lineData) {\n\t\treturn lineData.getPoints();\n\t}", "private Line getTrajectory() {\n Point target = this.topLeft.add(this.velocity).asPoint();\n return new Line(this.topLeft.asPoint(), target);\n }", "public ArrayList<Vehicle> get(LocalDate from,LocalDate to) {\n return vehicles;\n }", "public SteeringMk4(CarControl control) {\n super(control);\n for (int idx = 0; idx < PREVIOUS_SLOPES; idx++) {\n pastSlopes.add(START_SLOPE);\n }\n }", "protected List<Candidate> getSlopeLiftCandidates() {\r\n\t\tString de_name, xml_gid_slope = null, xml_gid_lift = null;\r\n\t\tdouble liftMidPointThreshold = StartConfiguration.getInstance().getSlope_midpoint_dist()[0] + 0.5;\r\n\t\t\r\n\t\tLogger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.INFO, \"Features_in size is: \" + this.getFeatures_in().length);\r\n\t\t//print metaData info\r\n\t\tSystem.out.println(\"max allowed end-point distance is: \" + getMax_threshold());\r\n\t\tSystem.out.println(\"max allowed mid-point distance is: \" + liftMidPointThreshold);\r\n\t\tSystem.out.println(\"max allowed height difference for slope-lift Links is: \" + (StartConfiguration.getInstance().getSlope_heights()[0] + 0.5));\r\n\t\t\r\n\t\t\r\n\t\t//List of out_features (lifts in this case)\r\n\t\tList<SimpleFeature> lifts = this.getFeat_match();\r\n\t\tList<Candidate> candidates = new ArrayList<Candidate>();\r\n\t\tCandidate cand = null;\r\n\t\t\r\n\t\t//topological check at top level. lower points connect with each other and upper points as well. A Slope can connect to a Lift at both ends\r\n\t\t/* for each Lift check upper - upper and lower - lower slope neighbors. For each Lift end-point check also possible slope mid point neighbors\r\n\t\t * Traverse direction is:\r\n\t\t * Upper-Upper: from lift to slope\r\n\t\t * Lower-Lower: from slope to lift */\r\n\t\tfor (SimpleFeature lift: lifts) {\r\n\t\t\t\r\n//if (!lift.getAttribute(\"DE_GR_L_1\").equals(\"Sportgastein\")) continue;\r\n\t\t\t//fetch coordinate sequence and lower and upper point coords\r\n\t\t\tCoordinate [] lift_endpoints = GeometryOperations.getOrderedEndPoints(lift);\t\t\r\n\t\t\tboolean hasLowerConnection = false, hasUpperConnection = false;\r\n\t\t\t\r\n\t\t\t//iterate over the slopes to be matched\r\n\t\t\tfor (SimpleFeature slope: this.getFeatures_in()) {\r\n\t\t\t\t//fetch semantic info\r\n\t\t\t\tde_name = slope.getAttribute(\"DE_GR_L_0\") + \" - \" + slope.getAttribute(\"DE_GR_L_1\");\r\n\t\t\t\txml_gid_slope = slope.getAttribute(\"XML_GID\").toString();\r\n\t\t\t\txml_gid_lift = lift.getAttribute(\"XML_GID\").toString();\r\n\t\t\t\t\r\n\t\t\t\t//fetch slope end-points and geometry\r\n\t\t\t\tCoordinate [] slope_endpoints = GeometryOperations.getOrderedEndPoints(slope);\r\n\t\t\t\tGeometry slopeGeom = (Geometry) slope.getDefaultGeometry();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t//Case A - LOWER POINTS LINK: Checking lift lower point for neighbors.Check if lower_in matches lower_out\r\n\t\t\t\tif (slope_endpoints[0].distance(lift_endpoints[0]) < getMax_threshold()) {\r\n\t\t\t\t\t//candidate found for lower to lower case, traverse direction from slope to lift\r\n\t\t\t\t\tcand = new Candidate(slope_endpoints[0], lift_endpoints[0], \"SlopeLift\", xml_gid_slope, xml_gid_lift, de_name);\r\n\t\t\t\t\tcandidates.add(cand);\r\n\t\t\t\t\thasLowerConnection = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tCoordinate closestPoint = getSlopeMidpointNeighborToLift(lift_endpoints[0], slopeGeom, slope_endpoints, liftMidPointThreshold);\r\n\t\t\t\t\tif (closestPoint != null) {\r\n\t\t\t\t\t\t//candidate found. Since connection is to lift lower point traverse direction is from slope (start) to lift (end)\r\n\t\t\t\t\t\tcand = new Candidate(closestPoint, lift_endpoints[0], \"SlopeLift\", xml_gid_slope, xml_gid_lift, de_name);\r\n\t\t\t\t\t\tcandidates.add(cand);\r\n\t\t\t\t\t\thasLowerConnection = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Case B - UPPER POINTS LINK: Checking slope upper point for neighbors. Check if upper_in matches upper_out \r\n\t\t\t\tif (slope_endpoints[1].distance(lift_endpoints[1]) < getMax_threshold()){\r\n\t\t\t\t\t//candidate found for upper to upper case , traverse direction from lift to slope\r\n\t\t\t\t\tcand = new Candidate(lift_endpoints[1], slope_endpoints[1], \"SlopeLift\", xml_gid_lift, xml_gid_slope, de_name);\r\n\t\t\t\t\tcandidates.add(cand);\r\n\t\t\t\t\thasUpperConnection = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tCoordinate closestPoint = getSlopeMidpointNeighborToLift(lift_endpoints[1], slopeGeom, slope_endpoints, liftMidPointThreshold);\r\n\t\t\t\t\tif (closestPoint != null) {\r\n\t\t\t\t\t\t//candidate found. Since connection is to lift upper point, traverse direction is from lift (start) to slope (end)\r\n\t\t\t\t\t\tcand = new Candidate(lift_endpoints[1], closestPoint, \"SlopeLift\", xml_gid_lift, xml_gid_slope, de_name);\r\n\t\t\t\t\t\tcandidates.add(cand);\r\n\t\t\t\t\t\thasUpperConnection = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//reset candidate variable\r\n\t\t\t\tcand = null;\r\n\t\t\t}\r\n\t\t\t//Output unconnected links\r\n\t\t\tif (!hasUpperConnection) System.err.println(\"Lift \" + lift.getAttribute(\"XML_GID\").toString() + \" found with no upper links\");\r\n\t\t\tif (!hasLowerConnection) System.err.println(\"Lift \" + lift.getAttribute(\"XML_GID\").toString() + \" found with no lower links\");\r\n\t\t}\r\n\t\t//Clean duplicate candidates.\r\n\t\tcleanDuplicates(candidates);\r\n\t\t//***** METHOD END ********************\t\t\r\n\t\treturn candidates;\r\n\t}", "private void fetchStopPoints() {\n\t\tif (mode == Mode.ADD_MODE && routeComboBox.getValue() != null) {\n\t\t\tstopPoints = SQLExecutor.fetchStopPointsByRoute(routeComboBox.getValue());\n\t\t} else if (mode == Mode.UPDATE_MODE && tripComboBox.getValue() != null){\n\t\t\tstopPoints = SQLExecutor.fetchStopPointsByTrip(tripComboBox.getValue());\n\t\t}\n\t}", "public boolean allDepartureFlightsNonstop() {\n\t\tMap<String,Flight> allflights = getAllDepartureFlights();\n\t\tfor (String flightNumber:allflights.keySet() ) {\n\t\t\tFlight flight = allflights.get(flightNumber);\n\t\t\tif (!flight.getStop().equalsIgnoreCase(\"nonstop\"))\n\t\t\t\treturn false;\t\t\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private List<Point> getPath(int index) {\n\t\t \n\t \n\t\t Node fromNode = oEdge.fromNode;\n\t\t Node toNode = oEdge.toNode;\n\t\t float x1 = fromNode.longitude;\n\t\t float x2 = toNode.longitude;\n\t\t float y1 = fromNode.latitude;\n\t\t float y2 = toNode.latitude;\n\t\t double slope, angle;\n\t\t if(x1!=x2) {\n\t\t\t slope = (y2-y1)/(x2-x1);\n\t\t\t \tangle = Math.atan(slope);\n\t\t\t \t} else {\n\t\t\t \t\tangle = Math.PI/2;\n\t\t\t \t}\n\t\t Double L = Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));\n\t\t float offsetPixels=0;\n\t\t if(Math.toDegrees(angle)>Math.toDegrees(90)) {\n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=roadWidth*1/10;\n\t\t\t }\n\t\t\t \n\t\t } else {\n\t\t\t \n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=-roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=-roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=-roadWidth*1/10;\n\t\t\t }\n\t\t }\n\t\t \n\t\t // This is the first parallel line\n\t\t float x1p1 = x1 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float x2p1 = x2 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float y1p1 = y1 + offsetPixels * (x1-x2) / L.floatValue();\n\t\t float y2p1 = y2 + offsetPixels * (x1-x2) / L.floatValue();\n//\t\t if(oEdge.edgeID==16) {\n//\t\t\t System.out.println(\"testing\");\n//\t\t }\n\t\t \n\t\t Point P1 = new Point(x1p1,y1p1);\n\t\t Point P2 = new Point(x2p1,y2p1);\n\t\t List<Point> gP = GetPoints(P1, P2);\n\t\t return gP;\n\t \n\t}", "public SortedSet<WServiceChain> getOutgoingServiceChains () { return n.getAssociatedRoutes(getNet().getIpLayer().getNe()).stream().map(ee->new WServiceChain(ee)).filter(sc->sc.getA().equals(this)).collect(Collectors.toCollection(TreeSet::new)); }", "public ArrayList<Train> getAllTrains() {\n\t\tArrayList<Train> dispatchedTrains = new ArrayList<Train>(trains.size());\n\t\tfor (Train t : dispatchedTrains) {\n\t\t\tif (t.currentBlock != 0) {\n\t\t\t\tdispatchedTrains.add(t);\n\t\t\t}\n\t\t}\n\t\tif (dispatchedTrains.size() > 0) {\n\t\t\treturn dispatchedTrains;\n\t\t}\n\t\treturn null;\n\t}", "java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> \n getTransitFlightsList();", "public List<Vehicle> getVehicles() {\n\t\treturn vehicles;\n\t\t\n\t}" ]
[ "0.66766936", "0.6656607", "0.66482365", "0.63938344", "0.616795", "0.61021537", "0.60648894", "0.5929004", "0.57783055", "0.5707533", "0.56995386", "0.5663641", "0.5632082", "0.56263965", "0.5609045", "0.56038064", "0.55673677", "0.5563195", "0.5560462", "0.5552706", "0.5544758", "0.5535102", "0.5534166", "0.5500513", "0.5496604", "0.54563475", "0.5448007", "0.54434276", "0.54220796", "0.5419124", "0.54168403", "0.54103863", "0.5399791", "0.5392228", "0.53863895", "0.5372016", "0.53547126", "0.5345321", "0.53280646", "0.53256315", "0.5311246", "0.53092915", "0.5308026", "0.5307792", "0.53022623", "0.53013295", "0.5300481", "0.5295294", "0.52889264", "0.5282402", "0.52793825", "0.5277345", "0.527545", "0.52675074", "0.5251254", "0.5249047", "0.52481514", "0.5246047", "0.5242577", "0.5241565", "0.52302474", "0.5228486", "0.52281964", "0.5202136", "0.51929826", "0.5192311", "0.5188686", "0.5184365", "0.5178443", "0.5163705", "0.5143396", "0.5135929", "0.51350546", "0.512051", "0.5106563", "0.5100324", "0.5097199", "0.50943303", "0.50773513", "0.5077334", "0.50720954", "0.50653946", "0.5063311", "0.5058317", "0.5054044", "0.5050842", "0.50503355", "0.50204307", "0.5013871", "0.5005406", "0.5005219", "0.49973166", "0.4996717", "0.49943703", "0.49846745", "0.4977249", "0.49727362", "0.49676773", "0.49601954", "0.49535012" ]
0.5899569
8
Add a street that vehicles will have to traverse on their way
@Override public boolean AddTraversalStreet(Street street) { boolean follows = false; if(streets.size() == 0) { follows = true; } else { for (Street s : streets) { if (s.follows(street)) { follows = true; break; } } } if(!follows) { return false; } if(!streets.contains(street)) streets.add(street); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDetourStreet( Street s)\r\n {\r\n detour_streets.add(s);\r\n }", "public boolean addStreet(Street street)\r\n {\r\n streets_map.add(street);\r\n return true;\r\n }", "public void setStreet(String street) {\n this.street = street;\n }", "public void setStreet(java.lang.String street) {\n this.street = street;\n }", "public void setStreet(java.lang.String street) {\n this.street = street;\n }", "public void setStreet(String street) {\r\n\t\tthis.street = street;\r\n\t}", "public void addAddress(String street, String city) {\n this.address.add(street);\n this.address.add(city);\n }", "public void setStreet(String street) {\n\t\tthis.street = street;\n\t}", "void setStreet(String street);", "public Street (SimpleMap roadMap) {\n if (roadMap != null) roadMap.addToMap(this);\n }", "public void setStreetAddress(String newStreetAddress) {\n this.address = newStreetAddress;\n }", "private void buildStreet() {\r\n\t\tbuilt = false;\r\n\t\tbuildPanelRoad.setVisible(false);\r\n\t\tMessage message = new Message(clickedRoad, true, null);\r\n\t\tsendMessage(message);\r\n\t}", "org.landxml.schema.landXML11.RoadwayDocument.Roadway addNewRoadway();", "public void findStreets() {\r\n\t\tpolygonMap.resetStreets();\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tfor (int i = 0; i < island.getRoads().length; i++) {\r\n\t\t\tif (buildStreetIsAllowed(island.getRoads()[i])\r\n\t\t\t\t\t&& !isWaterStreet(island.getRoads()[i])) {\r\n\t\t\t\tpolygonMap.addStreet(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setStreetName(String streetName) {\r\n this.streetName = streetName;\r\n }", "public void setStreetName(String streetName) {\n this.streetName = streetName;\n }", "public void setStreetAddress(String streetAddress) {\r\n\t\tthis.streetAddress = streetAddress;\r\n\t}", "public PersonAddressBuilderDFB at(String streetAddress){\n person.streetAddress = streetAddress;\n return this;\n }", "public void setStreetName(String streetName) \n \t{\n \t\tthis.streetName = streetName;\n \t}", "public CustomerBuilder setStreet(final String streetParam) {\n this.streetNested = streetParam;\n return this;\n }", "public String getStreet() {\r\n\t\treturn street;\r\n\t}", "public String getStreet() {\r\n\t\treturn street;\r\n\t}", "@Override\r\n\tpublic void placeRoad(EdgeLocation edgeLoc) {\n\t\t\r\n\t}", "public void addAddress(String Address, Coord coord);", "public void addNewRecord(String name, String street, int building, int apartment) {\n if (name == null || street == null)\n throw new NullPointerException();\n if (!addressBook.containsKey(name)) {\n Address address = new Address(street, building, apartment);\n addressBook.put(name, address);\n }\n }", "public String getStreet() {\n return street;\n }", "public String getStreet() {\n return street;\n }", "public String getStreet() {\n return this.street;\n }", "public void setName (String name) {\n\t streetName = name ;\n }", "public void setClosedStreet(Street s)\r\n {\r\n closed_street = s;\r\n }", "org.landxml.schema.landXML11.RoadsideDocument.Roadside addNewRoadside();", "protected void streetLoc(LatLng latLng) {\n if (latLng == null) {\n return;\n }\n TencentSearch tencentSearch = new TencentSearch(this);\n //还可以传入其他坐标系的坐标,不过需要用coord_type()指明所用类型\n //这里设置返回周边poi列表,可以在一定程度上满足用户获取指定坐标周边poi的需求\n Geo2AddressParam geo2AddressParam = new Geo2AddressParam(latLng).getPoi(true)\n .setPoiOptions(new Geo2AddressParam.PoiOptions()\n// .setRadius(1000).setCategorys(\"面包\")\n .setPolicy(Geo2AddressParam.PoiOptions.POLICY_O2O));\n tencentSearch.geo2address(geo2AddressParam, new HttpResponseListener<BaseObject>() {\n\n @Override\n public void onSuccess(int arg0, BaseObject arg1) {\n if (arg1 == null) {\n return;\n }\n Geo2AddressResultObject obj = (Geo2AddressResultObject)arg1;\n StringBuilder sb = new StringBuilder();\n sb.append(\"逆地址解析\");\n sb.append(\"\\n地址:\" + obj.result.address);\n sb.append(\"\\npois:\"+obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n// provinceMap.put()\n province1 = provinceMap.get(obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n if(province1 == null) {\n provinceMap.put(obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district,obj.result.address_component.province+obj.result.address_component.city+obj.result.address_component.district);\n getStreet(obj.result.address_component.province, obj.result.address_component.city, obj.result.address_component.district);\n }\n\n// for (Poi poi : obj.result.pois) {\n// sb.append(\"\\n\\t\" + poi.title);\n// tencentMap.addMarker(new MarkerOptions()\n// .position(poi.latLng) //标注的位置\n// .title(poi.title) //标注的InfoWindow的标题\n// .snippet(poi.address) //标注的InfoWindow的内容\n// );\n// }\n// Log.e(\"test\", sb.toString());\n }\n\n @Override\n public void onFailure(int arg0, String arg1, Throwable arg2) {\n Log.e(\"test\", \"error code:\" + arg0 + \", msg:\" + arg1);\n }\n });\n }", "public void showStreets() {\n\t\tMonopolyClient.getStreets();\n\t}", "private boolean buildStreetIsAllowed(Road road) {\r\n\t\tif (!client.isBeginning()\r\n\t\t\t\t&& road.isBuildable(island, client.getSettler().getID())\r\n\t\t\t\t&& road.getOwner() == Constants.NOBODY) {\r\n\t\t\treturn true;\r\n\t\t} else if (((client.isBeginning() && road.getEnd() == getLastSettlementNode()) || (client\r\n\t\t\t\t.isBeginning() && road.getStart() == getLastSettlementNode()))\r\n\t\t\t\t&& road.getOwner() == Constants.NOBODY) {\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t}", "public void setStreetNo(int value) {\n this.streetNo = value;\n }", "public String getStreet()\n {\n return street;\n }", "@Test\n\tpublic void addRoadTest(){\n\t\tDjikstrasMap m = new DjikstrasMap();\t//Creates new DjikstrasMap object\n\t\tLocation l1 = new Location(\"Guildford\");\n\t\tLocation l2 = new Location(\"Portsmouth\");\n\t\t\n\t\tm.addRoad(\"Guildford\", \"Portsmouth\", 20.5, \"M3\");\t//Adds a road from Guildford to portsmouth to the map\n m.addRoad(\"Portsmouth\", \"Guildford\", 20.5, \"M3\");\n \n assertEquals(l1.getName(), m.getNode(\"Guildford\").getName());\t//Tests that the method added the roads correctly to teh map\n assertEquals(l2.getName(), m.getNode(\"Portsmouth\").getName());\n\t}", "public CustomerAddressQuery street() {\n startField(\"street\");\n\n return this;\n }", "private boolean buildStreetIsAllowed() {\r\n\t\tif (clickedRoad.getEnd() == lastSettlementNode\r\n\t\t\t\t|| clickedRoad.getStart() == lastSettlementNode) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "void addHasAddress(String newHasAddress);", "private boolean addRoad(\n String fromName, String toName, double roadDistance, String roadName\n ) {\n Vertex<String> from = addLocation(fromName);\n Vertex<String> to = addLocation(toName);\n\n // Add the road to the network - We assume all roads are two-way and\n // ignore if we've already added the road as a reverse of another\n try {\n\n Edge<String> road = graph.insert(from, to, roadName);\n Edge<String> backwardsRoad = graph.insert(to, from, roadName);\n\n // Label each road with it's weight\n graph.label(road, roadDistance);\n graph.label(backwardsRoad, roadDistance);\n\n } catch (InsertionException ignored) {\n return false;\n }\n\n return true;\n }", "public StreetAddress(String streetName, int streetNumber)\n \t{\n \n \t\tthis.streetName = streetName;\n \t\tthis.streetNumber = streetNumber;\n \t}", "@Override\n public boolean AddVehicleToLine(Vehicle v) {\n boolean alreadyContainsThisVehicle = false;\n for(Vehicle vehicle : vehicles) {\n if(vehicle.getStart() == v.getStart()) {\n alreadyContainsThisVehicle = true;\n break;\n }\n }\n if(!alreadyContainsThisVehicle) {\n vehicles.add(v);\n for(int i=0; i<stops.size()-1;i++) {\n Route route = new MyRoute();\n route.ConstructRoute(streets,\n new PointInPath(route, stops.get(i).getKey().getStreet(), stops.get(i).getKey().getCoordinate()),\n new PointInPath(route, stops.get(i+1).getKey().getStreet(), stops.get(i+1).getKey().getCoordinate()),\n stops.get(i+1).getValue());\n v.AddRoute(route);\n }\n return true;\n } else {\n return false;\n }\n }", "public Address(String street, String city, String state){\n this.street=street;\n this.city=city;\n this.state=state;\n\n }", "public void addRoad(Road r) {\n\t\tthis.roads.add(r);\n\t}", "public Street(int capacity, int travelingTime) {\n\t\tmCapacity = capacity;\n\t\tmTravelingTime = travelingTime;\n\t\tmVehicles = new CircularVector<CarAndTime>(mCapacity);\n\t}", "public String getStreet(){\n return street;\n }", "public void setStreetAddress(StringFilter streetAddress) {\n\t\tthis.streetAddress = streetAddress;\n\t}", "public String getStreetName() {\r\n return streetName;\r\n }", "public String getStreetName() {\r\n return streetName;\r\n }", "public void setStreets(int numx, int numy);", "public @NotNull Address newAddress(@NotNull @Size(min = 1, max = 255) final String street,\r\n\t\t\t@NotNull @Size(min = 1, max = 255) final String city, @NotNull final State state, @NotNull Integer zipcode);", "public java.lang.String getStreet() {\n return street;\n }", "public java.lang.String getStreet() {\n return street;\n }", "private void drawStreet(Graphics2D g2d, int x, int y, Cell c) {\n try {\r\n g2d.setPaint(Color.LIGHT_GRAY);\r\n g2d.fill(cellBorder);\r\n g2d.setPaint(Color.DARK_GRAY);\r\n g2d.draw(cellBorder);\r\n drawStreetAgents(g2d,x,y,c);\r\n } catch(Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void setStreetFieldName(final String value) {\n setProperty(STREET_FIELD_NAME_KEY, value);\n }", "public String getStreetName() {\n return streetName;\n }", "String getStreet();", "ShipmentRouteSegment createShipmentRouteSegment();", "public boolean addEmployeeToBillToLocation(Employee emp, String name, String street) {\r\n\t\tfor(int i = 0; i < companyDirectory.size(); i++) {\r\n\t\t\tfor(int j = 0; j < companyDirectory.get(i).getLocations().size(); j++) {\r\n\t\t\t\tif(companyDirectory.get(i).getLocations().get(j) instanceof BillTo &&\r\n\t\t\t\tcompanyDirectory.get(i).getName().equals(name) && \r\n\t\t\t\tcompanyDirectory.get(i).getLocations().get(j).getAddress1().equals(street) ) {\r\n\t\t\t\t\treturn companyDirectory.get(i).getLocations().get(j).getEmployees().add(emp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "void buildRoad(EdgeLocation edge, boolean free);", "public Address(int zip, int street) {\n\t\tthis.zip = zip;\n\t\tthis.street = street;\n\t}", "public String getStreetAddress() {\n return address;\n }", "public Address(String street, String townORcity, String postcode) {\r\n this.street = street;\r\n this.townORcity = townORcity;\r\n this.postcode = postcode;\r\n }", "@Override\r\n\tpublic void buildRoad() {\n\t\t\r\n\t}", "public ShopsRecord(Integer shopId, String street) {\n super(Shops.SHOPS);\n\n set(0, shopId);\n set(1, street);\n }", "public Road(Town source, Town destination, String name) {\r\n\t\tthis.source = source;\r\n\t\tthis.destination = destination;\r\n\t\tthis.vertices = new HashSet<Town>();\r\n\t\tvertices.add(source);\r\n\t\tvertices.add(destination);\r\n\t\t\r\n\t\tthis.name = name;\r\n\t}", "public void printDetails(Edge street) {\n System.out.printf(\"Driver %d heading from %s to %s via %s\\n\",\n this.driverNum, street.from.getLocationName(), street.to.getLocationName(), street.streetName);\n\n // print where we are leaving to, and how many cups of coffee consumed\n if (street.to.getLocationName().equals(\"Outside City\")) {\n if (street.streetName.equals(\"Fourth Ave.\")) {\n // Philadelphia\n System.out.printf(\"Driver %d has gone to Philadelphia!\\n\", this.driverNum);\n }\n if (street.streetName.equals(\"Fifth Ave.\")) {\n // Cleveland\n System.out.printf(\"Driver %d has gone to Cleveland!\\n\", this.driverNum);\n }\n // print how many cups of coffee\n System.out.printf(\"Driver %d got %d cup(s) of coffee.\\n\", this.driverNum, this.cupsCoffee);\n }\n\n }", "private void addRoute(Route rte) {\n\t\trteTbl.add(rte);\n\t}", "public void setStreetName(String streetName) {\r\n\t\t\tif(streetName == null || streetName.isEmpty()) \r\n\t\t\t{\r\n\t\t\t\tthis.streetName = \"N/A\";\r\n\t\t\t}else \r\n\t\t\t{\r\n\t\t\t\tthis.streetName = streetName;\r\n\t\t\t}\r\n\t\t}", "public String getStreetAddress() {\r\n\t\treturn streetAddress;\r\n\t}", "public boolean setStreetAddress(String someStreet) {\n if (VMSPro.checkString(someStreet)) {\n this.streetAddress = someStreet;\n return true;\n }\n return false;\n }", "public Road(String name) {\n this.name = name;\n this.points = new ArrayList<>();\n }", "public String getStreetName()\n \t{\n \t\treturn this.streetName;\n \t}", "public void addStation(String station) {\n this.station = station;\n }", "public synchronized void addRoute(String to, String via) {\n\tif(routeExists(to, via)) {\n\t return;\n\t}\n\taddForwardEntry(to, via);\n\tinverseTable.add(via, to);\n }", "public boolean addStudentAddress(StudentAddress studentAddress) {\n\t\treturn false;\r\n\t}", "public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}", "public void setStreetNumber(int streetNumber)\n \t{\n \t\tthis.streetNumber = streetNumber;\n \t}", "@Override\n\t@XmlElement\n\tpublic void setStreetCode(String streetCode) {\n\t\t\n\t}", "private void drawStreetLines(final Graphics2D theGraphics,\n final int theX, final int theY) {\n \n final Paint oldPaint = theGraphics.getPaint();\n theGraphics.setPaint(Color.YELLOW);\n\n final int leftx = theX * SQUARE_SIZE;\n final int topy = theY * SQUARE_SIZE;\n final int centerx = leftx + SQUARE_SIZE / 2;\n final int centery = topy + SQUARE_SIZE / 2;\n final int rightx = leftx + SQUARE_SIZE;\n final int bottomy = topy + SQUARE_SIZE;\n\n if (isValidIndex(theY - 1, theX) && myGrid[theY - 1][theX] == Terrain.STREET) {\n theGraphics.drawLine(centerx, centery, centerx, topy); // above\n }\n if (isValidIndex(theY + 1, theX) && myGrid[theY + 1][theX] == Terrain.STREET) {\n theGraphics.drawLine(centerx, centery, centerx, bottomy); // below\n }\n if (isValidIndex(theY, theX - 1) && myGrid[theY][theX - 1] == Terrain.STREET) {\n theGraphics.drawLine(centerx, centery, leftx, centery); // left\n }\n if (isValidIndex(theY, theX + 1) && myGrid[theY][theX + 1] == Terrain.STREET) {\n theGraphics.drawLine(centerx, centery, rightx, centery); // right\n }\n\n theGraphics.setPaint(oldPaint);\n }", "public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }", "public void setAddress(String street, String town, String postcode)\r\n {\r\n address.setFullAddress(street, town, postcode);\r\n }", "@Override\n\tpublic String getStreet() {\n\t\treturn this.street;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn zip + \"-\" + street;\n\t}", "public int getStreet() {\n\t\treturn street;\n\t}", "@Test\n void testSuccess_putAndLoadStreetLines() {\n tm().transact(() -> tm().put(entity));\n assertAddress(loadByEntity(entity).address, \"123 W 14th St\", \"8th Fl\", \"Rm 8\");\n }", "@Test\n void testSuccess_saveAndLoadStreetLines() {\n assertAddress(saveAndLoad(entity).address, \"123 W 14th St\", \"8th Fl\", \"Rm 8\");\n }", "public void setContactStreet(String contactStreet) {\n this.contactStreet = contactStreet;\n }", "public void addWay(City c1,City c2) throws CityNotFoundException{\r\n\t\ttry {\r\n\t\t\tmap.addEdge(c1, c2);\r\n\t\t} catch (VertexNotExistException e) {\r\n\r\n\t\t\tthrow new CityNotFoundException(\"city not founds\");\r\n\t\t}\r\n\t}", "public void setStreetNumber(Integer streetNumber) {\n this.streetNumber = streetNumber;\n }", "public String getStreetAddress() {\n return this.streetAddress;\n }", "@Override\n\tpublic int addAddress(Address address) {\n\t\treturn sqlSessionTemplate.insert(sqlId(\"addFullAddress\"),address);\n\t}", "public String getStreetType() {\r\n return streetType;\r\n }", "public void addAddress(Address address) {\n this.addresses.add(address);\n }", "public Address(String street, String city, String state, String zipCode) {\n\t\tthis.street = street;\n\t\tthis.city = city;\n\t\tthis.state = state;\n\t\tthis.zipCode = zipCode;\n\t}", "public Saving streetOfDivergentSendingAddress(String streetOfDivergentSendingAddress) {\n this.streetOfDivergentSendingAddress = streetOfDivergentSendingAddress;\n return this;\n }", "public Address(String street, String city, String zipCode, String country)\n {\n //reference the object classes constructors\n this.street = street;\n this.city = city;\n this.zipCode = zipCode;\n this.country = country;\n }", "Long addRoute(Route route);", "public Address(String street, int zipCode, String city, String state) {\n this.street = street;\n this.zipCode = zipCode;\n this.city = city;\n this.state = state;\n }" ]
[ "0.73900557", "0.71773684", "0.69434005", "0.6874142", "0.6874142", "0.681994", "0.6797619", "0.679255", "0.66306317", "0.6616252", "0.64676505", "0.64393353", "0.6391812", "0.63893104", "0.6305381", "0.63009864", "0.6215396", "0.62050337", "0.6149344", "0.61464024", "0.60546416", "0.60546416", "0.60470676", "0.60406727", "0.60205454", "0.600199", "0.600199", "0.5990035", "0.5989116", "0.59587884", "0.595333", "0.5947876", "0.5941597", "0.59415317", "0.5915091", "0.59098965", "0.58917737", "0.582987", "0.58211064", "0.58093005", "0.5792155", "0.578894", "0.5787307", "0.5784808", "0.5784471", "0.5751242", "0.5739591", "0.5736213", "0.5675807", "0.5675807", "0.5675082", "0.5670496", "0.5662173", "0.5662173", "0.5651321", "0.5645513", "0.5607119", "0.55975056", "0.5577207", "0.5573801", "0.5557125", "0.55479467", "0.55427253", "0.5540633", "0.5531536", "0.5514346", "0.55066025", "0.5489032", "0.548875", "0.5488032", "0.54774696", "0.54732287", "0.5460442", "0.5458068", "0.5441166", "0.5441059", "0.5434904", "0.54291743", "0.5425056", "0.54230493", "0.5412427", "0.5409799", "0.5409799", "0.5407485", "0.5393817", "0.5390024", "0.538445", "0.53821206", "0.53642863", "0.5360523", "0.53405607", "0.53350013", "0.5330211", "0.53233486", "0.5322003", "0.5307347", "0.5306225", "0.5293254", "0.52883184", "0.5282205" ]
0.62432355
16
Add vehicle instance to line
@Override public boolean AddVehicleToLine(Vehicle v) { boolean alreadyContainsThisVehicle = false; for(Vehicle vehicle : vehicles) { if(vehicle.getStart() == v.getStart()) { alreadyContainsThisVehicle = true; break; } } if(!alreadyContainsThisVehicle) { vehicles.add(v); for(int i=0; i<stops.size()-1;i++) { Route route = new MyRoute(); route.ConstructRoute(streets, new PointInPath(route, stops.get(i).getKey().getStreet(), stops.get(i).getKey().getCoordinate()), new PointInPath(route, stops.get(i+1).getKey().getStreet(), stops.get(i+1).getKey().getCoordinate()), stops.get(i+1).getValue()); v.AddRoute(route); } return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addLineVehicles(Circle c)\r\n {\r\n this.all_line_vehicles.add(c);\r\n return;\r\n }", "private void addVehicle(Vehicle v){\n\t\tthis.putResource(v);\n\t}", "public void addVehicle(Vehicle v) {\n\t\tvehicles.add(v); \n\t}", "public void addVehicle(Vehicle vehicle) {\n this.vehicles.add(vehicle);\n }", "public void addVehicle(Vehicle vehicle) {\n\t\tvehicleList.add(vehicle);\n\t\tSystem.out.println(vehicle.getMake() + \" added to garage!\");\n\t}", "public void addVehicle(Vehicle vehicle) {\n\t\tvehicles.add(vehicle);\n\t}", "public void add(Vehicle vehicle) {\n\t\tvehicles.add(vehicle);\n\t}", "public void addCar(Vehicle v) {\n\t\tif (this.mVehicles.size() < this.mCapacity) {\n\t\t\tCarAndTime carA = new CarAndTime(v, mTravelingTime);\n\t\t\tmVehicles.addFirst(carA);\n\t\t}\n\t}", "void addVehicle(String type, int speed, int roadRef) {\n if (type.equals(\"Car\")) {\n roads.get(roadRef).addCar(speed);\n roads.get(roadRef).vehicles.get(roads.get(roadRef).vehicles.size() - 1).setRoadRef(roadRef);\n\n\n } else if (type.equals(\"Bus\")) {\n roads.get(roadRef).addBus(speed);\n roads.get(roadRef).vehicles.get(roads.get(roadRef).vehicles.size() - 1).setRoadRef(roadRef);\n\n } else if (type.equals(\"Motorbike\")) {\n roads.get(roadRef).addMotorbike(speed);\n roads.get(roadRef).vehicles.get(roads.get(roadRef).vehicles.size() - 1).setRoadRef(roadRef);\n\n\n }\n }", "public synchronized void addBeacon(Vehicle vehicle, long ID, long x, long y, double speed, boolean isEncrypted){\r\n\t\tbeaconInfoText_.append(\"\\n\\nVehicle\\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(Renderer.getInstance().getTimePassed());\r\n\t\tbeaconInfoText_.append(\"ms\\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(Long.toHexString(ID));\r\n\t\tbeaconInfoText_.append(\",\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(speed);\r\n\t\tbeaconInfoText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(x);\r\n\t\tbeaconInfoText_.append(\",\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(y);\r\n\t\tbeaconInfoText_.append(\", encrypted:\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(isEncrypted);\r\n\t}", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();", "public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}", "@Override\n public synchronized void add(VehicleData vehicleData){\n slotFor(vehicleData).add(vehicleData);\n }", "private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}", "public void addVehicleFirst(Vehicle vehicle){\n\t\tvehicles.addFirst(vehicle);\n\t}", "public synchronized void addBeacon(Vehicle vehicle, long ID, long x, long y, double speed, boolean isEncrypted, boolean isForwared){\r\n\t\tbeaconInfoText_.append(\"\\n\\nVehicle (forwarded by RSU) \\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(Renderer.getInstance().getTimePassed());\r\n\t\tbeaconInfoText_.append(\"ms\\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(Long.toHexString(ID));\r\n\t\tbeaconInfoText_.append(\",\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(speed);\r\n\t\tbeaconInfoText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(x);\r\n\t\tbeaconInfoText_.append(\",\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(y);\r\n\t\tbeaconInfoText_.append(\", encrypted:\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(isEncrypted);\r\n\t}", "List<Vehicle> getLineVehicles(String line);", "public void addLine(Line l) {\n\t\tlines.add(l);\n\t\t// vypocitaj bounding rect\n\t\tfloat x, y, w, h;\n\t\tif (l.getX1() < l.getX2()) {\n\t\t\tx = l.getX1();\n\t\t\tw = l.getX2() - l.getX1();\n\t\t} else {\n\t\t\tx = l.getX2();\n\t\t\tw = l.getX1() - l.getX2();\n\t\t}\n\t\tif (l.getY1() < l.getY2()) {\n\t\t\ty = l.getY1();\n\t\t\th = l.getY2() - l.getY1();\n\t\t} else {\n\t\t\ty = l.getY2();\n\t\t\th = l.getY1() - l.getY2();\n\t\t}\n\t\tif (boundingRect==null) {\n\t\t\tboundingRect = new Rectangle(x, y, w, h);\n\t\t} else {\n\t\t\tif (x < boundingRect.getX()) {\n\t\t\t\tboundingRect.setX(x);\n\t\t\t}\n\t\t\tif (y < boundingRect.getY()) {\n\t\t\t\tboundingRect.setY(y);\n\t\t\t}\n\t\t\tif (w > boundingRect.getW()) {\n\t\t\t\tboundingRect.setW(w);\n\t\t\t}\n\t\t\tif (h > boundingRect.getH()) {\n\t\t\t\tboundingRect.setH(h);\n\t\t\t}\n\t\t}\n\t}", "public synchronized void addLine(Line line)\r\n\t{\r\n\t\tlines.add(line);\r\n\t}", "public void addItem(LineItem lineItem){\n\t\t\n\t\tlineItems.add(lineItem);\n\t}", "@Override\n public void add_vehicle_packet(float timestamp, PacketLaneGroup vp, Long next_link_id) throws OTMException {\n\n // for each vehicle\n Dispatcher dispatcher = link.network.scenario.dispatcher;\n for(AbstractVehicle absveh : create_vehicles_from_packet(vp,next_link_id)){\n\n MesoVehicle veh = (MesoVehicle) absveh;\n\n // tell the event listeners\n if(veh.get_event_listeners()!=null)\n for(InterfaceVehicleListener ev : veh.get_event_listeners())\n ev.move_from_to_queue(timestamp,veh,veh.my_queue,transit_queue);\n\n // tell the vehicle it has moved\n veh.move_to_queue(timestamp,transit_queue);\n\n // tell the travel timers\n if (travel_timer != null)\n ((VehicleLaneGroupTimer)travel_timer).vehicle_enter(timestamp,veh);\n\n // register_with_dispatcher dispatch to go to waiting queue\n dispatcher.register_event(new EventTransitToWaiting(dispatcher,timestamp + transit_time_sec,veh));\n\n }\n\n update_supply();\n\n }", "public void addVehicle(Vehicle vehicle) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_VEHICLE_NAME, vehicle.getName());\n values.put(COLUMN_VEHICLE_NUMBER, vehicle.getNumber());\n values.put(COLUMN_VEHICLE_CC, vehicle.getCc());\n values.put(COLUMN_VEHICLE_YEAR, vehicle.getYear());\n values.put(COLUMN_VEHICLE_TYPE, vehicle.getType());\n values.put(COLUMN_VEHICLE_FUEL, vehicle.getFuel());\n values.put(COLUMN_VEHICLE_CATEGORY, vehicle.getCategory());\n values.put(COLUMN_VEHICLE_DATE, vehicle.getDate());\n\n // Inserting Row\n db.insert(TABLE_VEHICLE, null, values);\n db.close();\n }", "public void loadVehicle(Vehicle vehicle) {\n storage.addVehicle(vehicle);\n }", "public Line voToLine() {\n Line line = new Line();\n if (this.getLineId() != null) {\n line.setLineId(this.getLineId());\n }\n line.setAppmodelId(this.getAppmodelId());\n line.setDriverName(this.getDriverName());\n line.setDriverPhone(this.getDriverPhone());\n line.setLineName(this.getLineName());\n line.setProvinceId(this.provinceId);\n line.setCityId(this.cityId);\n line.setAreaId(this.areaId);\n return line;\n }", "public void addVehicle() {\n\t\tcurrentInstance = FacesContext.getCurrentInstance();\n\t\tFacesMessage message = null;\n\t\ttry {\n\t\t\tvehicleService.insert(vehic);\n\t\t\tmessage = new FacesMessage(FacesMessage.SEVERITY_INFO,\"Saved\",\"Vehicle Saved\");\n\t\t} catch (Exception e) {\n\t\t\tmessage = new FacesMessage(FacesMessage.SEVERITY_ERROR,\"Failed\",\"Vehicle Failed to be Saved: \" + e.getMessage());\n\t\t}\n\t\tcurrentInstance.addMessage(null, message);\n\t}", "public void addLineItem (LineItem lineItem){\n if (this.orderStatus != OrderStatus.Closed && !lineItem.isOrdered() && !lineItems.contains(lineItem)){\n lineItems.add(lineItem);\n total += lineItem.getPrice();\n lineItem.setOrdered(true);\n this.getAccount().setBalance(this.getAccount().getBalance() - lineItem.getPrice());\n }\n }", "public void addRobotToAssemblyLine(Robot robot, int identifier) {\n\t\tfor(int i = 0; i < lines.size(); i++) {\n\t\t\tif(lines.get(i).getIdentifier() == identifier) {\n\t\t\t\tlines.get(i).addRobot(robot);\n\t\t\t}\n\t\t}\n\t}", "public void addAssemblyLine(AssemblyLine line) {\n\t\tlines.add(line);\n\t}", "Line createLine();", "void addLine(int index, Coordinate start, Coordinate end);", "public void addLine(Dialog line) {\n\t\tArrayList<Dialog> temp = new ArrayList<Dialog>();\n\t\ttemp.add(line);\n\t\tdecoupleGenericLines(temp);\n\t\tDialogueSystem.GLOBAL_DIALOG_LIST.add(line);\n\t}", "public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }", "private void addToLineItem(LineItem newLineItem) {\r\n LineItem[] tempItems = new LineItem[lineItems.length + 1];\r\n System.arraycopy(lineItems, 0, tempItems, 0, lineItems.length);\r\n tempItems[lineItems.length] = newLineItem;\r\n lineItems = tempItems;\r\n }", "private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}", "public void add (Car car){\n\t\t}", "public Vehicle(){\n System.out.println(\"Parking a unknown model Vehicle\");\n numberOfVehicle++;\n }", "@Override\n public void add(T car) {\n carsInGarage.add(car);\n }", "public OMAbstractLine() {\n super();\n }", "public void addVehicule(Vehicule vehicule) { listeVehicule.add(vehicule); }", "public void addPoint(Point p) {\r\n line.add(p);\r\n }", "private void addLine (String line) {\n writer.write (line);\n writer.newLine();\n // blockOut.append (line);\n // blockOut.append (GlobalConstants.LINE_FEED);\n }", "public void addLine(String line) {\n if (methodMode) {\n methodCode.add(new AsmLine(line));\n } else {\n program.add(new AsmLine(line));\n }\n }", "public CarAndTime(Vehicle v, int traveltime) {\n\t\t\tcar = v;\n\t\t\ttime = traveltime;\n\t\t}", "public void addEmergencyContactLine(TravelerDetailEmergencyContact line) {\n if (!ObjectUtils.isNull(getTraveler())) {\n line.setFinancialDocumentLineNumber(getTraveler().getEmergencyContacts().size() + 1);\n line.setDocumentNumber(this.documentNumber);\n line.setTravelerDetailId(getTraveler().getId());\n getTraveler().getEmergencyContacts().add(line);\n }\n }", "public void addVehicleType(String s){\n\t\tVehicleType v = new VehicleType(s);\n\t\ttypes.add(v);\n\t}", "void addInstance(Instance instance);", "public void addRecords(double hoursDriven, double hr, double vehicleSpeed) {\n x.format(\"Hours\", \" \", \"Distance Traveled\");\n x.format(\"----------------------------------------------------------------------\");\n \n while (hoursDriven >= 1) {\n x.format(\" \" + hr + \" \" + hr * vehicleSpeed + \" miles\");\n hr++;\n hoursDriven--;\n }\n }", "public Line(){\n\t\t\n\t}", "Vehicle createVehicle();", "Vehicle createVehicle();", "public void addflight(Flight f)\n {\n \t this.mLegs.add(f);\n \t caltotaltraveltime();\n \t caltotalprice();\n }", "public void addVoto(Voto v) {\n if(v.idPA != this.id) {\n \tSystem.out.println(\"addVoto PA error: idPa \"+v.idPA +\"!= this \"+ this.id); \n }\n votos.add(v); \n }", "public BSPLine() {\n super();\n }", "public Line() {\r\n this.line = new ArrayList < Point > ();\r\n this.clickedPoint = null;\r\n this.direction = null;\r\n }", "public void archiveNewVehicle(Vehicle v) throws SimulationException {\r\n\t\tif (v.isQueued() == true) {\r\n\t\t\tthrow new SimulationException(\"The vehicle is already in queue.\");\r\n\t\t} else if (v.isParked() == true) {\r\n\t\t\tthrow new SimulationException(\"The vehicle is already parked.\");\r\n\t\t}\r\n\t\tdissatifiedVehicles.add(v);\r\n\t}", "public void addline(wifi w) {\r\n\r\n\t\tthis.wifis.add(new wifi(w));\r\n\t\tnumOfScans++;\r\n\t}", "public void addCust(Event temp){\n eventLine.add(temp);\n }", "public Vehicle(VehicleType type) {\n\t\tthis.type = type;\n\t}", "public void addInterpretedBy(Contact value) {\r\n\t\tBase.add(this.model, this.getResource(), INTERPRETEDBY, value);\r\n\t}", "public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);", "public final void addInstance(CharacterInstance instance) {\n instances.add(instance);\n }", "void addVertex(Vertex v);", "protected void addToSupplyZoneLines(String line) {\r\n\t\tString[] splitedLine = line.split(\",\");\r\n\t\tString zoneName = splitedLine[0];\r\n\t\tString parentZoneName = splitedLine.length == 2 ? splitedLine[1] : null;\t \r\n\t\tsupplyZoneLines.add(new SupplyZone(zoneName, parentZoneName));\r\n\t}", "public Vehicle(String carClass, BigDecimal price) {\n this.carClass = carClass;\n this.price = price;\n }", "public Builder addAttributes(google.maps.fleetengine.v1.VehicleAttribute value) {\n if (attributesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAttributesIsMutable();\n attributes_.add(value);\n onChanged();\n } else {\n attributesBuilder_.addMessage(value);\n }\n return this;\n }", "void park(Vehicle v) {\n\t\t\tcurrentVehicle = v;\n\t\t}", "public TrazoLibre(Point2D punto, Atributo atributo) {\n this.linea = new ArrayList();\n this.linea.add(punto);\n }", "public void agregar_linea(RecyclingImageView c)\n {\n array_lineas.add(c);\n }", "@Override\r\n\tpublic void addElement(VOI o) {\r\n add(o); // add the voi to the vector\r\n }", "@Override\n\tpublic void insert(Vehicle v) {\n\t\ttry {\n\t\t\tint modelID = VehicleModelDAOImpl.getInstance()\n\t\t\t\t\t.getAll()\n\t\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(m-> m.getDescription().equals(v.getModel()))\n\t\t\t\t\t.findFirst()\n\t\t\t\t\t.get()\n\t\t\t\t\t.getModelID();\n\n\t\t\tint categoryID = VehicleCategoryDAOImpl.getInstance()\n\t\t\t\t\t.getAll()\n\t\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(c->c.getDescription().equals(v.getType()))\n\t\t\t\t\t.findFirst()\n\t\t\t\t\t.get()\n\t\t\t\t\t.getCategoryID();\n\n\n\t\t\tPreparedStatement st = Database.getInstance().getDBConn().prepareStatement(\"INSERT INTO vehicle(vehicle_ID,plate_number,mv_number,engine_number,chassis_number,model_ID,category_ID,status,image) VALUES(?,?,?,?,?,?,?,?,?)\");\n\t\t\t\n\t\t\tst.setString(1, v.getPlateNumber());\n\t\t\tst.setString(2, v.getMvNumber());\n\t\t\tst.setString(3, v.getEngineNumber());\n\t\t\tst.setString(4, v.getChassisNumber());\n\t\t\tst.setInt(5, modelID);\n\t\t\tst.setInt(6, categoryID);\n\t\t\tst.setString(7, v.getStatus());\n//\t\t\tst.setBlob(8, v.getImage());\n\t\t\tst.executeUpdate();\n\t\t\t\n\t\t\tst.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t}", "public void addVehicle(String registragtionNumber, Vehicle newVehicle )\n\t{\n\t\tgarageMap.put(newVehicle.getRegistrationNumber(), newVehicle);\n\t\tSystem.out.println(\"\\n\" + \"Vehicle parked! \\n \");\n\t}", "public void addOrderLine(Interface_IngredientReadOnly nutrient, int amount, double price) {\n orderLines.add(new PurchaseOrderLine(nutrient, amount, price));\n }", "private void addFlight(Flight flight) {\n this.itinerary.add(flight);\n \n // Updates all relevant fields in this Itinerary.\n this.arrivalDateTime = flight.getArrivalDateTime();\n this.destination = flight.getDestination();\n this.travelTime = arrivalDateTime.timeDiff(departDateTime);\n this.price += flight.getCost();\n this.places.add(destination);\n }", "public void AddCarGUI(Car newCar){\n \n switch (newCar.path) { \n case 0:\n carModel.addRow(new Object[]{newCar.carId,\"East\",\"West\",newCar.status, newCar.timeLeft});\n break;\n case 1: \n carModel.addRow(new Object[]{newCar.carId,\"East\",\"South\",newCar.status, newCar.timeLeft});\n break; \n case 2: \n carModel.addRow(new Object[]{newCar.carId,\"West\",\"South\",newCar.status, newCar.timeLeft});\n break; \n case 3: \n carModel.addRow(new Object[]{newCar.carId,\"West\",\"East\",newCar.status, newCar.timeLeft}); \n break; \n case 4: \n carModel.addRow(new Object[]{newCar.carId,\"South\",\"East\",newCar.status, newCar.timeLeft}); \n break; \n case 5: \n carModel.addRow(new Object[]{newCar.carId,\"South\",\"West\",newCar.status, newCar.timeLeft});\n break; \n default: \n System.out.println(\"Car not reaching crossing\"); \n break; \n } \n }", "public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }", "public void addCarToCarRental(InterfaceAbstractCar car) {\r\n\t\tcompanyCars.add(car);\r\n\t}", "public void addRoad(Road r) {\n\t\tthis.roads.add(r);\n\t}", "public static void addInterpretedBy(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Contact value) {\r\n\t\tBase.add(model, instanceResource, INTERPRETEDBY, value);\r\n\t}", "public Vehicle addVehicle(NewVehicle newVehicle){\n\t\tif (newVehicle.getId()==null || newVehicle.getOriginId()==null ||\n\t\t\tnewVehicle.getDestinationId()==null || newVehicle.getType()==null)\n\t\t\treturn null;\n\t\t\n\t\tVehicle v = (new ObjectFactory()).createVehicle();\n\t\t\n\t\tv.setId(newVehicle.getId());\n\t\tv.setSelf(buildVehicleUriFromId(v.getId()));\n\t\tXMLGregorianCalendar now = getNow();\n\n\t\tv.setEntryTime(now);\n\t\tv.setOriginUri(this.buildPlaceUriFromId(newVehicle.getOriginId()));\n\t\tv.setDestinationUri(this.buildPlaceUriFromId(newVehicle.getDestinationId()));\n\t\tv.setPositionUri(v.getOriginUri());\n\t\tv.setType(newVehicle.getType());\n\t\tv.setState(VehicleState.IN_TRANSIT);\n\t\tv.setPlacePathUri(v.getSelf() + \"/suggestedPath\");\n\t\tsetLastModifiedDateNow(v);\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tthis.addVehicle(v);\n\t\t\treturn v;\n\t\t}\n\t}", "org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl addNewTrafficControl();", "public void addDataLine(String line) {\n this.data.textProperty().set(\n String.format(\n \"%s\\n%s\",\n this.data.textProperty().get(),\n line\n )\n );\n }", "public void addSegment()\n { \n Location tail = new Location();\n \n if(up)\n {\n tail.setA(list.get(0).getA());\n tail.setB(list.get(0).getB()+15);\n }\n else if(down)\n {\n tail.setA(list.get(0).getA());\n tail.setB(list.get(0).getB()-15);\n }\n else if(left)\n {\n tail.setA(list.get(0).getA()+15);\n tail.setB(list.get(0).getB());\n }\n else if(right)\n {\n tail.setA(list.get(0).getA()-15);\n tail.setB(list.get(0).getB());\n } \n \n ArrayList<Location> temp = new ArrayList<Location>();\n \n \n temp.add(tail);\n \n for(int i=0 ; i<list.size() ; i++)\n {\n temp.add(list.get(i));\n }\n list = temp; \n }", "public static Line CreateLine(String id) { return new MyLine(id); }", "void add(Vertex vertex);", "public TrazoLibre() {\n this.linea = new ArrayList();\n }", "public BSPLine(BSPPolygon poly) {\n setTo(poly);\n }", "public void update(Object obj) {\n\t\t\t\t\t\tNode clone = new Node();\n\t\t\t\t\t\tclone.attachChild(new SharedLine(lineGeo1));\n\t\t\t\t\t\tclone.attachChild(new SharedLine(lineGeo2));\n\t\t\t\t\t\tlines.attachChild(clone);\n\t\t\t\t\t\tTealWorldManager.getWorldManager().addToUpdateList(lines);\n\t\t\t\t\t}", "public AddDeadlineCommand(String line) {\n this.line = line;\n }", "public void addConnection(String line)\n\t{\n\t\tScanner scanner = new Scanner(line);\n\t\tNode parent = this.nodes.get(scanner.next());\n\t\tscanner.next(); // ->\n\t\tNode child = this.nodes.get(scanner.next());\n\t\t\n\t\tparent.addChild(child);\n\t\tchild.addParent(parent);\n\t}", "public void add(Flight flight) {\n if (validAdd(flight)) {\n addFlight(flight);\n }\n }", "public void addVertex();", "public static void addInterpretedBy( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, INTERPRETEDBY, value);\r\n\t}", "public void printInfoVehicleClick(Circle c, Text lines_info)\r\n {\r\n if (this.getLineVehicles().contains(c)) {\r\n if (c.getFill() == this.getTransportLineColor()) {\r\n c.setFill(this.getTransportLineSelectedColor());\r\n } else {\r\n c.setFill(this.getTransportLineColor());\r\n }\r\n\r\n lines_info.setText(\"Line number: \" + this.getLineId() + \"\\n\");\r\n lines_info.setText(lines_info.getText() + \"Route: \" + this.printRouteStops() + \"\\n\");\r\n lines_info.setText(lines_info.getText() + \"Line delay: +\" + this.getDelay() + \"\\n\");\r\n\r\n // get actual coordinates of vehicle\r\n int vehicle_actual_x = (int) Math.round(c.getCenterX());\r\n int vehicle_actual_y = (int) Math.round(c.getCenterY());\r\n\r\n Coordinate vehicle_actual_coordinates = new Coordinate(vehicle_actual_x, vehicle_actual_y);\r\n\r\n // print next stop and previous stops of line\r\n for (int i = 0; i < this.transportLinePath().size() - 1; i++) {\r\n Coordinate coordinates1 = this.transportLinePath().get(i);\r\n Coordinate coordinates2 = this.transportLinePath().get(i + 1);\r\n String id_coordinates_2 = this.transportLinePathIDs().get(i + 1);\r\n\r\n if (vehicle_actual_coordinates.isBetweenTwoCoordinates(coordinates1, coordinates2) == true) {\r\n lines_info.setText(lines_info.getText() + \"Previous stops:\" + \"\\n\");\r\n for (int j = 0; j < this.transportLinePathIDs().size(); j++) {\r\n if (j < this.transportLinePathIDs().indexOf(id_coordinates_2) && this.transportLinePathIDs().get(j).contains(\"Stop\")) {\r\n lines_info.setText(lines_info.getText() + this.transportLinePathIDs().get(j) + \" -> \");\r\n } else if (this.transportLinePathIDs().get(j).contains(\"Stop\")) {\r\n lines_info.setText(lines_info.getText() + \"\\n\" + \"Next stop: \" + this.transportLinePathIDs().get(j) + \"\\n\");\r\n break;\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n }", "public Log agregar(String linea) {\n cadenas.add(linea);\n return this;\n }", "public void agregarVehiculo(String patente, Vehiculo v) {\n vehiculos.put(patente, v);\n }", "@Override\n void setJourney(String line, TransitCard transitCard) {\n SubwayLine subwayLine = SubwaySystem.getSubwayLineByName(line);\n int startIndex = subwayLine.getStationList().indexOf(this.startLocation);\n int endIndex = subwayLine.getStationList().indexOf(this.endLocation);\n if (startIndex < endIndex) {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex++;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n } else {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex--;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n }\n double d =\n Distance.getDistance(\n startLocation.getNodeLocation().get(0),\n startLocation.getNodeLocation().get(1),\n endLocation.getNodeLocation().get(0),\n endLocation.getNodeLocation().get(1));\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementDistance(d);\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementPassengers();\n }", "org.landxml.schema.landXML11.RoadwayDocument.Roadway addNewRoadway();", "private Line getTrajectory() {\n Point target = this.topLeft.add(this.velocity).asPoint();\n return new Line(this.topLeft.asPoint(), target);\n }", "public RVO_2_1() {\n super();\n orcaLines = new ArrayList<Line>();\n }", "public MAJOR_JAVA_TYPE addLine(MAJOR_JAVA_TYPE v) {\n\t\tlines++;\n\t\tlog.trace(\"Registering `{}` in line {}\", v, lines);\n\n\t\tif (v == null) {\n\t\t\tnullLines++;\n\t\t}\n\t\telse {\n\t\t\tregisterValue(v);\n\t\t}\n\t\treturn v;\n\t}" ]
[ "0.7003773", "0.6922888", "0.6805053", "0.6773486", "0.6669955", "0.66132265", "0.6552834", "0.6499587", "0.6480336", "0.6179533", "0.6112945", "0.6102945", "0.6099592", "0.6096222", "0.60885316", "0.6049331", "0.60163766", "0.5996623", "0.59137505", "0.586588", "0.5855263", "0.5828065", "0.57893175", "0.5777661", "0.5772491", "0.5770341", "0.57640517", "0.5751417", "0.5738922", "0.57283056", "0.57121116", "0.5707288", "0.5671926", "0.5634349", "0.562212", "0.5613781", "0.5600299", "0.5589012", "0.5587806", "0.55759954", "0.557444", "0.55410075", "0.5535369", "0.55171", "0.55083585", "0.55079794", "0.5452789", "0.5438025", "0.54185784", "0.54185784", "0.5417022", "0.5413486", "0.5404736", "0.5384142", "0.5372288", "0.5363625", "0.53618276", "0.53263706", "0.5310502", "0.52950895", "0.52944833", "0.5293069", "0.5288324", "0.528742", "0.52868867", "0.5272077", "0.5263569", "0.5257475", "0.52550673", "0.52478224", "0.52445084", "0.5239132", "0.5234778", "0.5234509", "0.52311426", "0.5230281", "0.52291566", "0.5228946", "0.5213668", "0.5205325", "0.51988214", "0.5194798", "0.51908666", "0.5188714", "0.51762414", "0.51750684", "0.5174399", "0.5172226", "0.51677597", "0.51581234", "0.5155973", "0.51484925", "0.51453865", "0.5145009", "0.51431715", "0.5137675", "0.513683", "0.5125316", "0.5122805", "0.51184857" ]
0.74412876
0
Get color of this line
@Override public Color getMapColor() { return mapColor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLineColor()\n {\n return lineColor;\n }", "public Color getLineColor();", "public int getLineColor() {\r\n return LineColor;\r\n }", "public String getLine() {\n \treturn this.lineColor;\n }", "public Color getLineColor()\n {\n return lineacolore;\n }", "public Color getLineColor() {\n return lineColor;\n }", "public int getLineColor() { return mLineColor; }", "@ColorInt\n public int getLineColorAsInt() {\n PropertyValue<String> value = getLineColor();\n if (value.isValue()) {\n return rgbaToColor(value.getValue());\n } else {\n throw new RuntimeException(\"line-color was set as a Function\");\n }\n }", "public RecodedColor getLineColor(){\n return ps == null ? null :(RecodedColor) ps.getFillLegend().getFillColorLegend();\n }", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<String> getLineColor() {\n return (PropertyValue<String>) new PropertyValue(nativeGetLineColor());\n }", "public String getColor() {\r\n return color;\r\n }", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor()\n {\n return this.color;\n }", "public int getColor() {\n \t\treturn color;\n \t}", "public int getColor() {\n return color;\n }", "public String getColor() {\n return this.color;\n }", "public int getColor() {\n return this.color;\n }", "public String getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public Integer getColor() {\n\t\treturn color;\n\t}", "public String getColor() { \n return color; \n }", "public String obtenColor() {\r\n return color;\r\n }", "public int getDrawingsColor(){\n return mPaintLine.getColor();\n }", "public Color getColor()\n {\n return color;\n }", "public String getColor(){\n return this._color;\n }", "public Color getColor() \n\t{\n\t\treturn color;\n\t}", "@Override\n public String getColor() {\n return this.color;\n }", "public Color getColor() {\n \t\treturn color;\n \t}", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public Color getColor() {\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }", "public String getColor(){\r\n return color;\r\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public final Color getColor() {\n return color;\n }", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public int getColor()\r\n {\r\n return m_iColor;\r\n }", "public final Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return this.color;\r\n }", "public int getColor() {\n\t\treturn getMappedColor(color);\n\t}", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "@Override\r\n public Llama.Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\n\t\treturn (Color)p.getPaint();\n\t}", "public Color getColor() { return color; }", "String getColor();", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n\t\treturn this.color;\n\t}", "public Color getColor() { return color.get(); }", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "public int getColor();", "public int getColor();", "public int color() {\n\t\treturn color;\n\t}", "public int getColor() {\r\n return Color;\r\n }", "public final Color getColor() {\n\t\treturn color;\n\t}", "public RMColor getColor()\n {\n return getStyle().getColor();\n }", "public String getColor(){\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "private void lineColor() {\n\n\t}", "public Color getColor() {\n\t\treturn _color;\n\t}", "String getTextStrokeColorAsString();", "public Color getColor() {\n\treturn color;\n }", "public Color getColor() {\r\n return currentColor;\r\n }", "public Color getColor()\n { \n return color;\n }", "public Color getColor();", "public Color getColor();", "public Color getColor();" ]
[ "0.8400988", "0.83902687", "0.8286077", "0.8266954", "0.8202169", "0.8091884", "0.8003305", "0.771744", "0.77032244", "0.76660436", "0.7504694", "0.7482236", "0.7482236", "0.7479772", "0.7479772", "0.7479772", "0.7479772", "0.7479772", "0.7479772", "0.7479772", "0.7479772", "0.745439", "0.7436781", "0.7436781", "0.7424357", "0.7416316", "0.7411104", "0.7394841", "0.73722005", "0.73440826", "0.73399734", "0.7329484", "0.7329484", "0.73012483", "0.7273298", "0.7256953", "0.72381544", "0.72317576", "0.72279173", "0.722137", "0.72093594", "0.7202188", "0.71882194", "0.71882194", "0.71882194", "0.71882194", "0.71882194", "0.71805745", "0.71779746", "0.71779746", "0.71779746", "0.716911", "0.71574", "0.7155738", "0.7155738", "0.7155738", "0.7155663", "0.7155663", "0.7155663", "0.7155663", "0.7155663", "0.7155663", "0.7151396", "0.71488446", "0.71488446", "0.7140549", "0.7140215", "0.71376675", "0.7129837", "0.7123124", "0.7123124", "0.7123124", "0.7120415", "0.7120415", "0.7120415", "0.7120415", "0.7117603", "0.71167177", "0.7113392", "0.7112376", "0.7105205", "0.70925456", "0.70923287", "0.7089507", "0.7089346", "0.7089346", "0.70840806", "0.70691055", "0.70688695", "0.7066029", "0.7050652", "0.7037806", "0.703182", "0.7031085", "0.70256066", "0.7022744", "0.7017338", "0.7005705", "0.6996951", "0.6996951", "0.6996951" ]
0.0
-1
Test ADSB tuple builder (2d)
@Test public void testADSBTupleBuilder1() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ADSB_2D); final Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1); final Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2); final Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3); final Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4); final Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5); final Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6); final Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7); final Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8); final Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9); final Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10); final Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11); final Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12); Assert.assertNull(tuple1); Assert.assertNull(tuple2); Assert.assertNotNull(tuple3); Assert.assertNull(tuple4); Assert.assertNull(tuple5); Assert.assertNotNull(tuple6); Assert.assertNull(tuple7); Assert.assertNull(tuple8); Assert.assertNotNull(tuple9); Assert.assertNull(tuple10); Assert.assertNull(tuple11); Assert.assertNotNull(tuple12); final GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes())); final GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes())); final GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes())); final GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes())); Assert.assertEquals("AW119KX", geoJson1.getProperties().get("Callsign")); Assert.assertEquals("6600", geoJson1.getProperties().get("Altitude")); Assert.assertEquals("125.706009", geoJson1.getProperties().get("GroundSpeed")); Assert.assertEquals("297.992065", geoJson1.getProperties().get("Track")); Assert.assertEquals(2, tuple3.getBoundingBox().getDimension()); Assert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals("MSR706", geoJson2.getProperties().get("Callsign")); Assert.assertEquals("37000", geoJson2.getProperties().get("Altitude")); Assert.assertEquals("487.345886", geoJson2.getProperties().get("GroundSpeed")); Assert.assertEquals("102.924118", geoJson2.getProperties().get("Track")); Assert.assertEquals(2, tuple6.getBoundingBox().getDimension()); Assert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals("AW119KX", geoJson3.getProperties().get("Callsign")); Assert.assertEquals("6500", geoJson3.getProperties().get("Altitude")); Assert.assertEquals("126.909416", geoJson3.getProperties().get("GroundSpeed")); Assert.assertEquals("300.808899", geoJson3.getProperties().get("Track")); Assert.assertEquals(2, tuple9.getBoundingBox().getDimension()); Assert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals("MSR706", geoJson4.getProperties().get("Callsign")); Assert.assertEquals("37010", geoJson4.getProperties().get("Altitude")); Assert.assertEquals("488.320587", geoJson4.getProperties().get("GroundSpeed")); Assert.assertEquals("102.897881", geoJson4.getProperties().get("Track")); Assert.assertEquals(2, tuple12.getBoundingBox().getDimension()); Assert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "public void testUnpackMultipleTuples() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}, {\"v3\", \"v4\"}, {\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\");\n results.expectTuple(\"vva\", \"vvb\", \"v3\", \"v4\");\n results.expectTuple(\"vva\", \"vvb\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3); \n }", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "Astro tuple(AstroArg args);", "public void testUnpackFromCorrectBag() throws InvalidAdviceException {\n Object[][] t1 = {{\"dsifji2oj\", \"23498ngnjs\"}};\n Object[][] t2 = {{\"dsfj9\", \"u1h32jbn4l1 '\"}};\n Object[][] t3 = {{\"24oi23n\", \"022l;'][ \"}};\n Object[][] t4 = {{\"0m0lkj34\", \"hh2h2n jds \"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(\"bag1\", t1).put(\"bag2\", t2).put(\"bag3\", t3).put(\"bag4\", t4);\n\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag1\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag2\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"u1h32jbn4l1 '\", \"dsfj9\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag3\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"022l;'][ \", \"24oi23n\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag4\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"hh2h2n jds \", \"0m0lkj34\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "TupleExpr createTupleExpr();", "public void testUnpackMultipleTuplesMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"b1_t1_v1\", \"b1_t1_v2\"}, {\"b1_t2_v1\", \"b1_t2_v2\"}, {\"b1_t3_v1\", \"b1_t3_v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"b2_t1_v1\", \"b2_t1_v2\"}, {\"b2_t2_v1\", \"b2_t2_v2\"}, {\"b2_t3_v1\", \"b2_t3_v2\"}});\n baggage.put(\"bag3\", new Object[][] {{\"b3_t1_v1\", \"b3_t1_v2\"}, {\"b3_t2_v1\", \"b3_t2_v2\"}, {\"b3_t3_v1\", \"b3_t3_v2\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n int expected = 3 * 3 * 3 * 3;\n for (int i = 0; i < expected; i++) {\n results.expectTuple(\"vva\");\n }\n results.check();\n assertTrue(\"Expect \"+expected+\" output tuple emitted\", results.emitted.size() == expected); \n }", "public void testUnpack() throws InvalidAdviceException {\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag7\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag4\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"pb\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"23498ngnjs\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "private Tuples() {}", "TupleLiteralExp createTupleLiteralExp();", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\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(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.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}", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\n }", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "TupleTypeRule createTupleTypeRule();", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "TupleLiteralPart createTupleLiteralPart();", "public void testUnpackNoValuesMulti() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}, {}, {}, {}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 4 output tuples emitted\", results.emitted.size() == 4);\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n public void testDoubleNestedArray() {\n TupleMetadata schema = new SchemaBuilder()\n .add(\"a\", MinorType.INT)\n .addMapArray(\"m1\")\n .add(\"b\", MinorType.INT)\n .addMapArray(\"m2\")\n .add(\"c\", MinorType.INT)\n .addArray(\"d\", MinorType.VARCHAR)\n .resumeMap()\n .resumeSchema()\n .buildSchema();\n ResultSetLoaderImpl.ResultSetOptions options = new ResultSetOptionBuilder()\n .readerSchema(schema)\n .build();\n ResultSetLoader rsLoader = new ResultSetLoaderImpl(fixture.allocator(), options);\n RowSetLoader rootWriter = rsLoader.writer();\n rsLoader.startBatch();\n\n ScalarWriter aWriter = rootWriter.scalar(\"a\");\n ArrayWriter a1Writer = rootWriter.array(\"m1\");\n TupleWriter m1Writer = a1Writer.tuple();\n ScalarWriter bWriter = m1Writer.scalar(\"b\");\n ArrayWriter a2Writer = m1Writer.array(\"m2\");\n TupleWriter m2Writer = a2Writer.tuple();\n ScalarWriter cWriter = m2Writer.scalar(\"c\");\n ScalarWriter dWriter = m2Writer.array(\"d\").scalar();\n\n for (int i = 0; i < 5; i++) {\n rootWriter.start();\n aWriter.setInt(i);\n for (int j = 0; j < 4; j++) {\n int a1Key = i + 10 + j;\n bWriter.setInt(a1Key);\n for (int k = 0; k < 3; k++) {\n int a2Key = a1Key * 10 + k;\n cWriter.setInt(a2Key);\n for (int l = 0; l < 2; l++) {\n dWriter.setString(\"d-\" + (a2Key * 10 + l));\n }\n a2Writer.save();\n }\n a1Writer.save();\n }\n rootWriter.save();\n }\n\n RowSet results = fixture.wrap(rsLoader.harvest());\n RowSetReader reader = results.reader();\n\n ScalarReader aReader = reader.scalar(\"a\");\n ArrayReader a1Reader = reader.array(\"m1\");\n TupleReader m1Reader = a1Reader.tuple();\n ScalarReader bReader = m1Reader.scalar(\"b\");\n ArrayReader a2Reader = m1Reader.array(\"m2\");\n TupleReader m2Reader = a2Reader.tuple();\n ScalarReader cReader = m2Reader.scalar(\"c\");\n ArrayReader dArray = m2Reader.array(\"d\");\n ScalarReader dReader = dArray.scalar();\n\n for (int i = 0; i < 5; i++) {\n assertTrue(reader.next());\n assertEquals(i, aReader.getInt());\n for (int j = 0; j < 4; j++) {\n assertTrue(a1Reader.next());\n int a1Key = i + 10 + j;\n assertEquals(a1Key, bReader.getInt());\n for (int k = 0; k < 3; k++) {\n assertTrue(a2Reader.next());\n int a2Key = a1Key * 10 + k;\n assertEquals(a2Key, cReader.getInt());\n for (int l = 0; l < 2; l++) {\n assertTrue(dArray.next());\n assertEquals(\"d-\" + (a2Key * 10 + l), dReader.getString());\n }\n }\n }\n }\n rsLoader.close();\n }", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "@Test\n\tpublic void testBuild() throws HashUtilException {\n\n\t\tshort sh = 121;\n\t\tbyte b = 14;\n\t\tboolean[] bool1 = null;\n\t\tint[] int1 = null;\n\t\tdouble[] dob = null;\n\t\tString[] str = null;\n\t\tbyte[] byt = null;\n\t\tshort[] sho = null;\n\t\tlong[] lon = null;\n\t\tfloat[] flo = null;\n\t\tchar[] chr = null;\n\t\tObject obj = null;\n\t\tassertEquals(\n\t\t\t\t((((((((7919l * 7664345821815920749L) + 34) * 7664345821815920749L) * 7664345821815920749L) + 1)\n\t\t\t\t\t\t* 7664345821815920749L) + Double.doubleToLongBits(12.3)) * 7664345821815920749L)\n\t\t\t\t\t\t+ Arrays.asList(\"Ramesh\", \"Suresh\").hashCode(),\n\t\t\t\tnew HashUtility().append(34).append(obj).append(false).append(12.3)\n\t\t\t\t\t\t.append(Arrays.asList(\"Ramesh\", \"Suresh\")).build());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((23l * 45) + 123456789000l) * 45) + Float.floatToIntBits(2.453f)) * 45) + sh) * 45) + b) * 45)\n\t\t\t\t\t\t+ (long) 'r',\n\t\t\t\tnew HashUtility(23, 45).append(123456789000l).append(2.453f).append(sh).append(b).append('r').build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(str).append(int1).append(bool1).append(dob).build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(byt).append(sho).append(lon).append(flo).append(chr).build());\n\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "private TupleDesc generalTupleDesc(){\n \tType[] typeArr;\n \tString[] nameArr;\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tnameArr = new String[]{\"groupValue\", \"aggregateValue\"};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n }", "public void testUnpackNoValues() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "static Tuple wrap(Tuple init, long sign) throws ExecException {\n\t\tTuple tup = tf.newTuple(2);\n\t\ttup.set(0, init.get(0));\n\t\ttup.set(1, sign);\n\t\t\n\t\tDataBag bag = bf.newDefaultBag();\n\t\tbag.add(tup);\n\t\t\n\t\treturn tf.newTuple(bag);\n\t}", "HdbSequenceElements createHdbSequenceElements();", "public void testUnpackMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"v3\", \"v4\"}});\n baggage.put(\"bag3\", new Object[][] {{\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\");\n results.expectTuple(\"vva\", \"vvc\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\");\n results.expectTuple(\"vva\", \"vve\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3);\n }", "private XYPairs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "public void test17() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public boolean isGeneralTuple();", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "@Test\r\n public void test() {\r\n Random random = new Random(System.currentTimeMillis());\r\n Adouble val = Adouble.valueOf(10);\r\n validate(val);\r\n validateEqual(val, Adouble.valueOf(val.toDouble()));\r\n Adouble val2 = Adouble.valueOf(random.nextDouble());\r\n validate(val2);\r\n validateEqual(val2, Adouble.valueOf(val2.toDouble()));\r\n validateUnequal(val, val2);\r\n Alist list = new Alist().add(val);\r\n byte[] bytes = Aon.aonBytes(list);\r\n list = Aon.readAon(bytes).toList();\r\n validate(list.get(0));\r\n validateEqual(list.get(0), val);\r\n validateUnequal(list.get(0), val2);\r\n }", "@Test\n public void testBuild() {\n assertEquals(r1.build(new Position2D(21, 42), new Color(255, 0, 0),\n new Dimension2D(100, 20)), new Rectangle(100, 20, new Color(255, 0, 0),\n new Position2D(21, 42)));\n\n assertEquals(r1.build(new Position2D(-28, 0), new Color(255, 255, 255),\n new Dimension2D(4, 0)), new Rectangle(4, 0, new Color(255, 255, 255),\n new Position2D(-28, 0)));\n }", "public TupleDesc getTupleDesc();", "public Tuple(TupleDesc td) {\n\t\t\tfields = new ArrayList<Field>();\n\t\t\ttupleDesc = td;\n\t\t\n\t\t// some code goes here\n\t\t// 2- assign td and initialize the array of fields\n\n\t}", "@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}", "private OTRGroupElementQuadMsg computeTuple(byte sigma, BigInteger alpha, BigInteger beta, GroupElement gAlpha) {\n\t\t//Sample random value gamma in [0, . . . , q-1]\n\t\tBigInteger gamma = BigIntegers.createRandomInRange(BigInteger.ZERO, qMinusOne, random);\n\t\t\n\t\t//Calculates g^beta, g^(alpha*beta), g^gamma.\n\t\tGroupElement g = dlog.getGenerator();\n\t\tGroupElement gBeta = dlog.exponentiate(g, beta);\n\t\tGroupElement gGamma = dlog.exponentiate(g, gamma);\n\t\tGroupElement gAlphaBeta = dlog.exponentiate(g, alpha.multiply(beta));\n\t\t\n\t\t//Create the tuple.\n\t\tif (sigma == 0){\n\t\t\treturn new OTRGroupElementQuadMsg(gAlpha.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gBeta.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gAlphaBeta.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gGamma.generateSendableData());\n\t\t}\n\t\telse {\n\t\t\treturn new OTRGroupElementQuadMsg(gAlpha.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gBeta.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gGamma.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gAlphaBeta.generateSendableData());\n\t\t}\n\t}", "public void test18() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public void testUnpackNothing() throws InvalidAdviceException {\n {\n String bag = \"e\";\n Object[][] packedTuple = {};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.check();\n assertTrue(\"Expect 0 output tuples\", results.emitted.size() == 0);\n }\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 0 output tuples\", results.emitted.size() == 0);\n }\n }", "@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 }", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "@SafeVarargs\n\tpublic static <R> Tuple<R> construct(R... data) {\n\t\tLinkedList<R> list = new LinkedList<>();\n\t\tfor (R element : data) {\n\t\t\tlist.add(element);\n\t\t}\n\n\t\treturn new Tuple<>(list);\n\t}", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "@Test\n void buildWaredDrobeTest() {\n WaredDrobeBuilder waredDrobeBuilder = new WaredDrobeBuilder();\n WaredDrobe waredDrobe = waredDrobeBuilder.build();\n List<String>partlist=waredDrobe.getParts();\n\n List<String>steps = Arrays.asList(\"bottom\",\"side\",\"side\",\"back\",\"top\",\"shelf\",\"shelf\",\"shelf\",\"shelf\",\n \"shelf\",\"shelf\",\"shelf\",\"shelf\",\"door\",\"door\");\n assertEquals(steps,partlist);\n\n\n\n\n }", "public void test19() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public Tuple(String attrib_names [], String attrib_types [], String attrib_values []) {\n\n\ttuple_counter++;\n\tnum_attribs = attrib_types.length;\n\tmy_data = new HashMap();\n\t\n\tfor (int i = 0; i < num_attribs; i++) {\n\ttry {\n\t Class cl = Class.forName(attrib_types[i]);\n\t Constructor constructor =\n\t\tcl.getConstructor(new Class[] { String.class });\n\t my_data.put ( attrib_names[i],\n\t\t(ColumnValue) constructor.newInstance\n\t\t(new Object[] { attrib_values[i] }));\n\t}\n\tcatch (java.lang.ClassNotFoundException e)\n\t { System.out.println(e.toString()); } \n\tcatch (java.lang.NoSuchMethodException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.reflect.InvocationTargetException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.InstantiationException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.IllegalAccessException e)\n\t { System.out.println(e.toString()); }\n\n\t}\n }", "private AABB(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Test\n public void youCanCreateALoopFromPlatesFromACount() {\n // inputs\n VertexLabel runningTotalLabel = new VertexLabel(\"runningTotal\");\n VertexLabel stillLoopingLabel = new VertexLabel(\"stillLooping\");\n VertexLabel valueInLabel = new VertexLabel(\"valueIn\");\n\n // intermediate\n VertexLabel oneLabel = new VertexLabel(\"one\");\n VertexLabel conditionLabel = new VertexLabel(\"condition\");\n\n // outputs\n VertexLabel plusLabel = new VertexLabel(\"plus\");\n VertexLabel loopLabel = new VertexLabel(\"loop\");\n VertexLabel valueOutLabel = new VertexLabel(\"valueOut\");\n\n // base case\n DoubleVertex initialSum = ConstantVertex.of(0.);\n BooleanVertex tru = ConstantVertex.of(true);\n DoubleVertex initialValue = ConstantVertex.of(0.);\n\n int maximumLoopLength = 100;\n\n Plates plates = new PlateBuilder<Integer>()\n .withInitialState(SimpleVertexDictionary.backedBy(ImmutableMap.of(\n plusLabel, initialSum,\n loopLabel, tru,\n valueOutLabel, initialValue)))\n .withTransitionMapping(ImmutableMap.of(\n runningTotalLabel, plusLabel,\n stillLoopingLabel, loopLabel,\n valueInLabel, valueOutLabel\n ))\n .count(maximumLoopLength)\n .withFactory((plate) -> {\n // inputs\n DoubleVertex runningTotal = new DoubleProxyVertex(runningTotalLabel);\n BooleanVertex stillLooping = new BooleanProxyVertex(stillLoopingLabel);\n DoubleVertex valueIn = new DoubleProxyVertex(valueInLabel);\n plate.addAll(ImmutableSet.of(runningTotal, stillLooping, valueIn));\n\n // intermediate\n DoubleVertex one = ConstantVertex.of(1.);\n BooleanVertex condition = new BernoulliVertex(0.5);\n plate.add(oneLabel, one);\n plate.add(conditionLabel, condition);\n\n // outputs\n DoubleVertex plus = runningTotal.plus(one);\n BooleanVertex loopAgain = stillLooping.and(condition);\n DoubleVertex result = If.isTrue(loopAgain).then(plus).orElse(valueIn);\n plate.add(plusLabel, plus);\n plate.add(loopLabel, loopAgain);\n plate.add(valueOutLabel, result);\n })\n .build();\n\n\n DoubleVertex previousPlus = initialSum;\n BooleanVertex previousLoop = tru;\n DoubleVertex previousValueOut = initialValue;\n\n for (Plate plate : plates) {\n DoubleVertex runningTotal = plate.get(runningTotalLabel);\n BooleanVertex stillLooping = plate.get(stillLoopingLabel);\n DoubleVertex valueIn = plate.get(valueInLabel);\n\n DoubleVertex one = plate.get(oneLabel);\n BooleanVertex condition = plate.get(conditionLabel);\n\n DoubleVertex plus = plate.get(plusLabel);\n BooleanVertex loop = plate.get(loopLabel);\n DoubleVertex valueOut = plate.get(valueOutLabel);\n\n assertThat(runningTotal.getParents(), contains(previousPlus));\n assertThat(stillLooping.getParents(), contains(previousLoop));\n assertThat(valueIn.getParents(), contains(previousValueOut));\n\n assertThat(one.getParents(), is(empty()));\n assertThat(condition, hasParents(contains(allOf(\n hasNoLabel(),\n instanceOf(ConstantDoubleVertex.class)\n ))));\n\n assertThat(plus.getParents(), containsInAnyOrder(runningTotal, one));\n assertThat(loop.getParents(), containsInAnyOrder(condition, stillLooping));\n assertThat(valueOut.getParents(), containsInAnyOrder(loop, valueIn, plus));\n\n previousPlus = plus;\n previousLoop = loop;\n previousValueOut = valueOut;\n }\n\n\n DoubleVertex output = plates.asList().get(maximumLoopLength - 1).get(valueOutLabel);\n\n for (int firstFailure : new int[]{0, 1, 2, 10, 99}) {\n for (Plate plate : plates) {\n BooleanVertex condition = plate.get(conditionLabel);\n condition.setAndCascade(true);\n }\n BooleanVertex condition = plates.asList().get(firstFailure).get(conditionLabel);\n condition.setAndCascade(false);\n Double expectedOutput = new Double(firstFailure);\n assertThat(output, VertexMatchers.hasValue(expectedOutput));\n }\n }", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "@Test\n\tpublic void buildTest() {\n\t\tXMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();\n\n\t\t// Get the assertion builder based on the assertion element name\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tSAMLObjectBuilder<Assertion> builder = (SAMLObjectBuilder<Assertion>) builderFactory\n\t\t\t\t.getBuilder(Assertion.DEFAULT_ELEMENT_NAME);\n\n\t\t// Create the assertion\n\t\tAssertion assertion = builder.buildObject();\n\n\t}", "BElementStructure createBElementStructure();", "@Test\n public void testAddCity_3args02() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"cityTest\";\n Pair coordenates = new Pair(41.200000, -8.000000);\n int points = 30;\n\n boolean result = sn10.addCity(coordenates, cityName, points);\n assertTrue(result);\n }", "@Test\n public void test() {\n TestUtil.testEquals(new Object[][]{\n {\"rpl\", \"abc\", new int[]{3, 5, 9}},\n {\"gfd\", \"aaa\", new int[]{1, 2, 3}}\n });\n }", "@Override\r\n\tprotected void createExpected() \r\n\t{\r\n\t\texpected = new ArrayList<IIndividual>();\r\n\t\texpected.add(new BinArrayIndividual(new byte [] {1, 0, 0, 0, 1, 1}));\t\t\r\n\t}", "@Test\n @Category(SlowTest.class)\n public void testAddData() throws Exception {\n geoService.setGeoDomainObjectGenerator( new GeoDomainObjectGeneratorLocal( this.getTestFileBasePath() ) );\n\n try {\n // RNA-seq data.\n Collection<?> results = geoService.fetchAndLoad( \"GSE37646\", false, true, false );\n ee = ( ExpressionExperiment ) results.iterator().next();\n } catch ( AlreadyExistsInSystemException e ) {\n ee = ( ( Collection<ExpressionExperiment> ) e.getData() ).iterator().next();\n assumeNoException( \"Test skipped because GSE37646 was not removed from the system prior to test\", e );\n }\n\n ee = experimentService.thawLite( ee );\n\n List<BioAssay> bioAssays = new ArrayList<>( ee.getBioAssays() );\n assertEquals( 31, bioAssays.size() );\n\n List<BioMaterial> bms = new ArrayList<>();\n for ( BioAssay ba : bioAssays ) {\n\n bms.add( ba.getSampleUsed() );\n }\n\n targetArrayDesign = this.getTestPersistentArrayDesign( 100, true );\n\n DoubleMatrix<CompositeSequence, BioMaterial> rawMatrix = new DenseDoubleMatrix<>(\n targetArrayDesign.getCompositeSequences().size(), bms.size() );\n /*\n * make up some fake data on another platform, and match it to those samples\n */\n for ( int i = 0; i < rawMatrix.rows(); i++ ) {\n for ( int j = 0; j < rawMatrix.columns(); j++ ) {\n rawMatrix.set( i, j, ( i + 1 ) * ( j + 1 ) * Math.random() / 100.0 );\n }\n }\n\n List<CompositeSequence> probes = new ArrayList<>( targetArrayDesign.getCompositeSequences() );\n\n rawMatrix.setRowNames( probes );\n rawMatrix.setColumnNames( bms );\n\n QuantitationType qt = this.makeQt( true );\n\n ExpressionDataDoubleMatrix data = new ExpressionDataDoubleMatrix( ee, qt, rawMatrix );\n\n assertNotNull( data.getBestBioAssayDimension() );\n assertEquals( rawMatrix.columns(), data.getBestBioAssayDimension().getBioAssays().size() );\n assertEquals( probes.size(), data.getMatrix().rows() );\n\n /*\n * Replace it.\n */\n ee = dataUpdater.replaceData( ee, targetArrayDesign, data );\n\n for ( BioAssay ba : ee.getBioAssays() ) {\n assertEquals( targetArrayDesign, ba.getArrayDesignUsed() );\n }\n\n ee = experimentService.thaw( ee );\n\n Set<QuantitationType> qts = ee.getRawExpressionDataVectors().stream()\n .map( RawExpressionDataVector::getQuantitationType )\n .collect( Collectors.toSet() );\n assertTrue( ee.getQuantitationTypes().containsAll( qts ) );\n assertEquals( 2, ee.getQuantitationTypes().size() );\n\n for ( BioAssay ba : ee.getBioAssays() ) {\n assertEquals( targetArrayDesign, ba.getArrayDesignUsed() );\n }\n\n assertEquals( 100, ee.getRawExpressionDataVectors().size() );\n\n for ( RawExpressionDataVector v : ee.getRawExpressionDataVectors() ) {\n assertTrue( v.getQuantitationType().getIsPreferred() );\n }\n\n assertEquals( 100, ee.getProcessedExpressionDataVectors().size() );\n\n Collection<DoubleVectorValueObject> processedDataArrays = dataVectorService.getProcessedDataArrays( ee );\n\n for ( DoubleVectorValueObject v : processedDataArrays ) {\n assertEquals( 31, v.getBioAssays().size() );\n }\n\n /*\n * Test adding data (non-preferred)\n */\n qt = this.makeQt( false );\n ExpressionDataDoubleMatrix moreData = new ExpressionDataDoubleMatrix( ee, qt, rawMatrix );\n ee = dataUpdater.addData( ee, targetArrayDesign, moreData );\n\n ee = experimentService.thaw( ee );\n try {\n // add preferred data twice.\n dataUpdater.addData( ee, targetArrayDesign, data );\n fail( \"Should have gotten an exception\" );\n } catch ( IllegalArgumentException e ) {\n // okay.\n }\n }", "@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n String string0 = \"iody27>B{<G\";\n NucleotideSequence nucleotideSequence0 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(nucleotideSequence0).getLength();\n QualitySequence qualitySequence0 = mock(QualitySequence.class, new ViolatedAssumptionAnswer());\n NucleotideSequence nucleotideSequence1 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(nucleotideSequence1).getLength();\n ArtificialPhd artificialPhd0 = ArtificialPhd.createNewbler454Phd(\"iody27>B{<G\", nucleotideSequence1, qualitySequence0);\n Map<String, String> map0 = artificialPhd0.getComments();\n ArtificialPhd artificialPhd1 = ArtificialPhd.createNewbler454Phd(\"iody27>B{<G\", nucleotideSequence0, qualitySequence0, map0);\n PhdBuilder phdBuilder0 = null;\n try {\n phdBuilder0 = new PhdBuilder(artificialPhd1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // initial capacity should be > 0 :0\n //\n verifyException(\"org.jcvi.jillion.internal.core.util.GrowableShortArray\", e);\n }\n }", "@SuppressWarnings(\"unchecked\")\n void initialize()\n {\n sampleNumbers = new Pair[5];\n sampleNumbers[0] = new Pair<Number>(\"0.0\", 0.0);\n sampleNumbers[1] = new Pair<Number>(\"12E-5\", Double.parseDouble(\"1.2E-4\"));\n sampleNumbers[2] = new Pair<Number>(\"912381238.0\", 912381238.0);\n sampleNumbers[3] =\n new Pair<Number>(\"-56.712E11\", Double.parseDouble(\"-56.712E11\"));\n sampleNumbers[4] = new Pair<Number>(\"-0.5\", -0.5);\n\n sampleStrings = new Pair[5];\n sampleStrings[0] = new Pair<String>(\"\\\"a,b,c,d\\\\\\\\\\\\\\\"\\\"\", \"a,b,c,d\\\\\\\"\");\n sampleStrings[1] = new Pair<String>(\"\\\"\\\\\\\"ABC\\\\\\\"\\\"\", \"\\\"ABC\\\"\");\n sampleStrings[2] =\n new Pair<String>(\"\\\"[]+=-!@#$%^&*(){]\\\"\", \"[]+=-!@#$%^&*(){]\");\n sampleStrings[3] = new Pair<String>(\"\\\"{::}:,\\t\\n\\\"\", \"{::}:,\\t\\n\");\n sampleStrings[4] =\n new Pair<String>(\"\\\"\\\\u00fb\\\\u00D8\\\\u006a\\\"\", \"\\u00FBØj\");\n\n specialValues = new Pair[2];\n specialValues[0] = new Pair<Object>(\"true\", true);\n specialValues[1] = new Pair<Object>(\"false\", false);\n // specialValues[2] = new Pair<Object>(\"null\", null);\n\n sampleArrays = new Pair[5];\n for (int i = 0; i < sampleArrays.length; i++)\n {\n sampleArrays[i] = new Pair<ArrayList<Object>>(\"[]\", new ArrayList<>());\n }\n\n sampleObjects = new Pair[5];\n for (int i = 0; i < sampleObjects.length; i++)\n {\n sampleObjects[i] =\n new Pair<HashMap<String, Object>>(\"{}\",\n new HashMap<String, Object>());\n }\n }", "public Tuple2() {\n }", "private XYPair(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Test\n public void testSquare()\n {\n testSquareConstructor(10, 20);\n testSquareConstructor(30, 40);\n }", "@Test\n public void testLaenge() {\n System.out.println(\"---laenge---\");\n //Test1: An empty ADTList has a length of 0\n ADTList instance = ADTList.create();\n int expResult = 0;\n int result = instance.laenge();\n assertEquals(expResult, result);\n System.out.println(\"Test1 OK\");\n \n\n //Test2: An ADTList with 2 Elements has a length of 2\n ADTList instance2 = ADTList.create();\n instance2.insert(4,1);\n instance2.insert(3,2);\n int expResult2 = 2;\n int result2 = instance2.laenge();\n assertEquals(expResult2, result2);\n System.out.println(\"Test2 OK\");\n \n //Test3: Method is working after expanding the internally used arrays (assuming an initial array size of 5)\n ADTList instance3 = createTestADTListIns(6);\n int expResult3 = 6;\n int result3 = instance3.laenge();\n assertEquals(expResult3, result3);\n System.out.println(\"Test3 OK\");\n }", "@Test\n public void testComplexCompositeDataExtractor() throws Exception {\n final String[] compositePropertyNames = new String[2];\n compositePropertyNames[0] = \"Count\";\n compositePropertyNames[1] = \"Latency\";\n\n final String[] compositePropertyDescriptions = new String[2];\n compositePropertyDescriptions[0] = \"Count of requests received for the command\";\n compositePropertyDescriptions[1] = \"Average Time Taken to process the command\";\n\n final OpenType[] compositePropertyTypes = new OpenType[2];\n compositePropertyTypes[0] = SimpleType.LONG;\n compositePropertyTypes[1] = SimpleType.FLOAT;\n\n final CompositeType compositeType =\n new CompositeType(\"Command Stats\", \"Stats for each command\",\n compositePropertyNames, compositePropertyDescriptions,\n compositePropertyTypes);\n\n final Object[] loginCompositeValues = new Object[compositePropertyNames.length];\n loginCompositeValues[0] = new Long(10);\n loginCompositeValues[1] = new Float(38.34f);\n\n final Object[] logoutCompositeValues = new Object[compositePropertyNames.length];\n logoutCompositeValues[0] = new Long(30);\n logoutCompositeValues[1] = new Float(26.09f);\n\n final Object[] capaCompositeValues = new Object[compositePropertyNames.length];\n capaCompositeValues[0] = new Long(89);\n capaCompositeValues[1] = new Float(103.09f);\n\n final String[] complexCompositePropertyNames = new String[3];\n complexCompositePropertyNames[0] = \"Login\";\n complexCompositePropertyNames[1] = \"Logout\";\n complexCompositePropertyNames[2] = \"Capability\";\n\n CompositeData[] complexDataValues = new CompositeData[complexCompositePropertyNames.length];\n complexDataValues[0] =\n new CompositeDataSupport(compositeType, compositePropertyNames, loginCompositeValues);\n complexDataValues[1] =\n new CompositeDataSupport(compositeType, compositePropertyNames, logoutCompositeValues);\n complexDataValues[2] =\n new CompositeDataSupport(compositeType, compositePropertyNames, capaCompositeValues);\n\n final OpenType[] complexCompositePropertyTypes = new OpenType[3];\n complexCompositePropertyTypes[0] = compositeType;\n complexCompositePropertyTypes[1] = compositeType;\n complexCompositePropertyTypes[2] = compositeType;\n\n final String[] complexCompositePropertyDescriptions = new String[3];\n complexCompositePropertyDescriptions[0] =\n \"Command Stats for \" + complexCompositePropertyNames[0];\n complexCompositePropertyDescriptions[1] =\n \"Command Stats for \" + complexCompositePropertyNames[1];\n complexCompositePropertyDescriptions[2] =\n \"Command Stats for \" + complexCompositePropertyNames[2];\n\n final CompositeType complexCompositeType =\n new CompositeType(\"Commands\", \"Stats for all commands\",\n complexCompositePropertyNames, complexCompositePropertyDescriptions,\n complexCompositePropertyTypes);\n\n CompositeData complexData =\n new CompositeDataSupport(complexCompositeType, complexCompositePropertyNames,\n complexDataValues);\n\n ObjectToJsonConverter jsonConverter = new ObjectToJsonConverter();\n JsonElement jsonElement = jsonConverter.extractObject(complexData);\n Assert.assertNotNull(jsonElement);\n\n JsonElement capability = jsonElement.getAsJsonObject().get(\"Capability\");\n Assert.assertNotNull(capability);\n JsonElement count = capability.getAsJsonObject().get(\"Count\");\n Assert.assertNotNull(count);\n Assert.assertEquals(count.getAsLong(), 89);\n JsonElement latency = capability.getAsJsonObject().get(\"Latency\");\n Assert.assertNotNull(latency);\n Assert.assertEquals(latency.getAsFloat(), 103.09f);\n\n JsonElement login = jsonElement.getAsJsonObject().get(\"Login\");\n Assert.assertNotNull(login);\n count = login.getAsJsonObject().get(\"Count\");\n Assert.assertNotNull(count);\n Assert.assertEquals(count.getAsLong(), 10);\n latency = login.getAsJsonObject().get(\"Latency\");\n Assert.assertNotNull(latency);\n Assert.assertEquals(latency.getAsFloat(), 38.34f);\n\n JsonElement logout = jsonElement.getAsJsonObject().get(\"Logout\");\n Assert.assertNotNull(logout);\n count = logout.getAsJsonObject().get(\"Count\");\n Assert.assertNotNull(count);\n Assert.assertEquals(count.getAsLong(), 30);\n latency = logout.getAsJsonObject().get(\"Latency\");\n Assert.assertNotNull(latency);\n Assert.assertEquals(latency.getAsFloat(), 26.09f);\n }", "private static void buildSquare(Matrix4f matrix, BufferBuilder builder, int x1, int x2, int y1, int y2, int z, float u1, float u2, float v1, float v2) {\n builder.pos(matrix, x1, y2, z).tex(u1, v2).endVertex();\n builder.pos(matrix, x2, y2, z).tex(u2, v2).endVertex();\n builder.pos(matrix, x2, y1, z).tex(u2, v1).endVertex();\n builder.pos(matrix, x1, y1, z).tex(u1, v1).endVertex();\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 void appendSwitchedTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{1}||{0}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(2, 4)),\n new BindWithPos(bindName2, String.class, List.of(1, 3)));\n }", "@Test\n public void testAddCase2b()\n {\n RedBlackTree<Integer> tree = new RedBlackTree<Integer>();\n tree.add(1);\n tree.add(2);\n assert(\"[b:1]\\n[r:2]\\n\".equals(tree.toString()));\n }", "@Test\n public void testConstruction() {\n System.out.println(\"testConstruction\");\n OutputLiteralDataDescription desc = new OutputLiteralDataDescription();\n desc.setIdentifier(\"aabb\");\n desc.setTitle(\"aabb\");\n desc.setAbstract(\"aabb's abstract\");\n desc.setType(\"xs:string\");\n \n OutputDescriptionType description = desc.toOutputDescription();\n OutputLiteralDataDescription desc2 = new OutputLiteralDataDescription(description);\n assertEquals(desc, desc2);\n }", "private void buildBWTandTest(byte[] s, int nr , Alphabet alphabet) {\n if (nr == 11) {\n System.out.println();\n }\n Sequences sequence = Sequences.createEmptySequencesInMemory();\n try {\n sequence.addSequence(ByteBuffer.wrap(s));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n final SuffixTrayBuilder stb = new SuffixTrayBuilder(sequence, alphabet, \"suffix\");\n stb.build(\"bothLR\"); // WARNING: change the method and you must change the type cast in the\n // next line!\n assert (stb.getSuffixDLL() instanceof SuffixXorDLL);\n final SuffixXorDLL suffixDLL = (SuffixXorDLL) stb.getSuffixDLL(); // type cast is okay\n // because I used method\n // 'bothLR' to build the\n // list\n\n // test index\n bwt(s);\n BWTBuilder.BWT bwt = BWTBuilder.build(suffixDLL);\n BWTIndex index = BWTIndexBuilder.build(bwt.bwt, bwt.sampledSuffixArray);\n for (int i = -128; i < 128; i++) {\n assertEquals(String.format(\n \"[Test %d] Array 'c' differs at position %s (expected: %s - actual: %s)\", nr, i,\n c[i + 128], index.getFirstIndexPosition((byte) i)), c[i + 128],\n index.getFirstIndexPosition((byte) i));\n }\n \n if (nr == 11) {\n System.out.println(Arrays.toString(s));\n for (int i = 0; i < e.length; i++) {\n System.out.print(index.getCharacterAtIndexPosition(i));\n }\n System.out.println();\n }\n\n for (int i = 0; i < e.length; i++) {\n assertEquals(String.format(\n \"[Test %d] Array 'e' differs at position %s (expected: %s - actual: %s)\", nr, i,\n e[i], index.getCharacterAtIndexPosition(i)), e[i],\n index.getCharacterAtIndexPosition(i));\n }\n \n// System.out.println(Arrays.toString(e));\n// for (int i = 0; i < el.length; i++) {\n// System.out.print(index.getSuccedingIndexPosition(i) + \" \");\n// }\n// System.out.println();\n\n for (int i = 0; i < el.length; i++) {\n assertEquals(String.format(\n \"[Test %d] Array 'el' differs at position %s (expected: %s - actual: %s)\", nr, i,\n el[i], index.getSuccedingIndexPosition(i)), el[i],\n index.getSuccedingIndexPosition(i));\n }\n for (int i = 0; i < e.length; i++) {\n int sequencePos = index.map2text(i);\n assertEquals(\n String.format(\n \"[Test %d] Wrong mapping to text at index position %s (index.getSuccedingIndexPosition(i) = %d)\",\n nr, i, sequencePos), index.getCharacterAtIndexPosition(i),\n sequence.array()[sequencePos]);\n }\n }", "public static void enter_values(TupleTagBasedEncoder<?> encoder) {\n encoder.addEntryT(super_tag_1, bool_test_tag, bool_test_value);\n encoder.addEntryT(super_tag_1,\"confuse???123123\", 1234123+\"WeirdTag ValueSwear\");\n encoder.addEntryT(super_tag_2, str_test_tag, str_test_value);\n encoder.addEntryT(super_tag_1, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_1, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_1, int_test_tag, int_test_value);\n encoder.addEntryT(super_tag_4, \"WeirdTag confuse\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_2, \"confuse???\", 1234123+\"WeirdTagVa lueSwear\");\n encoder.addEntryT(super_tag_2, weird_long_tag, weird_long_value);\n encoder.addEntryT(super_tag_4, empty_tag_test_tag, empty_tag_test_value);\n encoder.addEntryT(super_tag_2, empty_val_test_tag, empty_val_test_value);\n encoder.addEntryT(super_tag_2, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_4, empty_strarr_test_tag, empty_strarr_test_value); //empty is not written into the system.\n encoder.addEntryT(super_tag_2, strarr_test_tag, strarr_test_value);\n encoder.addEntryT(super_tag_2, empty_intarr_test_tag, empty_intarr_test_value); //empty is not written into the system.\n encoder.addEntryT(super_tag_4, intarr_test_tag, intarr_test_value);\n encoder.addEntryT(super_tag_3, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_2, strarr2d_test_tag, strarr2d_test_value);\n encoder.addEntryT(super_tag_4, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n }", "@Test\n public void stringToNestedArrayTest(){\n \tString[][] testArr = sa.stringToNestedArray(sample);\n \t\n \t//Check the length of the array\n assertTrue(sa.stringToNestedArray(sample).length == 3);\n \n // Check the length of each nested array\n for (String[] arr:sa.stringToNestedArray(sample)) {\n \tassertTrue(arr.length == 3);\n }\n \n //Confirm the presence of the word in the nested array\n assertTrue(Arrays.asList(testArr[1]).contains(\"triangle\"));\n // CAN DO USEING JUST LISTS/ARRAYLIST!!!, DONT NEED TO CONVERT TO LIST\n }", "public abstract T getTuple(int aPosition);", "@Test\r\n public void testDataBuilder_ValidInit(){\r\n \tDataInitializer dataBuild = DataInitializer.getInstance();\r\n \tdataBuild.initValidComputerParts();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPUs: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPUs: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSUs: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n }", "public void testConstructorWithMultiDimensionSimpleTypeArray() throws Exception {\r\n root.addChild(createArray(\"array1\", TYPE_INT, \"2\", \"{{0,1}, {2,3}}\"));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification array = specificationFactory.getObjectSpecification(\"array1\", null);\r\n\r\n assertEquals(\"SpecType should be array.\", ObjectSpecification.ARRAY_SPECIFICATION, array\r\n .getSpecType());\r\n assertNull(\"Identifier should be null.\", array.getIdentifier());\r\n assertEquals(\"Type should be 'int'.\", TYPE_INT, array.getType());\r\n assertEquals(\"Dimension should be 2.\", 2, array.getDimension());\r\n\r\n Object[] array1 = array.getParameters();\r\n Object[] subArray1 = (Object[]) array1[0];\r\n Object[] subArray2 = (Object[]) array1[1];\r\n\r\n ObjectSpecification[] values = {(ObjectSpecification) subArray1[0],\r\n (ObjectSpecification) subArray1[1], (ObjectSpecification) subArray2[0],\r\n (ObjectSpecification) subArray2[1]};\r\n\r\n assertEquals(\"Array should have 2 elements.\", 2, array1.length);\r\n assertEquals(\"Array[0] should have 2 elements.\", 2, subArray1.length);\r\n assertEquals(\"Array[1] should have 2 elements.\", 2, subArray2.length);\r\n\r\n for (int i = 0; i < 4; i++) {\r\n assertEquals(\"SpecType of array elements should be simple.\",\r\n ObjectSpecification.SIMPLE_SPECIFICATION, values[i].getSpecType());\r\n assertEquals(\"Elements should be 'int'.\", TYPE_INT, values[i].getType());\r\n assertEquals(\"Wrong element value.\", (String) (\"\" + i), values[i].getValue());\r\n }\r\n }", "public void testUnpackNothingMulti() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}});\n baggage.put(\"bag2\", new Object[][] {});\n baggage.put(\"bag3\", new Object[][] {{\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n results.check();\n assertTrue(\"Expect 0 output tuple emitted\", results.emitted.size() == 0);\n }", "B database(S database);", "public Tuple(Loyalty... c)\r\n\t\t{\r\n\t\t\tsuper(Arrays.asList(c));\r\n\t\t}", "public TupleDesc() {\n columns = new ArrayList<>();\n }", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "@Test\r\n public void testCreateConcatenatedTour_EmptyPlusOne() {\r\n Tour tourA = new Tour(new int[][]{});\r\n Tour tourB = new Tour(new int[][]{{2, 2}});\r\n Tour expected = new Tour(new int[][]{{2, 2}}); \r\n Tour result = tourA.createConcatenatedTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "public static void main(String[] args) {\n\t\tSquarelotron test = makeSquarelotron(new int[] {0,1,2,101});\n\t\tSystem.out.println(test.toString());\n\t\t//tests one that should be created\n\t\tSquarelotron test2 = makeSquarelotron(new int[] {0,1,2,3});\n\t\tSystem.out.println(test2.toString());\n\t\t//tests for too long\n\t\tSquarelotron test3 = makeSquarelotron(new int[] {0,1,2,3,5});\n\t\tSystem.out.println(test3.toString());\n\t\t\n\t}", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "T2 build();", "BElement createBElement();", "@Test\r\n public void testCreateConcatenatedTour_TwoPlusOne() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}});\r\n Tour tourB = new Tour(new int[][]{{2, 2}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}}); \r\n Tour result = tourA.createConcatenatedTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }" ]
[ "0.74835503", "0.7423203", "0.6586801", "0.6403908", "0.6331261", "0.61956614", "0.60327524", "0.6022626", "0.60036427", "0.6003457", "0.59366167", "0.5923611", "0.5911536", "0.5843716", "0.5840235", "0.57710797", "0.57474774", "0.57253", "0.5629403", "0.5622894", "0.56046903", "0.5574824", "0.55683035", "0.54930454", "0.5467716", "0.5461755", "0.5439575", "0.54387313", "0.5393269", "0.53856355", "0.5378186", "0.53667164", "0.5350383", "0.5330918", "0.5287325", "0.52271813", "0.52110815", "0.52065754", "0.52039623", "0.51873076", "0.5183491", "0.51796716", "0.5148948", "0.51428705", "0.5121028", "0.51068056", "0.50998175", "0.50945234", "0.5084254", "0.50825757", "0.5074724", "0.50505966", "0.50266767", "0.50183743", "0.50109476", "0.5004866", "0.4989425", "0.49874207", "0.49849603", "0.49723136", "0.49514288", "0.49481422", "0.49368787", "0.49365285", "0.49123314", "0.48962933", "0.48946717", "0.4878333", "0.48696584", "0.48616552", "0.48582846", "0.48570195", "0.4849025", "0.48459947", "0.48377347", "0.48306775", "0.48262435", "0.4824157", "0.48132122", "0.48105478", "0.4808235", "0.48059073", "0.48053798", "0.479501", "0.4790748", "0.47866628", "0.47826377", "0.47768858", "0.47648624", "0.47561035", "0.4755852", "0.4752335", "0.47431043", "0.47386396", "0.47354528", "0.4734592", "0.4733226", "0.47331917", "0.47326025", "0.47322795" ]
0.7795727
0
Test ADSB tuple builder wrong order
@Test public void testADSBTupleBuilder2() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ADSB_2D); final Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3); final Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2); final Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1); final Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3); Assert.assertNull(tuple1); Assert.assertNull(tuple2); Assert.assertNull(tuple3); Assert.assertNotNull(tuple4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "public void testUnpackMultipleTuples() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}, {\"v3\", \"v4\"}, {\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\");\n results.expectTuple(\"vva\", \"vvb\", \"v3\", \"v4\");\n results.expectTuple(\"vva\", \"vvb\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3); \n }", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "public void testUnpackFromCorrectBag() throws InvalidAdviceException {\n Object[][] t1 = {{\"dsifji2oj\", \"23498ngnjs\"}};\n Object[][] t2 = {{\"dsfj9\", \"u1h32jbn4l1 '\"}};\n Object[][] t3 = {{\"24oi23n\", \"022l;'][ \"}};\n Object[][] t4 = {{\"0m0lkj34\", \"hh2h2n jds \"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(\"bag1\", t1).put(\"bag2\", t2).put(\"bag3\", t3).put(\"bag4\", t4);\n\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag1\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag2\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"u1h32jbn4l1 '\", \"dsfj9\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag3\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"022l;'][ \", \"24oi23n\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag4\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"hh2h2n jds \", \"0m0lkj34\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "public void testUnpackMultipleTuplesMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"b1_t1_v1\", \"b1_t1_v2\"}, {\"b1_t2_v1\", \"b1_t2_v2\"}, {\"b1_t3_v1\", \"b1_t3_v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"b2_t1_v1\", \"b2_t1_v2\"}, {\"b2_t2_v1\", \"b2_t2_v2\"}, {\"b2_t3_v1\", \"b2_t3_v2\"}});\n baggage.put(\"bag3\", new Object[][] {{\"b3_t1_v1\", \"b3_t1_v2\"}, {\"b3_t2_v1\", \"b3_t2_v2\"}, {\"b3_t3_v1\", \"b3_t3_v2\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n int expected = 3 * 3 * 3 * 3;\n for (int i = 0; i < expected; i++) {\n results.expectTuple(\"vva\");\n }\n results.check();\n assertTrue(\"Expect \"+expected+\" output tuple emitted\", results.emitted.size() == expected); \n }", "public void testUnpack() throws InvalidAdviceException {\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag7\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag4\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"pb\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"23498ngnjs\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "private Tuples() {}", "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\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(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.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}", "Astro tuple(AstroArg args);", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\n }", "@Test\n void appendSwitchedTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{1}||{0}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(2, 4)),\n new BindWithPos(bindName2, String.class, List.of(1, 3)));\n }", "public void testUnpackNoValuesMulti() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}, {}, {}, {}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 4 output tuples emitted\", results.emitted.size() == 4);\n }", "TupleExpr createTupleExpr();", "TupleLiteralExp createTupleLiteralExp();", "@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "static Tuple wrap(Tuple init, long sign) throws ExecException {\n\t\tTuple tup = tf.newTuple(2);\n\t\ttup.set(0, init.get(0));\n\t\ttup.set(1, sign);\n\t\t\n\t\tDataBag bag = bf.newDefaultBag();\n\t\tbag.add(tup);\n\t\t\n\t\treturn tf.newTuple(bag);\n\t}", "public void testUnpackMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"v3\", \"v4\"}});\n baggage.put(\"bag3\", new Object[][] {{\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\");\n results.expectTuple(\"vva\", \"vvc\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\");\n results.expectTuple(\"vva\", \"vve\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3);\n }", "public void testUnpackNoValues() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "HdbSequenceElements createHdbSequenceElements();", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "private TupleDesc generalTupleDesc(){\n \tType[] typeArr;\n \tString[] nameArr;\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tnameArr = new String[]{\"groupValue\", \"aggregateValue\"};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n }", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void test_getAndSet_ByIndex_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods _________________________________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", 0,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", 1,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // continuation primiative field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 2,\n 456, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 3,\n 789, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n\n\n\n // Object Continuation\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n\n // Test the Get & Set methods _________________________________________________________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 1,\n MPSymbols.byte$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyFooInner2_add36251() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n io.protostuff.Bar bar = new io.protostuff.Bar();\n bar.setSomeBaz(new io.protostuff.Baz());\n bars.add(bar);\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n io.protostuff.Foo foo = new io.protostuff.Foo();\n foo.setSomeBar(bars);\n foos.add(foo);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyFooInner2_add36251__16 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyFooInner2_add36251__16, 6);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }", "TupleLiteralPart createTupleLiteralPart();", "@Test\n\tpublic void testBuild() throws HashUtilException {\n\n\t\tshort sh = 121;\n\t\tbyte b = 14;\n\t\tboolean[] bool1 = null;\n\t\tint[] int1 = null;\n\t\tdouble[] dob = null;\n\t\tString[] str = null;\n\t\tbyte[] byt = null;\n\t\tshort[] sho = null;\n\t\tlong[] lon = null;\n\t\tfloat[] flo = null;\n\t\tchar[] chr = null;\n\t\tObject obj = null;\n\t\tassertEquals(\n\t\t\t\t((((((((7919l * 7664345821815920749L) + 34) * 7664345821815920749L) * 7664345821815920749L) + 1)\n\t\t\t\t\t\t* 7664345821815920749L) + Double.doubleToLongBits(12.3)) * 7664345821815920749L)\n\t\t\t\t\t\t+ Arrays.asList(\"Ramesh\", \"Suresh\").hashCode(),\n\t\t\t\tnew HashUtility().append(34).append(obj).append(false).append(12.3)\n\t\t\t\t\t\t.append(Arrays.asList(\"Ramesh\", \"Suresh\")).build());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((23l * 45) + 123456789000l) * 45) + Float.floatToIntBits(2.453f)) * 45) + sh) * 45) + b) * 45)\n\t\t\t\t\t\t+ (long) 'r',\n\t\t\t\tnew HashUtility(23, 45).append(123456789000l).append(2.453f).append(sh).append(b).append('r').build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(str).append(int1).append(bool1).append(dob).build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(byt).append(sho).append(lon).append(flo).append(chr).build());\n\n\t}", "@org.junit.Test(timeout = 10000)\n public void testEmptyBar_add5544() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(new io.protostuff.Bar());\n bars.add(new io.protostuff.Bar());\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyBar_add5544__9 = // MethodCallAdder\nwriteListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyBar_add5544__9, 3);\n writeListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Bar> parsedBars = parseListFrom(in, io.protostuff.SerializableObjects.bar.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedBars.size()) == (bars.size())));\n int i = 0;\n for (io.protostuff.Bar b : parsedBars)\n io.protostuff.SerializableObjects.assertEquals(bars.get((i++)), b);\n \n }", "TupleTypeRule createTupleTypeRule();", "@org.junit.Test(timeout = 10000)\n public void testEmptyBarInner_add15567() throws java.lang.Exception {\n io.protostuff.Bar bar = new io.protostuff.Bar();\n bar.setSomeBaz(new io.protostuff.Baz());\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(bar);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyBarInner_add15567__10 = // MethodCallAdder\nwriteListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyBarInner_add15567__10, 4);\n writeListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Bar> parsedBars = parseListFrom(in, io.protostuff.SerializableObjects.bar.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedBars.size()) == (bars.size())));\n int i = 0;\n for (io.protostuff.Bar b : parsedBars)\n io.protostuff.SerializableObjects.assertEquals(bars.get((i++)), b);\n \n }", "public static void enter_values(TupleTagBasedEncoder<?> encoder) {\n encoder.addEntryT(super_tag_1, bool_test_tag, bool_test_value);\n encoder.addEntryT(super_tag_1,\"confuse???123123\", 1234123+\"WeirdTag ValueSwear\");\n encoder.addEntryT(super_tag_2, str_test_tag, str_test_value);\n encoder.addEntryT(super_tag_1, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_1, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_1, int_test_tag, int_test_value);\n encoder.addEntryT(super_tag_4, \"WeirdTag confuse\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_2, \"confuse???\", 1234123+\"WeirdTagVa lueSwear\");\n encoder.addEntryT(super_tag_2, weird_long_tag, weird_long_value);\n encoder.addEntryT(super_tag_4, empty_tag_test_tag, empty_tag_test_value);\n encoder.addEntryT(super_tag_2, empty_val_test_tag, empty_val_test_value);\n encoder.addEntryT(super_tag_2, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_4, empty_strarr_test_tag, empty_strarr_test_value); //empty is not written into the system.\n encoder.addEntryT(super_tag_2, strarr_test_tag, strarr_test_value);\n encoder.addEntryT(super_tag_2, empty_intarr_test_tag, empty_intarr_test_value); //empty is not written into the system.\n encoder.addEntryT(super_tag_4, intarr_test_tag, intarr_test_value);\n encoder.addEntryT(super_tag_3, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_2, strarr2d_test_tag, strarr2d_test_value);\n encoder.addEntryT(super_tag_4, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n }", "public void testUnpackNothing() throws InvalidAdviceException {\n {\n String bag = \"e\";\n Object[][] packedTuple = {};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.check();\n assertTrue(\"Expect 0 output tuples\", results.emitted.size() == 0);\n }\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 0 output tuples\", results.emitted.size() == 0);\n }\n }", "@Test\n @Named(\"Error message\")\n @Order(8)\n public void _errorMessage() throws Exception {\n final Procedure1<Boolean> _function = new Procedure1<Boolean>() {\n public void apply(final Boolean it) {\n final Procedure1<UsingTablesSpecExample> _function = new Procedure1<UsingTablesSpecExample>() {\n public void apply(final UsingTablesSpecExample it) {\n int _plus = (it.value1 + it.value2);\n boolean _doubleArrow = Should.operator_doubleArrow(Integer.valueOf(_plus), Integer.valueOf(it.sum));\n Assert.assertTrue(\"\\nExpected value1 + value2 => sum but\"\n + \"\\n value1 + value2 is \" + new StringDescription().appendValue(Integer.valueOf(_plus)).toString()\n + \"\\n value1 is \" + new StringDescription().appendValue(it.value1).toString()\n + \"\\n value2 is \" + new StringDescription().appendValue(it.value2).toString()\n + \"\\n sum is \" + new StringDescription().appendValue(Integer.valueOf(it.sum)).toString() + \"\\n\", _doubleArrow);\n \n }\n };\n ExampleTableIterators.<UsingTablesSpecExample>forEach(UsingTablesSpec.this.example, _function);\n }\n };\n String _errorMessage = Helpers.errorMessage(_function);\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"example failed\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| value1 | value2 | sum |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| <1> | <2> | <3> | \\u2713\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| <4> | <5> | <7> | \\u2718 (1)\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| <7> | <8> | <14> | \\u2718 (2)\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"(1) java.lang.AssertionError: \");\n _builder.newLine();\n _builder.append(\"Expected value1 + value2 => sum but\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 + value2 is <9>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 is <4>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value2 is <5>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"sum is <7>\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"(2) java.lang.AssertionError: \");\n _builder.newLine();\n _builder.append(\"Expected value1 + value2 => sum but\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 + value2 is <15>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 is <7>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value2 is <8>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"sum is <14>\");\n Helpers.is(_errorMessage, _builder);\n }", "public void test17() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "@Test\n void buildWaredDrobeTest() {\n WaredDrobeBuilder waredDrobeBuilder = new WaredDrobeBuilder();\n WaredDrobe waredDrobe = waredDrobeBuilder.build();\n List<String>partlist=waredDrobe.getParts();\n\n List<String>steps = Arrays.asList(\"bottom\",\"side\",\"side\",\"back\",\"top\",\"shelf\",\"shelf\",\"shelf\",\"shelf\",\n \"shelf\",\"shelf\",\"shelf\",\"shelf\",\"door\",\"door\");\n assertEquals(steps,partlist);\n\n\n\n\n }", "@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 }", "@Test\r\n public void test() {\r\n Random random = new Random(System.currentTimeMillis());\r\n Adouble val = Adouble.valueOf(10);\r\n validate(val);\r\n validateEqual(val, Adouble.valueOf(val.toDouble()));\r\n Adouble val2 = Adouble.valueOf(random.nextDouble());\r\n validate(val2);\r\n validateEqual(val2, Adouble.valueOf(val2.toDouble()));\r\n validateUnequal(val, val2);\r\n Alist list = new Alist().add(val);\r\n byte[] bytes = Aon.aonBytes(list);\r\n list = Aon.readAon(bytes).toList();\r\n validate(list.get(0));\r\n validateEqual(list.get(0), val);\r\n validateUnequal(list.get(0), val2);\r\n }", "private XYPairs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void test18() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "@Test\n public void test_getAndSet_ByIndex_GenericMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n\n // Test the Get & Set methods & the Special Field-Value Get & Set methods - Object Type (string) _______________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n \"hello\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n (short)10, null, null, (short)-1001); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Continuation Field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 2,\n 11, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 3,\n 12, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Object Continuation ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n MPSymbols.int$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n }", "@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}", "@org.junit.Test(timeout = 10000)\n public void testEmptyFooInner_cf31700_failAssert7_add31989() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(new io.protostuff.Bar());\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n io.protostuff.Foo foo = new io.protostuff.Foo();\n foo.setSomeBar(bars);\n foos.add(foo);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyFooInner_cf31700_failAssert7_add31989__15 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyFooInner_cf31700_failAssert7_add31989__15, 4);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n // StatementAdderOnAssert create null value\n io.protostuff.DelimiterTest vc_7288 = (io.protostuff.DelimiterTest)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_7288);\n // StatementAdderMethod cloned existing statement\n vc_7288.testBaz();\n // MethodAssertGenerator build local variable\n Object o_26_0 = (parsedFoos.size()) == (foos.size());\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n org.junit.Assert.fail(\"testEmptyFooInner_cf31700 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyBar2_cf10132_failAssert6_add10324() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(new io.protostuff.Bar());\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyBar2_cf10132_failAssert6_add10324__9 = // MethodCallAdder\nwriteListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyBar2_cf10132_failAssert6_add10324__9, 2);\n writeListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Bar> parsedBars = parseListFrom(in, io.protostuff.SerializableObjects.bar.cachedSchema());\n // StatementAdderOnAssert create null value\n io.protostuff.DelimiterTest vc_2318 = (io.protostuff.DelimiterTest)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_2318);\n // StatementAdderMethod cloned existing statement\n vc_2318.testBarTooLarge3();\n // MethodAssertGenerator build local variable\n Object o_20_0 = (parsedBars.size()) == (bars.size());\n int i = 0;\n for (io.protostuff.Bar b : parsedBars)\n io.protostuff.SerializableObjects.assertEquals(bars.get((i++)), b);\n \n org.junit.Assert.fail(\"testEmptyBar2_cf10132 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void testFoo_add44816() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n foos.add(io.protostuff.SerializableObjects.foo);\n foos.add(io.protostuff.SerializableObjects.foo);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testFoo_add44816__7 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testFoo_add44816__7, 509);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyFooInner2_cf36313_failAssert8_add36622() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n io.protostuff.Bar bar = new io.protostuff.Bar();\n bar.setSomeBaz(new io.protostuff.Baz());\n bars.add(bar);\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n io.protostuff.Foo foo = new io.protostuff.Foo();\n foo.setSomeBar(bars);\n foos.add(foo);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyFooInner2_cf36313_failAssert8_add36622__18 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyFooInner2_cf36313_failAssert8_add36622__18, 6);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n // StatementAdderOnAssert create null value\n io.protostuff.DelimiterTest vc_8322 = (io.protostuff.DelimiterTest)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_8322);\n // StatementAdderMethod cloned existing statement\n vc_8322.testFoo();\n // MethodAssertGenerator build local variable\n Object o_29_0 = (parsedFoos.size()) == (foos.size());\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n org.junit.Assert.fail(\"testEmptyFooInner2_cf36313 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void testBar_add3() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(io.protostuff.SerializableObjects.bar);\n bars.add(io.protostuff.SerializableObjects.negativeBar);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testBar_add3__7 = // MethodCallAdder\nwriteListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testBar_add3__7, 148);\n writeListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Bar> parsedBars = parseListFrom(in, io.protostuff.SerializableObjects.bar.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedBars.size()) == (bars.size())));\n int i = 0;\n for (io.protostuff.Bar b : parsedBars)\n io.protostuff.SerializableObjects.assertEquals(bars.get((i++)), b);\n \n }", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "@Test\n public void addMultipleNonEmptyTest() {\n Set<String> s = this.createFromArgsTest(\"zero\", \"three\");\n Set<String> sExpected = this.createFromArgsRef(\"zero\", \"one\", \"two\",\n \"three\");\n\n s.add(\"two\");\n s.add(\"one\");\n\n assertEquals(sExpected, s);\n }", "@Test\n\tpublic void buildTest() {\n\t\tXMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();\n\n\t\t// Get the assertion builder based on the assertion element name\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tSAMLObjectBuilder<Assertion> builder = (SAMLObjectBuilder<Assertion>) builderFactory\n\t\t\t\t.getBuilder(Assertion.DEFAULT_ELEMENT_NAME);\n\n\t\t// Create the assertion\n\t\tAssertion assertion = builder.buildObject();\n\n\t}", "public void test19() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyFooInner_add31640() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(new io.protostuff.Bar());\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n io.protostuff.Foo foo = new io.protostuff.Foo();\n foo.setSomeBar(bars);\n foos.add(foo);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyFooInner_add31640__13 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyFooInner_add31640__13, 4);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }", "@SmallTest\n @Test\n public void testFlatBufferValuesUnchanged() {\n assertEquals(-2, LaunchTypeAtCreation.SIZE);\n assertEquals(-1, LaunchTypeAtCreation.UNKNOWN);\n assertEquals(0, LaunchTypeAtCreation.FROM_LINK);\n assertEquals(1, LaunchTypeAtCreation.FROM_EXTERNAL_APP);\n assertEquals(2, LaunchTypeAtCreation.FROM_CHROME_UI);\n assertEquals(3, LaunchTypeAtCreation.FROM_RESTORE);\n assertEquals(4, LaunchTypeAtCreation.FROM_LONGPRESS_FOREGROUND);\n assertEquals(5, LaunchTypeAtCreation.FROM_LONGPRESS_BACKGROUND);\n assertEquals(6, LaunchTypeAtCreation.FROM_REPARENTING);\n assertEquals(7, LaunchTypeAtCreation.FROM_LAUNCHER_SHORTCUT);\n assertEquals(8, LaunchTypeAtCreation.FROM_SPECULATIVE_BACKGROUND_CREATION);\n assertEquals(9, LaunchTypeAtCreation.FROM_BROWSER_ACTIONS);\n assertEquals(10, LaunchTypeAtCreation.FROM_LAUNCH_NEW_INCOGNITO_TAB);\n assertEquals(11, LaunchTypeAtCreation.FROM_STARTUP);\n assertEquals(12, LaunchTypeAtCreation.FROM_START_SURFACE);\n assertEquals(13, LaunchTypeAtCreation.FROM_TAB_GROUP_UI);\n assertEquals(14, LaunchTypeAtCreation.FROM_LONGPRESS_BACKGROUND_IN_GROUP);\n assertEquals(15, LaunchTypeAtCreation.FROM_APP_WIDGET);\n assertEquals(16, LaunchTypeAtCreation.FROM_LONGPRESS_INCOGNITO);\n assertEquals(17, LaunchTypeAtCreation.FROM_RECENT_TABS);\n assertEquals(18, LaunchTypeAtCreation.FROM_READING_LIST);\n assertEquals(19, LaunchTypeAtCreation.FROM_TAB_SWITCHER_UI);\n assertEquals(20, LaunchTypeAtCreation.FROM_RESTORE_TABS_UI);\n assertEquals(\"Need to increment 1 to expected value each time a LaunchTypeAtCreation \"\n + \"is added. Also need to add any new LaunchTypeAtCreation to this test.\",\n 23, LaunchTypeAtCreation.names.length);\n }", "@Test\n public void testDoubleNestedArray() {\n TupleMetadata schema = new SchemaBuilder()\n .add(\"a\", MinorType.INT)\n .addMapArray(\"m1\")\n .add(\"b\", MinorType.INT)\n .addMapArray(\"m2\")\n .add(\"c\", MinorType.INT)\n .addArray(\"d\", MinorType.VARCHAR)\n .resumeMap()\n .resumeSchema()\n .buildSchema();\n ResultSetLoaderImpl.ResultSetOptions options = new ResultSetOptionBuilder()\n .readerSchema(schema)\n .build();\n ResultSetLoader rsLoader = new ResultSetLoaderImpl(fixture.allocator(), options);\n RowSetLoader rootWriter = rsLoader.writer();\n rsLoader.startBatch();\n\n ScalarWriter aWriter = rootWriter.scalar(\"a\");\n ArrayWriter a1Writer = rootWriter.array(\"m1\");\n TupleWriter m1Writer = a1Writer.tuple();\n ScalarWriter bWriter = m1Writer.scalar(\"b\");\n ArrayWriter a2Writer = m1Writer.array(\"m2\");\n TupleWriter m2Writer = a2Writer.tuple();\n ScalarWriter cWriter = m2Writer.scalar(\"c\");\n ScalarWriter dWriter = m2Writer.array(\"d\").scalar();\n\n for (int i = 0; i < 5; i++) {\n rootWriter.start();\n aWriter.setInt(i);\n for (int j = 0; j < 4; j++) {\n int a1Key = i + 10 + j;\n bWriter.setInt(a1Key);\n for (int k = 0; k < 3; k++) {\n int a2Key = a1Key * 10 + k;\n cWriter.setInt(a2Key);\n for (int l = 0; l < 2; l++) {\n dWriter.setString(\"d-\" + (a2Key * 10 + l));\n }\n a2Writer.save();\n }\n a1Writer.save();\n }\n rootWriter.save();\n }\n\n RowSet results = fixture.wrap(rsLoader.harvest());\n RowSetReader reader = results.reader();\n\n ScalarReader aReader = reader.scalar(\"a\");\n ArrayReader a1Reader = reader.array(\"m1\");\n TupleReader m1Reader = a1Reader.tuple();\n ScalarReader bReader = m1Reader.scalar(\"b\");\n ArrayReader a2Reader = m1Reader.array(\"m2\");\n TupleReader m2Reader = a2Reader.tuple();\n ScalarReader cReader = m2Reader.scalar(\"c\");\n ArrayReader dArray = m2Reader.array(\"d\");\n ScalarReader dReader = dArray.scalar();\n\n for (int i = 0; i < 5; i++) {\n assertTrue(reader.next());\n assertEquals(i, aReader.getInt());\n for (int j = 0; j < 4; j++) {\n assertTrue(a1Reader.next());\n int a1Key = i + 10 + j;\n assertEquals(a1Key, bReader.getInt());\n for (int k = 0; k < 3; k++) {\n assertTrue(a2Reader.next());\n int a2Key = a1Key * 10 + k;\n assertEquals(a2Key, cReader.getInt());\n for (int l = 0; l < 2; l++) {\n assertTrue(dArray.next());\n assertEquals(\"d-\" + (a2Key * 10 + l), dReader.getString());\n }\n }\n }\n }\n rsLoader.close();\n }", "public void testUnpackNothingMulti() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}});\n baggage.put(\"bag2\", new Object[][] {});\n baggage.put(\"bag3\", new Object[][] {{\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n results.check();\n assertTrue(\"Expect 0 output tuple emitted\", results.emitted.size() == 0);\n }", "private void buildBWTandTest(byte[] s, int nr , Alphabet alphabet) {\n if (nr == 11) {\n System.out.println();\n }\n Sequences sequence = Sequences.createEmptySequencesInMemory();\n try {\n sequence.addSequence(ByteBuffer.wrap(s));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n final SuffixTrayBuilder stb = new SuffixTrayBuilder(sequence, alphabet, \"suffix\");\n stb.build(\"bothLR\"); // WARNING: change the method and you must change the type cast in the\n // next line!\n assert (stb.getSuffixDLL() instanceof SuffixXorDLL);\n final SuffixXorDLL suffixDLL = (SuffixXorDLL) stb.getSuffixDLL(); // type cast is okay\n // because I used method\n // 'bothLR' to build the\n // list\n\n // test index\n bwt(s);\n BWTBuilder.BWT bwt = BWTBuilder.build(suffixDLL);\n BWTIndex index = BWTIndexBuilder.build(bwt.bwt, bwt.sampledSuffixArray);\n for (int i = -128; i < 128; i++) {\n assertEquals(String.format(\n \"[Test %d] Array 'c' differs at position %s (expected: %s - actual: %s)\", nr, i,\n c[i + 128], index.getFirstIndexPosition((byte) i)), c[i + 128],\n index.getFirstIndexPosition((byte) i));\n }\n \n if (nr == 11) {\n System.out.println(Arrays.toString(s));\n for (int i = 0; i < e.length; i++) {\n System.out.print(index.getCharacterAtIndexPosition(i));\n }\n System.out.println();\n }\n\n for (int i = 0; i < e.length; i++) {\n assertEquals(String.format(\n \"[Test %d] Array 'e' differs at position %s (expected: %s - actual: %s)\", nr, i,\n e[i], index.getCharacterAtIndexPosition(i)), e[i],\n index.getCharacterAtIndexPosition(i));\n }\n \n// System.out.println(Arrays.toString(e));\n// for (int i = 0; i < el.length; i++) {\n// System.out.print(index.getSuccedingIndexPosition(i) + \" \");\n// }\n// System.out.println();\n\n for (int i = 0; i < el.length; i++) {\n assertEquals(String.format(\n \"[Test %d] Array 'el' differs at position %s (expected: %s - actual: %s)\", nr, i,\n el[i], index.getSuccedingIndexPosition(i)), el[i],\n index.getSuccedingIndexPosition(i));\n }\n for (int i = 0; i < e.length; i++) {\n int sequencePos = index.map2text(i);\n assertEquals(\n String.format(\n \"[Test %d] Wrong mapping to text at index position %s (index.getSuccedingIndexPosition(i) = %d)\",\n nr, i, sequencePos), index.getCharacterAtIndexPosition(i),\n sequence.array()[sequencePos]);\n }\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 }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "public final boolean[] isBdedQuantATuple() { return this.tupleOrs; }", "@Test(expected=BuildException.class)\n\tpublic void testBuilderInvalid1() throws InvalidGrammarException, ParseException, BuildException\n\t{\n\t\tBnfParser parser = new BnfParser(ObjectBuilderTest.class.getResourceAsStream(\"data/DummyObject.bnf\"));\n\t\tParseNode tree = parser.parse(\"+ 3 3\");\n\t\tInvalidBuilder db = new InvalidBuilder();\n\t\tdb.build(tree);\n\t}", "@Test(expected=BuildException.class)\n\tpublic void testBuilderInvalid2() throws InvalidGrammarException, ParseException, BuildException\n\t{\n\t\tBnfParser parser = new BnfParser(ObjectBuilderTest.class.getResourceAsStream(\"data/DummyObject.bnf\"));\n\t\tParseNode tree = parser.parse(\"- 3 3\");\n\t\tInvalidBuilder db = new InvalidBuilder();\n\t\tdb.build(tree);\n\t}", "@Test\n void test_buildInsertStatement_withIdField_sequenceProvided() {\n String tableName = \"TICKET\";\n Map<String, FieldDetails> fields = new TreeMap<>();\n fields.put(\"id\", new IdFieldDetails(null, Integer.class, \"movie_id_seq\"));\n fields.put(\"movie\", new FieldDetails(\"Inception\", String.class) );\n fields.put(\"date\", new FieldDetails(LocalDate.now(), LocalDate.class));\n fields.put(\"cost\", new FieldDetails(10, Integer.class));\n\n Iterator<String> keyIterator = fields.keySet().iterator();\n StringBuilder fieldNameSB = new StringBuilder();\n StringBuilder valuePlaceHoldersSB = new StringBuilder();\n while (keyIterator.hasNext()) {\n String nextName = keyIterator.next();\n fieldNameSB.append(nextName);\n FieldDetails fieldDetails = fields.get(nextName);\n if (fieldDetails instanceof IdFieldDetails) {\n IdFieldDetails idFieldDetails = (IdFieldDetails) fieldDetails;\n if (Objects.isNull(idFieldDetails.getValue())) {\n valuePlaceHoldersSB.append(\"nextval('\" + idFieldDetails.getSequenceName() + \"')\");\n } else {\n valuePlaceHoldersSB.append(\"?\");\n }\n } else\n valuePlaceHoldersSB.append(\"?\");\n if (keyIterator.hasNext()) {\n fieldNameSB.append(\",\");\n valuePlaceHoldersSB.append(\",\");\n }\n }\n String expected = \"insert into TICKET (\" + fieldNameSB.toString() + \") VALUES (\"\n + valuePlaceHoldersSB.toString() + \")\";\n\n //when\n String result = statementBuilder.buildInsertStatement(tableName, fields);\n\n //then\n Assertions.assertEquals(expected, result);\n }", "@Test\n public void testConcat() {\n// System.out.println(\"---concat---\");\n// //Test1: concatenating two empty lists returns an empty list\n// ADTList instance = ADTList.create();\n// ADTList list = ADTList.create();\n// ADTList expResult = ADTList.create();\n// ADTList result = instance.concat(list);\n// assertEquals(expResult, result);\n// System.out.println(\"Test1 OK\");\n// \n// //Test2.1: concatenating an empty list with a non-empty list returns the non-empty list\n// ADTList instance2 = ADTList.create();\n// ADTList list2 = createTestADTListIns(6);\n// ADTList expResult2 = list2;\n// ADTList result2 = instance2.concat(list2);\n// assertEquals(expResult2, result2);\n// System.out.println(\"Test2.1 OK\");\n// \n// //Test2.2: concatenating a non-empty list with an empty list returns the non-empty list\n// ADTList instance3 = createTestADTListIns(6);\n// ADTList list3 = ADTList.create();\n// ADTList expResult3 = instance3;\n// ADTList result3 = instance3.concat(list3);\n// assertEquals(expResult3, result3);\n// System.out.println(\"Test2.2 OK\");\n// \n// //Test3: concatenating two non-empty lists returns a new list in the form [list1 list2].\n// ADTList instance4 = createTestADTList(1,1,2,2,3,3);\n// ADTList list4 = createTestADTList(4,1,5,2,6,3);\n// ADTList expResult4 = createTestADTListIns(6);\n// ADTList result4 = instance4.concat(list4);\n// assertEquals(expResult4, result4);\n// System.out.println(\"Test3 OK\");\n \n }", "public TupleDesc getTupleDesc();", "@org.junit.Test(timeout = 10000)\n public void testEmptyBar_cf5610_failAssert10_add5909() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(new io.protostuff.Bar());\n bars.add(new io.protostuff.Bar());\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyBar_cf5610_failAssert10_add5909__11 = // MethodCallAdder\nwriteListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyBar_cf5610_failAssert10_add5909__11, 3);\n writeListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Bar> parsedBars = parseListFrom(in, io.protostuff.SerializableObjects.bar.cachedSchema());\n // StatementAdderOnAssert create null value\n io.protostuff.DelimiterTest vc_1294 = (io.protostuff.DelimiterTest)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_1294);\n // StatementAdderMethod cloned existing statement\n vc_1294.testFooTooLarge();\n // MethodAssertGenerator build local variable\n Object o_22_0 = (parsedBars.size()) == (bars.size());\n int i = 0;\n for (io.protostuff.Bar b : parsedBars)\n io.protostuff.SerializableObjects.assertEquals(bars.get((i++)), b);\n \n org.junit.Assert.fail(\"testEmptyBar_cf5610 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "static Stream<Arguments> args() {\n\t\treturn Stream.of(\n\t\t\tArguments.of(0, 1, 0, 0, \"one\"),\n\t\t\tArguments.of(3, 1, 0, 3, \"one \"),\n\t\t\tArguments.of(4, 2, 1, 0, \"one \"),\n\n\t\t\tArguments.of(0, 2, 0, 0, \"one two\"),\n\t\t\tArguments.of(1, 2, 0, 1, \"one two\"),\n\t\t\tArguments.of(2, 2, 0, 2, \"one two\"),\n\t\t\tArguments.of(3, 2, 0, 3, \"one two\"),\n\t\t\tArguments.of(7, 2, 1, 3, \"one two\"),\n\t\t\tArguments.of(7, 2, 1, 3, \"one two \"),\n\t\t\tArguments.of(8, 3, 2, 0, \"one two \"),\n\n\t\t\tArguments.of(0, 1, 0, 0, \"'one'\"),\n\t\t\t// Arguments.of(5, 1, 0, 3, \"'one' \"),\n\t\t\tArguments.of(6, 2, 1, 0, \"'one' \"),\n\n\t\t\tArguments.of(0, 1, 0, 0, \"'one'\"),\n\t\t\tArguments.of(1, 1, 0, 0, \"'one'\"),\n\t\t\tArguments.of(2, 1, 0, 1, \"'one'\"),\n\t\t\tArguments.of(3, 1, 0, 2, \"'one'\"),\n\t\t\tArguments.of(4, 1, 0, 3, \"'one'\"),\n\t\t\t// Arguments.of(5, 1, 0, 3, \"'one'\"),\n\n\t\t\tArguments.of(0, 1, 0, 0, \"'one' \"),\n\t\t\tArguments.of(1, 1, 0, 0, \"'one' \"),\n\t\t\tArguments.of(2, 1, 0, 1, \"'one' \"),\n\t\t\tArguments.of(3, 1, 0, 2, \"'one' \"),\n\t\t\tArguments.of(4, 1, 0, 3, \"'one' \"),\n\t\t\t// Arguments.of(5, 1, 0, 3, \"'one' \"),\n\t\t\tArguments.of(6, 2, 1, 0, \"'one' \"),\n\n\t\t\tArguments.of(0, 1, 0, 0, \"\\\"one\\\"\"),\n\t\t\tArguments.of(1, 1, 0, 0, \"\\\"one\\\"\"),\n\t\t\tArguments.of(2, 1, 0, 1, \"\\\"one\\\"\"),\n\t\t\tArguments.of(3, 1, 0, 2, \"\\\"one\\\"\"),\n\t\t\tArguments.of(4, 1, 0, 3, \"\\\"one\\\"\"),\n\t\t\t// Arguments.of(5, 1, 0, 3, \"\\\"one\\\"\"),\n\n\t\t\tArguments.of(0, 1, 0, 0, \"\\\"one\\\" \"),\n\t\t\tArguments.of(1, 1, 0, 0, \"\\\"one\\\" \"),\n\t\t\tArguments.of(2, 1, 0, 1, \"\\\"one\\\" \"),\n\t\t\tArguments.of(3, 1, 0, 2, \"\\\"one\\\" \"),\n\t\t\tArguments.of(4, 1, 0, 3, \"\\\"one\\\" \"),\n\t\t\t// Arguments.of(5, 1, 0, 3, \"\\\"one\\\" \"),\n\t\t\tArguments.of(6, 2, 1, 0, \"\\\"one\\\" \")\n\t\t\t);\n\t}", "Tuple (Atomic... elements) {\n for (Atomic element : elements) {\n add (element);\n }\n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyBar2_add10074() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(new io.protostuff.Bar());\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyBar2_add10074__7 = // MethodCallAdder\nwriteListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyBar2_add10074__7, 2);\n writeListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Bar> parsedBars = parseListFrom(in, io.protostuff.SerializableObjects.bar.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedBars.size()) == (bars.size())));\n int i = 0;\n for (io.protostuff.Bar b : parsedBars)\n io.protostuff.SerializableObjects.assertEquals(bars.get((i++)), b);\n \n }", "public boolean isGeneralTuple();", "private OTRGroupElementQuadMsg computeTuple(byte sigma, BigInteger alpha, BigInteger beta, GroupElement gAlpha) {\n\t\t//Sample random value gamma in [0, . . . , q-1]\n\t\tBigInteger gamma = BigIntegers.createRandomInRange(BigInteger.ZERO, qMinusOne, random);\n\t\t\n\t\t//Calculates g^beta, g^(alpha*beta), g^gamma.\n\t\tGroupElement g = dlog.getGenerator();\n\t\tGroupElement gBeta = dlog.exponentiate(g, beta);\n\t\tGroupElement gGamma = dlog.exponentiate(g, gamma);\n\t\tGroupElement gAlphaBeta = dlog.exponentiate(g, alpha.multiply(beta));\n\t\t\n\t\t//Create the tuple.\n\t\tif (sigma == 0){\n\t\t\treturn new OTRGroupElementQuadMsg(gAlpha.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gBeta.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gAlphaBeta.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gGamma.generateSendableData());\n\t\t}\n\t\telse {\n\t\t\treturn new OTRGroupElementQuadMsg(gAlpha.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gBeta.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gGamma.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gAlphaBeta.generateSendableData());\n\t\t}\n\t}", "@org.junit.Test(timeout = 10000)\n public void testEmptyBarInner_cf15625_failAssert6_add15826() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n io.protostuff.Bar bar = new io.protostuff.Bar();\n bar.setSomeBaz(new io.protostuff.Baz());\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(bar);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyBarInner_cf15625_failAssert6_add15826__12 = // MethodCallAdder\nwriteListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyBarInner_cf15625_failAssert6_add15826__12, 4);\n writeListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Bar> parsedBars = parseListFrom(in, io.protostuff.SerializableObjects.bar.cachedSchema());\n // StatementAdderOnAssert create null value\n io.protostuff.DelimiterTest vc_3590 = (io.protostuff.DelimiterTest)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_3590);\n // StatementAdderMethod cloned existing statement\n vc_3590.testBarTooLarge3();\n // MethodAssertGenerator build local variable\n Object o_23_0 = (parsedBars.size()) == (bars.size());\n int i = 0;\n for (io.protostuff.Bar b : parsedBars)\n io.protostuff.SerializableObjects.assertEquals(bars.get((i++)), b);\n \n org.junit.Assert.fail(\"testEmptyBarInner_cf15625 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException 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 public void testAddCity_3args01() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"cityTest\";\n Pair coordenates = new Pair(41.200000, -8.000000);\n int points = 30;\n City cityTest = new City(coordenates, cityName, points);\n Set<City> expResult = new HashSet<>();\n\n expResult.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n expResult.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n expResult.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n expResult.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n expResult.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n expResult.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n expResult.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n expResult.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n expResult.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n expResult.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n expResult.add(cityTest);\n\n sn10.addCity(coordenates, cityName, points);\n Set<City> result = sn10.getCitiesList();\n assertEquals(expResult, result);\n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyFoo2_add26050() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n foos.add(new io.protostuff.Foo());\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyFoo2_add26050__7 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyFoo2_add26050__7, 2);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyFoo_cf21684_failAssert6_add21955() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n foos.add(new io.protostuff.Foo());\n foos.add(new io.protostuff.Foo());\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyFoo_cf21684_failAssert6_add21955__11 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyFoo_cf21684_failAssert6_add21955__11, 3);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n // StatementAdderOnAssert create null value\n io.protostuff.DelimiterTest vc_4982 = (io.protostuff.DelimiterTest)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_4982);\n // StatementAdderMethod cloned existing statement\n vc_4982.testBarTooLarge3();\n // MethodAssertGenerator build local variable\n Object o_22_0 = (parsedFoos.size()) == (foos.size());\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n org.junit.Assert.fail(\"testEmptyFoo_cf21684 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test\n public void testAddCity_3args03() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"city0\";\n Pair coordenates = new Pair(41.243345, -8.674084);\n int points = 28;\n City cityTest = new City(coordenates, cityName, points);\n Set<City> expResult = new HashSet<>();\n\n expResult.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n expResult.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n expResult.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n expResult.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n expResult.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n expResult.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n expResult.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n expResult.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n expResult.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n expResult.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n sn10.addCity(coordenates, cityName, points);\n Set<City> result = sn10.getCitiesList();\n assertEquals(expResult, result);\n }", "public abstract Builder zza(List<String> list);", "public Tuple(TupleDesc td) {\n\t\t\tfields = new ArrayList<Field>();\n\t\t\ttupleDesc = td;\n\t\t\n\t\t// some code goes here\n\t\t// 2- assign td and initialize the array of fields\n\n\t}", "private Builder(baconhep.TTau.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.pt)) {\n this.pt = data().deepCopy(fields()[0].schema(), other.pt);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.eta)) {\n this.eta = data().deepCopy(fields()[1].schema(), other.eta);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.phi)) {\n this.phi = data().deepCopy(fields()[2].schema(), other.phi);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.m)) {\n this.m = data().deepCopy(fields()[3].schema(), other.m);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.e)) {\n this.e = data().deepCopy(fields()[4].schema(), other.e);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.q)) {\n this.q = data().deepCopy(fields()[5].schema(), other.q);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.dzLeadChHad)) {\n this.dzLeadChHad = data().deepCopy(fields()[6].schema(), other.dzLeadChHad);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.nSignalChHad)) {\n this.nSignalChHad = data().deepCopy(fields()[7].schema(), other.nSignalChHad);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.nSignalGamma)) {\n this.nSignalGamma = data().deepCopy(fields()[8].schema(), other.nSignalGamma);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.antiEleMVA5)) {\n this.antiEleMVA5 = data().deepCopy(fields()[9].schema(), other.antiEleMVA5);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.antiEleMVA5Cat)) {\n this.antiEleMVA5Cat = data().deepCopy(fields()[10].schema(), other.antiEleMVA5Cat);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.rawMuonRejection)) {\n this.rawMuonRejection = data().deepCopy(fields()[11].schema(), other.rawMuonRejection);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.rawIso3Hits)) {\n this.rawIso3Hits = data().deepCopy(fields()[12].schema(), other.rawIso3Hits);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.rawIsoMVA3oldDMwoLT)) {\n this.rawIsoMVA3oldDMwoLT = data().deepCopy(fields()[13].schema(), other.rawIsoMVA3oldDMwoLT);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.rawIsoMVA3oldDMwLT)) {\n this.rawIsoMVA3oldDMwLT = data().deepCopy(fields()[14].schema(), other.rawIsoMVA3oldDMwLT);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.rawIsoMVA3newDMwoLT)) {\n this.rawIsoMVA3newDMwoLT = data().deepCopy(fields()[15].schema(), other.rawIsoMVA3newDMwoLT);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.rawIsoMVA3newDMwLT)) {\n this.rawIsoMVA3newDMwLT = data().deepCopy(fields()[16].schema(), other.rawIsoMVA3newDMwLT);\n fieldSetFlags()[16] = true;\n }\n if (isValidValue(fields()[17], other.puppiChHadIso)) {\n this.puppiChHadIso = data().deepCopy(fields()[17].schema(), other.puppiChHadIso);\n fieldSetFlags()[17] = true;\n }\n if (isValidValue(fields()[18], other.puppiGammaIso)) {\n this.puppiGammaIso = data().deepCopy(fields()[18].schema(), other.puppiGammaIso);\n fieldSetFlags()[18] = true;\n }\n if (isValidValue(fields()[19], other.puppiNeuHadIso)) {\n this.puppiNeuHadIso = data().deepCopy(fields()[19].schema(), other.puppiNeuHadIso);\n fieldSetFlags()[19] = true;\n }\n if (isValidValue(fields()[20], other.puppiChHadIsoNoLep)) {\n this.puppiChHadIsoNoLep = data().deepCopy(fields()[20].schema(), other.puppiChHadIsoNoLep);\n fieldSetFlags()[20] = true;\n }\n if (isValidValue(fields()[21], other.puppiGammaIsoNoLep)) {\n this.puppiGammaIsoNoLep = data().deepCopy(fields()[21].schema(), other.puppiGammaIsoNoLep);\n fieldSetFlags()[21] = true;\n }\n if (isValidValue(fields()[22], other.puppiNeuHadIsoNoLep)) {\n this.puppiNeuHadIsoNoLep = data().deepCopy(fields()[22].schema(), other.puppiNeuHadIsoNoLep);\n fieldSetFlags()[22] = true;\n }\n if (isValidValue(fields()[23], other.hpsDisc)) {\n this.hpsDisc = data().deepCopy(fields()[23].schema(), other.hpsDisc);\n fieldSetFlags()[23] = true;\n }\n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyList_cf41382_failAssert2_add41676() throws java.lang.Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyList_cf41382_failAssert2_add41676__7 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyList_cf41382_failAssert2_add41676__7, 0);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n // StatementAdderOnAssert create null value\n io.protostuff.DelimiterTest vc_9446 = (io.protostuff.DelimiterTest)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_9446);\n // StatementAdderMethod cloned existing statement\n vc_9446.testBarTooLarge3();\n // MethodAssertGenerator build local variable\n Object o_18_0 = (parsedFoos.size()) == (foos.size());\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n org.junit.Assert.fail(\"testEmptyList_cf41382 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyFoo_add21626() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n foos.add(new io.protostuff.Foo());\n foos.add(new io.protostuff.Foo());\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyFoo_add21626__9 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyFoo_add21626__9, 3);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }", "@Test\n\tpublic void testRealWorldCase_uc011ayb_2() throws InvalidGenomeChange {\n\t\tthis.builderForward = TranscriptModelFactory\n\t\t\t\t.parseKnownGenesLine(\n\t\t\t\t\t\trefDict,\n\t\t\t\t\t\t\"uc011ayb.2\tchr3\t+\t37034840\t37092337\t37055968\t37092144\t18\t37034840,37042445,37045891,37048481,37050304,37053310,37053501,37055922,37058996,37061800,37067127,37070274,37081676,37083758,37089009,37090007,37090394,37091976,\t37035154,37042544,37045965,37048554,37050396,37053353,37053590,37056035,37059090,37061954,37067498,37070423,37081785,37083822,37089174,37090100,37090508,37092337,\tNP_001245203\tuc011ayb.2\");\n\t\tthis.builderForward\n\t\t.setSequence(\"gaagagacccagcaacccacagagttgagaaatttgactggcattcaagctgtccaatcaatagctgccgctgaagggtggggctggatggcgtaagctacagctgaaggaagaacgtgagcacgaggcactgaggtgattggctgaaggcacttccgttgagcatctagacgtttccttggctcttctggcgccaaaatgtcgttcgtggcaggggttattcggcggctggacgagacagtggtgaaccgcatcgcggcgggggaagttatccagcggccagctaatgctatcaaagagatgattgagaactgaaagaagatctggatattgtatgtgaaaggttcactactagtaaactgcagtcctttgaggatttagccagtatttctacctatggctttcgaggtgaggctttggccagcataagccatgtggctcatgttactattacaacgaaaacagctgatggaaagtgtgcatacagagcaagttactcagatggaaaactgaaagcccctcctaaaccatgtgctggcaatcaagggacccagatcacggtggaggaccttttttacaacatagccacgaggagaaaagctttaaaaaatccaagtgaagaatatgggaaaattttggaagttgttggcaggtattcagtacacaatgcaggcattagtttctcagttaaaaaacaaggagagacagtagctgatgttaggacactacccaatgcctcaaccgtggacaatattcgctccatctttggaaatgctgttagtcgagaactgatagaaattggatgtgaggataaaaccctagccttcaaaatgaatggttacatatccaatgcaaactactcagtgaagaagtgcatcttcttactcttcatcaaccatcgtctggtagaatcaacttccttgagaaaagccatagaaacagtgtatgcagcctatttgcccaaaaacacacacccattcctgtacctcagtttagaaatcagtccccagaatgtggatgttaatgtgcaccccacaaagcatgaagttcacttcctgcacgaggagagcatcctggagcgggtgcagcagcacatcgagagcaagctcctgggctccaattcctccaggatgtacttcacccagactttgctaccaggacttgctggcccctctggggagatggttaaatccacaacaagtctgacctcgtcttctacttctggaagtagtgataaggtctatgcccaccagatggttcgtacagattcccgggaacagaagcttgatgcatttctgcagcctctgagcaaacccctgtccagtcagccccaggccattgtcacagaggataagacagatatttctagtggcagggctaggcagcaagatgaggagatgcttgaactcccagcccctgctgaagtggctgccaaaaatcagagcttggagggggatacaacaaaggggacttcagaaatgtcagagaagagaggacctacttccagcaaccccagaaagagacatcgggaagattctgatgtggaaatggtggaagatgattcccgaaaggaaatgactgcagcttgtaccccccggagaaggatcattaacctcactagtgttttgagtctccaggaagaaattaatgagcagggacatgaggttctccgggagatgttgcataaccactccttcgtgggctgtgtgaatcctcagtgggccttggcacagcatcaaaccaagttataccttctcaacaccaccaagcttagtgaagaactgttctaccagatactcatttatgattttgccaattttggtgttctcaggttatcggagccagcaccgctctttgaccttgccatgcttgccttagatagtccagagagtggctggacagaggaagatggtcccaaagaaggacttgctgaatacattgttgagtttctgaagaagaaggctgagatgcttgcagactatttctctttggaaattgatgaggaagggaacctgattggattaccccttctgattgacaactatgtgccccctttggagggactgcctatcttcattcttcgactagccactgaggtgaattgggacgaagaaaaggaatgttttgaaagcctcagtaaagaatgcgctatgttctattccatccggaagcagtacatatctgaggagtcgaccctctcaggccagcagagtgaagtgcctggctccattccaaactcctggaagtggactgtggaacacattgtctataaagccttgcgctcacacattctgcctcctaaacatttcacagaagatggaaatatcctgcagcttgctaacctgcctgatctatacaaagtctttgagaggtgttaaatatggttatttatgcactgtgggatgtgttcttctttctctgtattccgatacaaagtgttgtatcaaagtgtgatatacaaagtgtaccaacataagtgttggtagcacttaagacttatacttgccttctgatagtattcctttatacacagtggattgattataaataaatagatgtgtcttaacataaaaaaaaaaaaaaaaaa\"\n\t\t\t\t.toUpperCase());\n\t\tthis.builderForward.setGeneSymbol(\"NP_001245203\");\n\t\tthis.infoForward = builderForward.build();\n\t\t// RefSeq NM_001258273\n\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 3, 37090097, PositionType.ONE_BASED),\n\t\t\t\t\"TGAGG\", \"C\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1263_1266+1delinsC\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Glu422del\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_DONOR),\n\t\t\t\tannotation1.effects);\n\t}", "@Test\n public void testComplexCompositeDataExtractor() throws Exception {\n final String[] compositePropertyNames = new String[2];\n compositePropertyNames[0] = \"Count\";\n compositePropertyNames[1] = \"Latency\";\n\n final String[] compositePropertyDescriptions = new String[2];\n compositePropertyDescriptions[0] = \"Count of requests received for the command\";\n compositePropertyDescriptions[1] = \"Average Time Taken to process the command\";\n\n final OpenType[] compositePropertyTypes = new OpenType[2];\n compositePropertyTypes[0] = SimpleType.LONG;\n compositePropertyTypes[1] = SimpleType.FLOAT;\n\n final CompositeType compositeType =\n new CompositeType(\"Command Stats\", \"Stats for each command\",\n compositePropertyNames, compositePropertyDescriptions,\n compositePropertyTypes);\n\n final Object[] loginCompositeValues = new Object[compositePropertyNames.length];\n loginCompositeValues[0] = new Long(10);\n loginCompositeValues[1] = new Float(38.34f);\n\n final Object[] logoutCompositeValues = new Object[compositePropertyNames.length];\n logoutCompositeValues[0] = new Long(30);\n logoutCompositeValues[1] = new Float(26.09f);\n\n final Object[] capaCompositeValues = new Object[compositePropertyNames.length];\n capaCompositeValues[0] = new Long(89);\n capaCompositeValues[1] = new Float(103.09f);\n\n final String[] complexCompositePropertyNames = new String[3];\n complexCompositePropertyNames[0] = \"Login\";\n complexCompositePropertyNames[1] = \"Logout\";\n complexCompositePropertyNames[2] = \"Capability\";\n\n CompositeData[] complexDataValues = new CompositeData[complexCompositePropertyNames.length];\n complexDataValues[0] =\n new CompositeDataSupport(compositeType, compositePropertyNames, loginCompositeValues);\n complexDataValues[1] =\n new CompositeDataSupport(compositeType, compositePropertyNames, logoutCompositeValues);\n complexDataValues[2] =\n new CompositeDataSupport(compositeType, compositePropertyNames, capaCompositeValues);\n\n final OpenType[] complexCompositePropertyTypes = new OpenType[3];\n complexCompositePropertyTypes[0] = compositeType;\n complexCompositePropertyTypes[1] = compositeType;\n complexCompositePropertyTypes[2] = compositeType;\n\n final String[] complexCompositePropertyDescriptions = new String[3];\n complexCompositePropertyDescriptions[0] =\n \"Command Stats for \" + complexCompositePropertyNames[0];\n complexCompositePropertyDescriptions[1] =\n \"Command Stats for \" + complexCompositePropertyNames[1];\n complexCompositePropertyDescriptions[2] =\n \"Command Stats for \" + complexCompositePropertyNames[2];\n\n final CompositeType complexCompositeType =\n new CompositeType(\"Commands\", \"Stats for all commands\",\n complexCompositePropertyNames, complexCompositePropertyDescriptions,\n complexCompositePropertyTypes);\n\n CompositeData complexData =\n new CompositeDataSupport(complexCompositeType, complexCompositePropertyNames,\n complexDataValues);\n\n ObjectToJsonConverter jsonConverter = new ObjectToJsonConverter();\n JsonElement jsonElement = jsonConverter.extractObject(complexData);\n Assert.assertNotNull(jsonElement);\n\n JsonElement capability = jsonElement.getAsJsonObject().get(\"Capability\");\n Assert.assertNotNull(capability);\n JsonElement count = capability.getAsJsonObject().get(\"Count\");\n Assert.assertNotNull(count);\n Assert.assertEquals(count.getAsLong(), 89);\n JsonElement latency = capability.getAsJsonObject().get(\"Latency\");\n Assert.assertNotNull(latency);\n Assert.assertEquals(latency.getAsFloat(), 103.09f);\n\n JsonElement login = jsonElement.getAsJsonObject().get(\"Login\");\n Assert.assertNotNull(login);\n count = login.getAsJsonObject().get(\"Count\");\n Assert.assertNotNull(count);\n Assert.assertEquals(count.getAsLong(), 10);\n latency = login.getAsJsonObject().get(\"Latency\");\n Assert.assertNotNull(latency);\n Assert.assertEquals(latency.getAsFloat(), 38.34f);\n\n JsonElement logout = jsonElement.getAsJsonObject().get(\"Logout\");\n Assert.assertNotNull(logout);\n count = logout.getAsJsonObject().get(\"Count\");\n Assert.assertNotNull(count);\n Assert.assertEquals(count.getAsLong(), 30);\n latency = logout.getAsJsonObject().get(\"Latency\");\n Assert.assertNotNull(latency);\n Assert.assertEquals(latency.getAsFloat(), 26.09f);\n }", "public static void main(String[] args) {\n\r\n\t\t Hasta A = new Hasta.Builder(12345688,\"Ali\",\"Acar\")\r\n\t .yas(25)\r\n\t .Cinsiyet(\"Erkek\")\r\n\t .Adres(\"Akasya Acıbadem Ofis Kuleleri\\n A Blok 24. Kat No:127\\n Acıbadem İstanbul Turkey\")\r\n\t .HastaId(1)\r\n\t .MedeniHal(\"Evli\")\r\n\t .build();\r\n\r\n\t Hasta B = new Hasta.Builder(123456789,\"Kevser\", \"Köse\")\r\n\t .yas(22)\r\n\t .MedeniHal(\"Bekar\")\r\n\t .build();\r\n\r\n\t Hasta C = new Hasta.Builder(145236987,\"Merve\", \"Topal\")\r\n\t .yas(29)\r\n\t .build();\r\n\r\n\t System.out.println(A);\r\n\t System.out.println(B);\r\n\t System.out.println(C);\r\n\t\t\r\n\t\t\r\n\t}" ]
[ "0.76614404", "0.7437438", "0.64851236", "0.61646825", "0.6139136", "0.6126149", "0.6116273", "0.6107939", "0.6081955", "0.60756993", "0.59791726", "0.59663785", "0.59062505", "0.5825361", "0.57727027", "0.57466435", "0.5736327", "0.56731594", "0.56335646", "0.55610156", "0.5559415", "0.5515888", "0.5511505", "0.5500922", "0.54986215", "0.5455488", "0.5414241", "0.53926104", "0.5375913", "0.5367294", "0.53632617", "0.53451324", "0.53161335", "0.53038096", "0.5294482", "0.52943134", "0.52928406", "0.52884185", "0.5279482", "0.5254005", "0.52417094", "0.5231367", "0.5218579", "0.5217258", "0.5214036", "0.5202224", "0.5192057", "0.51878744", "0.5187334", "0.5181183", "0.51690596", "0.5163942", "0.5155316", "0.51502997", "0.5150027", "0.5144126", "0.5143692", "0.51428825", "0.51395255", "0.5138652", "0.51339465", "0.51251656", "0.51033187", "0.5096146", "0.5091786", "0.50797373", "0.50771964", "0.5076785", "0.5071024", "0.50699514", "0.5066118", "0.5064233", "0.5057707", "0.50521857", "0.50486356", "0.5030888", "0.50017375", "0.50016963", "0.4995383", "0.49934578", "0.4991605", "0.49898195", "0.4981672", "0.49773076", "0.49720195", "0.4964215", "0.49570537", "0.494701", "0.49382684", "0.49373543", "0.49372905", "0.49120986", "0.4904973", "0.4904114", "0.49035963", "0.48976827", "0.48893294", "0.48838308", "0.48837897", "0.48758304" ]
0.75231284
1
Test ADSB tuple builder
@Test public void testADSBTupleBuilder3() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ADSB_3D); final Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1); final Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2); final Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3); final Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4); final Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5); final Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6); final Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7); final Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8); final Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9); final Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10); final Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11); final Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12); Assert.assertNull(tuple1); Assert.assertNull(tuple2); Assert.assertNotNull(tuple3); Assert.assertNull(tuple4); Assert.assertNull(tuple5); Assert.assertNotNull(tuple6); Assert.assertNull(tuple7); Assert.assertNull(tuple8); Assert.assertNotNull(tuple9); Assert.assertNull(tuple10); Assert.assertNull(tuple11); Assert.assertNotNull(tuple12); Assert.assertEquals(3, tuple3.getBoundingBox().getDimension()); Assert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001); Assert.assertEquals(3, tuple6.getBoundingBox().getDimension()); Assert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001); Assert.assertEquals(3, tuple9.getBoundingBox().getDimension()); Assert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001); Assert.assertEquals(3, tuple12.getBoundingBox().getDimension()); Assert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001); Assert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001); Assert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "public void testUnpackMultipleTuples() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}, {\"v3\", \"v4\"}, {\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\");\n results.expectTuple(\"vva\", \"vvb\", \"v3\", \"v4\");\n results.expectTuple(\"vva\", \"vvb\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3); \n }", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "Astro tuple(AstroArg args);", "private Tuples() {}", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "public void testUnpackMultipleTuplesMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"b1_t1_v1\", \"b1_t1_v2\"}, {\"b1_t2_v1\", \"b1_t2_v2\"}, {\"b1_t3_v1\", \"b1_t3_v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"b2_t1_v1\", \"b2_t1_v2\"}, {\"b2_t2_v1\", \"b2_t2_v2\"}, {\"b2_t3_v1\", \"b2_t3_v2\"}});\n baggage.put(\"bag3\", new Object[][] {{\"b3_t1_v1\", \"b3_t1_v2\"}, {\"b3_t2_v1\", \"b3_t2_v2\"}, {\"b3_t3_v1\", \"b3_t3_v2\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n int expected = 3 * 3 * 3 * 3;\n for (int i = 0; i < expected; i++) {\n results.expectTuple(\"vva\");\n }\n results.check();\n assertTrue(\"Expect \"+expected+\" output tuple emitted\", results.emitted.size() == expected); \n }", "TupleLiteralExp createTupleLiteralExp();", "public void testUnpackFromCorrectBag() throws InvalidAdviceException {\n Object[][] t1 = {{\"dsifji2oj\", \"23498ngnjs\"}};\n Object[][] t2 = {{\"dsfj9\", \"u1h32jbn4l1 '\"}};\n Object[][] t3 = {{\"24oi23n\", \"022l;'][ \"}};\n Object[][] t4 = {{\"0m0lkj34\", \"hh2h2n jds \"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(\"bag1\", t1).put(\"bag2\", t2).put(\"bag3\", t3).put(\"bag4\", t4);\n\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag1\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag2\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"u1h32jbn4l1 '\", \"dsfj9\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag3\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"022l;'][ \", \"24oi23n\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag4\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"hh2h2n jds \", \"0m0lkj34\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "public void testUnpack() throws InvalidAdviceException {\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag7\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag4\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"pb\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"23498ngnjs\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "TupleExpr createTupleExpr();", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "TupleLiteralPart createTupleLiteralPart();", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\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(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.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}", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "TupleTypeRule createTupleTypeRule();", "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\n }", "public void testUnpackNoValuesMulti() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}, {}, {}, {}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 4 output tuples emitted\", results.emitted.size() == 4);\n }", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "public void testUnpackNoValues() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "public void testUnpackMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"v3\", \"v4\"}});\n baggage.put(\"bag3\", new Object[][] {{\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\");\n results.expectTuple(\"vva\", \"vvc\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\");\n results.expectTuple(\"vva\", \"vve\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3);\n }", "private TupleDesc generalTupleDesc(){\n \tType[] typeArr;\n \tString[] nameArr;\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tnameArr = new String[]{\"groupValue\", \"aggregateValue\"};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n }", "@Test\n\tpublic void buildTest() {\n\t\tXMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();\n\n\t\t// Get the assertion builder based on the assertion element name\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tSAMLObjectBuilder<Assertion> builder = (SAMLObjectBuilder<Assertion>) builderFactory\n\t\t\t\t.getBuilder(Assertion.DEFAULT_ELEMENT_NAME);\n\n\t\t// Create the assertion\n\t\tAssertion assertion = builder.buildObject();\n\n\t}", "HdbSequenceElements createHdbSequenceElements();", "@Test\n\tpublic void testBuild() throws HashUtilException {\n\n\t\tshort sh = 121;\n\t\tbyte b = 14;\n\t\tboolean[] bool1 = null;\n\t\tint[] int1 = null;\n\t\tdouble[] dob = null;\n\t\tString[] str = null;\n\t\tbyte[] byt = null;\n\t\tshort[] sho = null;\n\t\tlong[] lon = null;\n\t\tfloat[] flo = null;\n\t\tchar[] chr = null;\n\t\tObject obj = null;\n\t\tassertEquals(\n\t\t\t\t((((((((7919l * 7664345821815920749L) + 34) * 7664345821815920749L) * 7664345821815920749L) + 1)\n\t\t\t\t\t\t* 7664345821815920749L) + Double.doubleToLongBits(12.3)) * 7664345821815920749L)\n\t\t\t\t\t\t+ Arrays.asList(\"Ramesh\", \"Suresh\").hashCode(),\n\t\t\t\tnew HashUtility().append(34).append(obj).append(false).append(12.3)\n\t\t\t\t\t\t.append(Arrays.asList(\"Ramesh\", \"Suresh\")).build());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((23l * 45) + 123456789000l) * 45) + Float.floatToIntBits(2.453f)) * 45) + sh) * 45) + b) * 45)\n\t\t\t\t\t\t+ (long) 'r',\n\t\t\t\tnew HashUtility(23, 45).append(123456789000l).append(2.453f).append(sh).append(b).append('r').build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(str).append(int1).append(bool1).append(dob).build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(byt).append(sho).append(lon).append(flo).append(chr).build());\n\n\t}", "static Tuple wrap(Tuple init, long sign) throws ExecException {\n\t\tTuple tup = tf.newTuple(2);\n\t\ttup.set(0, init.get(0));\n\t\ttup.set(1, sign);\n\t\t\n\t\tDataBag bag = bf.newDefaultBag();\n\t\tbag.add(tup);\n\t\t\n\t\treturn tf.newTuple(bag);\n\t}", "public Tuple(TupleDesc td) {\n\t\t\tfields = new ArrayList<Field>();\n\t\t\ttupleDesc = td;\n\t\t\n\t\t// some code goes here\n\t\t// 2- assign td and initialize the array of fields\n\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "@Test\n public void test_getAndSet_ByIndex_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods _________________________________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", 0,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", 1,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // continuation primiative field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 2,\n 456, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 3,\n 789, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n\n\n\n // Object Continuation\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n\n // Test the Get & Set methods _________________________________________________________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 1,\n MPSymbols.byte$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n }", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "@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 static void enter_values(TupleTagBasedEncoder<?> encoder) {\n encoder.addEntryT(super_tag_1, bool_test_tag, bool_test_value);\n encoder.addEntryT(super_tag_1,\"confuse???123123\", 1234123+\"WeirdTag ValueSwear\");\n encoder.addEntryT(super_tag_2, str_test_tag, str_test_value);\n encoder.addEntryT(super_tag_1, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_1, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_1, int_test_tag, int_test_value);\n encoder.addEntryT(super_tag_4, \"WeirdTag confuse\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_2, \"confuse???\", 1234123+\"WeirdTagVa lueSwear\");\n encoder.addEntryT(super_tag_2, weird_long_tag, weird_long_value);\n encoder.addEntryT(super_tag_4, empty_tag_test_tag, empty_tag_test_value);\n encoder.addEntryT(super_tag_2, empty_val_test_tag, empty_val_test_value);\n encoder.addEntryT(super_tag_2, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_4, empty_strarr_test_tag, empty_strarr_test_value); //empty is not written into the system.\n encoder.addEntryT(super_tag_2, strarr_test_tag, strarr_test_value);\n encoder.addEntryT(super_tag_2, empty_intarr_test_tag, empty_intarr_test_value); //empty is not written into the system.\n encoder.addEntryT(super_tag_4, intarr_test_tag, intarr_test_value);\n encoder.addEntryT(super_tag_3, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_2, strarr2d_test_tag, strarr2d_test_value);\n encoder.addEntryT(super_tag_4, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n }", "@Test\n void buildWaredDrobeTest() {\n WaredDrobeBuilder waredDrobeBuilder = new WaredDrobeBuilder();\n WaredDrobe waredDrobe = waredDrobeBuilder.build();\n List<String>partlist=waredDrobe.getParts();\n\n List<String>steps = Arrays.asList(\"bottom\",\"side\",\"side\",\"back\",\"top\",\"shelf\",\"shelf\",\"shelf\",\"shelf\",\n \"shelf\",\"shelf\",\"shelf\",\"shelf\",\"door\",\"door\");\n assertEquals(steps,partlist);\n\n\n\n\n }", "public void testUnpackNothing() throws InvalidAdviceException {\n {\n String bag = \"e\";\n Object[][] packedTuple = {};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.check();\n assertTrue(\"Expect 0 output tuples\", results.emitted.size() == 0);\n }\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 0 output tuples\", results.emitted.size() == 0);\n }\n }", "@Test\n void appendSwitchedTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{1}||{0}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(2, 4)),\n new BindWithPos(bindName2, String.class, List.of(1, 3)));\n }", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "public void test17() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public TupleDesc getTupleDesc();", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "@Test\n public void testToString() {\n Command cmd = new Command(\"add\");\n \n Value dialogic = new Value(\"dialogic\");\n dialogic.add(new Parameter(\"module_id\"));\n \n Value dahdi = new Value(\"dahdi\");\n dahdi.add(new Parameter(\"span\"));\n dahdi.add(new Parameter(\"channel\"));\n \n Parameter linkset = new Parameter(\"linkset\", new Value[]{dialogic, dahdi});\n Parameter opc = new Parameter(\"opc\");\n Parameter apc = new Parameter(\"apc\");\n Parameter ni = new Parameter(\"network indicator\");\n \n cmd.add(linkset);\n cmd.add(opc);\n cmd.add(apc);\n cmd.add(ni);\n \n System.out.println(cmd);\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 }", "public Tuple(String attrib_names [], String attrib_types [], String attrib_values []) {\n\n\ttuple_counter++;\n\tnum_attribs = attrib_types.length;\n\tmy_data = new HashMap();\n\t\n\tfor (int i = 0; i < num_attribs; i++) {\n\ttry {\n\t Class cl = Class.forName(attrib_types[i]);\n\t Constructor constructor =\n\t\tcl.getConstructor(new Class[] { String.class });\n\t my_data.put ( attrib_names[i],\n\t\t(ColumnValue) constructor.newInstance\n\t\t(new Object[] { attrib_values[i] }));\n\t}\n\tcatch (java.lang.ClassNotFoundException e)\n\t { System.out.println(e.toString()); } \n\tcatch (java.lang.NoSuchMethodException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.reflect.InvocationTargetException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.InstantiationException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.IllegalAccessException e)\n\t { System.out.println(e.toString()); }\n\n\t}\n }", "@Test\n public void testConstruction() {\n System.out.println(\"testConstruction\");\n OutputLiteralDataDescription desc = new OutputLiteralDataDescription();\n desc.setIdentifier(\"aabb\");\n desc.setTitle(\"aabb\");\n desc.setAbstract(\"aabb's abstract\");\n desc.setType(\"xs:string\");\n \n OutputDescriptionType description = desc.toOutputDescription();\n OutputLiteralDataDescription desc2 = new OutputLiteralDataDescription(description);\n assertEquals(desc, desc2);\n }", "@Test\r\n public void test() {\r\n Random random = new Random(System.currentTimeMillis());\r\n Adouble val = Adouble.valueOf(10);\r\n validate(val);\r\n validateEqual(val, Adouble.valueOf(val.toDouble()));\r\n Adouble val2 = Adouble.valueOf(random.nextDouble());\r\n validate(val2);\r\n validateEqual(val2, Adouble.valueOf(val2.toDouble()));\r\n validateUnequal(val, val2);\r\n Alist list = new Alist().add(val);\r\n byte[] bytes = Aon.aonBytes(list);\r\n list = Aon.readAon(bytes).toList();\r\n validate(list.get(0));\r\n validateEqual(list.get(0), val);\r\n validateUnequal(list.get(0), val2);\r\n }", "public void testBuilderExample() throws IOException {\n doTest();\n }", "public void test18() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf986_failAssert26_literalMutation2679() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"javautil.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(expected, \"javautil.List<@com.squareup.javapoet.AmplAnnotatedTypeNameTest.NeverNull 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 null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_480 = (java.util.Map)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_480);\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_478 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_478);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_476 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_476);\n // StatementAdderMethod cloned existing statement\n vc_476.get(vc_478, vc_480);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf986 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "@Test(expected=BuildException.class)\n\tpublic void testBuilderInvalid1() throws InvalidGrammarException, ParseException, BuildException\n\t{\n\t\tBnfParser parser = new BnfParser(ObjectBuilderTest.class.getResourceAsStream(\"data/DummyObject.bnf\"));\n\t\tParseNode tree = parser.parse(\"+ 3 3\");\n\t\tInvalidBuilder db = new InvalidBuilder();\n\t\tdb.build(tree);\n\t}", "public static void main(String[] args) {\n\r\n\t\t Hasta A = new Hasta.Builder(12345688,\"Ali\",\"Acar\")\r\n\t .yas(25)\r\n\t .Cinsiyet(\"Erkek\")\r\n\t .Adres(\"Akasya Acıbadem Ofis Kuleleri\\n A Blok 24. Kat No:127\\n Acıbadem İstanbul Turkey\")\r\n\t .HastaId(1)\r\n\t .MedeniHal(\"Evli\")\r\n\t .build();\r\n\r\n\t Hasta B = new Hasta.Builder(123456789,\"Kevser\", \"Köse\")\r\n\t .yas(22)\r\n\t .MedeniHal(\"Bekar\")\r\n\t .build();\r\n\r\n\t Hasta C = new Hasta.Builder(145236987,\"Merve\", \"Topal\")\r\n\t .yas(29)\r\n\t .build();\r\n\r\n\t System.out.println(A);\r\n\t System.out.println(B);\r\n\t System.out.println(C);\r\n\t\t\r\n\t\t\r\n\t}", "@Test\n public void test_getAndSet_ByIndex_GenericMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n\n // Test the Get & Set methods & the Special Field-Value Get & Set methods - Object Type (string) _______________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n \"hello\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n (short)10, null, null, (short)-1001); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Continuation Field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 2,\n 11, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 3,\n 12, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Object Continuation ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n MPSymbols.int$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}", "public boolean isGeneralTuple();", "public Tuple(Loyalty... c)\r\n\t\t{\r\n\t\t\tsuper(Arrays.asList(c));\r\n\t\t}", "public void test19() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public abstract T getTuple(Record record);", "private SchemaTupleFactory internalNewSchemaTupleFactory(Schema s, boolean isAppendable, GenContext context) {\n return newSchemaTupleFactory(Triple.make(new SchemaKey(s), isAppendable, context));\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n String string0 = \"iody27>B{<G\";\n NucleotideSequence nucleotideSequence0 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(nucleotideSequence0).getLength();\n QualitySequence qualitySequence0 = mock(QualitySequence.class, new ViolatedAssumptionAnswer());\n NucleotideSequence nucleotideSequence1 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(nucleotideSequence1).getLength();\n ArtificialPhd artificialPhd0 = ArtificialPhd.createNewbler454Phd(\"iody27>B{<G\", nucleotideSequence1, qualitySequence0);\n Map<String, String> map0 = artificialPhd0.getComments();\n ArtificialPhd artificialPhd1 = ArtificialPhd.createNewbler454Phd(\"iody27>B{<G\", nucleotideSequence0, qualitySequence0, map0);\n PhdBuilder phdBuilder0 = null;\n try {\n phdBuilder0 = new PhdBuilder(artificialPhd1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // initial capacity should be > 0 :0\n //\n verifyException(\"org.jcvi.jillion.internal.core.util.GrowableShortArray\", e);\n }\n }", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "@Test\n public void testDoubleNestedArray() {\n TupleMetadata schema = new SchemaBuilder()\n .add(\"a\", MinorType.INT)\n .addMapArray(\"m1\")\n .add(\"b\", MinorType.INT)\n .addMapArray(\"m2\")\n .add(\"c\", MinorType.INT)\n .addArray(\"d\", MinorType.VARCHAR)\n .resumeMap()\n .resumeSchema()\n .buildSchema();\n ResultSetLoaderImpl.ResultSetOptions options = new ResultSetOptionBuilder()\n .readerSchema(schema)\n .build();\n ResultSetLoader rsLoader = new ResultSetLoaderImpl(fixture.allocator(), options);\n RowSetLoader rootWriter = rsLoader.writer();\n rsLoader.startBatch();\n\n ScalarWriter aWriter = rootWriter.scalar(\"a\");\n ArrayWriter a1Writer = rootWriter.array(\"m1\");\n TupleWriter m1Writer = a1Writer.tuple();\n ScalarWriter bWriter = m1Writer.scalar(\"b\");\n ArrayWriter a2Writer = m1Writer.array(\"m2\");\n TupleWriter m2Writer = a2Writer.tuple();\n ScalarWriter cWriter = m2Writer.scalar(\"c\");\n ScalarWriter dWriter = m2Writer.array(\"d\").scalar();\n\n for (int i = 0; i < 5; i++) {\n rootWriter.start();\n aWriter.setInt(i);\n for (int j = 0; j < 4; j++) {\n int a1Key = i + 10 + j;\n bWriter.setInt(a1Key);\n for (int k = 0; k < 3; k++) {\n int a2Key = a1Key * 10 + k;\n cWriter.setInt(a2Key);\n for (int l = 0; l < 2; l++) {\n dWriter.setString(\"d-\" + (a2Key * 10 + l));\n }\n a2Writer.save();\n }\n a1Writer.save();\n }\n rootWriter.save();\n }\n\n RowSet results = fixture.wrap(rsLoader.harvest());\n RowSetReader reader = results.reader();\n\n ScalarReader aReader = reader.scalar(\"a\");\n ArrayReader a1Reader = reader.array(\"m1\");\n TupleReader m1Reader = a1Reader.tuple();\n ScalarReader bReader = m1Reader.scalar(\"b\");\n ArrayReader a2Reader = m1Reader.array(\"m2\");\n TupleReader m2Reader = a2Reader.tuple();\n ScalarReader cReader = m2Reader.scalar(\"c\");\n ArrayReader dArray = m2Reader.array(\"d\");\n ScalarReader dReader = dArray.scalar();\n\n for (int i = 0; i < 5; i++) {\n assertTrue(reader.next());\n assertEquals(i, aReader.getInt());\n for (int j = 0; j < 4; j++) {\n assertTrue(a1Reader.next());\n int a1Key = i + 10 + j;\n assertEquals(a1Key, bReader.getInt());\n for (int k = 0; k < 3; k++) {\n assertTrue(a2Reader.next());\n int a2Key = a1Key * 10 + k;\n assertEquals(a2Key, cReader.getInt());\n for (int l = 0; l < 2; l++) {\n assertTrue(dArray.next());\n assertEquals(\"d-\" + (a2Key * 10 + l), dReader.getString());\n }\n }\n }\n }\n rsLoader.close();\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 }", "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 }", "private BuilderUtils() {}", "public void testUnpackNothingMulti() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}});\n baggage.put(\"bag2\", new Object[][] {});\n baggage.put(\"bag3\", new Object[][] {{\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n results.check();\n assertTrue(\"Expect 0 output tuple emitted\", results.emitted.size() == 0);\n }", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\n }", "private SimpleData(Builder builder) {\n super(builder);\n }", "@Test\n @Named(\"Error message\")\n @Order(8)\n public void _errorMessage() throws Exception {\n final Procedure1<Boolean> _function = new Procedure1<Boolean>() {\n public void apply(final Boolean it) {\n final Procedure1<UsingTablesSpecExample> _function = new Procedure1<UsingTablesSpecExample>() {\n public void apply(final UsingTablesSpecExample it) {\n int _plus = (it.value1 + it.value2);\n boolean _doubleArrow = Should.operator_doubleArrow(Integer.valueOf(_plus), Integer.valueOf(it.sum));\n Assert.assertTrue(\"\\nExpected value1 + value2 => sum but\"\n + \"\\n value1 + value2 is \" + new StringDescription().appendValue(Integer.valueOf(_plus)).toString()\n + \"\\n value1 is \" + new StringDescription().appendValue(it.value1).toString()\n + \"\\n value2 is \" + new StringDescription().appendValue(it.value2).toString()\n + \"\\n sum is \" + new StringDescription().appendValue(Integer.valueOf(it.sum)).toString() + \"\\n\", _doubleArrow);\n \n }\n };\n ExampleTableIterators.<UsingTablesSpecExample>forEach(UsingTablesSpec.this.example, _function);\n }\n };\n String _errorMessage = Helpers.errorMessage(_function);\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"example failed\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| value1 | value2 | sum |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| <1> | <2> | <3> | \\u2713\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| <4> | <5> | <7> | \\u2718 (1)\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| <7> | <8> | <14> | \\u2718 (2)\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"(1) java.lang.AssertionError: \");\n _builder.newLine();\n _builder.append(\"Expected value1 + value2 => sum but\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 + value2 is <9>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 is <4>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value2 is <5>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"sum is <7>\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"(2) java.lang.AssertionError: \");\n _builder.newLine();\n _builder.append(\"Expected value1 + value2 => sum but\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 + value2 is <15>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 is <7>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value2 is <8>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"sum is <14>\");\n Helpers.is(_errorMessage, _builder);\n }", "public abstract Builder zza(List<String> list);", "public interface SequenceBuilder {\n\t\n\tString getString(String codeItemID, String aDeptCode);\n\t\n\tLong getLong(String codeItemID, String aDeptCode);\n\n}", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "static Stream<Arguments> randomSchemaWithValue() throws IOException {\n Fixture fixture = Fixture.of(TestUtils.createSession()).withRecords(Schema.Type.STRUCT);\n\n return Stream.of(Arguments.of(fixture, null, null),\n Arguments.of(fixture, SchemaBuilder.int8(), (byte)8),\n Arguments.of(fixture, SchemaBuilder.int16(), (short)16),\n Arguments.of(fixture, SchemaBuilder.int32(), (int)32),\n Arguments.of(fixture, SchemaBuilder.int64(), (long)64),\n Arguments.of(fixture, SchemaBuilder.float32(), (float)32.0),\n Arguments.of(fixture, SchemaBuilder.float64(), (double)64.0),\n Arguments.of(fixture, SchemaBuilder.bool(), true),\n Arguments.of(fixture, SchemaBuilder.string(), \"hi, dave\"));\n }", "private Tuples() {\n // prevent instantiation.\n }", "@org.junit.Test(timeout = 10000)\n public void testFoo_add44816() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n foos.add(io.protostuff.SerializableObjects.foo);\n foos.add(io.protostuff.SerializableObjects.foo);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testFoo_add44816__7 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testFoo_add44816__7, 509);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }", "@Test(expected=BuildException.class)\n\tpublic void testBuilderInvalid2() throws InvalidGrammarException, ParseException, BuildException\n\t{\n\t\tBnfParser parser = new BnfParser(ObjectBuilderTest.class.getResourceAsStream(\"data/DummyObject.bnf\"));\n\t\tParseNode tree = parser.parse(\"- 3 3\");\n\t\tInvalidBuilder db = new InvalidBuilder();\n\t\tdb.build(tree);\n\t}", "Builder addAbout(Thing.Builder value);", "@Test\n public void fieldBuilder() throws Exception {\n Document doc = new Document();\n\n // Below are three examples of field construction done using a field builder.\n // 1 - Single field:\n // Use a field builder to add a SYMBOL field which displays the ƒ (Florin) symbol.\n FieldBuilder builder = new FieldBuilder(FieldType.FIELD_SYMBOL);\n builder.addArgument(402);\n builder.addSwitch(\"\\\\f\", \"Arial\");\n builder.addSwitch(\"\\\\s\", 25);\n builder.addSwitch(\"\\\\u\");\n Field field = builder.buildAndInsert(doc.getFirstSection().getBody().getFirstParagraph());\n\n Assert.assertEquals(field.getFieldCode(), \" SYMBOL 402 \\\\f Arial \\\\s 25 \\\\u \");\n\n // 2 - Nested field:\n // Use a field builder to create a formula field used as an inner field by another field builder.\n FieldBuilder innerFormulaBuilder = new FieldBuilder(FieldType.FIELD_FORMULA);\n innerFormulaBuilder.addArgument(100);\n innerFormulaBuilder.addArgument(\"+\");\n innerFormulaBuilder.addArgument(74);\n\n // Create another builder for another SYMBOL field, and insert the formula field\n // that we have created above into the SYMBOL field as its argument. \n builder = new FieldBuilder(FieldType.FIELD_SYMBOL);\n builder.addArgument(innerFormulaBuilder);\n field = builder.buildAndInsert(doc.getFirstSection().getBody().appendParagraph(\"\"));\n\n // The outer SYMBOL field will use the formula field result, 174, as its argument,\n // which will make the field display the ® (Registered Sign) symbol since its character number is 174.\n Assert.assertEquals(\" SYMBOL \\u0013 = 100 + 74 \\u0014\\u0015 \", field.getFieldCode());\n\n // 3 - Multiple nested fields and arguments:\n // Now, we will use a builder to create an IF field, which displays one of two custom string values,\n // depending on the true/false value of its expression. To get a true/false value\n // that determines which string the IF field displays, the IF field will test two numeric expressions for equality.\n // We will provide the two expressions in the form of formula fields, which we will nest inside the IF field.\n FieldBuilder leftExpression = new FieldBuilder(FieldType.FIELD_FORMULA);\n leftExpression.addArgument(2);\n leftExpression.addArgument(\"+\");\n leftExpression.addArgument(3);\n\n FieldBuilder rightExpression = new FieldBuilder(FieldType.FIELD_FORMULA);\n rightExpression.addArgument(2.5);\n rightExpression.addArgument(\"*\");\n rightExpression.addArgument(5.2);\n\n // Next, we will build two field arguments, which will serve as the true/false output strings for the IF field.\n // These arguments will reuse the output values of our numeric expressions.\n FieldArgumentBuilder trueOutput = new FieldArgumentBuilder();\n trueOutput.addText(\"True, both expressions amount to \");\n trueOutput.addField(leftExpression);\n\n FieldArgumentBuilder falseOutput = new FieldArgumentBuilder();\n falseOutput.addNode(new Run(doc, \"False, \"));\n falseOutput.addField(leftExpression);\n falseOutput.addNode(new Run(doc, \" does not equal \"));\n falseOutput.addField(rightExpression);\n\n // Finally, we will create one more field builder for the IF field and combine all of the expressions. \n builder = new FieldBuilder(FieldType.FIELD_IF);\n builder.addArgument(leftExpression);\n builder.addArgument(\"=\");\n builder.addArgument(rightExpression);\n builder.addArgument(trueOutput);\n builder.addArgument(falseOutput);\n field = builder.buildAndInsert(doc.getFirstSection().getBody().appendParagraph(\"\"));\n\n Assert.assertEquals(\" IF \\u0013 = 2 + 3 \\u0014\\u0015 = \\u0013 = 2.5 * 5.2 \\u0014\\u0015 \" +\n \"\\\"True, both expressions amount to \\u0013 = 2 + 3 \\u0014\\u0015\\\" \" +\n \"\\\"False, \\u0013 = 2 + 3 \\u0014\\u0015 does not equal \\u0013 = 2.5 * 5.2 \\u0014\\u0015\\\" \", field.getFieldCode());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.SYMBOL.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SYMBOL.docx\");\n\n FieldSymbol fieldSymbol = (FieldSymbol) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_SYMBOL, \" SYMBOL 402 \\\\f Arial \\\\s 25 \\\\u \", \"\", fieldSymbol);\n Assert.assertEquals(\"ƒ\", fieldSymbol.getDisplayResult());\n\n fieldSymbol = (FieldSymbol) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_SYMBOL, \" SYMBOL \\u0013 = 100 + 74 \\u0014174\\u0015 \", \"\", fieldSymbol);\n Assert.assertEquals(\"®\", fieldSymbol.getDisplayResult());\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 100 + 74 \", \"174\", doc.getRange().getFields().get(2));\n\n TestUtil.verifyField(FieldType.FIELD_IF,\n \" IF \\u0013 = 2 + 3 \\u00145\\u0015 = \\u0013 = 2.5 * 5.2 \\u001413\\u0015 \" +\n \"\\\"True, both expressions amount to \\u0013 = 2 + 3 \\u0014\\u0015\\\" \" +\n \"\\\"False, \\u0013 = 2 + 3 \\u00145\\u0015 does not equal \\u0013 = 2.5 * 5.2 \\u001413\\u0015\\\" \",\n \"False, 5 does not equal 13\", doc.getRange().getFields().get(3));\n\n Document finalDoc = doc;\n Assert.assertThrows(AssertionError.class, () -> TestUtil.fieldsAreNested(finalDoc.getRange().getFields().get(2), finalDoc.getRange().getFields().get(3)));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2 + 3 \", \"5\", doc.getRange().getFields().get(4));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(4), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2.5 * 5.2 \", \"13\", doc.getRange().getFields().get(5));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(5), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2 + 3 \", \"\", doc.getRange().getFields().get(6));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(6), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2 + 3 \", \"5\", doc.getRange().getFields().get(7));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(7), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2.5 * 5.2 \", \"13\", doc.getRange().getFields().get(8));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(8), doc.getRange().getFields().get(3));\n }", "private XYPairs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "AstroArg unpack(Astro litChars);", "@Test\n @Named(\"accessing values\")\n @Order(1)\n public void _accessingValues() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"package bootstrap\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def myExamples{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| input | result | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hello World\\\" | \\\"HELLO WORLD\\\" | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hallo Welt\\\" | \\\"HALLO WELT\\\" |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"can be accessed via the table name\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"myExamples.forEach[ \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"input.toUpperCase should be result\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"] \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }", "@org.junit.Test(timeout = 10000)\n public void testEmptyBar_add5544() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(new io.protostuff.Bar());\n bars.add(new io.protostuff.Bar());\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyBar_add5544__9 = // MethodCallAdder\nwriteListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyBar_add5544__9, 3);\n writeListTo(out, bars, io.protostuff.SerializableObjects.bar.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Bar> parsedBars = parseListFrom(in, io.protostuff.SerializableObjects.bar.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedBars.size()) == (bars.size())));\n int i = 0;\n for (io.protostuff.Bar b : parsedBars)\n io.protostuff.SerializableObjects.assertEquals(bars.get((i++)), b);\n \n }", "private OTRGroupElementQuadMsg computeTuple(byte sigma, BigInteger alpha, BigInteger beta, GroupElement gAlpha) {\n\t\t//Sample random value gamma in [0, . . . , q-1]\n\t\tBigInteger gamma = BigIntegers.createRandomInRange(BigInteger.ZERO, qMinusOne, random);\n\t\t\n\t\t//Calculates g^beta, g^(alpha*beta), g^gamma.\n\t\tGroupElement g = dlog.getGenerator();\n\t\tGroupElement gBeta = dlog.exponentiate(g, beta);\n\t\tGroupElement gGamma = dlog.exponentiate(g, gamma);\n\t\tGroupElement gAlphaBeta = dlog.exponentiate(g, alpha.multiply(beta));\n\t\t\n\t\t//Create the tuple.\n\t\tif (sigma == 0){\n\t\t\treturn new OTRGroupElementQuadMsg(gAlpha.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gBeta.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gAlphaBeta.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gGamma.generateSendableData());\n\t\t}\n\t\telse {\n\t\t\treturn new OTRGroupElementQuadMsg(gAlpha.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gBeta.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gGamma.generateSendableData(), \n\t\t\t\t\t\t\t\t\t\t gAlphaBeta.generateSendableData());\n\t\t}\n\t}", "@Test\n public void testErrorTuple() throws Exception {\n TestBolt tb = spy(new TestBolt(true));\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).reportError(any(BoltProcessingException.class));\n }", "@VTID(13)\r\n java.lang.String getTuple();" ]
[ "0.7595559", "0.7298296", "0.6622004", "0.6369777", "0.63313496", "0.626919", "0.6204806", "0.6187241", "0.61731076", "0.6135138", "0.60675085", "0.60119236", "0.59789044", "0.594887", "0.5945981", "0.5916428", "0.5785475", "0.57767475", "0.57423455", "0.5696377", "0.5661042", "0.5660181", "0.5578051", "0.555301", "0.5535369", "0.55328673", "0.55208594", "0.55083096", "0.5468197", "0.54020816", "0.54019797", "0.5366071", "0.53460264", "0.5338258", "0.5325821", "0.5296514", "0.5268896", "0.52503234", "0.5237788", "0.52278686", "0.5219617", "0.5208525", "0.51997733", "0.5162775", "0.51620525", "0.5122858", "0.51199913", "0.51153433", "0.5112338", "0.5105433", "0.5102648", "0.5100613", "0.5089126", "0.50857854", "0.50685316", "0.50654465", "0.5055977", "0.50557876", "0.50532603", "0.50473464", "0.50140697", "0.5010683", "0.5008559", "0.5006375", "0.49993742", "0.49981532", "0.49902642", "0.49849442", "0.49794087", "0.49786466", "0.49719653", "0.49719203", "0.4969918", "0.4962325", "0.49529544", "0.4943078", "0.4942963", "0.4939744", "0.4921096", "0.4918796", "0.4908401", "0.49003205", "0.48997027", "0.48970068", "0.489018", "0.48900914", "0.48869655", "0.48746338", "0.48710373", "0.4868186", "0.48666286", "0.48638391", "0.4861915", "0.48551294", "0.4851353", "0.48509875", "0.48505178", "0.48434997", "0.48414946", "0.48158395" ]
0.7259623
2
Test the geo json tuple builder
@Test public void testGeoJsonTupleBuilder() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.GEOJSON); final Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608); Assert.assertEquals(expectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testTupleFile2() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getKey(), t.getKey());\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile();\n\n\t\tAssert.assertEquals(1, seenTuples.get());\n\t}", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testTupleFile4() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile(3);\n\n\t\tAssert.assertEquals(3, seenTuples.get());\n\t}", "@Test\n\tpublic void testTupleFile3() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getKey(), t.getKey());\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile(1);\n\n\t\tAssert.assertEquals(1, seenTuples.get());\n\t\tAssert.assertEquals(2, tupleFile.getProcessedLines());\n\t\tAssert.assertEquals(GEO_JSON_LINE, tupleFile.getLastReadLine());\n\t}", "@Test\n public void testPolygonExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.POLYGON, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"POLYGON 0.1 0.2 \\n\", print);\n }", "@Test\n public void addCoordinate(){\n final double[] location = {1.0, 2.0};\n body.setBodyCoordinate(location);\n assertEquals(\"check to see if it set correctly\", body.getBodyCoordinate(), location);\n }", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "@Test\r\n\tpublic void testGeoInBidRequest() throws Exception {\r\n\t\tInputStream is = Configuration.getInputStream(\"SampleBids/smaato.json\");\r\n\t\tBidRequest br = new BidRequest(is);\r\n\t\tassertEquals(br.getId(),\"K6t8sXXYdM\");\r\n\t\t\r\n\t\tMap m = new HashMap();\r\n\t\tm.put(\"lat\", 34.05);\r\n\t\tm.put(\"lon\",-118.25);\r\n\t\tm.put(\"range\",600000.0);\r\n\t\tList list = new ArrayList();\r\n\t\tlist.add(m);\r\n\t\t\r\n\t\tNode node = new Node(\"LATLON\",\"device.geo\", Node.INRANGE, list);\r\n \tnode.test(br);\r\n\t\tObjectNode map = (ObjectNode)node.getBRvalue();\r\n\t\tassertTrue((Double)map.get(\"lat\").doubleValue()==37.62);\r\n\t\tassertTrue((Double)map.get(\"lon\").doubleValue()==-122.38);\r\n\t\tassertTrue((Double)map.get(\"type\").doubleValue()==3);\r\n\t\t\r\n\t\tList<Map>test = new ArrayList();\r\n\t\ttest.add(m);\r\n\t\tnode = new Node(\"LATLON\",\"device.geo\", Node.INRANGE, test);\r\n\t\tnode.test(br);\r\n\r\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "public GeoJsonParserTests() throws BTWIllegalTimeException {\n this.file = null;\n /**********Setup variables for First simulator*********/\n simulatorOneRoad = Mockito.mock(MapSimulator.class);\n oneRoad = Mockito.mock(Road.class);\n Crossroad sourceCrossroad = Mockito.mock(Crossroad.class);\n Crossroad destCrossroad = Mockito.mock(Crossroad.class);\n\n Mockito.when(oneRoad.getName())\n .thenReturn(\"road1\");\n Mockito.when(oneRoad.getSourceCrossroad())\n .thenReturn(sourceCrossroad);\n Mockito.when(oneRoad.getSourceCrossroad().getCoordinateX())\n .thenReturn(6.0);\n Mockito.when(oneRoad.getSourceCrossroad().getCoordinateY())\n .thenReturn(7.2);\n Mockito.when(oneRoad.getDestinationCrossroad())\n .thenReturn(destCrossroad);\n Mockito.when(oneRoad.getDestinationCrossroad().getCoordinateX())\n .thenReturn(5.0);\n Mockito.when(oneRoad.getDestinationCrossroad().getCoordinateY())\n .thenReturn(5.0);\n Mockito.when(oneRoad.getRoadLength())\n .thenReturn(2);\n Mockito.when(oneRoad.getMinimumWeight())\n .thenReturn(BTWWeight.of(0));\n\n oneRoads = new HashSet<>();\n oneRoads.add(oneRoad);\n Mockito.when(simulatorOneRoad.getRoads())\n .thenAnswer(invocation -> this.oneRoads);\n\n /************Setup variables for Second simulator*********/\n simulatorOneTrafficLight = Mockito.mock(MapSimulator.class);\n oneTrafficLight = Mockito.mock(TrafficLight.class);\n Mockito.when(oneTrafficLight.getCoordinateX())\n .thenReturn(4.5);\n Mockito.when(oneTrafficLight.getCoordinateY())\n .thenReturn(4.5);\n Mockito.when(oneTrafficLight.getName())\n .thenReturn(\"From roze st to Eve st\");\n Mockito.when(oneTrafficLight.getMinimumWeight())\n .thenReturn(BTWWeight.of(0));\n\n oneTraffics = new HashSet<>();\n oneTraffics.add(oneTrafficLight);\n Mockito.when(simulatorOneTrafficLight.getTrafficLights())\n .thenAnswer(invocation -> this.oneTraffics);\n }", "@Test\n public void test3() throws Exception {\n GeoCoder g = new GeoCoder();\n String zip = \"12028\";\n String state = \"New York\";\n String city = \"Buskirk\";\n String address = \"\";\n g = g.geoCoding(address, city, state, zip);\n }", "public void testGPS() {\n\t\tgps = new GPSTracker(gps);\n \tdouble [] coordinate = new double[2];\n\t\tdouble latitude = gps.getLatitude();\n\t\tdouble longitude = gps.getLongitude();\n\t\tcoordinate[0] = latitude;\n\t\tcoordinate[1] = longitude;\n\t\tassertTrue(Math.floor(latitude) == 0 && Math.floor(longitude) == 0);\n\t\t\n\t\tString address = GeoCoder.toAdress(53.5267620,-113.5271460);\n\t\tLog.d(LOG_TAG, address);\n\t\tString testAddress = \"Edmonton, Alberta/CA\";\n\t\tLog.d(LOG_TAG, testAddress);\n\t\tassertEquals(address, testAddress);\n\t\t\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void test2() throws Exception {\n GeoCoder g = new GeoCoder();\n String country = \"Saint Clair\";\n String zip = \"35004\";\n String state = \"Alabama\";\n String city = \"Moody\";\n String address = \"\";\n g.geoCoding(address, city, state, zip);\n }", "@Test\r\n public void testGeneratePolygonMeshBuilder()\r\n {\r\n EasyMockSupport support = new EasyMockSupport();\r\n\r\n MapManager mapManager = support.createMock(MapManager.class);\r\n\r\n support.replayAll();\r\n\r\n EllipsoidGeometryBuilder<GeographicPosition> builder = new EllipsoidGeometryBuilder<>(mapManager);\r\n builder.setAxisAMeters(EllipsoidTestUtils.AXIS_A);\r\n builder.setAxisBMeters(EllipsoidTestUtils.AXIS_B);\r\n builder.setAxisCMeters(EllipsoidTestUtils.AXIS_C);\r\n builder.setQuality(EllipsoidTestUtils.QUALITY);\r\n builder.setColor(Color.RED);\r\n\r\n List<List<Position>> expectedPositions = EllipsoidTestUtils.getExpectedPositions();\r\n List<Position> combinedExpected = New.list();\r\n for (List<Position> strip : expectedPositions)\r\n {\r\n combinedExpected.addAll(strip);\r\n }\r\n\r\n Builder<Position> meshBuilder = builder.generatePolygonMeshBuilder();\r\n List<? extends Color> colors = meshBuilder.getColors();\r\n assertEquals(combinedExpected.size(), colors.size());\r\n for (Color color : colors)\r\n {\r\n assertEquals(Color.RED, color);\r\n }\r\n\r\n assertEquals(AbstractRenderer.TRIANGLE_STRIP_VERTEX_COUNT, meshBuilder.getPolygonVertexCount());\r\n\r\n List<? extends Position> positions = meshBuilder.getPositions();\r\n assertEquals(combinedExpected.size(), positions.size());\r\n int index = 0;\r\n for (Position position : positions)\r\n {\r\n assertEquals(combinedExpected.get(index).asVector3d(), position.asVector3d());\r\n index++;\r\n }\r\n\r\n List<Vector3d> expectedNormals = EllipsoidTestUtils.calculateExpectedNormals(expectedPositions);\r\n assertEquals(combinedExpected.size(), expectedNormals.size());\r\n List<? extends Vector3d> actualNormals = meshBuilder.getNormals();\r\n assertEquals(combinedExpected.size(), actualNormals.size());\r\n assertEquals(expectedNormals, actualNormals);\r\n\r\n support.verifyAll();\r\n }", "@Test\n public void testAddCity_3args02() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"cityTest\";\n Pair coordenates = new Pair(41.200000, -8.000000);\n int points = 30;\n\n boolean result = sn10.addCity(coordenates, cityName, points);\n assertTrue(result);\n }", "@Test\n public void testAddCity_3args04() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"city0\";\n Pair coordenates = new Pair(41.243345, -8.674084);\n int points = 28;\n\n boolean result = sn10.addCity(coordenates, cityName, points);\n assertFalse(result);\n }", "void buildCity(VertexLocation vert);", "public interface GeoData{\r\n /**\r\n * Most geodata sets contain features for which there is no data, or the data is missing.<br>\r\n * In these cases a specific value is often used to represent these special cases.<p>\r\n * The static final value MISSING is the default value used by GeoDatas to represent\r\n * these cases.\r\n * @see #setMissingValueCode\r\n * @see #getMissingValueCode\r\n */\r\n public static final double MISSING = Double.NaN;\r\n\r\n\t\t/** \r\n\t\t * All geodata have a type - this is particularly important when\r\n\t\t * interfacing with other data sources/formats.\r\n\t\t * @see #setDataType\r\n\t\t * @see #getDataType\r\n\t\t */\r\n\t\tpublic static final int CHARACTER = 0;\r\n\t\tpublic static final int INTEGER = 1;\r\n\t\tpublic static final int FLOATING = 2;\r\n \r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n * @author James Macgill JM\r\n * @return String The name associated with this GeoData.\r\n */\r\n String getName();\r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param name_ The name to be associated with this GeoData.\r\n */\r\n void setName(String name_);\r\n \r\n \r\n /**\r\n * looks up and matches a value to the specifed feature id.<br>\r\n * Used for example by shaders to obtain vaules for thematic mapping.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature id to retreve a value for.\r\n * @return double The value for the specified id, if no id matches the one given then the value specifed by setMissingValue should be returned.\r\n * @see #setMissingValue\r\n */\r\n double getValue(int id);\r\n \r\n /**\r\n * Looks up and retreves a string for the specifed feature id.<br>\r\n * Used for example by the ToolTip feature in Themes to provide tool tip text for each feature.\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature to retreve the text for.\r\n * @return String A piece of text for the chosen feature id. If no id matches then an empty string should be returned \" \"\r\n */\r\n String getText(int id);\r\n \r\n /**\r\n * In order to allow systems to iterate through all of the data contained within the GeoData object this\r\n * method provides a list of all of the IDs which have associated values stored.\r\n *\r\n * @author James Macgill JM\r\n * @return Enumeration An enumeration of all of the IDs which can then be iterated through.\r\n */\r\n Enumeration getIds();\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * By default that value is set to MISSING, however this behavoir can be changed by calling this method with a new value.<br>\r\n * \r\n * @see #getMissingValueCode\r\n * @author James Macgill JM\r\n * @param mv A double containing the new value to represent missing data.\r\n */\r\n public void setMissingValueCode(double mv);\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * A call to this method will return the current code in use to represent that situation.<br>\r\n *\r\n * @see #setMissingValueCode\r\n * @author James Macgill JM\r\n * @return double The current value representing missing data.\r\n */ \r\n public double getMissingValueCode();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The largest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMax();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The smallest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMin();\r\n \r\n /**\r\n * The total number of stored id/value pairs stored in this GeoData.\r\n * @author James Macgill JM\r\n * @return int The number of values stored in this GeoData.\r\n */\r\n int getSize();\r\n \r\n /**\r\n * The total number of stored values stored in this GeoData which equal the missing value code.\r\n * @author James Macgill JM\r\n * @return int The number of missing values stored in this GeoData.\r\n */\r\n int getMissingCount();\r\n\r\n\t\t/** \r\n\t\t * Gets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.CHARACTER</li> \r\n\t\t * <li>Integer - GeoData.INTEGER</li>\r\n\t\t * <li>Double - GeoData.FLOATING</li></ul>\r\n\t\t */\r\n\t\t int getDataType();\r\n\t\t/** \r\n\t\t * Sets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.character</li> \r\n\t\t * <li>Integer - GeoData.integer</li>\r\n\t\t * <li>Double - GeoData.float</li></ul>\r\n\t\t */\r\n\t\t void setDataType(int type );\r\n}", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n public void testLocation() throws Exception {\n GeoCoder g = new GeoCoder();\n String location = \"Eastern,NY\";\n g.geoCoding(location);\n }", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "public static void main(String[] args) {\n JSONParser jsonParser = new JSONParser();\n\n try (FileReader reader = new FileReader(\"countries.geojson\")) {\n // lecture du fichier\n Object obj = jsonParser.parse(reader);\n JSONObject feature = (JSONObject) obj;\n\n JSONArray jsonArray = (JSONArray) feature.get(\"features\");\n\n final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n final DocumentBuilder builder = factory.newDocumentBuilder();\n\n final Document document = builder.newDocument();\n\n final Element kmlTag = document.createElement(\"kml\");\n kmlTag.setAttribute(\"xmlns\", \"http://www.opengis.net/kml/2.2\");\n document.appendChild(kmlTag);\n\n final Element documentTag = document.createElement(\"Document\");\n kmlTag.appendChild(documentTag);\n\n for (Object feat : jsonArray) {\n final Element placeMark = document.createElement(\"Placemark\");\n documentTag.appendChild(placeMark);\n\n JSONObject featJ = (JSONObject) feat;\n\n JSONObject featJSON = (JSONObject) featJ.get(\"properties\");\n Properties properties = new Properties((String) featJSON.get(\"ADMIN\"), (String) featJSON.get(\"ISO_A3\"));\n JSONObject coordJSON = (JSONObject) featJ.get(\"geometry\");\n String type = (String) coordJSON.get(\"type\");\n String titre = \"(\" + properties.getIsoA3() + \") \" + properties.getAdmin();\n\n Element extData = document.createElement(\"ExtendedData\");\n placeMark.appendChild(extData);\n\n Element dataAdmin = document.createElement(\"Data\");\n dataAdmin.setAttribute(\"name\", \"ADMIN\");\n extData.appendChild(dataAdmin);\n\n Element dataISO = document.createElement(\"Data\");\n dataISO.setAttribute(\"name\", \"ISO_A3\");\n extData.appendChild(dataISO);\n\n Element valueAdmin = document.createElement(\"value\");\n valueAdmin.appendChild(document.createTextNode(properties.getAdmin()));\n dataAdmin.appendChild(valueAdmin);\n\n Element valueISO = document.createElement(\"value\");\n valueISO.appendChild(document.createTextNode(properties.getIsoA3()));\n dataISO.appendChild(valueISO);\n\n System.out.println(titre);\n if (type.equals(\"Polygon\")){\n Element polygon = document.createElement(\"Polygon\");\n placeMark.appendChild(polygon);\n\n Element outerBoundaryIs = document.createElement(\"outerBoundaryIs\");\n polygon.appendChild(outerBoundaryIs);\n\n Element linearRing = document.createElement(\"LinearRing\");\n outerBoundaryIs.appendChild(linearRing);\n\n Element coordinates = document.createElement(\"coordinates\");\n\n JSONArray coords = (JSONArray) coordJSON.get(\"coordinates\");\n for (Object coord: coords){\n JSONArray coordJ = (JSONArray) coord;\n for (Object o : coordJ) {\n StringBuilder sb = new StringBuilder(o.toString());\n sb.deleteCharAt(0);\n sb.deleteCharAt(sb.length() - 1);\n sb.append(\" \");\n coordinates.appendChild(document.createTextNode(sb.toString()));\n }\n linearRing.appendChild(coordinates);\n\n String nbCoord = \"\\t - \" + coordJ.size() + \" coordinates\";\n System.out.println(nbCoord);\n\n }\n } else if (type.equals(\"MultiPolygon\")){\n Element multiGeometry = document.createElement(\"MultiGeometry\");\n placeMark.appendChild(multiGeometry);\n\n Element polygon = document.createElement(\"Polygon\");\n multiGeometry.appendChild(polygon);\n\n Element outerBoundaryIs = document.createElement(\"outerBoundaryIs\");\n polygon.appendChild(outerBoundaryIs);\n\n Element linearRing = document.createElement(\"LinearRing\");\n outerBoundaryIs.appendChild(linearRing);\n\n Element coordinates = document.createElement(\"coordinates\");\n\n JSONArray coords = (JSONArray) coordJSON.get(\"coordinates\");\n for (Object coord : coords) {\n JSONArray coordJ = (JSONArray) coord;\n for (Object c : coordJ){\n JSONArray c1 = (JSONArray) c;\n for (Object o : c1){\n StringBuilder sb = new StringBuilder(o.toString());\n sb.deleteCharAt(0);\n sb.deleteCharAt(sb.length() - 1);\n sb.append(\" \");\n coordinates.appendChild(document.createTextNode(sb.toString()));\n }\n linearRing.appendChild(coordinates);\n\n String nbCoord = \"\\t - \" + c1.size() + \" coordinates\";\n System.out.println(nbCoord);\n }\n }\n } else {\n throw new Error(\"Type mal forme !\");\n }\n }\n\n // Etape 7 : finalisation\n final TransformerFactory transformerFactory = TransformerFactory.newInstance();\n final Transformer transformer = transformerFactory.newTransformer();\n final DOMSource source = new DOMSource(document);\n final StreamResult sortie = new StreamResult(new File(\"src/output.kml\"));\n\n //prologue\n document.setXmlStandalone(true);\n document.setXmlVersion(\"1.0\");\n transformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n\n //formatage\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"2\");\n\n //sortie\n transformer.transform(source, sortie);\n\n } catch (IOException | ParseException | ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testToFromObjectinvalid() throws GeoportalException, JsonHelperException {\n\n GeoportalRequestObject requestObject = new GeoportalRequestDataObject(random.nextDouble(), random.nextDouble());\n String jsonObject = JsonHelper.toJson(requestObject);\n assertNotNull(jsonObject);\n\n for (int i = 0; i < 9; i++) {\n if (jsonObject.contains(\"\" + i)) {\n jsonObject = jsonObject.replace(\"\" + i, \"\" + (i + 1));\n break;\n }\n }\n GeoportalRequestObject restoredObject = JsonHelper.fromJson(jsonObject, GeoportalRequestDataObject.class);\n assertFalse(requestObject.equals(restoredObject));\n }", "private static void testGetCoordinates(GeoCoderInterface geoCoder, String address, String language){\n\t\tSystem.out.println(\"--From address:\");\n\t\tGeoCoderResult result = geoCoder.getCoordinates(address, language);\n\t\tprintGeoCoderResult(result);\n\t}", "void mo5802a(LatLng latLng);", "@Test\n\tpublic void testIfCoordinatesAreValid()\n\t{\n\t\tData d = new Data();\n\t\tCoordinate c = d.getCoordinate(0); // at index 0 is the king's default location (5, 5)\n\t\tassertEquals(c.getX(), 5);\n\t\tassertEquals(c.getY(), 5);\t\n\t}", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n Integer integer0 = new Integer(55);\n JSONObject jSONObject1 = jSONObject0.append(\"Substring bounds error\", integer0);\n jSONObject1.getJSONArray(\"Substring bounds error\");\n jSONObject1.append(\"Bad value from toJSONString: \", integer0);\n String string0 = jSONObject1.optString(\"Substring bounds error\", \"num\");\n assertNotNull(string0);\n }", "private void generateLayerWaypoints() {\n\t\tJSONObject geoJsonWaypoints = new JSONObject();\r\n\r\n\t\tgeoJsonWaypoints.put(\"type\", \"FeatureCollection\");\r\n\t\t// complete geoJsonWayPoints\r\n\t\tgeoJsonWaypoints.put(\"features\", _waypointsFeatures);\r\n\r\n\t\t// generate private String from geoJsonAirportsObject\r\n\t\t_waypointsLayerString = geoJsonWaypoints.toString();\r\n\r\n\t\t// implementation of a Map interface.\r\n\r\n\t\tfor (int i = 0; i < _waypointsFeatures.length(); i++) {\r\n\t\t\t// Retrieve the id of point\r\n\t\t\tJSONObject featureObj = _waypointsFeatures.optJSONObject(i);\r\n\t\t\tString id;\r\n\t\t\ttry {\r\n\t\t\t\tid = featureObj.getString(\"id\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"Y'a pas d'id !\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// Retrieve coordinates of point\r\n\t\t\tJSONObject geometryObj = featureObj.getJSONObject(\"geometry\");\r\n\t\t\tJSONArray coordinatesArray = geometryObj.getJSONArray(\"coordinates\");\r\n\t\t\tfloat lon = coordinatesArray.getFloat(0);\r\n\t\t\tfloat lat = coordinatesArray.getFloat(1);\r\n\r\n\t\t\t// Retrieve type of point\r\n\t\t\tJSONObject geometryO = featureObj.getJSONObject(\"geometry\");\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tString typePoint = geometryO.getString(\"type\");\r\n\t\t\t// to check if the data retrieve is correct\r\n\t\t\t// System.out.println(\"TOTO : \" + id + \", \" + longitude + \", \" + latitude);\r\n\r\n\t\t\t// Create a Point2D to add it to the dictionary\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tPoint2D pt = new Point2D.Float(lon, lat);\r\n\r\n\t\t\t// add points to dictionary ( id is the \"key\", latitude and longitude are\r\n\t\t\t// the\"value\")\r\n\t\t\t_dictWaypoints.put(id, featureObj);\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testMapOfMapsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapMap.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapMap.get(\"value\" + (i + 1)).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapMap.get(\"value\" + (i + 1)).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapMap\\\":{\\\"value3\\\":{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}},\\\"value1\\\":{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},\\\"value2\\\":{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}}}\"));\n }", "private final void zaa(java.lang.StringBuilder r10, java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>> r11, android.os.Parcel r12) {\n /*\n r9 = this;\n android.util.SparseArray r0 = new android.util.SparseArray\n r0.<init>()\n java.util.Set r11 = r11.entrySet()\n java.util.Iterator r11 = r11.iterator()\n L_0x000d:\n boolean r1 = r11.hasNext()\n if (r1 == 0) goto L_0x0027\n java.lang.Object r1 = r11.next()\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1\n java.lang.Object r2 = r1.getValue()\n com.google.android.gms.common.server.response.FastJsonResponse$Field r2 = (com.google.android.gms.common.server.response.FastJsonResponse.Field) r2\n int r2 = r2.getSafeParcelableFieldId()\n r0.put(r2, r1)\n goto L_0x000d\n L_0x0027:\n r11 = 123(0x7b, float:1.72E-43)\n r10.append(r11)\n int r11 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.validateObjectHeader(r12)\n r1 = 1\n r2 = 0\n r3 = 0\n L_0x0033:\n int r4 = r12.dataPosition()\n if (r4 >= r11) goto L_0x0262\n int r4 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readHeader(r12)\n int r5 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.getFieldId(r4)\n java.lang.Object r5 = r0.get(r5)\n java.util.Map$Entry r5 = (java.util.Map.Entry) r5\n if (r5 == 0) goto L_0x0033\n if (r3 == 0) goto L_0x0050\n java.lang.String r3 = \",\"\n r10.append(r3)\n L_0x0050:\n java.lang.Object r3 = r5.getKey()\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r5 = r5.getValue()\n com.google.android.gms.common.server.response.FastJsonResponse$Field r5 = (com.google.android.gms.common.server.response.FastJsonResponse.Field) r5\n java.lang.String r6 = \"\\\"\"\n r10.append(r6)\n r10.append(r3)\n java.lang.String r3 = \"\\\":\"\n r10.append(r3)\n boolean r3 = r5.zacn()\n if (r3 == 0) goto L_0x010a\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x00f9;\n case 1: goto L_0x00f4;\n case 2: goto L_0x00eb;\n case 3: goto L_0x00e2;\n case 4: goto L_0x00d9;\n case 5: goto L_0x00d4;\n case 6: goto L_0x00cb;\n case 7: goto L_0x00c6;\n case 8: goto L_0x00c1;\n case 9: goto L_0x00c1;\n case 10: goto L_0x0097;\n case 11: goto L_0x008f;\n default: goto L_0x0074;\n }\n L_0x0074:\n java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException\n int r11 = r5.zapt\n r12 = 36\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>(r12)\n java.lang.String r12 = \"Unknown field out type = \"\n r0.append(r12)\n r0.append(r11)\n java.lang.String r11 = r0.toString()\n r10.<init>(r11)\n throw r10\n L_0x008f:\n java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException\n java.lang.String r11 = \"Method does not accept concrete type.\"\n r10.<init>(r11)\n throw r10\n L_0x0097:\n android.os.Bundle r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBundle(r12, r4)\n java.util.HashMap r4 = new java.util.HashMap\n r4.<init>()\n java.util.Set r6 = r3.keySet()\n java.util.Iterator r6 = r6.iterator()\n L_0x00a8:\n boolean r7 = r6.hasNext()\n if (r7 == 0) goto L_0x00bc\n java.lang.Object r7 = r6.next()\n java.lang.String r7 = (java.lang.String) r7\n java.lang.String r8 = r3.getString(r7)\n r4.put(r7, r8)\n goto L_0x00a8\n L_0x00bc:\n java.lang.Object r3 = zab(r5, (java.lang.Object) r4)\n goto L_0x0105\n L_0x00c1:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n goto L_0x0101\n L_0x00c6:\n java.lang.String r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r12, r4)\n goto L_0x0101\n L_0x00cb:\n boolean r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBoolean(r12, r4)\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r3)\n goto L_0x0101\n L_0x00d4:\n java.math.BigDecimal r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimal(r12, r4)\n goto L_0x0101\n L_0x00d9:\n double r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r12, r4)\n java.lang.Double r3 = java.lang.Double.valueOf(r3)\n goto L_0x0101\n L_0x00e2:\n float r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readFloat(r12, r4)\n java.lang.Float r3 = java.lang.Float.valueOf(r3)\n goto L_0x0101\n L_0x00eb:\n long r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r12, r4)\n java.lang.Long r3 = java.lang.Long.valueOf(r3)\n goto L_0x0101\n L_0x00f4:\n java.math.BigInteger r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigInteger(r12, r4)\n goto L_0x0101\n L_0x00f9:\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r12, r4)\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n L_0x0101:\n java.lang.Object r3 = zab(r5, (java.lang.Object) r3)\n L_0x0105:\n r9.zab((java.lang.StringBuilder) r10, (com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>) r5, (java.lang.Object) r3)\n goto L_0x025f\n L_0x010a:\n boolean r3 = r5.zapu\n if (r3 == 0) goto L_0x0188\n java.lang.String r3 = \"[\"\n r10.append(r3)\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x017d;\n case 1: goto L_0x0175;\n case 2: goto L_0x016d;\n case 3: goto L_0x0165;\n case 4: goto L_0x015d;\n case 5: goto L_0x0158;\n case 6: goto L_0x0150;\n case 7: goto L_0x0148;\n case 8: goto L_0x0140;\n case 9: goto L_0x0140;\n case 10: goto L_0x0140;\n case 11: goto L_0x0120;\n default: goto L_0x0118;\n }\n L_0x0118:\n java.lang.IllegalStateException r10 = new java.lang.IllegalStateException\n java.lang.String r11 = \"Unknown field type out.\"\n r10.<init>(r11)\n throw r10\n L_0x0120:\n android.os.Parcel[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcelArray(r12, r4)\n int r4 = r3.length\n r6 = 0\n L_0x0126:\n if (r6 >= r4) goto L_0x0184\n if (r6 <= 0) goto L_0x012f\n java.lang.String r7 = \",\"\n r10.append(r7)\n L_0x012f:\n r7 = r3[r6]\n r7.setDataPosition(r2)\n java.util.Map r7 = r5.zacq()\n r8 = r3[r6]\n r9.zaa((java.lang.StringBuilder) r10, (java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>>) r7, (android.os.Parcel) r8)\n int r6 = r6 + 1\n goto L_0x0126\n L_0x0140:\n java.lang.UnsupportedOperationException r10 = new java.lang.UnsupportedOperationException\n java.lang.String r11 = \"List of type BASE64, BASE64_URL_SAFE, or STRING_MAP is not supported\"\n r10.<init>(r11)\n throw r10\n L_0x0148:\n java.lang.String[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createStringArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeStringArray(r10, r3)\n goto L_0x0184\n L_0x0150:\n boolean[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBooleanArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (boolean[]) r3)\n goto L_0x0184\n L_0x0158:\n java.math.BigDecimal[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimalArray(r12, r4)\n goto L_0x0179\n L_0x015d:\n double[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createDoubleArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (double[]) r3)\n goto L_0x0184\n L_0x0165:\n float[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createFloatArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (float[]) r3)\n goto L_0x0184\n L_0x016d:\n long[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createLongArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (long[]) r3)\n goto L_0x0184\n L_0x0175:\n java.math.BigInteger[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigIntegerArray(r12, r4)\n L_0x0179:\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (T[]) r3)\n goto L_0x0184\n L_0x017d:\n int[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createIntArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (int[]) r3)\n L_0x0184:\n java.lang.String r3 = \"]\"\n goto L_0x0227\n L_0x0188:\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x0258;\n case 1: goto L_0x0250;\n case 2: goto L_0x0248;\n case 3: goto L_0x0240;\n case 4: goto L_0x0238;\n case 5: goto L_0x0233;\n case 6: goto L_0x022b;\n case 7: goto L_0x0215;\n case 8: goto L_0x0207;\n case 9: goto L_0x01f9;\n case 10: goto L_0x01a5;\n case 11: goto L_0x0195;\n default: goto L_0x018d;\n }\n L_0x018d:\n java.lang.IllegalStateException r10 = new java.lang.IllegalStateException\n java.lang.String r11 = \"Unknown field type out\"\n r10.<init>(r11)\n throw r10\n L_0x0195:\n android.os.Parcel r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcel(r12, r4)\n r3.setDataPosition(r2)\n java.util.Map r4 = r5.zacq()\n r9.zaa((java.lang.StringBuilder) r10, (java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>>) r4, (android.os.Parcel) r3)\n goto L_0x025f\n L_0x01a5:\n android.os.Bundle r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBundle(r12, r4)\n java.util.Set r4 = r3.keySet()\n r4.size()\n java.lang.String r5 = \"{\"\n r10.append(r5)\n java.util.Iterator r4 = r4.iterator()\n r5 = 1\n L_0x01ba:\n boolean r6 = r4.hasNext()\n if (r6 == 0) goto L_0x01f6\n java.lang.Object r6 = r4.next()\n java.lang.String r6 = (java.lang.String) r6\n if (r5 != 0) goto L_0x01cd\n java.lang.String r5 = \",\"\n r10.append(r5)\n L_0x01cd:\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n r10.append(r6)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n java.lang.String r5 = \":\"\n r10.append(r5)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n java.lang.String r5 = r3.getString(r6)\n java.lang.String r5 = com.google.android.gms.common.util.JsonUtils.escapeString(r5)\n r10.append(r5)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n r5 = 0\n goto L_0x01ba\n L_0x01f6:\n java.lang.String r3 = \"}\"\n goto L_0x0227\n L_0x01f9:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.Base64Utils.encodeUrlSafe(r3)\n goto L_0x0222\n L_0x0207:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.Base64Utils.encode(r3)\n goto L_0x0222\n L_0x0215:\n java.lang.String r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.JsonUtils.escapeString(r3)\n L_0x0222:\n r10.append(r3)\n java.lang.String r3 = \"\\\"\"\n L_0x0227:\n r10.append(r3)\n goto L_0x025f\n L_0x022b:\n boolean r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBoolean(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0233:\n java.math.BigDecimal r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimal(r12, r4)\n goto L_0x0254\n L_0x0238:\n double r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0240:\n float r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readFloat(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0248:\n long r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0250:\n java.math.BigInteger r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigInteger(r12, r4)\n L_0x0254:\n r10.append(r3)\n goto L_0x025f\n L_0x0258:\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r12, r4)\n r10.append(r3)\n L_0x025f:\n r3 = 1\n goto L_0x0033\n L_0x0262:\n int r0 = r12.dataPosition()\n if (r0 != r11) goto L_0x026e\n r11 = 125(0x7d, float:1.75E-43)\n r10.append(r11)\n return\n L_0x026e:\n com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException r10 = new com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException\n r0 = 37\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Overread allowed size end=\"\n r1.append(r0)\n r1.append(r11)\n java.lang.String r11 = r1.toString()\n r10.<init>(r11, r12)\n throw r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.server.response.SafeParcelResponse.zaa(java.lang.StringBuilder, java.util.Map, android.os.Parcel):void\");\n }", "@Test\n\tpublic void validSpawn() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tassertTrue(\"Should be able to be set to 0,0\", gameState.addSpawn(new Location(0, 0)));\n\t}", "@Test\n\tvoid testCheckCoordinates1() {\n\t\tassertTrue(DataChecker.checkCoordinate(1));\n\t}", "Geq createGeq();", "public MergeGeoTupleCreator() {\n blockingStrategy = BlockingStrategy.STANDARD_BLOCKING;\n }", "@Test\n public void testMapWithSchema() {\n String json =\n \"{a: 6}\\n\" +\n \"{a: 5, m: null}\\n\" +\n \"{a: 4, m: {}}\\n\" +\n \"{a: 2, m: {b: 110}}\\n\" +\n \"{a: 3, m: {c: 220}}\\n\" +\n \"{a: 1, m: {b: 10, c: 20}}\\n\" +\n \"{a: 7, m: {b: 710, c: 720}}\";\n\n TupleMetadata schema = new SchemaBuilder()\n .addNullable(\"a\", MinorType.BIGINT)\n .addMap(\"m\")\n .addNullable(\"b\", MinorType.BIGINT)\n .addNullable(\"c\", MinorType.BIGINT)\n .resumeSchema()\n .build();\n\n JsonLoaderFixture loader = new JsonLoaderFixture();\n loader.builder.providedSchema(schema);\n loader.open(json);\n RowSet results = loader.next();\n assertNotNull(results);\n\n RowSet expected = fixture.rowSetBuilder(schema)\n .addRow(6L, mapValue(null, null))\n .addRow(5L, mapValue(null, null))\n .addRow(4L, mapValue(null, null))\n .addRow(2L, mapValue(110L, null))\n .addRow(3L, mapValue(null, 220L))\n .addRow(1L, mapValue(10L, 20L))\n .addRow(7L, mapValue(710L, 720L))\n .build();\n RowSetUtilities.verify(expected, results);\n assertNull(loader.next());\n loader.close();\n }", "void createPoint(JsonObject jsonMetadata, Handler<AsyncResult<String>> resultHandler);", "@Test\r\n public void testCalculerValeurTerrainAgricole() {\n Lot lot1 = new Lot(\"Lot1\", 2, 0, 300, \"14-02-2019\");\r\n Lot lot2 = new Lot(\"Lot2\", 2, 0, 600, \"12-06-2019\");\r\n Lot lot3 = new Lot(\"Lot3\", 2, 0, 1500, \"04-02-2019\");\r\n List<Lot> lots = new ArrayList();\r\n lots.add(lot1);\r\n lots.add(lot2);\r\n lots.add(lot3);\r\n // Terrain (typeTerrain, prix_min2, prix_min2, listLot)\r\n Terrain terrain = new Terrain(0, 50.00, 75.00, lots);\r\n Agricole.calculerValeurTerrainAgricole(terrain);\r\n // valFonciereAttendue = 50.0*300 + 50.0*600 + 50.0*1500 + 733.77 +\r\n // nbreDroitPassage = 500-(2*(5/100*300*50)) + 500-(2*(5/100*600*50))+\r\n // 500-(2*(5/100*1500*50)\r\n double valFonciereAttendue = 110233.8;\r\n double taxeScolaireAttendue=1322.85;\r\n double taxeMunicipaleAttendue = 2755.85;\r\n boolean resultat = valFonciereAttendue == terrain.getValeur_fonciere_totale()\r\n && taxeScolaireAttendue == terrain.getTaxe_scolaire()\r\n && taxeMunicipaleAttendue == terrain.getTaxe_municipale();\r\n assertTrue(\"valfoncièreAttendue: \" + valFonciereAttendue+\", vs valeur obtenue: \"+terrain.getValeur_fonciere_totale()\r\n + \"\\ntaxe scolaire attendue: \" + taxeScolaireAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_scolaire()\r\n + \"\\ntaxe muninipale attendue: \" + taxeMunicipaleAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_municipale(), \r\n resultat); \r\n \r\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test(expected=IOException.class)\n\tpublic void testTupleFile1() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\n\t\ttempFile.delete();\n\t\tAssert.assertFalse(tempFile.exists());\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\ttupleFile.processFile();\n\t}", "@Test\n public void getLocationById() throws Exception {\n }", "public void createGeoJson(int pofetIndex, String fileName) throws IOException {\n List<GridHazards> result = run();\n\n double min = Double.MAX_VALUE;\n double max = Double.MIN_VALUE;\n for (GridHazards hazards : result) {\n double value = hazards.hazardsAtPOfEts.get(pofetIndex);\n if (value < min) {\n min = value;\n }\n if (value > max) {\n max = value;\n }\n }\n\n double sp = spacing * 0.5;\n\n try (PrintWriter out = new PrintWriter(new FileWriter(fileName))) {\n out.println(\"{\\n\" +\n \" \\\"type\\\": \\\"FeatureCollection\\\",\\n\" +\n \" \\\"features\\\": [\");\n\n boolean previous = false;\n\n for (GridHazards hazards : result) {\n double value = hazards.hazardsAtPOfEts.get(pofetIndex);\n double lat = hazards.location.getLatitude();\n double lon = hazards.location.getLongitude();\n if (!Double.isNaN(value)) {\n\n if (previous) {\n out.println(\",\");\n } else {\n previous = true;\n }\n\n out.println(\"{\\\"type\\\": \\\"Feature\\\",\\n\" +\n \" \\\"geometry\\\": {\\n\" +\n \" \\\"type\\\": \\\"Polygon\\\",\\n\" +\n \" \\\"coordinates\\\": [[\");\n out.println(\" [\" + (lon - sp) + \",\" + (lat - sp) + \"],\");\n out.println(\" [\" + (lon + sp) + \",\" + (lat - sp) + \"],\");\n out.println(\" [\" + (lon + sp) + \",\" + (lat + sp) + \"],\");\n out.println(\" [\" + (lon - sp) + \",\" + (lat + sp) + \"],\");\n out.println(\" [\" + (lon - sp) + \",\" + (lat - sp) + \"]\");\n\n out.println(\"]]},\"); // coordinates, geometry\n\n\n long colour = Math.round((1 - ((value - min) / (max - min))) * 255);\n\n\n out.println(\" \\\"properties\\\": {\\n\" +\n \" \\\"fill\\\": \\\"#FF\" + String.format(\"%02X\", colour) + \"FF\\\",\\n\" +\n \" \\\"fill-opacity\\\": 0.5,\\n\" +\n \" \\\"stroke-width\\\": 0\\n\" +\n \" }}\");\n }\n }\n\n out.println(\"]}\");\n }\n }", "@Test\r\n\tpublic void ST_ClosestCoordinate() {\n\r\n\t}", "@Test\n\tvoid testCheckCoordinates8() {\n\t\tassertTrue(DataChecker.checkCoordinate(new Integer(5)));\n\t}", "@Test\n void parseGround() {\n testObj.parseMap(Collections.singletonList(\" \"));\n Square square = mock(Square.class);\n when(boardMock.createGround()).thenReturn(square);\n verify(boardMock).createGround();\n verify(levelMock).createLevel(any(), anyList(), anyList() );\n }", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "public void testFormatting()\r\n {\n \tassertNotNull(\"failed to create degree symbol\", DEGREE_SYMBOL);\r\n \tassertEquals(\"degree symbol wrong length\", 1, DEGREE_SYMBOL.length());\r\n \t\r\n WorldLocation la = new WorldLocation(0d, 0d, 0d);\r\n String res1 = \" 00\" + DEGREE_SYMBOL + \"00\\'00.00\\\" 000\" + DEGREE_SYMBOL + \"00\\'00.00\\\"\";\r\n super.assertEquals(\"first test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(-12.345);\r\n la.setLong(22.432);\r\n res1 = \" 12\" + DEGREE_SYMBOL + \"20\\'42.00\\\"S 022\" + DEGREE_SYMBOL + \"25\\'55.20\\\"E\";\r\n super.assertEquals(\"second test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(12.34533);\r\n la.setLong(-22.43222);\r\n res1 = \" 12\" + DEGREE_SYMBOL + \"20\\'43.19\\\"N 022\" + DEGREE_SYMBOL + \"25\\'55.99\\\"W\";\r\n super.assertEquals(\"third test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(82.345);\r\n la.setLong(172.432);\r\n res1 = \" 82\" + DEGREE_SYMBOL + \"20\\'42.00\\\"N 172\" + DEGREE_SYMBOL + \"25\\'55.20\\\"E\";\r\n super.assertEquals(\"fourth test\", res1, BriefFormatLocation.toString(la));\r\n\r\n }", "void test2() {\r\n\t\t\t\t\tPoint3D p = new Point3D(32.103315,35.209039,670);\r\n\t\t\t\t\tassertEquals(true,myCoords.isValid_GPS_Point(p));\r\n\t\t\t\t}", "@Test\n\tpublic void getDeZipCode24848_checkLatitudeForSecondPlaceInList_expect5445() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}", "public static Builder newBuilder() {\n return new AutoValue_GeoJsonFeature.Builder();\n }", "@Test\n\tpublic void testSuccess() throws Exception {\n\t\tEventWebServiceTest.TestingWebServer server =\n\t\t\t\tnew EventWebServiceTest.TestingWebServer(\n\t\t\t\t\t\t5680,\n\t\t\t\t\t\t\"etc/testdata/detail.geojson\");\n\t\tserver.start();\n\t\tEventIDAssociator.main(new String[] {\n\t\t\t\t// include lat and lon argument so it will run\n\t\t\t\tEventIDAssociator.LATITUDE_ARGUMENT + \"-4.9489\",\n\t\t\t\tEventIDAssociator.LONGITUDE_ARGUMENT + \"102.3727\",\n\t\t\t\t// use testing web server to get data\n\t\t\t\tEventIDAssociator.SERVICE_URL_ARGUMENT + \"http://localhost:5680/\"\n\t\t});\n\t\tserver.stop();\n\t}", "@Test\n\tvoid testCheckCoordinates3() {\n\t\tassertTrue(DataChecker.checkCoordinate(0));\n\t}", "public boolean parseGeoJSON(File file, String target_epsg) {\n OGRDataStoreFactory factory = new BridjOGRDataStoreFactory();\n Map<String, String> connectionParams = new HashMap<String, String>();\n connectionParams.put(\"DriverName\", \"GPX\");\n connectionParams.put(\"DatasourceName\", file.getAbsolutePath());\n DataStore store = null;\n SimpleFeatureSource source;\n SimpleFeatureCollection collection;\n SimpleFeatureIterator it;\n SimpleFeature feature;\n SimpleFeatureType featureType = null;\n CoordinateReferenceSystem sourceCrs;\n CoordinateReferenceSystem targetCrs;\n MathTransform transform = null;\n JSONArray features = new JSONArray();\n\n try {\n // Transform\n // Gpx epsg:4326 and longitude 1st\n sourceCrs = CRS.decode(\"EPSG:4326\",true);\n // Oskari crs\n //(oskari OL map crs)\n targetCrs = CRS.decode(target_epsg, true);\n if (!targetCrs.getName().equals(sourceCrs.getName())) {\n transform = CRS.findMathTransform(sourceCrs, targetCrs, true);\n }\n store = factory.createDataStore(connectionParams);\n String[] typeNames = store.getTypeNames();\n for (String typeName : typeNames) {\n // Skip track points\n if (typeName.equals(\"track_points\")) {\n continue;\n }\n source = store.getFeatureSource(typeName);\n collection = source.getFeatures();\n it = collection.features();\n while (it.hasNext()) {\n feature = it.next();\n featureType = feature.getFeatureType();\n if (transform != null) {\n Geometry geometry = (Geometry) feature.getDefaultGeometry();\n feature.setDefaultGeometry(JTS.transform(geometry, transform));\n }\n JSONObject geojs = JSONHelper.createJSONObject(io.toString(feature));\n if (geojs != null) {\n features.put(geojs);\n }\n }\n it.close();\n }\n if (features.length() > 0) {\n setGeoJson(JSONHelper.createJSONObject(\"features\", features));\n setFeatureType((FeatureType)featureType);\n setTypeName(\"GPX_\");\n }\n } catch (Exception e) {\n log.error(\"Couldn't create geoJSON from the GPX file \", file.getName(), e);\n return false;\n }\n finally {\n store.dispose();\n }\n return true;\n }", "Coordinate createCoordinate();", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tvoid testCheckCoordinates6() {\n\t\tassertTrue(DataChecker.checkCoordinate(90));\n\t}", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = jSONObject0.put(\"MnMGL\", (Object) \"MnMGL\");\n jSONObject1.put(\"MnMGL\", 0.0);\n try { \n jSONObject1.getBoolean(\"MnMGL\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[\\\"MnMGL\\\"] is not a Boolean.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }", "@Test\n public void testMapOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMap.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"value1\\\":{\\\"detail\\\":\\\"\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value2\\\":{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"\\\"}\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value3\\\":{\\\"detail\\\":\\\"Detail Name\\\",\\\"data\\\":\\\"Value Name\\\"}\"));\n }", "@Test\n public void testPulkovo19953DegreeGKZone43() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone43());\n }", "@Test\n\tpublic void testTiles() throws Exception {\n\n\t\tRelatedTilesUtils.testTiles(geoPackage);\n\n\t}", "public static void instantiate(){\n listOfpoints = new ArrayList<>(12);\n listOfPolygons = new ArrayList<>(listOfpoints.size());\n\n for ( int i= 0 ; i < 70; i++ ){\n listOfpoints.add(new ArrayList<LatLng>());\n }\n\n listOfpoints.get(0).add(new LatLng(44.4293595,26.1035863));\n listOfpoints.get(0).add(new LatLng(44.4295434,26.1035434));\n listOfpoints.get(0).add(new LatLng(44.4297579,26.103479));\n listOfpoints.get(0).add(new LatLng(44.431566,26.1033503));\n listOfpoints.get(0).add(new LatLng(44.4327305,26.1031572));\n listOfpoints.get(0).add(new LatLng(44.4337724,26.1029211));\n listOfpoints.get(0).add(new LatLng(44.4342474,26.1028138));\n listOfpoints.get(0).add(new LatLng( 44.4348756,26.1025563));\n listOfpoints.get(0).add(new LatLng(44.4353199,26.1023203));\n listOfpoints.get(0).add(new LatLng( 44.4353046,26.101977));\n listOfpoints.get(0).add(new LatLng( 44.4352893,26.1015478));\n listOfpoints.get(0).add(new LatLng(44.4351974,26.1010758));\n listOfpoints.get(0).add(new LatLng(44.4350595,26.100432));\n listOfpoints.get(0).add(new LatLng(44.4348756,26.0995523));\n listOfpoints.get(0).add(new LatLng(44.4346458,26.0983292));\n listOfpoints.get(0).add(new LatLng(44.4343547,26.098415));\n listOfpoints.get(0).add(new LatLng( 44.4340176,26.0983506));\n listOfpoints.get(0).add(new LatLng( 44.4327918,26.0975996));\n listOfpoints.get(0).add(new LatLng(44.4318878,26.0972134));\n listOfpoints.get(0).add(new LatLng( 44.4307692,26.0968701));\n listOfpoints.get(0).add(new LatLng( 44.4300644,26.0968271));\n listOfpoints.get(0).add(new LatLng( 44.4298498,26.0972992));\n listOfpoints.get(0).add(new LatLng(44.4297732,26.0977713));\n listOfpoints.get(0).add(new LatLng(44.4296966,26.0985867));\n listOfpoints.get(0).add(new LatLng (44.4296506,26.0994235));\n listOfpoints.get(0).add(new LatLng (44.4295587,26.1002389));\n listOfpoints.get(0).add(new LatLng (44.4294361,26.1007754));\n listOfpoints.get(0).add(new LatLng (44.4292369,26.1016766));\n listOfpoints.get(0).add(new LatLng (44.429099,26.1025778));\n listOfpoints.get(0).add(new LatLng (44.4289917,26.1033717));\n\n\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n listOfpoints.get(1).add(new LatLng (44.43630606,26.1017829));\n listOfpoints.get(1).add(new LatLng (44.4370654,26.101461));\n listOfpoints.get(1).add(new LatLng (44.4382451,26.1007958));\n listOfpoints.get(1).add(new LatLng (44.4393176,26.1002379));\n listOfpoints.get(1).add(new LatLng (44.4406045,26.0996371));\n listOfpoints.get(1).add(new LatLng (44.4418301,26.0990792));\n listOfpoints.get(1).add(new LatLng (44.4415084,26.0983067));\n listOfpoints.get(1).add(new LatLng (44.4412173,26.0977059));\n listOfpoints.get(1).add(new LatLng (44.4409875,26.097148));\n listOfpoints.get(1).add(new LatLng (44.4406811,26.0965472));\n listOfpoints.get(1).add(new LatLng (44.4404207,26.0959893));\n listOfpoints.get(1).add(new LatLng (44.4400989,26.0963326));\n listOfpoints.get(1).add(new LatLng (44.4393636,26.0968691));\n listOfpoints.get(1).add(new LatLng (44.4390725,26.0969549));\n listOfpoints.get(1).add(new LatLng (44.4381532,26.0971051));\n listOfpoints.get(1).add(new LatLng (44.4372952,26.0975557));\n listOfpoints.get(1).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(1).add(new LatLng (44.4358244,26.0977918));\n listOfpoints.get(1).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(1).add(new LatLng (44.4348132,26.0979205));\n listOfpoints.get(1).add(new LatLng (44.4348591,26.0983497));\n listOfpoints.get(1).add(new LatLng (44.4352115,26.1003452));\n listOfpoints.get(1).add(new LatLng (44.435472,26.1017185));\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n\n\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n listOfpoints.get(2).add(new LatLng (44.435899,26.1039688));\n listOfpoints.get(2).add(new LatLng (44.4360216,26.1044623));\n listOfpoints.get(2).add(new LatLng (44.4360982,26.1049988));\n listOfpoints.get(2).add(new LatLng (44.4362361,26.1055781));\n listOfpoints.get(2).add(new LatLng (44.4363127,26.1059));\n listOfpoints.get(2).add(new LatLng (44.4364506,26.1063721));\n listOfpoints.get(2).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(2).add(new LatLng (44.4367264,26.1068441));\n listOfpoints.get(2).add(new LatLng (44.4369715,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4374312,26.1073591));\n listOfpoints.get(2).add(new LatLng (44.4380593,26.1076381));\n listOfpoints.get(2).add(new LatLng (44.4386722,26.1078741));\n listOfpoints.get(2).add(new LatLng (44.439239,26.1080672));\n listOfpoints.get(2).add(new LatLng (44.4399744,26.1083033));\n listOfpoints.get(2).add(new LatLng (44.4406485,26.1084106));\n listOfpoints.get(2).add(new LatLng (44.4407557,26.1080458));\n listOfpoints.get(2).add(new LatLng (44.440817,26.1075737));\n listOfpoints.get(2).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(2).add(new LatLng (44.4410928,26.1070587));\n listOfpoints.get(2).add(new LatLng (44.4419814,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4422877,26.1071875));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.107445));\n listOfpoints.get(2).add(new LatLng (44.443498,26.107402));\n listOfpoints.get(2).add(new LatLng (44.4433754,26.10693));\n listOfpoints.get(2).add(new LatLng (44.4432988,26.1065008));\n listOfpoints.get(2).add(new LatLng (44.4431763,26.1059858));\n listOfpoints.get(2).add(new LatLng (44.4429465,26.1052992));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1044838));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1036469));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1029818));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.1027457));\n listOfpoints.get(2).add(new LatLng (44.4431303,26.1025311));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1022737));\n listOfpoints.get(2).add(new LatLng (44.4427627,26.101866));\n listOfpoints.get(2).add(new LatLng (44.4426707,26.1015656));\n listOfpoints.get(2).add(new LatLng (44.4426554,26.101072));\n listOfpoints.get(2).add(new LatLng (44.4427014,26.1002781));\n listOfpoints.get(2).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(2).add(new LatLng (44.4420426,26.0993125));\n listOfpoints.get(2).add(new LatLng (44.4412,26.0997202));\n listOfpoints.get(2).add(new LatLng (44.4400663,26.100321));\n listOfpoints.get(2).add(new LatLng (44.4390399,26.100836));\n listOfpoints.get(2).add(new LatLng (44.4382279,26.1012651));\n listOfpoints.get(2).add(new LatLng (44.4374924,26.1016514));\n listOfpoints.get(2).add(new LatLng (44.4366038,26.1021449));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1026384));\n listOfpoints.get(2).add(new LatLng (44.4357305,26.1027886));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n\n\n listOfpoints.get(3).add(new LatLng (44.4290806,26.1040332));\n listOfpoints.get(3).add(new LatLng (44.4295709,26.1054494));\n listOfpoints.get(3).add(new LatLng (44.4302604,26.1070373));\n listOfpoints.get(3).add(new LatLng (44.4307508,26.1080887));\n listOfpoints.get(3).add(new LatLng (44.432804,26.111994));\n listOfpoints.get(3).add(new LatLng (44.4329113,26.1123373));\n listOfpoints.get(3).add(new LatLng (44.4330798,26.1136248));\n listOfpoints.get(3).add(new LatLng (44.4332483,26.1150195));\n listOfpoints.get(3).add(new LatLng (44.433325,26.1158349));\n listOfpoints.get(3).add(new LatLng (44.4347959,26.1162855));\n listOfpoints.get(3).add(new LatLng (44.4359143,26.1166288));\n listOfpoints.get(3).add(new LatLng (44.4365272,26.1168005));\n listOfpoints.get(3).add(new LatLng (44.4367723,26.1168434));\n listOfpoints.get(3).add(new LatLng (44.4373852,26.1166503));\n listOfpoints.get(3).add(new LatLng (44.43809,26.1163713));\n listOfpoints.get(3).add(new LatLng (44.4378755,26.1154272));\n listOfpoints.get(3).add(new LatLng (44.435516,26.1027672));\n listOfpoints.get(3).add(new LatLng (44.433708,26.1034109));\n listOfpoints.get(3).add(new LatLng (44.4330032,26.1035826));\n listOfpoints.get(3).add(new LatLng (44.4321451,26.1038401));\n listOfpoints.get(3).add(new LatLng (44.4309959,26.1039259));\n listOfpoints.get(3).add(new LatLng (44.4302451,26.1039903));\n listOfpoints.get(3).add(new LatLng (44.4296628,26.1039903));\n listOfpoints.get(3).add(new LatLng(44.4290806,26.1040332));\n\n\n\n listOfpoints.get(4).add(new LatLng ( 44.4343669 ,26.0798289));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0801508));\n listOfpoints.get(4).add(new LatLng (44.4335088 ,26.0905363));\n listOfpoints.get(4).add(new LatLng (44.4333862 ,26.092124));\n listOfpoints.get(4).add(new LatLng ( 44.433233 ,26.0926177));\n listOfpoints.get(4).add(new LatLng ( 44.4329879 ,26.0932614));\n listOfpoints.get(4).add(new LatLng (44.4327427 , 26.0936906));\n listOfpoints.get(4).add(new LatLng (44.4301838 ,26.0965659));\n listOfpoints.get(4).add(new LatLng (44.4301685 ,26.0967161));\n listOfpoints.get(4).add(new LatLng (44.4305209 ,26.096759));\n listOfpoints.get(4).add(new LatLng (44.4311338 ,26.0968878));\n listOfpoints.get(4).add(new LatLng (44.4317468 ,26.097038));\n listOfpoints.get(4).add(new LatLng (44.4323137 ,26.0972955));\n listOfpoints.get(4).add(new LatLng (44.4327427 ,26.0974457));\n listOfpoints.get(4).add(new LatLng (44.4333709 ,26.0978534));\n listOfpoints.get(4).add(new LatLng (44.4338919 ,26.0981538));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0982611));\n listOfpoints.get(4).add(new LatLng ( 44.4345354 ,26.0982611));\n listOfpoints.get(4).add(new LatLng (44.4346886 ,26.0981752));\n listOfpoints.get(4).add(new LatLng (44.4345814, 26.0918667));\n listOfpoints.get(4).add(new LatLng (44.4343669 ,26.0798289));\n\n\n listOfpoints.get(5).add(new LatLng (44.4348405,26.097773));\n listOfpoints.get(5).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(5).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(5).add(new LatLng (44.4372952, 26.0975557));\n listOfpoints.get(5).add(new LatLng (44.4381532, 26.0971051));\n listOfpoints.get(5).add(new LatLng ( 44.4393636,26.0968691));\n listOfpoints.get(5).add(new LatLng(44.4397739, 26.0964855));\n listOfpoints.get(5).add(new LatLng (44.4402029,26.0960993));\n listOfpoints.get(5).add(new LatLng (44.4406778,26.0956487));\n listOfpoints.get(5).add(new LatLng(44.4405706,26.0952195));\n listOfpoints.get(5).add(new LatLng (44.4403408 ,26.0942539));\n listOfpoints.get(5).add(new LatLng (44.440065 ,26.0931811));\n listOfpoints.get(5).add(new LatLng (44.4400497, 26.0919151));\n listOfpoints.get(5).add(new LatLng (44.4398199 ,26.0897693));\n listOfpoints.get(5).add(new LatLng (44.4397893 ,26.0891041));\n listOfpoints.get(5).add(new LatLng (44.4399271 , 26.0879668));\n listOfpoints.get(5).add(new LatLng (44.4399731 ,26.0873017));\n listOfpoints.get(5).add(new LatLng (44.4399884 ,26.0867223));\n listOfpoints.get(5).add(new LatLng (44.4365719, 26.0887179));\n listOfpoints.get(5).add(new LatLng (44.434672 ,26.0898337));\n listOfpoints.get(5).add(new LatLng (44.4348405 ,26.097773));\n\n\n listOfpoints.get(6).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(6).add(new LatLng (44.4365354,26.1075151));\n listOfpoints.get(6).add(new LatLng (44.4375926,26.113137));\n listOfpoints.get(6).add(new LatLng (44.4378224,26.114167));\n listOfpoints.get(6).add(new LatLng (44.4435828,26.1191452));\n listOfpoints.get(6).add(new LatLng (44.4440117, 26.1184585));\n listOfpoints.get(6).add(new LatLng (44.4448849, 26.1172784));\n listOfpoints.get(6).add(new LatLng (44.4457888,26.1161411));\n listOfpoints.get(6).add(new LatLng (44.4462483, 26.1149395));\n listOfpoints.get(6).add(new LatLng (44.4466773, 26.113137));\n listOfpoints.get(6).add(new LatLng (44.4467998, 26.1121929));\n listOfpoints.get(6).add(new LatLng (44.4467539, 26.1112917));\n listOfpoints.get(6).add(new LatLng (44.4469683, 26.1101973));\n listOfpoints.get(6).add(new LatLng (44.4458041, 26.1093176));\n listOfpoints.get(6).add(new LatLng (44.4453905, 26.1091888));\n listOfpoints.get(6).add(new LatLng (44.4448083, 26.1089099));\n listOfpoints.get(6).add(new LatLng (44.4442109, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4435828, 26.1076224));\n listOfpoints.get(6).add(new LatLng (44.4433377, 26.107558));\n listOfpoints.get(6).add(new LatLng (44.4420662,26.1072791));\n listOfpoints.get(6).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(6).add(new LatLng (44.4407946,26.1082018));\n listOfpoints.get(6).add(new LatLng ( 44.4406107,26.1085451));\n listOfpoints.get(6).add(new LatLng (44.43986, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4384659, 26.1079014));\n listOfpoints.get(6).add(new LatLng (44.4372095, 26.1073864));\n listOfpoints.get(6).add(new LatLng (44.4365425, 26.1067583));\n\n\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n listOfpoints.get(7).add(new LatLng ( 44.4265883,26.1107511));\n listOfpoints.get(7).add(new LatLng (44.4261898,26.118905));\n listOfpoints.get(7).add(new LatLng (44.4274311,26.1189909));\n listOfpoints.get(7).add(new LatLng (44.4276303,26.1189265));\n listOfpoints.get(7).add(new LatLng (44.4285497,26.1191625));\n listOfpoints.get(7).add(new LatLng (44.4288408,26.1193342));\n listOfpoints.get(7).add(new LatLng (44.4294997,26.1199564));\n listOfpoints.get(7).add(new LatLng (44.4297909, 26.1200852));\n listOfpoints.get(7).add(new LatLng (44.4303272,26.1203427));\n listOfpoints.get(7).add(new LatLng (44.431124, 26.1205787));\n listOfpoints.get(7).add(new LatLng (44.4328861, 26.1207289));\n listOfpoints.get(7).add(new LatLng (44.4329933, 26.1206431));\n listOfpoints.get(7).add(new LatLng (44.4331159, 26.1194844));\n listOfpoints.get(7).add(new LatLng (44.4331925,26.118154));\n listOfpoints.get(7).add(new LatLng (44.4332844,26.1160512));\n listOfpoints.get(7).add(new LatLng (44.4328094,26.112339));\n listOfpoints.get(7).add(new LatLng (44.4327022, 26.1120171));\n listOfpoints.get(7).add(new LatLng (44.4299135, 26.1064596));\n listOfpoints.get(7).add(new LatLng (44.4289634,26.1040778));\n listOfpoints.get(7).add(new LatLng (44.4281819,26.1039705));\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n\n\n\n\n listOfpoints.get(8).add (new LatLng (44.4262461,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4260163,26.1014488));\n listOfpoints.get(8).add (new LatLng (44.4259397,26.1023715));\n listOfpoints.get(8).add (new LatLng (44.4258784,26.103616));\n listOfpoints.get(8).add (new LatLng (44.426001,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.42643,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.4272882,26.1038735));\n listOfpoints.get(8).add (new LatLng (44.4282995,26.1038306));\n listOfpoints.get(8).add (new LatLng (44.4289278,26.1035731));\n listOfpoints.get(8).add (new LatLng (44.4289431,26.1028006));\n listOfpoints.get(8).add (new LatLng (44.4291423,26.1015132));\n listOfpoints.get(8).add (new LatLng (44.4286366,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4284834,26.1010196));\n listOfpoints.get(8).add (new LatLng (44.4271043,26.1008694));\n listOfpoints.get(8).add (new LatLng (44.4262461, 26.1007836));\n\n\n\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n listOfpoints.get(9).add(new LatLng (44.4284834,26.1010196));\n listOfpoints.get(9).add(new LatLng (44.4290094,26.1000479));\n listOfpoints.get(9).add(new LatLng (44.4292545,26.0986961));\n listOfpoints.get(9).add(new LatLng (44.4293465,26.0971726));\n listOfpoints.get(9).add(new LatLng (44.4294844,26.0964216));\n listOfpoints.get(9).add(new LatLng (44.4301739,26.0956276));\n listOfpoints.get(9).add(new LatLng (44.432411,26.0931385));\n listOfpoints.get(9).add(new LatLng (44.4327022,26.0925163));\n listOfpoints.get(9).add(new LatLng (44.4328401,26.0919584));\n listOfpoints.get(9).add(new LatLng (44.4329014, 26.0913576));\n listOfpoints.get(9).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(9).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(9).add(new LatLng (44.4265882, 26.0922588));\n listOfpoints.get(9).add(new LatLng (44.4269867,26.0926879));\n listOfpoints.get(9).add(new LatLng (44.4267108,26.0998763));\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n\n\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(10).add(new LatLng (44.4215507, 26.0903665));\n listOfpoints.get(10).add(new LatLng (44.4255811,26.0980483));\n listOfpoints.get(10).add(new LatLng ( 44.4265772,26.0999795));\n listOfpoints.get(10).add(new LatLng (44.4266998,26.099722));\n listOfpoints.get(10).add(new LatLng (44.4269867, 26.0926879));\n listOfpoints.get(10).add(new LatLng (44.4265882,26.0922588));\n listOfpoints.get(10).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n\n\n listOfpoints.get(11).add(new LatLng (44.4214281, 26.0905382));\n listOfpoints.get(11).add(new LatLng (44.4207385, 26.0915467));\n listOfpoints.get(11).add(new LatLng (44.4199568, 26.0929629));\n listOfpoints.get(11).add(new LatLng (44.4192059,26.0943576));\n listOfpoints.get(11).add(new LatLng (44.4187155,26.095409));\n listOfpoints.get(11).add(new LatLng (44.4186235,26.0957524));\n listOfpoints.get(11).add(new LatLng (44.4189607, 26.0968253));\n listOfpoints.get(11).add(new LatLng (44.4212442,26.1039063));\n listOfpoints.get(11).add(new LatLng (44.4227001,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.4251367,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.425765,26.103799));\n listOfpoints.get(11).add(new LatLng (44.425811,26.1027476));\n listOfpoints.get(11).add(new LatLng (44.4259182,26.101503));\n listOfpoints.get(11).add(new LatLng (44.4260715,26.1009237));\n listOfpoints.get(11).add(new LatLng (44.4264086,26.1001297));\n listOfpoints.get(11).add(new LatLng (44.4260255, 26.0993143));\n listOfpoints.get(11).add(new LatLng (44.4252899, 26.0978981));\n listOfpoints.get(11).add(new LatLng (44.424064,26.0955593));\n listOfpoints.get(11).add(new LatLng (44.4230372,26.0935851));\n listOfpoints.get(11).add(new LatLng (44.4214281,26.0905382));\n\n\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n listOfpoints.get(12).add(new LatLng (44.4216123,26.1052654));\n listOfpoints.get(12).add(new LatLng (44.4226851,26.1084411));\n listOfpoints.get(12).add(new LatLng (44.4237731,26.1117241));\n listOfpoints.get(12).add(new LatLng (44.4244168,26.11181));\n listOfpoints.get(12).add(new LatLng (44.4263629,26.1118743));\n listOfpoints.get(12).add(new LatLng (44.4264242,26.1109946));\n listOfpoints.get(12).add(new LatLng (44.4265315,26.1078832));\n listOfpoints.get(12).add(new LatLng (44.4267154,26.1041496));\n listOfpoints.get(12).add(new LatLng (44.4254588, 26.1042354));\n listOfpoints.get(12).add(new LatLng (44.4242482,26.1041925));\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n\n\n\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n listOfpoints.get(13).add(new LatLng (44.4208987, 26.1041756));\n listOfpoints.get(13).add(new LatLng (44.4155345,26.1045404));\n listOfpoints.get(13).add(new LatLng (44.4156111, 26.1051198));\n listOfpoints.get(13).add(new LatLng (44.4156724, 26.106257));\n listOfpoints.get(13).add(new LatLng (44.4157184,26.1068793));\n listOfpoints.get(13).add(new LatLng (44.4157797, 26.1071153));\n listOfpoints.get(13).add(new LatLng (44.415841, 26.1077805));\n listOfpoints.get(13).add(new LatLng (44.4159024,26.1090465));\n listOfpoints.get(13).add(new LatLng (44.416025,26.1110635));\n listOfpoints.get(13).add(new LatLng (44.4161629,26.1116643));\n listOfpoints.get(13).add(new LatLng (44.4163468, 26.112072));\n listOfpoints.get(13).add(new LatLng (44.4166993,26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4170518, 26.1133595));\n listOfpoints.get(13).add(new LatLng (44.4177109, 26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4184006,26.1118575));\n listOfpoints.get(13).add(new LatLng (44.4190136,26.1112566));\n listOfpoints.get(13).add(new LatLng (44.4199331, 26.1107846));\n listOfpoints.get(13).add(new LatLng (44.4215883,26.1101838));\n listOfpoints.get(13).add(new LatLng (44.4229369,26.10954));\n listOfpoints.get(13).add(new LatLng (44.422753, 26.1089178));\n listOfpoints.get(13).add(new LatLng (44.4222626,26.1074372));\n listOfpoints.get(13).add(new LatLng (44.4217262,26.1059137));\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n\n\n\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n listOfpoints.get(14).add(new LatLng (44.4169314,26.1139266));\n listOfpoints.get(14).add(new LatLng (44.4177284,26.1143128));\n listOfpoints.get(14).add(new LatLng (44.4185253,26.1147205));\n listOfpoints.get(14).add(new LatLng (44.4237666,26.1189047));\n listOfpoints.get(14).add(new LatLng (44.4237819,26.1191408));\n listOfpoints.get(14).add(new LatLng (44.4240425,26.1191622));\n listOfpoints.get(14).add(new LatLng (44.4258814,26.1192481));\n listOfpoints.get(14).add(new LatLng (44.425912,26.1188404));\n listOfpoints.get(14).add(new LatLng (44.426004,26.1167804));\n listOfpoints.get(14).add(new LatLng (44.4261113,26.1148063));\n listOfpoints.get(14).add(new LatLng (44.4262798,26.1120812));\n listOfpoints.get(14).add(new LatLng (44.4238739,26.1119525));\n listOfpoints.get(14).add(new LatLng (44.4235674,26.1115662));\n listOfpoints.get(14).add(new LatLng (44.4230157,26.109914));\n listOfpoints.get(14).add(new LatLng (44.4218817,26.1103646));\n listOfpoints.get(14).add(new LatLng (44.4200733,26.1110512));\n listOfpoints.get(14).add(new LatLng (44.4187246,26.1118666));\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n\n\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n listOfpoints.get(15).add(new LatLng (44.4334184,26.0843973));\n listOfpoints.get(15).add(new LatLng (44.4305378,26.0839467));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0840969));\n listOfpoints.get(15).add(new LatLng (44.4305531,26.0845475));\n listOfpoints.get(15).add(new LatLng (44.4306604,26.0853844));\n listOfpoints.get(15).add(new LatLng (44.4302773,26.0908131));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0910277));\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n\n\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n listOfpoints.get(16).add(new LatLng (44.4252956,26.0790543));\n listOfpoints.get(16).add(new LatLng (44.4246213,26.0901265));\n listOfpoints.get(16).add(new LatLng (44.4247746,26.0905127));\n listOfpoints.get(16).add(new LatLng (44.4298621,26.0909634));\n listOfpoints.get(16).add(new LatLng (44.4300919,26.0907273));\n listOfpoints.get(16).add(new LatLng (44.430475,26.0853414));\n listOfpoints.get(16).add(new LatLng ( 44.4291112,26.0806422));\n listOfpoints.get(16).add(new LatLng (44.428391,26.0795693));\n listOfpoints.get(16).add(new LatLng (44.4277781,26.0794835));\n listOfpoints.get(16).add(new LatLng (44.42574,26.0784535));\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n\n\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n listOfpoints.get(17).add(new LatLng (44.433312,26.1178736));\n listOfpoints.get(17).add(new LatLng (44.4331128,26.1208562));\n listOfpoints.get(17).add(new LatLng (44.4327757,26.1238603));\n listOfpoints.get(17).add(new LatLng (44.4325765,26.1256413));\n listOfpoints.get(17).add(new LatLng (44.4354264,26.1251477));\n listOfpoints.get(17).add(new LatLng (44.4389196,26.122723));\n listOfpoints.get(17).add(new LatLng (44.4391954,26.1224012));\n listOfpoints.get(17).add(new LatLng (44.4381383,26.1165003));\n listOfpoints.get(17).add(new LatLng (44.4368666,26.1169724));\n listOfpoints.get(17).add(new LatLng (44.4364683,26.1169295));\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n\n\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n listOfpoints.get(18).add(new LatLng (44.4453896, 26.0909388));\n listOfpoints.get(18).add(new LatLng (44.4444245,26.0918185));\n listOfpoints.get(18).add(new LatLng (44.4428313, 26.093342));\n listOfpoints.get(18).add(new LatLng (44.4413912,26.0947797));\n listOfpoints.get(18).add(new LatLng (44.4405333,26.0959169));\n listOfpoints.get(18).add(new LatLng (44.4419274,26.0990069));\n listOfpoints.get(18).add(new LatLng (44.4433368,26.0983202));\n listOfpoints.get(18).add(new LatLng (44.4452824,26.0973761));\n listOfpoints.get(18).add(new LatLng (44.446707,26.0966894));\n listOfpoints.get(18).add(new LatLng (44.4468296,26.0961959));\n listOfpoints.get(18).add(new LatLng (44.4465385,26.0945651));\n listOfpoints.get(18).add(new LatLng (44.4462628,26.0935351));\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n\n\n listOfpoints.get(19).add(new LatLng (44.4401196,26.0817507));\n listOfpoints.get(19).add(new LatLng (44.4401043,26.0831669));\n listOfpoints.get(19).add(new LatLng (44.4402115,26.0846046));\n listOfpoints.get(19).add(new LatLng (44.440089,26.0863641));\n listOfpoints.get(19).add(new LatLng (44.4399358,26.0894755));\n listOfpoints.get(19).add(new LatLng ( 44.4402115, 26.0932949));\n listOfpoints.get(19).add(new LatLng (44.4407937,26.0953763));\n listOfpoints.get(19).add(new LatLng (44.440855,26.0952047));\n listOfpoints.get(19).add(new LatLng (44.4450832,26.0910419));\n listOfpoints.get(19).add(new LatLng (44.4454509,26.0905698));\n listOfpoints.get(19).add(new LatLng (44.4445011,26.0879949));\n listOfpoints.get(19).add(new LatLng (44.4437964,26.0862783));\n listOfpoints.get(19).add(new LatLng (44.4434287,26.0840681));\n listOfpoints.get(19).add(new LatLng (44.443061, 26.0812143));\n listOfpoints.get(19).add(new LatLng (44.4423257, 26.0809997));\n listOfpoints.get(19).add(new LatLng (44.4419887, 26.0810211));\n listOfpoints.get(19).add(new LatLng (44.4411767, 26.0813215));\n listOfpoints.get(19).add(new LatLng (44.4401196, 26.0817507));\n\n\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n listOfpoints.get(20).add(new LatLng (44.4145114,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.0990294));\n listOfpoints.get(20).add(new LatLng (44.4143735, 26.0993727));\n listOfpoints.get(20).add(new LatLng (44.4144195, 26.0998233));\n listOfpoints.get(20).add(new LatLng (44.4142969, 26.1008104));\n listOfpoints.get(20).add(new LatLng (44.4140976,26.1009177));\n listOfpoints.get(20).add(new LatLng (44.4138983,26.1008962));\n listOfpoints.get(20).add(new LatLng (44.4138064,26.1006602));\n listOfpoints.get(20).add(new LatLng (44.4137451,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4130247,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4127335,26.0984286));\n listOfpoints.get(20).add(new LatLng (44.4113386,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4102503, 26.0985788));\n listOfpoints.get(20).add(new LatLng (44.414021,26.1043509));\n listOfpoints.get(20).add(new LatLng (44.4143122,26.1043938));\n listOfpoints.get(20).add(new LatLng (44.4159522,26.1042865));\n listOfpoints.get(20).add(new LatLng (44.4191554,26.104029));\n listOfpoints.get(20).add(new LatLng (44.4210711,26.1038574));\n listOfpoints.get(20).add(new LatLng (44.4208259,26.1030205));\n listOfpoints.get(20).add(new LatLng (44.4203508,26.1016258));\n listOfpoints.get(20).add(new LatLng (44.4198297,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4192167, 26.0981067));\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n\n\n listOfpoints.get(21).add(new LatLng (44.410189,26.0984071));\n listOfpoints.get(21).add(new LatLng (44.4103883,26.0984715));\n listOfpoints.get(21).add(new LatLng (44.4128867,26.0983213));\n listOfpoints.get(21).add(new LatLng (44.4138524, 26.1000594));\n listOfpoints.get(21).add(new LatLng (44.4138524,26.1004671));\n listOfpoints.get(21).add(new LatLng (44.4139597,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4141742,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.1003812));\n listOfpoints.get(21).add(new LatLng (44.4143275,26.0996946));\n listOfpoints.get(21).add(new LatLng (44.4141589,26.0986646));\n listOfpoints.get(21).add(new LatLng (44.418435,26.0957464));\n listOfpoints.get(21).add(new LatLng (44.4190021,26.0946306));\n listOfpoints.get(21).add(new LatLng (44.4183737,26.0934504));\n listOfpoints.get(21).add(new LatLng (44.4176534, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4165652, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4155996,26.0927423));\n listOfpoints.get(21).add(new LatLng (44.4149406,26.0921415));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.0919055));\n listOfpoints.get(21).add(new LatLng (44.412994, 26.0920986));\n listOfpoints.get(21).add(new LatLng (44.4098211,26.0943945));\n listOfpoints.get(21).add(new LatLng (44.4096679,26.0947164));\n listOfpoints.get(21).add(new LatLng (44.4096985, 26.0953816));\n listOfpoints.get(21).add(new LatLng (44.4088401, 26.0962399));\n listOfpoints.get(21).add(new LatLng (44.4088248,26.0966047));\n listOfpoints.get(21).add(new LatLng (44.410189, 26.0984071));\n\n\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n listOfpoints.get(22).add(new LatLng (44.4252745,26.0779102));\n listOfpoints.get(22).add(new LatLng (44.426102,26.0783394));\n listOfpoints.get(22).add(new LatLng (44.4286458, 26.079541));\n listOfpoints.get(22).add(new LatLng (44.4293813,26.0807855));\n listOfpoints.get(22).add(new LatLng (44.4303313,26.0837038));\n listOfpoints.get(22).add(new LatLng (44.4329668,26.08409));\n listOfpoints.get(22).add(new LatLng (44.4335797,26.0839613));\n listOfpoints.get(22).add(new LatLng (44.4337023,26.0821159));\n listOfpoints.get(22).add(new LatLng (44.4339474,26.0797556));\n listOfpoints.get(22).add(new LatLng (44.434499,26.078039));\n listOfpoints.get(22).add(new LatLng (44.4358473,26.0748632));\n listOfpoints.get(22).add(new LatLng (44.4351732,26.073962));\n listOfpoints.get(22).add(new LatLng (44.433212,26.0710867));\n listOfpoints.get(22).add(new LatLng (44.4312201,26.0683401));\n listOfpoints.get(22).add(new LatLng (44.4299329,26.067396));\n listOfpoints.get(22).add(new LatLng (44.4283087,26.0655506));\n listOfpoints.get(22).add(new LatLng (44.4274812,26.0668381));\n listOfpoints.get(22).add(new LatLng (44.4261633,26.0691984));\n listOfpoints.get(22).add(new LatLng (44.4249374,26.0715587));\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n\n\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n listOfpoints.get(23).add(new LatLng (44.4169069,26.0695417));\n listOfpoints.get(23).add(new LatLng (44.4131364,26.073447));\n listOfpoints.get(23).add(new LatLng (44.4139948,26.0749491));\n listOfpoints.get(23).add(new LatLng (44.4156807,26.0782106));\n listOfpoints.get(23).add(new LatLng (44.4178265,26.0819443));\n listOfpoints.get(23).add(new LatLng (44.4184089,26.0840471));\n listOfpoints.get(23).add(new LatLng (44.4213514,26.0900982));\n listOfpoints.get(23).add(new LatLng (44.4240486, 26.0903986));\n listOfpoints.get(23).add(new LatLng (44.424447,26.0897978));\n listOfpoints.get(23).add(new LatLng (44.4252132,26.0783394));\n listOfpoints.get(23).add(new LatLng (44.4236808, 26.0737474));\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n\n\n\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(24).add(new LatLng (44.442854,26.1011417));\n listOfpoints.get(24).add(new LatLng (44.4434668,26.1027725));\n listOfpoints.get(24).add(new LatLng (44.4430685, 26.1033304));\n listOfpoints.get(24).add(new LatLng (44.4430685,26.1047895));\n listOfpoints.get(24).add(new LatLng (44.4437732,26.1076648));\n listOfpoints.get(24).add(new LatLng (44.4446617,26.1085661));\n listOfpoints.get(24).add(new LatLng (44.4461629,26.1092956));\n listOfpoints.get(24).add(new LatLng (44.447174,26.1100252));\n listOfpoints.get(24).add(new LatLng (44.4473272,26.108609));\n listOfpoints.get(24).add(new LatLng (44.4480624,26.107064));\n listOfpoints.get(24).add(new LatLng (44.4480931,26.1060341));\n listOfpoints.get(24).add(new LatLng (44.4476948,26.1029871));\n listOfpoints.get(24).add(new LatLng (44.448522, 26.1028583));\n listOfpoints.get(24).add(new LatLng (44.4499006,26.102515));\n listOfpoints.get(24).add(new LatLng (44.4509729, 26.101485));\n listOfpoints.get(24).add(new LatLng (44.4529335,26.1007555));\n listOfpoints.get(24).add(new LatLng (44.452719,26.0935457));\n listOfpoints.get(24).add(new LatLng (44.4521063,26.0865934));\n listOfpoints.get(24).add(new LatLng (44.4506359,26.0897262));\n listOfpoints.get(24).add(new LatLng (44.4472046,26.0966785));\n listOfpoints.get(24).add(new LatLng (44.4465306,26.0971077));\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n\n\n listOfpoints.get(25).add(new LatLng (44.3944544,26.1201103));\n listOfpoints.get(25).add(new LatLng (44.3948837,26.1205394));\n listOfpoints.get(25).add(new LatLng (44.400587,26.1207969));\n listOfpoints.get(25).add(new LatLng (44.4069336,26.1209686));\n listOfpoints.get(25).add(new LatLng (44.4075468,26.1204536));\n listOfpoints.get(25).add(new LatLng (44.4081599,26.119252));\n listOfpoints.get(25).add(new LatLng (44.4083439, 26.1177499));\n listOfpoints.get(25).add(new LatLng (44.4084665, 26.1148317));\n listOfpoints.get(25).add(new LatLng (44.4090183,26.1131151));\n listOfpoints.get(25).add(new LatLng (44.4102139, 26.1109693));\n listOfpoints.get(25).add(new LatLng (44.411992,26.106549));\n listOfpoints.get(25).add(new LatLng (44.4128197, 26.105562));\n listOfpoints.get(25).add(new LatLng (44.4140152, 26.1047037));\n listOfpoints.get(25).add(new LatLng (44.4105512, 26.099468));\n listOfpoints.get(25).add(new LatLng (44.4088344, 26.0971077));\n listOfpoints.get(25).add(new LatLng (44.4074854,26.0960777));\n listOfpoints.get(25).add(new LatLng (44.4067803, 26.0957773));\n listOfpoints.get(25).add(new LatLng (44.4047262, 26.096936));\n listOfpoints.get(25).add(new LatLng (44.4024267, 26.098481));\n listOfpoints.get(25).add(new LatLng (44.4015068, 26.0996826));\n listOfpoints.get(25).add(new LatLng (44.3998818, 26.1055191));\n listOfpoints.get(25).add(new LatLng (44.3944544, 26.1201103));\n\n\n\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4526408,26.0898486));\n listOfpoints.get(26).add(new LatLng (44.4530697,26.0983887));\n listOfpoints.get(26).add(new LatLng (44.4558573,26.0971013));\n listOfpoints.get(26).add(new LatLng ( 44.4622592,26.0925522));\n listOfpoints.get(26).add(new LatLng ( 44.4635762, 26.0910073));\n listOfpoints.get(26).add(new LatLng (44.4658121,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4631474,26.0864153));\n listOfpoints.get(26).add(new LatLng (44.4534067,26.0861578));\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n\n\n\n listOfpoints.get(27).add(new LatLng (44.4346864, 26.0895482));\n listOfpoints.get(27).add(new LatLng (44.4398343, 26.0864583));\n listOfpoints.get(27).add(new LatLng (44.439865,26.0816947));\n listOfpoints.get(27).add(new LatLng (44.4420098,26.0807076));\n listOfpoints.get(27).add(new LatLng (44.4429903, 26.0808793));\n listOfpoints.get(27).add(new LatLng (44.4426532,26.0791626));\n listOfpoints.get(27).add(new LatLng (44.4405084, 26.0729399));\n listOfpoints.get(27).add(new LatLng (44.440202, 26.0727253));\n listOfpoints.get(27).add(new LatLng (44.4384555, 26.0702363));\n listOfpoints.get(27).add(new LatLng (44.4362186, 26.0744849));\n listOfpoints.get(27).add(new LatLng (44.4344413,26.0792914));\n listOfpoints.get(27).add(new LatLng (44.4346864,26.0895482));\n\n\n\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n listOfpoints.get(28).add(new LatLng (44.443061,26.0812143));\n listOfpoints.get(28).add(new LatLng (44.4437562,26.0855141));\n listOfpoints.get(28).add(new LatLng (44.4440626,26.0866299));\n listOfpoints.get(28).add(new LatLng (44.444798, 26.0884753));\n listOfpoints.get(28).add(new LatLng (44.4465443,26.0937539));\n listOfpoints.get(28).add(new LatLng (44.4468813,26.0958138));\n listOfpoints.get(28).add(new LatLng (44.4471264,26.0961142));\n listOfpoints.get(28).add(new LatLng (44.4492097, 26.0919943));\n listOfpoints.get(28).add(new LatLng (44.4507109,26.0889473));\n listOfpoints.get(28).add(new LatLng (44.4519056, 26.0864153));\n listOfpoints.get(28).add(new LatLng (44.4518137,26.0848275));\n listOfpoints.get(28).add(new LatLng (44.4481987, 26.0827246));\n listOfpoints.get(28).add(new LatLng (44.4455026,26.081523));\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n\n\n\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n listOfpoints.get(29).add(new LatLng (44.437967, 26.115168));\n listOfpoints.get(29).add(new LatLng (44.4410924, 26.131905));\n listOfpoints.get(29).add(new LatLng (44.4413375,26.1327204));\n listOfpoints.get(29).add(new LatLng (44.443758, 26.1284717));\n listOfpoints.get(29).add(new LatLng (44.4467299, 26.1259827));\n listOfpoints.get(29).add(new LatLng (44.4480167,26.1254248));\n listOfpoints.get(29).add(new LatLng (44.4491809, 26.124266));\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n\n\n listOfpoints.get(30).add(new LatLng (44.4129016,26.0735409));\n listOfpoints.get(30).add(new LatLng (44.4072915,26.0791628));\n listOfpoints.get(30).add(new LatLng (44.4031525,26.0816948));\n listOfpoints.get(30).add(new LatLng (44.4003317,26.0844414));\n listOfpoints.get(30).add(new LatLng (44.3973268,26.0850422));\n listOfpoints.get(30).add(new LatLng (44.4005463,26.0880463));\n listOfpoints.get(30).add(new LatLng (44.4017115, 26.0912221));\n listOfpoints.get(30).add(new LatLng (44.4043176,26.0963719));\n listOfpoints.get(30).add(new LatLng (44.4048695, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4060652,26.0956423));\n listOfpoints.get(30).add(new LatLng (44.4070462,26.0953848));\n listOfpoints.get(30).add(new LatLng (44.4084871, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4094682, 26.0951703));\n listOfpoints.get(30).add(new LatLng (44.4094375, 26.0944836));\n listOfpoints.get(30).add(new LatLng (44.4132388, 26.09178));\n listOfpoints.get(30).add(new LatLng (44.4145263, 26.091737));\n listOfpoints.get(30).add(new LatLng (44.4163656,26.0929387));\n listOfpoints.get(30).add(new LatLng (44.4183273,26.0930674));\n listOfpoints.get(30).add(new LatLng (44.4189404,26.0941832));\n listOfpoints.get(30).add(new LatLng (44.4212086, 26.0904067));\n listOfpoints.get(30).add(new LatLng (44.4210553,26.0898488));\n listOfpoints.get(30).add(new LatLng (44.4186339, 26.0850852));\n listOfpoints.get(30).add(new LatLng (44.4181741,26.0840123));\n listOfpoints.get(30).add(new LatLng (44.4176836, 26.0822527));\n listOfpoints.get(30).add(new LatLng (44.4171932,26.0813944));\n listOfpoints.get(30).add(new LatLng (44.4150781, 26.077575));\n listOfpoints.get(30).add(new LatLng (44.4129016, 26.0735409));\n\n\n\n listOfpoints.get(31).add(new LatLng (44.4152528, 26.1045537));\n listOfpoints.get(31).add(new LatLng (44.4142412, 26.1048541));\n listOfpoints.get(31).add(new LatLng (44.4125552,26.1062274));\n listOfpoints.get(31).add(new LatLng (44.4118501,26.1074291));\n listOfpoints.get(31).add(new LatLng (44.4107158,26.1103473));\n listOfpoints.get(31).add(new LatLng (44.4093976,26.1127935));\n listOfpoints.get(31).add(new LatLng (44.4087844, 26.1144243));\n listOfpoints.get(31).add(new LatLng (44.4085392, 26.1156259));\n listOfpoints.get(31).add(new LatLng (44.4085392,26.1170421));\n listOfpoints.get(31).add(new LatLng (44.4083246, 26.1195741));\n listOfpoints.get(31).add(new LatLng (44.4074355, 26.1209903));\n listOfpoints.get(31).add(new LatLng (44.409183, 26.1223636));\n listOfpoints.get(31).add(new LatLng (44.4168774, 26.1136518));\n listOfpoints.get(31).add(new LatLng (44.4158658, 26.1113344));\n listOfpoints.get(31).add(new LatLng (44.4156513, 26.1077295));\n listOfpoints.get(31).add(new LatLng (44.4152528,26.1045537));\n\n\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n listOfpoints.get(32).add(new LatLng (44.4164766, 26.114537));\n listOfpoints.get(32).add(new LatLng (44.4110201,26.120631));\n listOfpoints.get(32).add(new LatLng (44.4094872,26.122648));\n listOfpoints.get(32).add(new LatLng (44.4131046, 26.1296003));\n listOfpoints.get(32).add(new LatLng (44.4151891, 26.1329906));\n listOfpoints.get(32).add(new LatLng (44.4171203, 26.1348789));\n listOfpoints.get(32).add(new LatLng (44.4201242, 26.1365526));\n listOfpoints.get(32).add(new LatLng (44.4204001,26.1351364));\n listOfpoints.get(32).add(new LatLng (44.4206759, 26.1333339));\n listOfpoints.get(32).add(new LatLng (44.42181,26.1313169));\n listOfpoints.get(32).add(new LatLng (44.4228827, 26.1314028));\n listOfpoints.get(32).add(new LatLng (44.4255799, 26.1284845));\n listOfpoints.get(32).add(new LatLng (44.4256412, 26.1274975));\n listOfpoints.get(32).add(new LatLng (44.4257638, 26.1234634));\n listOfpoints.get(32).add(new LatLng (44.425917, 26.1195152));\n listOfpoints.get(32).add(new LatLng (44.4238635, 26.1194294));\n listOfpoints.get(32).add(new LatLng (44.4193273,26.115567));\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n\n\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n listOfpoints.get(33).add(new LatLng (44.4255799,26.1284845));\n listOfpoints.get(33).add(new LatLng (44.4318104,26.1386596));\n listOfpoints.get(33).add(new LatLng (44.4320863,26.1385309));\n listOfpoints.get(33).add(new LatLng (44.4313814,26.1329948));\n listOfpoints.get(33).add(new LatLng (44.4316879,26.129819));\n listOfpoints.get(33).add(new LatLng (44.4326992,26.1229526));\n listOfpoints.get(33).add(new LatLng (44.4328861,26.1207289));\n listOfpoints.get(33).add(new LatLng (44.4300024, 26.1205493));\n listOfpoints.get(33).add(new LatLng (44.4288684,26.1196481));\n listOfpoints.get(33).add(new LatLng (44.4275797,26.1191541));\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n\n\n listOfpoints.get(34).add(new LatLng (44.4202782, 26.1364709));\n listOfpoints.get(34).add(new LatLng (44.4204314,26.1366855));\n listOfpoints.get(34).add(new LatLng (44.4255806,26.1375009));\n listOfpoints.get(34).add(new LatLng (44.4293579,26.1390888));\n listOfpoints.get(34).add(new LatLng (44.4303615,26.139196));\n listOfpoints.get(34).add(new LatLng (44.4317406,26.1386596));\n listOfpoints.get(34).add(new LatLng (44.4266686,26.1303877));\n listOfpoints.get(34).add(new LatLng (44.4255882,26.128596));\n listOfpoints.get(34).add(new LatLng (44.4250212,26.1291968));\n listOfpoints.get(34).add(new LatLng (44.4230214, 26.1315571));\n listOfpoints.get(34).add(new LatLng (44.4227685,26.1316644));\n listOfpoints.get(34).add(new LatLng (44.4217877,26.1315678));\n listOfpoints.get(34).add(new LatLng (44.4207762,26.1334668));\n listOfpoints.get(34).add(new LatLng (44.4202782,26.1364709));\n\n\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n listOfpoints.get(35).add(new LatLng (44.4437985,26.1194425));\n listOfpoints.get(35).add(new LatLng (44.4469926,26.1222749));\n listOfpoints.get(35).add(new LatLng (44.4492443, 26.1240881));\n listOfpoints.get(35).add(new LatLng (44.4504315,26.123144));\n listOfpoints.get(35).add(new LatLng (44.4512893,26.1217492));\n listOfpoints.get(35).add(new LatLng (44.451421, 26.1212347));\n listOfpoints.get(35).add(new LatLng (44.4523401, 26.1180161));\n listOfpoints.get(35).add(new LatLng (44.4527077, 26.1145399));\n listOfpoints.get(35).add(new LatLng (44.452944, 26.1009052));\n listOfpoints.get(35).add(new LatLng (44.4516573,26.1013558));\n listOfpoints.get(35).add(new LatLng (44.4510217,26.1016777));\n listOfpoints.get(35).add(new LatLng (44.4500413,26.1025574));\n listOfpoints.get(35).add(new LatLng (44.449712,26.1027291));\n listOfpoints.get(35).add(new LatLng (44.4477666,26.1031153));\n listOfpoints.get(35).add(new LatLng (44.4479198,26.1042526));\n listOfpoints.get(35).add(new LatLng (44.448027,26.1051967));\n listOfpoints.get(35).add(new LatLng (44.4481419,26.1058619));\n listOfpoints.get(35).add(new LatLng (44.4481189, 26.1070206));\n listOfpoints.get(35).add(new LatLng (44.448004,26.1073425));\n listOfpoints.get(35).add(new LatLng (44.4473836,26.1088338));\n listOfpoints.get(35).add(new LatLng (44.4472917,26.1100569));\n listOfpoints.get(35).add(new LatLng (44.4471385, 26.1102929));\n listOfpoints.get(35).add(new LatLng (44.4469241,26.1116877));\n listOfpoints.get(35).add(new LatLng (44.4469394,26.1122456));\n listOfpoints.get(35).add(new LatLng (44.4467403,26.1136403));\n listOfpoints.get(35).add(new LatLng (44.445959,26.1161938));\n listOfpoints.get(35).add(new LatLng (44.4448254,26.1176744));\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n\n\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n listOfpoints.get(36).add(new LatLng (44.4372662,26.123983));\n listOfpoints.get(36).add(new LatLng (44.4356115, 26.1252275));\n listOfpoints.get(36).add(new LatLng (44.4344471, 26.1254207));\n listOfpoints.get(36).add(new LatLng (44.4324705,26.1258069));\n listOfpoints.get(36).add(new LatLng (44.4315052, 26.1327377));\n listOfpoints.get(36).add(new LatLng (44.432256,26.1385742));\n listOfpoints.get(36).add(new LatLng (44.4351059,26.1373511));\n listOfpoints.get(36).add(new LatLng (44.4376339, 26.1363641));\n listOfpoints.get(36).add(new LatLng (44.4389822, 26.1353985));\n listOfpoints.get(36).add(new LatLng (44.4401772,26.1345402));\n listOfpoints.get(36).add(new LatLng (44.4411883, 26.1334458));\n listOfpoints.get(36).add(new LatLng (44.4402231, 26.1281458));\n listOfpoints.get(36).add(new LatLng (44.4398861,26.126279));\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n\n\n\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n listOfpoints.get(37).add(new LatLng (44.3977135, 26.1097995));\n listOfpoints.get(37).add(new LatLng (44.3909519,26.1099282));\n listOfpoints.get(37).add(new LatLng (44.3874558, 26.1100784));\n listOfpoints.get(37).add(new LatLng (44.3877779, 26.1129538));\n listOfpoints.get(37).add(new LatLng (44.3881766, 26.1154428));\n listOfpoints.get(37).add(new LatLng (44.3886059, 26.1165586));\n listOfpoints.get(37).add(new LatLng (44.3894799, 26.1180178));\n listOfpoints.get(37).add(new LatLng (44.3906606, 26.1193052));\n listOfpoints.get(37).add(new LatLng (44.3927152, 26.1205927));\n listOfpoints.get(37).add(new LatLng (44.3936352, 26.1206785));\n listOfpoints.get(37).add(new LatLng (44.3940339, 26.1202279));\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n\n\n\n listOfpoints.get(38).add(new LatLng (44.389256,26.0917973));\n listOfpoints.get(38).add(new LatLng (44.3892556,26.0920523));\n listOfpoints.get(38).add(new LatLng (44.4003643, 26.0970731));\n listOfpoints.get(38).add(new LatLng (44.4008548, 26.0971482));\n listOfpoints.get(38).add(new LatLng (44.4030625, 26.0971601));\n listOfpoints.get(38).add(new LatLng (44.4043195,26.0965593));\n listOfpoints.get(38).add(new LatLng (44.4019587, 26.0920531));\n listOfpoints.get(38).add(new LatLng (44.4005636,26.0883195));\n listOfpoints.get(38).add(new LatLng (44.3987104,26.0864919));\n listOfpoints.get(38).add(new LatLng (44.3972443, 26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3961557,26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3946992,26.0841584));\n listOfpoints.get(38).add(new LatLng (44.3918473,26.0856819));\n listOfpoints.get(38).add(new LatLng (44.3912493,26.08639));\n listOfpoints.get(38).add(new LatLng (44.389256, 26.0917973));\n\n\n\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n listOfpoints.get(39).add(new LatLng (44.4011008,26.0974224));\n listOfpoints.get(39).add(new LatLng (44.399997,26.0972078));\n listOfpoints.get(39).add(new LatLng (44.389065,26.0922189));\n listOfpoints.get(39).add(new LatLng (44.3863339,26.0922418));\n listOfpoints.get(39).add(new LatLng (44.387806,26.0981212));\n listOfpoints.get(39).add(new LatLng (44.3887261,26.1004386));\n listOfpoints.get(39).add(new LatLng (44.3889714,26.1023269));\n listOfpoints.get(39).add(new LatLng (44.3887567,26.1040435));\n listOfpoints.get(39).add(new LatLng (44.3875607,26.1097513));\n listOfpoints.get(39).add(new LatLng (44.3977341,26.1097306));\n listOfpoints.get(39).add(new LatLng (44.3979142,26.1101973));\n listOfpoints.get(39).add(new LatLng (44.397964,26.1101222));\n listOfpoints.get(39).add(new LatLng (44.3996198,26.1059165));\n listOfpoints.get(39).add(new LatLng (44.4016128,26.0990715));\n listOfpoints.get(39).add(new LatLng (44.4030402,26.0978593));\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n\n\n\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n listOfpoints.get(40).add(new LatLng (44.4494277,26.1245701));\n listOfpoints.get(40).add(new LatLng (44.4610682, 26.1325953));\n listOfpoints.get(40).add(new LatLng (44.4618646,26.1326811));\n listOfpoints.get(40).add(new LatLng (44.4644374, 26.1345265));\n listOfpoints.get(40).add(new LatLng (44.4660607, 26.1368439));\n listOfpoints.get(40).add(new LatLng (44.4665813,26.1365435));\n listOfpoints.get(40).add(new LatLng (44.4663976,26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4667345, 26.1349985));\n listOfpoints.get(40).add(new LatLng (44.4681739, 26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4701952, 26.1371014));\n listOfpoints.get(40).add(new LatLng (44.4719714, 26.1368868));\n listOfpoints.get(40).add(new LatLng (44.4730739, 26.1358998));\n listOfpoints.get(40).add(new LatLng (44.4731964,26.1346981));\n listOfpoints.get(40).add(new LatLng (44.4687252,26.1305783));\n listOfpoints.get(40).add(new LatLng (44.466857,26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4662751, 26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4658769, 26.1300633));\n listOfpoints.get(40).add(new LatLng (44.4666426, 26.129162));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1285183));\n listOfpoints.get(40).add(new LatLng (44.4697971, 26.1290333));\n listOfpoints.get(40).add(new LatLng (44.4723389, 26.1319945));\n listOfpoints.get(40).add(new LatLng (44.4743294,26.1327669));\n listOfpoints.get(40).add(new LatLng (44.4750338,26.1320374));\n listOfpoints.get(40).add(new LatLng (44.4756462,26.1297199));\n listOfpoints.get(40).add(new LatLng (44.4742376,26.1249563));\n listOfpoints.get(40).add(new LatLng (44.4742988, 26.1238835));\n listOfpoints.get(40).add(new LatLng (44.4741457,26.1231968));\n listOfpoints.get(40).add(new LatLng (44.4676533,26.1269734));\n listOfpoints.get(40).add(new LatLng (44.4668876,26.1267588));\n listOfpoints.get(40).add(new LatLng (44.4649275,26.1207506));\n listOfpoints.get(40).add(new LatLng (44.4648662,26.120064));\n listOfpoints.get(40).add(new LatLng (44.4674389,26.118562));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1177895));\n listOfpoints.get(40).add(new LatLng (44.4710833,26.1160729));\n listOfpoints.get(40).add(new LatLng (44.4714202,26.1163304));\n listOfpoints.get(40).add(new LatLng (44.4722777,26.116502));\n listOfpoints.get(40).add(new LatLng (44.4729208,26.1131117));\n listOfpoints.get(40).add(new LatLng (44.4723083,26.1107084));\n listOfpoints.get(40).add(new LatLng (44.4725227,26.1095926));\n listOfpoints.get(40).add(new LatLng (44.4733801,26.1087343));\n listOfpoints.get(40).add(new LatLng (44.4735945, 26.1082194));\n listOfpoints.get(40).add(new LatLng (44.4700727,26.1101076));\n listOfpoints.get(40).add(new LatLng (44.4533184,26.1047861));\n listOfpoints.get(40).add(new LatLng (44.4531039,26.105344));\n listOfpoints.get(40).add(new LatLng (44.4528589,26.1152146));\n listOfpoints.get(40).add(new LatLng (44.4526138,26.1174891));\n listOfpoints.get(40).add(new LatLng (44.452093,26.1197207));\n listOfpoints.get(40).add(new LatLng (44.4508982,26.1229822));\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n\n\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n listOfpoints.get(41).add(new LatLng (44.4550165,26.1051764));\n listOfpoints.get(41).add(new LatLng (44.4698103,26.1097469));\n listOfpoints.get(41).add(new LatLng (44.4709588,26.1093392));\n listOfpoints.get(41).add(new LatLng (44.4739216,26.1077299));\n listOfpoints.get(41).add(new LatLng (44.4734929,26.1050262));\n listOfpoints.get(41).add(new LatLng (44.4721455,26.105155));\n listOfpoints.get(41).add(new LatLng (44.4701242,26.1040392));\n listOfpoints.get(41).add(new LatLng (44.467521, 26.101593));\n listOfpoints.get(41).add(new LatLng (44.4673067, 26.1001768));\n listOfpoints.get(41).add(new LatLng (44.4664185,26.099061));\n listOfpoints.get(41).add(new LatLng (44.4660816,26.0979023));\n listOfpoints.get(41).add(new LatLng (44.4662041,26.0968294));\n listOfpoints.get(41).add(new LatLng (44.4671535,26.0960569));\n listOfpoints.get(41).add(new LatLng (44.4677661,26.0958853));\n listOfpoints.get(41).add(new LatLng (44.4680723,26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4691748,26.0952415));\n listOfpoints.get(41).add(new LatLng (44.4720536,26.0967865));\n listOfpoints.get(41).add(new LatLng (44.4742278,26.0964861));\n listOfpoints.get(41).add(new LatLng (44.4749015, 26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4747178,26.0948124));\n listOfpoints.get(41).add(new LatLng (44.4719617,26.0923662));\n listOfpoints.get(41).add(new LatLng (44.4714717,26.0908642));\n listOfpoints.get(41).add(new LatLng (44.4717167,26.0897913));\n listOfpoints.get(41).add(new LatLng (44.4723598,26.0888901));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0894909));\n listOfpoints.get(41).add(new LatLng (44.4732785,26.0900917));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0907783));\n listOfpoints.get(41).add(new LatLng (44.4735235,26.0912075));\n listOfpoints.get(41).add(new LatLng (44.4740135,26.0907354));\n listOfpoints.get(41).add(new LatLng (44.4734316,26.0891046));\n listOfpoints.get(41).add(new LatLng (44.4724211,26.0881176));\n listOfpoints.get(41).add(new LatLng (44.4661428,26.0866585));\n listOfpoints.get(41).add(new LatLng (44.4639989,26.09095));\n listOfpoints.get(41).add(new LatLng (44.4621305,26.0931387));\n listOfpoints.get(41).add(new LatLng (44.4558053,26.0973375));\n listOfpoints.get(41).add(new LatLng (44.4531632,26.0985928));\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n\n\n\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n listOfpoints.get(42).add(new LatLng (44.4404676, 26.072638));\n listOfpoints.get(42).add(new LatLng (44.4426125, 26.0786676));\n listOfpoints.get(42).add(new LatLng (44.4427656, 26.0791182));\n listOfpoints.get(42).add(new LatLng (44.4429801, 26.0806202));\n listOfpoints.get(42).add(new LatLng (44.4461972, 26.0758781));\n listOfpoints.get(42).add(new LatLng ( 44.4465955, 26.0753846));\n listOfpoints.get(42).add(new LatLng ( 44.4468405, 26.0753202));\n listOfpoints.get(42).add(new LatLng (44.4474227, 26.0759639));\n listOfpoints.get(42).add(new LatLng (44.4501186, 26.0695052));\n listOfpoints.get(42).add(new LatLng ( 44.4472848, 26.063776));\n listOfpoints.get(42).add(new LatLng ( 44.4461972,26.0623597));\n listOfpoints.get(42).add(new LatLng (44.4454925, 26.0618233));\n listOfpoints.get(42).add(new LatLng ( 44.4442057,26.0612654));\n listOfpoints.get(42).add(new LatLng (44.4432099,26.0609435));\n listOfpoints.get(42).add(new LatLng ( 44.4429035,26.062467));\n listOfpoints.get(42).add(new LatLng (44.4385679, 26.0699558));\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n\n\n\n listOfpoints.get(43).add(new LatLng ( 44.4430787,26.0806953));\n listOfpoints.get(43).add(new LatLng ( 44.443126, 26.0810753));\n listOfpoints.get(43).add(new LatLng ( 44.4455924,26.0813757));\n listOfpoints.get(43).add(new LatLng (44.4467107,26.0816761));\n listOfpoints.get(43).add(new LatLng (44.4514593,26.0842939));\n listOfpoints.get(43).add(new LatLng (44.4518575,26.0844441));\n listOfpoints.get(43).add(new LatLng (44.4519188,26.0818906));\n listOfpoints.get(43).add(new LatLng (44.4520107,26.0813971));\n listOfpoints.get(43).add(new LatLng (44.452026,26.0767193));\n listOfpoints.get(43).add(new LatLng (44.4527, 26.0732861));\n listOfpoints.get(43).add(new LatLng ( 44.4511682,26.0706039));\n listOfpoints.get(43).add(new LatLng (44.4503219, 26.069692));\n listOfpoints.get(43).add(new LatLng (44.4502719,26.0698017));\n listOfpoints.get(43).add(new LatLng (44.4475595, 26.0760068));\n listOfpoints.get(43).add(new LatLng (44.447414, 26.0761356));\n listOfpoints.get(43).add(new LatLng (44.4468242, 26.0754811));\n listOfpoints.get(43).add(new LatLng (44.4465485, 26.0755562));\n listOfpoints.get(43).add(new LatLng (44.4462728, 26.0759746));\n listOfpoints.get(43).add(new LatLng (44.4430787,26.0806953));\n\n\n\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n listOfpoints.get(44).add(new LatLng (44.4299706,26.0672689));\n listOfpoints.get(44).add(new LatLng (44.431342,26.068213));\n listOfpoints.get(44).add(new LatLng (44.4358314, 26.0745752));\n listOfpoints.get(44).add(new LatLng (44.4382828,26.0698974));\n listOfpoints.get(44).add(new LatLng (44.4353105,26.0630095));\n listOfpoints.get(44).add(new LatLng (44.435096,26.0616792));\n listOfpoints.get(44).add(new LatLng (44.4344678, 26.0595763));\n listOfpoints.get(44).add(new LatLng (44.4320315, 26.0595334));\n listOfpoints.get(44).add(new LatLng (44.4316178, 26.0600913));\n listOfpoints.get(44).add(new LatLng (44.4291968, 26.0639));\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n\n\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n listOfpoints.get(45).add(new LatLng (44.441285, 26.1333359));\n listOfpoints.get(45).add(new LatLng (44.4414535,26.1345376));\n listOfpoints.get(45).add(new LatLng (44.4428936,26.1475195));\n listOfpoints.get(45).add(new LatLng (44.443154,26.1493863));\n listOfpoints.get(45).add(new LatLng (44.4434451, 26.149794));\n listOfpoints.get(45).add(new LatLng (44.4437515,26.1497082));\n listOfpoints.get(45).add(new LatLng (44.4445175,26.1494721));\n listOfpoints.get(45).add(new LatLng (44.4454979,26.1488713));\n listOfpoints.get(45).add(new LatLng (44.4459574,26.1481847));\n listOfpoints.get(45).add(new LatLng (44.447091,26.147262));\n listOfpoints.get(45).add(new LatLng (44.448148,26.1456527));\n listOfpoints.get(45).add(new LatLng (44.4520847, 26.1353101));\n listOfpoints.get(45).add(new LatLng (44.4529577,26.1321129));\n listOfpoints.get(45).add(new LatLng (44.4531262,26.1316623));\n listOfpoints.get(45).add(new LatLng (44.4536776, 26.1311473));\n listOfpoints.get(45).add(new LatLng (44.4547192, 26.1298813));\n listOfpoints.get(45).add(new LatLng (44.455148,26.1288513));\n listOfpoints.get(45).add(new LatLng (44.449833, 26.1251177));\n listOfpoints.get(45).add(new LatLng (44.4491437, 26.12471));\n listOfpoints.get(45).add(new LatLng (44.4477038,26.1259545));\n listOfpoints.get(45).add(new LatLng (44.4462332, 26.1266841));\n listOfpoints.get(45).add(new LatLng (44.4447013, 26.1279501));\n listOfpoints.get(45).add(new LatLng (44.4436596, 26.129259));\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n\n\n\n listOfpoints.get(46).add(new LatLng (44.4322314,26.1388506));\n listOfpoints.get(46).add(new LatLng (44.4335155,26.1535014));\n listOfpoints.get(46).add(new LatLng (44.4338066,26.1552395));\n listOfpoints.get(46).add(new LatLng (44.434971,26.1596598));\n listOfpoints.get(46).add(new LatLng (44.4350966, 26.1598576));\n listOfpoints.get(46).add(new LatLng (44.4421748,26.1571969));\n listOfpoints.get(46).add(new LatLng (44.4425731, 26.1570252));\n listOfpoints.get(46).add(new LatLng (44.4429102, 26.1561669));\n listOfpoints.get(46).add(new LatLng (44.443477, 26.1502231));\n listOfpoints.get(46).add(new LatLng (44.4429255, 26.1494077));\n listOfpoints.get(46).add(new LatLng (44.442328, 26.144215));\n listOfpoints.get(46).add(new LatLng (44.4418837, 26.1404384));\n listOfpoints.get(46).add(new LatLng (44.4412556, 26.1349882));\n listOfpoints.get(46).add(new LatLng (44.4411331, 26.1338295));\n listOfpoints.get(46).add(new LatLng (44.4406428,26.1344732));\n listOfpoints.get(46).add(new LatLng (44.4388656, 26.1357821));\n listOfpoints.get(46).add(new LatLng (44.4374868, 26.1367048));\n listOfpoints.get(46).add(new LatLng (44.4350813, 26.137606));\n listOfpoints.get(46).add(new LatLng (44.4322314, 26.1388506));\n\n\n\n listOfpoints.get(47).add(new LatLng (44.4202257, 26.1368063));\n listOfpoints.get(47).add(new LatLng (44.4179627,26.1463187));\n listOfpoints.get(47).add(new LatLng (44.4227749, 26.149709));\n listOfpoints.get(47).add(new LatLng (44.4231734, 26.1503527));\n listOfpoints.get(47).add(new LatLng (44.4237251, 26.1504386));\n listOfpoints.get(47).add(new LatLng (44.4261157, 26.1495373));\n listOfpoints.get(47).add(new LatLng (44.4262996, 26.1508463));\n listOfpoints.get(47).add(new LatLng (44.4268206, 26.1524341));\n listOfpoints.get(47).add(new LatLng (44.4283937, 26.1547449));\n listOfpoints.get(47).add(new LatLng (44.433251, 26.1534574));\n listOfpoints.get(47).add(new LatLng (44.4320712, 26.1388662));\n listOfpoints.get(47).add(new LatLng (44.430401,26.139467));\n listOfpoints.get(47).add(new LatLng (44.4295736, 26.1393812));\n listOfpoints.get(47).add(new LatLng (44.4254668, 26.137686));\n listOfpoints.get(47).add(new LatLng (44.4241642,26.1374929));\n listOfpoints.get(47).add(new LatLng (44.4202257,26.1368063));\n\n\n\n listOfpoints.get(48).add(new LatLng (44.4234516,26.1510693));\n listOfpoints.get(48).add(new LatLng (44.425076, 26.1630856));\n listOfpoints.get(48).add(new LatLng (44.4292135,26.1619484));\n listOfpoints.get(48).add(new LatLng(44.4286618, 26.1578285));\n listOfpoints.get(48).add(new LatLng (44.4287078,26.156026));\n listOfpoints.get(48).add(new LatLng (44.4286925,26.1557042));\n listOfpoints.get(48).add(new LatLng (44.4269762, 26.1532151));\n listOfpoints.get(48).add(new LatLng (44.4262407, 26.151713));\n listOfpoints.get(48).add(new LatLng (44.4259189, 26.1499535));\n listOfpoints.get(48).add(new LatLng (44.4237122, 26.1506402));\n listOfpoints.get(48).add(new LatLng (44.4234516, 26.1510693));\n\n\n\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n listOfpoints.get(49).add(new LatLng (44.4286925, 26.1557042));\n listOfpoints.get(49).add(new LatLng (44.4287964, 26.1580645));\n listOfpoints.get(49).add(new LatLng (44.4290876, 26.1602317));\n listOfpoints.get(49).add(new LatLng (44.4302981,26.1670124));\n listOfpoints.get(49).add(new LatLng (44.4357222, 26.1692654));\n listOfpoints.get(49).add(new LatLng (44.4362584,26.1689865));\n listOfpoints.get(49).add(new LatLng (44.4366108, 26.1683857));\n listOfpoints.get(49).add(new LatLng (44.4367794,26.1675274));\n listOfpoints.get(49).add(new LatLng (44.433332, 26.1536442));\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n\n\n\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.14650));\n listOfpoints.get(50).add(new LatLng (44.4142265, 26.15554));\n listOfpoints.get(50).add(new LatLng (44.41369, 26.1578359));\n listOfpoints.get(50).add(new LatLng (44.4131842,26.1635008));\n listOfpoints.get(50).add(new LatLng (44.4133221, 26.1636295));\n listOfpoints.get(50).add(new LatLng (44.4154679, 26.1645951));\n listOfpoints.get(50).add(new LatLng (44.4169393, 26.1648526));\n listOfpoints.get(50).add(new LatLng (44.4181654, 26.1648097));\n listOfpoints.get(50).add(new LatLng (44.420403, 26.1642732));\n listOfpoints.get(50).add(new LatLng (44.4248319, 26.1631574));\n listOfpoints.get(50).add(new LatLng (44.4232688, 26.151227));\n listOfpoints.get(50).add(new LatLng (44.4226558, 26.1500253));\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.1465063));\n\n\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n listOfpoints.get(51).add(new LatLng (44.4079354,26.1261736));\n listOfpoints.get(51).add(new LatLng (44.3993506, 26.1595188));\n listOfpoints.get(51).add(new LatLng (44.4000559,26.1602484));\n listOfpoints.get(51).add(new LatLng (44.407077,26.1638962));\n listOfpoints.get(51).add(new LatLng (44.4081807, 26.1641108));\n listOfpoints.get(51).add(new LatLng (44.4091004, 26.1638104));\n listOfpoints.get(51).add(new LatLng (44.4114916, 26.162995));\n listOfpoints.get(51).add(new LatLng (44.4129018, 26.16351));\n listOfpoints.get(51).add(new LatLng (44.413147, 26.1608063));\n listOfpoints.get(51).add(new LatLng (44.4135762, 26.1567723));\n listOfpoints.get(51).add(new LatLng (44.4148943, 26.1529957));\n listOfpoints.get(51).add(new LatLng (44.4176838,26.1461722));\n listOfpoints.get(51).add(new LatLng (44.4183121,26.1435329));\n listOfpoints.get(51).add(new LatLng (44.4200133, 26.1367523));\n listOfpoints.get(51).add(new LatLng (44.4175152,26.1354433));\n listOfpoints.get(51).add(new LatLng (44.4159825, 26.1342417));\n listOfpoints.get(51).add(new LatLng (44.4146031,26.1324822));\n listOfpoints.get(51).add(new LatLng (44.4113383,26.1266242));\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n\n\n listOfpoints.get(52).add(new LatLng (44.3988714,26.159323));\n listOfpoints.get(52).add(new LatLng (44.4079468,26.1248191));\n listOfpoints.get(52).add(new LatLng (44.4088665, 26.1225875));\n listOfpoints.get(52).add(new LatLng (44.4080694,26.1217721));\n listOfpoints.get(52).add(new LatLng (44.4065059,26.1213858));\n listOfpoints.get(52).add(new LatLng (44.3941185, 26.120785));\n listOfpoints.get(52).add(new LatLng (44.3862678, 26.1391528));\n listOfpoints.get(52).add(new LatLng (44.3887826,26.1415131));\n listOfpoints.get(52).add(new LatLng (44.3886293, 26.1448605));\n listOfpoints.get(52).add(new LatLng (44.3891813, 26.1464484));\n listOfpoints.get(52).add(new LatLng (44.389304, 26.1472209));\n listOfpoints.get(52).add(new LatLng (44.3927079, 26.155761));\n listOfpoints.get(52).add(new LatLng (44.3941492, 26.1572631));\n listOfpoints.get(52).add(new LatLng (44.3985648, 26.16031));\n listOfpoints.get(52).add(new LatLng (44.3988714, 26.159323));\n\n\n\n listOfpoints.get(53).add(new LatLng (44.3886499, 26.1177499));\n listOfpoints.get(53).add(new LatLng (44.3892939, 26.1179645));\n listOfpoints.get(53).add(new LatLng (44.3881592, 26.1159046));\n listOfpoints.get(53).add(new LatLng (44.3876838,26.1132224));\n listOfpoints.get(53).add(new LatLng (44.3873311, 26.1100895));\n listOfpoints.get(53).add(new LatLng (44.3887879, 26.1032445));\n listOfpoints.get(53).add(new LatLng (44.3888645, 26.1022789));\n listOfpoints.get(53).add(new LatLng (44.3886192, 26.1005838));\n listOfpoints.get(53).add(new LatLng (44.3883738,26.0998542));\n listOfpoints.get(53).add(new LatLng (44.3876225,26.097923));\n listOfpoints.get(53).add(new LatLng (44.3869478, 26.0954554));\n listOfpoints.get(53).add(new LatLng (44.3862577, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3860584, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3789427, 26.0917003));\n listOfpoints.get(53).add(new LatLng (44.3757526,26.1157758));\n listOfpoints.get(53).add(new LatLng (44.375998,26.1173208));\n listOfpoints.get(53).add(new LatLng (44.3765195,26.1189945));\n listOfpoints.get(53).add(new LatLng (44.3769183,26.1194665));\n listOfpoints.get(53).add(new LatLng (44.3775624, 26.1194236));\n listOfpoints.get(53).add(new LatLng (44.3786973,26.1184366));\n listOfpoints.get(53).add(new LatLng (44.3824393,26.1150248));\n listOfpoints.get(53).add(new LatLng (44.3831447, 26.114939));\n listOfpoints.get(53).add(new LatLng (44.3840802, 26.1151106));\n listOfpoints.get(53).add(new LatLng (44.3879598, 26.1175568));\n listOfpoints.get(53).add(new LatLng (44.3886499,26.1177499));\n\n\n listOfpoints.get(54).add(new LatLng ( 44.3939843, 26.1207857));\n listOfpoints.get(54).add(new LatLng (44.3928679,26.120861));\n listOfpoints.get(54).add(new LatLng (44.3916643, 26.1202602));\n listOfpoints.get(54).add(new LatLng (44.3901386, 26.1189727));\n listOfpoints.get(54).add(new LatLng (44.3894869, 26.1181573));\n listOfpoints.get(54).add(new LatLng (44.3881836, 26.1178784));\n listOfpoints.get(54).add(new LatLng (44.3839589, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3830541, 26.1151318));\n listOfpoints.get(54).add(new LatLng (44.382479, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3814899, 26.1160544));\n listOfpoints.get(54).add(new LatLng (44.3792585,26.1181466));\n listOfpoints.get(54).add(new LatLng (44.3765793, 26.1204638));\n listOfpoints.get(54).add(new LatLng (44.3792479, 26.1275449));\n listOfpoints.get(54).add(new LatLng (44.379524,26.135098));\n listOfpoints.get(54).add(new LatLng (44.3856888, 26.1398616));\n listOfpoints.get(54).add(new LatLng (44.3939843,26.1207857));\n\n\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n listOfpoints.get(55).add(new LatLng (44.3767422, 26.0507223));\n listOfpoints.get(55).add(new LatLng (44.3901146,26.0632536));\n listOfpoints.get(55).add(new LatLng (44.4006018,26.0712359));\n listOfpoints.get(55).add(new LatLng (44.4064272, 26.0638544));\n listOfpoints.get(55).add(new LatLng (44.4054461,26.0626528));\n listOfpoints.get(55).add(new LatLng (44.3997432, 26.0485766));\n listOfpoints.get(55).add(new LatLng (44.3817726,26.0459158));\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n\n\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n listOfpoints.get(56).add(new LatLng (44.4007746, 26.0715552));\n listOfpoints.get(56).add(new LatLng (44.3971564,26.0688944));\n listOfpoints.get(56).add(new LatLng (44.3905634, 26.0639591));\n listOfpoints.get(56).add(new LatLng (44.3862699, 26.078207));\n listOfpoints.get(56).add(new LatLng (44.38124,26.0855027));\n listOfpoints.get(56).add(new LatLng (44.3802585, 26.0858031));\n listOfpoints.get(56).add(new LatLng (44.3797064, 26.0867901));\n listOfpoints.get(56).add(new LatLng (44.3790009,26.091425));\n listOfpoints.get(56).add(new LatLng (44.3848591,26.091897));\n listOfpoints.get(56).add(new LatLng (44.3890301,26.0918541));\n listOfpoints.get(56).add(new LatLng (44.3909928, 26.0865755));\n listOfpoints.get(56).add(new LatLng (44.3915141,26.0856314));\n listOfpoints.get(56).add(new LatLng (44.3946727, 26.0839608));\n listOfpoints.get(56).add(new LatLng (44.3961445,26.0850122));\n listOfpoints.get(56).add(new LatLng (44.3967425,26.0849907));\n listOfpoints.get(56).add(new LatLng (44.4002074, 26.0843041));\n listOfpoints.get(56).add(new LatLng (44.4029362, 26.0816648));\n listOfpoints.get(56).add(new LatLng (44.4055576,26.0799267));\n listOfpoints.get(56).add(new LatLng (44.4070752,26.0791113));\n listOfpoints.get(56).add(new LatLng (44.4130379,26.0732319));\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n\n\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n listOfpoints.get(57).add(new LatLng (44.4056207, 26.0623124));\n listOfpoints.get(57).add(new LatLng (44.4131623,26.0729554));\n listOfpoints.get(57).add(new LatLng (44.4204884,26.0654452));\n listOfpoints.get(57).add(new LatLng (44.4181895,26.0583212));\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n\n\n listOfpoints.get(58).add(new LatLng (44.414413, 26.0354062));\n listOfpoints.get(58).add(new LatLng (44.415394, 26.0475512));\n listOfpoints.get(58).add(new LatLng (44.4158231,26.0502978));\n listOfpoints.get(58).add(new LatLng (44.4181221,26.0576363));\n listOfpoints.get(58).add(new LatLng (44.4207888, 26.0658331));\n listOfpoints.get(58).add(new LatLng (44.4237005, 26.0731287));\n listOfpoints.get(58).add(new LatLng (44.4298608,26.0624857));\n listOfpoints.get(58).add(new LatLng (44.4293091,26.0617562));\n listOfpoints.get(58).add(new LatLng (44.4290027,26.0610266));\n listOfpoints.get(58).add(new LatLng (44.4275316, 26.0600825));\n listOfpoints.get(58).add(new LatLng (44.426275, 26.0585375));\n listOfpoints.get(58).add(new LatLng (44.4259379,26.0566922));\n listOfpoints.get(58).add(new LatLng (44.4253862, 26.0520573));\n listOfpoints.get(58).add(new LatLng (44.4242829,26.0473366));\n listOfpoints.get(58).add(new LatLng (44.4229037,26.0406847));\n listOfpoints.get(58).add(new LatLng (44.4221374,26.0347624));\n listOfpoints.get(58).add(new LatLng (44.4165281,26.0346766));\n listOfpoints.get(58).add(new LatLng (44.414413,26.0354062));\n\n\n listOfpoints.get(59).add(new LatLng (44.4224216, 26.0344395));\n listOfpoints.get(59).add(new LatLng (44.422437, 26.0360274));\n listOfpoints.get(59).add(new LatLng (44.423004,26.040276));\n listOfpoints.get(59).add(new LatLng (44.4255632,26.0522065));\n listOfpoints.get(59).add(new LatLng (44.4259156,26.055468));\n listOfpoints.get(59).add(new LatLng (44.42636,26.0583219));\n listOfpoints.get(59).add(new LatLng (44.4274787,26.059781));\n listOfpoints.get(59).add(new LatLng (44.4290264, 26.0608325));\n listOfpoints.get(59).add(new LatLng (44.4293328,26.0616264));\n listOfpoints.get(59).add(new LatLng (44.4299764,26.0623989));\n listOfpoints.get(59).add(new LatLng (44.4319071,26.0594162));\n listOfpoints.get(59).add(new LatLng (44.4345885, 26.0593948));\n listOfpoints.get(59).add(new LatLng (44.4342361, 26.0348472));\n listOfpoints.get(59).add(new LatLng (44.4273254, 26.0330877));\n listOfpoints.get(59).add(new LatLng (44.4237396,26.0342893));\n listOfpoints.get(59).add(new LatLng (44.4224216,26.0344395));\n\n\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n listOfpoints.get(60).add(new LatLng (44.4343687, 26.0351665));\n listOfpoints.get(60).add(new LatLng (44.4347671,26.059757));\n listOfpoints.get(60).add(new LatLng (44.435334, 26.0617097));\n listOfpoints.get(60).add(new LatLng (44.4355025, 26.0629327));\n listOfpoints.get(60).add(new LatLng (44.4356864,26.0635979));\n listOfpoints.get(60).add(new LatLng (44.4371728, 26.0669608));\n listOfpoints.get(60).add(new LatLng (44.4383602, 26.0697182));\n listOfpoints.get(60).add(new LatLng (44.4427184,26.0621798));\n listOfpoints.get(60).add(new LatLng (44.4429329,26.0609782));\n listOfpoints.get(60).add(new LatLng (44.447161,26.0392201));\n listOfpoints.get(60).add(new LatLng (44.4427491,26.0356152));\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n\n\n listOfpoints.get(61).add(new LatLng (44.4053059, 26.0112059));\n listOfpoints.get(61).add(new LatLng (44.384914, 26.0334789));\n listOfpoints.get(61).add(new LatLng (44.3778596, 26.0462677));\n listOfpoints.get(61).add(new LatLng (44.3811722,26.0454952));\n listOfpoints.get(61).add(new LatLng (44.399879, 26.0482418));\n listOfpoints.get(61).add(new LatLng (44.4002162, 26.0489714));\n listOfpoints.get(61).add(new LatLng (44.4169858,26.0575115));\n listOfpoints.get(61).add(new LatLng (44.4180893, 26.0579407));\n listOfpoints.get(61).add(new LatLng (44.4156984,26.0508167));\n listOfpoints.get(61).add(new LatLng (44.4151773,26.0472977));\n listOfpoints.get(61).add(new LatLng (44.414135,26.0356247));\n listOfpoints.get(61).add(new LatLng (44.4110082, 26.0104334));\n listOfpoints.get(61).add(new LatLng (44.4061643,26.0117208));\n listOfpoints.get(61).add(new LatLng (44.4053059,26.0112059));\n\n\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n listOfpoints.get(62).add(new LatLng (44.4103304, 26.0034906));\n listOfpoints.get(62).add(new LatLng (44.4127522,26.0228884));\n listOfpoints.get(62).add(new LatLng (44.4144076,26.0351192));\n listOfpoints.get(62).add(new LatLng (44.4167986,26.0343897));\n listOfpoints.get(62).add(new LatLng (44.4221013, 26.0343038));\n listOfpoints.get(62).add(new LatLng (44.4271277, 26.0328018));\n listOfpoints.get(62).add(new LatLng (44.4343295, 26.0347544));\n listOfpoints.get(62).add(new LatLng (44.4344597, 26.0345399));\n listOfpoints.get(62).add(new LatLng (44.436423, 26.0347646));\n listOfpoints.get(62).add(new LatLng (44.4424747, 26.0213321));\n listOfpoints.get(62).add(new LatLng (44.4459215, 26.0171264));\n listOfpoints.get(62).add(new LatLng (44.4457043,26.0167004));\n listOfpoints.get(62).add(new LatLng (44.4252662, 25.9987613));\n listOfpoints.get(62).add(new LatLng (44.4235193, 25.9990188));\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n\n\n listOfpoints.get(63).add(new LatLng (44.450683, 26.0692569));\n listOfpoints.get(63).add(new LatLng (44.4530725,26.0733768));\n listOfpoints.get(63).add(new LatLng (44.4523986, 26.0762092));\n listOfpoints.get(63).add(new LatLng (44.4522454,26.0783979));\n listOfpoints.get(63).add(new LatLng (44.4521842,26.0858652));\n listOfpoints.get(63).add(new LatLng (44.4658762, 26.0861656));\n listOfpoints.get(63).add(new LatLng (44.4661262, 26.0856151));\n listOfpoints.get(63).add(new LatLng (44.4670374, 26.0787379));\n listOfpoints.get(63).add(new LatLng (44.467496, 26.0777089));\n listOfpoints.get(63).add(new LatLng (44.4773875,26.0721728));\n listOfpoints.get(63).add(new LatLng (44.4779387,26.0720012));\n listOfpoints.get(63).add(new LatLng (44.482103,26.0611007));\n listOfpoints.get(63).add(new LatLng (44.4811232,26.0571525));\n listOfpoints.get(63).add(new LatLng (44.4748153, 26.0461661));\n listOfpoints.get(63).add(new LatLng (44.4716917, 26.0438487));\n listOfpoints.get(63).add(new LatLng (44.4690579,26.0436771));\n listOfpoints.get(63).add(new LatLng (44.4667916, 26.0449645));\n listOfpoints.get(63).add(new LatLng (44.4519663, 26.0668513));\n listOfpoints.get(63).add(new LatLng (44.450683,26.0692569));\n\n\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n listOfpoints.get(64).add(new LatLng (44.466193, 26.0862472));\n listOfpoints.get(64).add(new LatLng (44.4723947,26.0878994));\n listOfpoints.get(64).add(new LatLng (44.4731756,26.0883715));\n listOfpoints.get(64).add(new LatLng (44.4739718,26.090131));\n listOfpoints.get(64).add(new LatLng (44.4744158, 26.090882));\n listOfpoints.get(64).add(new LatLng (44.4748292,26.0909678));\n listOfpoints.get(64).add(new LatLng (44.4753498,26.0906889));\n listOfpoints.get(64).add(new LatLng (44.4774321, 26.0888006));\n listOfpoints.get(64).add(new LatLng (44.4801879,26.0864832));\n listOfpoints.get(64).add(new LatLng (44.4868014,26.0859682));\n listOfpoints.get(64).add(new LatLng (44.4880873,26.0854532));\n listOfpoints.get(64).add(new LatLng (44.489618,26.0824491));\n listOfpoints.get(64).add(new LatLng (44.4904753, 26.0788443));\n listOfpoints.get(64).add(new LatLng (44.4890057,26.0784151));\n listOfpoints.get(64).add(new LatLng (44.478167, 26.0727074));\n listOfpoints.get(64).add(new LatLng (44.4678468, 26.0779216));\n listOfpoints.get(64).add(new LatLng (44.467219, 26.0788228));\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n\n\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n listOfpoints.get(65).add(new LatLng (44.443222,26.0605852));\n listOfpoints.get(65).add(new LatLng (44.4450067,26.0611538));\n listOfpoints.get(65).add(new LatLng (44.4465463,26.062173));\n listOfpoints.get(65).add(new LatLng (44.4472816,26.0631386));\n listOfpoints.get(65).add(new LatLng (44.448913,26.0666577));\n listOfpoints.get(65).add(new LatLng (44.4502551,26.0690373));\n listOfpoints.get(65).add(new LatLng (44.4664896,26.0448331));\n listOfpoints.get(65).add(new LatLng (44.4688479,26.0434168));\n listOfpoints.get(65).add(new LatLng (44.469491,26.0403269));\n listOfpoints.get(65).add(new LatLng (44.4702566,26.037237));\n listOfpoints.get(65).add(new LatLng (44.4701035,26.0353058));\n listOfpoints.get(65).add(new LatLng (44.4613441,26.0305422));\n listOfpoints.get(65).add(new LatLng (44.4611297,26.0346621));\n listOfpoints.get(65).add(new LatLng (44.4606089,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.4595369,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.458618,26.0354775));\n listOfpoints.get(65).add(new LatLng (44.4545745,26.0376233));\n listOfpoints.get(65).add(new LatLng (44.4501632,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4494892,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4485701,26.039297));\n listOfpoints.get(65).add(new LatLng (44.4477429,26.0380953));\n listOfpoints.get(65).add(new LatLng (44.4466093,26.0430306));\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n\n\n\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0912642));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0917148));\n listOfpoints.get(66).add(new LatLng (44.4743313,26.0922513));\n listOfpoints.get(66).add(new LatLng (44.4750816,26.0927019));\n listOfpoints.get(66).add(new LatLng (44.4758471,26.0937962));\n listOfpoints.get(66).add(new LatLng (44.4762758,26.0947189));\n listOfpoints.get(66).add(new LatLng (44.4766127,26.0962853));\n listOfpoints.get(66).add(new LatLng (44.4765514,26.0971436));\n listOfpoints.get(66).add(new LatLng (44.4761227,26.0977444));\n listOfpoints.get(66).add(new LatLng (44.4753878,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4745457,26.0985384));\n listOfpoints.get(66).add(new LatLng (44.4734585,26.0989675));\n listOfpoints.get(66).add(new LatLng (44.4729073,26.0990104));\n listOfpoints.get(66).add(new LatLng (44.4718508,26.0986671));\n listOfpoints.get(66).add(new LatLng (44.471223,26.0980663));\n listOfpoints.get(66).add(new LatLng (44.469263,26.0970792));\n listOfpoints.get(66).add(new LatLng (44.4689567,26.0971651));\n listOfpoints.get(66).add(new LatLng (44.468773,26.0975728));\n listOfpoints.get(66).add(new LatLng (44.4687424,26.0981092));\n listOfpoints.get(66).add(new LatLng (44.4688955,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4692017,26.0986886));\n listOfpoints.get(66).add(new LatLng (44.4694774,26.0985598));\n listOfpoints.get(66).add(new LatLng (44.4704268,26.0990319));\n listOfpoints.get(66).add(new LatLng (44.4707483,26.0994396));\n listOfpoints.get(66).add(new LatLng (44.4719733,26.1024651));\n listOfpoints.get(66).add(new LatLng (44.4735963,26.1028943));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1035809));\n listOfpoints.get(66).add(new LatLng (44.4741322,26.1042676));\n listOfpoints.get(66).add(new LatLng (44.4735351,26.1047396));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1077866));\n listOfpoints.get(66).add(new LatLng (44.4738413,26.1079583));\n listOfpoints.get(66).add(new LatLng (44.473826,26.1085591));\n listOfpoints.get(66).add(new LatLng (44.4733667,26.1097822));\n listOfpoints.get(66).add(new LatLng (44.4732595,26.1107478));\n listOfpoints.get(66).add(new LatLng (44.4734432,26.1111555));\n listOfpoints.get(66).add(new LatLng (44.4763087,26.1089172));\n listOfpoints.get(66).add(new LatLng (44.4946789,26.1040249));\n listOfpoints.get(66).add(new LatLng (44.4968217,26.0792198));\n listOfpoints.get(66).add(new LatLng (44.490592,26.0788336));\n listOfpoints.get(66).add(new LatLng (44.4898573,26.0820737));\n listOfpoints.get(66).add(new LatLng (44.4894593,26.0830178));\n listOfpoints.get(66).add(new LatLng (44.4882229,26.0855306));\n listOfpoints.get(66).add(new LatLng (44.4870595,26.0860456));\n listOfpoints.get(66).add(new LatLng (44.4801439,26.0866335));\n listOfpoints.get(66).add(new LatLng (44.4761173,26.090174));\n listOfpoints.get(66).add(new LatLng (44.4751527,26.0912469));\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n\n listOfpoints.get(67).add(new LatLng (44.4671287, 26.121282));\n listOfpoints.get(67).add(new LatLng (44.46768,26.1231274));\n listOfpoints.get(67).add(new LatLng (44.4696095,26.1234278));\n listOfpoints.get(67).add(new LatLng (44.4712938,26.1224408));\n listOfpoints.get(67).add(new LatLng (44.4723657,26.1229557));\n listOfpoints.get(67).add(new LatLng (44.4727944, 26.1226553));\n listOfpoints.get(67).add(new LatLng (44.4740193, 26.1226982));\n listOfpoints.get(67).add(new LatLng (44.4745399,26.1236424));\n listOfpoints.get(67).add(new LatLng (44.4743668,26.1243164));\n listOfpoints.get(67).add(new LatLng (44.4747037, 26.1250031));\n listOfpoints.get(67).add(new LatLng (44.4751324,26.1257541));\n listOfpoints.get(67).add(new LatLng (44.4758673,26.1267626));\n listOfpoints.get(67).add(new LatLng (44.4761736, 26.127578));\n listOfpoints.get(67).add(new LatLng (44.491758,26.1285221));\n listOfpoints.get(67).add(new LatLng (44.4931662, 26.1377919));\n listOfpoints.get(67).add(new LatLng (44.494452,26.1444008));\n listOfpoints.get(67).add(new LatLng (44.4947581,26.1462033));\n listOfpoints.get(67).add(new LatLng (44.4958601, 26.1472332));\n listOfpoints.get(67).add(new LatLng (44.4969009, 26.1458599));\n listOfpoints.get(67).add(new LatLng (44.4984926, 26.1450875));\n listOfpoints.get(67).add(new LatLng (44.5000231,26.1446583));\n listOfpoints.get(67).add(new LatLng (44.5006353,26.1435425));\n listOfpoints.get(67).add(new LatLng (44.5012475,26.1424267));\n listOfpoints.get(67).add(new LatLng (44.5057774, 26.144315));\n listOfpoints.get(67).add(new LatLng (44.5070629, 26.137191));\n listOfpoints.get(67).add(new LatLng (44.5066956, 26.1233723));\n listOfpoints.get(67).add(new LatLng (44.502227,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4952479,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4782558,26.1086953));\n listOfpoints.get(67).add(new LatLng (44.4765716,26.1090386));\n listOfpoints.get(67).add(new LatLng (44.4734175,26.1114848));\n listOfpoints.get(67).add(new LatLng (44.4739994,26.1124289));\n listOfpoints.get(67).add(new LatLng (44.4744587,26.1137163));\n listOfpoints.get(67).add(new LatLng (44.474275,26.1152613));\n listOfpoints.get(67).add(new LatLng (44.4738156,26.1171067));\n listOfpoints.get(67).add(new LatLng (44.4729582,26.1180937));\n listOfpoints.get(67).add(new LatLng (44.4705695, 26.1195099));\n listOfpoints.get(67).add(new LatLng (44.4677826,26.1202395));\n listOfpoints.get(67).add(new LatLng (44.4671287,26.121282));\n\n\n //Stockholm\n listOfpoints.get(68).add(new LatLng(59.339281, 18.005316));\n listOfpoints.get(68).add(new LatLng(59.263986, 18.253591));\n listOfpoints.get(68).add(new LatLng(59.260869, 17.878596));\n\n //Stockholm\n listOfpoints.get(69).add(new LatLng(59.342841, 18.040179));\n listOfpoints.get(69).add(new LatLng(59.355275, 17.884694));\n listOfpoints.get(69).add(new LatLng(59.423065, 18.075748));\n\n\n for(int i = 0 ; i < listOfpoints.size(); i++){\n listOfPolygons.add( MapsActivity.instance.mMap.addPolygon(new PolygonOptions()\n .addAll(listOfpoints.get(i))\n .strokeWidth(0)\n .fillColor(Color.argb(50, 0, 250, 0))) );\n }\n\n\n\n\n }", "@Test\n public void testBadGeo() {\n Result fakeResult = new Result(\"BEGIN:VCALENDAR\\r\\nBEGIN:VEVENT\\r\\n\" +\n \"GEO:-12.345\\r\\n\" +\n \"END:VEVENT\\r\\nEND:VCALENDAR\", null, null, BarcodeFormat.QR_CODE);\n ParsedResult result = ResultParser.parseResult(fakeResult);\n assertSame(ParsedResultType.URI, result.getType());\n }", "public static void main(String[] args) {\n\t\tQuadrilateral qu = new Quadrilateral(\"122:10:22.15761,30:33:53.48025-122:10:18.39148,30:33:33.11945-122:17:18.08089,30:32:55.71872-122:17:14.29433,30:32:35.36090\");\n//\t\tPoint po = new Point(\"31:16:32,121:45:39\");\n\t\tPoint po = new Point(\"122:10:22.15761,30:33:53.48025\");\n\t\tSystem.out.println(po.lon);\n\t\tLatLng point = new LatLng(30.56486,122.17282);\n\t\tSystem.out.println(qu.isContainsPoint(point));\n\t}", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n HashMap<Object, Double> hashMap0 = new HashMap<Object, Double>(13);\n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"\";\n Float float0 = new Float(3525.726934349);\n Double double0 = new Double(Double.NaN);\n hashMap0.put(float0, double0);\n stringArray0[1] = \"Z\";\n stringArray0[2] = \"] is not a Boolean.\";\n jSONObject0.optBoolean(\"Expected a ',' or ']'\");\n stringArray0[3] = \"p0JV~u{VV\";\n stringArray0[4] = \"a>(3H]W1\";\n stringArray0[5] = \"4v)7wYwy@>>\";\n stringArray0[6] = \"`00MMvjO_a\";\n stringArray0[7] = \";Az%j \";\n stringArray0[8] = \"L;IoBM\";\n JSONObject jSONObject1 = new JSONObject(jSONObject0, stringArray0);\n JSONObject.testValidity(\";Az%j \");\n jSONObject1.optBoolean(\"`00MMvjO_a\");\n try { \n jSONObject1.getJSONArray((String) null);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[\\\"\\\"] not found.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }", "@Test\n public void testPulkovo19953DegreeGKZone22() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone22());\n }", "@Test\n public void testPulkovo19953DegreeGKZone49() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone49());\n }", "public static boolean addNew(GeoPoint position, String text) {\n DefaultHttpClient client = new DefaultHttpClient();\n \n /* Add the Authentication Details if we have a username in the Preferences */\n if (!Settings.OpenstreetmapNotes.getUsername().equals(\"\")) {\n client.getCredentialsProvider().setCredentials(AuthScope.ANY,\n new UsernamePasswordCredentials(Settings.OpenstreetmapNotes.getUsername(),\n Settings.OpenstreetmapNotes.getPassword()));\n }\n \n /* Add all Arguments */\n ArrayList<NameValuePair> arguments = new ArrayList<NameValuePair>();\n \n arguments.add(new BasicNameValuePair(\"key\", Settings.Mapdust.getApiKey()));\n arguments.add(new BasicNameValuePair(\"coordinates\",\n String.valueOf(position.getLongitudeE6() / 1000000.0) + \",\"\n + String.valueOf(position.getLatitudeE6() / 1000000.0)));\n arguments.add(new BasicNameValuePair(\"description\", text));\n arguments.add(new BasicNameValuePair(\"type\", \"other\"));\n arguments.add(new BasicNameValuePair(\"nickname\", Settings.Mapdust.getUsername()));\n \n HttpPost request;\n if (Settings.DEBUG)\n request =\n new HttpPost(\"http://st.www.mapdust.com/api/addBug?\"\n + URLEncodedUtils.format(arguments, \"utf-8\"));\n else\n request =\n new HttpPost(\"http://www.mapdust.com/api/addBug?\"\n + URLEncodedUtils.format(arguments, \"utf-8\"));\n \n try {\n /* Execute commit */\n HttpResponse response = client.execute(request);\n \n /* Check result for Success */\n /* Mapdust returns 201 for addBug as Success */\n if (response.getStatusLine().getStatusCode() != 201)\n return false;\n }\n catch (ClientProtocolException e) {\n e.printStackTrace();\n return false;\n }\n catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n \n return true;\n }", "void drawMyPoint(double x, double y, MapContent map, String nombre) { \n// SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n// builder.setName(\"MyFeatureType\");\n// builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs \n// builder.add(\"location\", Point.class); // add geometry\n//\n// // build the type\n// SimpleFeatureType TYPE = builder.buildFeatureType();\n//\n// // create features using the type defined\n// SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(TYPE);\n// org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n// org.locationtech.jts.geom.Point point = geometryFactory.createPoint(new Coordinate(x, y));\n// //\n// \n// //\n// featureBuilder.add(point);\n// SimpleFeature feature = featureBuilder.buildFeature(\"FeaturePoint\");\n// DefaultFeatureCollection featureCollection = new DefaultFeatureCollection(\"internal\", TYPE);\n// featureCollection.add(feature); // Add feature 1, 2, 3, etc\n//\n// Style style = SLD.createPointStyle(\"Star\", Color.BLUE, Color.BLUE, 0.3f, 200);\n// Layer layer = new FeatureLayer(featureCollection, style);\n// layer.setTitle(\"NewPointLayer\");\n// map.addLayer(layer);\n// //mapFrame.getMapPane().repaint();// MapPane.repaint();\n//}\n\tSimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n builder.setName(\"MyFeatureType\"); // \n builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs // Definimos las caracteristicas de tipo del punto q vamos a crear\n builder.add(\"location\", Point.class); // add geometry //\n org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(); //objeto q usaremos para crear el punto\n Coordinate coord = new Coordinate( x,y ); //creamos la coordenada con los puntos pasados como parametros\n org.locationtech.jts.geom.Point point = geometryFactory.createPoint(coord); // Creamos el punto geometrico\n\nSimpleFeatureType pointtype = null; //definimos el typo de punto que necesitamos apra agregarlo a la capa del mapa\n try {\n pointtype = DataUtilities.createType(\"POINT\", \"geom:Point,name:String\");\n } catch (SchemaException ex) {\n Logger.getLogger(SelectionLab.class.getName()).log(Level.SEVERE, null, ex);\n }\nSimpleFeatureBuilder featureBuilderPoints = new SimpleFeatureBuilder(pointtype); //creamos el constructor de lo que agregaremos\nDefaultFeatureCollection collectionPoints = new DefaultFeatureCollection(\"internal\", pointtype); //creamos el contenedor donde pondremos lo que agregaremos\n//PointString Point=builder.createPointString(Point);\n//LineString Point = builder.createLineString(Point);\nfeatureBuilderPoints.add(point); //agregamos el punto en el constructor\nSimpleFeature featureLine = featureBuilderPoints.buildFeature(null); \n((DefaultFeatureCollection)collectionPoints).add(featureLine); \nStyle PointStyle = SLD.createPointStyle(\"circle\", Color.RED, Color.RED,(float) 0.5,(float) 10); //definimos el estilo del punto (icono, color contorno, color, opacidad y tamaño)\n//Obserervacion: el dibujo del punto siempre se mantiene del mismo tamaño por mas que se use el zoom\nmap.addLayer(new FeatureLayer(collectionPoints, PointStyle)); //agregamos el punto a la capa\n\nguardarCoordenadas(nombre,x,y);\n}", "@Test\n public void testPulkovo19953DegreeGKZone54() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone54());\n }", "@Test\n\tpublic void test1() {\n\t\tMap<Long, String> map = new HashMap<Long, String>();\n\t\tmap.put(1L, \"1111111,1111111\");\n\t\tmap.put(2L, \"2222,2222\");\n\t\tString str = JSONObject.toJSONString(map);\n\t\tSystem.out.println(str);\n\t\tMap<Long,String> result = JSONObject.parseObject(str, new TypeReference<Map<Long,String>>(){});\n\t\tSystem.out.println(result);\n\t\tSystem.out.println(result.get(1L));\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n public void testPulkovo19953DegreeGKZone47() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone47());\n }", "private static ArrayList<Coordinates> geoPath1() {\n return new ArrayList<Coordinates>() {\n {\n add(new Coordinates(\"-122.19170793,47.77509422,5.156\"));\n add(new Coordinates(\"-122.19171484,47.77509255,5.476\"));\n add(new Coordinates(\"-122.19172476,47.77509815,5.583\"));\n add(new Coordinates(\"-122.19172741,47.77510382,6.077\"));\n add(new Coordinates(\"-122.19172688,47.77510897,6.424\"));\n add(new Coordinates(\"-122.19172704,47.77511101,6.121\"));\n add(new Coordinates(\"-122.19172543,47.77511046,6.235\"));\n add(new Coordinates(\"-122.19172222,47.77511072,6.225\"));\n add(new Coordinates(\"-122.19172067,47.77510953,5.974\"));\n add(new Coordinates(\"-122.19171935,47.77511130,6.508\"));\n add(new Coordinates(\"-122.19171873,47.77511341,6.090\"));\n add(new Coordinates(\"-122.19171924,47.77511293,5.968\"));\n add(new Coordinates(\"-122.19171637,47.77511664,5.461\"));\n add(new Coordinates(\"-122.19171588,47.77511801,5.518\"));\n add(new Coordinates(\"-122.19171639,47.77511835,5.652\"));\n add(new Coordinates(\"-122.19171667,47.77511857,5.647\"));\n add(new Coordinates(\"-122.19171678,47.77511865,5.648\"));\n add(new Coordinates(\"-122.19172518,47.77511628,6.074\"));\n add(new Coordinates(\"-122.19173954,47.77511533,5.472\"));\n add(new Coordinates(\"-122.19175207,47.77511346,5.836\"));\n add(new Coordinates(\"-122.19176251,47.77510782,5.669\"));\n add(new Coordinates(\"-122.19177163,47.77510015,2.049\"));\n add(new Coordinates(\"-122.19177831,47.77509499,2.910\"));\n add(new Coordinates(\"-122.19178524,47.77509168,2.794\"));\n add(new Coordinates(\"-122.19179816,47.77509009,3.440\"));\n add(new Coordinates(\"-122.19181022,47.77508805,3.016\"));\n add(new Coordinates(\"-122.19182115,47.77508458,5.258\"));\n add(new Coordinates(\"-122.19182976,47.77508305,5.820\"));\n add(new Coordinates(\"-122.19183812,47.77508189,5.615\"));\n add(new Coordinates(\"-122.19184640,47.77507857,3.568\"));\n add(new Coordinates(\"-122.19185497,47.77506742,2.922\"));\n add(new Coordinates(\"-122.19186602,47.77506459,3.923\"));\n add(new Coordinates(\"-122.19187867,47.77506429,3.785\"));\n add(new Coordinates(\"-122.19188979,47.77506426,5.388\"));\n add(new Coordinates(\"-122.19190159,47.77506575,4.811\"));\n add(new Coordinates(\"-122.19191428,47.77506995,3.867\"));\n add(new Coordinates(\"-122.19192458,47.77507421,3.806\"));\n add(new Coordinates(\"-122.19193359,47.77507565,5.697\"));\n add(new Coordinates(\"-122.19194828,47.77507599,6.091\"));\n add(new Coordinates(\"-122.19196187,47.77507556,6.160\"));\n add(new Coordinates(\"-122.19197799,47.77507586,5.827\"));\n add(new Coordinates(\"-122.19199669,47.77507708,6.263\"));\n add(new Coordinates(\"-122.19201547,47.77507900,5.519\"));\n add(new Coordinates(\"-122.19203652,47.77508125,5.318\"));\n add(new Coordinates(\"-122.19205394,47.77508798,4.972\"));\n add(new Coordinates(\"-122.19206817,47.77509514,5.112\"));\n add(new Coordinates(\"-122.19208170,47.77510678,5.183\"));\n add(new Coordinates(\"-122.19209617,47.77511995,6.227\"));\n add(new Coordinates(\"-122.19211126,47.77512566,6.331\"));\n add(new Coordinates(\"-122.19212836,47.77513235,6.249\"));\n add(new Coordinates(\"-122.19214476,47.77513787,7.192\"));\n add(new Coordinates(\"-122.19215712,47.77514375,6.008\"));\n add(new Coordinates(\"-122.19216472,47.77514855,5.879\"));\n add(new Coordinates(\"-122.19217137,47.77514377,6.426\"));\n add(new Coordinates(\"-122.19217457,47.77513335,7.248\"));\n add(new Coordinates(\"-122.19217502,47.77511706,7.483\"));\n add(new Coordinates(\"-122.19218040,47.77510219,10.228\"));\n add(new Coordinates(\"-122.19218656,47.77509117,10.560\"));\n add(new Coordinates(\"-122.19219800,47.77508689,10.466\"));\n add(new Coordinates(\"-122.19221646,47.77507476,11.119\"));\n add(new Coordinates(\"-122.19223178,47.77505389,12.674\"));\n add(new Coordinates(\"-122.19223875,47.77504801,14.667\"));\n add(new Coordinates(\"-122.19224629,47.77504536,13.339\"));\n add(new Coordinates(\"-122.19224798,47.77504041,13.908\"));\n add(new Coordinates(\"-122.19224916,47.77503913,14.065\"));\n add(new Coordinates(\"-122.19225069,47.77503675,14.247\"));\n add(new Coordinates(\"-122.19224858,47.77502843,14.488\"));\n add(new Coordinates(\"-122.19224608,47.77502116,15.172\"));\n add(new Coordinates(\"-122.19224071,47.77501315,15.223\"));\n add(new Coordinates(\"-122.19223317,47.77500694,14.840\"));\n add(new Coordinates(\"-122.19222227,47.77500383,13.775\"));\n add(new Coordinates(\"-122.19221226,47.77499910,12.827\"));\n add(new Coordinates(\"-122.19220317,47.77499372,13.307\"));\n add(new Coordinates(\"-122.19219567,47.77498511,13.107\"));\n add(new Coordinates(\"-122.19219183,47.77497813,13.144\"));\n add(new Coordinates(\"-122.19218998,47.77497165,14.620\"));\n add(new Coordinates(\"-122.19219011,47.77496235,9.166\"));\n add(new Coordinates(\"-122.19218887,47.77495353,8.299\"));\n add(new Coordinates(\"-122.19218520,47.77494321,9.052\"));\n add(new Coordinates(\"-122.19218124,47.77493245,9.915\"));\n add(new Coordinates(\"-122.19218070,47.77492023,9.391\"));\n add(new Coordinates(\"-122.19217970,47.77490970,10.372\"));\n add(new Coordinates(\"-122.19217945,47.77490501,7.722\"));\n add(new Coordinates(\"-122.19217823,47.77489981,8.715\"));\n add(new Coordinates(\"-122.19218090,47.77489589,8.714\"));\n add(new Coordinates(\"-122.19218635,47.77488849,11.030\"));\n add(new Coordinates(\"-122.19219339,47.77487849,13.062\"));\n add(new Coordinates(\"-122.19219717,47.77486996,13.102\"));\n add(new Coordinates(\"-122.19219654,47.77486340,13.562\"));\n add(new Coordinates(\"-122.19219260,47.77485669,14.090\"));\n add(new Coordinates(\"-122.19218765,47.77484862,12.973\"));\n add(new Coordinates(\"-122.19218777,47.77484328,13.137\"));\n add(new Coordinates(\"-122.19218893,47.77483642,13.518\"));\n add(new Coordinates(\"-122.19218715,47.77483230,13.557\"));\n add(new Coordinates(\"-122.19218676,47.77482973,13.560\"));\n add(new Coordinates(\"-122.19218203,47.77482544,12.554\"));\n add(new Coordinates(\"-122.19217214,47.77482073,12.209\"));\n add(new Coordinates(\"-122.19216229,47.77481373,12.975\"));\n add(new Coordinates(\"-122.19215766,47.77481203,10.715\"));\n add(new Coordinates(\"-122.19214837,47.77480695,10.188\"));\n add(new Coordinates(\"-122.19213505,47.77480208,9.988\"));\n add(new Coordinates(\"-122.19212451,47.77479761,10.080\"));\n add(new Coordinates(\"-122.19211571,47.77479427,11.799\"));\n add(new Coordinates(\"-122.19210976,47.77478996,12.827\"));\n add(new Coordinates(\"-122.19211063,47.77478275,12.455\"));\n add(new Coordinates(\"-122.19210867,47.77477966,11.972\"));\n add(new Coordinates(\"-122.19209880,47.77477701,11.224\"));\n add(new Coordinates(\"-122.19208860,47.77477571,11.174\"));\n add(new Coordinates(\"-122.19208772,47.77477829,10.066\"));\n add(new Coordinates(\"-122.19208174,47.77477082,9.116\"));\n add(new Coordinates(\"-122.19207288,47.77476146,6.540\"));\n add(new Coordinates(\"-122.19206631,47.77474937,5.343\"));\n add(new Coordinates(\"-122.19206107,47.77474020,7.509\"));\n add(new Coordinates(\"-122.19205903,47.77473648,7.923\"));\n add(new Coordinates(\"-122.19206261,47.77474166,6.203\"));\n add(new Coordinates(\"-122.19206450,47.77474194,5.918\"));\n add(new Coordinates(\"-122.19205951,47.77473670,4.994\"));\n add(new Coordinates(\"-122.19204892,47.77472567,2.787\"));\n }\n };\n }", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "@Test\n public void testPulkovo19953DegreeGKZone55() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone55());\n }", "public static String getPointsOfInterestJSON(ArrayList<ArrayList<Double>> geoList){\n Map featureCollectionObj = new LinkedHashMap();\n featureCollectionObj.put(\"type\", \"FeatureCollection\");\n\n /*\"features\": [\n { type\": \"Feature\",\n \"geometry\": {\n */\n JSONArray geoJSON = new JSONArray();\n\n /*\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"LineString\",\n */\n Map featureObj = new LinkedHashMap();\n featureObj.put(\"type\",\"Feature\");\n\n /*\n \"type\": \"Polygon\",\n \"coordinates\": [ [ [102.0, 0.0], [103.0, 1.0] ..\n */\n Map polygonObj = new LinkedHashMap();\n polygonObj.put(\"type\",\"Polygon\");\n\n ArrayList<ArrayList<ArrayList<Double>>> geoArrayList = new ArrayList<>();\n geoArrayList.add(geoList);\n polygonObj.put(\"coordinates\", geoArrayList);\n\n featureObj.put(\"geometry\",polygonObj);\n\n geoJSON.add(featureObj);\n\n featureCollectionObj.put(\"features\",geoJSON);\n\n String geoJSONtoString = JSONValue.toJSONString(featureCollectionObj);\n System.out.print(geoJSONtoString);\n return geoJSONtoString;\n\n }", "public void testGetGoalLocation() {\n test = new Location(9, 9);\n assertEquals(test, maze1.getGoalLocation());\n }", "protected abstract NativeSQLStatement createNativeWithinStatement(Geometry testPolygon);", "@Test\n public void testPulkovo19953DegreeGKZone23() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone23());\n }", "@Test\n public void test1(){\n Map map = us.selectAll(1, 1);\n System.out.println(map);\n }", "@Test\n public void testPulkovo19953DegreeGKZone17() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone17());\n }", "@Test\n public void testPulkovo19953DegreeGKZone46() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone46());\n }", "@Test\n public void testPulkovo19953DegreeGKZone58() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone58());\n }", "@Test\n public void testAddCity_3args01() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"cityTest\";\n Pair coordenates = new Pair(41.200000, -8.000000);\n int points = 30;\n City cityTest = new City(coordenates, cityName, points);\n Set<City> expResult = new HashSet<>();\n\n expResult.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n expResult.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n expResult.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n expResult.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n expResult.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n expResult.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n expResult.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n expResult.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n expResult.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n expResult.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n expResult.add(cityTest);\n\n sn10.addCity(coordenates, cityName, points);\n Set<City> result = sn10.getCitiesList();\n assertEquals(expResult, result);\n }", "@Test\n public void testPulkovo1995GKZone22() {\n testToWGS84AndBack(PROJ.getPulkovo1995GKZone22());\n }", "@Test\n public void testPulkovo19953DegreeGKZone34() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone34());\n }", "private static void testGetAddress(GeoCoderInterface geoCoder, Double latitude, Double longitude, String language){\n\t\tSystem.out.println(\"--From GPS:\");\n\t\tGeoCoderResult result = geoCoder.getAddress(latitude, longitude, language);\n\t\tprintGeoCoderResult(result);\n\t}", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "public interface GPSMetier {\n JSONEntitie createJSON(String Id, double lat, double lon, boolean isServer);\n String jsonToString(JSONEntitie jsonEntitie);\n JSONEntitie stringToJSON(String jsonString, int codeResponse);\n\n}", "@Test\n public void geoSearchTest() throws ApiException {\n String searchText = null;\n String latitude = null;\n String longitude = null;\n String searchRadius = null;\n String searchRadiusUnit = null;\n String maxCandidates = null;\n String country = null;\n String matchOnAddressNumber = null;\n String autoDetectLocation = null;\n String ipAddress = null;\n String areaName1 = null;\n String areaName3 = null;\n String postCode = null;\n String returnAdminAreasOnly = null;\n String includeRangesDetails = null;\n String searchType = null;\n // GeosearchLocations response = api.geoSearch(searchText, latitude, longitude, searchRadius, searchRadiusUnit, maxCandidates, country, matchOnAddressNumber, autoDetectLocation, ipAddress, areaName1, areaName3, postCode, returnAdminAreasOnly, includeRangesDetails, searchType);\n\n // TODO: test validations\n }", "@Test\n public void testPulkovo19953DegreeGKZone44() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone44());\n }" ]
[ "0.6347261", "0.5962633", "0.5952094", "0.59454995", "0.5866534", "0.58530885", "0.56027776", "0.55560654", "0.548897", "0.54756546", "0.54427505", "0.5417528", "0.5403955", "0.54036355", "0.54022866", "0.53917825", "0.53715616", "0.536232", "0.53087884", "0.5278399", "0.5270622", "0.5270448", "0.52672845", "0.52668417", "0.5253972", "0.5226174", "0.52157825", "0.52079266", "0.5196295", "0.5188422", "0.51433176", "0.5140272", "0.51385796", "0.51342297", "0.51325846", "0.51287776", "0.51222306", "0.5106727", "0.51062423", "0.5099216", "0.50975674", "0.5091058", "0.50863856", "0.5083354", "0.5080596", "0.50754803", "0.5065553", "0.5064566", "0.5050483", "0.50400895", "0.5035233", "0.5032297", "0.50270337", "0.50102293", "0.5009168", "0.49975988", "0.49959996", "0.49939623", "0.49912742", "0.4990427", "0.49572495", "0.49462497", "0.4934703", "0.4926982", "0.49237084", "0.4922527", "0.4915301", "0.4907058", "0.49049392", "0.48918906", "0.48905385", "0.48836493", "0.4882382", "0.4880436", "0.4878423", "0.48668298", "0.48660752", "0.48659855", "0.48659325", "0.48635384", "0.48595342", "0.48592433", "0.4855866", "0.48549232", "0.48538637", "0.48536223", "0.4851215", "0.48466307", "0.48379633", "0.48314366", "0.4829572", "0.48288566", "0.48281384", "0.48255956", "0.4825306", "0.48248675", "0.48230115", "0.48221868", "0.48216513", "0.48202607" ]
0.83738136
0
Test the rome taxi range tuple builder
@Test public void testRomeTaxiPointTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ROME_TAXI_POINT); final Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d, 41.91924450823211, 41.91924450823211, 12.5027184734508, 12.5027184734508); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n range_CoordinateSystem0.toString();\n range1.equals(\"Residue Based\");\n String string0 = range_CoordinateSystem0.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Range range0 = Range.of((-1259L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n long long0 = new Long((-1259L));\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range range3 = range1.asRange();\n String string0 = null;\n range3.intersection(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. -1258 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ -1259 .. -1258 ]/SB into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n long long0 = 265L;\n range_Builder0.shift(265L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range range1 = Range.of(0L);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n List<Range> list2 = range0.complementFrom(list1);\n List<Range> list3 = range0.complementFrom(list2);\n range0.complementFrom(list3);\n Range.of((-1147L), 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 0L, 0L);\n Range range3 = range2.intersection(range0);\n range0.getEnd();\n range3.intersects(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"q)fxUX9s]Tp\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse q)fxUX9s]Tp into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, 0L, 0L);\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.of(0L, (-1813L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Range.CoordinateSystem.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n Range range0 = Range.ofLength(0L);\n range0.getBegin(range_CoordinateSystem0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.spliterator();\n range0.complementFrom(linkedList0);\n range_Builder0.contractBegin(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "RangeOfValuesType createRangeOfValuesType();", "RangeValue createRangeValue();", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "abstract public Range createRange();", "Range createRange();", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n long long0 = 785L;\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 9223372036854775806L, (-128L));\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -129 would make range [9223372036854775805 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n long long0 = new Long(0L);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 259L);\n Range range3 = Range.of(1L);\n Range range4 = Range.of((-32768L), 0L);\n range4.equals(range2);\n range0.complement(range3);\n Range range5 = range_Builder1.build();\n assertFalse(range5.equals((Object)range4));\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Range range0 = Range.of(0L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem1);\n range0.iterator();\n Range.of((-1233L), 0L);\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem1, 0L, (-1233L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Amino;\n defaultNucleotideCodec0.encode(nucleotide0);\n int int0 = 15;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n Range range0 = Range.ofLength(359L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-874L), (-874L));\n range0.isSubRangeOf(range1);\n // Undeclared exception!\n try { \n Range.ofLength((-2918L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.of(range_CoordinateSystem0, (-5250L), 2383L);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n String string0 = range_CoordinateSystem1.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n List<Range> list0 = range0.complementFrom(linkedList0);\n assertEquals(0, list0.size());\n \n Range range1 = Range.of(9223372036854775807L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n boolean boolean1 = range1.endsBefore(range0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Range range0 = Range.of(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"vH) h-=%9V8]<4%y\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.vH) h-=%9V8]<4%y\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.of(4294967244L);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\", range_CoordinateSystem1);\n range2.getEnd();\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\", range_CoordinateSystem2);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range3);\n List<Range> list1 = range2.complementFrom(list0);\n Range range4 = Range.of(1207L);\n assertFalse(range4.isEmpty());\n \n boolean boolean0 = range2.isSubRangeOf(range3);\n assertTrue(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range2.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem3.toString();\n range0.equals(list1);\n assertSame(range2, range1);\n assertEquals(0, list1.size());\n \n range_CoordinateSystem1.toString();\n long long0 = range0.getEnd();\n assertEquals(255L, long0);\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "void addPowertypeRange(Generalization powertypeRange);", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n boolean boolean0 = range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem1);\n assertEquals(\"[ 1 .. 9223372036854775806 ]/RB\", string0);\n \n Range range1 = Range.parseRange(\"[ 1 .. 9223372036854775806 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertTrue(boolean1 == boolean0);\n assertFalse(range1.equals((Object)range0));\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals(0L, long0);\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n long long0 = (-1L);\n Range range0 = Range.of((-1L));\n range0.getBegin();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.build();\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n Range range0 = Range.of(4294967244L, 4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\", range_CoordinateSystem1);\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n long long0 = range0.getEnd();\n assertEquals((-1L), long0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 0 ]/RB\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.equals(\"[ 0 .. -1 ]/0B\");\n assertFalse(boolean0);\n \n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 0 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertFalse(boolean1);\n \n range0.complement(range1);\n long long1 = range1.getBegin();\n assertFalse(range1.equals((Object)range0));\n assertTrue(range1.isEmpty());\n assertEquals(1L, long1);\n }", "protected void validateTxRangeList(cwterm.service.rigctl.xsd.FreqRange[] param) {\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "Builder addTypicalAgeRange(Text value);", "private String range(double and_load_factor) {\n\t\tStringBuilder s = new StringBuilder();\n\n\t\t// begin query construction (range query is always an OR)\n\t\ts.append(\"[r,|,\");\n\n\t\t// choose number of attributes to involve in the query (use zipf(num_attribute))\n\t\tint attr_id = this.zipf_rng_att.next();\n\n\t\t//a range query from [bin_0, ..., bin_high]\n\t\tint first_bin = -1;\n\t\tint second_bin = -1;\n\t\twhile (first_bin == second_bin) {\n\t\t\tfirst_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];\n\t\t\tsecond_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];;\n\t\t}\n\t\tfirst_bin += (attr_id) * this.cardinality;\n\t\tsecond_bin += (attr_id) * this.cardinality;\n\n\t\tif (first_bin > second_bin) {\n\t\t\ts.append(second_bin + \",\" + first_bin + \"]\");\n\t\t}\n\t\telse {\n\t\t\ts.append(first_bin + \",\" + second_bin + \"]\");\n\t\t}\n\n\n\n\t\t//update stats\n\t\tthis.num_bins += (second_bin - first_bin + 1);\n\t\tthis.num_or_ops += (second_bin - first_bin);\n\n\t\t//update stats\n\t\tthis.num_range_queries++;\n\t\tthis.num_attributes++;\n\t\treturn s.toString();\n\t}", "void calculateRange() {\n //TODO: See Rules\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range_Builder0.expandBegin((-4622L));\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range0.equals(range0);\n range0.getBegin();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"[ 0 .. -1 ]/0B\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.[ 0 .. -1 ]/0B\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n // Undeclared exception!\n try { \n range1.complement(range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -24 would make range [9223372036854775807 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.startsBefore(range0);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n public void testRowRange() {\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1b).endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1b).endRow(rw2b).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).build());\n \n // Test with String input\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1s).endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1s).endRow(rw2s).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).build());\n }", "public void test4Draft(){\n assertEquals( 4, $computeRange.$list().size());\n //System.out.println( $computeRange.list$Normalized() );\n assertEquals( 4, $computeRange.$listNormalized().size());\n //System.out.println($computeRange.fill(\"multiply10to20\",10,20,\"*\"));\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32729 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem.values();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ -1259 .. 256 ]/SB\", string0);\n \n Range range1 = Range.of((-1259L));\n range1.getEnd();\n long long0 = range1.getEnd();\n assertEquals((-1259L), long0);\n \n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n assertFalse(list0.contains(range0));\n assertEquals(0, list1.size());\n assertFalse(list0.isEmpty());\n \n Range range4 = Range.ofLength(0L);\n Range range5 = range4.intersection(range0);\n long long1 = range5.getEnd();\n assertEquals((-1L), long1);\n \n range0.intersects(range4);\n range3.equals(\"[ -1259 .. 256 ]/SB\");\n Range.of(333L);\n List<Range> list2 = range2.complement(range3);\n assertTrue(list2.contains(range0));\n }", "private Range() {}", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = (-1L);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, (-665L), (-1L));\n range_Builder0.contractEnd((-665L));\n range_Builder0.expandEnd((-1L));\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(9223372036854775807L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967244 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "Builder addTypicalAgeRange(String value);", "@DataProvider(name = \"toyIntervalVariants\")\n public Object[][] getToyIntervalVariantTestData() {\n return new Object[][] {\n { new SimpleInterval(\"chr1\", 350, 550), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 320, 360), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 550, 750), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 450, 650), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 850), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 450), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 350), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 350, 650), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 250), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 850), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 150, 750), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 220, 280), GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC },\n { new SimpleInterval(\"chr1\", 750, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 150), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 250), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 550), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 950, 1500), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.UTR, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 2000), GATKSVVCFConstants.COPY_GAIN, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.INV_SPAN },\n { new SimpleInterval(\"chr1\", 750, 790), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 350, 1200), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF},\n { new SimpleInterval(\"chr1\", 450, 1300), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF}\n };\n }", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "public void createPriceRange() {\n final CharSequence[] priceRange = {\"$\", \"$$\", \"$$$\"};\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Price Range\");\n builder.setItems(priceRange, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n System.out.println(priceRange[which]);\n String type = (String) priceRange[which];\n if (type.equals(\"$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n } else if (type.equals(\"$$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n } else if (type.equals(\"$$$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n }\n dialog.dismiss();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.create();\n\n builder.show();\n\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.toString();\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"4oSq*$e[YDbph?D\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse 4oSq*$e[YDbph?D into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-128L), 273L);\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem1, (-1354L), 273L);\n range0.equals(range1);\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range1.equals(range_CoordinateSystem1);\n Range.CoordinateSystem.values();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"@M8!uS|r?\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.@M8!uS|r?\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n Range range0 = Range.of((-1259L), (-1259L));\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n Long long0 = new Long((-1259L));\n range0.equals(long0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"unable to delete \");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.unable to delete \n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n public void testGetRandomRange() {\n // XXX what should be tested?\n // bad values to the range?\n // min == max?\n Assert.assertTrue(true);\n }", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n long long0 = range0.getLength();\n assertEquals(9223372032559808565L, long0);\n \n range0.equals(\"]?&0A@\");\n Range range1 = Range.of(9223372032559808565L);\n List<Range> list0 = range0.complement(range1);\n assertTrue(list0.contains(range0));\n \n boolean boolean0 = range0.equals(\"]?&0A@\");\n assertFalse(boolean0);\n \n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 9223372032559808565 ]/RB\", string0);\n \n Range.CoordinateSystem.values();\n range1.complement(range0);\n List<Range> list1 = range1.complement(range0);\n assertTrue(list1.contains(range1));\n assertFalse(list1.equals((Object)list0));\n assertEquals(1, list1.size());\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n Range range0 = Range.of((-9223372036854775808L));\n range0.equals(range0);\n Range.Comparators.values();\n range0.getBegin();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "@Test\n\tpublic void testGetRankLabelRange(){\n\t\tString[] rankToDisplay = null;\n\t\tfor(TaxonRankEnum currEnum: TaxonRankEnum.values()){\n\t\t\trankToDisplay = PropertyMapHelper.getRankLabelRange(currEnum);\n\t\t\tif(rankToDisplay != null){\n\t\t\t\tvalidateTaxonRankEnumLabels(rankToDisplay);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tassertEquals(TaxonRankEnum.VARIETY, currEnum);\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 9223372036854775806 ]/RB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray1 = Range.CoordinateSystem.values();\n assertNotSame(range_CoordinateSystemArray1, range_CoordinateSystemArray0);\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n Range range0 = Range.ofLength(9223372036854775807L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Comparators.valueOf(\"LONGEST_TO_SHORTEST\");\n }", "@Test\n \tpublic void whereClauseForNodeRangedDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10, 20));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\t\"_rank23.level BETWEEN SYMMETRIC _rank42.level - 10 AND _rank42.level - 20\"\n \n \t\t);\n \t}", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "@Test\n\tpublic void testTaxForSlabB() throws SalaryOutOfRangeException {\n\t\tassertEquals(26159.6, salary.calTax(261596), 0.02);\n\t}", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.parseRange(\"[ 0 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n range1.equals(\"[ 0 .. 9223372036854775806 ]/SB\");\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "protected ArrayList<Attraction> TryParseRange(String i, ArrayList<Attraction> toRunOn) throws Exception {\n ArrayList<Attraction> toReturn = new ArrayList<>();\n try {\n String[] range = i.split(\"-\");\n if (range.length > 2)\n throw new Exception(\"Error parsing\");\n final int low = Integer.parseInt(range[0]);\n final int high = Integer.parseInt(range[1]);\n for (Attraction item : toRunOn) {\n float price = item.getPrice();\n if (price >= low && price <= high)\n toReturn.add(item);\n }\n } catch (Exception ex) {\n return toReturn;\n }\n return toReturn;\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.shift(2663L);\n range_Builder1.contractEnd((-1644L));\n range_Builder1.shift(2663L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n\tpublic void testGetRankRangeForDisplay(){\n\t\tTaxonRankEnum[] rankToDisplay = null;\n\t\tfor(TaxonRankEnum currEnum: TaxonRankEnum.values()){\n\t\t\trankToDisplay = PropertyMapHelper.getRankRangeForDisplay(currEnum);\n\t\t\tif(rankToDisplay != null){\n\t\t\t\tvalidateRankToDisplay(rankToDisplay);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tassertEquals(TaxonRankEnum.VARIETY, currEnum);\n\t\t\t}\n\t\t}\n\t}", "int getRange();", "protected abstract R getRange(E entry);", "public abstract Type createRangeType(ReferenceType bottom);", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n Range range0 = Range.ofLength(10121L);\n range0.toString();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 10121 ]/RB\", string0);\n }", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 127L, 127L);\n Range range1 = Range.of(127L);\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n long long0 = range1.getEnd();\n assertEquals(127L, long0);\n \n long long1 = range1.getBegin(range_CoordinateSystem0);\n assertEquals(128L, long1);\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n boolean boolean0 = range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean1 = range0.intersects(range2);\n boolean boolean2 = range1.equals(range2);\n assertFalse(boolean2 == boolean1);\n \n range0.getEnd();\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n \n boolean boolean3 = range3.startsBefore(range1);\n assertTrue(boolean3 == boolean0);\n assertTrue(range3.isEmpty());\n assertFalse(boolean3);\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n long long0 = new Long(0L);\n Range range1 = Range.of(4294967295L);\n long long1 = range1.getBegin();\n assertEquals(4294967295L, long1);\n \n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n Range range2 = Range.ofLength(2147483647L);\n range1.intersection(range0);\n Range range3 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n range3.getEnd();\n boolean boolean0 = range2.intersects(range0);\n boolean boolean1 = range2.equals(\"numbeg of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean1 == boolean0);\n \n Range range4 = Range.of(0L);\n assertFalse(range4.isEmpty());\n \n Range range5 = Range.of(1566L);\n List<Range> list2 = range5.complement(range2);\n assertFalse(list2.equals((Object)list0));\n assertTrue(list2.equals((Object)list1));\n }", "@Test(timeout = 4000)\n public void test094() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-4L), 9223372036854775554L);\n Object object0 = new Object();\n range0.equals((Object) null);\n range0.getEnd();\n range0.toString(range_CoordinateSystem0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "boolean containsPowertypeRange(Generalization powertypeRange);", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, (-2147483648L), (-2147483649L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Override\n public String getSolutionCombination(int nbrDigits, int nbrRange, String sizure) {\n\n // randomRange\n int[][] randomRange = new int[2][nbrDigits];\n\n for (int i = 0; i < 2; i++) {\n\n for (int j = 0; j < nbrDigits; j++) {\n\n if (i == 0) {\n\n // Min value limit\n randomRange[i][j] = 0;\n\n } else {\n\n // Max value limit\n randomRange[i][j] = nbrRange;\n\n }\n\n }\n\n }\n\n // inputmachine\n List<Integer> inputMachine = new ArrayList<Integer>();\n\n for (int i = 0; i < nbrDigits; i++) {\n\n inputMachine.add((int) ((randomRange[1][i] - randomRange[0][i]) * Math.random()) + randomRange[0][i]);\n\n log.info(\"test A : \" + inputMachine.get(i) + \" \");\n\n }\n\n // convertListIntegerToString\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < inputMachine.size(); i++) {\n int num = inputMachine.get(i);\n sb.append(num);\n }\n\n return sb.toString();\n\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertFalse(range1.isEmpty());\n assertTrue(list0.contains(range1));\n }", "Range() {}", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n Range range0 = Range.of(2448L);\n Range range1 = Range.of(2829L, 3687L);\n range1.equals(range0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }" ]
[ "0.7550462", "0.7455729", "0.7380854", "0.68866867", "0.6664961", "0.59053653", "0.58800185", "0.57921904", "0.5780536", "0.5736095", "0.5735725", "0.57078034", "0.56945866", "0.5691799", "0.56580913", "0.56577736", "0.56422406", "0.5616093", "0.5615235", "0.5610656", "0.56013125", "0.55994284", "0.5589694", "0.55793047", "0.55609316", "0.5555471", "0.55503297", "0.5549005", "0.55379987", "0.55161804", "0.5510657", "0.5502559", "0.5484463", "0.54423606", "0.5436451", "0.5432099", "0.54235464", "0.54223216", "0.5406", "0.5388343", "0.5373792", "0.5368219", "0.5362049", "0.5355251", "0.53469443", "0.5328876", "0.53220695", "0.5310519", "0.53062266", "0.52903295", "0.52865374", "0.528502", "0.52759314", "0.5246037", "0.5243068", "0.52313524", "0.5220843", "0.5215861", "0.5210528", "0.5208087", "0.52079076", "0.52003044", "0.51974994", "0.5182299", "0.5159448", "0.5152809", "0.5146352", "0.5139777", "0.5134303", "0.5130842", "0.5130715", "0.5124267", "0.5117285", "0.51166284", "0.5115772", "0.51101243", "0.51044065", "0.5096755", "0.50874776", "0.50674313", "0.5055427", "0.50548685", "0.50510126", "0.5041255", "0.503471", "0.50248885", "0.5021936", "0.5021189", "0.5020945", "0.50145906", "0.5006576", "0.5004572", "0.50043386", "0.49984843", "0.4996677", "0.4986351", "0.4982239", "0.49793062", "0.49775684", "0.49766266" ]
0.6369648
5
Test the forex 1d tuple builder
@Test public void testForex1DTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.FOREX_1D); final Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, "1"); Assert.assertNotNull(tuple1); Assert.assertEquals(Integer.toString(1), tuple1.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d); Assert.assertEquals(exptectedBox, tuple1.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "TupleExpr createTupleExpr();", "public boolean isGeneralTuple();", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "private Tuples() {}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "Astro tuple(AstroArg args);", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "TupleLiteralExp createTupleLiteralExp();", "TupleTypeRule createTupleTypeRule();", "public boolean isTuple() {\n return PyTorchLibrary.LIB.iValueIsTuple(getHandle());\n }", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\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(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.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}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "public void testUnpackMultipleTuples() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}, {\"v3\", \"v4\"}, {\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\");\n results.expectTuple(\"vva\", \"vvb\", \"v3\", \"v4\");\n results.expectTuple(\"vva\", \"vvb\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3); \n }", "@Test\n public void youCanCreateALoopFromPlatesFromACount() {\n // inputs\n VertexLabel runningTotalLabel = new VertexLabel(\"runningTotal\");\n VertexLabel stillLoopingLabel = new VertexLabel(\"stillLooping\");\n VertexLabel valueInLabel = new VertexLabel(\"valueIn\");\n\n // intermediate\n VertexLabel oneLabel = new VertexLabel(\"one\");\n VertexLabel conditionLabel = new VertexLabel(\"condition\");\n\n // outputs\n VertexLabel plusLabel = new VertexLabel(\"plus\");\n VertexLabel loopLabel = new VertexLabel(\"loop\");\n VertexLabel valueOutLabel = new VertexLabel(\"valueOut\");\n\n // base case\n DoubleVertex initialSum = ConstantVertex.of(0.);\n BooleanVertex tru = ConstantVertex.of(true);\n DoubleVertex initialValue = ConstantVertex.of(0.);\n\n int maximumLoopLength = 100;\n\n Plates plates = new PlateBuilder<Integer>()\n .withInitialState(SimpleVertexDictionary.backedBy(ImmutableMap.of(\n plusLabel, initialSum,\n loopLabel, tru,\n valueOutLabel, initialValue)))\n .withTransitionMapping(ImmutableMap.of(\n runningTotalLabel, plusLabel,\n stillLoopingLabel, loopLabel,\n valueInLabel, valueOutLabel\n ))\n .count(maximumLoopLength)\n .withFactory((plate) -> {\n // inputs\n DoubleVertex runningTotal = new DoubleProxyVertex(runningTotalLabel);\n BooleanVertex stillLooping = new BooleanProxyVertex(stillLoopingLabel);\n DoubleVertex valueIn = new DoubleProxyVertex(valueInLabel);\n plate.addAll(ImmutableSet.of(runningTotal, stillLooping, valueIn));\n\n // intermediate\n DoubleVertex one = ConstantVertex.of(1.);\n BooleanVertex condition = new BernoulliVertex(0.5);\n plate.add(oneLabel, one);\n plate.add(conditionLabel, condition);\n\n // outputs\n DoubleVertex plus = runningTotal.plus(one);\n BooleanVertex loopAgain = stillLooping.and(condition);\n DoubleVertex result = If.isTrue(loopAgain).then(plus).orElse(valueIn);\n plate.add(plusLabel, plus);\n plate.add(loopLabel, loopAgain);\n plate.add(valueOutLabel, result);\n })\n .build();\n\n\n DoubleVertex previousPlus = initialSum;\n BooleanVertex previousLoop = tru;\n DoubleVertex previousValueOut = initialValue;\n\n for (Plate plate : plates) {\n DoubleVertex runningTotal = plate.get(runningTotalLabel);\n BooleanVertex stillLooping = plate.get(stillLoopingLabel);\n DoubleVertex valueIn = plate.get(valueInLabel);\n\n DoubleVertex one = plate.get(oneLabel);\n BooleanVertex condition = plate.get(conditionLabel);\n\n DoubleVertex plus = plate.get(plusLabel);\n BooleanVertex loop = plate.get(loopLabel);\n DoubleVertex valueOut = plate.get(valueOutLabel);\n\n assertThat(runningTotal.getParents(), contains(previousPlus));\n assertThat(stillLooping.getParents(), contains(previousLoop));\n assertThat(valueIn.getParents(), contains(previousValueOut));\n\n assertThat(one.getParents(), is(empty()));\n assertThat(condition, hasParents(contains(allOf(\n hasNoLabel(),\n instanceOf(ConstantDoubleVertex.class)\n ))));\n\n assertThat(plus.getParents(), containsInAnyOrder(runningTotal, one));\n assertThat(loop.getParents(), containsInAnyOrder(condition, stillLooping));\n assertThat(valueOut.getParents(), containsInAnyOrder(loop, valueIn, plus));\n\n previousPlus = plus;\n previousLoop = loop;\n previousValueOut = valueOut;\n }\n\n\n DoubleVertex output = plates.asList().get(maximumLoopLength - 1).get(valueOutLabel);\n\n for (int firstFailure : new int[]{0, 1, 2, 10, 99}) {\n for (Plate plate : plates) {\n BooleanVertex condition = plate.get(conditionLabel);\n condition.setAndCascade(true);\n }\n BooleanVertex condition = plates.asList().get(firstFailure).get(conditionLabel);\n condition.setAndCascade(false);\n Double expectedOutput = new Double(firstFailure);\n assertThat(output, VertexMatchers.hasValue(expectedOutput));\n }\n }", "@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 }", "TupleLiteralPart createTupleLiteralPart();", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "public Tuple1(T value) {\n super(value);\n }", "private BDD build_X() {\n\t\tBDD res = factory.makeOne();\n\n\t\tfor(int i = 0; i < this.dimension; i++){\n\t\t\tfor(int j = 0; j < this.dimension; j++){\n\t\t\t\tres.andWith(board[i][j].copy());\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "public void testUnpackFromCorrectBag() throws InvalidAdviceException {\n Object[][] t1 = {{\"dsifji2oj\", \"23498ngnjs\"}};\n Object[][] t2 = {{\"dsfj9\", \"u1h32jbn4l1 '\"}};\n Object[][] t3 = {{\"24oi23n\", \"022l;'][ \"}};\n Object[][] t4 = {{\"0m0lkj34\", \"hh2h2n jds \"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(\"bag1\", t1).put(\"bag2\", t2).put(\"bag3\", t3).put(\"bag4\", t4);\n\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag1\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag2\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"u1h32jbn4l1 '\", \"dsfj9\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag3\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"022l;'][ \", \"24oi23n\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag4\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"hh2h2n jds \", \"0m0lkj34\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "public void testUnpackMultipleTuplesMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"b1_t1_v1\", \"b1_t1_v2\"}, {\"b1_t2_v1\", \"b1_t2_v2\"}, {\"b1_t3_v1\", \"b1_t3_v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"b2_t1_v1\", \"b2_t1_v2\"}, {\"b2_t2_v1\", \"b2_t2_v2\"}, {\"b2_t3_v1\", \"b2_t3_v2\"}});\n baggage.put(\"bag3\", new Object[][] {{\"b3_t1_v1\", \"b3_t1_v2\"}, {\"b3_t2_v1\", \"b3_t2_v2\"}, {\"b3_t3_v1\", \"b3_t3_v2\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n int expected = 3 * 3 * 3 * 3;\n for (int i = 0; i < expected; i++) {\n results.expectTuple(\"vva\");\n }\n results.check();\n assertTrue(\"Expect \"+expected+\" output tuple emitted\", results.emitted.size() == expected); \n }", "@Specialization\n\t\tString type(OzBacktrace backtrace) {\n\t\t\treturn \"tuple\";\n\t\t}", "@Test\r\n public void testCreatePopularTour_EveryScndWaypointFromFirst() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour tourB = new Tour(new int[][]{{0, 0}, {2, 2}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {2, 2}});\r\n Tour result = tourA.createPopularTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result)); \r\n }", "@Test\n public void buildAgainTrue() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n workerHephaestus.specialPower(nextWorkerCell);\n assertEquals(2, nextWorkerCell.getLevel());\n\n }", "@Test\n public void buildDomeTrue() {\n nextWorkerCell.setLevel(3);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertEquals(4, nextWorkerCell.getLevel());\n assertTrue(nextWorkerCell.getIsOccupied());\n }", "public void testUnpack() throws InvalidAdviceException {\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag7\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag4\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"pb\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"23498ngnjs\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "public abstract T getTuple(int aPosition);", "@ParameterizedTest\n @ArgumentsSource(TestForestProvider.class)\n public void testMultipleAttributions(RandomCutForest forest) {\n int hardPass=0;\n int causal=0;\n double [] point ={6.0,0.0,0.0};\n DiVector result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.2);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.getHighLowSum(1) + result.getHighLowSum(2) < 1.0);\n assertTrue(result.high[0] > forest.getAnomalyScore(point)/3);\n if (result.high[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n // the last line states that first coordinate was high and was a majority contributor to the score\n // the previous test states that the contribution is twice the average of the 12 possible contributors.\n // these tests all subparts of the score at once\n\n point=new double [] {-6.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.getHighLowSum()>1.0);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] > forest.getAnomalyScore(point)/3);\n if (result.low[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > forest.getAnomalyScore(point)/3);\n if (result.high[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,-6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.low[1] > forest.getAnomalyScore(point)/3);\n if (result.low[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,0.0,6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.low[2] < 0.5);\n assertTrue(result.high[2] > forest.getAnomalyScore(point)/3);\n if (result.high[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n point=new double [] {0.0,0.0,-6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.high[2] < 0.5);\n assertTrue(result.low[2] > forest.getAnomalyScore(point)/3);\n if (result.low[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n assertTrue(causal>=5); // maximum is 6; there can be skew in one direction\n\n point=new double [] {-3.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] >\n forest.getAnomalyScore(point)/3);\n\n /* For multiple causes, the relationship of scores only hold for larger\n * distances.\n */\n\n point=new double [] {-3.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.low[0] > 0.5) ++hardPass;\n assertTrue(result.high[0] < 0.5);\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > 0.5);\n if (result.high[1]>0.9) ++hardPass;\n assertTrue(result.getHighLowSum(2)< 0.5);\n assertTrue(result.high[1]+result.low[0]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {6.0,-3.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.5);\n assertTrue(result.high[0] > 0.5);\n if (result.high[0]>0.9) ++hardPass;\n if (result.low[1] > 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.getHighLowSum(2) < 0.5);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {20.0,-10.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n if (result.high[0]>1.8*result.low[1]) ++hardPass;\n if (result.low[1]>result.high[0]/2.2) ++hardPass;\n\n assertTrue(hardPass>=15); //maximum is 20\n }", "public abstract T getTuple(Record record);", "@Test\r\n public void testCreateConcatenatedTour_EmptyPlusOne() {\r\n Tour tourA = new Tour(new int[][]{});\r\n Tour tourB = new Tour(new int[][]{{2, 2}});\r\n Tour expected = new Tour(new int[][]{{2, 2}}); \r\n Tour result = tourA.createConcatenatedTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\r\n public void testCreateUnion_OneAndOne() {\r\n Tour tourA = new Tour(new int[][]{{1, 1}});\r\n Tour tourB = new Tour(new int[][]{{12, 12}});\r\n Tour result = tourA.createUnion(tourB);\r\n Tour expected = new Tour(new int[][]{{1, 1}, {12, 12}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n public void testDoubleNestedArray() {\n TupleMetadata schema = new SchemaBuilder()\n .add(\"a\", MinorType.INT)\n .addMapArray(\"m1\")\n .add(\"b\", MinorType.INT)\n .addMapArray(\"m2\")\n .add(\"c\", MinorType.INT)\n .addArray(\"d\", MinorType.VARCHAR)\n .resumeMap()\n .resumeSchema()\n .buildSchema();\n ResultSetLoaderImpl.ResultSetOptions options = new ResultSetOptionBuilder()\n .readerSchema(schema)\n .build();\n ResultSetLoader rsLoader = new ResultSetLoaderImpl(fixture.allocator(), options);\n RowSetLoader rootWriter = rsLoader.writer();\n rsLoader.startBatch();\n\n ScalarWriter aWriter = rootWriter.scalar(\"a\");\n ArrayWriter a1Writer = rootWriter.array(\"m1\");\n TupleWriter m1Writer = a1Writer.tuple();\n ScalarWriter bWriter = m1Writer.scalar(\"b\");\n ArrayWriter a2Writer = m1Writer.array(\"m2\");\n TupleWriter m2Writer = a2Writer.tuple();\n ScalarWriter cWriter = m2Writer.scalar(\"c\");\n ScalarWriter dWriter = m2Writer.array(\"d\").scalar();\n\n for (int i = 0; i < 5; i++) {\n rootWriter.start();\n aWriter.setInt(i);\n for (int j = 0; j < 4; j++) {\n int a1Key = i + 10 + j;\n bWriter.setInt(a1Key);\n for (int k = 0; k < 3; k++) {\n int a2Key = a1Key * 10 + k;\n cWriter.setInt(a2Key);\n for (int l = 0; l < 2; l++) {\n dWriter.setString(\"d-\" + (a2Key * 10 + l));\n }\n a2Writer.save();\n }\n a1Writer.save();\n }\n rootWriter.save();\n }\n\n RowSet results = fixture.wrap(rsLoader.harvest());\n RowSetReader reader = results.reader();\n\n ScalarReader aReader = reader.scalar(\"a\");\n ArrayReader a1Reader = reader.array(\"m1\");\n TupleReader m1Reader = a1Reader.tuple();\n ScalarReader bReader = m1Reader.scalar(\"b\");\n ArrayReader a2Reader = m1Reader.array(\"m2\");\n TupleReader m2Reader = a2Reader.tuple();\n ScalarReader cReader = m2Reader.scalar(\"c\");\n ArrayReader dArray = m2Reader.array(\"d\");\n ScalarReader dReader = dArray.scalar();\n\n for (int i = 0; i < 5; i++) {\n assertTrue(reader.next());\n assertEquals(i, aReader.getInt());\n for (int j = 0; j < 4; j++) {\n assertTrue(a1Reader.next());\n int a1Key = i + 10 + j;\n assertEquals(a1Key, bReader.getInt());\n for (int k = 0; k < 3; k++) {\n assertTrue(a2Reader.next());\n int a2Key = a1Key * 10 + k;\n assertEquals(a2Key, cReader.getInt());\n for (int l = 0; l < 2; l++) {\n assertTrue(dArray.next());\n assertEquals(\"d-\" + (a2Key * 10 + l), dReader.getString());\n }\n }\n }\n }\n rsLoader.close();\n }", "@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}", "@Test\n public void test_getAndSet_ByIndex_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods _________________________________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", 0,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", 1,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // continuation primiative field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 2,\n 456, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 3,\n 789, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n\n\n\n // Object Continuation\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n\n // Test the Get & Set methods _________________________________________________________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 1,\n MPSymbols.byte$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n }", "protected Tuple cleanTuple(Tuple result)\n {\n return result;\n }", "public void testUnpackNoValuesMulti() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}, {}, {}, {}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 4 output tuples emitted\", results.emitted.size() == 4);\n }", "@Test\r\n public void testCreateShortestTour_idxSlightlyTooBig() {\r\n Tour tour = new Tour(new int[][]{{10, 10}, {1, 1}, {22, 22}, {3, 3}});\r\n Tour result = tour.createShortestTour(4);\r\n Tour expected = new Tour();\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\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 }", "@Test\r\n public void testCreateShortestTour() {\r\n Tour tour = new Tour(new int[][]{{10, 10}, {1, 1}, {22, 22}, {3, 3}});\r\n Tour result = tour.createShortestTour(1);\r\n Tour expected = new Tour(new int[][]{{1, 1}, {3, 3}, {10, 10}, {22, 22}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\n }", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "private void testRow( TaskKey aTask, String aBarcode, AircraftKey aAircraft,\n AssemblyKey aAssembly, String aAircraftName, RefSchedPriorityKey aSchedPriority,\n Date aDueDate, RefTaskPriorityKey aTaskPriority, int aTaskPriorityOrd,\n int aNextHighestEventDbId, String aClassModeCd, String aNextHighestTaskClassCd,\n Date aHighestSchedStartGdt, double aDuration, String aPartList, String aToolList,\n String aLabourList, String aWorkTypeList, String aSubtreeList ) {\n\n MxAssert.assertEquals( aTask.toString(), iDataSet.getString( \"task_pk\" ) );\n MxAssert.assertEquals( aBarcode, iDataSet.getString( \"barcode_sdesc\" ) );\n MxAssert.assertEquals( aAircraft.toString(), iDataSet.getString( \"aircraft_pk\" ) );\n MxAssert.assertEquals( aAssembly.toString(), iDataSet.getString( \"assmbl_pk\" ) );\n MxAssert.assertEquals( aAircraftName, iDataSet.getString( \"aircraft_name\" ) );\n MxAssert.assertEquals( aSchedPriority.toString(), iDataSet.getString( \"sched_priority\" ) );\n MxAssert.assertEquals( aDueDate, iDataSet.getDate( \"due_date\" ) );\n MxAssert.assertEquals( aTaskPriority.toString(), iDataSet.getString( \"task_priority\" ) );\n MxAssert.assertEquals( aTaskPriorityOrd, iDataSet.getInt( \"task_priority_ord\" ) );\n\n // Loose Task Specific values\n MxAssert.assertEquals( aNextHighestEventDbId, iDataSet.getInt( \"nh_event_db_id\" ) );\n MxAssert.assertEquals( aClassModeCd, iDataSet.getString( \"class_mode_cd\" ) );\n\n // Non Loose Task Specific values\n MxAssert.assertEquals( aNextHighestTaskClassCd, iDataSet.getString( \"nh_task_class_cd\" ) );\n MxAssert.assertEquals( aHighestSchedStartGdt, iDataSet.getDate( \"h_sched_start_gdt\" ) );\n\n MxAssert.assertEquals( aDuration, iDataSet.getDouble( \"duration\" ) );\n\n if ( aPartList != null ) {\n MxAssert.assertEquals( aPartList, iDataSet.getString( \"part_details_list\" ) );\n }\n\n if ( aToolList != null ) {\n MxAssert.assertEquals( aToolList, iDataSet.getString( \"tools_list\" ) );\n }\n\n if ( aLabourList != null ) {\n MxAssert.assertEquals( aLabourList, iDataSet.getString( \"est_labour_effort_list\" ) );\n }\n\n if ( aWorkTypeList != null ) {\n MxAssert.assertEquals( aWorkTypeList, iDataSet.getString( \"work_types_list\" ) );\n }\n\n if ( aSubtreeList != null ) {\n MxAssert.assertEquals( aSubtreeList, iDataSet.getString( \"subtree_list\" ) );\n }\n }", "private SchemaTupleFactory internalNewSchemaTupleFactory(Schema s, boolean isAppendable, GenContext context) {\n return newSchemaTupleFactory(Triple.make(new SchemaKey(s), isAppendable, context));\n }", "public void test17() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public ExtList ggplot(ExtList criteria_set, ExtList info, ExtList sch, ExtList tuples) {\n\n//\t\tSystem.out.println();\n//\t\tSystem.out.println(tuples);\n//\t\tSystem.out.println(sch);\n//\t\tSystem.out.println(info);\n\t\t\n//if (tuples.toString().equals(\"[[]]\")) {\n//\treturn tuples;\n//}\n\t\tboolean is_ggplot = false;\n\t\tboolean is_ggplot_1 = false;\n\t\tboolean aethFlag = true;\n\t\tint aeth[] = {-1, -1, -1, -1, -1};\n\t\tint count = -1;\n\n\t\tExtList criteria_set_buffer = new ExtList();\n\t\tExtList process_set = new ExtList();\n\t\tExtList deep_set = new ExtList();\n\n\n\t\tLog.out(\" * ggplot at the schema level \" + sch + \" *\");\n\t\t//add tbt 180727\n\t\t\t\t//For forest\n\t\t\t\t//not to use attributes to other trees\n\t\t\t\tboolean is_forest = true;\n\t\t\t\t//tbt end\n\n\t\t/* current schema level */\n\t\t//Log.out(\"sch: \" + sch + \" size:\" + sch.size());\n\t\tfor (int i = 0; i < sch.size(); i++) {\n\t\t\tif (is_ggplot_1) {\n\t\t\t\tif (criteria_set.size() == 0 && sch.size() == 3 && aethFlag) {\n\t\t\t\t\taethFlag = false;\n\t\t\t\t\taeth[count] = Integer.parseInt(sch.get(i + 1).toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tis_ggplot_1 = false;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t/* attribute found in this current level */\n\t\t\tif (!(sch.get(i) instanceof ExtList)) {\n\t\t\t\tis_forest = false;\n\t\t\t\tis_ggplot = false;\n\n\t\t\t\tfor (int j = 0; j < info.size(); j++) {\n\t\t\t\t\t/* \"ggplot functions\" found */\n\t\t\t\t\t//Log.out(\"info.get(\" + j + \"): \" + info.get(j).toString().split(\" \")[0]);\n\t\t\t\t\t//Log.out(\"sch.get(\" + i + \"): \" + sch.get(i));\n\t\t\t\t\tif (info.get(j).toString().split(\" \")[0].equals(sch.get(i).toString())){\n\n\t\t\t\t\t\tLog.out(\" ggplot found : \" + sch.get(i) + \" with \" + info.get(j).toString().split(\" \")[1]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Changed by li to fix the sch level\n\t\t\t\t\t\tinitializeSepSch(sch);\n\t\t\t\t\t\t//Log.out(\"break sch: \" + sch.get(1));\n\t\t\t\t\t\t//Log.out(\"break:\" + info.get(j).toString().split(\"ggplot\")[1]);\n\t\t\t\t\t\tString tmp_info;\n\t\t\t\t\t\ttmp_info = sch.get(0).toString() + ' ' + sch.get(1) + ' ' + \"ggplot\" + info.get(j).toString().split(\"ggplot\")[1];\n\t\t\t\t\t\t//Log.out(\"break:\" + tmp_info);\n\t\t\t\t\t\tis_ggplot = true;\n\t\t\t\t\t\tis_ggplot_1 = true;\n\t\t\t\t\t\t//process_set.add(info.get(j));\n\t\t\t\t\t\tprocess_set.add(tmp_info);\n\t\t\t\t\t\t//\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.out(\"process_set: \" + process_set + \" size: \" + process_set.size());\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* push it into criteria_set, if \"ggplot functions\" not found */\n\t\t\t\t//Log.out(\"is_ggplot: \" + is_ggplot);\n\t\t\t\t//Log.out(\"is_ggplot1: \" + is_ggplot_1);\n\t\t\t\t\n\t\t\t\t//Comment out by li 20210610\n\t\t\t\t/*\n\t\t\t\tif (!is_ggplot) {\n\t\t\t\t\tLog.out(\"the criteria_set before: \" + criteria_set);\n//\t\t\t\tif (count>=0 && !is_ggplot) {\n\t\t\t\t\tif (criteria_set.size() >= 1) {\n\t\t\t\t\t\tif (Integer.parseInt(sch.get(i).toString()) == Integer.parseInt(criteria_set.get(criteria_set.size() - 1).toString()) + 1) {\n\t\t\t\t\t\t\tcriteria_set.add(sch.get(i));\n\t\t\t\t\t\t} else {\n//\t\t\t\t\t\t\tSystem.out.println(count+\" \"+i);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcriteria_set.add(sch.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tLog.out(\"the criteria_set after: \" + criteria_set);\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t/* inner level found in this current level */\n\t\t\t} else {\n\t\t\t\tdeep_set.add(sch.get(i));\n\n\t\t\t}\n\n\t\t}\n\n\t\tint cnt = 0;\n\t\t/* do \"ggplot functions\" in this current level, if there is any */\n\t\twhile (process_set.size() > 0) {\n\n\t\t\ttuples = makeGraph(criteria_set, process_set.get(0), tuples, aeth[cnt], result);\n\n\n\t\t\tLog.out(\" ggplot process : \" + process_set.get(0).toString().split(\" \")[0] + \" with \" + process_set.get(0).toString().split(\" \")[1]);\n\t\t\tcriteria_set_buffer.add(process_set.get(0).toString().split(\" \")[0]);\n\t\t\tprocess_set.remove(0);\n\t\t\tcnt++;\n\n\t\t}\n\n\t\t/* update criteria_set */\n\t\tfor (int i = 0; i < criteria_set_buffer.size(); i++) {\n\t\t\tcriteria_set.add(criteria_set_buffer.get(i));\n\t\t}\n\n\t\tLog.out(\" set : \" + criteria_set);\n\n\t\t/* calculate each inner level of this current level by recursion */\n\t\twhile (deep_set.size() > 0) {\n\n\t\t\tGGplot ggplot = new GGplot();\n\t\t\t//add tbt 180727\n\t\t\t//if forest, it should not use same criteria_set\n\t\t\tif(is_forest){\n\t\t\t\tcriteria_set.clear();\n\t\t\t}\n\t\t\t//end tbt\n\t\t\ttuples = ggplot.ggplot(criteria_set, info, (ExtList)(deep_set.get(0)), tuples);\n\t\t\tresult = ggplot.getResult();\n\t\t\tdeep_set.remove(0);\n\n\t\t}\n\n\t\treturn tuples;\n\n\t}", "@Override\n\t\tpublic Tuple exec(Tuple input) throws IOException {\n\t\t\tfor (Tuple t : (DataBag) input.get(0)) {\n\t\t\t\treturn wrap(t, getSign());\t\n\t\t\t}\n\t\t\t// Odd.\n\t\t\treturn tf.newTuple(bf.newDefaultBag());\n\t\t}", "public void testInferNumber1a() throws Exception {\n assertType(\"10 \", 0, 2, \"java.lang.Integer\");\n }", "public static void main(String[] args) {\n\n\n\t\tHashSet<String> actual = uniqueTuple(\"aaabbb\", 2);\n\t\tHashSet<String> expected = new HashSet<String>();\n\t\texpected.add(\"aa\");\n\t\texpected.add(\"ab\");\n\t\texpected.add(\"bb\");\n System.out.println(expected.containsAll(actual));\n }", "public RelationBuilderContainsTest() {\n builder = new BiMap<Integer, Integer>();\n builder.put(zero, one);\n }", "@Test(expected = IllegalArgumentException.class)\n public void buildDomeFalse() {\n nextWorkerCell.setLevel(2);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell); //livello -> 3\n //provo a fagli costruire una cupola (non può!)\n workerHephaestus.specialPower(nextWorkerCell);\n assertEquals(3, nextWorkerCell.getLevel());\n }", "@Test\r\n public void testCreateShortestTour_DoubledWaypoint() {\r\n Tour tour = new Tour(new int[][]{{10, 10}, {1, 1}, {22, 22}, {3, 3}});\r\n Tour result = tour.createShortestTour(1);\r\n Tour expected = new Tour(new int[][]{{1, 1}, {3, 3}, {10, 10}, {22, 22}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n public void testCheckTriType() {\n System.out.println(\"checkTriType\");\n double[] a = {1 , 5 , 4 , 100};\n double[] b = {1 , 5 , 3 , 5 };\n double[] c = {1 , 8 , 2 , 6 };\n SVV01 instance = new SVV01();\n String[] expResult = {\"Equilateral Triangle\",\"Isosceles Triangle\",\"Scalene\",\"Invalid\"};\n \n for ( int i = 0 ; i < 4 ; i++ ){\n String result = instance.checkTriType(a[i], b[i], c[i]);\n assertEquals(expResult[i], result);\n }\n }", "@Test\r\n\tpublic void firstTest() {\r\n\t\t\r\n\t\tTree tree = new Tree(\"greg\");\r\n\t\ttree.addElement(\"opera\");\r\n\t\ttree.addElement(\"qwerty\");\r\n\t\ttree.addElement(\"odf\");\r\n\t\ttree.addElement(7363);\r\n\t\ttree.addElement(new Double(23.3));\r\n\t\t\r\n\t\tassertTrue(tree.contains(7363));\r\n\t\tassertTrue(tree.contains(\"greg\"));\r\n\t\tassertTrue(tree.contains(\"opera\"));\r\n\t\tassertTrue(tree.contains(\"odf\"));\r\n\t}", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "private XYPairs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "Tuple (){\n\t\tleft=null;\n\t\tright=null;\n\t}", "@Test\n public void test_getAndSet_ByIndex_GenericMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n\n // Test the Get & Set methods & the Special Field-Value Get & Set methods - Object Type (string) _______________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n \"hello\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n (short)10, null, null, (short)-1001); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Continuation Field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 2,\n 11, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 3,\n 12, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Object Continuation ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n MPSymbols.int$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n }", "public void test18() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "@Test\r\n public void testCreateConcatenatedTour_TwoPlusOne() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}});\r\n Tour tourB = new Tour(new int[][]{{2, 2}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}}); \r\n Tour result = tourA.createConcatenatedTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@VTID(13)\r\n java.lang.String getTuple();", "@Test(expected = IllegalArgumentException.class)\n public void buildAgainFalse() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n //provo a fagli costruire su una cella diversa da nextWorkerCell (non puo!)\n workerHephaestus.specialPower(otherCell);\n assertEquals(1, nextWorkerCell.getLevel());\n assertEquals(0, otherCell.getLevel());\n }", "public static void addTupleAsOneCell(List<Cell> result,\n Tuple tuple,\n TupleProjector tupleProjector,\n ImmutableBytesWritable ptr) {\n byte[] value =\n tupleProjector.getSchema().toBytes(tuple, tupleProjector.getExpressions(),\n tupleProjector.getValueBitSet(), ptr);\n Cell firstCell = result.get(0);\n Cell keyValue =\n PhoenixKeyValueUtil.newKeyValue(firstCell.getRowArray(),\n firstCell.getRowOffset(),firstCell.getRowLength(), VALUE_COLUMN_FAMILY,\n VALUE_COLUMN_QUALIFIER, firstCell.getTimestamp(), value, 0, value.length);\n result.add(keyValue);\n }", "@Test\n public void test13() { \n Board board13 = new Board();\n board13.put(1,1,1); \n board13.put(1,2,1);\n board13.put(1,3,2);\n board13.put(2,1,2);\n board13.put(2,2,2);\n board13.put(2,3,1);\n board13.put(3,1,1);\n board13.put(3,2,1);\n board13.put(3,3,2);\n assertTrue(board13.checkTie());\n }", "@Test\n public void buildNotDome() {\n nextWorkerCell.setLevel(1);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertEquals(2, nextWorkerCell.getLevel());\n }", "@Test\n public void youCanCreateATimeSeriesFromPlatesFromACount() {\n\n VertexLabel xLabel = new VertexLabel(\"x\");\n VertexLabel xPreviousLabel = PlateBuilder.proxyFor(xLabel);\n VertexLabel yLabel = new VertexLabel(\"y\");\n\n Vertex<DoubleTensor> initialX = ConstantVertex.of(1.);\n List<Integer> ys = ImmutableList.of(0, 1, 2, 1, 3, 2);\n\n Plates plates = new PlateBuilder<Integer>()\n .withInitialState(xLabel, initialX)\n .count(10)\n .withFactory((plate) -> {\n DoubleVertex xPrevious = new DoubleProxyVertex(xPreviousLabel);\n DoubleVertex x = new ExponentialVertex(xPrevious);\n IntegerVertex y = new PoissonVertex(x);\n plate.add(xPrevious);\n plate.add(xLabel, x);\n plate.add(yLabel, y);\n })\n .build();\n\n\n Vertex<DoubleTensor> previousX = initialX;\n\n for (Plate plate : plates) {\n Vertex<DoubleTensor> xPreviousProxy = plate.get(xPreviousLabel);\n Vertex<DoubleTensor> x = plate.get(xLabel);\n Vertex<DoubleTensor> y = plate.get(yLabel);\n assertThat(xPreviousProxy.getParents(), contains(previousX));\n assertThat(x.getParents(), contains(xPreviousProxy));\n assertThat(y.getParents(), contains(x));\n previousX = x;\n }\n }", "@Test\r\n public void Test008MakeLiveCell()\r\n {\r\n\r\n assertTrue(gol.makeLiveCell(3, 4));\r\n\r\n }", "public void testCheckForTripleMultiColor()\n {\n // Note that fromString calls the reset method internally.\n\n // An empty board\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n\n // A single filled cell\n b1.reset();\n b1.fromString(\"REEEEBEEE\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n\n // Some partially filled rows\n b1.fromString(\"RREEBBEEE\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"BEBEEERER\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"RRB\"+\"BEB\"+\"RER\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n\n // Some partially filled columns;\n b1.fromString(\"RBERBEEEE\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"EBREEEEBR\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"RBR\"+\"REB\"+\"EBR\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n\n // Partial Diagonals\n b1.fromString(\"REE\"+\"ERE\"+\"EEB\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"REB\"+\"EEE\"+\"BER\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"RER\"+\"ERE\"+\"EEE\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n\n // Filled columns\n b1.fromString(\"RBBREERBB\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"BBRBBREER\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"RBRRBRRER\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n\n // Filled Rows\n b1.fromString(\"RRREEBBBE\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"EEBBBERRR\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"RRRBBERRR\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n\n // Filled Diagonals\n b1.fromString(\"REB\"+\"ERE\"+\"BER\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"BBR\"+\"ERE\"+\"RBB\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"RBR\"+\"BRB\"+\"RBR\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n\n }", "void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n if (node.table.positives() == 0) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n\r\n //If no test split the data, make it a leaf with the majoriti of the target atribute\r\n int atr;\r\n //Choose the best atribute\r\n atr = this.chooseBestAtrib(node);\r\n node.atribute = atr;\r\n\r\n //No atribute split the data, so make the node a leaf with the majoriti of the class (either positive or negative)\r\n if (node.atribute == -1) {\r\n //System.out.println(\"Atribute is -1 in TeeBuidler.create\");\r\n if (node.table.negatives() > node.table.positives()) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n if (node.table.positives() >= node.table.negatives()) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n }\r\n\r\n Table table_left = new Table(), table_right = new Table();\r\n node.table.splitByAtrib(node.atribute, table_left, table_right);\r\n\r\n //Create two children for the current node //parameters: identifier,parent_result,atribute of split,id_child1, id_child2, table\r\n node.child_left = new Node(node.id + node.id, \"1\", -1, -1, -1, table_left);\r\n node.child_right = new Node(node.id + node.id+1, \"0\", -1, -1, -1, table_right);\r\n node.id_child_left = node.id + node.id;\r\n node.id_child_right = node.id + node.id+1;\r\n\r\n\r\n TreeBuilder builder = new TreeBuilder();\r\n builder.create(node.child_left);\r\n builder.create(node.child_right);\r\n\r\n }", "@Test\n\tpublic void test1() {\n\t\tTriangleType type = TriangleClassifier.classify(2,2, 1);\n\t\tassertEquals(type,TriangleType.ISOSCELES);\n\t}", "@Test\r\n\tpublic void testFlatMarkupAndOnePersonMarkup() throws BasePriceMustBePositiveException, \r\n\t NegativePersonCountException, ProductCategoryNotSpecifiedException {\r\n\t\tNuPackEstimator estimator = new NuPackEstimator(new BigDecimal(\"100\"), 1, \"books\");\r\n\t assertEquals(estimator.estimateFinalCost(), new BigDecimal(\"106.26\"));\r\n\t}", "PluralTupleLatticeElement putIntoLattice(PluralTupleLatticeElement value);", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "public void testUnpackNoValues() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }", "public void buildTileOfQuadrupleView(Context context,FakeSuiteBean sb) {\n\t\tpartitionView = new QuadrupleView(context);\n\t\tpartitionView.setContent(sb.resId);\n\t\ttile = new TileView(context);\n\t\ttile.setContent(partitionView);\n\t\ttile.setTitle(sb.tilte);\n\t\ttileViewList.add(tile);\n\t}", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "@Test\n\tpublic void testBuild() throws HashUtilException {\n\n\t\tshort sh = 121;\n\t\tbyte b = 14;\n\t\tboolean[] bool1 = null;\n\t\tint[] int1 = null;\n\t\tdouble[] dob = null;\n\t\tString[] str = null;\n\t\tbyte[] byt = null;\n\t\tshort[] sho = null;\n\t\tlong[] lon = null;\n\t\tfloat[] flo = null;\n\t\tchar[] chr = null;\n\t\tObject obj = null;\n\t\tassertEquals(\n\t\t\t\t((((((((7919l * 7664345821815920749L) + 34) * 7664345821815920749L) * 7664345821815920749L) + 1)\n\t\t\t\t\t\t* 7664345821815920749L) + Double.doubleToLongBits(12.3)) * 7664345821815920749L)\n\t\t\t\t\t\t+ Arrays.asList(\"Ramesh\", \"Suresh\").hashCode(),\n\t\t\t\tnew HashUtility().append(34).append(obj).append(false).append(12.3)\n\t\t\t\t\t\t.append(Arrays.asList(\"Ramesh\", \"Suresh\")).build());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((23l * 45) + 123456789000l) * 45) + Float.floatToIntBits(2.453f)) * 45) + sh) * 45) + b) * 45)\n\t\t\t\t\t\t+ (long) 'r',\n\t\t\t\tnew HashUtility(23, 45).append(123456789000l).append(2.453f).append(sh).append(b).append('r').build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(str).append(int1).append(bool1).append(dob).build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(byt).append(sho).append(lon).append(flo).append(chr).build());\n\n\t}", "public void testAll55() throws Exception {\n String[] signature = {\"[QObject;\", \"I\", \"Z\"};\r\n String[] newNames = {\"e\"};\r\n String[] newTypes = {\"boolean\"};\r\n String[] newDefaultValues = {\"true\"};\r\n TestParameterInfo[] newParamInfo = createTestParamInfos(newTypes, newNames,\r\n newDefaultValues);\r\n int[] newIndices = {2};\r\n helperAdd(signature, newParamInfo, newIndices);\r\n\r\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[0];\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance((-737.608359939284), doubleArray0);\n try { \n evaluation0.evaluationForSingleInstance(doubleArray0, binarySparseInstance0, false);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.creatMatrix(4622);\n expressionMatrixImpl0.toString();\n assertEquals(4622, expressionMatrixImpl0.getNumberOfElements());\n }", "public T caseTuple1(Tuple1 object)\n {\n return null;\n }", "@Test\n public void testMultiLateralView() throws Exception {\n String sql = \"desc verbose select k1, e1, e2 from db1.tbl1 lateral view explode_split(k2, \\\",\\\") tmp1 as e1\"\n + \" lateral view explode_split(k2, \\\",\\\") tmp2 as e2;\";\n String explainString = UtFrameUtils.getSQLPlanOrErrorMsg(ctx, sql, true);\n Assert.assertTrue(explainString.contains(\"2:TABLE FUNCTION NODE\"));\n Assert.assertTrue(explainString.contains(\"table function: explode_split(`k2`, ',')\"));\n Assert.assertTrue(explainString.contains(\"tuple ids: 0 1 2\"));\n Assert.assertTrue(explainString.contains(\"1:TABLE FUNCTION NODE\"));\n Assert.assertTrue(explainString.contains(\"table function: explode_split(`k2`, ',')\"));\n Assert.assertTrue(explainString.contains(\"tuple ids: 0 1\"));\n // lateral view 2 tuple\n Assert.assertTrue(explainString.contains(\"TupleDescriptor{id=1, tbl=tmp2, byteSize=32, materialized=true}\"));\n Assert.assertTrue(explainString.contains(\"SlotDescriptor{id=1, col=e2, type=VARCHAR(*)}\"));\n // lateral view 1 tuple\n Assert.assertTrue(explainString.contains(\"TupleDescriptor{id=2, tbl=tmp1, byteSize=32, materialized=true}\"));\n Assert.assertTrue(explainString.contains(\"SlotDescriptor{id=2, col=e1, type=VARCHAR(*)}\"));\n }" ]
[ "0.69807434", "0.6626617", "0.645579", "0.6251174", "0.60217994", "0.5894638", "0.58813876", "0.58542097", "0.5840944", "0.5741036", "0.5739194", "0.56826735", "0.5677035", "0.5649317", "0.56225806", "0.560122", "0.56003034", "0.5586924", "0.5497678", "0.5454338", "0.54277724", "0.54226166", "0.5382484", "0.5328895", "0.5306752", "0.5288851", "0.52568245", "0.5251648", "0.51630145", "0.5118739", "0.5106901", "0.50915796", "0.5079117", "0.50707644", "0.50667053", "0.50522417", "0.5033004", "0.5022492", "0.5020173", "0.50172895", "0.50104207", "0.49956197", "0.49805593", "0.49341366", "0.49324045", "0.49299425", "0.49107918", "0.4905689", "0.48898953", "0.488625", "0.48690885", "0.48567605", "0.48561105", "0.48486605", "0.483265", "0.48301294", "0.48286042", "0.48271203", "0.48211625", "0.48149648", "0.48143718", "0.4814029", "0.48112273", "0.4809876", "0.47997573", "0.47994277", "0.47846654", "0.47790703", "0.47775257", "0.47677547", "0.4767735", "0.4757758", "0.47530562", "0.47519454", "0.47506335", "0.47446063", "0.47426903", "0.47383", "0.4732137", "0.47320622", "0.47248003", "0.47189534", "0.47179678", "0.47131622", "0.47103313", "0.4708635", "0.4706321", "0.46978316", "0.46941575", "0.468691", "0.4686148", "0.46850887", "0.46841565", "0.4683399", "0.4682753", "0.46793634", "0.46764997", "0.46609822", "0.4649026", "0.46416938" ]
0.7418168
0
Test the forex 2d tuple builder
@Test public void testForex2DTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.FOREX_2D); final Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, "1"); Assert.assertNotNull(tuple1); Assert.assertEquals(Integer.toString(1), tuple1.getKey()); Assert.assertEquals(2, tuple1.getBoundingBox().getDimension()); Assert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "TupleExpr createTupleExpr();", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "Astro tuple(AstroArg args);", "private Tuples() {}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "public boolean isGeneralTuple();", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "TupleTypeRule createTupleTypeRule();", "TupleLiteralExp createTupleLiteralExp();", "TupleLiteralPart createTupleLiteralPart();", "public void buildTileOfQuadrupleView(Context context,FakeSuiteBean sb) {\n\t\tpartitionView = new QuadrupleView(context);\n\t\tpartitionView.setContent(sb.resId);\n\t\ttile = new TileView(context);\n\t\ttile.setContent(partitionView);\n\t\ttile.setTitle(sb.tilte);\n\t\ttileViewList.add(tile);\n\t}", "public void testUnpackMultipleTuples() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}, {\"v3\", \"v4\"}, {\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\");\n results.expectTuple(\"vva\", \"vvb\", \"v3\", \"v4\");\n results.expectTuple(\"vva\", \"vvb\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3); \n }", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "public boolean isTuple() {\n return PyTorchLibrary.LIB.iValueIsTuple(getHandle());\n }", "public abstract T getTuple(int aPosition);", "@Test\n public void testBuild() {\n assertEquals(r1.build(new Position2D(21, 42), new Color(255, 0, 0),\n new Dimension2D(100, 20)), new Rectangle(100, 20, new Color(255, 0, 0),\n new Position2D(21, 42)));\n\n assertEquals(r1.build(new Position2D(-28, 0), new Color(255, 255, 255),\n new Dimension2D(4, 0)), new Rectangle(4, 0, new Color(255, 255, 255),\n new Position2D(-28, 0)));\n }", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\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(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.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}", "private BDD build_X() {\n\t\tBDD res = factory.makeOne();\n\n\t\tfor(int i = 0; i < this.dimension; i++){\n\t\t\tfor(int j = 0; j < this.dimension; j++){\n\t\t\t\tres.andWith(board[i][j].copy());\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "public void testUnpackMultipleTuplesMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"b1_t1_v1\", \"b1_t1_v2\"}, {\"b1_t2_v1\", \"b1_t2_v2\"}, {\"b1_t3_v1\", \"b1_t3_v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"b2_t1_v1\", \"b2_t1_v2\"}, {\"b2_t2_v1\", \"b2_t2_v2\"}, {\"b2_t3_v1\", \"b2_t3_v2\"}});\n baggage.put(\"bag3\", new Object[][] {{\"b3_t1_v1\", \"b3_t1_v2\"}, {\"b3_t2_v1\", \"b3_t2_v2\"}, {\"b3_t3_v1\", \"b3_t3_v2\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n int expected = 3 * 3 * 3 * 3;\n for (int i = 0; i < expected; i++) {\n results.expectTuple(\"vva\");\n }\n results.check();\n assertTrue(\"Expect \"+expected+\" output tuple emitted\", results.emitted.size() == expected); \n }", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\n }", "@Test\n public void testDoubleNestedArray() {\n TupleMetadata schema = new SchemaBuilder()\n .add(\"a\", MinorType.INT)\n .addMapArray(\"m1\")\n .add(\"b\", MinorType.INT)\n .addMapArray(\"m2\")\n .add(\"c\", MinorType.INT)\n .addArray(\"d\", MinorType.VARCHAR)\n .resumeMap()\n .resumeSchema()\n .buildSchema();\n ResultSetLoaderImpl.ResultSetOptions options = new ResultSetOptionBuilder()\n .readerSchema(schema)\n .build();\n ResultSetLoader rsLoader = new ResultSetLoaderImpl(fixture.allocator(), options);\n RowSetLoader rootWriter = rsLoader.writer();\n rsLoader.startBatch();\n\n ScalarWriter aWriter = rootWriter.scalar(\"a\");\n ArrayWriter a1Writer = rootWriter.array(\"m1\");\n TupleWriter m1Writer = a1Writer.tuple();\n ScalarWriter bWriter = m1Writer.scalar(\"b\");\n ArrayWriter a2Writer = m1Writer.array(\"m2\");\n TupleWriter m2Writer = a2Writer.tuple();\n ScalarWriter cWriter = m2Writer.scalar(\"c\");\n ScalarWriter dWriter = m2Writer.array(\"d\").scalar();\n\n for (int i = 0; i < 5; i++) {\n rootWriter.start();\n aWriter.setInt(i);\n for (int j = 0; j < 4; j++) {\n int a1Key = i + 10 + j;\n bWriter.setInt(a1Key);\n for (int k = 0; k < 3; k++) {\n int a2Key = a1Key * 10 + k;\n cWriter.setInt(a2Key);\n for (int l = 0; l < 2; l++) {\n dWriter.setString(\"d-\" + (a2Key * 10 + l));\n }\n a2Writer.save();\n }\n a1Writer.save();\n }\n rootWriter.save();\n }\n\n RowSet results = fixture.wrap(rsLoader.harvest());\n RowSetReader reader = results.reader();\n\n ScalarReader aReader = reader.scalar(\"a\");\n ArrayReader a1Reader = reader.array(\"m1\");\n TupleReader m1Reader = a1Reader.tuple();\n ScalarReader bReader = m1Reader.scalar(\"b\");\n ArrayReader a2Reader = m1Reader.array(\"m2\");\n TupleReader m2Reader = a2Reader.tuple();\n ScalarReader cReader = m2Reader.scalar(\"c\");\n ArrayReader dArray = m2Reader.array(\"d\");\n ScalarReader dReader = dArray.scalar();\n\n for (int i = 0; i < 5; i++) {\n assertTrue(reader.next());\n assertEquals(i, aReader.getInt());\n for (int j = 0; j < 4; j++) {\n assertTrue(a1Reader.next());\n int a1Key = i + 10 + j;\n assertEquals(a1Key, bReader.getInt());\n for (int k = 0; k < 3; k++) {\n assertTrue(a2Reader.next());\n int a2Key = a1Key * 10 + k;\n assertEquals(a2Key, cReader.getInt());\n for (int l = 0; l < 2; l++) {\n assertTrue(dArray.next());\n assertEquals(\"d-\" + (a2Key * 10 + l), dReader.getString());\n }\n }\n }\n }\n rsLoader.close();\n }", "@Specialization\n\t\tString type(OzBacktrace backtrace) {\n\t\t\treturn \"tuple\";\n\t\t}", "public void testUnpackFromCorrectBag() throws InvalidAdviceException {\n Object[][] t1 = {{\"dsifji2oj\", \"23498ngnjs\"}};\n Object[][] t2 = {{\"dsfj9\", \"u1h32jbn4l1 '\"}};\n Object[][] t3 = {{\"24oi23n\", \"022l;'][ \"}};\n Object[][] t4 = {{\"0m0lkj34\", \"hh2h2n jds \"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(\"bag1\", t1).put(\"bag2\", t2).put(\"bag3\", t3).put(\"bag4\", t4);\n\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag1\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag2\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"u1h32jbn4l1 '\", \"dsfj9\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag3\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"022l;'][ \", \"24oi23n\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag4\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"hh2h2n jds \", \"0m0lkj34\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "public void testUnpack() throws InvalidAdviceException {\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag7\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag4\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"pb\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"23498ngnjs\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "private static void buildSquare(Matrix4f matrix, BufferBuilder builder, int x1, int x2, int y1, int y2, int z, float u1, float u2, float v1, float v2) {\n builder.pos(matrix, x1, y2, z).tex(u1, v2).endVertex();\n builder.pos(matrix, x2, y2, z).tex(u2, v2).endVertex();\n builder.pos(matrix, x2, y1, z).tex(u2, v1).endVertex();\n builder.pos(matrix, x1, y1, z).tex(u1, v1).endVertex();\n }", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\n }", "public abstract T getTuple(Record record);", "@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 buildTileOfTripleView(Context context,FakeSuiteBean sb) {\n\t\tpartitionView = new TripleView(context);\n\t\tpartitionView.setContent(sb.resId);\n\t\ttile = new TileView(context);\n\t\ttile.setContent(partitionView);\n\t\ttile.setTitle(sb.tilte);\n\t\ttileViewList.add(tile);\n\t}", "@Test\n public void test13() { \n Board board13 = new Board();\n board13.put(1,1,1); \n board13.put(1,2,1);\n board13.put(1,3,2);\n board13.put(2,1,2);\n board13.put(2,2,2);\n board13.put(2,3,1);\n board13.put(3,1,1);\n board13.put(3,2,1);\n board13.put(3,3,2);\n assertTrue(board13.checkTie());\n }", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "PluralTupleLatticeElement putIntoLattice(PluralTupleLatticeElement value);", "@Test\r\n public void Test008MakeLiveCell()\r\n {\r\n\r\n assertTrue(gol.makeLiveCell(3, 4));\r\n\r\n }", "public ExtList ggplot(ExtList criteria_set, ExtList info, ExtList sch, ExtList tuples) {\n\n//\t\tSystem.out.println();\n//\t\tSystem.out.println(tuples);\n//\t\tSystem.out.println(sch);\n//\t\tSystem.out.println(info);\n\t\t\n//if (tuples.toString().equals(\"[[]]\")) {\n//\treturn tuples;\n//}\n\t\tboolean is_ggplot = false;\n\t\tboolean is_ggplot_1 = false;\n\t\tboolean aethFlag = true;\n\t\tint aeth[] = {-1, -1, -1, -1, -1};\n\t\tint count = -1;\n\n\t\tExtList criteria_set_buffer = new ExtList();\n\t\tExtList process_set = new ExtList();\n\t\tExtList deep_set = new ExtList();\n\n\n\t\tLog.out(\" * ggplot at the schema level \" + sch + \" *\");\n\t\t//add tbt 180727\n\t\t\t\t//For forest\n\t\t\t\t//not to use attributes to other trees\n\t\t\t\tboolean is_forest = true;\n\t\t\t\t//tbt end\n\n\t\t/* current schema level */\n\t\t//Log.out(\"sch: \" + sch + \" size:\" + sch.size());\n\t\tfor (int i = 0; i < sch.size(); i++) {\n\t\t\tif (is_ggplot_1) {\n\t\t\t\tif (criteria_set.size() == 0 && sch.size() == 3 && aethFlag) {\n\t\t\t\t\taethFlag = false;\n\t\t\t\t\taeth[count] = Integer.parseInt(sch.get(i + 1).toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tis_ggplot_1 = false;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t/* attribute found in this current level */\n\t\t\tif (!(sch.get(i) instanceof ExtList)) {\n\t\t\t\tis_forest = false;\n\t\t\t\tis_ggplot = false;\n\n\t\t\t\tfor (int j = 0; j < info.size(); j++) {\n\t\t\t\t\t/* \"ggplot functions\" found */\n\t\t\t\t\t//Log.out(\"info.get(\" + j + \"): \" + info.get(j).toString().split(\" \")[0]);\n\t\t\t\t\t//Log.out(\"sch.get(\" + i + \"): \" + sch.get(i));\n\t\t\t\t\tif (info.get(j).toString().split(\" \")[0].equals(sch.get(i).toString())){\n\n\t\t\t\t\t\tLog.out(\" ggplot found : \" + sch.get(i) + \" with \" + info.get(j).toString().split(\" \")[1]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Changed by li to fix the sch level\n\t\t\t\t\t\tinitializeSepSch(sch);\n\t\t\t\t\t\t//Log.out(\"break sch: \" + sch.get(1));\n\t\t\t\t\t\t//Log.out(\"break:\" + info.get(j).toString().split(\"ggplot\")[1]);\n\t\t\t\t\t\tString tmp_info;\n\t\t\t\t\t\ttmp_info = sch.get(0).toString() + ' ' + sch.get(1) + ' ' + \"ggplot\" + info.get(j).toString().split(\"ggplot\")[1];\n\t\t\t\t\t\t//Log.out(\"break:\" + tmp_info);\n\t\t\t\t\t\tis_ggplot = true;\n\t\t\t\t\t\tis_ggplot_1 = true;\n\t\t\t\t\t\t//process_set.add(info.get(j));\n\t\t\t\t\t\tprocess_set.add(tmp_info);\n\t\t\t\t\t\t//\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.out(\"process_set: \" + process_set + \" size: \" + process_set.size());\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* push it into criteria_set, if \"ggplot functions\" not found */\n\t\t\t\t//Log.out(\"is_ggplot: \" + is_ggplot);\n\t\t\t\t//Log.out(\"is_ggplot1: \" + is_ggplot_1);\n\t\t\t\t\n\t\t\t\t//Comment out by li 20210610\n\t\t\t\t/*\n\t\t\t\tif (!is_ggplot) {\n\t\t\t\t\tLog.out(\"the criteria_set before: \" + criteria_set);\n//\t\t\t\tif (count>=0 && !is_ggplot) {\n\t\t\t\t\tif (criteria_set.size() >= 1) {\n\t\t\t\t\t\tif (Integer.parseInt(sch.get(i).toString()) == Integer.parseInt(criteria_set.get(criteria_set.size() - 1).toString()) + 1) {\n\t\t\t\t\t\t\tcriteria_set.add(sch.get(i));\n\t\t\t\t\t\t} else {\n//\t\t\t\t\t\t\tSystem.out.println(count+\" \"+i);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcriteria_set.add(sch.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tLog.out(\"the criteria_set after: \" + criteria_set);\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t/* inner level found in this current level */\n\t\t\t} else {\n\t\t\t\tdeep_set.add(sch.get(i));\n\n\t\t\t}\n\n\t\t}\n\n\t\tint cnt = 0;\n\t\t/* do \"ggplot functions\" in this current level, if there is any */\n\t\twhile (process_set.size() > 0) {\n\n\t\t\ttuples = makeGraph(criteria_set, process_set.get(0), tuples, aeth[cnt], result);\n\n\n\t\t\tLog.out(\" ggplot process : \" + process_set.get(0).toString().split(\" \")[0] + \" with \" + process_set.get(0).toString().split(\" \")[1]);\n\t\t\tcriteria_set_buffer.add(process_set.get(0).toString().split(\" \")[0]);\n\t\t\tprocess_set.remove(0);\n\t\t\tcnt++;\n\n\t\t}\n\n\t\t/* update criteria_set */\n\t\tfor (int i = 0; i < criteria_set_buffer.size(); i++) {\n\t\t\tcriteria_set.add(criteria_set_buffer.get(i));\n\t\t}\n\n\t\tLog.out(\" set : \" + criteria_set);\n\n\t\t/* calculate each inner level of this current level by recursion */\n\t\twhile (deep_set.size() > 0) {\n\n\t\t\tGGplot ggplot = new GGplot();\n\t\t\t//add tbt 180727\n\t\t\t//if forest, it should not use same criteria_set\n\t\t\tif(is_forest){\n\t\t\t\tcriteria_set.clear();\n\t\t\t}\n\t\t\t//end tbt\n\t\t\ttuples = ggplot.ggplot(criteria_set, info, (ExtList)(deep_set.get(0)), tuples);\n\t\t\tresult = ggplot.getResult();\n\t\t\tdeep_set.remove(0);\n\n\t\t}\n\n\t\treturn tuples;\n\n\t}", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "public TupleDesc getTupleDesc();", "@Test\r\n public void testCreatePopularTour_EveryScndWaypointFromFirst() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour tourB = new Tour(new int[][]{{0, 0}, {2, 2}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {2, 2}});\r\n Tour result = tourA.createPopularTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result)); \r\n }", "public interface CoordTupleString {\n\n /**\n * Accessor for the max tuple index\n * \n * @return the max tuple index\n */\n public abstract int maxIndex();\n\n /**\n * Accessor to determine the actual type managed.\n * \n * @return a Number the most directly corresponds to the\n * underlying managed type (Float for a float tuplestring,\n * Double for a double tuplestring, etc)\n */\n public abstract Number getPrimitiveType();\n\n /**\n * Accessor to retrieve a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a float[]\n */\n public abstract float[] getasFloat(int tuple);\n\n /**\n * Accessor to retrieve a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a double[]\n */\n public abstract double[] getasDouble(int tuple);\n\n /**\n * Accessor to retrieve a single value in a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @param val the index of the value in the tuple (the first val\n * is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a float\n */\n public abstract float getasFloat(int tuple, int val);\n\n /**\n * Accessor to retrieve a single value in a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @param val the index of the value in the tuple (the first val\n * is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a double\n */\n public abstract double getasDouble(int tuple, int val);\n}", "protected void building(double xCoord, double yCoord, double len, double width, double height)\n {\n double x1 = (xCoord - (width/2)); // Low x\n double x2 = (xCoord + (width/2)); // High x\n double y1 = (yCoord - (len/2)); // Low y\n double y2 = (yCoord + (len/2)); // High y\n\n Vertex vertex1, vertex2, vertex3;\n\n Triple pos1, pos2, pos3, pos4, pos5, pos6, pos7, pos8, col1, col2, col3, col4;\n Vertex vert1, vert2, vert3;\n\n pos1 = new Triple(x1, y1, 0); \n pos2 = new Triple(x2, y1, 0); \n pos3 = new Triple(x2, y1, height);\n pos4 = new Triple(x1, y1, height);\n pos5 = new Triple(x1, y2, 0); \n pos6 = new Triple(x2, y2, 0); \n pos7 = new Triple(x2, y2, height);\n pos8 = new Triple(x1, y2, height);\n\n col1 = new Triple(1, 0, 0); \n col2 = new Triple(0, 1, 0); \n col3 = new Triple(0, 0, 1); \n col4 = new Triple(1, 0, 1); \n \n // Front Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0), \n new Vertex(pos2, 0, 1), \n new Vertex(pos3, 1, 1), \n\t\t\t\t 25 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos3, 1, 1), \n new Vertex(pos4, 1, 0), \n new Vertex(pos1, 0, 0),\n 25 ) );\n \n // Left Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0), \n new Vertex(pos5, 0, 1), \n new Vertex(pos8, 1, 1),\n 26 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos8, 1, 1), \n new Vertex(pos4, 1, 0), \n new Vertex(pos1, 0, 0),\n 26 ) );\n\n // Right Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos2, 0, 0), \n new Vertex(pos6, 0, 1), \n new Vertex(pos7, 1, 1),\n 24 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1), \n new Vertex(pos3, 1, 0), \n new Vertex(pos2, 0, 0),\n 24 ) );\n\n // Back Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos5, 0, 0), \n new Vertex(pos6, 0, 1), \n new Vertex(pos7, 1, 1),\n 27 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1), \n new Vertex(pos8, 1, 0), \n new Vertex(pos5, 0, 0),\n 27 ) );\n\n // Top Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos4, 0, 0), \n new Vertex(pos3, 0, 1), \n new Vertex(pos7, 1, 1),\n 28 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, 1, 1), \n new Vertex(pos8, 1, 0), \n new Vertex(pos4, 0, 0),\n 28 ) );\n }", "@Test\r\n public void testCreateShortestTour_DoubledWaypoint() {\r\n Tour tour = new Tour(new int[][]{{10, 10}, {1, 1}, {22, 22}, {3, 3}});\r\n Tour result = tour.createShortestTour(1);\r\n Tour expected = new Tour(new int[][]{{1, 1}, {3, 3}, {10, 10}, {22, 22}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}", "private XYPairs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "public void testCheckForTripleMultiColor()\n {\n // Note that fromString calls the reset method internally.\n\n // An empty board\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n\n // A single filled cell\n b1.reset();\n b1.fromString(\"REEEEBEEE\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n\n // Some partially filled rows\n b1.fromString(\"RREEBBEEE\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"BEBEEERER\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"RRB\"+\"BEB\"+\"RER\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n\n // Some partially filled columns;\n b1.fromString(\"RBERBEEEE\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"EBREEEEBR\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"RBR\"+\"REB\"+\"EBR\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n\n // Partial Diagonals\n b1.fromString(\"REE\"+\"ERE\"+\"EEB\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"REB\"+\"EEE\"+\"BER\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n b1.fromString(\"RER\"+\"ERE\"+\"EEE\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n\n // Filled columns\n b1.fromString(\"RBBREERBB\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"BBRBBREER\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"RBRRBRRER\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n\n // Filled Rows\n b1.fromString(\"RRREEBBBE\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"EEBBBERRR\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"RRRBBERRR\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n\n // Filled Diagonals\n b1.fromString(\"REB\"+\"ERE\"+\"BER\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"BBR\"+\"ERE\"+\"RBB\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n b1.fromString(\"RBR\"+\"BRB\"+\"RBR\");\n assertEquals(b1.checkForTriple(), Cell.RED1);\n\n }", "@Test\r\n public void testCreateConcatenatedTour_TwoPlusOne() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}});\r\n Tour tourB = new Tour(new int[][]{{2, 2}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}}); \r\n Tour result = tourA.createConcatenatedTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "static Tuple wrap(Tuple init, long sign) throws ExecException {\n\t\tTuple tup = tf.newTuple(2);\n\t\ttup.set(0, init.get(0));\n\t\ttup.set(1, sign);\n\t\t\n\t\tDataBag bag = bf.newDefaultBag();\n\t\tbag.add(tup);\n\t\t\n\t\treturn tf.newTuple(bag);\n\t}", "Tuple (L left, R right){\n\t\tthis.left=left;\n\t\tthis.right=right;\n\t}", "@VTID(13)\r\n java.lang.String getTuple();", "@Test\n public void test14() { \n Board board14 = new Board();\n board14.put(1,1,1); \n board14.put(1,2,1);\n board14.put(1,3,1);\n board14.put(2,1,2);\n board14.put(2,2,2);\n board14.put(2,3,1);\n board14.put(3,1,1);\n board14.put(3,2,1);\n board14.put(3,3,2);\n assertFalse(board14.checkTie());\n }", "public void test17() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public Tuple(String attrib_names [], String attrib_types [], String attrib_values []) {\n\n\ttuple_counter++;\n\tnum_attribs = attrib_types.length;\n\tmy_data = new HashMap();\n\t\n\tfor (int i = 0; i < num_attribs; i++) {\n\ttry {\n\t Class cl = Class.forName(attrib_types[i]);\n\t Constructor constructor =\n\t\tcl.getConstructor(new Class[] { String.class });\n\t my_data.put ( attrib_names[i],\n\t\t(ColumnValue) constructor.newInstance\n\t\t(new Object[] { attrib_values[i] }));\n\t}\n\tcatch (java.lang.ClassNotFoundException e)\n\t { System.out.println(e.toString()); } \n\tcatch (java.lang.NoSuchMethodException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.reflect.InvocationTargetException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.InstantiationException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.IllegalAccessException e)\n\t { System.out.println(e.toString()); }\n\n\t}\n }", "@Test\n public void testSquare()\n {\n testSquareConstructor(10, 20);\n testSquareConstructor(30, 40);\n }", "@Test\r\n public void testCreateShortestTour_idxSlightlyTooBig() {\r\n Tour tour = new Tour(new int[][]{{10, 10}, {1, 1}, {22, 22}, {3, 3}});\r\n Tour result = tour.createShortestTour(4);\r\n Tour expected = new Tour();\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "Tuple (){\n\t\tleft=null;\n\t\tright=null;\n\t}", "public static void addTupleAsOneCell(List<Cell> result,\n Tuple tuple,\n TupleProjector tupleProjector,\n ImmutableBytesWritable ptr) {\n byte[] value =\n tupleProjector.getSchema().toBytes(tuple, tupleProjector.getExpressions(),\n tupleProjector.getValueBitSet(), ptr);\n Cell firstCell = result.get(0);\n Cell keyValue =\n PhoenixKeyValueUtil.newKeyValue(firstCell.getRowArray(),\n firstCell.getRowOffset(),firstCell.getRowLength(), VALUE_COLUMN_FAMILY,\n VALUE_COLUMN_QUALIFIER, firstCell.getTimestamp(), value, 0, value.length);\n result.add(keyValue);\n }", "public Tuple2() {\n }", "@Test\n public void youCanCreateALoopFromPlatesFromACount() {\n // inputs\n VertexLabel runningTotalLabel = new VertexLabel(\"runningTotal\");\n VertexLabel stillLoopingLabel = new VertexLabel(\"stillLooping\");\n VertexLabel valueInLabel = new VertexLabel(\"valueIn\");\n\n // intermediate\n VertexLabel oneLabel = new VertexLabel(\"one\");\n VertexLabel conditionLabel = new VertexLabel(\"condition\");\n\n // outputs\n VertexLabel plusLabel = new VertexLabel(\"plus\");\n VertexLabel loopLabel = new VertexLabel(\"loop\");\n VertexLabel valueOutLabel = new VertexLabel(\"valueOut\");\n\n // base case\n DoubleVertex initialSum = ConstantVertex.of(0.);\n BooleanVertex tru = ConstantVertex.of(true);\n DoubleVertex initialValue = ConstantVertex.of(0.);\n\n int maximumLoopLength = 100;\n\n Plates plates = new PlateBuilder<Integer>()\n .withInitialState(SimpleVertexDictionary.backedBy(ImmutableMap.of(\n plusLabel, initialSum,\n loopLabel, tru,\n valueOutLabel, initialValue)))\n .withTransitionMapping(ImmutableMap.of(\n runningTotalLabel, plusLabel,\n stillLoopingLabel, loopLabel,\n valueInLabel, valueOutLabel\n ))\n .count(maximumLoopLength)\n .withFactory((plate) -> {\n // inputs\n DoubleVertex runningTotal = new DoubleProxyVertex(runningTotalLabel);\n BooleanVertex stillLooping = new BooleanProxyVertex(stillLoopingLabel);\n DoubleVertex valueIn = new DoubleProxyVertex(valueInLabel);\n plate.addAll(ImmutableSet.of(runningTotal, stillLooping, valueIn));\n\n // intermediate\n DoubleVertex one = ConstantVertex.of(1.);\n BooleanVertex condition = new BernoulliVertex(0.5);\n plate.add(oneLabel, one);\n plate.add(conditionLabel, condition);\n\n // outputs\n DoubleVertex plus = runningTotal.plus(one);\n BooleanVertex loopAgain = stillLooping.and(condition);\n DoubleVertex result = If.isTrue(loopAgain).then(plus).orElse(valueIn);\n plate.add(plusLabel, plus);\n plate.add(loopLabel, loopAgain);\n plate.add(valueOutLabel, result);\n })\n .build();\n\n\n DoubleVertex previousPlus = initialSum;\n BooleanVertex previousLoop = tru;\n DoubleVertex previousValueOut = initialValue;\n\n for (Plate plate : plates) {\n DoubleVertex runningTotal = plate.get(runningTotalLabel);\n BooleanVertex stillLooping = plate.get(stillLoopingLabel);\n DoubleVertex valueIn = plate.get(valueInLabel);\n\n DoubleVertex one = plate.get(oneLabel);\n BooleanVertex condition = plate.get(conditionLabel);\n\n DoubleVertex plus = plate.get(plusLabel);\n BooleanVertex loop = plate.get(loopLabel);\n DoubleVertex valueOut = plate.get(valueOutLabel);\n\n assertThat(runningTotal.getParents(), contains(previousPlus));\n assertThat(stillLooping.getParents(), contains(previousLoop));\n assertThat(valueIn.getParents(), contains(previousValueOut));\n\n assertThat(one.getParents(), is(empty()));\n assertThat(condition, hasParents(contains(allOf(\n hasNoLabel(),\n instanceOf(ConstantDoubleVertex.class)\n ))));\n\n assertThat(plus.getParents(), containsInAnyOrder(runningTotal, one));\n assertThat(loop.getParents(), containsInAnyOrder(condition, stillLooping));\n assertThat(valueOut.getParents(), containsInAnyOrder(loop, valueIn, plus));\n\n previousPlus = plus;\n previousLoop = loop;\n previousValueOut = valueOut;\n }\n\n\n DoubleVertex output = plates.asList().get(maximumLoopLength - 1).get(valueOutLabel);\n\n for (int firstFailure : new int[]{0, 1, 2, 10, 99}) {\n for (Plate plate : plates) {\n BooleanVertex condition = plate.get(conditionLabel);\n condition.setAndCascade(true);\n }\n BooleanVertex condition = plates.asList().get(firstFailure).get(conditionLabel);\n condition.setAndCascade(false);\n Double expectedOutput = new Double(firstFailure);\n assertThat(output, VertexMatchers.hasValue(expectedOutput));\n }\n }", "private XYPair(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private TupleDesc generalTupleDesc(){\n \tType[] typeArr;\n \tString[] nameArr;\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tnameArr = new String[]{\"groupValue\", \"aggregateValue\"};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n }", "public void test18() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public void testUnpackNoValuesMulti() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}, {}, {}, {}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 4 output tuples emitted\", results.emitted.size() == 4);\n }", "@Test\r\n public void testCreateConcatenatedTour_EmptyPlusOne() {\r\n Tour tourA = new Tour(new int[][]{});\r\n Tour tourB = new Tour(new int[][]{{2, 2}});\r\n Tour expected = new Tour(new int[][]{{2, 2}}); \r\n Tour result = tourA.createConcatenatedTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n\tpublic void testTupleFile2() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getKey(), t.getKey());\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile();\n\n\t\tAssert.assertEquals(1, seenTuples.get());\n\t}", "private SchemaTupleFactory internalNewSchemaTupleFactory(Schema s, boolean isAppendable, GenContext context) {\n return newSchemaTupleFactory(Triple.make(new SchemaKey(s), isAppendable, context));\n }", "private void testRow( TaskKey aTask, String aBarcode, AircraftKey aAircraft,\n AssemblyKey aAssembly, String aAircraftName, RefSchedPriorityKey aSchedPriority,\n Date aDueDate, RefTaskPriorityKey aTaskPriority, int aTaskPriorityOrd,\n int aNextHighestEventDbId, String aClassModeCd, String aNextHighestTaskClassCd,\n Date aHighestSchedStartGdt, double aDuration, String aPartList, String aToolList,\n String aLabourList, String aWorkTypeList, String aSubtreeList ) {\n\n MxAssert.assertEquals( aTask.toString(), iDataSet.getString( \"task_pk\" ) );\n MxAssert.assertEquals( aBarcode, iDataSet.getString( \"barcode_sdesc\" ) );\n MxAssert.assertEquals( aAircraft.toString(), iDataSet.getString( \"aircraft_pk\" ) );\n MxAssert.assertEquals( aAssembly.toString(), iDataSet.getString( \"assmbl_pk\" ) );\n MxAssert.assertEquals( aAircraftName, iDataSet.getString( \"aircraft_name\" ) );\n MxAssert.assertEquals( aSchedPriority.toString(), iDataSet.getString( \"sched_priority\" ) );\n MxAssert.assertEquals( aDueDate, iDataSet.getDate( \"due_date\" ) );\n MxAssert.assertEquals( aTaskPriority.toString(), iDataSet.getString( \"task_priority\" ) );\n MxAssert.assertEquals( aTaskPriorityOrd, iDataSet.getInt( \"task_priority_ord\" ) );\n\n // Loose Task Specific values\n MxAssert.assertEquals( aNextHighestEventDbId, iDataSet.getInt( \"nh_event_db_id\" ) );\n MxAssert.assertEquals( aClassModeCd, iDataSet.getString( \"class_mode_cd\" ) );\n\n // Non Loose Task Specific values\n MxAssert.assertEquals( aNextHighestTaskClassCd, iDataSet.getString( \"nh_task_class_cd\" ) );\n MxAssert.assertEquals( aHighestSchedStartGdt, iDataSet.getDate( \"h_sched_start_gdt\" ) );\n\n MxAssert.assertEquals( aDuration, iDataSet.getDouble( \"duration\" ) );\n\n if ( aPartList != null ) {\n MxAssert.assertEquals( aPartList, iDataSet.getString( \"part_details_list\" ) );\n }\n\n if ( aToolList != null ) {\n MxAssert.assertEquals( aToolList, iDataSet.getString( \"tools_list\" ) );\n }\n\n if ( aLabourList != null ) {\n MxAssert.assertEquals( aLabourList, iDataSet.getString( \"est_labour_effort_list\" ) );\n }\n\n if ( aWorkTypeList != null ) {\n MxAssert.assertEquals( aWorkTypeList, iDataSet.getString( \"work_types_list\" ) );\n }\n\n if ( aSubtreeList != null ) {\n MxAssert.assertEquals( aSubtreeList, iDataSet.getString( \"subtree_list\" ) );\n }\n }", "public interface IGeneralTuple {\r\n /**\r\n * Sets the values for a tuple.\r\n * @param values the tuple values\r\n */\r\n public void setValues(List<Object> values);\r\n /**\r\n * Returns the list of values in a tuple.\r\n * @return the list of values\r\n */\r\n public List<Object> getValues();\r\n /**\r\n * Returns the value located in a specific index of the list of values. \r\n * @param index the index in which the value is located\r\n * @return the value \r\n */\r\n public Object getValue(int index);\r\n /**\r\n * Returns whether it is a general tuple.\r\n * @return a boolean value indicating whether it is a general tuple\r\n */\r\n public boolean isGeneralTuple();\r\n}", "protected Tuple cleanTuple(Tuple result)\n {\n return result;\n }", "@Test\n public void testMultiLateralView() throws Exception {\n String sql = \"desc verbose select k1, e1, e2 from db1.tbl1 lateral view explode_split(k2, \\\",\\\") tmp1 as e1\"\n + \" lateral view explode_split(k2, \\\",\\\") tmp2 as e2;\";\n String explainString = UtFrameUtils.getSQLPlanOrErrorMsg(ctx, sql, true);\n Assert.assertTrue(explainString.contains(\"2:TABLE FUNCTION NODE\"));\n Assert.assertTrue(explainString.contains(\"table function: explode_split(`k2`, ',')\"));\n Assert.assertTrue(explainString.contains(\"tuple ids: 0 1 2\"));\n Assert.assertTrue(explainString.contains(\"1:TABLE FUNCTION NODE\"));\n Assert.assertTrue(explainString.contains(\"table function: explode_split(`k2`, ',')\"));\n Assert.assertTrue(explainString.contains(\"tuple ids: 0 1\"));\n // lateral view 2 tuple\n Assert.assertTrue(explainString.contains(\"TupleDescriptor{id=1, tbl=tmp2, byteSize=32, materialized=true}\"));\n Assert.assertTrue(explainString.contains(\"SlotDescriptor{id=1, col=e2, type=VARCHAR(*)}\"));\n // lateral view 1 tuple\n Assert.assertTrue(explainString.contains(\"TupleDescriptor{id=2, tbl=tmp1, byteSize=32, materialized=true}\"));\n Assert.assertTrue(explainString.contains(\"SlotDescriptor{id=2, col=e1, type=VARCHAR(*)}\"));\n }", "public static void main(String[] args) {\n\n\n\t\tHashSet<String> actual = uniqueTuple(\"aaabbb\", 2);\n\t\tHashSet<String> expected = new HashSet<String>();\n\t\texpected.add(\"aa\");\n\t\texpected.add(\"ab\");\n\t\texpected.add(\"bb\");\n System.out.println(expected.containsAll(actual));\n }", "@Test\n\tpublic void testBuild() throws HashUtilException {\n\n\t\tshort sh = 121;\n\t\tbyte b = 14;\n\t\tboolean[] bool1 = null;\n\t\tint[] int1 = null;\n\t\tdouble[] dob = null;\n\t\tString[] str = null;\n\t\tbyte[] byt = null;\n\t\tshort[] sho = null;\n\t\tlong[] lon = null;\n\t\tfloat[] flo = null;\n\t\tchar[] chr = null;\n\t\tObject obj = null;\n\t\tassertEquals(\n\t\t\t\t((((((((7919l * 7664345821815920749L) + 34) * 7664345821815920749L) * 7664345821815920749L) + 1)\n\t\t\t\t\t\t* 7664345821815920749L) + Double.doubleToLongBits(12.3)) * 7664345821815920749L)\n\t\t\t\t\t\t+ Arrays.asList(\"Ramesh\", \"Suresh\").hashCode(),\n\t\t\t\tnew HashUtility().append(34).append(obj).append(false).append(12.3)\n\t\t\t\t\t\t.append(Arrays.asList(\"Ramesh\", \"Suresh\")).build());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((23l * 45) + 123456789000l) * 45) + Float.floatToIntBits(2.453f)) * 45) + sh) * 45) + b) * 45)\n\t\t\t\t\t\t+ (long) 'r',\n\t\t\t\tnew HashUtility(23, 45).append(123456789000l).append(2.453f).append(sh).append(b).append('r').build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(str).append(int1).append(bool1).append(dob).build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(byt).append(sho).append(lon).append(flo).append(chr).build());\n\n\t}", "public static void main(String[] args) {\n\t\tSquarelotron test = makeSquarelotron(new int[] {0,1,2,101});\n\t\tSystem.out.println(test.toString());\n\t\t//tests one that should be created\n\t\tSquarelotron test2 = makeSquarelotron(new int[] {0,1,2,3});\n\t\tSystem.out.println(test2.toString());\n\t\t//tests for too long\n\t\tSquarelotron test3 = makeSquarelotron(new int[] {0,1,2,3,5});\n\t\tSystem.out.println(test3.toString());\n\t\t\n\t}", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "@Test\n public void buildDomeTrue() {\n nextWorkerCell.setLevel(3);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertEquals(4, nextWorkerCell.getLevel());\n assertTrue(nextWorkerCell.getIsOccupied());\n }", "@Test\n public void testAddCity_3args02() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"cityTest\";\n Pair coordenates = new Pair(41.200000, -8.000000);\n int points = 30;\n\n boolean result = sn10.addCity(coordenates, cityName, points);\n assertTrue(result);\n }", "public abstract void handleTuple(ITuple tuple);", "void buildDome(Tile t);", "@Test public void test_3() throws Exception {\n yetihelper.Helper v76=new yetihelper.Helper(); // time:1355223203509\n int v77=-2147483647; // time:1355223203509\n java.lang.Integer v78=v76.dummyInteger((int)v77); // time:1355223203509\n material.Square v79=new material.Square((java.lang.Integer)v78,(java.lang.Integer)v78); // time:1355223203509\n java.lang.Integer v80=v79.getRow(); // time:1355223203509\n material.Square v286=new material.Square((java.lang.Integer)v80,(java.lang.Integer)null); // time:1355223203642\n material.Board v313=new material.Board(); // time:1355223203665\n material.Piece v321=v313.getSquare((material.Square)v286);\n /**BUG FOUND: RUNTIME EXCEPTION**/ // time:1355223203669\n /**YETI EXCEPTION - START \n java.lang.NullPointerException\n \tat material.Square.hashCode(Square.java:49)\n \tat java.util.HashMap.get(Unknown Source)\n \tat material.Board.getSquare(Board.java:64)\n YETI EXCEPTION - END**/ \n /** original locs: 1384 minimal locs: 8**/\n \n }", "@Test\n public void buildAgainTrue() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n workerHephaestus.specialPower(nextWorkerCell);\n assertEquals(2, nextWorkerCell.getLevel());\n\n }", "@Test\n public void testErrorTuple() throws Exception {\n TestBolt tb = spy(new TestBolt(true));\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).reportError(any(BoltProcessingException.class));\n }", "@Test\r\n public void testCreateUnion_OneAndOne() {\r\n Tour tourA = new Tour(new int[][]{{1, 1}});\r\n Tour tourB = new Tour(new int[][]{{12, 12}});\r\n Tour result = tourA.createUnion(tourB);\r\n Tour expected = new Tour(new int[][]{{1, 1}, {12, 12}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n public void testRectangleExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.RECTANGLE, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"RECTANGLE 0.1 0.2 \\n\", print);\n }" ]
[ "0.7025494", "0.67349833", "0.65891755", "0.64682657", "0.644466", "0.619995", "0.6169597", "0.60717374", "0.60449016", "0.60295427", "0.60240215", "0.59507316", "0.59434974", "0.5939845", "0.5870343", "0.5783792", "0.57642317", "0.57505155", "0.5740378", "0.57323", "0.5675563", "0.563392", "0.56021893", "0.5571988", "0.5544794", "0.5533023", "0.54662025", "0.5440037", "0.5388292", "0.5378061", "0.5328362", "0.5278639", "0.527115", "0.5261592", "0.52259856", "0.52198035", "0.5210398", "0.5203733", "0.5174786", "0.5157735", "0.5100751", "0.50740886", "0.507335", "0.5060639", "0.50436926", "0.5005774", "0.4992554", "0.4982766", "0.49823517", "0.4978776", "0.49732652", "0.49442592", "0.493459", "0.49305645", "0.49261707", "0.49184722", "0.49137795", "0.49131262", "0.4888506", "0.48876107", "0.4882033", "0.48778567", "0.4877529", "0.4869665", "0.4869436", "0.4861026", "0.4857146", "0.48559418", "0.48481393", "0.48457006", "0.483146", "0.48250076", "0.48238727", "0.48160756", "0.48135304", "0.4811961", "0.48102444", "0.48091137", "0.48040342", "0.48012465", "0.4798478", "0.47983244", "0.479725", "0.4796697", "0.47939867", "0.47931343", "0.47926384", "0.4790586", "0.47853374", "0.47695577", "0.47683465", "0.4760471", "0.4759444", "0.47430804", "0.47425592", "0.47416675", "0.4740975", "0.47366887", "0.47330245", "0.47301492" ]
0.72785497
0
Test the rome taxi range tuple builder
@Test public void testRomeTaxiRangeTupleBuilder1() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ROME_TAXI_RANGE); final Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, "1"); final Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, "1"); Assert.assertNull(tuple1); Assert.assertNotNull(tuple2); Assert.assertEquals(Integer.toString(1), tuple2.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d, 41.91924450823211, 41.92924450823211, 12.5027184734508, 14.5527184734508); Assert.assertEquals(exptectedBox, tuple2.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n range_CoordinateSystem0.toString();\n range1.equals(\"Residue Based\");\n String string0 = range_CoordinateSystem0.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Range range0 = Range.of((-1259L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n long long0 = new Long((-1259L));\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range range3 = range1.asRange();\n String string0 = null;\n range3.intersection(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. -1258 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ -1259 .. -1258 ]/SB into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n long long0 = 265L;\n range_Builder0.shift(265L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range range1 = Range.of(0L);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n List<Range> list2 = range0.complementFrom(list1);\n List<Range> list3 = range0.complementFrom(list2);\n range0.complementFrom(list3);\n Range.of((-1147L), 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 0L, 0L);\n Range range3 = range2.intersection(range0);\n range0.getEnd();\n range3.intersects(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"q)fxUX9s]Tp\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse q)fxUX9s]Tp into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, 0L, 0L);\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.of(0L, (-1813L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Range.CoordinateSystem.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n Range range0 = Range.ofLength(0L);\n range0.getBegin(range_CoordinateSystem0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.spliterator();\n range0.complementFrom(linkedList0);\n range_Builder0.contractBegin(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "RangeOfValuesType createRangeOfValuesType();", "RangeValue createRangeValue();", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "abstract public Range createRange();", "Range createRange();", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n long long0 = 785L;\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 9223372036854775806L, (-128L));\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -129 would make range [9223372036854775805 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n long long0 = new Long(0L);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 259L);\n Range range3 = Range.of(1L);\n Range range4 = Range.of((-32768L), 0L);\n range4.equals(range2);\n range0.complement(range3);\n Range range5 = range_Builder1.build();\n assertFalse(range5.equals((Object)range4));\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Range range0 = Range.of(0L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem1);\n range0.iterator();\n Range.of((-1233L), 0L);\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem1, 0L, (-1233L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Amino;\n defaultNucleotideCodec0.encode(nucleotide0);\n int int0 = 15;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n Range range0 = Range.ofLength(359L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-874L), (-874L));\n range0.isSubRangeOf(range1);\n // Undeclared exception!\n try { \n Range.ofLength((-2918L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.of(range_CoordinateSystem0, (-5250L), 2383L);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n String string0 = range_CoordinateSystem1.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n List<Range> list0 = range0.complementFrom(linkedList0);\n assertEquals(0, list0.size());\n \n Range range1 = Range.of(9223372036854775807L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n boolean boolean1 = range1.endsBefore(range0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Range range0 = Range.of(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"vH) h-=%9V8]<4%y\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.vH) h-=%9V8]<4%y\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.of(4294967244L);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\", range_CoordinateSystem1);\n range2.getEnd();\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\", range_CoordinateSystem2);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range3);\n List<Range> list1 = range2.complementFrom(list0);\n Range range4 = Range.of(1207L);\n assertFalse(range4.isEmpty());\n \n boolean boolean0 = range2.isSubRangeOf(range3);\n assertTrue(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range2.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem3.toString();\n range0.equals(list1);\n assertSame(range2, range1);\n assertEquals(0, list1.size());\n \n range_CoordinateSystem1.toString();\n long long0 = range0.getEnd();\n assertEquals(255L, long0);\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "void addPowertypeRange(Generalization powertypeRange);", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n boolean boolean0 = range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem1);\n assertEquals(\"[ 1 .. 9223372036854775806 ]/RB\", string0);\n \n Range range1 = Range.parseRange(\"[ 1 .. 9223372036854775806 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertTrue(boolean1 == boolean0);\n assertFalse(range1.equals((Object)range0));\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals(0L, long0);\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n long long0 = (-1L);\n Range range0 = Range.of((-1L));\n range0.getBegin();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.build();\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n Range range0 = Range.of(4294967244L, 4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\", range_CoordinateSystem1);\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n long long0 = range0.getEnd();\n assertEquals((-1L), long0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 0 ]/RB\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.equals(\"[ 0 .. -1 ]/0B\");\n assertFalse(boolean0);\n \n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 0 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertFalse(boolean1);\n \n range0.complement(range1);\n long long1 = range1.getBegin();\n assertFalse(range1.equals((Object)range0));\n assertTrue(range1.isEmpty());\n assertEquals(1L, long1);\n }", "protected void validateTxRangeList(cwterm.service.rigctl.xsd.FreqRange[] param) {\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "Builder addTypicalAgeRange(Text value);", "private String range(double and_load_factor) {\n\t\tStringBuilder s = new StringBuilder();\n\n\t\t// begin query construction (range query is always an OR)\n\t\ts.append(\"[r,|,\");\n\n\t\t// choose number of attributes to involve in the query (use zipf(num_attribute))\n\t\tint attr_id = this.zipf_rng_att.next();\n\n\t\t//a range query from [bin_0, ..., bin_high]\n\t\tint first_bin = -1;\n\t\tint second_bin = -1;\n\t\twhile (first_bin == second_bin) {\n\t\t\tfirst_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];\n\t\t\tsecond_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];;\n\t\t}\n\t\tfirst_bin += (attr_id) * this.cardinality;\n\t\tsecond_bin += (attr_id) * this.cardinality;\n\n\t\tif (first_bin > second_bin) {\n\t\t\ts.append(second_bin + \",\" + first_bin + \"]\");\n\t\t}\n\t\telse {\n\t\t\ts.append(first_bin + \",\" + second_bin + \"]\");\n\t\t}\n\n\n\n\t\t//update stats\n\t\tthis.num_bins += (second_bin - first_bin + 1);\n\t\tthis.num_or_ops += (second_bin - first_bin);\n\n\t\t//update stats\n\t\tthis.num_range_queries++;\n\t\tthis.num_attributes++;\n\t\treturn s.toString();\n\t}", "void calculateRange() {\n //TODO: See Rules\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range_Builder0.expandBegin((-4622L));\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range0.equals(range0);\n range0.getBegin();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"[ 0 .. -1 ]/0B\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.[ 0 .. -1 ]/0B\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n // Undeclared exception!\n try { \n range1.complement(range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -24 would make range [9223372036854775807 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.startsBefore(range0);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n public void testRowRange() {\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1b).endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1b).endRow(rw2b).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).build());\n \n // Test with String input\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1s).endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1s).endRow(rw2s).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).build());\n }", "public void test4Draft(){\n assertEquals( 4, $computeRange.$list().size());\n //System.out.println( $computeRange.list$Normalized() );\n assertEquals( 4, $computeRange.$listNormalized().size());\n //System.out.println($computeRange.fill(\"multiply10to20\",10,20,\"*\"));\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32729 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem.values();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ -1259 .. 256 ]/SB\", string0);\n \n Range range1 = Range.of((-1259L));\n range1.getEnd();\n long long0 = range1.getEnd();\n assertEquals((-1259L), long0);\n \n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n assertFalse(list0.contains(range0));\n assertEquals(0, list1.size());\n assertFalse(list0.isEmpty());\n \n Range range4 = Range.ofLength(0L);\n Range range5 = range4.intersection(range0);\n long long1 = range5.getEnd();\n assertEquals((-1L), long1);\n \n range0.intersects(range4);\n range3.equals(\"[ -1259 .. 256 ]/SB\");\n Range.of(333L);\n List<Range> list2 = range2.complement(range3);\n assertTrue(list2.contains(range0));\n }", "private Range() {}", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = (-1L);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, (-665L), (-1L));\n range_Builder0.contractEnd((-665L));\n range_Builder0.expandEnd((-1L));\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(9223372036854775807L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967244 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "Builder addTypicalAgeRange(String value);", "@DataProvider(name = \"toyIntervalVariants\")\n public Object[][] getToyIntervalVariantTestData() {\n return new Object[][] {\n { new SimpleInterval(\"chr1\", 350, 550), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 320, 360), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 550, 750), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 450, 650), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 850), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 450), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 350), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 350, 650), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 250), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 850), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 150, 750), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 220, 280), GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC },\n { new SimpleInterval(\"chr1\", 750, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 150), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 250), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 550), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 950, 1500), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.UTR, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 2000), GATKSVVCFConstants.COPY_GAIN, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.INV_SPAN },\n { new SimpleInterval(\"chr1\", 750, 790), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 350, 1200), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF},\n { new SimpleInterval(\"chr1\", 450, 1300), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF}\n };\n }", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "public void createPriceRange() {\n final CharSequence[] priceRange = {\"$\", \"$$\", \"$$$\"};\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Price Range\");\n builder.setItems(priceRange, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n System.out.println(priceRange[which]);\n String type = (String) priceRange[which];\n if (type.equals(\"$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n } else if (type.equals(\"$$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n } else if (type.equals(\"$$$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n }\n dialog.dismiss();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.create();\n\n builder.show();\n\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.toString();\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"4oSq*$e[YDbph?D\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse 4oSq*$e[YDbph?D into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-128L), 273L);\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem1, (-1354L), 273L);\n range0.equals(range1);\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range1.equals(range_CoordinateSystem1);\n Range.CoordinateSystem.values();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"@M8!uS|r?\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.@M8!uS|r?\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void testGetRandomRange() {\n // XXX what should be tested?\n // bad values to the range?\n // min == max?\n Assert.assertTrue(true);\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n Range range0 = Range.of((-1259L), (-1259L));\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n Long long0 = new Long((-1259L));\n range0.equals(long0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"unable to delete \");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.unable to delete \n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n long long0 = range0.getLength();\n assertEquals(9223372032559808565L, long0);\n \n range0.equals(\"]?&0A@\");\n Range range1 = Range.of(9223372032559808565L);\n List<Range> list0 = range0.complement(range1);\n assertTrue(list0.contains(range0));\n \n boolean boolean0 = range0.equals(\"]?&0A@\");\n assertFalse(boolean0);\n \n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 9223372032559808565 ]/RB\", string0);\n \n Range.CoordinateSystem.values();\n range1.complement(range0);\n List<Range> list1 = range1.complement(range0);\n assertTrue(list1.contains(range1));\n assertFalse(list1.equals((Object)list0));\n assertEquals(1, list1.size());\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n Range range0 = Range.of((-9223372036854775808L));\n range0.equals(range0);\n Range.Comparators.values();\n range0.getBegin();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "@Test\n\tpublic void testGetRankLabelRange(){\n\t\tString[] rankToDisplay = null;\n\t\tfor(TaxonRankEnum currEnum: TaxonRankEnum.values()){\n\t\t\trankToDisplay = PropertyMapHelper.getRankLabelRange(currEnum);\n\t\t\tif(rankToDisplay != null){\n\t\t\t\tvalidateTaxonRankEnumLabels(rankToDisplay);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tassertEquals(TaxonRankEnum.VARIETY, currEnum);\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 9223372036854775806 ]/RB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray1 = Range.CoordinateSystem.values();\n assertNotSame(range_CoordinateSystemArray1, range_CoordinateSystemArray0);\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n Range range0 = Range.ofLength(9223372036854775807L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Comparators.valueOf(\"LONGEST_TO_SHORTEST\");\n }", "@Test\n \tpublic void whereClauseForNodeRangedDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10, 20));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\t\"_rank23.level BETWEEN SYMMETRIC _rank42.level - 10 AND _rank42.level - 20\"\n \n \t\t);\n \t}", "@Test\n\tpublic void testTaxForSlabB() throws SalaryOutOfRangeException {\n\t\tassertEquals(26159.6, salary.calTax(261596), 0.02);\n\t}", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.parseRange(\"[ 0 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n range1.equals(\"[ 0 .. 9223372036854775806 ]/SB\");\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "protected ArrayList<Attraction> TryParseRange(String i, ArrayList<Attraction> toRunOn) throws Exception {\n ArrayList<Attraction> toReturn = new ArrayList<>();\n try {\n String[] range = i.split(\"-\");\n if (range.length > 2)\n throw new Exception(\"Error parsing\");\n final int low = Integer.parseInt(range[0]);\n final int high = Integer.parseInt(range[1]);\n for (Attraction item : toRunOn) {\n float price = item.getPrice();\n if (price >= low && price <= high)\n toReturn.add(item);\n }\n } catch (Exception ex) {\n return toReturn;\n }\n return toReturn;\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.shift(2663L);\n range_Builder1.contractEnd((-1644L));\n range_Builder1.shift(2663L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n\tpublic void testGetRankRangeForDisplay(){\n\t\tTaxonRankEnum[] rankToDisplay = null;\n\t\tfor(TaxonRankEnum currEnum: TaxonRankEnum.values()){\n\t\t\trankToDisplay = PropertyMapHelper.getRankRangeForDisplay(currEnum);\n\t\t\tif(rankToDisplay != null){\n\t\t\t\tvalidateRankToDisplay(rankToDisplay);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tassertEquals(TaxonRankEnum.VARIETY, currEnum);\n\t\t\t}\n\t\t}\n\t}", "int getRange();", "protected abstract R getRange(E entry);", "public abstract Type createRangeType(ReferenceType bottom);", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n Range range0 = Range.ofLength(10121L);\n range0.toString();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 10121 ]/RB\", string0);\n }", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 127L, 127L);\n Range range1 = Range.of(127L);\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n long long0 = range1.getEnd();\n assertEquals(127L, long0);\n \n long long1 = range1.getBegin(range_CoordinateSystem0);\n assertEquals(128L, long1);\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n boolean boolean0 = range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean1 = range0.intersects(range2);\n boolean boolean2 = range1.equals(range2);\n assertFalse(boolean2 == boolean1);\n \n range0.getEnd();\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n \n boolean boolean3 = range3.startsBefore(range1);\n assertTrue(boolean3 == boolean0);\n assertTrue(range3.isEmpty());\n assertFalse(boolean3);\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n long long0 = new Long(0L);\n Range range1 = Range.of(4294967295L);\n long long1 = range1.getBegin();\n assertEquals(4294967295L, long1);\n \n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n Range range2 = Range.ofLength(2147483647L);\n range1.intersection(range0);\n Range range3 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n range3.getEnd();\n boolean boolean0 = range2.intersects(range0);\n boolean boolean1 = range2.equals(\"numbeg of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean1 == boolean0);\n \n Range range4 = Range.of(0L);\n assertFalse(range4.isEmpty());\n \n Range range5 = Range.of(1566L);\n List<Range> list2 = range5.complement(range2);\n assertFalse(list2.equals((Object)list0));\n assertTrue(list2.equals((Object)list1));\n }", "@Test(timeout = 4000)\n public void test094() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-4L), 9223372036854775554L);\n Object object0 = new Object();\n range0.equals((Object) null);\n range0.getEnd();\n range0.toString(range_CoordinateSystem0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "boolean containsPowertypeRange(Generalization powertypeRange);", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, (-2147483648L), (-2147483649L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Override\n public String getSolutionCombination(int nbrDigits, int nbrRange, String sizure) {\n\n // randomRange\n int[][] randomRange = new int[2][nbrDigits];\n\n for (int i = 0; i < 2; i++) {\n\n for (int j = 0; j < nbrDigits; j++) {\n\n if (i == 0) {\n\n // Min value limit\n randomRange[i][j] = 0;\n\n } else {\n\n // Max value limit\n randomRange[i][j] = nbrRange;\n\n }\n\n }\n\n }\n\n // inputmachine\n List<Integer> inputMachine = new ArrayList<Integer>();\n\n for (int i = 0; i < nbrDigits; i++) {\n\n inputMachine.add((int) ((randomRange[1][i] - randomRange[0][i]) * Math.random()) + randomRange[0][i]);\n\n log.info(\"test A : \" + inputMachine.get(i) + \" \");\n\n }\n\n // convertListIntegerToString\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < inputMachine.size(); i++) {\n int num = inputMachine.get(i);\n sb.append(num);\n }\n\n return sb.toString();\n\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertFalse(range1.isEmpty());\n assertTrue(list0.contains(range1));\n }", "Range() {}", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n Range range0 = Range.of(2448L);\n Range range1 = Range.of(2829L, 3687L);\n range1.equals(range0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }" ]
[ "0.7455994", "0.73814833", "0.68870604", "0.6665033", "0.63692766", "0.5905835", "0.58806205", "0.57926965", "0.57813114", "0.5737117", "0.57366365", "0.57095844", "0.56956303", "0.5692609", "0.5658925", "0.5658484", "0.5642776", "0.56169826", "0.5615756", "0.5612439", "0.5602945", "0.5599952", "0.5590897", "0.5580517", "0.5562101", "0.55561197", "0.55512863", "0.5549019", "0.5538423", "0.55177397", "0.55111223", "0.5503514", "0.5485083", "0.5443069", "0.5437026", "0.5432772", "0.5424209", "0.5422802", "0.5406819", "0.53889775", "0.53745836", "0.5368597", "0.53625", "0.5355984", "0.5347816", "0.5329543", "0.53231996", "0.53112596", "0.5307685", "0.52907115", "0.5287203", "0.5285935", "0.5278154", "0.5246486", "0.5243513", "0.5232451", "0.5221079", "0.5216445", "0.5211281", "0.52088356", "0.52086186", "0.520109", "0.5198761", "0.5183027", "0.51599026", "0.5153486", "0.5147022", "0.5139304", "0.513451", "0.5131408", "0.5131145", "0.5123388", "0.51177734", "0.51176304", "0.5116774", "0.5110593", "0.51047176", "0.5097424", "0.5087996", "0.5068033", "0.5056082", "0.50560445", "0.5051502", "0.5041633", "0.5035446", "0.50253034", "0.50237244", "0.50227755", "0.5022151", "0.5014649", "0.5007168", "0.5005261", "0.5005183", "0.49992555", "0.49971402", "0.4987163", "0.49817276", "0.49802282", "0.4978626", "0.4977353" ]
0.75509214
0
Test the rome taxi range tuple builder
@Test public void testRomeTaxiRangeTupleBuilder2() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ROME_TAXI_RANGE); final Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, "1"); final Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, "1"); Assert.assertNull(tuple1); Assert.assertNotNull(tuple2); Assert.assertEquals(Integer.toString(1), tuple2.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d, 41.91924450823211, 41.92924450823211, 12.5027184734508, 14.5527184734508); Assert.assertEquals(exptectedBox, tuple2.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n range_CoordinateSystem0.toString();\n range1.equals(\"Residue Based\");\n String string0 = range_CoordinateSystem0.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Range range0 = Range.of((-1259L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n long long0 = new Long((-1259L));\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range range3 = range1.asRange();\n String string0 = null;\n range3.intersection(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. -1258 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ -1259 .. -1258 ]/SB into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n long long0 = 265L;\n range_Builder0.shift(265L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range range1 = Range.of(0L);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n List<Range> list2 = range0.complementFrom(list1);\n List<Range> list3 = range0.complementFrom(list2);\n range0.complementFrom(list3);\n Range.of((-1147L), 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 0L, 0L);\n Range range3 = range2.intersection(range0);\n range0.getEnd();\n range3.intersects(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"q)fxUX9s]Tp\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse q)fxUX9s]Tp into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, 0L, 0L);\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.of(0L, (-1813L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Range.CoordinateSystem.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n Range range0 = Range.ofLength(0L);\n range0.getBegin(range_CoordinateSystem0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.spliterator();\n range0.complementFrom(linkedList0);\n range_Builder0.contractBegin(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "RangeOfValuesType createRangeOfValuesType();", "RangeValue createRangeValue();", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "abstract public Range createRange();", "Range createRange();", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n long long0 = 785L;\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 9223372036854775806L, (-128L));\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -129 would make range [9223372036854775805 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n long long0 = new Long(0L);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 259L);\n Range range3 = Range.of(1L);\n Range range4 = Range.of((-32768L), 0L);\n range4.equals(range2);\n range0.complement(range3);\n Range range5 = range_Builder1.build();\n assertFalse(range5.equals((Object)range4));\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Range range0 = Range.of(0L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem1);\n range0.iterator();\n Range.of((-1233L), 0L);\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem1, 0L, (-1233L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Amino;\n defaultNucleotideCodec0.encode(nucleotide0);\n int int0 = 15;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n Range range0 = Range.ofLength(359L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-874L), (-874L));\n range0.isSubRangeOf(range1);\n // Undeclared exception!\n try { \n Range.ofLength((-2918L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.of(range_CoordinateSystem0, (-5250L), 2383L);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n String string0 = range_CoordinateSystem1.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n List<Range> list0 = range0.complementFrom(linkedList0);\n assertEquals(0, list0.size());\n \n Range range1 = Range.of(9223372036854775807L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n boolean boolean1 = range1.endsBefore(range0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Range range0 = Range.of(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"vH) h-=%9V8]<4%y\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.vH) h-=%9V8]<4%y\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.of(4294967244L);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\", range_CoordinateSystem1);\n range2.getEnd();\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\", range_CoordinateSystem2);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range3);\n List<Range> list1 = range2.complementFrom(list0);\n Range range4 = Range.of(1207L);\n assertFalse(range4.isEmpty());\n \n boolean boolean0 = range2.isSubRangeOf(range3);\n assertTrue(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range2.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem3.toString();\n range0.equals(list1);\n assertSame(range2, range1);\n assertEquals(0, list1.size());\n \n range_CoordinateSystem1.toString();\n long long0 = range0.getEnd();\n assertEquals(255L, long0);\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "void addPowertypeRange(Generalization powertypeRange);", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n boolean boolean0 = range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem1);\n assertEquals(\"[ 1 .. 9223372036854775806 ]/RB\", string0);\n \n Range range1 = Range.parseRange(\"[ 1 .. 9223372036854775806 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertTrue(boolean1 == boolean0);\n assertFalse(range1.equals((Object)range0));\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals(0L, long0);\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n long long0 = (-1L);\n Range range0 = Range.of((-1L));\n range0.getBegin();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.build();\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n Range range0 = Range.of(4294967244L, 4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\", range_CoordinateSystem1);\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n long long0 = range0.getEnd();\n assertEquals((-1L), long0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 0 ]/RB\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.equals(\"[ 0 .. -1 ]/0B\");\n assertFalse(boolean0);\n \n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 0 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertFalse(boolean1);\n \n range0.complement(range1);\n long long1 = range1.getBegin();\n assertFalse(range1.equals((Object)range0));\n assertTrue(range1.isEmpty());\n assertEquals(1L, long1);\n }", "protected void validateTxRangeList(cwterm.service.rigctl.xsd.FreqRange[] param) {\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "Builder addTypicalAgeRange(Text value);", "private String range(double and_load_factor) {\n\t\tStringBuilder s = new StringBuilder();\n\n\t\t// begin query construction (range query is always an OR)\n\t\ts.append(\"[r,|,\");\n\n\t\t// choose number of attributes to involve in the query (use zipf(num_attribute))\n\t\tint attr_id = this.zipf_rng_att.next();\n\n\t\t//a range query from [bin_0, ..., bin_high]\n\t\tint first_bin = -1;\n\t\tint second_bin = -1;\n\t\twhile (first_bin == second_bin) {\n\t\t\tfirst_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];\n\t\t\tsecond_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];;\n\t\t}\n\t\tfirst_bin += (attr_id) * this.cardinality;\n\t\tsecond_bin += (attr_id) * this.cardinality;\n\n\t\tif (first_bin > second_bin) {\n\t\t\ts.append(second_bin + \",\" + first_bin + \"]\");\n\t\t}\n\t\telse {\n\t\t\ts.append(first_bin + \",\" + second_bin + \"]\");\n\t\t}\n\n\n\n\t\t//update stats\n\t\tthis.num_bins += (second_bin - first_bin + 1);\n\t\tthis.num_or_ops += (second_bin - first_bin);\n\n\t\t//update stats\n\t\tthis.num_range_queries++;\n\t\tthis.num_attributes++;\n\t\treturn s.toString();\n\t}", "void calculateRange() {\n //TODO: See Rules\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range_Builder0.expandBegin((-4622L));\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range0.equals(range0);\n range0.getBegin();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"[ 0 .. -1 ]/0B\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.[ 0 .. -1 ]/0B\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n // Undeclared exception!\n try { \n range1.complement(range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -24 would make range [9223372036854775807 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.startsBefore(range0);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n public void testRowRange() {\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1b).endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1b).endRow(rw2b).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).build());\n \n // Test with String input\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1s).endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1s).endRow(rw2s).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).build());\n }", "public void test4Draft(){\n assertEquals( 4, $computeRange.$list().size());\n //System.out.println( $computeRange.list$Normalized() );\n assertEquals( 4, $computeRange.$listNormalized().size());\n //System.out.println($computeRange.fill(\"multiply10to20\",10,20,\"*\"));\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32729 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem.values();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ -1259 .. 256 ]/SB\", string0);\n \n Range range1 = Range.of((-1259L));\n range1.getEnd();\n long long0 = range1.getEnd();\n assertEquals((-1259L), long0);\n \n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n assertFalse(list0.contains(range0));\n assertEquals(0, list1.size());\n assertFalse(list0.isEmpty());\n \n Range range4 = Range.ofLength(0L);\n Range range5 = range4.intersection(range0);\n long long1 = range5.getEnd();\n assertEquals((-1L), long1);\n \n range0.intersects(range4);\n range3.equals(\"[ -1259 .. 256 ]/SB\");\n Range.of(333L);\n List<Range> list2 = range2.complement(range3);\n assertTrue(list2.contains(range0));\n }", "private Range() {}", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = (-1L);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, (-665L), (-1L));\n range_Builder0.contractEnd((-665L));\n range_Builder0.expandEnd((-1L));\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(9223372036854775807L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967244 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "Builder addTypicalAgeRange(String value);", "@DataProvider(name = \"toyIntervalVariants\")\n public Object[][] getToyIntervalVariantTestData() {\n return new Object[][] {\n { new SimpleInterval(\"chr1\", 350, 550), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 320, 360), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 550, 750), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 450, 650), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 850), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 450), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 350), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 350, 650), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 250), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 850), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 150, 750), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 220, 280), GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC },\n { new SimpleInterval(\"chr1\", 750, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 150), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 250), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 550), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 950, 1500), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.UTR, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 2000), GATKSVVCFConstants.COPY_GAIN, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.INV_SPAN },\n { new SimpleInterval(\"chr1\", 750, 790), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 350, 1200), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF},\n { new SimpleInterval(\"chr1\", 450, 1300), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF}\n };\n }", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "public void createPriceRange() {\n final CharSequence[] priceRange = {\"$\", \"$$\", \"$$$\"};\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Price Range\");\n builder.setItems(priceRange, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n System.out.println(priceRange[which]);\n String type = (String) priceRange[which];\n if (type.equals(\"$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n } else if (type.equals(\"$$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n } else if (type.equals(\"$$$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n }\n dialog.dismiss();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.create();\n\n builder.show();\n\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.toString();\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"4oSq*$e[YDbph?D\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse 4oSq*$e[YDbph?D into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-128L), 273L);\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem1, (-1354L), 273L);\n range0.equals(range1);\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range1.equals(range_CoordinateSystem1);\n Range.CoordinateSystem.values();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"@M8!uS|r?\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.@M8!uS|r?\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n Range range0 = Range.of((-1259L), (-1259L));\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n Long long0 = new Long((-1259L));\n range0.equals(long0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"unable to delete \");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.unable to delete \n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n public void testGetRandomRange() {\n // XXX what should be tested?\n // bad values to the range?\n // min == max?\n Assert.assertTrue(true);\n }", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n long long0 = range0.getLength();\n assertEquals(9223372032559808565L, long0);\n \n range0.equals(\"]?&0A@\");\n Range range1 = Range.of(9223372032559808565L);\n List<Range> list0 = range0.complement(range1);\n assertTrue(list0.contains(range0));\n \n boolean boolean0 = range0.equals(\"]?&0A@\");\n assertFalse(boolean0);\n \n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 9223372032559808565 ]/RB\", string0);\n \n Range.CoordinateSystem.values();\n range1.complement(range0);\n List<Range> list1 = range1.complement(range0);\n assertTrue(list1.contains(range1));\n assertFalse(list1.equals((Object)list0));\n assertEquals(1, list1.size());\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n Range range0 = Range.of((-9223372036854775808L));\n range0.equals(range0);\n Range.Comparators.values();\n range0.getBegin();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "@Test\n\tpublic void testGetRankLabelRange(){\n\t\tString[] rankToDisplay = null;\n\t\tfor(TaxonRankEnum currEnum: TaxonRankEnum.values()){\n\t\t\trankToDisplay = PropertyMapHelper.getRankLabelRange(currEnum);\n\t\t\tif(rankToDisplay != null){\n\t\t\t\tvalidateTaxonRankEnumLabels(rankToDisplay);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tassertEquals(TaxonRankEnum.VARIETY, currEnum);\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 9223372036854775806 ]/RB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray1 = Range.CoordinateSystem.values();\n assertNotSame(range_CoordinateSystemArray1, range_CoordinateSystemArray0);\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n Range range0 = Range.ofLength(9223372036854775807L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Comparators.valueOf(\"LONGEST_TO_SHORTEST\");\n }", "@Test\n \tpublic void whereClauseForNodeRangedDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10, 20));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\t\"_rank23.level BETWEEN SYMMETRIC _rank42.level - 10 AND _rank42.level - 20\"\n \n \t\t);\n \t}", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "@Test\n\tpublic void testTaxForSlabB() throws SalaryOutOfRangeException {\n\t\tassertEquals(26159.6, salary.calTax(261596), 0.02);\n\t}", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.parseRange(\"[ 0 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n range1.equals(\"[ 0 .. 9223372036854775806 ]/SB\");\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "protected ArrayList<Attraction> TryParseRange(String i, ArrayList<Attraction> toRunOn) throws Exception {\n ArrayList<Attraction> toReturn = new ArrayList<>();\n try {\n String[] range = i.split(\"-\");\n if (range.length > 2)\n throw new Exception(\"Error parsing\");\n final int low = Integer.parseInt(range[0]);\n final int high = Integer.parseInt(range[1]);\n for (Attraction item : toRunOn) {\n float price = item.getPrice();\n if (price >= low && price <= high)\n toReturn.add(item);\n }\n } catch (Exception ex) {\n return toReturn;\n }\n return toReturn;\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.shift(2663L);\n range_Builder1.contractEnd((-1644L));\n range_Builder1.shift(2663L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n\tpublic void testGetRankRangeForDisplay(){\n\t\tTaxonRankEnum[] rankToDisplay = null;\n\t\tfor(TaxonRankEnum currEnum: TaxonRankEnum.values()){\n\t\t\trankToDisplay = PropertyMapHelper.getRankRangeForDisplay(currEnum);\n\t\t\tif(rankToDisplay != null){\n\t\t\t\tvalidateRankToDisplay(rankToDisplay);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tassertEquals(TaxonRankEnum.VARIETY, currEnum);\n\t\t\t}\n\t\t}\n\t}", "int getRange();", "protected abstract R getRange(E entry);", "public abstract Type createRangeType(ReferenceType bottom);", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n Range range0 = Range.ofLength(10121L);\n range0.toString();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 10121 ]/RB\", string0);\n }", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 127L, 127L);\n Range range1 = Range.of(127L);\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n long long0 = range1.getEnd();\n assertEquals(127L, long0);\n \n long long1 = range1.getBegin(range_CoordinateSystem0);\n assertEquals(128L, long1);\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n boolean boolean0 = range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean1 = range0.intersects(range2);\n boolean boolean2 = range1.equals(range2);\n assertFalse(boolean2 == boolean1);\n \n range0.getEnd();\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n \n boolean boolean3 = range3.startsBefore(range1);\n assertTrue(boolean3 == boolean0);\n assertTrue(range3.isEmpty());\n assertFalse(boolean3);\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n long long0 = new Long(0L);\n Range range1 = Range.of(4294967295L);\n long long1 = range1.getBegin();\n assertEquals(4294967295L, long1);\n \n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n Range range2 = Range.ofLength(2147483647L);\n range1.intersection(range0);\n Range range3 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n range3.getEnd();\n boolean boolean0 = range2.intersects(range0);\n boolean boolean1 = range2.equals(\"numbeg of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean1 == boolean0);\n \n Range range4 = Range.of(0L);\n assertFalse(range4.isEmpty());\n \n Range range5 = Range.of(1566L);\n List<Range> list2 = range5.complement(range2);\n assertFalse(list2.equals((Object)list0));\n assertTrue(list2.equals((Object)list1));\n }", "@Test(timeout = 4000)\n public void test094() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-4L), 9223372036854775554L);\n Object object0 = new Object();\n range0.equals((Object) null);\n range0.getEnd();\n range0.toString(range_CoordinateSystem0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "boolean containsPowertypeRange(Generalization powertypeRange);", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, (-2147483648L), (-2147483649L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Override\n public String getSolutionCombination(int nbrDigits, int nbrRange, String sizure) {\n\n // randomRange\n int[][] randomRange = new int[2][nbrDigits];\n\n for (int i = 0; i < 2; i++) {\n\n for (int j = 0; j < nbrDigits; j++) {\n\n if (i == 0) {\n\n // Min value limit\n randomRange[i][j] = 0;\n\n } else {\n\n // Max value limit\n randomRange[i][j] = nbrRange;\n\n }\n\n }\n\n }\n\n // inputmachine\n List<Integer> inputMachine = new ArrayList<Integer>();\n\n for (int i = 0; i < nbrDigits; i++) {\n\n inputMachine.add((int) ((randomRange[1][i] - randomRange[0][i]) * Math.random()) + randomRange[0][i]);\n\n log.info(\"test A : \" + inputMachine.get(i) + \" \");\n\n }\n\n // convertListIntegerToString\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < inputMachine.size(); i++) {\n int num = inputMachine.get(i);\n sb.append(num);\n }\n\n return sb.toString();\n\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertFalse(range1.isEmpty());\n assertTrue(list0.contains(range1));\n }", "Range() {}", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n Range range0 = Range.of(2448L);\n Range range1 = Range.of(2829L, 3687L);\n range1.equals(range0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }" ]
[ "0.7550462", "0.7455729", "0.68866867", "0.6664961", "0.6369648", "0.59053653", "0.58800185", "0.57921904", "0.5780536", "0.5736095", "0.5735725", "0.57078034", "0.56945866", "0.5691799", "0.56580913", "0.56577736", "0.56422406", "0.5616093", "0.5615235", "0.5610656", "0.56013125", "0.55994284", "0.5589694", "0.55793047", "0.55609316", "0.5555471", "0.55503297", "0.5549005", "0.55379987", "0.55161804", "0.5510657", "0.5502559", "0.5484463", "0.54423606", "0.5436451", "0.5432099", "0.54235464", "0.54223216", "0.5406", "0.5388343", "0.5373792", "0.5368219", "0.5362049", "0.5355251", "0.53469443", "0.5328876", "0.53220695", "0.5310519", "0.53062266", "0.52903295", "0.52865374", "0.528502", "0.52759314", "0.5246037", "0.5243068", "0.52313524", "0.5220843", "0.5215861", "0.5210528", "0.5208087", "0.52079076", "0.52003044", "0.51974994", "0.5182299", "0.5159448", "0.5152809", "0.5146352", "0.5139777", "0.5134303", "0.5130842", "0.5130715", "0.5124267", "0.5117285", "0.51166284", "0.5115772", "0.51101243", "0.51044065", "0.5096755", "0.50874776", "0.50674313", "0.5055427", "0.50548685", "0.50510126", "0.5041255", "0.503471", "0.50248885", "0.5021936", "0.5021189", "0.5020945", "0.50145906", "0.5006576", "0.5004572", "0.50043386", "0.49984843", "0.4996677", "0.4986351", "0.4982239", "0.49793062", "0.49775684", "0.49766266" ]
0.7380854
2
Test the rome taxi range tuple builder with padding
@Test public void testRomeTaxiRangeTupleBuilder3() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.ROME_TAXI_RANGE); tupleBuilder.setPadding(1.0); final Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, "1"); final Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, "1"); Assert.assertNull(tuple1); Assert.assertNotNull(tuple2); Assert.assertEquals(Integer.toString(1), tuple2.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d, 40.91924450823211, 42.92924450823211, 11.5027184734508, 15.5527184734508); Assert.assertEquals(exptectedBox, tuple2.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n long long0 = new Long(0L);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 259L);\n Range range3 = Range.of(1L);\n Range range4 = Range.of((-32768L), 0L);\n range4.equals(range2);\n range0.complement(range3);\n Range range5 = range_Builder1.build();\n assertFalse(range5.equals((Object)range4));\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, 0L, 0L);\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.of(0L, (-1813L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n range_CoordinateSystem0.toString();\n range1.equals(\"Residue Based\");\n String string0 = range_CoordinateSystem0.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n long long0 = 265L;\n range_Builder0.shift(265L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range range1 = Range.of(0L);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n List<Range> list2 = range0.complementFrom(list1);\n List<Range> list3 = range0.complementFrom(list2);\n range0.complementFrom(list3);\n Range.of((-1147L), 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 0L, 0L);\n Range range3 = range2.intersection(range0);\n range0.getEnd();\n range3.intersects(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"q)fxUX9s]Tp\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse q)fxUX9s]Tp into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n public void testRowRange() {\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1b).endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1b).endRow(rw2b).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).build());\n \n // Test with String input\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1s).endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1s).endRow(rw2s).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).build());\n }", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n long long0 = 785L;\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 9223372036854775806L, (-128L));\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -129 would make range [9223372036854775805 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Amino;\n defaultNucleotideCodec0.encode(nucleotide0);\n int int0 = 15;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n Range range0 = Range.ofLength(359L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-874L), (-874L));\n range0.isSubRangeOf(range1);\n // Undeclared exception!\n try { \n Range.ofLength((-2918L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n boolean boolean0 = range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem1);\n assertEquals(\"[ 1 .. 9223372036854775806 ]/RB\", string0);\n \n Range range1 = Range.parseRange(\"[ 1 .. 9223372036854775806 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertTrue(boolean1 == boolean0);\n assertFalse(range1.equals((Object)range0));\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals(0L, long0);\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Range range1 = Range.of(0L, 0L);\n long long0 = range0.getLength();\n assertEquals(0L, long0);\n \n range1.complement(range0);\n assertFalse(range1.isEmpty());\n \n Range.Comparators.values();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin(0L);\n range_Builder0.contractBegin(0L);\n assertTrue(range0.isEmpty());\n }", "Range createRange();", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Range range0 = Range.of((-1259L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n long long0 = new Long((-1259L));\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range range3 = range1.asRange();\n String string0 = null;\n range3.intersection(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. -1258 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ -1259 .. -1258 ]/SB into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "RangeOfValuesType createRangeOfValuesType();", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Range range0 = Range.of(0L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem1);\n range0.iterator();\n Range.of((-1233L), 0L);\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem1, 0L, (-1233L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range3);\n List<Range> list1 = range2.complementFrom(list0);\n Range range4 = Range.of(1207L);\n assertFalse(range4.isEmpty());\n \n boolean boolean0 = range2.isSubRangeOf(range3);\n assertTrue(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range2.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem3.toString();\n range0.equals(list1);\n assertSame(range2, range1);\n assertEquals(0, list1.size());\n \n range_CoordinateSystem1.toString();\n long long0 = range0.getEnd();\n assertEquals(255L, long0);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32729 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem.values();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = (-1L);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, (-665L), (-1L));\n range_Builder0.contractEnd((-665L));\n range_Builder0.expandEnd((-1L));\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(9223372036854775807L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ -1259 .. 256 ]/SB\", string0);\n \n Range range1 = Range.of((-1259L));\n range1.getEnd();\n long long0 = range1.getEnd();\n assertEquals((-1259L), long0);\n \n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n assertFalse(list0.contains(range0));\n assertEquals(0, list1.size());\n assertFalse(list0.isEmpty());\n \n Range range4 = Range.ofLength(0L);\n Range range5 = range4.intersection(range0);\n long long1 = range5.getEnd();\n assertEquals((-1L), long1);\n \n range0.intersects(range4);\n range3.equals(\"[ -1259 .. 256 ]/SB\");\n Range.of(333L);\n List<Range> list2 = range2.complement(range3);\n assertTrue(list2.contains(range0));\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.of(4294967244L);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\", range_CoordinateSystem1);\n range2.getEnd();\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\", range_CoordinateSystem2);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Range.CoordinateSystem.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n Range range0 = Range.ofLength(0L);\n range0.getBegin(range_CoordinateSystem0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.spliterator();\n range0.complementFrom(linkedList0);\n range_Builder0.contractBegin(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n // Undeclared exception!\n try { \n range1.complement(range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -24 would make range [9223372036854775807 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n long long0 = range0.getEnd();\n assertEquals((-1L), long0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 0 ]/RB\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.equals(\"[ 0 .. -1 ]/0B\");\n assertFalse(boolean0);\n \n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 0 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertFalse(boolean1);\n \n range0.complement(range1);\n long long1 = range1.getBegin();\n assertFalse(range1.equals((Object)range0));\n assertTrue(range1.isEmpty());\n assertEquals(1L, long1);\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, (-2147483648L), (-2147483649L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n String string0 = range_CoordinateSystem1.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n Range range0 = Range.of(4294967244L, 4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\", range_CoordinateSystem1);\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n long long0 = range0.getLength();\n assertEquals(9223372032559808565L, long0);\n \n range0.equals(\"]?&0A@\");\n Range range1 = Range.of(9223372032559808565L);\n List<Range> list0 = range0.complement(range1);\n assertTrue(list0.contains(range0));\n \n boolean boolean0 = range0.equals(\"]?&0A@\");\n assertFalse(boolean0);\n \n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 9223372032559808565 ]/RB\", string0);\n \n Range.CoordinateSystem.values();\n range1.complement(range0);\n List<Range> list1 = range1.complement(range0);\n assertTrue(list1.contains(range1));\n assertFalse(list1.equals((Object)list0));\n assertEquals(1, list1.size());\n }", "public void test4Draft(){\n assertEquals( 4, $computeRange.$list().size());\n //System.out.println( $computeRange.list$Normalized() );\n assertEquals( 4, $computeRange.$listNormalized().size());\n //System.out.println($computeRange.fill(\"multiply10to20\",10,20,\"*\"));\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n Range range0 = Range.ofLength(10121L);\n range0.toString();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 10121 ]/RB\", string0);\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n List<Range> list0 = range0.complementFrom(linkedList0);\n assertEquals(0, list0.size());\n \n Range range1 = Range.of(9223372036854775807L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n boolean boolean1 = range1.endsBefore(range0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n }", "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "abstract public Range createRange();", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.startsBefore(range0);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n Range range0 = Range.ofLength(0L);\n long long0 = range0.getEnd();\n assertEquals(4294967294L, long0);\n \n Range.ofLength(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n long long1 = range0.getBegin(range_CoordinateSystem0);\n assertEquals(0L, long1);\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.shift(2663L);\n range_Builder1.contractEnd((-1644L));\n range_Builder1.shift(2663L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 127L, 4294967295L);\n Range range1 = Range.ofLength(4294967295L);\n range1.toString();\n range1.equals(range0);\n long long0 = range1.getEnd();\n assertEquals(4294967294L, long0);\n \n Range.Comparators.values();\n range1.equals(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n }", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test018() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n long long0 = 0L;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n range_Builder0.shift(0L);\n range_Builder0.copy();\n // Undeclared exception!\n try { \n Range.parseRange((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n long long0 = new Long(0L);\n Range range1 = Range.of(4294967295L);\n long long1 = range1.getBegin();\n assertEquals(4294967295L, long1);\n \n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n Range range2 = Range.ofLength(2147483647L);\n range1.intersection(range0);\n Range range3 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n range3.getEnd();\n boolean boolean0 = range2.intersects(range0);\n boolean boolean1 = range2.equals(\"numbeg of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean1 == boolean0);\n \n Range range4 = Range.of(0L);\n assertFalse(range4.isEmpty());\n \n Range range5 = Range.of(1566L);\n List<Range> list2 = range5.complement(range2);\n assertFalse(list2.equals((Object)list0));\n assertTrue(list2.equals((Object)list1));\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n long long0 = (-1L);\n Range range0 = Range.of((-1L));\n range0.getBegin();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.build();\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "public abstract Type createRangeType(ReferenceType bottom);", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n range0.equals(range1);\n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertTrue(range0.isEmpty());\n assertEquals(2147483647L, long0);\n }", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n long long0 = (-1903L);\n // Undeclared exception!\n try { \n Range.ofLength((-1903L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n String string0 = \"]?&0A@\";\n range0.getLength();\n // Undeclared exception!\n try { \n Range.ofLength((-2524L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test016() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n // Undeclared exception!\n try { \n range_Builder0.contractBegin(2147483647L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n Range range0 = Range.of((-9223372036854775808L));\n range0.equals(range0);\n Range.Comparators.values();\n range0.getBegin();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n Range range0 = Range.ofLength(9223372036854775535L);\n Range range1 = Range.ofLength(9223372032559808557L);\n range1.getLength();\n Long long0 = new Long(9223372032559808557L);\n range0.equals(\"0RukBJI?a<f|+(VQV\");\n range0.equals(range1);\n Range.CoordinateSystem.values();\n Object object0 = new Object();\n range1.equals(object0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32767L, 9223372036854775554L);\n Object object0 = new Object();\n range0.toString();\n range0.equals(object0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString();\n assertEquals(\"[ 32767 .. 9223372036854775553 ]/0B\", string0);\n \n Range range1 = Range.parseRange(\"[ 32767 .. 9223372036854775553 ]/0B\", range_CoordinateSystem1);\n boolean boolean0 = range1.equals(range0);\n assertTrue(boolean0);\n \n range0.getEnd();\n List<Range> list0 = range1.complement(range0);\n assertEquals(1, list0.size());\n assertFalse(list0.contains(range1));\n }", "private void addRangeIntegers() {\r\n ent_2_i.put(\"< 0\", -1); ent_2_i.put(\"== 0\", 0); ent_2_i.put(\"== 1\", 1); ent_2_i.put(\"< 10\", 10);\r\n ent_2_i.put(\"< 100\", 100); ent_2_i.put(\"< 1K\", 1000); ent_2_i.put(\"< 10K\", 10000); ent_2_i.put(\"< 100K\", 100000);\r\n ent_2_i.put(\"> 100K\", 1000000);\r\n }", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertFalse(range1.isEmpty());\n assertTrue(list0.contains(range1));\n }", "RangeValue createRangeValue();", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n Range range0 = Range.of((-2147483632L), 2133L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-2147483632L), 2133L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range1.toString(range_CoordinateSystem1);\n assertEquals(\"[ -2147483632 .. 2132 ]/0B\", string0);\n \n boolean boolean0 = range1.equals(range0);\n assertFalse(boolean0);\n \n String string1 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ -2147483632 .. 2134 ]/SB\", string1);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-2147483632L), long0);\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2465L, 2465L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 2465L, 2465L);\n range1.getBegin();\n range0.equals(range1);\n long long0 = range0.getEnd();\n assertEquals(2464L, long0);\n }", "@Test(timeout = 4000)\n public void test047() throws Throwable {\n Range range0 = Range.ofLength(0L);\n String string0 = range0.toString();\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.isSubRangeOf(range0);\n assertTrue(boolean0);\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32767L, 9223372036854775554L);\n Object object0 = new Object();\n range0.toString();\n range0.equals(object0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32767 .. 9223372036854775553 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "private String range(double and_load_factor) {\n\t\tStringBuilder s = new StringBuilder();\n\n\t\t// begin query construction (range query is always an OR)\n\t\ts.append(\"[r,|,\");\n\n\t\t// choose number of attributes to involve in the query (use zipf(num_attribute))\n\t\tint attr_id = this.zipf_rng_att.next();\n\n\t\t//a range query from [bin_0, ..., bin_high]\n\t\tint first_bin = -1;\n\t\tint second_bin = -1;\n\t\twhile (first_bin == second_bin) {\n\t\t\tfirst_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];\n\t\t\tsecond_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];;\n\t\t}\n\t\tfirst_bin += (attr_id) * this.cardinality;\n\t\tsecond_bin += (attr_id) * this.cardinality;\n\n\t\tif (first_bin > second_bin) {\n\t\t\ts.append(second_bin + \",\" + first_bin + \"]\");\n\t\t}\n\t\telse {\n\t\t\ts.append(first_bin + \",\" + second_bin + \"]\");\n\t\t}\n\n\n\n\t\t//update stats\n\t\tthis.num_bins += (second_bin - first_bin + 1);\n\t\tthis.num_or_ops += (second_bin - first_bin);\n\n\t\t//update stats\n\t\tthis.num_range_queries++;\n\t\tthis.num_attributes++;\n\t\treturn s.toString();\n\t}", "@ParameterizedTest\n @CsvSource(value = {\"0,7\", \"8,15\", \"16,23\", \"24,31\", \"0,23\", \"13, 29\"})\n void sliceGetsCorrectSignals(int min, int max) {\n //create range obj with inputs\n IRange range = new SimpleRange(min, max);\n\n //create bus of width 64 with random values\n Random r = new Random();\n int busWidth = 32;\n ISignal[] sigs = new ISignal[busWidth];\n for (int i=0; i<busWidth; i++) {\n sigs[i] = new SimpleSignal(r.nextBoolean());\n }\n IBus busToSlice = new Bus(sigs);\n\n //sliceBus the bus\n IBus result = Util.sliceBus(range, busToSlice);\n\n //need to get values from sliceBus to test\n int rangeWidth = range.getMax() - range.getMin();\n assertEquals(collectValuesFromBus(range, busToSlice), collectValuesFromBus(new SimpleRange(0, rangeWidth), result));\n\n //sweep in 8-bit slices across the bus to see if we're getting the correct range from the sliceBus util\n int numBitsInSweep = 8;\n int numSweeps = busWidth/numBitsInSweep;\n for (int i=0; i<numSweeps; i++) {\n int start = i*numBitsInSweep;\n int end = start + numBitsInSweep - 1;\n IBus slice = Util.sliceBus(new SimpleRange(start, end), busToSlice);\n }\n }", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n Range range0 = Range.ofLength(127L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n range0.complementFrom(linkedList0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. 125 ]/0B\", string0);\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n Range range0 = Range.ofLength(360L);\n assertFalse(range0.isEmpty());\n }", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n // Undeclared exception!\n try { \n Range.of(3253L, 1198L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test014() throws Throwable {\n Range range0 = Range.ofLength(581L);\n assertFalse(range0.isEmpty());\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.parseRange(\"[ 0 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n range1.equals(\"[ 0 .. 9223372036854775806 ]/SB\");\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2127L, 2127L);\n List<Range> list0 = range0.split(1L);\n List<Range> list1 = range0.complementFrom(list0);\n assertFalse(list1.isEmpty());\n \n range0.getBegin(range_CoordinateSystem0);\n range0.equals(range_CoordinateSystem0);\n long long0 = range0.getBegin(range_CoordinateSystem0);\n assertTrue(range0.isEmpty());\n assertEquals(2127L, long0);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Range range0 = Range.of(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"vH) h-=%9V8]<4%y\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.vH) h-=%9V8]<4%y\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "private Range() {}", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967244 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n Range range0 = null;\n Range.Builder range_Builder0 = null;\n try {\n range_Builder0 = new Range.Builder((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.expandBegin(3019L);\n Range.Builder range_Builder1 = new Range.Builder(2674L);\n range_Builder1.shift(2674L);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"QLv>[gqB\\\"z\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.QLv>[gqB\\\"z\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n boolean boolean0 = range0.equals(\"number of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean0);\n \n Range range1 = Range.of((-2147483648L));\n List<Range> list0 = range1.complement(range0);\n assertEquals(0, list0.size());\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n boolean boolean0 = range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean1 = range0.intersects(range2);\n boolean boolean2 = range1.equals(range2);\n assertFalse(boolean2 == boolean1);\n \n range0.getEnd();\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n \n boolean boolean3 = range3.startsBefore(range1);\n assertTrue(boolean3 == boolean0);\n assertTrue(range3.isEmpty());\n assertFalse(boolean3);\n }", "@Test(timeout = 4000)\n public void test035() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range.of(range_CoordinateSystem0, (-2147483648L), (-2147483648L));\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 3993L, (-2147483648L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n Range range0 = Range.of(4162L);\n Range range1 = Range.of(999L);\n range1.equals(range0);\n assertFalse(range0.equals((Object)range1));\n \n long long0 = range1.getEnd();\n assertEquals(999L, long0);\n }" ]
[ "0.6997034", "0.6898166", "0.6266392", "0.61858296", "0.6067971", "0.60479695", "0.5959636", "0.5952216", "0.5780876", "0.57549495", "0.5751389", "0.5741642", "0.571054", "0.57050604", "0.56294525", "0.55886483", "0.55741584", "0.55252457", "0.54873365", "0.5482618", "0.54750663", "0.5459207", "0.54515624", "0.5451086", "0.5402825", "0.5381486", "0.5359453", "0.53552675", "0.5283384", "0.52723676", "0.52616715", "0.5246155", "0.5235822", "0.52247155", "0.521887", "0.52160996", "0.5212625", "0.52084476", "0.520318", "0.5197449", "0.51829857", "0.51828164", "0.5182549", "0.51815385", "0.51728934", "0.5169511", "0.5167379", "0.5156516", "0.5153383", "0.5134916", "0.51333797", "0.5127363", "0.5124914", "0.5103809", "0.5100248", "0.5096404", "0.50635564", "0.5037004", "0.50271523", "0.50132084", "0.49980316", "0.49949372", "0.4989661", "0.49809465", "0.49767312", "0.4974306", "0.49702594", "0.49657664", "0.4963907", "0.4957084", "0.49503082", "0.4949674", "0.49481875", "0.4940063", "0.4936438", "0.49356082", "0.4933843", "0.49317056", "0.49303263", "0.49257633", "0.4913289", "0.48935443", "0.4878455", "0.48725998", "0.48723578", "0.48708904", "0.48685625", "0.4866833", "0.48651645", "0.486451", "0.4859101", "0.48480764", "0.4838911", "0.48297215", "0.4829247", "0.48245227", "0.48164502", "0.48109058", "0.48070806", "0.4800354" ]
0.74011195
0
Test the yellow taxi range tuple builder
@Test public void testYellowTaxiRangeTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.YELLOWTAXI_RANGE); final Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss"); final Date dateLow = dateParser.parse("2016-01-01 00:00:00"); final Date dateHigh = dateParser.parse("2016-01-01 00:00:00"); final Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625, 40.732406616210937, 40.734695434570313, (double) dateLow.getTime(), (double) dateHigh.getTime()); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Range range0 = Range.of((-1259L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n long long0 = new Long((-1259L));\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range range3 = range1.asRange();\n String string0 = null;\n range3.intersection(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. -1258 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ -1259 .. -1258 ]/SB into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n long long0 = 265L;\n range_Builder0.shift(265L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range range1 = Range.of(0L);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n List<Range> list2 = range0.complementFrom(list1);\n List<Range> list3 = range0.complementFrom(list2);\n range0.complementFrom(list3);\n Range.of((-1147L), 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 0L, 0L);\n Range range3 = range2.intersection(range0);\n range0.getEnd();\n range3.intersects(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"q)fxUX9s]Tp\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse q)fxUX9s]Tp into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "RangeValue createRangeValue();", "Range createRange();", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n long long0 = new Long(0L);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 259L);\n Range range3 = Range.of(1L);\n Range range4 = Range.of((-32768L), 0L);\n range4.equals(range2);\n range0.complement(range3);\n Range range5 = range_Builder1.build();\n assertFalse(range5.equals((Object)range4));\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Range range0 = Range.of(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"vH) h-=%9V8]<4%y\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.vH) h-=%9V8]<4%y\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n range_CoordinateSystem0.toString();\n range1.equals(\"Residue Based\");\n String string0 = range_CoordinateSystem0.toString();\n assertEquals(\"Residue Based\", string0);\n }", "abstract public Range createRange();", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, 0L, 0L);\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.of(0L, (-1813L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.of(range_CoordinateSystem0, (-5250L), 2383L);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "RangeOfValuesType createRangeOfValuesType();", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Range.CoordinateSystem.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n Range range0 = Range.ofLength(0L);\n range0.getBegin(range_CoordinateSystem0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.spliterator();\n range0.complementFrom(linkedList0);\n range_Builder0.contractBegin(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range_Builder0.expandBegin((-4622L));\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Range range0 = Range.of(0L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem1);\n range0.iterator();\n Range.of((-1233L), 0L);\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem1, 0L, (-1233L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n long long0 = (-1L);\n Range range0 = Range.of((-1L));\n range0.getBegin();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.build();\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range3);\n List<Range> list1 = range2.complementFrom(list0);\n Range range4 = Range.of(1207L);\n assertFalse(range4.isEmpty());\n \n boolean boolean0 = range2.isSubRangeOf(range3);\n assertTrue(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range2.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem3.toString();\n range0.equals(list1);\n assertSame(range2, range1);\n assertEquals(0, list1.size());\n \n range_CoordinateSystem1.toString();\n long long0 = range0.getEnd();\n assertEquals(255L, long0);\n }", "private Range() {}", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ -1259 .. 256 ]/SB\", string0);\n \n Range range1 = Range.of((-1259L));\n range1.getEnd();\n long long0 = range1.getEnd();\n assertEquals((-1259L), long0);\n \n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n assertFalse(list0.contains(range0));\n assertEquals(0, list1.size());\n assertFalse(list0.isEmpty());\n \n Range range4 = Range.ofLength(0L);\n Range range5 = range4.intersection(range0);\n long long1 = range5.getEnd();\n assertEquals((-1L), long1);\n \n range0.intersects(range4);\n range3.equals(\"[ -1259 .. 256 ]/SB\");\n Range.of(333L);\n List<Range> list2 = range2.complement(range3);\n assertTrue(list2.contains(range0));\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n Range range0 = Range.of(4294967244L, 4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\", range_CoordinateSystem1);\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n long long0 = 785L;\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 9223372036854775806L, (-128L));\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -129 would make range [9223372036854775805 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.startsBefore(range0);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n Range range0 = Range.of((-1259L), (-1259L));\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n Long long0 = new Long((-1259L));\n range0.equals(long0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"unable to delete \");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.unable to delete \n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range0.equals(range0);\n range0.getBegin();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"[ 0 .. -1 ]/0B\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.[ 0 .. -1 ]/0B\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n boolean boolean0 = range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem1);\n assertEquals(\"[ 1 .. 9223372036854775806 ]/RB\", string0);\n \n Range range1 = Range.parseRange(\"[ 1 .. 9223372036854775806 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertTrue(boolean1 == boolean0);\n assertFalse(range1.equals((Object)range0));\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals(0L, long0);\n }", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-128L), 273L);\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem1, (-1354L), 273L);\n range0.equals(range1);\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range1.equals(range_CoordinateSystem1);\n Range.CoordinateSystem.values();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"@M8!uS|r?\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.@M8!uS|r?\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967244 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "Builder addTypicalAgeRange(Text value);", "public void test4Draft(){\n assertEquals( 4, $computeRange.$list().size());\n //System.out.println( $computeRange.list$Normalized() );\n assertEquals( 4, $computeRange.$listNormalized().size());\n //System.out.println($computeRange.fill(\"multiply10to20\",10,20,\"*\"));\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.toString();\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"4oSq*$e[YDbph?D\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse 4oSq*$e[YDbph?D into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n String string0 = range_CoordinateSystem1.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Amino;\n defaultNucleotideCodec0.encode(nucleotide0);\n int int0 = 15;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n Range range0 = Range.ofLength(359L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-874L), (-874L));\n range0.isSubRangeOf(range1);\n // Undeclared exception!\n try { \n Range.ofLength((-2918L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32729 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem.values();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "private String useRangeFormat(Unit units, int lowerBound, int upperBound) {\n return lowerBound + \" to \" + upperBound + getUnits(units, upperBound);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.of(4294967244L);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\", range_CoordinateSystem1);\n range2.getEnd();\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\", range_CoordinateSystem2);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "Range() {}", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n List<Range> list0 = range0.complementFrom(linkedList0);\n assertEquals(0, list0.size());\n \n Range range1 = Range.of(9223372036854775807L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n boolean boolean1 = range1.endsBefore(range0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n Range range0 = Range.of((-9223372036854775808L));\n range0.equals(range0);\n Range.Comparators.values();\n range0.getBegin();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "@Test\n public void testRowRange() {\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1b).endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1b).endRow(rw2b).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).build());\n \n // Test with String input\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1s).endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1s).endRow(rw2s).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).build());\n }", "public void setRange(Range range) { setRange(range, true, true); }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n long long0 = range0.getEnd();\n assertEquals((-1L), long0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 0 ]/RB\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.equals(\"[ 0 .. -1 ]/0B\");\n assertFalse(boolean0);\n \n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 0 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertFalse(boolean1);\n \n range0.complement(range1);\n long long1 = range1.getBegin();\n assertFalse(range1.equals((Object)range0));\n assertTrue(range1.isEmpty());\n assertEquals(1L, long1);\n }", "@Test(timeout = 4000)\n public void test089() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 3253L, 3253L);\n range0.getLength();\n range0.toString();\n Object object0 = new Object();\n Range range1 = Range.ofLength(3253L);\n range1.intersects(range0);\n range0.equals(range1);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"[ 3253 .. 3252 ]/0B\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.[ 3253 .. 3252 ]/0B\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test067() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32767L, 9223372036854775554L);\n range0.equals(range_CoordinateSystem0);\n Object object0 = new Object();\n range0.toString();\n range0.equals(object0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.getEnd();\n Range.Comparators.values();\n Range range1 = Range.of(range_CoordinateSystem0, 9223372036854775553L, 9223372036854775553L);\n range0.complement(range1);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"EeIU+%v}^s\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.EeIU+%v}^s\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n // Undeclared exception!\n try { \n range1.complement(range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -24 would make range [9223372036854775807 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertFalse(range1.isEmpty());\n assertTrue(list0.contains(range1));\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n boolean boolean0 = range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean1 = range0.intersects(range2);\n boolean boolean2 = range1.equals(range2);\n assertFalse(boolean2 == boolean1);\n \n range0.getEnd();\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n \n boolean boolean3 = range3.startsBefore(range1);\n assertTrue(boolean3 == boolean0);\n assertTrue(range3.isEmpty());\n assertFalse(boolean3);\n }", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.intersects(range1);\n assertFalse(boolean0);\n assertFalse(range1.isEmpty());\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n }", "Builder addTypicalAgeRange(String value);", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n Range range0 = Range.ofLength(10121L);\n range0.toString();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 10121 ]/RB\", string0);\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.expandBegin(3019L);\n Range.Builder range_Builder1 = new Range.Builder(2674L);\n range_Builder1.shift(2674L);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"QLv>[gqB\\\"z\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.QLv>[gqB\\\"z\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n Range range0 = Range.of(2448L);\n Range range1 = Range.of(2829L, 3687L);\n range1.equals(range0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "@Test\n public void test_range_Integer_Collection4() {\n populate_i3();\n Collection<Integer> actual = Selector.range(i3, 4, 8, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(8);\n expected.add(7);\n expected.add(6);\n expected.add(5);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n long long0 = range0.getLength();\n assertEquals(9223372032559808565L, long0);\n \n range0.equals(\"]?&0A@\");\n Range range1 = Range.of(9223372032559808565L);\n List<Range> list0 = range0.complement(range1);\n assertTrue(list0.contains(range0));\n \n boolean boolean0 = range0.equals(\"]?&0A@\");\n assertFalse(boolean0);\n \n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 9223372032559808565 ]/RB\", string0);\n \n Range.CoordinateSystem.values();\n range1.complement(range0);\n List<Range> list1 = range1.complement(range0);\n assertTrue(list1.contains(range1));\n assertFalse(list1.equals((Object)list0));\n assertEquals(1, list1.size());\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n long long0 = new Long(0L);\n Range range1 = Range.of(4294967295L);\n long long1 = range1.getBegin();\n assertEquals(4294967295L, long1);\n \n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n Range range2 = Range.ofLength(2147483647L);\n range1.intersection(range0);\n Range range3 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n range3.getEnd();\n boolean boolean0 = range2.intersects(range0);\n boolean boolean1 = range2.equals(\"numbeg of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean1 == boolean0);\n \n Range range4 = Range.of(0L);\n assertFalse(range4.isEmpty());\n \n Range range5 = Range.of(1566L);\n List<Range> list2 = range5.complement(range2);\n assertFalse(list2.equals((Object)list0));\n assertTrue(list2.equals((Object)list1));\n }", "@DataProvider(name = \"toyIntervalVariants\")\n public Object[][] getToyIntervalVariantTestData() {\n return new Object[][] {\n { new SimpleInterval(\"chr1\", 350, 550), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 320, 360), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 550, 750), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 450, 650), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 850), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 450), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 350), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 350, 650), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 250), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 850), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 150, 750), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 220, 280), GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC },\n { new SimpleInterval(\"chr1\", 750, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 150), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 250), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 550), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 950, 1500), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.UTR, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 2000), GATKSVVCFConstants.COPY_GAIN, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.INV_SPAN },\n { new SimpleInterval(\"chr1\", 750, 790), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 350, 1200), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF},\n { new SimpleInterval(\"chr1\", 450, 1300), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF}\n };\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.parseRange(\"[ 0 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n range1.equals(\"[ 0 .. 9223372036854775806 ]/SB\");\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "protected static String expectedRangeString(Object minValue, boolean minInclusive, Object maxValue, boolean maxInclusive) {\n // A means for a return value\n String retVal;\n\n // Start with the proper symbol for the lower bound\n if (minInclusive) {\n retVal = \"[\";\n } else {\n retVal = \"(\";\n }\n\n // Add in the minimum and maximum values\n retVal += minValue + \" .. \" + maxValue;\n\n // End with the proper symbol for the upper bound\n if (maxInclusive) {\n retVal += \"]\";\n } else {\n retVal += \")\";\n }\n\n // Return the formatted string\n return retVal;\n }", "@Test(timeout = 4000)\n public void test30() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[8];\n stringArray0[2] = \"\";\n discretize0.m_UseBinNumbers = true;\n discretize0.getOptions();\n String string0 = \"nxRQgc2%-I1 e8Dn35\";\n stringArray0[3] = \"nxRQgc2%-I1 e8Dn35\";\n stringArray0[4] = \"nxRQgc2%-I1 e8Dn35\";\n Range range0 = new Range(\"nxRQgc2%-I1 e8Dn35\");\n stringArray0[7] = \"\";\n discretize0.setAttributeIndices(\"\");\n // Undeclared exception!\n try { \n range0.getSelection();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No upper limit has been specified for range\n //\n verifyException(\"weka.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n // Undeclared exception!\n try { \n range0.endsBefore((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Null Range used in range comparison operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.shift(2663L);\n range_Builder1.contractEnd((-1644L));\n range_Builder1.shift(2663L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "public void createPriceRange() {\n final CharSequence[] priceRange = {\"$\", \"$$\", \"$$$\"};\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Price Range\");\n builder.setItems(priceRange, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n System.out.println(priceRange[which]);\n String type = (String) priceRange[which];\n if (type.equals(\"$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n } else if (type.equals(\"$$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n } else if (type.equals(\"$$$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n }\n dialog.dismiss();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.create();\n\n builder.show();\n\n }", "public void testRanges() throws Exception {\n int num = atLeast(1000);\n for (int i = 0; i < num; i++) {\n BytesRef lowerVal = new BytesRef(TestUtil.randomUnicodeString(random()));\n BytesRef upperVal = new BytesRef(TestUtil.randomUnicodeString(random()));\n if (upperVal.compareTo(lowerVal) < 0) {\n assertSame(upperVal, lowerVal, random().nextBoolean(), random().nextBoolean());\n } else {\n assertSame(lowerVal, upperVal, random().nextBoolean(), random().nextBoolean());\n }\n }\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n range0.equals(range1);\n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertTrue(range0.isEmpty());\n assertEquals(2147483647L, long0);\n }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n Range range0 = null;\n Range.Builder range_Builder0 = null;\n try {\n range_Builder0 = new Range.Builder((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n Range range0 = Range.ofLength(9223372036854775807L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Comparators.valueOf(\"LONGEST_TO_SHORTEST\");\n }", "@Test\n public void test_range_Integer_Collection1() {\n populate_i1();\n Collection<Integer> actual = Selector.range(i1, 1, 5, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(2);\n expected.add(3);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 127L, 4294967295L);\n Range range1 = Range.ofLength(4294967295L);\n range1.toString();\n range1.equals(range0);\n long long0 = range1.getEnd();\n assertEquals(4294967294L, long0);\n \n Range.Comparators.values();\n range1.equals(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n range0.toString();\n range0.toString(range_CoordinateSystem0);\n range0.toString();\n range0.equals(range0);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "void calculateRange() {\n //TODO: See Rules\n }", "@org.junit.Test\n public void testAddQueryDateTimeRangeUpperBound_literalMutation14783_failAssert1() throws java.net.MalformedURLException {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.twilio.http.Request r = new com.twilio.http.Request(com.twilio.http.HttpMethod.GET, com.twilio.rest.Domains.API.toString(), \"1=!mas4n3:s3okxH*!\");\n r.addQueryDateTimeRange(\"baz\", com.google.common.collect.Range.lessThan(new org.joda.time.DateTime(2014, 1, 1, 22, 0)));\n java.net.URL url = r.constructURL();\n java.net.URL expected = new java.net.URL(\"https://api.twilio.com/2010-04-01/foobar?baz<=2014-01-01T22:00:00\");\n com.twilio.Assert.assertUrlsEqual(expected, url);\n org.junit.Assert.fail(\"testAddQueryDateTimeRangeUpperBound_literalMutation14783 should have thrown ApiException\");\n } catch (com.twilio.exception.ApiException eee) {\n }\n }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 9223372036854775806 ]/RB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray1 = Range.CoordinateSystem.values();\n assertNotSame(range_CoordinateSystemArray1, range_CoordinateSystemArray0);\n }", "public static void main(String[] args)\n {\n JFrame f = new JFrame(\"Test for TextRangeUI\");\n f.setBounds(0,0,200,150);\n final TextRangeUI range_ui = new TextRangeUI( \"TOF\", 0, 1000);\n\n f.getContentPane().setLayout( new GridLayout(2,1) );\n f.getContentPane().add(range_ui);\n\n range_ui.addActionListener( new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n System.out.println(\"Entered: \" + range_ui.getText() );\n System.out.println(\"Min = \" + range_ui.getMin() );\n System.out.println(\"Max = \" + range_ui.getMax() );\n }\n });\n\n final TextRangeUI range_ui_2 = new TextRangeUI( \"TOF\", 0, 1000);\n f.getContentPane().add(range_ui_2);\n range_ui_2.setLabel( \"NEW LABEL\" );\n range_ui_2.setMin( 1.0f );\n range_ui_2.setMax( 2.0f );\n\n range_ui_2.addActionListener( new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n System.out.println(\"Entered: \" + range_ui_2.getText() );\n System.out.println(\"Min = \" + range_ui_2.getMin() );\n System.out.println(\"Max = \" + range_ui_2.getMax() );\n }\n });\n\n f.setVisible(true);\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483646L, (-9223372036854775808L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Range coordinates 2147483646, -9223372036854775808 are not valid Zero Based coordinates\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32767L, 9223372036854775554L);\n Object object0 = new Object();\n range0.toString();\n range0.equals(object0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32767 .. 9223372036854775553 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }" ]
[ "0.719991", "0.71929526", "0.6999576", "0.68291473", "0.6347331", "0.62267107", "0.619406", "0.61868507", "0.61532736", "0.6121757", "0.60997444", "0.60965496", "0.60538626", "0.605048", "0.60274273", "0.6019505", "0.60085493", "0.5969683", "0.5960751", "0.5956813", "0.59323746", "0.59203696", "0.59053266", "0.58877903", "0.5853", "0.5850925", "0.5850189", "0.58094287", "0.5783917", "0.57811767", "0.5773676", "0.57718843", "0.5766017", "0.5764501", "0.5748406", "0.57469136", "0.5723787", "0.5700487", "0.5685609", "0.568379", "0.5669382", "0.5663089", "0.56582004", "0.5651554", "0.5649505", "0.5641376", "0.5638321", "0.56345737", "0.56290245", "0.5619385", "0.5618227", "0.56058407", "0.56022125", "0.5597056", "0.5595761", "0.55920917", "0.5585592", "0.5569806", "0.556078", "0.55415916", "0.550617", "0.5494253", "0.5485127", "0.5477706", "0.5470976", "0.5463993", "0.54417264", "0.5429627", "0.54221886", "0.5415583", "0.53960955", "0.5384565", "0.5381111", "0.53756016", "0.5368337", "0.536185", "0.53609365", "0.53603435", "0.53598654", "0.5343188", "0.53398305", "0.5334035", "0.53329057", "0.5331079", "0.5329099", "0.53268445", "0.5317834", "0.5309028", "0.53039354", "0.53025943", "0.53023887", "0.5299782", "0.52951807", "0.52904296", "0.5280471", "0.5269442", "0.5262616", "0.5258075", "0.52569413", "0.52507013" ]
0.76432323
0
Test the yellow taxi range tuple builder
@Test public void testYellowTaxiPointTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.YELLOWTAXI_POINT); final Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss"); final Date dateLow = dateParser.parse("2016-01-01 00:00:00"); final Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563, 40.734695434570313, 40.734695434570313, (double) dateLow.getTime(), (double) dateLow.getTime()); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Range range0 = Range.of((-1259L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n long long0 = new Long((-1259L));\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range range3 = range1.asRange();\n String string0 = null;\n range3.intersection(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. -1258 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ -1259 .. -1258 ]/SB into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n long long0 = 265L;\n range_Builder0.shift(265L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range range1 = Range.of(0L);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n List<Range> list2 = range0.complementFrom(list1);\n List<Range> list3 = range0.complementFrom(list2);\n range0.complementFrom(list3);\n Range.of((-1147L), 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 0L, 0L);\n Range range3 = range2.intersection(range0);\n range0.getEnd();\n range3.intersects(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"q)fxUX9s]Tp\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse q)fxUX9s]Tp into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "RangeValue createRangeValue();", "Range createRange();", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n long long0 = new Long(0L);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 259L);\n Range range3 = Range.of(1L);\n Range range4 = Range.of((-32768L), 0L);\n range4.equals(range2);\n range0.complement(range3);\n Range range5 = range_Builder1.build();\n assertFalse(range5.equals((Object)range4));\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Range range0 = Range.of(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"vH) h-=%9V8]<4%y\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.vH) h-=%9V8]<4%y\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n range_CoordinateSystem0.toString();\n range1.equals(\"Residue Based\");\n String string0 = range_CoordinateSystem0.toString();\n assertEquals(\"Residue Based\", string0);\n }", "abstract public Range createRange();", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, 0L, 0L);\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.of(0L, (-1813L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.of(range_CoordinateSystem0, (-5250L), 2383L);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "RangeOfValuesType createRangeOfValuesType();", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Range.CoordinateSystem.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n Range range0 = Range.ofLength(0L);\n range0.getBegin(range_CoordinateSystem0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.spliterator();\n range0.complementFrom(linkedList0);\n range_Builder0.contractBegin(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range_Builder0.expandBegin((-4622L));\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Range range0 = Range.of(0L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem1);\n range0.iterator();\n Range.of((-1233L), 0L);\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem1, 0L, (-1233L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n long long0 = (-1L);\n Range range0 = Range.of((-1L));\n range0.getBegin();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.build();\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range3);\n List<Range> list1 = range2.complementFrom(list0);\n Range range4 = Range.of(1207L);\n assertFalse(range4.isEmpty());\n \n boolean boolean0 = range2.isSubRangeOf(range3);\n assertTrue(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range2.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem3.toString();\n range0.equals(list1);\n assertSame(range2, range1);\n assertEquals(0, list1.size());\n \n range_CoordinateSystem1.toString();\n long long0 = range0.getEnd();\n assertEquals(255L, long0);\n }", "private Range() {}", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ -1259 .. 256 ]/SB\", string0);\n \n Range range1 = Range.of((-1259L));\n range1.getEnd();\n long long0 = range1.getEnd();\n assertEquals((-1259L), long0);\n \n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n assertFalse(list0.contains(range0));\n assertEquals(0, list1.size());\n assertFalse(list0.isEmpty());\n \n Range range4 = Range.ofLength(0L);\n Range range5 = range4.intersection(range0);\n long long1 = range5.getEnd();\n assertEquals((-1L), long1);\n \n range0.intersects(range4);\n range3.equals(\"[ -1259 .. 256 ]/SB\");\n Range.of(333L);\n List<Range> list2 = range2.complement(range3);\n assertTrue(list2.contains(range0));\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n Range range0 = Range.of(4294967244L, 4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\", range_CoordinateSystem1);\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n long long0 = 785L;\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 9223372036854775806L, (-128L));\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -129 would make range [9223372036854775805 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.startsBefore(range0);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n Range range0 = Range.of((-1259L), (-1259L));\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n Long long0 = new Long((-1259L));\n range0.equals(long0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"unable to delete \");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.unable to delete \n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range0.equals(range0);\n range0.getBegin();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"[ 0 .. -1 ]/0B\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.[ 0 .. -1 ]/0B\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n boolean boolean0 = range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem1);\n assertEquals(\"[ 1 .. 9223372036854775806 ]/RB\", string0);\n \n Range range1 = Range.parseRange(\"[ 1 .. 9223372036854775806 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertTrue(boolean1 == boolean0);\n assertFalse(range1.equals((Object)range0));\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals(0L, long0);\n }", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-128L), 273L);\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem1, (-1354L), 273L);\n range0.equals(range1);\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range1.equals(range_CoordinateSystem1);\n Range.CoordinateSystem.values();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"@M8!uS|r?\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.@M8!uS|r?\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967244 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "Builder addTypicalAgeRange(Text value);", "public void test4Draft(){\n assertEquals( 4, $computeRange.$list().size());\n //System.out.println( $computeRange.list$Normalized() );\n assertEquals( 4, $computeRange.$listNormalized().size());\n //System.out.println($computeRange.fill(\"multiply10to20\",10,20,\"*\"));\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.toString();\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"4oSq*$e[YDbph?D\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse 4oSq*$e[YDbph?D into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n String string0 = range_CoordinateSystem1.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Amino;\n defaultNucleotideCodec0.encode(nucleotide0);\n int int0 = 15;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n Range range0 = Range.ofLength(359L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-874L), (-874L));\n range0.isSubRangeOf(range1);\n // Undeclared exception!\n try { \n Range.ofLength((-2918L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32729 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem.values();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "private String useRangeFormat(Unit units, int lowerBound, int upperBound) {\n return lowerBound + \" to \" + upperBound + getUnits(units, upperBound);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.of(4294967244L);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\", range_CoordinateSystem1);\n range2.getEnd();\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\", range_CoordinateSystem2);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "Range() {}", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n List<Range> list0 = range0.complementFrom(linkedList0);\n assertEquals(0, list0.size());\n \n Range range1 = Range.of(9223372036854775807L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n boolean boolean1 = range1.endsBefore(range0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n Range range0 = Range.of((-9223372036854775808L));\n range0.equals(range0);\n Range.Comparators.values();\n range0.getBegin();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "@Test\n public void testRowRange() {\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1b).endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1b).endRow(rw2b).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).build());\n \n // Test with String input\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1s).endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1s).endRow(rw2s).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).build());\n }", "public void setRange(Range range) { setRange(range, true, true); }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n long long0 = range0.getEnd();\n assertEquals((-1L), long0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 0 ]/RB\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.equals(\"[ 0 .. -1 ]/0B\");\n assertFalse(boolean0);\n \n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 0 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertFalse(boolean1);\n \n range0.complement(range1);\n long long1 = range1.getBegin();\n assertFalse(range1.equals((Object)range0));\n assertTrue(range1.isEmpty());\n assertEquals(1L, long1);\n }", "@Test(timeout = 4000)\n public void test089() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 3253L, 3253L);\n range0.getLength();\n range0.toString();\n Object object0 = new Object();\n Range range1 = Range.ofLength(3253L);\n range1.intersects(range0);\n range0.equals(range1);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"[ 3253 .. 3252 ]/0B\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.[ 3253 .. 3252 ]/0B\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test067() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32767L, 9223372036854775554L);\n range0.equals(range_CoordinateSystem0);\n Object object0 = new Object();\n range0.toString();\n range0.equals(object0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.getEnd();\n Range.Comparators.values();\n Range range1 = Range.of(range_CoordinateSystem0, 9223372036854775553L, 9223372036854775553L);\n range0.complement(range1);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"EeIU+%v}^s\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.EeIU+%v}^s\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n // Undeclared exception!\n try { \n range1.complement(range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -24 would make range [9223372036854775807 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertFalse(range1.isEmpty());\n assertTrue(list0.contains(range1));\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n boolean boolean0 = range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean1 = range0.intersects(range2);\n boolean boolean2 = range1.equals(range2);\n assertFalse(boolean2 == boolean1);\n \n range0.getEnd();\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n \n boolean boolean3 = range3.startsBefore(range1);\n assertTrue(boolean3 == boolean0);\n assertTrue(range3.isEmpty());\n assertFalse(boolean3);\n }", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.intersects(range1);\n assertFalse(boolean0);\n assertFalse(range1.isEmpty());\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n }", "Builder addTypicalAgeRange(String value);", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n Range range0 = Range.ofLength(10121L);\n range0.toString();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 10121 ]/RB\", string0);\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.expandBegin(3019L);\n Range.Builder range_Builder1 = new Range.Builder(2674L);\n range_Builder1.shift(2674L);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"QLv>[gqB\\\"z\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.QLv>[gqB\\\"z\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n long long0 = range0.getLength();\n assertEquals(9223372032559808565L, long0);\n \n range0.equals(\"]?&0A@\");\n Range range1 = Range.of(9223372032559808565L);\n List<Range> list0 = range0.complement(range1);\n assertTrue(list0.contains(range0));\n \n boolean boolean0 = range0.equals(\"]?&0A@\");\n assertFalse(boolean0);\n \n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 9223372032559808565 ]/RB\", string0);\n \n Range.CoordinateSystem.values();\n range1.complement(range0);\n List<Range> list1 = range1.complement(range0);\n assertTrue(list1.contains(range1));\n assertFalse(list1.equals((Object)list0));\n assertEquals(1, list1.size());\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n Range range0 = Range.of(2448L);\n Range range1 = Range.of(2829L, 3687L);\n range1.equals(range0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n long long0 = new Long(0L);\n Range range1 = Range.of(4294967295L);\n long long1 = range1.getBegin();\n assertEquals(4294967295L, long1);\n \n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n Range range2 = Range.ofLength(2147483647L);\n range1.intersection(range0);\n Range range3 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n range3.getEnd();\n boolean boolean0 = range2.intersects(range0);\n boolean boolean1 = range2.equals(\"numbeg of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean1 == boolean0);\n \n Range range4 = Range.of(0L);\n assertFalse(range4.isEmpty());\n \n Range range5 = Range.of(1566L);\n List<Range> list2 = range5.complement(range2);\n assertFalse(list2.equals((Object)list0));\n assertTrue(list2.equals((Object)list1));\n }", "@Test\n public void test_range_Integer_Collection4() {\n populate_i3();\n Collection<Integer> actual = Selector.range(i3, 4, 8, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(8);\n expected.add(7);\n expected.add(6);\n expected.add(5);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@DataProvider(name = \"toyIntervalVariants\")\n public Object[][] getToyIntervalVariantTestData() {\n return new Object[][] {\n { new SimpleInterval(\"chr1\", 350, 550), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 320, 360), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 550, 750), GATKSVVCFConstants.LOF, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 450, 650), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 850), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 450), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 250, 350), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 350, 650), GATKSVVCFConstants.PARTIAL_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 150, 250), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 850), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 150, 750), GATKSVVCFConstants.INT_EXON_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 220, 280), GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC },\n { new SimpleInterval(\"chr1\", 750, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 150), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 250), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 50, 550), GATKSVVCFConstants.TSS_DUP, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF },\n { new SimpleInterval(\"chr1\", 950, 1500), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.UTR, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 650, 950), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 50, 2000), GATKSVVCFConstants.COPY_GAIN, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.INV_SPAN },\n { new SimpleInterval(\"chr1\", 750, 790), GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR },\n { new SimpleInterval(\"chr1\", 350, 1200), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF},\n { new SimpleInterval(\"chr1\", 450, 1300), GATKSVVCFConstants.DUP_PARTIAL, GATKSVVCFConstants.LOF, GATKSVVCFConstants.MSV_EXON_OVERLAP, GATKSVVCFConstants.LOF}\n };\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.parseRange(\"[ 0 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n range1.equals(\"[ 0 .. 9223372036854775806 ]/SB\");\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "protected static String expectedRangeString(Object minValue, boolean minInclusive, Object maxValue, boolean maxInclusive) {\n // A means for a return value\n String retVal;\n\n // Start with the proper symbol for the lower bound\n if (minInclusive) {\n retVal = \"[\";\n } else {\n retVal = \"(\";\n }\n\n // Add in the minimum and maximum values\n retVal += minValue + \" .. \" + maxValue;\n\n // End with the proper symbol for the upper bound\n if (maxInclusive) {\n retVal += \"]\";\n } else {\n retVal += \")\";\n }\n\n // Return the formatted string\n return retVal;\n }", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n // Undeclared exception!\n try { \n range0.endsBefore((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Null Range used in range comparison operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test30() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[8];\n stringArray0[2] = \"\";\n discretize0.m_UseBinNumbers = true;\n discretize0.getOptions();\n String string0 = \"nxRQgc2%-I1 e8Dn35\";\n stringArray0[3] = \"nxRQgc2%-I1 e8Dn35\";\n stringArray0[4] = \"nxRQgc2%-I1 e8Dn35\";\n Range range0 = new Range(\"nxRQgc2%-I1 e8Dn35\");\n stringArray0[7] = \"\";\n discretize0.setAttributeIndices(\"\");\n // Undeclared exception!\n try { \n range0.getSelection();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No upper limit has been specified for range\n //\n verifyException(\"weka.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.shift(2663L);\n range_Builder1.contractEnd((-1644L));\n range_Builder1.shift(2663L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "public void createPriceRange() {\n final CharSequence[] priceRange = {\"$\", \"$$\", \"$$$\"};\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Price Range\");\n builder.setItems(priceRange, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n System.out.println(priceRange[which]);\n String type = (String) priceRange[which];\n if (type.equals(\"$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n } else if (type.equals(\"$$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n } else if (type.equals(\"$$$\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n }\n dialog.dismiss();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.create();\n\n builder.show();\n\n }", "public void testRanges() throws Exception {\n int num = atLeast(1000);\n for (int i = 0; i < num; i++) {\n BytesRef lowerVal = new BytesRef(TestUtil.randomUnicodeString(random()));\n BytesRef upperVal = new BytesRef(TestUtil.randomUnicodeString(random()));\n if (upperVal.compareTo(lowerVal) < 0) {\n assertSame(upperVal, lowerVal, random().nextBoolean(), random().nextBoolean());\n } else {\n assertSame(lowerVal, upperVal, random().nextBoolean(), random().nextBoolean());\n }\n }\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n range0.equals(range1);\n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertTrue(range0.isEmpty());\n assertEquals(2147483647L, long0);\n }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n Range range0 = null;\n Range.Builder range_Builder0 = null;\n try {\n range_Builder0 = new Range.Builder((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n Range range0 = Range.ofLength(9223372036854775807L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Comparators.valueOf(\"LONGEST_TO_SHORTEST\");\n }", "@Test\n public void test_range_Integer_Collection1() {\n populate_i1();\n Collection<Integer> actual = Selector.range(i1, 1, 5, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(2);\n expected.add(3);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 127L, 4294967295L);\n Range range1 = Range.ofLength(4294967295L);\n range1.toString();\n range1.equals(range0);\n long long0 = range1.getEnd();\n assertEquals(4294967294L, long0);\n \n Range.Comparators.values();\n range1.equals(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n range0.toString();\n range0.toString(range_CoordinateSystem0);\n range0.toString();\n range0.equals(range0);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "void calculateRange() {\n //TODO: See Rules\n }", "@org.junit.Test\n public void testAddQueryDateTimeRangeUpperBound_literalMutation14783_failAssert1() throws java.net.MalformedURLException {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.twilio.http.Request r = new com.twilio.http.Request(com.twilio.http.HttpMethod.GET, com.twilio.rest.Domains.API.toString(), \"1=!mas4n3:s3okxH*!\");\n r.addQueryDateTimeRange(\"baz\", com.google.common.collect.Range.lessThan(new org.joda.time.DateTime(2014, 1, 1, 22, 0)));\n java.net.URL url = r.constructURL();\n java.net.URL expected = new java.net.URL(\"https://api.twilio.com/2010-04-01/foobar?baz<=2014-01-01T22:00:00\");\n com.twilio.Assert.assertUrlsEqual(expected, url);\n org.junit.Assert.fail(\"testAddQueryDateTimeRangeUpperBound_literalMutation14783 should have thrown ApiException\");\n } catch (com.twilio.exception.ApiException eee) {\n }\n }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 9223372036854775806 ]/RB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray1 = Range.CoordinateSystem.values();\n assertNotSame(range_CoordinateSystemArray1, range_CoordinateSystemArray0);\n }", "public static void main(String[] args)\n {\n JFrame f = new JFrame(\"Test for TextRangeUI\");\n f.setBounds(0,0,200,150);\n final TextRangeUI range_ui = new TextRangeUI( \"TOF\", 0, 1000);\n\n f.getContentPane().setLayout( new GridLayout(2,1) );\n f.getContentPane().add(range_ui);\n\n range_ui.addActionListener( new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n System.out.println(\"Entered: \" + range_ui.getText() );\n System.out.println(\"Min = \" + range_ui.getMin() );\n System.out.println(\"Max = \" + range_ui.getMax() );\n }\n });\n\n final TextRangeUI range_ui_2 = new TextRangeUI( \"TOF\", 0, 1000);\n f.getContentPane().add(range_ui_2);\n range_ui_2.setLabel( \"NEW LABEL\" );\n range_ui_2.setMin( 1.0f );\n range_ui_2.setMax( 2.0f );\n\n range_ui_2.addActionListener( new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n System.out.println(\"Entered: \" + range_ui_2.getText() );\n System.out.println(\"Min = \" + range_ui_2.getMin() );\n System.out.println(\"Max = \" + range_ui_2.getMax() );\n }\n });\n\n f.setVisible(true);\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483646L, (-9223372036854775808L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Range coordinates 2147483646, -9223372036854775808 are not valid Zero Based coordinates\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = (-1L);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, (-665L), (-1L));\n range_Builder0.contractEnd((-665L));\n range_Builder0.expandEnd((-1L));\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(9223372036854775807L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }" ]
[ "0.76435053", "0.7200995", "0.71930724", "0.70008713", "0.6829869", "0.6348446", "0.6228896", "0.6189135", "0.6155455", "0.61239266", "0.61012894", "0.6099098", "0.60566807", "0.6053085", "0.6028902", "0.60219824", "0.60098076", "0.59721816", "0.5962656", "0.5959674", "0.59340316", "0.5922439", "0.5906229", "0.588978", "0.58543676", "0.58535486", "0.58520967", "0.5810747", "0.5786393", "0.57820904", "0.5775845", "0.57737434", "0.576866", "0.5764999", "0.5749745", "0.5749051", "0.5726353", "0.57021374", "0.5688162", "0.5686251", "0.56711525", "0.56643355", "0.56596506", "0.5654006", "0.5652095", "0.5643355", "0.56389093", "0.56358033", "0.563029", "0.56194067", "0.5618463", "0.5608825", "0.5602919", "0.5598633", "0.5596638", "0.5593723", "0.558656", "0.55727756", "0.5562928", "0.5543703", "0.5507222", "0.5496462", "0.54862916", "0.54783744", "0.5473166", "0.54659945", "0.5441969", "0.54305637", "0.54246473", "0.54176044", "0.5398053", "0.5386303", "0.5384276", "0.5377679", "0.5369407", "0.53628033", "0.53626657", "0.53610814", "0.53610194", "0.53426", "0.5341289", "0.5336386", "0.53332543", "0.533307", "0.5330576", "0.53267306", "0.5318021", "0.53099275", "0.53064233", "0.5304704", "0.5303068", "0.53012", "0.5295616", "0.529043", "0.52831024", "0.52708966", "0.5263475", "0.5259466", "0.52582675", "0.5251748" ]
0.6193931
7
Test the tpch point tuple builder
@Test public void testTPCHLineitemPointTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.TPCH_LINEITEM_POINT); final Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-mm-dd"); final Date date = dateParser.parse("1993-12-04"); final double doubleTime = (double) date.getTime(); final Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "boolean testCoords(Tester t) {\n return t.checkExpect(this.p3.xCoord(), 50) && t.checkExpect(this.p4.yCoord(), 600);\n }", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "void test2() {\r\n\t\t\t\t\tPoint3D p = new Point3D(32.103315,35.209039,670);\r\n\t\t\t\t\tassertEquals(true,myCoords.isValid_GPS_Point(p));\r\n\t\t\t\t}", "TestViewpoint createTestViewpoint();", "@Test\r\n\tpublic void testPointToString0() {\r\n\t\tPonto a1 = new Ponto(1.0, 2.5);\r\n\t\tAssert.assertEquals(\"(1.00, 2.50)\", a1.toString());\r\n\r\n\t\tPonto a2 = new Ponto(-2.4, 4.1);\r\n\t\tAssert.assertEquals(\"(-2.40, 4.10)\", a2.toString());\r\n\r\n\t\tPonto a3 = new Ponto(9.3, -1.9);\r\n\t\tAssert.assertEquals(\"(9.30, -1.90)\", a3.toString());\r\n\t}", "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n public void pipeDrawerValidPoints() {\n Point2D[] waypoints = {\n new Point2D(1, 1),\n new Point2D(1, 2),\n new Point2D(2, 2)\n };\n Pipe pipe = new Pipe(1f, 1, (byte) 1);\n\n new PipeDrawer(waypoints, pipe, 1);\n }", "@DataProvider(name = \"toyPointVariants\")\n public Object[][] getToyPointVariantTestData() {\n return new Object[][] {\n // in UTR\n { new SimpleInterval(\"chr1\", 150, 151),\n new SimpleInterval(\"chr1\", 150, 150),\n GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.LOF },\n // in intron\n { new SimpleInterval(\"chr1\", 250, 251),\n new SimpleInterval(\"chr1\", 250, 250),\n GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.INTRONIC, GATKSVVCFConstants.LOF },\n // in CDS\n { new SimpleInterval(\"chr1\", 350, 351),\n new SimpleInterval(\"chr1\", 350, 350),\n GATKSVVCFConstants.LOF, GATKSVVCFConstants.BREAKEND_EXON, GATKSVVCFConstants.LOF },\n // overlap last base of a feature (CDS) only\n { new SimpleInterval(\"chr1\", 600, 601),\n new SimpleInterval(\"chr1\", 600, 600),\n GATKSVVCFConstants.LOF, GATKSVVCFConstants.BREAKEND_EXON, GATKSVVCFConstants.LOF },\n // overlap first base of a feature (UTR) only\n { new SimpleInterval(\"chr1\", 100, 101),\n new SimpleInterval(\"chr1\", 100, 100),\n GATKSVVCFConstants.UTR, GATKSVVCFConstants.UTR, GATKSVVCFConstants.LOF }\n };\n }", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "public abstract T getTuple(int aPosition);", "Point createPoint();", "private Tuples() {}", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test(expected = InvalidWaypointsException.class)\n public void pipeDrawerShortList() {\n Point2D[] waypoints = {};\n new PipeDrawer(waypoints, null, 1);\n }", "TupleExpr createTupleExpr();", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "@Test\n\tpublic void Given21And17Get1() {\n\t\t\n\t\tIComparePoint ICP = new ComparePoint();\n\t\tint result = ICP.getResult(21, 17);\n\t\tassertEquals(1, result);\n\t}", "public void setTargDataPoint(DataPoint aDP)\n{\n if(SnapUtils.equals(aDP, _targPoint)) return;\n firePropChange(TargDataPoint_Prop, _targPoint, _targPoint = aDP);\n _toolTipView.reloadContents();\n}", "@Test\r\n public void testCreateShortestTour_DoubledWaypoint() {\r\n Tour tour = new Tour(new int[][]{{10, 10}, {1, 1}, {22, 22}, {3, 3}});\r\n Tour result = tour.createShortestTour(1);\r\n Tour expected = new Tour(new int[][]{{1, 1}, {3, 3}, {10, 10}, {22, 22}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }", "@Test\n void should_activate_tie_break_when_two_players_reach_set_6() {\n List<Integer> setPointOrderTab = Arrays.asList(1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2); // 6-6\n\n //WHEN\n game.computePoint(setPointOrderTab, true);\n\n //THEN\n assertEquals(GameStatus.IN_PROGRESS, game.getGameStatus());\n assertTrue(game.isTiebreakIsActivated());\n }", "public boolean isGeneralTuple();", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "public Point getTestPoint() {\n WKTReader reader = new WKTReader();\n try {\n Point point = (Point) reader.read(TEST_POINT_WKT);\n point.setSRID(getTestSrid());\n return point;\n } catch (ParseException e) {\n throw new RuntimeException(e);\n }\n }", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "@Test\n\tpublic void addPointsByListTest(){\n\t}", "@Test\n public void testAddCity_3args02() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"cityTest\";\n Pair coordenates = new Pair(41.200000, -8.000000);\n int points = 30;\n\n boolean result = sn10.addCity(coordenates, cityName, points);\n assertTrue(result);\n }", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "@Test\n void should_first_player_win_set_and_game_still_in_progress_when_tie_break_activated() {\n List<Integer> setPointOrderTab = Arrays.asList(1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1); // 6-6 and 1-0 for firstPlayer\n\n //WHEN\n game.computePoint(setPointOrderTab, true);\n\n //THEN\n assertEquals(GameStatus.IN_PROGRESS, game.getGameStatus());\n assertTrue(game.isTiebreakIsActivated());\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "public GridPoint digitise() {\n\n Location myLocation = myLocation();\n GridPoint myGP = myGridPoint();\n //myLocationClick();\n points.add(myGridPoint());\n if (points.size() > 2) {\n\n\n mFinishButton.setVisibility(View.VISIBLE);\n\n }\n double latitude = myGridPoint().x;\n double longitude = myGridPoint().y;\n String stringLat = Double.toString(latitude);\n String stringLong = Double.toString(longitude);\n String coordPair = \" \" + stringLat + \",\" + stringLong;\n collectedPoints.add(coordPair);\n locations.add(myLocation);\n\n return myGP;\n\n }", "@Test\n public void testPolygonExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.POLYGON, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"POLYGON 0.1 0.2 \\n\", print);\n }", "@Test\n @Tag(\"slow\")\n public void testPILOT_WE() {\n CuteNetlibCase.doTest(\"PILOT-WE.SIF\", \"-2720107.5328449034\", \"20770.464669007524\", NumberContext.of(7, 4));\n }", "@Test\n public void testTickTuple() {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tick tuple\n Tuple tickTuple = mock(Tuple.class);\n when(tickTuple.getSourceComponent())\n .thenReturn(Constants.SYSTEM_COMPONENT_ID);\n when(tickTuple.getSourceStreamId())\n .thenReturn(Constants.SYSTEM_TICK_STREAM_ID);\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tickTuple);\n\n verify(tb, times(1)).tick(tickTuple);\n verify(oc, times(1)).ack(tickTuple);\n }", "TupleLiteralExp createTupleLiteralExp();", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPILOT() {\n CuteNetlibCase.doTest(\"PILOT.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void testTrouverCoord() throws Exception {\n System.out.println(\"TrouverCoord\");\n Coordonnee p1 = null;\n Coordonnee p2 = null;\n double ratioDistSurDistTotale = 0.0;\n Coordonnee expResult = null;\n Coordonnee result = Utils.TrouverCoord(p1, p2, ratioDistSurDistTotale);\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 }", "@Test\n public void testPlotExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.PLOT, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"PLOT 0.1 0.2 \\n\", print);\n }", "@Test\r\n void testAddPoints() {\r\n AlwaysDefect testStrat = new AlwaysDefect();\r\n testStrat.addPoints(2);\r\n int points = testStrat.getPoints();\r\n assertEquals(points, 2, \"addPoints or getPoints not functioning correctly\");\r\n }", "boolean testAdd(Tester t) {\n return t.checkExpect(this.p5.add(this.p7), new MyPosn(249, 50))\n && t.checkExpect(this.p6.add(this.p1), new MyPosn(51, 50));\n }", "@Test\r\n public void testCreatePopularTour_EveryScndWaypointFromFirst() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour tourB = new Tour(new int[][]{{0, 0}, {2, 2}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {2, 2}});\r\n Tour result = tourA.createPopularTour(tourB);\r\n assertTrue(result.toString(), expected.isEqual(result)); \r\n }", "private String getPoints(){\n\t\tString pu = \" punts.\";\n\t\tif(points == 1){\n\t\t\tpu = \" punt.\";\n\t\t}\n\t\treturn \"Puntuació de \" + points + pu;\n\t}", "private static String actualParametersToString(Class[] pts) {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < pts.length; i++) {\n result.append(\"p\").append(i);\n if (i < pts.length - 1)\n result.append(\",\");\n }\n return result.toString();\n }", "@Test\n public void testGPSping() {\n assertEquals(-31.977484, csse.getLat(), PRECISION);\n assertEquals(115.859945, perth.getLon(), PRECISION);\n assertEquals(48.859741, paris.getLat(), PRECISION);\n assertEquals(1565063614,csse.getTime());\n }", "private void printSuppliedPoints(Point[] points) {\r\n String pointsSupplied = \"{\";\r\n for (int i = 0; i < points.length; ++i) {\r\n if (points[i] == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n pointsSupplied = pointsSupplied + \"new Point\" + points[i] + \",\";\r\n }\r\n pointsSupplied = pointsSupplied + \"};\";\r\n System.out.println(pointsSupplied);\r\n }", "@Test\n public void basicTest() {\n Point myPoint;\n\n// myPoint = pointSet.nearest(2, 2);\n// System.out.println(myPoint.toString());\n// myPoint = pointSet.nearest(2, -2);\n// System.out.println(myPoint.toString());\n// myPoint = pointSet.nearest(1, 4);\n// System.out.println(myPoint.toString());\n// myPoint = pointSet.nearest(3, -100);\n// System.out.println(myPoint.toString());\n// myPoint = pointSet.nearest(0, 0);\n// System.out.println(myPoint.toString());\n//\n// myPoint = kdPointSet.nearest(2, 2); //THIS ONE DOES NOT MATCH NAIVE!\n// System.out.println(myPoint.toString());\n// myPoint = kdPointSet.nearest(2, -2);\n// System.out.println(myPoint.toString());\n// myPoint = kdPointSet.nearest(1, 4);\n// System.out.println(myPoint.toString());\n// myPoint = kdPointSet.nearest(3, -100);\n// System.out.println(myPoint.toString());\n// myPoint = kdPointSet.nearest(0, 0);\n// System.out.println(myPoint.toString());\n\n\n\n\n\n\n }", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void testCheckPlaceValideVerticale() throws BateauxMembreInvalide, BateauxStartPointInvalide {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(15, 15, j, p);\n\n Place[] pl = j.checkPlace(\"A6\", g, 5, false);\n Place[] att = new Place[]{new Place(\"A6\"), new Place(\"A7\"), new Place(\"A8\"), new Place(\"A9\"), new Place(\"A10\")};\n\n assertArrayEquals(\"Les places ne sont pas bonne\", att, pl);\n }", "public void buildPointPetriNet(){\n\t\tcreatePlace(pnet, \"int\", 3);\n\t\tcreatePlace(pnet, \"Point\", 2);\n\t\tcreatePlace(pnet, \"MyPoint\", 2);\n\t\tcreatePlace(pnet, \"void\", 2);\n\t\t\n\t\t// Create transitions for the petri-net\n\t\tpnet.createTransition(\"int<-getX(Point)\");\n\t\tpnet.createTransition(\"int<-getY(Point)\");\n\t\tpnet.createTransition(\"void<-setX(Point,int)\");\n\t\tpnet.createTransition(\"void<-setY(Point,int)\");\n\t\tpnet.createTransition(\"Point<-Point(void)\");\n\t\t\n\t\tpnet.createTransition(\"int<-getX(MyPoint)\");\n\t\tpnet.createTransition(\"int<-getY(MyPoint)\");\n\t\tpnet.createTransition(\"MyPoint<-MyPoint(int,int)\");\n\t\t\n\t\t// Create clone transitions for the petri-net\n\t\tpnet.createTransition(\"int<-clone(int)\");\n\t\tpnet.createTransition(\"Point<-clone(Point)\");\n\t\tpnet.createTransition(\"MyPoint<-clone(MyPoint)\");\n\t\tpnet.createTransition(\"void<-clone(void)\");\n\t\t\n\t\t// Create flows for the petri-net\n\t\tpnet.createFlow(\"Point\",\"int<-getX(Point)\",1);\n\t\tpnet.createFlow(\"int<-getX(Point)\",\"int\",1);\n\t\tpnet.createFlow(\"Point\",\"int<-getY(Point)\",1);\n\t\tpnet.createFlow(\"int<-getY(Point)\",\"int\",1);\n\t\tpnet.createFlow(\"Point\",\"void<-setX(Point,int)\",1);\n\t\tpnet.createFlow(\"int\",\"void<-setX(Point,int)\",1);\n\t\tpnet.createFlow(\"void<-setX(Point,int)\",\"void\",1);\n\t\tpnet.createFlow(\"Point\",\"void<-setY(Point,int)\",1);\n\t\tpnet.createFlow(\"int\",\"void<-setY(Point,int)\",1);\n\t\tpnet.createFlow(\"void<-setY(Point,int)\",\"void\",1);\n\t\tpnet.createFlow(\"void\",\"Point<-Point(void)\",1);\n\t\tpnet.createFlow(\"Point<-Point(void)\",\"Point\",1);\n\t\t\n\t\tpnet.createFlow(\"MyPoint\",\"int<-getX(MyPoint)\",1);\n\t\tpnet.createFlow(\"int<-getX(MyPoint)\",\"int\",1);\n\t\tpnet.createFlow(\"MyPoint\",\"int<-getY(MyPoint)\",1);\n\t\tpnet.createFlow(\"int<-getY(MyPoint)\",\"int\",1);\n\t\tpnet.createFlow(\"int\",\"MyPoint<-MyPoint(int,int)\",2);\n\t\tpnet.createFlow(\"MyPoint<-MyPoint(int,int)\",\"MyPoint\",1);\n\t\t\n\t\t// Create flows for the clone edges\n\t\tpnet.createFlow(\"int\",\"int<-clone(int)\",1);\n\t\tpnet.createFlow(\"int<-clone(int)\",\"int\",2);\n\t\tpnet.createFlow(\"Point\",\"Point<-clone(Point)\",1);\n\t\tpnet.createFlow(\"Point<-clone(Point)\",\"Point\",2);\n\t\tpnet.createFlow(\"MyPoint\",\"MyPoint<-clone(MyPoint)\",1);\n\t\tpnet.createFlow(\"MyPoint<-clone(MyPoint)\",\"MyPoint\",2);\n\t\tpnet.createFlow(\"void\",\"void<-clone(void)\",1);\n\t\tpnet.createFlow(\"void<-clone(void)\",\"void\",2);\n\t\t\n\t}", "@Test\n public void testAddCity_3args04() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"city0\";\n Pair coordenates = new Pair(41.243345, -8.674084);\n int points = 28;\n\n boolean result = sn10.addCity(coordenates, cityName, points);\n assertFalse(result);\n }", "protected void testPickPoint(QueryCallback callback) {\n\tmTempPointCallback = callback;\n\tmWorld.QueryAABB(mCallbackPoint, mTouchCurrent.x, mTouchCurrent.y, mTouchCurrent.x, mTouchCurrent.y);\n\tmTempPointCallback = null;\n}", "@Test\n public void test_distanceLinaireSurY_ParcourOptimum_Pour_4villes() {\n\n Pays pays = new Pays(4);\n\n int positionX = (int) (Math.random() * 50);\n\n pays.setPositionVille(0, new Point(positionX, 2));\n pays.setPositionVille(1, new Point(positionX, 3));\n pays.setPositionVille(2, new Point(positionX, 4));\n pays.setPositionVille(3, new Point(positionX, 5));\n\n brutForceV3.recherche(pays, 0);\n\n assertEquals(\"0>1>2>3>0\", brutForceV3.getParcours().getVillesEmprunté());\n assertEquals(brutForceV3.getParcours().getDistance(),\n parcoursVilles(pays, brutForceV3.getParcours().getVillesEmprunté(),\">\"));\n\n }", "void drawMyPoint(double x, double y, MapContent map, String nombre) { \n// SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n// builder.setName(\"MyFeatureType\");\n// builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs \n// builder.add(\"location\", Point.class); // add geometry\n//\n// // build the type\n// SimpleFeatureType TYPE = builder.buildFeatureType();\n//\n// // create features using the type defined\n// SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(TYPE);\n// org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n// org.locationtech.jts.geom.Point point = geometryFactory.createPoint(new Coordinate(x, y));\n// //\n// \n// //\n// featureBuilder.add(point);\n// SimpleFeature feature = featureBuilder.buildFeature(\"FeaturePoint\");\n// DefaultFeatureCollection featureCollection = new DefaultFeatureCollection(\"internal\", TYPE);\n// featureCollection.add(feature); // Add feature 1, 2, 3, etc\n//\n// Style style = SLD.createPointStyle(\"Star\", Color.BLUE, Color.BLUE, 0.3f, 200);\n// Layer layer = new FeatureLayer(featureCollection, style);\n// layer.setTitle(\"NewPointLayer\");\n// map.addLayer(layer);\n// //mapFrame.getMapPane().repaint();// MapPane.repaint();\n//}\n\tSimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n builder.setName(\"MyFeatureType\"); // \n builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs // Definimos las caracteristicas de tipo del punto q vamos a crear\n builder.add(\"location\", Point.class); // add geometry //\n org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(); //objeto q usaremos para crear el punto\n Coordinate coord = new Coordinate( x,y ); //creamos la coordenada con los puntos pasados como parametros\n org.locationtech.jts.geom.Point point = geometryFactory.createPoint(coord); // Creamos el punto geometrico\n\nSimpleFeatureType pointtype = null; //definimos el typo de punto que necesitamos apra agregarlo a la capa del mapa\n try {\n pointtype = DataUtilities.createType(\"POINT\", \"geom:Point,name:String\");\n } catch (SchemaException ex) {\n Logger.getLogger(SelectionLab.class.getName()).log(Level.SEVERE, null, ex);\n }\nSimpleFeatureBuilder featureBuilderPoints = new SimpleFeatureBuilder(pointtype); //creamos el constructor de lo que agregaremos\nDefaultFeatureCollection collectionPoints = new DefaultFeatureCollection(\"internal\", pointtype); //creamos el contenedor donde pondremos lo que agregaremos\n//PointString Point=builder.createPointString(Point);\n//LineString Point = builder.createLineString(Point);\nfeatureBuilderPoints.add(point); //agregamos el punto en el constructor\nSimpleFeature featureLine = featureBuilderPoints.buildFeature(null); \n((DefaultFeatureCollection)collectionPoints).add(featureLine); \nStyle PointStyle = SLD.createPointStyle(\"circle\", Color.RED, Color.RED,(float) 0.5,(float) 10); //definimos el estilo del punto (icono, color contorno, color, opacidad y tamaño)\n//Obserervacion: el dibujo del punto siempre se mantiene del mismo tamaño por mas que se use el zoom\nmap.addLayer(new FeatureLayer(collectionPoints, PointStyle)); //agregamos el punto a la capa\n\nguardarCoordenadas(nombre,x,y);\n}", "public boolean isTuple() {\n return PyTorchLibrary.LIB.iValueIsTuple(getHandle());\n }", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\n }", "public void testOctaedre() {\n\t\t\t\n\t\t\tSolide i = Octaedre.octaedre();\n\t\t\t\n\t\t\t/* creation de points qui ont les memes coordonnees que ceux qui \n\t\t\t * constituent notre solide (car octaedre() n'a pas de parametres)\n\t\t\t */\n\t\t\t\n\t\t\tPoint p1 = new Point(-25, 0,-25);\n\t\t\tPoint p2 = new Point(-25, 0,25);\n\t\t\tPoint p3 = new Point(25, 0,-25);\n\t\t\tPoint p4 = new Point(25,0,25);\n\t\t\tfloat hauteur = (float) (50/Math.sqrt(2));\n\t\t\t// on se sert de la hauteur pour donnee les coordonees des sommets manquant\n\t\t\tPoint p5 = new Point(0, hauteur,0);\n\t\t\tPoint p6 = new Point(0,-hauteur,0);\n\t\t\t\n\t\t\t//On teste si les points de l'octaedre i sont bien les memes que ceux créés\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getAbscisse()==(p1.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(1).getAbscisse()==(p2.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(5).getAbscisse()==(p3.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(3).getAbscisse()==(p4.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(2).getAbscisse()==(p5.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(0).getAbscisse()==(p6.getAbscisse()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getOrdonnee()==(p1.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(1).getOrdonnee()==(p2.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(5).getOrdonnee()==(p3.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(3).getOrdonnee()==(p4.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(2).getOrdonnee()==(p5.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(0).getOrdonnee()==(p6.getOrdonnee()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getProfondeur()==(p1.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(1).getProfondeur()==(p2.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(5).getProfondeur()==(p3.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(3).getProfondeur()==(p4.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(2).getProfondeur()==(p5.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(0).getProfondeur()==(p6.getProfondeur()));\n\t\t\t\n\t\t\t//On teste si les faces de l'octaedre contiennent bien les points créés\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(0).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(1).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(2).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(3).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p6));\n\t\t\n\t\t\tassertTrue(i.getFaces().get(4).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(5).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(6).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(7).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p6));\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "@VTID(13)\r\n java.lang.String getTuple();", "public void testTouchpointData() {\n \t\tString IDF1 = \"iu.fragment.1\";\n \t\tIInstallableUnit iu1 = createIUWithTouchpointData();\n \t\tIInstallableUnit iuf1 = createBundleFragment(IDF1);\n \t\tString ID1 = iu1.getId();\n \n \t\tassertEquals(\"Number of touchpoint instructions of IU \" + ID1, 1, iu1.getTouchpointData().size());\n \t\tassertEquals(\"Number of touchpoint instructions of IU \" + IDF1, 1, iuf1.getTouchpointData().size());\n \n \t\tProfileChangeRequest req = new ProfileChangeRequest(createProfile(getName()));\n \t\treq.addInstallableUnits(iu1, iuf1);\n \t\tcreateTestMetdataRepository(new IInstallableUnit[] {iu1, iuf1});\n \t\tIQueryable<IInstallableUnit> additions = createPlanner().getProvisioningPlan(req, null, null).getAdditions();\n \t\t{\n \t\t\tIterator<IInstallableUnit> iterator = additions.query(QueryUtil.createIUQuery(ID1), null).iterator();\n \t\t\tassertTrue(\"Solution contains IU \" + ID1, iterator.hasNext());\n \t\t\tIInstallableUnit iu = iterator.next();\n \t\t\tassertEquals(\"Number of attached fragments to IU \" + ID1, 1, iu.getFragments().size());\n \t\t\tassertEquals(\"Attached fragment to IU \" + ID1, IDF1, iu.getFragments().iterator().next().getId());\n \t\t\tassertEquals(\"Number of touchpoint instructions of IU \" + ID1, 2, iu.getTouchpointData().size());\n \t\t}\n \t\t{\n \t\t\tIterator<IInstallableUnit> iterator = additions.query(QueryUtil.createIUQuery(IDF1), null).iterator();\n \t\t\tassertTrue(\"Solution contains IU \" + IDF1, iterator.hasNext());\n \t\t\tIInstallableUnit iu = iterator.next();\n \t\t\tassertEquals(\"Number of attached fragments to IU \" + IDF1, 0, iu.getFragments().size());\n \t\t}\n \t}", "@Test\n @Tag(\"bm1000\")\n public void testPILOT4() {\n CuteNetlibCase.doTest(\"PILOT4.SIF\", \"-2581.1392612778604\", \"0.0\", NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n \n PointSET pset = new PointSET();\n System.out.println(\"Empty: \" + pset.isEmpty());\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.6));\n pset.insert(new Point2D(0.5, 0.7));\n pset.insert(new Point2D(0.5, 0.8));\n pset.insert(new Point2D(0.1, 0.5));\n pset.insert(new Point2D(0.8, 0.5));\n pset.insert(new Point2D(0.1, 0.1));\n System.out.println(\"Empty: \" + pset.isEmpty());\n System.out.println(\"Size: \" + pset.size());\n System.out.println(\"Nearest to start: \" + pset.nearest(new Point2D(0.0, 0.0)));\n System.out.println(\"Contains #1: \" + pset.contains(new Point2D(0.0, 0.0)));\n System.out.println(\"Contains #2: \" + pset.contains(new Point2D(0.5, 0.5)));\n System.out.print(\"Range #1: \");\n for (Point2D p : pset.range(new RectHV(0.001, 0.001, 0.002, 0.002)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n System.out.print(\"Range #2: \");\n for (Point2D p : pset.range(new RectHV(0.05, 0.05, 0.15, 0.15)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n System.out.print(\"Range #3: \");\n for (Point2D p : pset.range(new RectHV(0.25, 0.35, 0.65, 0.75)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n \n }", "@Test\n\tpublic void testTower()\n\t{\n\t\tassertEquals(1,tower.getNum());\n\t\tassertEquals(22,tower.getPosition().getIntAbscisse());\n\t\tassertEquals(23,tower.getPosition().getIntOrdonne());\n\t}", "public void ptFromTVal(double t, Point currPt)\n/* */ {\n/* 37 */ if (this.m_cont != null) {\n/* 38 */ Dimension d = this.m_cont.size();\n/* */ \n/* 40 */ double tVal = tVal(t);\n/* 41 */ currPt.y = (d.height - 15 - new Double(tVal(t) * (d.height - 15 - 15)).intValue());\n/* */ \n/* */ \n/* */ \n/* 45 */ currPt.x = (new Double(t * (d.width - 15 - 15)).intValue() + 15);\n/* */ }\n/* */ }", "public DataPoint getTargDataPoint() { return _targPoint; }", "public TupleDesc getTupleDesc();", "TupleTypeRule createTupleTypeRule();", "private Viewpoint(int type,Float c1x,Float c1y,Float c2x,Float c2y,Float ex,Float ey){\n\t\tthis.type=type;\n\t\tthis.c1x=c1x;\n\t\tthis.c1x=c1y;\n\t\tthis.c2x=c2x;\n\t\tthis.c2y=c2y;\n\t\tthis.ex=ex;\n\t\tthis.ey=ey;\n\t}", "@Test\r\n\tpublic void constructorDeclarationTest(){\r\n\t\tint[] pointsToTest = {2,7,9,16,17,18,19,20};\r\n\t\tfor(int i=0;i<pointsToTest.length;i++)\r\n\t\t{\r\n\t\t\tassertEquals(pointsToTest[i],new PointGrade(pointsToTest[i]).getPoints());\r\n\t\t}\r\n\t}", "public interface CoordTupleString {\n\n /**\n * Accessor for the max tuple index\n * \n * @return the max tuple index\n */\n public abstract int maxIndex();\n\n /**\n * Accessor to determine the actual type managed.\n * \n * @return a Number the most directly corresponds to the\n * underlying managed type (Float for a float tuplestring,\n * Double for a double tuplestring, etc)\n */\n public abstract Number getPrimitiveType();\n\n /**\n * Accessor to retrieve a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a float[]\n */\n public abstract float[] getasFloat(int tuple);\n\n /**\n * Accessor to retrieve a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a double[]\n */\n public abstract double[] getasDouble(int tuple);\n\n /**\n * Accessor to retrieve a single value in a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @param val the index of the value in the tuple (the first val\n * is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a float\n */\n public abstract float getasFloat(int tuple, int val);\n\n /**\n * Accessor to retrieve a single value in a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @param val the index of the value in the tuple (the first val\n * is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a double\n */\n public abstract double getasDouble(int tuple, int val);\n}", "public static void main(String[] args) {\n\t\tpoint<String, Integer> p1=new point<String, Integer>(\"fuck\", 1);\n\t\tSystem.out.println(p1);\n\t}", "@Test\n\t\tpublic void canGiveTheseusLocation() {\n\t\t\tPoint whereTheseus = new Pointer(3,3);\n\t\t\tgameLoader.addTheseus(whereTheseus);\n\t\t\tPoint expected = whereTheseus;\n\t\t\tPoint actual = gameSaver.wheresTheseus();\n\t\t\t\n\t\t\tassertEquals(expected.across(), actual.across());\n\t\t\tassertEquals(expected.down(), actual.down());\n\t\t}", "@Test\r\n\tpublic void testPontoConstructor1()\r\n\t{\r\n\t\tAssert.assertEquals(\"(1.00, 2.00)\", new Ponto(1,2).toString());\r\n\t\tAssert.assertEquals(\"(0.00, 0.00)\", new Ponto(0,0).toString());\r\n\t\tAssert.assertEquals(\"(-1.00, -2.00)\", new Ponto(-1,-2).toString());\r\n\t}", "public static void addTupleAsOneCell(List<Cell> result,\n Tuple tuple,\n TupleProjector tupleProjector,\n ImmutableBytesWritable ptr) {\n byte[] value =\n tupleProjector.getSchema().toBytes(tuple, tupleProjector.getExpressions(),\n tupleProjector.getValueBitSet(), ptr);\n Cell firstCell = result.get(0);\n Cell keyValue =\n PhoenixKeyValueUtil.newKeyValue(firstCell.getRowArray(),\n firstCell.getRowOffset(),firstCell.getRowLength(), VALUE_COLUMN_FAMILY,\n VALUE_COLUMN_QUALIFIER, firstCell.getTimestamp(), value, 0, value.length);\n result.add(keyValue);\n }", "@Test\n\tpublic void Given17And17Get0() {\n\t\t\n\t\tIComparePoint ICP = new ComparePoint();\n\t\tint result = ICP.getResult(17, 17);\n\t\tassertEquals(0, result);\n\t}", "@Test\n public void testAdding(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecFile.AddCommand(VecCommandFactory.GetShapeCommand(VecCommandType.RECTANGLE, fakeCoord));\n assertEquals(VecCommandType.RECTANGLE, VecFile.GetLastCommand().GetType());\n }", "@Test\n public void getPointsTest() {\n final double[] expectedResult = new double[3];\n final double[] envelope = new double[]{-3, 2, 0, 1, 4, 0};\n\n //lower corner\n System.arraycopy(envelope, 0, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getLowerCorner(envelope)));\n\n //upper corner\n System.arraycopy(envelope, 3, expectedResult, 0, 3);\n assertTrue(Arrays.equals(expectedResult, getUpperCorner(envelope)));\n\n //median\n expectedResult[0] = -1;\n expectedResult[1] = 3;\n expectedResult[2] = 0;\n assertTrue(Arrays.equals(expectedResult, getMedian(envelope)));\n }", "public Snippet visit(PointType n, Snippet argu) {\n\t Snippet _ret=new Snippet(\"\",\"\",null, false);\n\t n.nodeToken.accept(this, argu);\n\t \t_ret.expType = new X10Point(1);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t Snippet f3 = n.rankEquation.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t // _ret.returnTemp = \"point(\"+f3.returnTemp+\")\";\n\t _ret.returnTemp = \"\"+f3.returnTemp+\"\";\n\t return _ret;\n\t }", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "@Test\n void should_first_player_win_and_finish_the_game() {\n List<Integer> setPointOrderTab = Arrays.asList(1, 1, 1, 2, 1, 1, 1); // 6-1\n\n //WHEN\n game.computePoint(setPointOrderTab, true);\n\n //THEN\n assertTrue(firstPlayer.isWinner());\n assertEquals(GameStatus.FINISHED, game.getGameStatus());\n }", "@Test\n void should_second_player_win_match_when_he_won_tie_break() {\n List<Integer> setPointOrderTab = Arrays.asList(1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 2); // 6-6 and 1-3 for secondPlayer\n\n //WHEN\n game.computePoint(setPointOrderTab, true);\n\n //THEN\n assertEquals(GameStatus.FINISHED, game.getGameStatus());\n assertTrue(secondPlayer.isWinner());\n }", "@Test\n public void testCheckPlaceValideHorizontale() throws BateauxMembreInvalide, BateauxStartPointInvalide {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(15, 15, j, p);\n\n Place[] pl = j.checkPlace(\"A6\", g, 5, true);\n Place[] att = new Place[]{new Place(\"A6\"), new Place(\"B6\"), new Place(\"C6\"), new Place(\"D6\"), new Place(\"E6\")};\n\n assertArrayEquals(\"Les places ne sont pas bonne\", att, pl);\n }", "private static List<Point> genererPointsAlea(int nbPoints) {\n /*List<Point> points = new ArrayList<>();\n Random rand = new Random(0);\n for(int i=0; i<nbPoints; i++) {\n Point p = new Point(rand.nextDouble(), rand.nextDouble());\n points.add(p);\n }\n return points;*/\n return null;\n }", "@Test\n public void testCheckPlaceVerticaleTeteDehors() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(10, 10, j, p);\n\n try {\n j.checkPlace(\"A50\", g, 5, false);\n fail(\"Une exception devrai etre lancée\");\n }\n catch (Exception e) {\n assertTrue(\"L'exception n'est pas bonne\", e instanceof BateauxStartPointInvalide);\n }\n }", "@Test\r\n public void testCalculerValeurTerrainAgricole() {\n Lot lot1 = new Lot(\"Lot1\", 2, 0, 300, \"14-02-2019\");\r\n Lot lot2 = new Lot(\"Lot2\", 2, 0, 600, \"12-06-2019\");\r\n Lot lot3 = new Lot(\"Lot3\", 2, 0, 1500, \"04-02-2019\");\r\n List<Lot> lots = new ArrayList();\r\n lots.add(lot1);\r\n lots.add(lot2);\r\n lots.add(lot3);\r\n // Terrain (typeTerrain, prix_min2, prix_min2, listLot)\r\n Terrain terrain = new Terrain(0, 50.00, 75.00, lots);\r\n Agricole.calculerValeurTerrainAgricole(terrain);\r\n // valFonciereAttendue = 50.0*300 + 50.0*600 + 50.0*1500 + 733.77 +\r\n // nbreDroitPassage = 500-(2*(5/100*300*50)) + 500-(2*(5/100*600*50))+\r\n // 500-(2*(5/100*1500*50)\r\n double valFonciereAttendue = 110233.8;\r\n double taxeScolaireAttendue=1322.85;\r\n double taxeMunicipaleAttendue = 2755.85;\r\n boolean resultat = valFonciereAttendue == terrain.getValeur_fonciere_totale()\r\n && taxeScolaireAttendue == terrain.getTaxe_scolaire()\r\n && taxeMunicipaleAttendue == terrain.getTaxe_municipale();\r\n assertTrue(\"valfoncièreAttendue: \" + valFonciereAttendue+\", vs valeur obtenue: \"+terrain.getValeur_fonciere_totale()\r\n + \"\\ntaxe scolaire attendue: \" + taxeScolaireAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_scolaire()\r\n + \"\\ntaxe muninipale attendue: \" + taxeMunicipaleAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_municipale(), \r\n resultat); \r\n \r\n }", "@Test\n void initPosition() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.initPlayer();\n\n assertTrue(p.getPh().getPowerupDeck().getSize() == 2);\n\n Powerup pu = p.getPh().getPowerupDeck().getPowerups().get(0);\n p.initPosition(p.getPh().getPowerupDeck().getPowerups().get(0).getName(), p.getPh().getPowerupDeck().getPowerups().get(0).getColor() );\n\n assertTrue(p.getPh().getPowerupDeck().getSize() == 1 && Board.getSpawnpoint(p.getPlayerPosition().getNum()).getColor() == pu.getColor());\n }", "@Test\n\tpublic void testXGivenT() {\n\t\tdouble x1 = 0, x2 = 21.65, x3 = 43.30, x4 = 47.63;\n\t\tdouble v0 = 25;\n\t\tdouble theta = 30;\n\t\tdouble t1 = 0, t2 = 1, t3 = 2, t4 = 2.2;\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t1, 0), x1, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t2, 0), x2, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t3, 0), x3, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v0, theta, t4, 0), x4, DELTA);\n\t\t\n\t\tdouble x5 = 0, x6 = 21.02, x7 = 42.05, x8 = 46.25;\n\t\tdouble v1 = 38.6;\n\t\tdouble phi = 57;\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t1, 0), x5, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t2, 0), x6, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t3, 0), x7, DELTA);\n\t\tassertEquals(PhysicsEngine.findXPos(v1, phi, t4, 0), x8, DELTA);\n\t}", "private TAPosition()\n {\n\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPILOT_JA() {\n CuteNetlibCase.doTest(\"PILOT-JA.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "Viewpoint createViewpoint();", "public TetrisPiece (int shape, int location) {\n\t\t\n\t}" ]
[ "0.75734377", "0.6780683", "0.65508384", "0.620435", "0.6095667", "0.5779748", "0.577906", "0.57592344", "0.5710004", "0.56102204", "0.5555315", "0.5541541", "0.5521745", "0.54956794", "0.5478259", "0.54234666", "0.5395509", "0.5337482", "0.53327656", "0.53280807", "0.5315006", "0.53145075", "0.5284462", "0.5262986", "0.52144057", "0.51990414", "0.51752007", "0.51644516", "0.5163248", "0.5149346", "0.5147874", "0.5145642", "0.51387846", "0.51384467", "0.51117384", "0.5086873", "0.50844836", "0.5076819", "0.5074802", "0.5068522", "0.5058346", "0.5058226", "0.5049948", "0.5042019", "0.50337476", "0.50084996", "0.5007346", "0.5002684", "0.49956366", "0.49949595", "0.49893847", "0.49880773", "0.49844033", "0.49785185", "0.49600774", "0.4956955", "0.4954562", "0.49491698", "0.49425927", "0.49379596", "0.49278715", "0.49238306", "0.49204338", "0.49166507", "0.49164224", "0.49028245", "0.49012765", "0.48987243", "0.48967594", "0.48966888", "0.48956898", "0.4895401", "0.48911315", "0.48899332", "0.48896772", "0.48874208", "0.4885801", "0.48848534", "0.48848408", "0.48821494", "0.48768908", "0.48759872", "0.48759854", "0.48720503", "0.4871665", "0.4871007", "0.48679996", "0.48665002", "0.48589036", "0.48561865", "0.48465407", "0.48462102", "0.48425037", "0.48421854", "0.4840866", "0.484033", "0.48382947", "0.48380333", "0.48350516", "0.48322502" ]
0.7297143
1
Test the tpch range tuple builder
@Test public void testTPCHLineitemRangeTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.TPCH_LINEITEM_RANGE); final Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-mm-dd"); final Date shipDateTime = dateParser.parse("1993-12-04"); final Date receiptDateTime = dateParser.parse("1994-01-01"); final double doubleShipDateTime = (double) shipDateTime.getTime(); final double doublereceiptDateTime = (double) receiptDateTime.getTime(); final Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "Range createRange();", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n long long0 = new Long(0L);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 259L);\n Range range3 = Range.of(1L);\n Range range4 = Range.of((-32768L), 0L);\n range4.equals(range2);\n range0.complement(range3);\n Range range5 = range_Builder1.build();\n assertFalse(range5.equals((Object)range4));\n }", "abstract public Range createRange();", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }", "private Range() {}", "RangeValue createRangeValue();", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n long long0 = 265L;\n range_Builder0.shift(265L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range range1 = Range.of(0L);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n List<Range> list2 = range0.complementFrom(list1);\n List<Range> list3 = range0.complementFrom(list2);\n range0.complementFrom(list3);\n Range.of((-1147L), 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 0L, 0L);\n Range range3 = range2.intersection(range0);\n range0.getEnd();\n range3.intersects(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"q)fxUX9s]Tp\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse q)fxUX9s]Tp into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "RangeOfValuesType createRangeOfValuesType();", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Range range0 = Range.of(0L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem1);\n range0.iterator();\n Range.of((-1233L), 0L);\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem1, 0L, (-1233L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "Range() {}", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Range range0 = Range.of((-1259L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n long long0 = new Long((-1259L));\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range range3 = range1.asRange();\n String string0 = null;\n range3.intersection(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. -1258 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ -1259 .. -1258 ]/SB into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, 0L, 0L);\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.of(0L, (-1813L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n range_CoordinateSystem0.toString();\n range1.equals(\"Residue Based\");\n String string0 = range_CoordinateSystem0.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test\n public void test_range_Integer_Collection4() {\n populate_i3();\n Collection<Integer> actual = Selector.range(i3, 4, 8, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(8);\n expected.add(7);\n expected.add(6);\n expected.add(5);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n Range range0 = Range.ofLength(9223372036854775807L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Comparators.valueOf(\"LONGEST_TO_SHORTEST\");\n }", "public void test4Draft(){\n assertEquals( 4, $computeRange.$list().size());\n //System.out.println( $computeRange.list$Normalized() );\n assertEquals( 4, $computeRange.$listNormalized().size());\n //System.out.println($computeRange.fill(\"multiply10to20\",10,20,\"*\"));\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n Range range0 = Range.of((-9223372036854775808L));\n range0.equals(range0);\n Range.Comparators.values();\n range0.getBegin();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n long long0 = (-1L);\n Range range0 = Range.of((-1L));\n range0.getBegin();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.build();\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test\n public void test_range_Integer_Collection1() {\n populate_i1();\n Collection<Integer> actual = Selector.range(i1, 1, 5, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(2);\n expected.add(3);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "int getRange();", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.of(range_CoordinateSystem0, (-5250L), 2383L);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.startsBefore(range0);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "private String useRangeFormat(Unit units, int lowerBound, int upperBound) {\n return lowerBound + \" to \" + upperBound + getUnits(units, upperBound);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32729 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem.values();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "public void testRanges() throws Exception {\n int num = atLeast(1000);\n for (int i = 0; i < num; i++) {\n BytesRef lowerVal = new BytesRef(TestUtil.randomUnicodeString(random()));\n BytesRef upperVal = new BytesRef(TestUtil.randomUnicodeString(random()));\n if (upperVal.compareTo(lowerVal) < 0) {\n assertSame(upperVal, lowerVal, random().nextBoolean(), random().nextBoolean());\n } else {\n assertSame(lowerVal, upperVal, random().nextBoolean(), random().nextBoolean());\n }\n }\n }", "@Test\n public void test_range_Integer_Collection3() {\n populate_i2();\n Collection<Integer> actual = Selector.range(i2, 5, 3, new CompareIntegerDescending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(5);\n expected.add(3);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n boolean boolean0 = range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem1);\n assertEquals(\"[ 1 .. 9223372036854775806 ]/RB\", string0);\n \n Range range1 = Range.parseRange(\"[ 1 .. 9223372036854775806 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertTrue(boolean1 == boolean0);\n assertFalse(range1.equals((Object)range0));\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals(0L, long0);\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n // Undeclared exception!\n try { \n range1.complement(range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -24 would make range [9223372036854775807 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n public void test_range_Integer_Collection2() {\n populate_i2();\n Collection<Integer> actual = Selector.range(i2, 3, 5, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(5);\n expected.add(3);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertFalse(range1.isEmpty());\n assertTrue(list0.contains(range1));\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-81L));\n range0.equals(range1);\n long long0 = range0.getEnd();\n assertEquals((-81L), long0);\n }", "@Test\n public void testRowRange() {\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1b).endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1b).endRow(rw2b).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).build());\n \n // Test with String input\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1s).endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1s).endRow(rw2s).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).build());\n }", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n long long0 = range0.getLength();\n assertEquals(9223372032559808565L, long0);\n \n range0.equals(\"]?&0A@\");\n Range range1 = Range.of(9223372032559808565L);\n List<Range> list0 = range0.complement(range1);\n assertTrue(list0.contains(range0));\n \n boolean boolean0 = range0.equals(\"]?&0A@\");\n assertFalse(boolean0);\n \n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 9223372032559808565 ]/RB\", string0);\n \n Range.CoordinateSystem.values();\n range1.complement(range0);\n List<Range> list1 = range1.complement(range0);\n assertTrue(list1.contains(range1));\n assertFalse(list1.equals((Object)list0));\n assertEquals(1, list1.size());\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Range.CoordinateSystem.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n Range range0 = Range.ofLength(0L);\n range0.getBegin(range_CoordinateSystem0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.spliterator();\n range0.complementFrom(linkedList0);\n range_Builder0.contractBegin(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ -1259 .. 256 ]/SB\", string0);\n \n Range range1 = Range.of((-1259L));\n range1.getEnd();\n long long0 = range1.getEnd();\n assertEquals((-1259L), long0);\n \n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n assertFalse(list0.contains(range0));\n assertEquals(0, list1.size());\n assertFalse(list0.isEmpty());\n \n Range range4 = Range.ofLength(0L);\n Range range5 = range4.intersection(range0);\n long long1 = range5.getEnd();\n assertEquals((-1L), long1);\n \n range0.intersects(range4);\n range3.equals(\"[ -1259 .. 256 ]/SB\");\n Range.of(333L);\n List<Range> list2 = range2.complement(range3);\n assertTrue(list2.contains(range0));\n }", "public void setRange(Range range) { setRange(range, true, true); }", "@Test\n public void testGetRandomRange() {\n // XXX what should be tested?\n // bad values to the range?\n // min == max?\n Assert.assertTrue(true);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range3);\n List<Range> list1 = range2.complementFrom(list0);\n Range range4 = Range.of(1207L);\n assertFalse(range4.isEmpty());\n \n boolean boolean0 = range2.isSubRangeOf(range3);\n assertTrue(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range2.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem3.toString();\n range0.equals(list1);\n assertSame(range2, range1);\n assertEquals(0, list1.size());\n \n range_CoordinateSystem1.toString();\n long long0 = range0.getEnd();\n assertEquals(255L, long0);\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n long long0 = 785L;\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 9223372036854775806L, (-128L));\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -129 would make range [9223372036854775805 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test047() throws Throwable {\n Range range0 = Range.ofLength(0L);\n String string0 = range0.toString();\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.isSubRangeOf(range0);\n assertTrue(boolean0);\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "CollectionRange createCollectionRange();", "private List<ComparisonExpression> comparisons(HashMap<TimeSelector, Long> lowerBounds,\n HashMap<TimeSelector, Long> upperBounds) {\n List<ComparisonExpression> newComparisons = new ArrayList<>();\n // for all selectors, as lowerBounds has the same keys as upperBounds\n for (Map.Entry<TimeSelector, Long> entry : lowerBounds.entrySet()) {\n TimeSelector selector = entry.getKey();\n Long lower = entry.getValue();\n Long upper = upperBounds.get(selector);\n if (lower.equals(upper)) {\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, EQ, new TimeLiteral(lower)),\n new ComparableTPGMFactory()));\n } else {\n if (lower > TemporalElement.DEFAULT_TIME_FROM) {\n // check if informative: lower bound of from is trivial lower bound of to\n if (selector.getTimeProp().equals(TX_TO)) {\n TimeSelector txFromSel = new TimeSelector(selector.getVariable(), TX_FROM);\n if (lowerBounds.getOrDefault(txFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(VAL_TO)) {\n TimeSelector valFromSel = new TimeSelector(selector.getVariable(), VAL_FROM);\n if (lowerBounds.getOrDefault(valFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(new TimeLiteral(lower), LTE, selector),\n new ComparableTPGMFactory()));\n }\n if (upper < TemporalElement.DEFAULT_TIME_TO) {\n // analagously as for lower bounds\n // upper bound of to is trivial upper of from\n if (selector.getTimeProp().equals(TimeSelector.TimeField.TX_FROM)) {\n TimeSelector txToSel = new TimeSelector(selector.getVariable(), TX_TO);\n if (upperBounds.getOrDefault(txToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(TimeSelector.TimeField.VAL_FROM)) {\n TimeSelector valToSel = new TimeSelector(selector.getVariable(), VAL_TO);\n if (upperBounds.getOrDefault(valToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, LTE, new TimeLiteral(upper)),\n new ComparableTPGMFactory()));\n }\n }\n }\n return newComparisons;\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Range range0 = Range.of(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"vH) h-=%9V8]<4%y\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.vH) h-=%9V8]<4%y\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "ValueRangeConstraint createValueRangeConstraint();", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n // Undeclared exception!\n try { \n range0.endsBefore((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Null Range used in range comparison operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.of(4294967244L);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\", range_CoordinateSystem1);\n range2.getEnd();\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\", range_CoordinateSystem2);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n List<Range> list0 = range0.complementFrom(linkedList0);\n assertEquals(0, list0.size());\n \n Range range1 = Range.of(9223372036854775807L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n boolean boolean1 = range1.endsBefore(range0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967244 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Amino;\n defaultNucleotideCodec0.encode(nucleotide0);\n int int0 = 15;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n Range range0 = Range.ofLength(359L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-874L), (-874L));\n range0.isSubRangeOf(range1);\n // Undeclared exception!\n try { \n Range.ofLength((-2918L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range0.equals(range0);\n range0.getBegin();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"[ 0 .. -1 ]/0B\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.[ 0 .. -1 ]/0B\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n boolean boolean0 = range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean1 = range0.intersects(range2);\n boolean boolean2 = range1.equals(range2);\n assertFalse(boolean2 == boolean1);\n \n range0.getEnd();\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n \n boolean boolean3 = range3.startsBefore(range1);\n assertTrue(boolean3 == boolean0);\n assertTrue(range3.isEmpty());\n assertFalse(boolean3);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n // Undeclared exception!\n try { \n Range.of(3253L, 1198L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n long long0 = new Long(0L);\n Range range1 = Range.of(4294967295L);\n long long1 = range1.getBegin();\n assertEquals(4294967295L, long1);\n \n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n Range range2 = Range.ofLength(2147483647L);\n range1.intersection(range0);\n Range range3 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n range3.getEnd();\n boolean boolean0 = range2.intersects(range0);\n boolean boolean1 = range2.equals(\"numbeg of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean1 == boolean0);\n \n Range range4 = Range.of(0L);\n assertFalse(range4.isEmpty());\n \n Range range5 = Range.of(1566L);\n List<Range> list2 = range5.complement(range2);\n assertFalse(list2.equals((Object)list0));\n assertTrue(list2.equals((Object)list1));\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, (-2147483648L), (-2147483649L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n Range range0 = Range.of(2448L);\n Range range1 = Range.of(2829L, 3687L);\n range1.equals(range0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.toString();\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"4oSq*$e[YDbph?D\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse 4oSq*$e[YDbph?D into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Override\n public boolean isRange() {\n return false;\n }", "Range controlLimits();", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n Range range0 = Range.of(4294967244L, 4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\", range_CoordinateSystem1);\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "void calculateRange() {\n //TODO: See Rules\n }", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n long long0 = (-1903L);\n // Undeclared exception!\n try { \n Range.ofLength((-1903L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "private boolean addRangeQualifier(Predicate p,QualifierPhase phase) throws StandardException{\n DataValueDescriptor value=p.getCompareValue(baseTable);\n RelationalOperator relop=p.getRelop();\n int colNum = relop.getColumnOperand(baseTable).getColumnNumber();\n int relationalOperator = relop.getOperator();\n List<SelectivityHolder> columnHolder = getSelectivityListForColumn(colNum);\n OP_SWITCH: switch(relationalOperator){\n case RelationalOperator.EQUALS_RELOP:\n columnHolder.add(new RangeSelectivity(scc,value,value,true,true,colNum,phase));\n break;\n case RelationalOperator.NOT_EQUALS_RELOP:\n columnHolder.add(new NotEqualsSelectivity(scc,colNum,phase,value));\n break;\n case RelationalOperator.IS_NULL_RELOP:\n columnHolder.add(new NullSelectivity(scc,colNum,phase));\n break;\n case RelationalOperator.IS_NOT_NULL_RELOP:\n columnHolder.add(new NotNullSelectivity(scc,colNum,phase));\n break;\n case RelationalOperator.GREATER_EQUALS_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.start==null){\n rq.start = value;\n rq.includeStart = true;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,value,null,true,true,colNum,phase));\n break;\n case RelationalOperator.GREATER_THAN_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.start==null){\n rq.start = value;\n rq.includeStart = false;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,value,null,false,true,colNum,phase));\n break;\n case RelationalOperator.LESS_EQUALS_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.stop==null){\n rq.stop = value;\n rq.includeStop = true;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,null,value,true,true,colNum,phase));\n break;\n case RelationalOperator.LESS_THAN_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.stop==null){\n rq.stop = value;\n rq.includeStop = true;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,null,value,true,false,colNum,phase));\n break;\n default:\n throw new RuntimeException(\"Unknown Qualifier Type\");\n }\n return true;\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n Range range0 = Range.of((-2147483648L));\n Range range1 = Range.of(1845L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n assertFalse(boolean0);\n \n range0.getBegin();\n assertTrue(range0.isEmpty());\n }", "public Range getTextPortsRange();", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n range0.equals(range1);\n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertTrue(range0.isEmpty());\n assertEquals(2147483647L, long0);\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range_Builder0.expandBegin((-4622L));\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "<C> CollectionRange<C> createCollectionRange();", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n long long0 = range0.getEnd();\n assertEquals((-1L), long0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 0 ]/RB\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.equals(\"[ 0 .. -1 ]/0B\");\n assertFalse(boolean0);\n \n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 0 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertFalse(boolean1);\n \n range0.complement(range1);\n long long1 = range1.getBegin();\n assertFalse(range1.equals((Object)range0));\n assertTrue(range1.isEmpty());\n assertEquals(1L, long1);\n }", "@ParameterizedTest\n @CsvSource(value = {\"0,7\", \"8,15\", \"16,23\", \"24,31\", \"0,23\", \"13, 29\"})\n void sliceGetsCorrectSignals(int min, int max) {\n //create range obj with inputs\n IRange range = new SimpleRange(min, max);\n\n //create bus of width 64 with random values\n Random r = new Random();\n int busWidth = 32;\n ISignal[] sigs = new ISignal[busWidth];\n for (int i=0; i<busWidth; i++) {\n sigs[i] = new SimpleSignal(r.nextBoolean());\n }\n IBus busToSlice = new Bus(sigs);\n\n //sliceBus the bus\n IBus result = Util.sliceBus(range, busToSlice);\n\n //need to get values from sliceBus to test\n int rangeWidth = range.getMax() - range.getMin();\n assertEquals(collectValuesFromBus(range, busToSlice), collectValuesFromBus(new SimpleRange(0, rangeWidth), result));\n\n //sweep in 8-bit slices across the bus to see if we're getting the correct range from the sliceBus util\n int numBitsInSweep = 8;\n int numSweeps = busWidth/numBitsInSweep;\n for (int i=0; i<numSweeps; i++) {\n int start = i*numBitsInSweep;\n int end = start + numBitsInSweep - 1;\n IBus slice = Util.sliceBus(new SimpleRange(start, end), busToSlice);\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n boolean boolean0 = range0.equals(\"number of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean0);\n \n Range range1 = Range.of((-2147483648L));\n List<Range> list0 = range1.complement(range0);\n assertEquals(0, list0.size());\n }", "protected final boolean rangeTestNeeded() {\n\treturn needRangeTest;\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 127L, 4294967295L);\n Range range1 = Range.ofLength(4294967295L);\n range1.toString();\n range1.equals(range0);\n long long0 = range1.getEnd();\n assertEquals(4294967294L, long0);\n \n Range.Comparators.values();\n range1.equals(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Range range1 = Range.of(0L, 0L);\n long long0 = range0.getLength();\n assertEquals(0L, long0);\n \n range1.complement(range0);\n assertFalse(range1.isEmpty());\n \n Range.Comparators.values();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin(0L);\n range_Builder0.contractBegin(0L);\n assertTrue(range0.isEmpty());\n }", "protected abstract R toRange(D lower, D upper);", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n Range range0 = null;\n Range.Builder range_Builder0 = null;\n try {\n range_Builder0 = new Range.Builder((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "private void addRangeIntegers() {\r\n ent_2_i.put(\"< 0\", -1); ent_2_i.put(\"== 0\", 0); ent_2_i.put(\"== 1\", 1); ent_2_i.put(\"< 10\", 10);\r\n ent_2_i.put(\"< 100\", 100); ent_2_i.put(\"< 1K\", 1000); ent_2_i.put(\"< 10K\", 10000); ent_2_i.put(\"< 100K\", 100000);\r\n ent_2_i.put(\"> 100K\", 1000000);\r\n }" ]
[ "0.67310286", "0.6659138", "0.65370893", "0.6493376", "0.6331656", "0.6193803", "0.6160918", "0.6152105", "0.6130052", "0.6039156", "0.59983903", "0.59983325", "0.5989504", "0.59817964", "0.5965886", "0.5961833", "0.5957433", "0.5956415", "0.59542084", "0.5891196", "0.5889674", "0.5884589", "0.58832866", "0.5870812", "0.5849196", "0.5821343", "0.5808182", "0.578398", "0.57704484", "0.5767458", "0.5761142", "0.5735087", "0.5728529", "0.5697994", "0.5692444", "0.569212", "0.5675242", "0.56643134", "0.56567156", "0.563567", "0.5626495", "0.5625712", "0.5611612", "0.5607855", "0.55813116", "0.5577848", "0.55774295", "0.5576171", "0.55710053", "0.5569114", "0.5565013", "0.5556608", "0.5548496", "0.55415654", "0.5533014", "0.5531782", "0.55246687", "0.5522489", "0.5521112", "0.5507836", "0.5499214", "0.5494291", "0.5488777", "0.5486372", "0.54749244", "0.5466875", "0.5461197", "0.5437269", "0.54360867", "0.54258186", "0.5413919", "0.5406017", "0.54008764", "0.5392594", "0.539031", "0.5375892", "0.5374722", "0.5369985", "0.5360168", "0.5359559", "0.5356436", "0.53542197", "0.534819", "0.5344293", "0.53409904", "0.53366894", "0.53352505", "0.53319556", "0.53278536", "0.53267646", "0.532514", "0.53109765", "0.531056", "0.530117", "0.52994865", "0.52992946", "0.52961856", "0.5295643", "0.528994", "0.5289707" ]
0.6910771
0
Test the tpch range tuple builder
@Test public void testTPCHOrderPointTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.TPCH_ORDER_POINT); final Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-mm-dd"); final Date orderDate = dateParser.parse("1996-01-02"); final double doubleOrder = (double) orderDate.getTime(); final Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder); Assert.assertEquals(expectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "Range createRange();", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n long long0 = new Long(0L);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 259L);\n Range range3 = Range.of(1L);\n Range range4 = Range.of((-32768L), 0L);\n range4.equals(range2);\n range0.complement(range3);\n Range range5 = range_Builder1.build();\n assertFalse(range5.equals((Object)range4));\n }", "abstract public Range createRange();", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }", "private Range() {}", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }", "RangeValue createRangeValue();", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n long long0 = 265L;\n range_Builder0.shift(265L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range range1 = Range.of(0L);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n List<Range> list2 = range0.complementFrom(list1);\n List<Range> list3 = range0.complementFrom(list2);\n range0.complementFrom(list3);\n Range.of((-1147L), 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 0L, 0L);\n Range range3 = range2.intersection(range0);\n range0.getEnd();\n range3.intersects(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"q)fxUX9s]Tp\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse q)fxUX9s]Tp into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Range range0 = Range.of(0L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem1);\n range0.iterator();\n Range.of((-1233L), 0L);\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem1, 0L, (-1233L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "RangeOfValuesType createRangeOfValuesType();", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "Range() {}", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Range range0 = Range.of((-1259L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n long long0 = new Long((-1259L));\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range range3 = range1.asRange();\n String string0 = null;\n range3.intersection(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. -1258 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ -1259 .. -1258 ]/SB into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, 0L, 0L);\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.of(0L, (-1813L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n range_CoordinateSystem0.toString();\n range1.equals(\"Residue Based\");\n String string0 = range_CoordinateSystem0.toString();\n assertEquals(\"Residue Based\", string0);\n }", "@Test\n public void test_range_Integer_Collection4() {\n populate_i3();\n Collection<Integer> actual = Selector.range(i3, 4, 8, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(8);\n expected.add(7);\n expected.add(6);\n expected.add(5);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n Range range0 = Range.ofLength(9223372036854775807L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range.Comparators.valueOf(\"LONGEST_TO_SHORTEST\");\n }", "public void test4Draft(){\n assertEquals( 4, $computeRange.$list().size());\n //System.out.println( $computeRange.list$Normalized() );\n assertEquals( 4, $computeRange.$listNormalized().size());\n //System.out.println($computeRange.fill(\"multiply10to20\",10,20,\"*\"));\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n Range range0 = Range.of((-9223372036854775808L));\n range0.equals(range0);\n Range.Comparators.values();\n range0.getBegin();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n long long0 = (-1L);\n Range range0 = Range.of((-1L));\n range0.getBegin();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.build();\n long long1 = 0L;\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test\n public void test_range_Integer_Collection1() {\n populate_i1();\n Collection<Integer> actual = Selector.range(i1, 1, 5, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(2);\n expected.add(3);\n expected.add(4);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "int getRange();", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.of(range_CoordinateSystem0, (-5250L), 2383L);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.startsBefore(range0);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "private String useRangeFormat(Unit units, int lowerBound, int upperBound) {\n return lowerBound + \" to \" + upperBound + getUnits(units, upperBound);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32729 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem.values();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "public void testRanges() throws Exception {\n int num = atLeast(1000);\n for (int i = 0; i < num; i++) {\n BytesRef lowerVal = new BytesRef(TestUtil.randomUnicodeString(random()));\n BytesRef upperVal = new BytesRef(TestUtil.randomUnicodeString(random()));\n if (upperVal.compareTo(lowerVal) < 0) {\n assertSame(upperVal, lowerVal, random().nextBoolean(), random().nextBoolean());\n } else {\n assertSame(lowerVal, upperVal, random().nextBoolean(), random().nextBoolean());\n }\n }\n }", "@Test\n public void test_range_Integer_Collection3() {\n populate_i2();\n Collection<Integer> actual = Selector.range(i2, 5, 3, new CompareIntegerDescending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(5);\n expected.add(3);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n boolean boolean0 = range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem1);\n assertEquals(\"[ 1 .. 9223372036854775806 ]/RB\", string0);\n \n Range range1 = Range.parseRange(\"[ 1 .. 9223372036854775806 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertTrue(boolean1 == boolean0);\n assertFalse(range1.equals((Object)range0));\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals(0L, long0);\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of(9223372036854775807L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n // Undeclared exception!\n try { \n range1.complement(range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -24 would make range [9223372036854775807 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n public void test_range_Integer_Collection2() {\n populate_i2();\n Collection<Integer> actual = Selector.range(i2, 3, 5, new CompareIntegerAscending());\n Collection<Integer> expected = new ArrayList<Integer>();\n expected.add(5);\n expected.add(3);\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertFalse(range1.isEmpty());\n assertTrue(list0.contains(range1));\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-81L));\n range0.equals(range1);\n long long0 = range0.getEnd();\n assertEquals((-81L), long0);\n }", "@Test\n public void testRowRange() {\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1b).endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1b).endRow(rw2b).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1b).exclusive().endRow(rw2b).build());\n \n // Test with String input\n Assert.assertEquals(new Span(rw1b, true, rw2b, false), \n new Span.Builder().startRow(rw1s).endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, false), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).exclusive().build());\n Assert.assertEquals(new Span(rw1b, true, rw2b, true), \n new Span.Builder().startRow(rw1s).endRow(rw2s).build());\n Assert.assertEquals(new Span(rw1b, false, rw2b, true), \n new Span.Builder().startRow(rw1s).exclusive().endRow(rw2s).build());\n }", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n long long0 = range0.getLength();\n assertEquals(9223372032559808565L, long0);\n \n range0.equals(\"]?&0A@\");\n Range range1 = Range.of(9223372032559808565L);\n List<Range> list0 = range0.complement(range1);\n assertTrue(list0.contains(range0));\n \n boolean boolean0 = range0.equals(\"]?&0A@\");\n assertFalse(boolean0);\n \n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 9223372032559808565 ]/RB\", string0);\n \n Range.CoordinateSystem.values();\n range1.complement(range0);\n List<Range> list1 = range1.complement(range0);\n assertTrue(list1.contains(range1));\n assertFalse(list1.equals((Object)list0));\n assertEquals(1, list1.size());\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Range.CoordinateSystem.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n Range range0 = Range.ofLength(0L);\n range0.getBegin(range_CoordinateSystem0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.spliterator();\n range0.complementFrom(linkedList0);\n range_Builder0.contractBegin(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ -1259 .. 256 ]/SB\", string0);\n \n Range range1 = Range.of((-1259L));\n range1.getEnd();\n long long0 = range1.getEnd();\n assertEquals((-1259L), long0);\n \n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n assertFalse(list0.contains(range0));\n assertEquals(0, list1.size());\n assertFalse(list0.isEmpty());\n \n Range range4 = Range.ofLength(0L);\n Range range5 = range4.intersection(range0);\n long long1 = range5.getEnd();\n assertEquals((-1L), long1);\n \n range0.intersects(range4);\n range3.equals(\"[ -1259 .. 256 ]/SB\");\n Range.of(333L);\n List<Range> list2 = range2.complement(range3);\n assertTrue(list2.contains(range0));\n }", "@Test\n public void testGetRandomRange() {\n // XXX what should be tested?\n // bad values to the range?\n // min == max?\n Assert.assertTrue(true);\n }", "public void setRange(Range range) { setRange(range, true, true); }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range3);\n List<Range> list1 = range2.complementFrom(list0);\n Range range4 = Range.of(1207L);\n assertFalse(range4.isEmpty());\n \n boolean boolean0 = range2.isSubRangeOf(range3);\n assertTrue(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range2.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem3.toString();\n range0.equals(list1);\n assertSame(range2, range1);\n assertEquals(0, list1.size());\n \n range_CoordinateSystem1.toString();\n long long0 = range0.getEnd();\n assertEquals(255L, long0);\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n long long0 = 785L;\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 9223372036854775806L, (-128L));\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -129 would make range [9223372036854775805 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test047() throws Throwable {\n Range range0 = Range.ofLength(0L);\n String string0 = range0.toString();\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.isSubRangeOf(range0);\n assertTrue(boolean0);\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "CollectionRange createCollectionRange();", "private List<ComparisonExpression> comparisons(HashMap<TimeSelector, Long> lowerBounds,\n HashMap<TimeSelector, Long> upperBounds) {\n List<ComparisonExpression> newComparisons = new ArrayList<>();\n // for all selectors, as lowerBounds has the same keys as upperBounds\n for (Map.Entry<TimeSelector, Long> entry : lowerBounds.entrySet()) {\n TimeSelector selector = entry.getKey();\n Long lower = entry.getValue();\n Long upper = upperBounds.get(selector);\n if (lower.equals(upper)) {\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, EQ, new TimeLiteral(lower)),\n new ComparableTPGMFactory()));\n } else {\n if (lower > TemporalElement.DEFAULT_TIME_FROM) {\n // check if informative: lower bound of from is trivial lower bound of to\n if (selector.getTimeProp().equals(TX_TO)) {\n TimeSelector txFromSel = new TimeSelector(selector.getVariable(), TX_FROM);\n if (lowerBounds.getOrDefault(txFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(VAL_TO)) {\n TimeSelector valFromSel = new TimeSelector(selector.getVariable(), VAL_FROM);\n if (lowerBounds.getOrDefault(valFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(new TimeLiteral(lower), LTE, selector),\n new ComparableTPGMFactory()));\n }\n if (upper < TemporalElement.DEFAULT_TIME_TO) {\n // analagously as for lower bounds\n // upper bound of to is trivial upper of from\n if (selector.getTimeProp().equals(TimeSelector.TimeField.TX_FROM)) {\n TimeSelector txToSel = new TimeSelector(selector.getVariable(), TX_TO);\n if (upperBounds.getOrDefault(txToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(TimeSelector.TimeField.VAL_FROM)) {\n TimeSelector valToSel = new TimeSelector(selector.getVariable(), VAL_TO);\n if (upperBounds.getOrDefault(valToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, LTE, new TimeLiteral(upper)),\n new ComparableTPGMFactory()));\n }\n }\n }\n return newComparisons;\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Range range0 = Range.of(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"vH) h-=%9V8]<4%y\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.vH) h-=%9V8]<4%y\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "ValueRangeConstraint createValueRangeConstraint();", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n // Undeclared exception!\n try { \n range0.endsBefore((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Null Range used in range comparison operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.of(4294967244L);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\", range_CoordinateSystem1);\n range2.getEnd();\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\", range_CoordinateSystem2);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-23L), (-23L));\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin((-23L));\n range_Builder0.shift((-23L));\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n List<Range> list0 = range0.complementFrom(linkedList0);\n assertEquals(0, list0.size());\n \n Range range1 = Range.of(9223372036854775807L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n range_CoordinateSystem2.toString();\n range0.equals(\"Zero Based\");\n range_CoordinateSystem1.toString();\n boolean boolean1 = range1.endsBefore(range0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 4294967244L, 9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967244 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Amino;\n defaultNucleotideCodec0.encode(nucleotide0);\n int int0 = 15;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n Range range0 = Range.ofLength(359L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-874L), (-874L));\n range0.isSubRangeOf(range1);\n // Undeclared exception!\n try { \n Range.ofLength((-2918L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range0.equals(range0);\n range0.getBegin();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"[ 0 .. -1 ]/0B\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.[ 0 .. -1 ]/0B\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n boolean boolean0 = range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean1 = range0.intersects(range2);\n boolean boolean2 = range1.equals(range2);\n assertFalse(boolean2 == boolean1);\n \n range0.getEnd();\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n \n boolean boolean3 = range3.startsBefore(range1);\n assertTrue(boolean3 == boolean0);\n assertTrue(range3.isEmpty());\n assertFalse(boolean3);\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n // Undeclared exception!\n try { \n Range.of(3253L, 1198L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n long long0 = new Long(0L);\n Range range1 = Range.of(4294967295L);\n long long1 = range1.getBegin();\n assertEquals(4294967295L, long1);\n \n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n Range range2 = Range.ofLength(2147483647L);\n range1.intersection(range0);\n Range range3 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n range3.getEnd();\n boolean boolean0 = range2.intersects(range0);\n boolean boolean1 = range2.equals(\"numbeg of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean1 == boolean0);\n \n Range range4 = Range.of(0L);\n assertFalse(range4.isEmpty());\n \n Range range5 = Range.of(1566L);\n List<Range> list2 = range5.complement(range2);\n assertFalse(list2.equals((Object)list0));\n assertTrue(list2.equals((Object)list1));\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, (-2147483648L), (-2147483649L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n Range range0 = Range.of(2448L);\n Range range1 = Range.of(2829L, 3687L);\n range1.equals(range0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.toString();\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"4oSq*$e[YDbph?D\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse 4oSq*$e[YDbph?D into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "Range controlLimits();", "@Override\n public boolean isRange() {\n return false;\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n Range range0 = Range.of(4294967244L, 4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\", range_CoordinateSystem1);\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "void calculateRange() {\n //TODO: See Rules\n }", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n long long0 = (-1903L);\n // Undeclared exception!\n try { \n Range.ofLength((-1903L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "private boolean addRangeQualifier(Predicate p,QualifierPhase phase) throws StandardException{\n DataValueDescriptor value=p.getCompareValue(baseTable);\n RelationalOperator relop=p.getRelop();\n int colNum = relop.getColumnOperand(baseTable).getColumnNumber();\n int relationalOperator = relop.getOperator();\n List<SelectivityHolder> columnHolder = getSelectivityListForColumn(colNum);\n OP_SWITCH: switch(relationalOperator){\n case RelationalOperator.EQUALS_RELOP:\n columnHolder.add(new RangeSelectivity(scc,value,value,true,true,colNum,phase));\n break;\n case RelationalOperator.NOT_EQUALS_RELOP:\n columnHolder.add(new NotEqualsSelectivity(scc,colNum,phase,value));\n break;\n case RelationalOperator.IS_NULL_RELOP:\n columnHolder.add(new NullSelectivity(scc,colNum,phase));\n break;\n case RelationalOperator.IS_NOT_NULL_RELOP:\n columnHolder.add(new NotNullSelectivity(scc,colNum,phase));\n break;\n case RelationalOperator.GREATER_EQUALS_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.start==null){\n rq.start = value;\n rq.includeStart = true;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,value,null,true,true,colNum,phase));\n break;\n case RelationalOperator.GREATER_THAN_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.start==null){\n rq.start = value;\n rq.includeStart = false;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,value,null,false,true,colNum,phase));\n break;\n case RelationalOperator.LESS_EQUALS_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.stop==null){\n rq.stop = value;\n rq.includeStop = true;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,null,value,true,true,colNum,phase));\n break;\n case RelationalOperator.LESS_THAN_RELOP:\n for(SelectivityHolder sh: columnHolder){\n if (!sh.isRangeSelectivity())\n continue;\n RangeSelectivity rq = (RangeSelectivity) sh;\n if(rq.stop==null){\n rq.stop = value;\n rq.includeStop = true;\n break OP_SWITCH;\n }\n }\n columnHolder.add(new RangeSelectivity(scc,null,value,true,false,colNum,phase));\n break;\n default:\n throw new RuntimeException(\"Unknown Qualifier Type\");\n }\n return true;\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n Range range0 = Range.of((-2147483648L));\n Range range1 = Range.of(1845L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n assertFalse(boolean0);\n \n range0.getBegin();\n assertTrue(range0.isEmpty());\n }", "public Range getTextPortsRange();", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandEnd((-4622L));\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range_Builder0.expandBegin((-4622L));\n range0.equals((Object) null);\n String string0 = null;\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n range0.equals(range1);\n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertTrue(range0.isEmpty());\n assertEquals(2147483647L, long0);\n }", "<C> CollectionRange<C> createCollectionRange();", "@ParameterizedTest\n @CsvSource(value = {\"0,7\", \"8,15\", \"16,23\", \"24,31\", \"0,23\", \"13, 29\"})\n void sliceGetsCorrectSignals(int min, int max) {\n //create range obj with inputs\n IRange range = new SimpleRange(min, max);\n\n //create bus of width 64 with random values\n Random r = new Random();\n int busWidth = 32;\n ISignal[] sigs = new ISignal[busWidth];\n for (int i=0; i<busWidth; i++) {\n sigs[i] = new SimpleSignal(r.nextBoolean());\n }\n IBus busToSlice = new Bus(sigs);\n\n //sliceBus the bus\n IBus result = Util.sliceBus(range, busToSlice);\n\n //need to get values from sliceBus to test\n int rangeWidth = range.getMax() - range.getMin();\n assertEquals(collectValuesFromBus(range, busToSlice), collectValuesFromBus(new SimpleRange(0, rangeWidth), result));\n\n //sweep in 8-bit slices across the bus to see if we're getting the correct range from the sliceBus util\n int numBitsInSweep = 8;\n int numSweeps = busWidth/numBitsInSweep;\n for (int i=0; i<numSweeps; i++) {\n int start = i*numBitsInSweep;\n int end = start + numBitsInSweep - 1;\n IBus slice = Util.sliceBus(new SimpleRange(start, end), busToSlice);\n }\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n long long0 = range0.getEnd();\n assertEquals((-1L), long0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 0 ]/RB\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.equals(\"[ 0 .. -1 ]/0B\");\n assertFalse(boolean0);\n \n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 0 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertFalse(boolean1);\n \n range0.complement(range1);\n long long1 = range1.getBegin();\n assertFalse(range1.equals((Object)range0));\n assertTrue(range1.isEmpty());\n assertEquals(1L, long1);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n boolean boolean0 = range0.equals(\"number of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean0);\n \n Range range1 = Range.of((-2147483648L));\n List<Range> list0 = range1.complement(range0);\n assertEquals(0, list0.size());\n }", "protected final boolean rangeTestNeeded() {\n\treturn needRangeTest;\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 127L, 4294967295L);\n Range range1 = Range.ofLength(4294967295L);\n range1.toString();\n range1.equals(range0);\n long long0 = range1.getEnd();\n assertEquals(4294967294L, long0);\n \n Range.Comparators.values();\n range1.equals(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Range range1 = Range.of(0L, 0L);\n long long0 = range0.getLength();\n assertEquals(0L, long0);\n \n range1.complement(range0);\n assertFalse(range1.isEmpty());\n \n Range.Comparators.values();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin(0L);\n range_Builder0.contractBegin(0L);\n assertTrue(range0.isEmpty());\n }", "protected abstract R toRange(D lower, D upper);", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n Range range0 = null;\n Range.Builder range_Builder0 = null;\n try {\n range_Builder0 = new Range.Builder((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "private void addRangeIntegers() {\r\n ent_2_i.put(\"< 0\", -1); ent_2_i.put(\"== 0\", 0); ent_2_i.put(\"== 1\", 1); ent_2_i.put(\"< 10\", 10);\r\n ent_2_i.put(\"< 100\", 100); ent_2_i.put(\"< 1K\", 1000); ent_2_i.put(\"< 10K\", 10000); ent_2_i.put(\"< 100K\", 100000);\r\n ent_2_i.put(\"> 100K\", 1000000);\r\n }" ]
[ "0.69108725", "0.6731333", "0.6659592", "0.65374637", "0.6493511", "0.6332022", "0.61917335", "0.6161596", "0.61525244", "0.6130798", "0.60387796", "0.5998984", "0.59983456", "0.5987852", "0.5982748", "0.5965352", "0.5960541", "0.5957237", "0.5955771", "0.5954874", "0.5890625", "0.5889487", "0.5884906", "0.58831984", "0.5869007", "0.5849935", "0.58222353", "0.58091354", "0.5784627", "0.577095", "0.57686365", "0.5761495", "0.573549", "0.57288873", "0.56987315", "0.56930935", "0.5692896", "0.5675106", "0.56654215", "0.5657429", "0.5635084", "0.56267315", "0.56260294", "0.5612054", "0.56075543", "0.55820096", "0.5578454", "0.5578349", "0.55756027", "0.5571716", "0.5569087", "0.55634516", "0.55560225", "0.55489594", "0.55418205", "0.5532357", "0.5531151", "0.5525257", "0.5523122", "0.55211735", "0.5508038", "0.55006766", "0.5493373", "0.5489122", "0.548781", "0.54733276", "0.54676086", "0.5461032", "0.5437542", "0.54362404", "0.5426911", "0.54153115", "0.54060704", "0.540185", "0.53926665", "0.5390969", "0.53755856", "0.53751063", "0.5370614", "0.5359634", "0.5359559", "0.53569484", "0.53543454", "0.5349325", "0.5343698", "0.5340595", "0.53369874", "0.5335572", "0.53308094", "0.53280973", "0.53277415", "0.5324012", "0.53107095", "0.53105587", "0.53016233", "0.5300171", "0.5299467", "0.5296462", "0.52939224", "0.5291124", "0.5288629" ]
0.0
-1
Test the synthetic tuple builder
@Test public void testSyntheticTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.SYNTHETIC); final Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267, 49.11808592466023, 52.72529828070016); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); Assert.assertEquals("e1k141dox9rayxo544y9", new String(tuple.getDataBytes())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "private Tuples() {}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "TupleExpr createTupleExpr();", "TupleLiteralExp createTupleLiteralExp();", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "Astro tuple(AstroArg args);", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "public boolean isGeneralTuple();", "TupleLiteralPart createTupleLiteralPart();", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf986_failAssert26_literalMutation2679() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"javautil.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(expected, \"javautil.List<@com.squareup.javapoet.AmplAnnotatedTypeNameTest.NeverNull 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 null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_480 = (java.util.Map)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_480);\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_478 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_478);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_476 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_476);\n // StatementAdderMethod cloned existing statement\n vc_476.get(vc_478, vc_480);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf986 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "public void testUnpackMultipleTuples() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}, {\"v3\", \"v4\"}, {\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\");\n results.expectTuple(\"vva\", \"vvb\", \"v3\", \"v4\");\n results.expectTuple(\"vva\", \"vvb\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3); \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 }", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "private SchemaTupleFactory internalNewSchemaTupleFactory(Schema s, boolean isAppendable, GenContext context) {\n return newSchemaTupleFactory(Triple.make(new SchemaKey(s), isAppendable, context));\n }", "TupleTypeRule createTupleTypeRule();", "@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 }", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "public abstract T getTuple(int aPosition);", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "@Test\n public void test_getAndSet_ByIndex_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods _________________________________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", 0,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", 1,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // continuation primiative field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 2,\n 456, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 3,\n 789, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n\n\n\n // Object Continuation\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n\n // Test the Get & Set methods _________________________________________________________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 1,\n MPSymbols.byte$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n }", "@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 }", "@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 }", "public abstract T getTuple(Record record);", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@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\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "protected Tuple cleanTuple(Tuple result)\n {\n return result;\n }", "private Tuples() {\n // prevent instantiation.\n }", "@Specialization\n\t\tString type(OzBacktrace backtrace) {\n\t\t\treturn \"tuple\";\n\t\t}", "public boolean isTuple() {\n return PyTorchLibrary.LIB.iValueIsTuple(getHandle());\n }", "@Test\n public void testErrorTuple() throws Exception {\n TestBolt tb = spy(new TestBolt(true));\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).reportError(any(BoltProcessingException.class));\n }", "static Tuple wrap(Tuple init, long sign) throws ExecException {\n\t\tTuple tup = tf.newTuple(2);\n\t\ttup.set(0, init.get(0));\n\t\ttup.set(1, sign);\n\t\t\n\t\tDataBag bag = bf.newDefaultBag();\n\t\tbag.add(tup);\n\t\t\n\t\treturn tf.newTuple(bag);\n\t}", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\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 }", "public TupleDesc getTupleDesc();", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n void appendSwitchedTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{1}||{0}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(2, 4)),\n new BindWithPos(bindName2, String.class, List.of(1, 3)));\n }", "@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}", "@Test\n public void test_getAndSet_ByIndex_GenericMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n\n // Test the Get & Set methods & the Special Field-Value Get & Set methods - Object Type (string) _______________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n \"hello\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n (short)10, null, null, (short)-1001); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Continuation Field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 2,\n 11, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 3,\n 12, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Object Continuation ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n MPSymbols.int$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n }", "public void testUnpackMultipleTuplesMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"b1_t1_v1\", \"b1_t1_v2\"}, {\"b1_t2_v1\", \"b1_t2_v2\"}, {\"b1_t3_v1\", \"b1_t3_v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"b2_t1_v1\", \"b2_t1_v2\"}, {\"b2_t2_v1\", \"b2_t2_v2\"}, {\"b2_t3_v1\", \"b2_t3_v2\"}});\n baggage.put(\"bag3\", new Object[][] {{\"b3_t1_v1\", \"b3_t1_v2\"}, {\"b3_t2_v1\", \"b3_t2_v2\"}, {\"b3_t3_v1\", \"b3_t3_v2\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n int expected = 3 * 3 * 3 * 3;\n for (int i = 0; i < expected; i++) {\n results.expectTuple(\"vva\");\n }\n results.check();\n assertTrue(\"Expect \"+expected+\" output tuple emitted\", results.emitted.size() == expected); \n }", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\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(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.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}", "public static interface Tuple {\n\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8863_cf10076_failAssert14() {\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 // AssertGenerator replace invocation\n java.lang.String o_annotatedParameterizedType_cf8863__7 = // StatementAdderMethod cloned existing statement\n type.toString();\n // MethodAssertGenerator build local variable\n Object o_9_0 = o_annotatedParameterizedType_cf8863__7;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_4280 = (java.lang.reflect.Type)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_4280);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8863_cf10076 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@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 }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf919() {\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 null value\n java.lang.Object vc_434 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_434);\n // AssertGenerator replace invocation\n boolean o_annotatedArgumentOfParameterizedType_cf919__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_434);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf919__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\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\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "protected void handleData(T tuple)\n throws DataException\n {\n \n if (tuple.isMutable())\n {\n if (sequence!=null)\n {\n if (sequenceField.getValue(tuple)==null)\n { \n String sequenceVal = Long.toString(sequence.next());\n if (debug)\n { \n log.fine\n (\"Generated sequence \"+sequenceVal\n +\" for \"+sequenceField.getURI()\n );\n }\n \n sequenceField.setValue\n ((EditableTuple) tuple\n ,sequenceField.getType().fromString(sequenceVal)\n ); \n }\n else\n { \n if (debug)\n {\n log.fine\n (\"Sequence field not null \"+sequenceField.getURI());\n }\n }\n }\n else\n { \n if (sequenceField!=null)\n { log.fine(\"Sequence is null for \"+sequenceField);\n }\n }\n\n if (defaultSetters!=null)\n {\n for (Setter<?> setter : defaultSetters)\n { \n if (setter.getTarget().get()==null)\n { setter.set();\n }\n }\n }\n\n if (fixedSetters!=null)\n {\n for (Setter<?> setter : fixedSetters)\n { setter.set();\n }\n }\n }\n else\n {\n if (debug)\n {\n log.fine\n (\"Not a mutable Tuple \"+tuple);\n }\n }\n \n if (inspector!=null)\n {\n Violation<T>[] violations=inspector.inspect(tuple);\n if (violations!=null)\n { throw new DataException(null,new RuleException(violations));\n }\n }\n \n }", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8854_failAssert27() {\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 // StatementAdderMethod cloned existing statement\n type.unbox();\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8854 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf999_failAssert29() {\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 // StatementAdderMethod cloned existing statement\n type.unbox();\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf999 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@Test(timeout = 10000)\n public void innerClassInGenericType_sd11111_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method genericStringInner = getClass().getDeclaredMethod(\"testGenericStringInner\");\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(genericStringInner.getReturnType());\n TypeName genericTypeName = TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(getClass().getDeclaredMethod(\"testGenericIntInner\").getGenericReturnType());\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"innerClassInGenericType_sd11111 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public void testAll55() throws Exception {\n String[] signature = {\"[QObject;\", \"I\", \"Z\"};\r\n String[] newNames = {\"e\"};\r\n String[] newTypes = {\"boolean\"};\r\n String[] newDefaultValues = {\"true\"};\r\n TestParameterInfo[] newParamInfo = createTestParamInfos(newTypes, newNames,\r\n newDefaultValues);\r\n int[] newIndices = {2};\r\n helperAdd(signature, newParamInfo, newIndices);\r\n\r\n }", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\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 }", "@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 }", "@Test(timeout = 10000)\n public void innerGenericInGenericType_sd19249_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method genericStringInner = getClass().getDeclaredMethod(\"testGenericInnerLong\");\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(genericStringInner.getReturnType());\n TypeName genericTypeName = TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(getClass().getDeclaredMethod(\"testGenericInnerInt\").getGenericReturnType());\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"innerGenericInGenericType_sd19249 should have thrown UnsupportedOperationException\");\n } catch (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 }", "public void testUnpackNoValuesMulti() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}, {}, {}, {}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 4 output tuples emitted\", results.emitted.size() == 4);\n }", "EExpr slotsTuple(ENodeBuilder b, EExpr optPrefix, String[] exports) {\n return mixedTuple(b, optPrefix, exports, null, null);\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf927() {\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_cf927__10 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf927__10);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@VTID(13)\r\n java.lang.String getTuple();", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "public final boolean[] isBdedQuantATuple() { return this.tupleOrs; }", "public void testRawQuery() {\n Random random = new Random();\n ContentValues values1 = makeServiceStateValues(random, mBaseDb);\n final long row1 = mBaseDb.insert(TBL_SERVICE_STATE, null, values1);\n ContentValues values2 = makeServiceStateValues(random, mBaseDb);\n final long row2 = mBaseDb.insert(TBL_SERVICE_STATE, null, values2);\n\n // query tuple\n ServiceStateTable table = new ServiceStateTable();\n String sql = \"SELECT * FROM \" + TBL_SERVICE_STATE + \" WHERE \" + COL_ID + \" = ?\";\n String[] selectionArgs = { String.valueOf(row1) };\n List<ServiceStateTuple> tuples = table.rawQuery(mTestContext, sql, selectionArgs);\n\n // verify values\n assertNotNull(tuples);\n // klocwork\n if (tuples == null) return;\n assertFalse(tuples.isEmpty());\n assertEquals(1, tuples.size());\n ServiceStateTuple tuple = tuples.get(0);\n assertValuesTuple(row1, values1, tuple);\n }", "@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 }", "public void testUnpack() throws InvalidAdviceException {\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag7\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag4\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"pb\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"23498ngnjs\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "public void testUnpackNoValues() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }", "public void test17() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public abstract void handleTuple(ITuple tuple);", "@Test(timeout = 10000)\n public void innerStaticInGenericType_sd27375_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method staticInGeneric = getClass().getDeclaredMethod(\"testNestedNonGeneric\");\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(staticInGeneric.getReturnType());\n TypeName typeName = TypeName.get(staticInGeneric.getGenericReturnType());\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"innerStaticInGenericType_sd27375 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "boolean hasSymbolTuple();", "public static void main(String[] args) {\n\n\n\t\tHashSet<String> actual = uniqueTuple(\"aaabbb\", 2);\n\t\tHashSet<String> expected = new HashSet<String>();\n\t\texpected.add(\"aa\");\n\t\texpected.add(\"ab\");\n\t\texpected.add(\"bb\");\n System.out.println(expected.containsAll(actual));\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf920() {\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 // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf920__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8817_failAssert18() {\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.lang.reflect.Type vc_3704 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_3702 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_3702.get(vc_3704);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8817 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "public void testAll57() throws Exception {\n String[] signature = {\"I\", \"QString;\", \"QString;\"};\r\n String[] newNames = null;\r\n String[] newTypes = null;\r\n String[] newDefaultValues = null;\r\n TestParameterInfo[] newParamInfo = createTestParamInfos(newTypes, newNames,\r\n newDefaultValues);\r\n int[] newIndices = null;\r\n\r\n String[] oldParamNames = {\"i\", \"hello\", \"goodbye\"};\r\n String[] newParamNames = oldParamNames;\r\n int[] permutation = {0, 2, 1};\r\n int[] deletedIndices = {};\r\n int newVisibility = BinModifier.PUBLIC;\r\n String newReturnTypeName = null;\r\n helperDoAll(\"TEST$X\", \"method\", signature, newParamInfo, newIndices,\r\n oldParamNames, newParamNames, null, permutation, newVisibility,\r\n deletedIndices, newReturnTypeName, false, 0);\r\n }", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8860_cf9987_failAssert6() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // MethodAssertGenerator build local variable\n Object o_9_1 = 2123584667;\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 // AssertGenerator replace invocation\n int o_annotatedParameterizedType_cf8860__7 = // StatementAdderMethod cloned existing statement\n type.hashCode();\n // MethodAssertGenerator build local variable\n Object o_9_0 = o_annotatedParameterizedType_cf8860__7;\n // StatementAdderMethod cloned existing statement\n type.unbox();\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8860_cf9987 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "public interface IGeneralTuple {\r\n /**\r\n * Sets the values for a tuple.\r\n * @param values the tuple values\r\n */\r\n public void setValues(List<Object> values);\r\n /**\r\n * Returns the list of values in a tuple.\r\n * @return the list of values\r\n */\r\n public List<Object> getValues();\r\n /**\r\n * Returns the value located in a specific index of the list of values. \r\n * @param index the index in which the value is located\r\n * @return the value \r\n */\r\n public Object getValue(int index);\r\n /**\r\n * Returns whether it is a general tuple.\r\n * @return a boolean value indicating whether it is a general tuple\r\n */\r\n public boolean isGeneralTuple();\r\n}", "public boolean serializeTuple( ByteBuffer buf, TupleAccessor tuple ) {\n buf.mark();\n try\n {\n scanFields( tuple );\n writer.startBlock( buf );\n writer.writeHeader( isNull, isRepeated );\n writeFields( tuple );\n writer.endBlock();\n return true;\n }\n catch ( IndexOutOfBoundsException e ) {\n buf.reset();\n return false;\n }\n }", "public void testUnpackFromCorrectBag() throws InvalidAdviceException {\n Object[][] t1 = {{\"dsifji2oj\", \"23498ngnjs\"}};\n Object[][] t2 = {{\"dsfj9\", \"u1h32jbn4l1 '\"}};\n Object[][] t3 = {{\"24oi23n\", \"022l;'][ \"}};\n Object[][] t4 = {{\"0m0lkj34\", \"hh2h2n jds \"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(\"bag1\", t1).put(\"bag2\", t2).put(\"bag3\", t3).put(\"bag4\", t4);\n\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag1\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag2\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"u1h32jbn4l1 '\", \"dsfj9\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag3\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"022l;'][ \", \"24oi23n\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag4\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"hh2h2n jds \", \"0m0lkj34\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "public void test18() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "@Test\n public void test_getAndSet_ByFieldName_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods: primitive types ______________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"field1Str\", symbolControl,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", \"field2Short\", symbolControl,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // Continuation Field - can not call the generic setField(fieldName) and getField(fieldName) on a cont field.\n // this should throw an exception (which is returned by the test method).\n Exception exception = FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", \"field3ContInt\", symbolControl,\n 456, -1, -1, -1000, true); // last 5 params: expected value, null expected value, unused expected value, default expected value, returnExceptions\n\n assertTrue(exception != null);\n\n\n // Test Object Types ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED formRequired_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED(executeInfo, null);\n\n formRequired_FieldSet.schemaInfo_Positioned = schemaInfoFieldSet_formRequired;\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", \"IsRequired\", symbolControl,\n notRequired, null, null, notRequired); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"RequiredImagePath\", symbolControl,\n \"\\test\\required.gif\", null, null, \"/images/required.gif\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n }", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"call\");\n assertFalse(boolean0);\n }" ]
[ "0.63941044", "0.6324068", "0.631651", "0.6303905", "0.62405205", "0.6232282", "0.6172458", "0.6137569", "0.6124512", "0.6115262", "0.6011244", "0.5813424", "0.58006275", "0.57714564", "0.575989", "0.5759463", "0.57387286", "0.5712315", "0.57034844", "0.5694052", "0.5685846", "0.56731904", "0.564143", "0.5636928", "0.5601875", "0.5583247", "0.5529219", "0.55183816", "0.5506229", "0.54796046", "0.54693794", "0.54551154", "0.542395", "0.5399625", "0.5392352", "0.5389457", "0.53702575", "0.5342892", "0.53356266", "0.5330937", "0.5330873", "0.5315703", "0.5312936", "0.53126013", "0.52716887", "0.5271516", "0.5265677", "0.5260548", "0.5254952", "0.5245452", "0.52357906", "0.51957524", "0.51937497", "0.51816666", "0.51733613", "0.5146987", "0.51459575", "0.514539", "0.51407707", "0.51360786", "0.5122586", "0.5115138", "0.50658566", "0.50632036", "0.50506896", "0.5048913", "0.5040222", "0.5027292", "0.5026918", "0.5025606", "0.501818", "0.5011196", "0.5001126", "0.49969718", "0.4992546", "0.4989612", "0.49859565", "0.49847633", "0.49796987", "0.49778977", "0.49768335", "0.49709573", "0.49580625", "0.49457642", "0.49437124", "0.4943072", "0.4942265", "0.49335414", "0.49332482", "0.49324036", "0.4931655", "0.49285752", "0.4926365", "0.49237794", "0.49176598", "0.49080107", "0.4897047", "0.4891722", "0.48839286", "0.48823574" ]
0.69940907
0
Test the synthetic tuple builder
@Test public void testSyntheticStreamTupleBuilder() throws ParseException { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.SYNTHETIC_STREAM); final Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE); Assert.assertNotNull(tuple); Assert.assertEquals("2so3r7lmmlt2204", tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414, 17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562, 96.82571259235081,96.82571259235081); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); Assert.assertEquals("y9ucczzo53", new String(tuple.getDataBytes())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "private Tuples() {}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "TupleExpr createTupleExpr();", "TupleLiteralExp createTupleLiteralExp();", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "Astro tuple(AstroArg args);", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "public boolean isGeneralTuple();", "TupleLiteralPart createTupleLiteralPart();", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf986_failAssert26_literalMutation2679() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"javautil.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(expected, \"javautil.List<@com.squareup.javapoet.AmplAnnotatedTypeNameTest.NeverNull 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 null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_480 = (java.util.Map)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_480);\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_478 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_478);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_476 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_476);\n // StatementAdderMethod cloned existing statement\n vc_476.get(vc_478, vc_480);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf986 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "public void testUnpackMultipleTuples() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}, {\"v3\", \"v4\"}, {\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\");\n results.expectTuple(\"vva\", \"vvb\", \"v3\", \"v4\");\n results.expectTuple(\"vva\", \"vvb\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3); \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 }", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "private SchemaTupleFactory internalNewSchemaTupleFactory(Schema s, boolean isAppendable, GenContext context) {\n return newSchemaTupleFactory(Triple.make(new SchemaKey(s), isAppendable, context));\n }", "TupleTypeRule createTupleTypeRule();", "@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 }", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "public abstract T getTuple(int aPosition);", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "@Test\n public void test_getAndSet_ByIndex_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods _________________________________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", 0,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", 1,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // continuation primiative field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 2,\n 456, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 3,\n 789, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n\n\n\n // Object Continuation\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n\n // Test the Get & Set methods _________________________________________________________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 1,\n MPSymbols.byte$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n }", "@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 }", "@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 }", "public abstract T getTuple(Record record);", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@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\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "protected Tuple cleanTuple(Tuple result)\n {\n return result;\n }", "private Tuples() {\n // prevent instantiation.\n }", "@Specialization\n\t\tString type(OzBacktrace backtrace) {\n\t\t\treturn \"tuple\";\n\t\t}", "public boolean isTuple() {\n return PyTorchLibrary.LIB.iValueIsTuple(getHandle());\n }", "@Test\n public void testErrorTuple() throws Exception {\n TestBolt tb = spy(new TestBolt(true));\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).reportError(any(BoltProcessingException.class));\n }", "static Tuple wrap(Tuple init, long sign) throws ExecException {\n\t\tTuple tup = tf.newTuple(2);\n\t\ttup.set(0, init.get(0));\n\t\ttup.set(1, sign);\n\t\t\n\t\tDataBag bag = bf.newDefaultBag();\n\t\tbag.add(tup);\n\t\t\n\t\treturn tf.newTuple(bag);\n\t}", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\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 }", "public TupleDesc getTupleDesc();", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n void appendSwitchedTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{1}||{0}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(2, 4)),\n new BindWithPos(bindName2, String.class, List.of(1, 3)));\n }", "@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}", "@Test\n public void test_getAndSet_ByIndex_GenericMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n\n // Test the Get & Set methods & the Special Field-Value Get & Set methods - Object Type (string) _______________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n \"hello\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n (short)10, null, null, (short)-1001); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Continuation Field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 2,\n 11, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 3,\n 12, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Object Continuation ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n MPSymbols.int$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n }", "public void testUnpackMultipleTuplesMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"b1_t1_v1\", \"b1_t1_v2\"}, {\"b1_t2_v1\", \"b1_t2_v2\"}, {\"b1_t3_v1\", \"b1_t3_v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"b2_t1_v1\", \"b2_t1_v2\"}, {\"b2_t2_v1\", \"b2_t2_v2\"}, {\"b2_t3_v1\", \"b2_t3_v2\"}});\n baggage.put(\"bag3\", new Object[][] {{\"b3_t1_v1\", \"b3_t1_v2\"}, {\"b3_t2_v1\", \"b3_t2_v2\"}, {\"b3_t3_v1\", \"b3_t3_v2\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n int expected = 3 * 3 * 3 * 3;\n for (int i = 0; i < expected; i++) {\n results.expectTuple(\"vva\");\n }\n results.check();\n assertTrue(\"Expect \"+expected+\" output tuple emitted\", results.emitted.size() == expected); \n }", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\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(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.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}", "public static interface Tuple {\n\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8863_cf10076_failAssert14() {\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 // AssertGenerator replace invocation\n java.lang.String o_annotatedParameterizedType_cf8863__7 = // StatementAdderMethod cloned existing statement\n type.toString();\n // MethodAssertGenerator build local variable\n Object o_9_0 = o_annotatedParameterizedType_cf8863__7;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_4280 = (java.lang.reflect.Type)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_4280);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8863_cf10076 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "@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 }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf919() {\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 null value\n java.lang.Object vc_434 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_434);\n // AssertGenerator replace invocation\n boolean o_annotatedArgumentOfParameterizedType_cf919__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_434);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf919__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\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\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "protected void handleData(T tuple)\n throws DataException\n {\n \n if (tuple.isMutable())\n {\n if (sequence!=null)\n {\n if (sequenceField.getValue(tuple)==null)\n { \n String sequenceVal = Long.toString(sequence.next());\n if (debug)\n { \n log.fine\n (\"Generated sequence \"+sequenceVal\n +\" for \"+sequenceField.getURI()\n );\n }\n \n sequenceField.setValue\n ((EditableTuple) tuple\n ,sequenceField.getType().fromString(sequenceVal)\n ); \n }\n else\n { \n if (debug)\n {\n log.fine\n (\"Sequence field not null \"+sequenceField.getURI());\n }\n }\n }\n else\n { \n if (sequenceField!=null)\n { log.fine(\"Sequence is null for \"+sequenceField);\n }\n }\n\n if (defaultSetters!=null)\n {\n for (Setter<?> setter : defaultSetters)\n { \n if (setter.getTarget().get()==null)\n { setter.set();\n }\n }\n }\n\n if (fixedSetters!=null)\n {\n for (Setter<?> setter : fixedSetters)\n { setter.set();\n }\n }\n }\n else\n {\n if (debug)\n {\n log.fine\n (\"Not a mutable Tuple \"+tuple);\n }\n }\n \n if (inspector!=null)\n {\n Violation<T>[] violations=inspector.inspect(tuple);\n if (violations!=null)\n { throw new DataException(null,new RuleException(violations));\n }\n }\n \n }", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8854_failAssert27() {\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 // StatementAdderMethod cloned existing statement\n type.unbox();\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8854 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf999_failAssert29() {\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 // StatementAdderMethod cloned existing statement\n type.unbox();\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf999 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "@Test(timeout = 10000)\n public void innerClassInGenericType_sd11111_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method genericStringInner = getClass().getDeclaredMethod(\"testGenericStringInner\");\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(genericStringInner.getReturnType());\n TypeName genericTypeName = TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(getClass().getDeclaredMethod(\"testGenericIntInner\").getGenericReturnType());\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"innerClassInGenericType_sd11111 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public void testAll55() throws Exception {\n String[] signature = {\"[QObject;\", \"I\", \"Z\"};\r\n String[] newNames = {\"e\"};\r\n String[] newTypes = {\"boolean\"};\r\n String[] newDefaultValues = {\"true\"};\r\n TestParameterInfo[] newParamInfo = createTestParamInfos(newTypes, newNames,\r\n newDefaultValues);\r\n int[] newIndices = {2};\r\n helperAdd(signature, newParamInfo, newIndices);\r\n\r\n }", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\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 }", "@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 }", "@Test(timeout = 10000)\n public void innerGenericInGenericType_sd19249_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method genericStringInner = getClass().getDeclaredMethod(\"testGenericInnerLong\");\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(genericStringInner.getReturnType());\n TypeName genericTypeName = TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(getClass().getDeclaredMethod(\"testGenericInnerInt\").getGenericReturnType());\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"innerGenericInGenericType_sd19249 should have thrown UnsupportedOperationException\");\n } catch (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 }", "public void testUnpackNoValuesMulti() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}, {}, {}, {}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 4 output tuples emitted\", results.emitted.size() == 4);\n }", "EExpr slotsTuple(ENodeBuilder b, EExpr optPrefix, String[] exports) {\n return mixedTuple(b, optPrefix, exports, null, null);\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf927() {\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_cf927__10 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf927__10);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@VTID(13)\r\n java.lang.String getTuple();", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "public final boolean[] isBdedQuantATuple() { return this.tupleOrs; }", "public void testRawQuery() {\n Random random = new Random();\n ContentValues values1 = makeServiceStateValues(random, mBaseDb);\n final long row1 = mBaseDb.insert(TBL_SERVICE_STATE, null, values1);\n ContentValues values2 = makeServiceStateValues(random, mBaseDb);\n final long row2 = mBaseDb.insert(TBL_SERVICE_STATE, null, values2);\n\n // query tuple\n ServiceStateTable table = new ServiceStateTable();\n String sql = \"SELECT * FROM \" + TBL_SERVICE_STATE + \" WHERE \" + COL_ID + \" = ?\";\n String[] selectionArgs = { String.valueOf(row1) };\n List<ServiceStateTuple> tuples = table.rawQuery(mTestContext, sql, selectionArgs);\n\n // verify values\n assertNotNull(tuples);\n // klocwork\n if (tuples == null) return;\n assertFalse(tuples.isEmpty());\n assertEquals(1, tuples.size());\n ServiceStateTuple tuple = tuples.get(0);\n assertValuesTuple(row1, values1, tuple);\n }", "@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 }", "public void testUnpack() throws InvalidAdviceException {\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag7\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag4\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"pb\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"23498ngnjs\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "public void testUnpackNoValues() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }", "public void test17() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public abstract void handleTuple(ITuple tuple);", "@Test(timeout = 10000)\n public void innerStaticInGenericType_sd27375_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method staticInGeneric = getClass().getDeclaredMethod(\"testNestedNonGeneric\");\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(staticInGeneric.getReturnType());\n TypeName typeName = TypeName.get(staticInGeneric.getGenericReturnType());\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"innerStaticInGenericType_sd27375 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "boolean hasSymbolTuple();", "public static void main(String[] args) {\n\n\n\t\tHashSet<String> actual = uniqueTuple(\"aaabbb\", 2);\n\t\tHashSet<String> expected = new HashSet<String>();\n\t\texpected.add(\"aa\");\n\t\texpected.add(\"ab\");\n\t\texpected.add(\"bb\");\n System.out.println(expected.containsAll(actual));\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf920() {\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 // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf920__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8817_failAssert18() {\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.lang.reflect.Type vc_3704 = (java.lang.reflect.Type)null;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_3702 = (com.squareup.javapoet.TypeName)null;\n // StatementAdderMethod cloned existing statement\n vc_3702.get(vc_3704);\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8817 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "public void testAll57() throws Exception {\n String[] signature = {\"I\", \"QString;\", \"QString;\"};\r\n String[] newNames = null;\r\n String[] newTypes = null;\r\n String[] newDefaultValues = null;\r\n TestParameterInfo[] newParamInfo = createTestParamInfos(newTypes, newNames,\r\n newDefaultValues);\r\n int[] newIndices = null;\r\n\r\n String[] oldParamNames = {\"i\", \"hello\", \"goodbye\"};\r\n String[] newParamNames = oldParamNames;\r\n int[] permutation = {0, 2, 1};\r\n int[] deletedIndices = {};\r\n int newVisibility = BinModifier.PUBLIC;\r\n String newReturnTypeName = null;\r\n helperDoAll(\"TEST$X\", \"method\", signature, newParamInfo, newIndices,\r\n oldParamNames, newParamNames, null, permutation, newVisibility,\r\n deletedIndices, newReturnTypeName, false, 0);\r\n }", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedParameterizedType_cf8860_cf9987_failAssert6() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // MethodAssertGenerator build local variable\n Object o_9_1 = 2123584667;\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 // AssertGenerator replace invocation\n int o_annotatedParameterizedType_cf8860__7 = // StatementAdderMethod cloned existing statement\n type.hashCode();\n // MethodAssertGenerator build local variable\n Object o_9_0 = o_annotatedParameterizedType_cf8860__7;\n // StatementAdderMethod cloned existing statement\n type.unbox();\n org.junit.Assert.fail(\"annotatedParameterizedType_cf8860_cf9987 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }", "public interface IGeneralTuple {\r\n /**\r\n * Sets the values for a tuple.\r\n * @param values the tuple values\r\n */\r\n public void setValues(List<Object> values);\r\n /**\r\n * Returns the list of values in a tuple.\r\n * @return the list of values\r\n */\r\n public List<Object> getValues();\r\n /**\r\n * Returns the value located in a specific index of the list of values. \r\n * @param index the index in which the value is located\r\n * @return the value \r\n */\r\n public Object getValue(int index);\r\n /**\r\n * Returns whether it is a general tuple.\r\n * @return a boolean value indicating whether it is a general tuple\r\n */\r\n public boolean isGeneralTuple();\r\n}", "public boolean serializeTuple( ByteBuffer buf, TupleAccessor tuple ) {\n buf.mark();\n try\n {\n scanFields( tuple );\n writer.startBlock( buf );\n writer.writeHeader( isNull, isRepeated );\n writeFields( tuple );\n writer.endBlock();\n return true;\n }\n catch ( IndexOutOfBoundsException e ) {\n buf.reset();\n return false;\n }\n }", "public void testUnpackFromCorrectBag() throws InvalidAdviceException {\n Object[][] t1 = {{\"dsifji2oj\", \"23498ngnjs\"}};\n Object[][] t2 = {{\"dsfj9\", \"u1h32jbn4l1 '\"}};\n Object[][] t3 = {{\"24oi23n\", \"022l;'][ \"}};\n Object[][] t4 = {{\"0m0lkj34\", \"hh2h2n jds \"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(\"bag1\", t1).put(\"bag2\", t2).put(\"bag3\", t3).put(\"bag4\", t4);\n\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag1\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag2\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"u1h32jbn4l1 '\", \"dsfj9\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag3\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"022l;'][ \", \"24oi23n\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag4\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"hh2h2n jds \", \"0m0lkj34\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "public void test18() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "@Test\n public void test_getAndSet_ByFieldName_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods: primitive types ______________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"field1Str\", symbolControl,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", \"field2Short\", symbolControl,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // Continuation Field - can not call the generic setField(fieldName) and getField(fieldName) on a cont field.\n // this should throw an exception (which is returned by the test method).\n Exception exception = FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", \"field3ContInt\", symbolControl,\n 456, -1, -1, -1000, true); // last 5 params: expected value, null expected value, unused expected value, default expected value, returnExceptions\n\n assertTrue(exception != null);\n\n\n // Test Object Types ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED formRequired_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED(executeInfo, null);\n\n formRequired_FieldSet.schemaInfo_Positioned = schemaInfoFieldSet_formRequired;\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", \"IsRequired\", symbolControl,\n notRequired, null, null, notRequired); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"RequiredImagePath\", symbolControl,\n \"\\test\\required.gif\", null, null, \"/images/required.gif\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n }", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"call\");\n assertFalse(boolean0);\n }" ]
[ "0.69940907", "0.63941044", "0.6324068", "0.631651", "0.6303905", "0.62405205", "0.6232282", "0.6172458", "0.6137569", "0.6124512", "0.6115262", "0.6011244", "0.5813424", "0.58006275", "0.57714564", "0.575989", "0.57387286", "0.5712315", "0.57034844", "0.5694052", "0.5685846", "0.56731904", "0.564143", "0.5636928", "0.5601875", "0.5583247", "0.5529219", "0.55183816", "0.5506229", "0.54796046", "0.54693794", "0.54551154", "0.542395", "0.5399625", "0.5392352", "0.5389457", "0.53702575", "0.5342892", "0.53356266", "0.5330937", "0.5330873", "0.5315703", "0.5312936", "0.53126013", "0.52716887", "0.5271516", "0.5265677", "0.5260548", "0.5254952", "0.5245452", "0.52357906", "0.51957524", "0.51937497", "0.51816666", "0.51733613", "0.5146987", "0.51459575", "0.514539", "0.51407707", "0.51360786", "0.5122586", "0.5115138", "0.50658566", "0.50632036", "0.50506896", "0.5048913", "0.5040222", "0.5027292", "0.5026918", "0.5025606", "0.501818", "0.5011196", "0.5001126", "0.49969718", "0.4992546", "0.4989612", "0.49859565", "0.49847633", "0.49796987", "0.49778977", "0.49768335", "0.49709573", "0.49580625", "0.49457642", "0.49437124", "0.4943072", "0.4942265", "0.49335414", "0.49332482", "0.49324036", "0.4931655", "0.49285752", "0.4926365", "0.49237794", "0.49176598", "0.49080107", "0.4897047", "0.4891722", "0.48839286", "0.48823574" ]
0.5759463
16
Test the nari dynamic tuple builder
@Test public void testNariDynamicTupleBuilder() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.NARI_DYNAMIC); final Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d, -4.4657183d, -4.4657183d, 48.38249d, 48.38249d); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "private Tuples() {}", "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "TupleExpr createTupleExpr();", "Astro tuple(AstroArg args);", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "TupleLiteralExp createTupleLiteralExp();", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\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(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.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}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void test_getAndSet_ByIndex_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods _________________________________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", 0,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", 1,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // continuation primiative field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 2,\n 456, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 3,\n 789, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n\n\n\n // Object Continuation\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n\n // Test the Get & Set methods _________________________________________________________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 1,\n MPSymbols.byte$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n }", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\n }", "TupleLiteralPart createTupleLiteralPart();", "@Test\n public void test_getAndSet_ByIndex_GenericMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n\n // Test the Get & Set methods & the Special Field-Value Get & Set methods - Object Type (string) _______________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n \"hello\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n (short)10, null, null, (short)-1001); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Continuation Field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 2,\n 11, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 3,\n 12, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Object Continuation ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n MPSymbols.int$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n }", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "public void testUnpackMultipleTuples() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}, {\"v3\", \"v4\"}, {\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\");\n results.expectTuple(\"vva\", \"vvb\", \"v3\", \"v4\");\n results.expectTuple(\"vva\", \"vvb\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3); \n }", "@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 }", "TupleTypeRule createTupleTypeRule();", "public abstract T getTuple(Record record);", "static Tuple wrap(Tuple init, long sign) throws ExecException {\n\t\tTuple tup = tf.newTuple(2);\n\t\ttup.set(0, init.get(0));\n\t\ttup.set(1, sign);\n\t\t\n\t\tDataBag bag = bf.newDefaultBag();\n\t\tbag.add(tup);\n\t\t\n\t\treturn tf.newTuple(bag);\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "private SchemaTupleFactory internalNewSchemaTupleFactory(Schema s, boolean isAppendable, GenContext context) {\n return newSchemaTupleFactory(Triple.make(new SchemaKey(s), isAppendable, context));\n }", "public abstract T getTuple(int aPosition);", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public boolean isGeneralTuple();", "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 }", "Values createValues();", "protected abstract T create(ICalDataType dataType, SemiStructuredValueIterator it);", "@Test\n void appendSwitchedTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{1}||{0}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(2, 4)),\n new BindWithPos(bindName2, String.class, List.of(1, 3)));\n }", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\n }", "@Test\n void test_buildInsertStatement_withIdField_sequenceProvided() {\n String tableName = \"TICKET\";\n Map<String, FieldDetails> fields = new TreeMap<>();\n fields.put(\"id\", new IdFieldDetails(null, Integer.class, \"movie_id_seq\"));\n fields.put(\"movie\", new FieldDetails(\"Inception\", String.class) );\n fields.put(\"date\", new FieldDetails(LocalDate.now(), LocalDate.class));\n fields.put(\"cost\", new FieldDetails(10, Integer.class));\n\n Iterator<String> keyIterator = fields.keySet().iterator();\n StringBuilder fieldNameSB = new StringBuilder();\n StringBuilder valuePlaceHoldersSB = new StringBuilder();\n while (keyIterator.hasNext()) {\n String nextName = keyIterator.next();\n fieldNameSB.append(nextName);\n FieldDetails fieldDetails = fields.get(nextName);\n if (fieldDetails instanceof IdFieldDetails) {\n IdFieldDetails idFieldDetails = (IdFieldDetails) fieldDetails;\n if (Objects.isNull(idFieldDetails.getValue())) {\n valuePlaceHoldersSB.append(\"nextval('\" + idFieldDetails.getSequenceName() + \"')\");\n } else {\n valuePlaceHoldersSB.append(\"?\");\n }\n } else\n valuePlaceHoldersSB.append(\"?\");\n if (keyIterator.hasNext()) {\n fieldNameSB.append(\",\");\n valuePlaceHoldersSB.append(\",\");\n }\n }\n String expected = \"insert into TICKET (\" + fieldNameSB.toString() + \") VALUES (\"\n + valuePlaceHoldersSB.toString() + \")\";\n\n //when\n String result = statementBuilder.buildInsertStatement(tableName, fields);\n\n //then\n Assertions.assertEquals(expected, result);\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n public void testToString() {\n Command cmd = new Command(\"add\");\n \n Value dialogic = new Value(\"dialogic\");\n dialogic.add(new Parameter(\"module_id\"));\n \n Value dahdi = new Value(\"dahdi\");\n dahdi.add(new Parameter(\"span\"));\n dahdi.add(new Parameter(\"channel\"));\n \n Parameter linkset = new Parameter(\"linkset\", new Value[]{dialogic, dahdi});\n Parameter opc = new Parameter(\"opc\");\n Parameter apc = new Parameter(\"apc\");\n Parameter ni = new Parameter(\"network indicator\");\n \n cmd.add(linkset);\n cmd.add(opc);\n cmd.add(apc);\n cmd.add(ni);\n \n System.out.println(cmd);\n }", "public void testUnpack() throws InvalidAdviceException {\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag7\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag4\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"pb\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"23498ngnjs\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "@Test(timeout = 4000)\n public void test53() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance((-640), \"call\");\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"call\");\n String[] stringArray0 = new String[0];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"f4o\\\"i(#[GP/ea_FG4E\", false, stringArray0);\n DBUniqueIndex dBUniqueIndex0 = new DBUniqueIndex(\"call\", false, dBUniqueConstraint0);\n DBTable dBTable0 = dBUniqueIndex0.getTable();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"call\", dBTable0, dBDataType0);\n DefaultDBColumn defaultDBColumn1 = new DefaultDBColumn((String) null, defaultDBTable0, 1, \"select\");\n SQLUtil.renderColumn(defaultDBColumn1);\n StringWriter stringWriter0 = new StringWriter(46);\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(stringWriter0, true);\n mockPrintWriter0.println();\n PrintWriter printWriter0 = mockPrintWriter0.format(\"5lUY\", (Object[]) stringArray0);\n NameSpec nameSpec0 = NameSpec.NEVER;\n SQLUtil.renderCreateTable(dBTable0, false, nameSpec0, printWriter0);\n assertEquals(\"\\n5lUYcreate table call (\\n\\tcall CALL NULL,\\n\\tnull SELECT NULL,\\n\\tUNIQUE ()\\n)\", stringWriter0.toString());\n }", "private TupleDesc generalTupleDesc(){\n \tType[] typeArr;\n \tString[] nameArr;\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tnameArr = new String[]{\"groupValue\", \"aggregateValue\"};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n }", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@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\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}", "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "public void testUnpackMultipleTuplesMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"b1_t1_v1\", \"b1_t1_v2\"}, {\"b1_t2_v1\", \"b1_t2_v2\"}, {\"b1_t3_v1\", \"b1_t3_v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"b2_t1_v1\", \"b2_t1_v2\"}, {\"b2_t2_v1\", \"b2_t2_v2\"}, {\"b2_t3_v1\", \"b2_t3_v2\"}});\n baggage.put(\"bag3\", new Object[][] {{\"b3_t1_v1\", \"b3_t1_v2\"}, {\"b3_t2_v1\", \"b3_t2_v2\"}, {\"b3_t3_v1\", \"b3_t3_v2\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n int expected = 3 * 3 * 3 * 3;\n for (int i = 0; i < expected; i++) {\n results.expectTuple(\"vva\");\n }\n results.check();\n assertTrue(\"Expect \"+expected+\" output tuple emitted\", results.emitted.size() == expected); \n }", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "abstract T build();", "@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 }", "@Test\n void testCallStatement() {\n String sql = \"call `system`.primitive_arg(1, 2)\";\n verifyCallOperation(\n sql,\n \"CALL PROCEDURE:\"\n + \" (procedureIdentifier: [`p1`.`system`.`primitive_arg`],\"\n + \" inputTypes: [INT NOT NULL, BIGINT NOT NULL], outputTypes: [INT NOT NULL], arguments: [1, 2])\");\n\n // test call the procedure which has different type mapping for single method\n // call with int\n sql = \"call `system`.different_type_mapping(1)\";\n verifyCallOperation(\n sql,\n \"CALL PROCEDURE:\"\n + \" (procedureIdentifier: [`p1`.`system`.`different_type_mapping`],\"\n + \" inputTypes: [INT], outputTypes: [INT], arguments: [1])\");\n // call with bigint\n sql = \"call `system`.different_type_mapping(cast(1 as bigint))\";\n verifyCallOperation(\n sql,\n \"CALL PROCEDURE:\"\n + \" (procedureIdentifier: [`p1`.`system`.`different_type_mapping`],\"\n + \" inputTypes: [BIGINT], outputTypes: [BIGINT], arguments: [1])\");\n\n // test call the procedure which has var arguments\n sql = \"call `system`.var_arg(1)\";\n verifyCallOperation(\n sql,\n \"CALL PROCEDURE:\"\n + \" (procedureIdentifier: [`p1`.`system`.`var_arg`],\"\n + \" inputTypes: [INT NOT NULL], outputTypes: [STRING], arguments: [1])\");\n sql = \"call `system`.var_arg(1, 2)\";\n verifyCallOperation(\n sql,\n \"CALL PROCEDURE:\"\n + \" (procedureIdentifier: [`p1`.`system`.`var_arg`],\"\n + \" inputTypes: [INT NOT NULL, INT NOT NULL], outputTypes: [STRING], arguments: [1, 2])\");\n sql = \"call `system`.var_arg(1, 2, 1 + 2)\";\n verifyCallOperation(\n sql,\n \"CALL PROCEDURE:\"\n + \" (procedureIdentifier: [`p1`.`system`.`var_arg`],\"\n + \" inputTypes: [INT NOT NULL, INT NOT NULL, INT NOT NULL], outputTypes: [STRING], arguments: [1, 2, 3])\");\n\n // test call the procedure with row as result and decimal as argument as well as\n // explict/implicit cast\n sql = \"call `system`.row_result(cast(1.2 as decimal))\";\n verifyCallOperation(\n sql,\n \"CALL PROCEDURE:\"\n + \" (procedureIdentifier: [`p1`.`system`.`row_result`],\"\n + \" inputTypes: [DECIMAL(10, 2)], outputTypes: [ROW<`i` INT>], arguments: [1.20])\");\n sql = \"call `system`.row_result(1.2)\";\n verifyCallOperation(\n sql,\n \"CALL PROCEDURE:\"\n + \" (procedureIdentifier: [`p1`.`system`.`row_result`],\"\n + \" inputTypes: [DECIMAL(10, 2)], outputTypes: [ROW<`i` INT>], arguments: [1.20])\");\n\n // test call the procedure with pojo as result\n sql = \"call p1.`system`.pojo_result('name', 1)\";\n verifyCallOperation(\n sql,\n \"CALL PROCEDURE:\"\n + \" (procedureIdentifier: [`p1`.`system`.`pojo_result`],\"\n + \" inputTypes: [STRING, BIGINT NOT NULL],\"\n + \" outputTypes: [*org.apache.flink.table.planner.operations.SqlNodeToCallOperationTest$MyPojo<`name` STRING, `id` BIGINT NOT NULL>*],\"\n + \" arguments: [name, 1])\");\n\n // test call the procedure with timestamp as arguments\n sql =\n \"call p1.`system`.timestamp_arg(timestamp '2023-04-22 00:00:00.300', \"\n + \"timestamp '2023-04-22 00:00:00.300' + INTERVAL '1' day ) \";\n verifyCallOperation(\n sql,\n String.format(\n \"CALL PROCEDURE:\"\n + \" (procedureIdentifier: [`p1`.`system`.`timestamp_arg`],\"\n + \" inputTypes: [TIMESTAMP(3), TIMESTAMP(3)], outputTypes: [TIMESTAMP(3)],\"\n + \" arguments: [%s, %s])\",\n LocalDateTime.parse(\"2023-04-22T00:00:00.300\"),\n LocalDateTime.parse(\"2023-04-23T00:00:00.300\")));\n // should throw exception when the signature doesn't match\n assertThatThrownBy(() -> parse(\"call `system`.primitive_arg(1)\"))\n .hasMessageContaining(\n \"No match found for function signature primitive_arg(<NUMERIC>)\");\n\n // should throw exception when the expression argument can't be reduced\n // to literal\n assertThatThrownBy(() -> parse(\"call `system`.row_result(cast((1.2 + 2.4) as decimal))\"))\n .hasMessageContaining(\n \"The argument at position 0 CAST(CAST(1.2 + 2.4 AS DECIMAL) AS DECIMAL(10, 2)) for calling procedure can't be converted to literal.\");\n }", "private void constructionHelper(GenericServiceResult genericServiceResult) {\n\n assertEquals(this.string, genericServiceResult.get(\"string\"));\n assertEquals(this.integer, genericServiceResult.get(\"integer\"));\n assertEquals(this.floats, genericServiceResult.get(\"floats\"));\n\n assertTrue(checkIndices(0, \"string\"));\n assertTrue(checkIndices(1, \"integer\"));\n assertTrue(checkIndices(2, \"floats\"));\n }", "public void testAll55() throws Exception {\n String[] signature = {\"[QObject;\", \"I\", \"Z\"};\r\n String[] newNames = {\"e\"};\r\n String[] newTypes = {\"boolean\"};\r\n String[] newDefaultValues = {\"true\"};\r\n TestParameterInfo[] newParamInfo = createTestParamInfos(newTypes, newNames,\r\n newDefaultValues);\r\n int[] newIndices = {2};\r\n helperAdd(signature, newParamInfo, newIndices);\r\n\r\n }", "static Stream<Arguments> randomSchemaWithValue() throws IOException {\n Fixture fixture = Fixture.of(TestUtils.createSession()).withRecords(Schema.Type.STRUCT);\n\n return Stream.of(Arguments.of(fixture, null, null),\n Arguments.of(fixture, SchemaBuilder.int8(), (byte)8),\n Arguments.of(fixture, SchemaBuilder.int16(), (short)16),\n Arguments.of(fixture, SchemaBuilder.int32(), (int)32),\n Arguments.of(fixture, SchemaBuilder.int64(), (long)64),\n Arguments.of(fixture, SchemaBuilder.float32(), (float)32.0),\n Arguments.of(fixture, SchemaBuilder.float64(), (double)64.0),\n Arguments.of(fixture, SchemaBuilder.bool(), true),\n Arguments.of(fixture, SchemaBuilder.string(), \"hi, dave\"));\n }", "public abstract Builder produces(String... paramVarArgs);", "public void testRawQuery() {\n Random random = new Random();\n ContentValues values1 = makeServiceStateValues(random, mBaseDb);\n final long row1 = mBaseDb.insert(TBL_SERVICE_STATE, null, values1);\n ContentValues values2 = makeServiceStateValues(random, mBaseDb);\n final long row2 = mBaseDb.insert(TBL_SERVICE_STATE, null, values2);\n\n // query tuple\n ServiceStateTable table = new ServiceStateTable();\n String sql = \"SELECT * FROM \" + TBL_SERVICE_STATE + \" WHERE \" + COL_ID + \" = ?\";\n String[] selectionArgs = { String.valueOf(row1) };\n List<ServiceStateTuple> tuples = table.rawQuery(mTestContext, sql, selectionArgs);\n\n // verify values\n assertNotNull(tuples);\n // klocwork\n if (tuples == null) return;\n assertFalse(tuples.isEmpty());\n assertEquals(1, tuples.size());\n ServiceStateTuple tuple = tuples.get(0);\n assertValuesTuple(row1, values1, tuple);\n }", "public static interface Tuple {\n\n\t}", "public void testUnpackNoValuesMulti() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}, {}, {}, {}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 4 output tuples emitted\", results.emitted.size() == 4);\n }", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"select into\");\n assertNotNull(boolean0);\n assertTrue(boolean0);\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf986_failAssert26_literalMutation2679() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"javautil.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(expected, \"javautil.List<@com.squareup.javapoet.AmplAnnotatedTypeNameTest.NeverNull 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 null value\n java.util.Map<javax.lang.model.element.TypeParameterElement, com.squareup.javapoet.TypeVariableName> vc_480 = (java.util.Map)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_480);\n // StatementAdderOnAssert create null value\n javax.lang.model.type.TypeMirror vc_478 = (javax.lang.model.type.TypeMirror)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_478);\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_476 = (com.squareup.javapoet.TypeName)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_476);\n // StatementAdderMethod cloned existing statement\n vc_476.get(vc_478, vc_480);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf986 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "protected abstract Builder<T> valid();", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"66i,cw\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertEquals(\"table\", defaultDBTable0.getObjectType());\n }", "@Test\n public void test_getAndSet_ByFieldName_GenericMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n\n // Test primitive types _______________________________________\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"field1Str\", symbolControl,\n \"hello\", null, null, \"hi\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"field2Short\", symbolControl,\n (short)10, null, null, (short)-1001); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n // Continuation Field - can not call the generic setField(fieldName) and getField(fieldName) on a cont field.\n // this should throw an exception (which is returned by the test method.\n Exception exception = FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"field3ContInt\", symbolControl,\n 11, null, null, -1000, true); // last 5 params: expected value, null expected value, unused expected value, default expected value, returnExceptions \n \n assertTrue(exception != null);\n \n\n\n // Test Object Types ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED formRequired_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED(executeInfo, null);\n\n formRequired_FieldSet.schemaInfo_Positioned = schemaInfoFieldSet_formRequired;\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"IsRequired\", symbolControl,\n notRequired, null, null, notRequired); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"RequiredImagePath\", symbolControl,\n \"\\test\\required.gif\", null, null, \"/images/required.gif\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n }", "@Test\n public void test_getAndSet_ByFieldName_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods: primitive types ______________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"field1Str\", symbolControl,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", \"field2Short\", symbolControl,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // Continuation Field - can not call the generic setField(fieldName) and getField(fieldName) on a cont field.\n // this should throw an exception (which is returned by the test method).\n Exception exception = FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", \"field3ContInt\", symbolControl,\n 456, -1, -1, -1000, true); // last 5 params: expected value, null expected value, unused expected value, default expected value, returnExceptions\n\n assertTrue(exception != null);\n\n\n // Test Object Types ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED formRequired_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED(executeInfo, null);\n\n formRequired_FieldSet.schemaInfo_Positioned = schemaInfoFieldSet_formRequired;\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", \"IsRequired\", symbolControl,\n notRequired, null, null, notRequired); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"RequiredImagePath\", symbolControl,\n \"\\test\\required.gif\", null, null, \"/images/required.gif\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n }", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\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 }", "@VTID(13)\r\n java.lang.String getTuple();", "public void testUnpackFromCorrectBag() throws InvalidAdviceException {\n Object[][] t1 = {{\"dsifji2oj\", \"23498ngnjs\"}};\n Object[][] t2 = {{\"dsfj9\", \"u1h32jbn4l1 '\"}};\n Object[][] t3 = {{\"24oi23n\", \"022l;'][ \"}};\n Object[][] t4 = {{\"0m0lkj34\", \"hh2h2n jds \"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(\"bag1\", t1).put(\"bag2\", t2).put(\"bag3\", t3).put(\"bag4\", t4);\n\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag1\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag2\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"u1h32jbn4l1 '\", \"dsfj9\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag3\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"022l;'][ \", \"24oi23n\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag4\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"hh2h2n jds \", \"0m0lkj34\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "@Test\n public void testBuild() {\n show(DeleteSqlBuilder.build(\"table1\", NeoMap.of(\"name\", \"nana\", \"age\", 12)));\n }", "public interface IGeneralTuple {\r\n /**\r\n * Sets the values for a tuple.\r\n * @param values the tuple values\r\n */\r\n public void setValues(List<Object> values);\r\n /**\r\n * Returns the list of values in a tuple.\r\n * @return the list of values\r\n */\r\n public List<Object> getValues();\r\n /**\r\n * Returns the value located in a specific index of the list of values. \r\n * @param index the index in which the value is located\r\n * @return the value \r\n */\r\n public Object getValue(int index);\r\n /**\r\n * Returns whether it is a general tuple.\r\n * @return a boolean value indicating whether it is a general tuple\r\n */\r\n public boolean isGeneralTuple();\r\n}", "@Test\r\n public void testParamterized()\r\n {\r\n test(Types.create(List.class).withType(Number.class).build());\r\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\", (\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Illegal column type format: , (\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void testUnpackNoValues() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }", "private void testRow( TaskKey aTask, String aBarcode, AircraftKey aAircraft,\n AssemblyKey aAssembly, String aAircraftName, RefSchedPriorityKey aSchedPriority,\n Date aDueDate, RefTaskPriorityKey aTaskPriority, int aTaskPriorityOrd,\n int aNextHighestEventDbId, String aClassModeCd, String aNextHighestTaskClassCd,\n Date aHighestSchedStartGdt, double aDuration, String aPartList, String aToolList,\n String aLabourList, String aWorkTypeList, String aSubtreeList ) {\n\n MxAssert.assertEquals( aTask.toString(), iDataSet.getString( \"task_pk\" ) );\n MxAssert.assertEquals( aBarcode, iDataSet.getString( \"barcode_sdesc\" ) );\n MxAssert.assertEquals( aAircraft.toString(), iDataSet.getString( \"aircraft_pk\" ) );\n MxAssert.assertEquals( aAssembly.toString(), iDataSet.getString( \"assmbl_pk\" ) );\n MxAssert.assertEquals( aAircraftName, iDataSet.getString( \"aircraft_name\" ) );\n MxAssert.assertEquals( aSchedPriority.toString(), iDataSet.getString( \"sched_priority\" ) );\n MxAssert.assertEquals( aDueDate, iDataSet.getDate( \"due_date\" ) );\n MxAssert.assertEquals( aTaskPriority.toString(), iDataSet.getString( \"task_priority\" ) );\n MxAssert.assertEquals( aTaskPriorityOrd, iDataSet.getInt( \"task_priority_ord\" ) );\n\n // Loose Task Specific values\n MxAssert.assertEquals( aNextHighestEventDbId, iDataSet.getInt( \"nh_event_db_id\" ) );\n MxAssert.assertEquals( aClassModeCd, iDataSet.getString( \"class_mode_cd\" ) );\n\n // Non Loose Task Specific values\n MxAssert.assertEquals( aNextHighestTaskClassCd, iDataSet.getString( \"nh_task_class_cd\" ) );\n MxAssert.assertEquals( aHighestSchedStartGdt, iDataSet.getDate( \"h_sched_start_gdt\" ) );\n\n MxAssert.assertEquals( aDuration, iDataSet.getDouble( \"duration\" ) );\n\n if ( aPartList != null ) {\n MxAssert.assertEquals( aPartList, iDataSet.getString( \"part_details_list\" ) );\n }\n\n if ( aToolList != null ) {\n MxAssert.assertEquals( aToolList, iDataSet.getString( \"tools_list\" ) );\n }\n\n if ( aLabourList != null ) {\n MxAssert.assertEquals( aLabourList, iDataSet.getString( \"est_labour_effort_list\" ) );\n }\n\n if ( aWorkTypeList != null ) {\n MxAssert.assertEquals( aWorkTypeList, iDataSet.getString( \"work_types_list\" ) );\n }\n\n if ( aSubtreeList != null ) {\n MxAssert.assertEquals( aSubtreeList, iDataSet.getString( \"subtree_list\" ) );\n }\n }", "public TupleDesc getTupleDesc();", "public boolean isTuple() {\n return PyTorchLibrary.LIB.iValueIsTuple(getHandle());\n }", "@SuppressWarnings(\"UnusedDeclaration\")\npublic interface LObjBoolPair<T> extends LTuple<Object> \n {\n\n int SIZE = 2;\n\n\n T first();\n\n default T value() {\n return first();\n }\n\n boolean second();\n\n\n\n @Override default Object get(int index) {\n switch(index) {\n case 1: return first();\n case 2: return second();\n default: throw new NoSuchElementException();\n }\n }\n\n\n /** Tuple size */\n @Override default int tupleSize() {\n return SIZE;\n }\n\n \n\n /** Static hashCode() implementation method that takes same arguments as fields of the LObjBoolPair and calculates hash from it. */\n static <T> int argHashCode(T a1,boolean a2) {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((a1 == null) ? 0 : a1.hashCode());\n result = prime * result + Boolean.hashCode(a2);\n return result;\n }\n\n /** Static equals() implementation that takes same arguments (doubled) as fields of the LObjBoolPair and checks if all values are equal. */\n static <T> boolean argEquals(T a1,boolean a2, T b1,boolean b2) {\n return\n Null.equals(a1, b1) && //\n a2==b2; //\n }\n\n /**\n * Static equals() implementation that takes two tuples and checks if they are equal.\n * Tuples are considered equal if are implementing LObjBoolPair interface (among others) and their LObjBoolPair values are equal regardless of the implementing class\n * and how many more values there are.\n */\n static boolean argEquals(LObjBoolPair the, Object that) {\n return Null.equals(the, that, (one, two) -> {\n // Intentionally all implementations of LObjBoolPair are allowed.\n if (!(two instanceof LObjBoolPair)) {\n return false;\n }\n\n LObjBoolPair other = (LObjBoolPair) two;\n\n return argEquals(one.first(), one.second(), other.first(), other.second());\n });\n }\n\n /**\n * Static equals() implementation that takes two tuples and checks if they are equal.\n */\n public static boolean tupleEquals(LObjBoolPair the, Object that) {\n return Null.equals(the, that, (one, two) -> {\n // Intentionally all implementations of LObjBoolPair are allowed.\n if (!(two instanceof LObjBoolPair)) {\n return false;\n }\n\n LObjBoolPair other = (LObjBoolPair) two;\n\n return one.tupleSize() == other.tupleSize() &&\n argEquals(one.first(), one.second(), other.first(), other.second());\n });\n }\n\n\n\n \n @Override default Iterator<Object> iterator() {\n return new Iterator<Object>() {\n\n private int index;\n\n @Override public boolean hasNext() {\n return index<SIZE;\n }\n\n @Override public Object next() {\n index++;\n return get(index);\n }\n };\n }\n\n interface ComparableObjBoolPair<T extends Comparable<? super T>> extends LObjBoolPair<T>, Comparable<LObjBoolPair<T>> {\n @Override\n default int compareTo(LObjBoolPair<T> that) {\n return Null.compare(this, that, (one, two) -> {\n int retval = 0;\n\n return\n (retval = Null.compare(one.first(), two.first())) != 0 ? retval : //\n (retval = Boolean.compare(one.second(), two.second())) != 0 ? retval : 0; //\n });\n }\n\n }\n \n\n abstract class AbstractObjBoolPair<T> implements LObjBoolPair<T> {\n\n @Override\n public boolean equals(Object that) {\n return LObjBoolPair.tupleEquals(this, that);\n }\n\n @Override\n public int hashCode() {\n return LObjBoolPair.argHashCode(first(),second());\n }\n\n @Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append('(');\n sb.append(first());\n sb.append(',');\n sb.append(second());\n sb.append(')');\n return sb.toString();\n }\n\n }\n\n\n\n\n\n /**\n * Mutable tuple.\n */\n\n interface Mut<T,SELF extends Mut<T,SELF>> extends LObjBoolPair<T> {\n\n\n\n SELF first(T first) ; \n SELF second(boolean second) ; \n\n default SELF setFirst(T first) {\n this.first(first);\n return (SELF) this;\n }\n\n\n /** Sets value if predicate(current) is true */\n default SELF setFirstIf(T first, LPredicate<T> predicate) {\n if (predicate.test(this.first())) {\n return this.first(first);\n }\n return (SELF) this;\n }\n\n /** Sets new value if predicate predicate(newValue, current) is true. */\n default SELF setFirstIf(T first, LBiPredicate<T,T> predicate) {\n if (predicate.test(first, this.first())) {\n return this.first(first);\n }\n return (SELF) this;\n }\n\n /** Sets new value if predicate predicate(current, newValue) is true. */\n default SELF setFirstIf(LBiPredicate<T,T> predicate, T first) {\n if (predicate.test(this.first(), first)) {\n return this.first(first);\n }\n return (SELF) this;\n }\n \n\n\n default SELF setSecond(boolean second) {\n this.second(second);\n return (SELF) this;\n }\n\n\n /** Sets value if predicate(current) is true */\n default SELF setSecondIf(boolean second, LLogicalOperator predicate) {\n if (predicate.apply(this.second())) {\n return this.second(second);\n }\n return (SELF) this;\n }\n\n /** Sets new value if predicate predicate(newValue, current) is true. */\n default SELF setSecondIf(boolean second, LLogicalBinaryOperator predicate) {\n if (predicate.apply(second, this.second())) {\n return this.second(second);\n }\n return (SELF) this;\n }\n\n /** Sets new value if predicate predicate(current, newValue) is true. */\n default SELF setSecondIf(LLogicalBinaryOperator predicate, boolean second) {\n if (predicate.apply(this.second(), second)) {\n return this.second(second);\n }\n return (SELF) this;\n }\n \n\n\n default SELF reset() {\n this.first(null);\n this.second(false);\n return (SELF) this;\n }\n }\n\n\n\n\n\n\n public static <T> MutObjBoolPair<T> of() { \n return of( null , false );\n }\n \n\n public static <T> MutObjBoolPair<T> of(T a1,boolean a2){\n return new MutObjBoolPair(a1,a2);\n }\n\n public static <T> MutObjBoolPair<T> copyOf(LObjBoolPair<T> tuple) {\n return of(tuple.first(), tuple.second());\n }\n\n\n /**\n * Mutable, non-comparable tuple.\n */\n\n class MutObjBoolPair<T> extends AbstractObjBoolPair<T> implements Mut<T,MutObjBoolPair<T>> {\n\n private T first;\n private boolean second;\n\n public MutObjBoolPair(T a1,boolean a2){\n this.first = a1;\n this.second = a2;\n }\n\n\n public @Override T first() {\n return first;\n }\n\n public @Override MutObjBoolPair<T> first(T first) {\n this.first = first;\n return this;\n }\n \n public @Override boolean second() {\n return second;\n }\n\n public @Override MutObjBoolPair<T> second(boolean second) {\n this.second = second;\n return this;\n }\n \n\n\n\n\n\n\n\n\n\n\n\n\n }\n\n\n\n\n\n\n public static <T extends Comparable<? super T>> MutCompObjBoolPair<T> comparableOf() { \n return comparableOf( null , false );\n }\n \n\n public static <T extends Comparable<? super T>> MutCompObjBoolPair<T> comparableOf(T a1,boolean a2){\n return new MutCompObjBoolPair(a1,a2);\n }\n\n public static <T extends Comparable<? super T>> MutCompObjBoolPair<T> comparableCopyOf(LObjBoolPair<T> tuple) {\n return comparableOf(tuple.first(), tuple.second());\n }\n\n\n /**\n * Mutable, comparable tuple.\n */\n\n final class MutCompObjBoolPair<T extends Comparable<? super T>> extends AbstractObjBoolPair<T> implements ComparableObjBoolPair<T>,Mut<T,MutCompObjBoolPair<T>> {\n\n private T first;\n private boolean second;\n\n public MutCompObjBoolPair(T a1,boolean a2){\n this.first = a1;\n this.second = a2;\n }\n\n\n public @Override T first() {\n return first;\n }\n\n public @Override MutCompObjBoolPair<T> first(T first) {\n this.first = first;\n return this;\n }\n \n public @Override boolean second() {\n return second;\n }\n\n public @Override MutCompObjBoolPair<T> second(boolean second) {\n this.second = second;\n return this;\n }\n \n\n\n\n\n\n\n\n\n\n\n\n\n }\n\n\n\n\n\n\n\n public static <T> ImmObjBoolPair<T> immutableOf(T a1,boolean a2){\n return new ImmObjBoolPair(a1,a2);\n }\n\n public static <T> ImmObjBoolPair<T> immutableCopyOf(LObjBoolPair<T> tuple) {\n return immutableOf(tuple.first(), tuple.second());\n }\n\n\n /**\n * Immutable, non-comparable tuple.\n */\n@Immutable\n final class ImmObjBoolPair<T> extends AbstractObjBoolPair<T> {\n\n private final T first;\n private final boolean second;\n\n public ImmObjBoolPair(T a1,boolean a2){\n this.first = a1;\n this.second = a2;\n }\n\n\n public @Override T first() {\n return first;\n }\n\n public @Override boolean second() {\n return second;\n }\n\n\n\n }\n\n\n\n\n\n\n\n public static <T extends Comparable<? super T>> ImmCompObjBoolPair<T> immutableComparableOf(T a1,boolean a2){\n return new ImmCompObjBoolPair(a1,a2);\n }\n\n public static <T extends Comparable<? super T>> ImmCompObjBoolPair<T> immutableComparableCopyOf(LObjBoolPair<T> tuple) {\n return immutableComparableOf(tuple.first(), tuple.second());\n }\n\n\n /**\n * Immutable, comparable tuple.\n */\n@Immutable\n final class ImmCompObjBoolPair<T extends Comparable<? super T>> extends AbstractObjBoolPair<T> implements ComparableObjBoolPair<T> {\n\n private final T first;\n private final boolean second;\n\n public ImmCompObjBoolPair(T a1,boolean a2){\n this.first = a1;\n this.second = a2;\n }\n\n\n public @Override T first() {\n return first;\n }\n\n public @Override boolean second() {\n return second;\n }\n\n\n\n }\n\n\n\n}", "@Specialization\n\t\tString type(OzBacktrace backtrace) {\n\t\t\treturn \"tuple\";\n\t\t}", "protected void handleData(T tuple)\n throws DataException\n {\n \n if (tuple.isMutable())\n {\n if (sequence!=null)\n {\n if (sequenceField.getValue(tuple)==null)\n { \n String sequenceVal = Long.toString(sequence.next());\n if (debug)\n { \n log.fine\n (\"Generated sequence \"+sequenceVal\n +\" for \"+sequenceField.getURI()\n );\n }\n \n sequenceField.setValue\n ((EditableTuple) tuple\n ,sequenceField.getType().fromString(sequenceVal)\n ); \n }\n else\n { \n if (debug)\n {\n log.fine\n (\"Sequence field not null \"+sequenceField.getURI());\n }\n }\n }\n else\n { \n if (sequenceField!=null)\n { log.fine(\"Sequence is null for \"+sequenceField);\n }\n }\n\n if (defaultSetters!=null)\n {\n for (Setter<?> setter : defaultSetters)\n { \n if (setter.getTarget().get()==null)\n { setter.set();\n }\n }\n }\n\n if (fixedSetters!=null)\n {\n for (Setter<?> setter : fixedSetters)\n { setter.set();\n }\n }\n }\n else\n {\n if (debug)\n {\n log.fine\n (\"Not a mutable Tuple \"+tuple);\n }\n }\n \n if (inspector!=null)\n {\n Violation<T>[] violations=inspector.inspect(tuple);\n if (violations!=null)\n { throw new DataException(null,new RuleException(violations));\n }\n }\n \n }", "@Test\r\n public void testTambahSupplierBenar() throws RemoteException, NotBoundException{\n f = new Form_Data_Supplier_Tambah();\r\n Supplier sup = new Supplier();\r\n sup.setNama_Supplier(\"Merry\");\r\n sup.setAlamat_Supplier(\"Jalan lalala\");\r\n sup.setJenis_pajak_Supplier(\"jenispajak\");\r\n sup.setKode_Pajak_Supplier(\"018298128\");\r\n sup.setKota_Supplier(\"surabaya\");\r\n sup.setNPWP_Supplier(\"17987\");\r\n sup.setTelepon_Supplier(\"08129127676\");\r\n f.setNama(sup.getNama_Supplier()); \r\n f.setAlamat(sup.getAlamat_Supplier());\r\n f.setJenisPajak(sup.getJenis_pajak_Supplier());\r\n f.setKodePajak(sup.getKode_Pajak_Supplier());\r\n f.setNPWP(sup.getNPWP_Supplier());\r\n f.setKota(sup.getKota_Supplier());\r\n f.setTelp(sup.getTelepon_Supplier());\r\n boolean output = f.TambahSupplier();\r\n boolean target = true;\r\n assertEquals(target, output);\r\n Supplier s = ss.getLastSupplier();\r\n assertEquals(s.getNama_Supplier(), sup.getNama_Supplier());\r\n assertEquals(s.getAlamat_Supplier(), sup.getAlamat_Supplier());\r\n assertEquals(s.getJenis_pajak_Supplier(), sup.getJenis_pajak_Supplier());\r\n assertEquals(s.getKode_Pajak_Supplier(), sup.getKode_Pajak_Supplier());\r\n assertEquals(s.getKota_Supplier(), sup.getKota_Supplier());\r\n assertEquals(s.getNPWP_Supplier(), sup.getNPWP_Supplier());\r\n assertEquals(s.getTelepon_Supplier(), sup.getTelepon_Supplier());\r\n }", "public abstract void handleTuple(ITuple tuple);", "@Test void testInterpretTableFunctionWithDynamicType() {\n SchemaPlus schema = rootSchema.add(\"s\", new AbstractSchema());\n final TableFunction table1 =\n TableFunctionImpl.create(Smalls.DYNAMIC_ROW_TYPE_TABLE_METHOD);\n schema.add(\"dynamicRowTypeTable\", table1);\n final String sql = \"select *\\n\"\n + \"from table(\\\"s\\\".\\\"dynamicRowTypeTable\\\"('\"\n + \"{\\\"nullable\\\":false,\\\"fields\\\":[\"\n + \" {\\\"name\\\":\\\"i\\\",\\\"type\\\":\\\"INTEGER\\\",\\\"nullable\\\":false},\"\n + \" {\\\"name\\\":\\\"d\\\",\\\"type\\\":\\\"DATE\\\",\\\"nullable\\\":true}\"\n + \"]}', 0))\\n\"\n + \"where \\\"i\\\" < 0 and \\\"d\\\" is not null\";\n sql(sql).returnsRows();\n }", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "public Tuple(String attrib_names [], String attrib_types [], String attrib_values []) {\n\n\ttuple_counter++;\n\tnum_attribs = attrib_types.length;\n\tmy_data = new HashMap();\n\t\n\tfor (int i = 0; i < num_attribs; i++) {\n\ttry {\n\t Class cl = Class.forName(attrib_types[i]);\n\t Constructor constructor =\n\t\tcl.getConstructor(new Class[] { String.class });\n\t my_data.put ( attrib_names[i],\n\t\t(ColumnValue) constructor.newInstance\n\t\t(new Object[] { attrib_values[i] }));\n\t}\n\tcatch (java.lang.ClassNotFoundException e)\n\t { System.out.println(e.toString()); } \n\tcatch (java.lang.NoSuchMethodException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.reflect.InvocationTargetException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.InstantiationException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.IllegalAccessException e)\n\t { System.out.println(e.toString()); }\n\n\t}\n }", "@Test\n @Named(\"Error message\")\n @Order(8)\n public void _errorMessage() throws Exception {\n final Procedure1<Boolean> _function = new Procedure1<Boolean>() {\n public void apply(final Boolean it) {\n final Procedure1<UsingTablesSpecExample> _function = new Procedure1<UsingTablesSpecExample>() {\n public void apply(final UsingTablesSpecExample it) {\n int _plus = (it.value1 + it.value2);\n boolean _doubleArrow = Should.operator_doubleArrow(Integer.valueOf(_plus), Integer.valueOf(it.sum));\n Assert.assertTrue(\"\\nExpected value1 + value2 => sum but\"\n + \"\\n value1 + value2 is \" + new StringDescription().appendValue(Integer.valueOf(_plus)).toString()\n + \"\\n value1 is \" + new StringDescription().appendValue(it.value1).toString()\n + \"\\n value2 is \" + new StringDescription().appendValue(it.value2).toString()\n + \"\\n sum is \" + new StringDescription().appendValue(Integer.valueOf(it.sum)).toString() + \"\\n\", _doubleArrow);\n \n }\n };\n ExampleTableIterators.<UsingTablesSpecExample>forEach(UsingTablesSpec.this.example, _function);\n }\n };\n String _errorMessage = Helpers.errorMessage(_function);\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"example failed\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| value1 | value2 | sum |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| <1> | <2> | <3> | \\u2713\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| <4> | <5> | <7> | \\u2718 (1)\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| <7> | <8> | <14> | \\u2718 (2)\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"(1) java.lang.AssertionError: \");\n _builder.newLine();\n _builder.append(\"Expected value1 + value2 => sum but\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 + value2 is <9>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 is <4>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value2 is <5>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"sum is <7>\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"(2) java.lang.AssertionError: \");\n _builder.newLine();\n _builder.append(\"Expected value1 + value2 => sum but\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 + value2 is <15>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value1 is <7>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"value2 is <8>\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"sum is <14>\");\n Helpers.is(_errorMessage, _builder);\n }", "public abstract DataType<T> newInstance();", "EExpr slotsTuple(ENodeBuilder b, EExpr optPrefix, String[] exports) {\n return mixedTuple(b, optPrefix, exports, null, null);\n }", "public static Object PQgen(Object... arg) {\nUNSUPPORTED(\"c01vxogao855zs8fe94tpim9g\"); // void\nUNSUPPORTED(\"mv0qxfr5hxyhgu3l3m6o47cy\"); // PQgen(int sz)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"do3zjq97xzdk5dhii167i60qh\"); // if (!pq) {\nUNSUPPORTED(\"74u3ayhkzemd24zmbuv7wpym8\"); // pq = (snode**)zmalloc((sz+1)*sizeof(snode*));\nUNSUPPORTED(\"dezukzubu9nms24lhvphuawxq\"); // pq[0] = &guard;\nUNSUPPORTED(\"593hemyh9nreh89upeivll5qx\"); // PQsize = sz;\nUNSUPPORTED(\"7ijd6pszsxnoopppf6xwo8wdl\"); // }\nUNSUPPORTED(\"akljrpu8bej9lq4rmsktz8u2e\"); // PQcnt = 0;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "public void testBuilderExample() throws IOException {\n doTest();\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test(timeout = 10000)\n public void innerGenericInGenericType_sd19249_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method genericStringInner = getClass().getDeclaredMethod(\"testGenericInnerLong\");\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(genericStringInner.getReturnType());\n TypeName genericTypeName = TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(getClass().getDeclaredMethod(\"testGenericInnerInt\").getGenericReturnType());\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"innerGenericInGenericType_sd19249 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "private <T> Dynamic<T> a(Dynamic<T> var0) {\n/* 107 */ long var1 = var0.get(\"seed\").asLong(0L);\n/* 108 */ return new Dynamic(var0.getOps(), DataConverterWorldGenSettingsBuilding.a(var0, var1, DataConverterWorldGenSettingsBuilding.a(var0, var1), false));\n/* */ }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"wrong ch\";\n stringArray0[4] = \"wrong ch\";\n DBPrimaryKeyConstraint dBPrimaryKeyConstraint0 = new DBPrimaryKeyConstraint(defaultDBTable0, \"wrong ch\", false, stringArray0);\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n StringBuilder stringBuilder0 = SQLUtil.createConstraintSpecBuilder(dBPrimaryKeyConstraint0, nameSpec0);\n // Undeclared exception!\n try { \n stringBuilder0.insert(533, (CharSequence) \"wrong ch\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n //\n // String index out of range: 533\n //\n verifyException(\"java.lang.AbstractStringBuilder\", e);\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 }" ]
[ "0.5905363", "0.59041667", "0.58584577", "0.58517355", "0.57238084", "0.5722391", "0.5711123", "0.57041633", "0.56786823", "0.5615037", "0.5614897", "0.56061727", "0.55753577", "0.55032974", "0.54619056", "0.5450383", "0.5416129", "0.5393162", "0.5372092", "0.536073", "0.5344196", "0.53416365", "0.5336408", "0.5332387", "0.53250873", "0.5277329", "0.5277271", "0.52223545", "0.5185021", "0.51744133", "0.51741064", "0.5171705", "0.5170025", "0.51583976", "0.51490915", "0.51214963", "0.5116424", "0.5080713", "0.5072827", "0.5069209", "0.5042777", "0.5041344", "0.5035162", "0.50345325", "0.5029731", "0.50278", "0.5018111", "0.50006586", "0.4991832", "0.49883306", "0.4986338", "0.49806762", "0.4979599", "0.49745214", "0.4973348", "0.4971881", "0.49670473", "0.49669147", "0.49499133", "0.49488395", "0.49481636", "0.49469268", "0.49322647", "0.49226984", "0.4919667", "0.49116802", "0.48978424", "0.4895763", "0.48931593", "0.4888917", "0.48818576", "0.48701695", "0.48681793", "0.48554048", "0.48512205", "0.48471537", "0.48364085", "0.4835314", "0.48066208", "0.48023182", "0.4798267", "0.47826615", "0.4780887", "0.47676918", "0.47649592", "0.4755492", "0.4747744", "0.47426078", "0.4739978", "0.47395346", "0.4734352", "0.47337365", "0.47289488", "0.47252944", "0.47161528", "0.47145608", "0.4701751", "0.4697515", "0.4695996", "0.46941113" ]
0.7548259
0
Test the berlinmod player tuple builder
@Test public void testBerlinModPlayerTupleBuilder() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.BERLINMOD_PLAYER); final Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d); Assert.assertEquals(1180332136000L, tuple.getVersionTimestamp()); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n void grab() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n Square s = new Square(0, 4, false, true, false, true, false, 'b');\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(s);\n p.getPh().getPowerupDeck().getPowerups().clear();\n p.setTurn(true);\n AmmoTile a = new AmmoTile();\n PowerupDeck pud = new PowerupDeck();\n int[] cubes = new int[3];\n cubes[0] = 2;\n cubes[2] = 1;\n char[] c1 = {'b', 'b', 'b'};\n char[] c2 = {'r', 'r', 'r'};\n char[] c3 = {'y', 'y', 'y'};\n p.getPb().payAmmo(c1);\n p.getPb().payAmmo(c2);\n p.getPb().payAmmo(c3);\n a.setCubes(cubes);\n a.setPowerup(false);\n s.setAmmo(a);\n try{\n p.grab(p.getPlayerPosition(), pud);\n }catch (WrongSquareException e){}\n }", "private static void testPlayer() {\r\n\t\t\tnew AccessChecker(Player.class).pM(\"getName\").pM(\"getMark\").pM(\"toString\").checkAll();\r\n\t\t\tPlayer p = new Player(\"Test\", 'X');\r\n\t\t\tcheckEq(p.getName(), \"Test\", \"Player.getName\");\r\n\t\t\tcheckEq(p.getMark(), 'X', \"Player.getMark\");\r\n\t\t\tcheckEqStr(p, \"Test(X)\", \"Player.toString\");\t\t\r\n\t\t}", "public Tournament(){\n simplePlayer = new SimpleFakeGinRummyPlayer(new ParamList(new double[]{}));\n\n knockOnGinPlayer = new EnsembleHandEvalPlayer(ParamList.getRandomParamList(1), new DeadwoodHandEvaluator());\n knockOnGinPlayer.setKnockDecider(new KnockOnGinKnockDecider() );\n knockOnGinPlayer.setDrawDecider(new MeldOnlyDrawDecider());\n\n ExperimentalRuns.fixTwoStageKnockDecider101();\n // paramOfTunedTwoStagePlayer.set(ParamList.TS_KNOCK_THRESHOLD_EARLY, 0);\n // paramOfTunedTwoStagePlayer.set(ParamList.TS_KNOCK_THRESHOLD_LATE, 0);\n // paramOfTunedTwoStagePlayer.set(ParamList.TS_KNOCK_MIDDLE, 6);\n ParamList.setFixedValue(ParamList.TS_DRAW_MIDDLE, 14);\n ParamList paramOfTunedTwoStagePlayer = ParamList.getRandomParamList(1);\n System.out.println(paramOfTunedTwoStagePlayer);\n tunedTwoStagePlayer = new IndexEnsembleHandEvalPlayer(paramOfTunedTwoStagePlayer, new DeadwoodHandEvaluator());\n tunedTwoStagePlayer.setKnockDecider(new TwoStageKnockDecider(paramOfTunedTwoStagePlayer) );\n tunedTwoStagePlayer.setDrawDecider(new MeldOnlyDrawDecider());\n tunedTwoStagePlayer.setDrawDecider(new TwoStageDrawDecider(paramOfTunedTwoStagePlayer));\n\n resultSimpleVsKnockGin = 0;\n resultKnockGinVsTwoStage = 0;\n resultTwoStageVsSimple = 0;\n\n numGamePerPair = 2000;\n\n }", "@Test\n void initPosition() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.initPlayer();\n\n assertTrue(p.getPh().getPowerupDeck().getSize() == 2);\n\n Powerup pu = p.getPh().getPowerupDeck().getPowerups().get(0);\n p.initPosition(p.getPh().getPowerupDeck().getPowerups().get(0).getName(), p.getPh().getPowerupDeck().getPowerups().get(0).getColor() );\n\n assertTrue(p.getPh().getPowerupDeck().getSize() == 1 && Board.getSpawnpoint(p.getPlayerPosition().getNum()).getColor() == pu.getColor());\n }", "@Test\n void test() {\n Game g = init(\"gen_2p_02\");\n List<Player> players = g.getData().getPlayers();\n wrappedIllegalCommand(g, players.get(0), \"tool 6\");\n wrappedLegalCommand(g, players.get(0), \"pick 1\");\n assertTrue(g.isUndoAvailable());\n wrappedLegalCommand(g, players.get(0), \"tool 6\");\n assertFalse(g.isUndoAvailable());\n lightestShade(g, players);\n notLightestShade(g, players);\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Player player0 = new Player();\n Player player1 = new Player();\n player0.add(player1);\n player0.setConnected(true);\n byte[] byteArray0 = player0.pack();\n player0.setX((-170.22772F));\n player1.unpack(byteArray0);\n assertEquals((-170.22772F), player0.getX(), 0.01F);\n assertEquals(0, player1.getPictureId());\n }", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void test() {\n\t\t// CHECKSTYPE:OFF\n\n\t\t// Test the addPlayer(Player player) method\n\t\tPlayer player1 = new Player(\"Iris\");\n\t\tPlayer player2 = new Player(\"Emily\");\n\t\tPlayer player3 = new Player(\"Jason\");\n\t\tPlayer player4 = new Player(\"Rain\");\n\t\tPlayer player5 = new Player(\"Mandy\");\n\t\tscrabbleSystem.addPlayer(player1);\n\t\tscrabbleSystem.addPlayer(player2);\n\t\tscrabbleSystem.addPlayer(player3);\n\t\tscrabbleSystem.addPlayer(player4);\n\t\tscrabbleSystem.addPlayer(player5);\n\t\tList<Player> playersList = scrabbleSystem.getPlayers();\n\t\tassertEquals(4, playersList.size());\n\n\t\t// Test the startNewGame() method\n\t\t/**\n\t\t * The first Turn -- place some tiles on the board\n\t\t */\n\t\tscrabbleSystem.startNewGame();\n\t\tPlayer currentPlayer1 = scrabbleSystem.getCurrentPlayer();\n\t\tSystem.out.println(currentPlayer1.getName());\n\t\tassertEquals(7, currentPlayer1.getTileList().size());\n\t\tList<SpecialTile> specialStore = scrabbleSystem.getSpecialStore();\n\t\tassertEquals(5, specialStore.size());\n\t\tassertEquals(\"Boom\", specialStore.get(0).getName());\n\t\tassertEquals(\"NegativePoint\", specialStore.get(1).getName());\n\t\tassertEquals(\"RetrieveOrder\", specialStore.get(2).getName());\n\t\tassertEquals(\"ReverseOrder\", specialStore.get(3).getName());\n\t\tassertEquals(70, scrabbleSystem.getLetterBag().getNumber());\n\n\t\t// Test the playMove(Move move) method\n\t\tSquare square1 = scrabbleSystem.getBoard().getSquare(7, 7);\n\t\tSquare square2 = scrabbleSystem.getBoard().getSquare(8, 7);\n\t\tSquare square3 = scrabbleSystem.getBoard().getSquare(9, 7);\n\n\t\tTile tile1 = currentPlayer1.getTileList().get(0);\n\t\tTile tile2 = currentPlayer1.getTileList().get(1);\n\t\tTile tile3 = currentPlayer1.getTileList().get(2);\n\n\t\tint scoreSum1 = tile1.getValue() + tile2.getValue() + tile3.getValue();\n\t\t// The first Player\n\t\tMove move = scrabbleSystem.getMove();\n\t\tmove.addTile(square2, tile2);\n\t\tmove.addTile(square3, tile3);\n\n\t\tscrabbleSystem.playMove(move);\n\t\tassertEquals(7, currentPlayer1.getTileList().size());\n\t\tassertEquals(70, scrabbleSystem.getLetterBag().getNumber());\n\n\t\tmove.addTile(square1, tile1);\n\t\tscrabbleSystem.playMove(move);\n\t\tassertEquals(7, currentPlayer1.getTileList().size());\n\t\tassertEquals(67, scrabbleSystem.getLetterBag().getNumber());\n\n\t\tassertTrue(scrabbleSystem.getBoard().getSquare(7, 7).isOccuppied());\n\t\tassertTrue(scrabbleSystem.getBoard().getSquare(8, 7).isOccuppied());\n\t\tassertTrue(scrabbleSystem.getBoard().getSquare(9, 7).isOccuppied());\n\t\tassertFalse(scrabbleSystem.getBoard().getSquare(10, 7).isOccuppied());\n\t\tassertFalse(scrabbleSystem.isGameOver());\n\t\t// check player's score\n\t\tassertEquals(scoreSum1, currentPlayer1.getScore());\n\n\t\tPlayer challengePlayer1 = playersList.get(0);\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tPlayer playerTmp = playersList.get(i);\n\t\t\tif (playerTmp != currentPlayer1) {\n\t\t\t\tchallengePlayer1 = playerTmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// if there is no player invoke a challenge\n\t\tscrabbleSystem.updateOrder();\n\n\t\t/**\n\t\t * The secord turn -- place some tiles on the board and challenges by\n\t\t * another player\n\t\t */\n\t\tPlayer currentPlayer2 = scrabbleSystem.getCurrentPlayer();\n\t\tassertNotEquals(currentPlayer1, currentPlayer2);\n\t\tSystem.out.println(currentPlayer1.getName());\n\t\tSystem.out.println(currentPlayer2.getName());\n\n\t\tSquare square4 = scrabbleSystem.getBoard().getSquare(8, 6);\n\t\tSquare square5 = scrabbleSystem.getBoard().getSquare(8, 8);\n\t\tSquare square6 = scrabbleSystem.getBoard().getSquare(8, 9);\n\t\tSquare square7 = scrabbleSystem.getBoard().getSquare(7, 8);\n\n\t\tTile tile4 = currentPlayer2.getTileList().get(0);\n\t\tTile tile5 = currentPlayer2.getTileList().get(1);\n\t\tTile tile6 = currentPlayer2.getTileList().get(2);\n\n\t\tMove move2 = scrabbleSystem.getMove();\n\t\tassertEquals(0, move2.getTileMap().size());\n\t\tmove2.addTile(square4, tile4);\n\t\tmove2.addTile(square5, tile5);\n\t\tmove2.addTile(square7, tile6);\n\t\t// check invalid move\n\t\tscrabbleSystem.playMove(move2);\n\n\t\t// check invalid move\n\t\tmove2.clearMove();\n\t\tmove2.addTile(square4, tile4);\n\t\tmove2.addTile(square6, tile6);\n\t\tscrabbleSystem.playMove(move2);\n\n\t\t// make valid move\n\t\tmove2.clearMove();\n\t\tmove2.addTile(square4, tile4);\n\t\tmove2.addTile(square5, tile5);\n\t\tmove2.addTile(square6, tile6);\n\t\tscrabbleSystem.playMove(move2);\n\n\t\tint scoreSum2 = tile2.getValue() + tile4.getValue() * 2 + tile5.getValue() * 2 + tile6.getValue();\n\t\tassertEquals(scoreSum2, currentPlayer2.getScore());\n\n\t\t// get the challenge player\n\t\tPlayer challengePlayer2 = playersList.get(0);\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tPlayer playerTmp = playersList.get(i);\n\t\t\tif (playerTmp != currentPlayer1) {\n\t\t\t\tchallengePlayer2 = playerTmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tassertEquals(64, scrabbleSystem.getLetterBag().getNumber());\n\n\t\tscrabbleSystem.challenge(challengePlayer2);\n\t\tscrabbleSystem.updateOrder();\n\t\tassertEquals(67, scrabbleSystem.getLetterBag().getNumber());\n\t\tassertFalse(square4.isOccuppied());\n\t\tassertFalse(square5.isOccuppied());\n\t\tassertFalse(square6.isOccuppied());\n\n\t\t/**\n\t\t * The third turn -- buy a Boom special tile and pass this turn\n\t\t */\n\n\t\tPlayer currentPlayer3 = scrabbleSystem.getCurrentPlayer();\n\t\tMove move3 = scrabbleSystem.getMove();\n\t\tcurrentPlayer3.addScore(100);\n\t\tscrabbleSystem.buySpecialTile(\"Boom\");\n\t\tassertEquals(80, currentPlayer3.getScore());\n\n\t\tSquare square8 = scrabbleSystem.getBoard().getSquare(8, 8);\n\t\tSquare square9 = scrabbleSystem.getBoard().getSquare(9, 8);\n\t\tSquare square10 = scrabbleSystem.getBoard().getSquare(10, 8);\n\t\tSquare square11 = scrabbleSystem.getBoard().getSquare(10, 7);\n\n\t\tTile tile8 = currentPlayer3.getTileList().get(0);\n\t\tTile tile9 = currentPlayer3.getTileList().get(1);\n\t\tTile tile10 = currentPlayer3.getTileList().get(2);\n\t\tSpecialTile specialTile = currentPlayer3.getSpecialTiles().get(\"Boom\").get(0);\n\t\tmove3.addTile(square8, tile8);\n\t\tmove3.addTile(square9, tile9);\n\t\tmove3.addTile(square10, tile10);\n\t\tmove3.addSpecialTile(specialTile, square11);\n\n\t\tint scoreSum3 = 2 * tile8.getValue() + tile9.getValue() + tile10.getValue() + 2 * tile8.getValue()\n\t\t\t\t+ tile2.getValue() + tile3.getValue() + tile9.getValue() + 80;\n\t\tscrabbleSystem.playMove(move3);\n\t\tassertEquals(scoreSum3, currentPlayer3.getScore());\n\t\tscrabbleSystem.challenge(currentPlayer2);\n\t\tassertEquals(67, scrabbleSystem.getLetterBag().getNumber());\n\t\tassertTrue(square11.hasSpecialTile());\n\n\t\t/**\n\t\t * The fourth turn -- buy a NegativePoint special tile and place it on\n\t\t * the board\n\t\t */\n\t\tPlayer currentPlayer4 = scrabbleSystem.getCurrentPlayer();\n\t\tcurrentPlayer4.addScore(10);\n\t\tscrabbleSystem.buySpecialTile(\"NegativePoint\");\n\t\tassertEquals(1, currentPlayer4.getSpecialTiles().get(\"NegativePoint\").size());\n\n\t\tcurrentPlayer4.addScore(50);\n\t\tSystem.out.println(currentPlayer4.getScore());\n\t\tscrabbleSystem.buySpecialTile(\"NegativePoint\");\n\t\tint scoreSum4 = currentPlayer4.getScore();\n\n\t\tMove move4 = scrabbleSystem.getMove();\n\t\tSpecialTile specialTile2 = currentPlayer4.getSpecialTiles().get(\"NegativePoint\").get(0);\n\n\t\tSquare square12 = scrabbleSystem.getBoard().getSquare(11, 7);\n\t\tmove4.addSpecialTile(specialTile2, square12);\n\n\t\tscrabbleSystem.pass(move4);\n\t\tassertEquals(scoreSum4, currentPlayer4.getScore());\n\t\tassertTrue(square12.hasSpecialTile());\n\t\tassertEquals(1, currentPlayer4.getSpecialTiles().get(\"NegativePoint\").size());\n\n\t\t/**\n\t\t * The fifth turn -- invork the Boom and NegativePoint special tiles at\n\t\t * the same time\n\t\t */\n\t\tPlayer currentPlayer5 = scrabbleSystem.getCurrentPlayer();\n\t\tMove move5 = scrabbleSystem.getMove();\n\t\tSquare square13 = scrabbleSystem.getBoard().getSquare(10, 7);\n\t\tSquare square14 = scrabbleSystem.getBoard().getSquare(11, 7);\n\t\tSquare square15 = scrabbleSystem.getBoard().getSquare(12, 7);\n\t\tSquare square16 = scrabbleSystem.getBoard().getSquare(13, 7);\n\t\tSquare square17 = scrabbleSystem.getBoard().getSquare(14, 7);\n\n\t\tTile tile13 = currentPlayer5.getTileList().get(0);\n\t\tTile tile14 = currentPlayer5.getTileList().get(1);\n\t\tTile tile15 = currentPlayer5.getTileList().get(2);\n\t\tTile tile16 = currentPlayer5.getTileList().get(3);\n\t\tTile tile17 = currentPlayer5.getTileList().get(4);\n\n\t\tmove5.addTile(square13, tile13);\n\t\tmove5.addTile(square14, tile14);\n\t\tmove5.addTile(square15, tile15);\n\t\tmove5.addTile(square16, tile16);\n\t\tmove5.addTile(square17, tile17);\n\t\tscrabbleSystem.playMove(move5);\n\t\tassertFalse(square13.isOccuppied());\n\t\tassertFalse(square14.isOccuppied());\n\t\tassertFalse(square15.isOccuppied());\n\t\tassertFalse(square2.isOccuppied());\n\t\tassertFalse(square3.isOccuppied());\n\t\tassertTrue(square1.isOccuppied());\n\t\tscrabbleSystem.updateOrder();\n\n\t\tint scoreSum5 = scoreSum1 - 3 * (tile13.getValue() + tile14.getValue() + tile1.getValue());\n\t\tSystem.out.println(scoreSum5);\n\n\t\t/**\n\t\t * The sixth turn -- The player exchanges some tiles\n\t\t */\n\t\tPlayer currentPlayer6 = scrabbleSystem.getCurrentPlayer();\n\t\tList<Tile> tiles = new ArrayList<>();\n\t\tTile tile18 = currentPlayer6.getTileList().get(0);\n\t\tTile tile19 = currentPlayer6.getTileList().get(1);\n\t\tTile tile20 = currentPlayer6.getTileList().get(2);\n\t\ttiles.add(tile18);\n\t\ttiles.add(tile19);\n\t\ttiles.add(tile20);\n\t\tscrabbleSystem.exchangeTile(tiles);\n\t\tassertEquals(7, currentPlayer6.getTileList().size());\n\n\t\t/**\n\t\t * Get winner\n\t\t */\n\n\t\tList<Player> playersWinner = scrabbleSystem.getWinner();\n\t\tassertEquals(currentPlayer3.getName(), playersWinner.get(0).getName());\n\t}", "@Test\n void play_BranchThree()\n {\n dealer = 21;\n player = 22;\n result = BlackjackSimple.play(dealer, player);\n\n assertEquals(dealer, result);\n }", "@Test\n public void test() {\n GolfPlayer golfPlayer1 = new GolfPlayer();\n golfPlayer1.withName( \"Tiger Woods\" ).withHandicap( 12 );\n\n GolfPlayerDto dto = GolfPlayerMapper.INSTANCE.toDto( golfPlayer1 );\n\n GolfPlayer golfPlayer2 = GolfPlayerMapper.INSTANCE.toPlayer( dto );\n\n Assert.assertEquals( \"Tiger Woods\", golfPlayer2.name() );\n Assert.assertEquals( 12L, golfPlayer2.handicap(), 0 );\n }", "@Test\n void testFirstPlayer() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> heartCards, diamondCards, clubCards, spadeCards;\n\n spadeCards = new ArrayList <Card>();\n heartCards = new ArrayList <Card>();\n diamondCards = new ArrayList <Card>();\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n heartCards.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeCards.add(new Card(Suit.SPADES, rank, true));\n }\n for (Rank rank : Rank.values()) {\n diamondCards.add(new Card(Suit.DIAMONDS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartCards);\n testDealer.getBotB().fillHandCards(spadeCards);\n testDealer.getBotC().fillHandCards(diamondCards);\n testDealer.getUser().fillHandCards(clubCards);\n\n testDealer.setPlayerStarter();\n\n \n assertEquals(testDealer.getUser().getId(), testDealer.getNextPlayer());\n }", "@Test\n public final void testPlayer1Win() {\n checkPlayerWin(player1);\n }", "@Test\n void doEffectrocketlauncher() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"rocket launcher\");\n Weapon w19 = new Weapon(\"rocket launcher\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w19);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w19.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n ArrayList<GenericSquare> s = new ArrayList<>();\n players.add(victim);\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPlayerPosition() == Board.getSquare(10));\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPlayerPosition() == Board.getSquare(10) && p.getPlayerPosition() == Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('y'));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(10) && p.getPlayerPosition() == Board.getSquare(7) && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('y'));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(10));\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(10) && p.getPlayerPosition() == Board.getSquare(7) && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n }", "@Test\n void pay() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"machine gun\");\n Weapon w = new Weapon(\"t.h.o.r.\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n int[] ammo = {3, 3, 3};\n p.getPb().grabAmmo(ammo);\n w.pay(\"base\", p);\n\n assertTrue(p.getPb().getAmmo('b')==3 && p.getPb().getAmmo('r')==3 && p.getPb().getAmmo('y')==3);\n\n }", "@Test\n public void new_player() {\n //Arrange scenario\n //Add a player to the lobby with a different name\n Player other = new Player(\"Other\");\n playerLobby.addPlayer(other);\n final TemplateEngineTester testHelper = new TemplateEngineTester();\n //Add a player to a new empty lobby\n when(request.queryParams(\"id\")).thenReturn(\"Name\");\n // To analyze what the Route created in the View-Model map you need\n // to be able to extract the argument to the TemplateEngine.render method.\n // Mock up the 'render' method by supplying a Mockito 'Answer' object\n // that captures the ModelAndView data passed to the template engine\n when(templateEngine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n // Invoke the test\n CuT.handle(request, response);\n\n //Check if UI received all necessary parameters\n testHelper.assertViewModelExists();\n testHelper.assertViewModelIsaMap();\n\n testHelper.assertViewModelAttribute(\"currentUser\", request.queryParams(\"id\"));\n testHelper.assertViewModelAttribute(\"title\", \"Welcome!\");\n testHelper.assertViewModelAttribute(\"message\", PostSignInRoute.WELCOME_MSG);\n testHelper.assertViewModelAttribute(\"playerList\", CuT.playerNames);\n }", "@Test\n void testNextPlayerWhenPlayerHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getUser().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); \n testDealer.getTrickPlayer();\n assertEquals(testDealer.getBotA().getId(), testDealer.getNextPlayer());\n }", "@Test\n @DisplayName(\"gets all player years when player table doesn't exist in database\")\n void shouldGetAllPlayerYearsForNewPlayer() throws SQLException, InterruptedException {\n //Add test player to queue\n Player tonyParker = new Player(\"2225\", \"Parker\", \"Tony\", \"0\", \"2001\", \"2018\");\n runHandler.addToQueueForTesting(tonyParker);\n Connection connPlayers1 = individualPlayerScraper.setNewConnection(\"playertest\");\n individualPlayerScraper.getPlayerActiveYears(connPlayers1, connPlayers1);\n //Query database for inserted player data\n HashMap<String, ArrayList<Integer>> yearSeasonActivityMap = new HashMap<>();\n ResultSet rs = connPlayers1.prepareStatement(\"SELECT * FROM parker_tony_2225_individual_data\").executeQuery();\n while (rs.next()) {\n yearSeasonActivityMap.put(rs.getString(\"year\"), new ArrayList<>(Arrays.asList(rs.getInt(\"reg\"), rs.getInt(\"preseason\"), rs.getInt(\"playoffs\"))));\n }\n assertEquals(createTonyParkerTestMap(), yearSeasonActivityMap);\n rs.close();\n connPlayers1.close();\n }", "@Test\n public void playerWithoutProduction (){\n player.playRole(new Trader(stockGlobal,1));\n assertEquals(true,player.getInventory().getDoublons()==0);\n\n }", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n public void playerWinDoublonsBySellingHisProductionTest(){\n player.playRole(new Craftman(stockGlobal));\n player.playRole(new Trader(stockGlobal,1));\n assertEquals(1,player.getInventory().getDoublons());\n assertEquals(true,stockGlobal.getStockResource(TypeWare.INDIGO)==initialIndigoInStock-1);\n\n ArrayList<Plantation> plantationsCorn = new ArrayList<>();\n plantationsCorn.add(new CornPlantation());\n player.playRole(new Trader(stockGlobal,1));\n player.playRole(new Farmer(plantationsCorn,stockGlobal));\n\n assertEquals(true,player.getInventory().getDoublons()==1);\n assertEquals(true,stockGlobal.getStockResource(TypeWare.CORN)==initialCornStock);\n\n\n\n }", "public SoccerPlayer(String name, String position, TeamDB team){\n\n// Random num = new Random();\n// int randInt1;\n// int randInt2;\n// int randInt3;\n// int randInt4;\n//\n// randInt1 = num.nextInt(10); //fix for height and weight.\n// randInt2 = num.nextInt(190);\n// randInt3 = num.nextInt(300);\n// randInt4 = num.nextInt(10);\n\n playerName = name;\n playerPosition = position;\n playerTeam = new TeamDB(\"\");\n// playerUniform = randInt1;\n// playerHeight = randInt2;\n// playerWeight = randInt3;\n// playerGoals = randInt4;\n }", "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n void testUserIsNextPlayerWhenBotCHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getBotC().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); \n testDealer.getTrickPlayer();\n assertEquals(testDealer.getUser().getId(), testDealer.getNextPlayer());\n }", "@Test\n void doEffectcyberblade(){\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"cyberblade\");\n Weapon w20 = new Weapon(\"cyberblade\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w20);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w20.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n }", "@Test\r\n\tvoid testGeneratePlayersShouldPass() {\r\n\t\tModel dataModel = new Model();\r\n\t\t\r\n\t\tdataModel.generateSquads();\r\n\t\tdataModel.generatePlayers();\r\n\t\t\r\n\t\tArrayList<Player> players = dataModel.getAllPlayers();\r\n\t\t\r\n\t\tint size = players.size();\r\n\t\tassertNotEquals(0, size);\r\n\t}", "public PlayerImplementation(String fullname, int g, int ab, int r, int h, int d, int t, int hr,\n int rbi, int sb, int cs, int bb, int k, int gidp, int hbp, int sh,\n int sf, int ibb) {\n this.fullname = fullname;\n this.g = g;\n this.ab = ab;\n this.r = r;\n this.h = h;\n this.d = d;\n this.t = t;\n this.hr = hr;\n this.rbi = rbi;\n this.sb = sb;\n this.cs = cs;\n this.bb = bb;\n this.k = k;\n this.gidp = gidp;\n this.hbp = hbp;\n this.sh = sh;\n this.sf = sf;\n this.ibb = ibb;\n }", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "@Test\n void play_BranchTwo()\n {\n dealer = 22;\n player = 21;\n result = BlackjackSimple.play(dealer, player);\n\n assertEquals(player, result);\n }", "@Test\r\n void testProberSecond() {\r\n Prober testStrat = new Prober();\r\n PeriodicCD testStrat2 = new PeriodicCD();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n ArrayList<Character> expected = new ArrayList<>(Arrays.asList('d', 'c', 'c', 'c', 'd'));\r\n Game game = new Game(testStrat, testStrat2, 5, payoffs);\r\n game.playGame();\r\n assertEquals(game.historyStrategy1, expected, \"Prober strategy not functioning correctly\");\r\n }", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n void doEffectpowerglove() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"power glove\");\n Weapon w10 = new Weapon(\"power glove\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w10);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w10.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try {\n p.getPh().getWeaponDeck().getWeapon(w10.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(p.getPlayerPosition() == Board.getSquare(1) && victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b') == 2);\n\n p.setPlayerPosition(Board.getSquare(0));\n s.add(Board.getSquare(1));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n players.clear();\n players.add(victim);\n s.add(Board.getSpawnpoint('b'));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('b'));\n players.add(victim2);\n try{\n p.getPh().getWeaponDeck().getWeapon(w10.getName()).doEffect(\"alt\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(p.getPlayerPosition() == Board.getSpawnpoint('b') && victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 2);\n\n p.setPlayerPosition(Board.getSquare(0));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(1));\n s.add(Board.getSpawnpoint('b'));\n try{\n p.getPh().getWeaponDeck().getWeapon(w10.getName()).doEffect(\"alt\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { System.out.println(\"ERROR\");}\n\n assertTrue(p.getPlayerPosition() == Board.getSpawnpoint('b') && victim.getPb().countDamages() == 2);\n }", "@Test\n public void testConstructor() {\n \n Player player = new Player(\"Computer2\");\n \n // Assert the fields are what we expect\n \n String name = player.getName();\n Assert.assertEquals(\"Computer2\", name);\n }", "@Test\r\n\tpublic void testCreateMatchToMatchLeaguePlayGame() {\n\t\tassertTrue(\"New match to match league play game not created\", false);\r\n\t\tassertTrue(false);\r\n\t}", "@ParameterizedTest\n @MethodSource(value = \"createEverythingGoals\")\n\tpublic void AC1MultiLevelled(Goal everythingGoal) {\n\t\tGame g1 = Game.createMockGame(everythingGoal, \"\"\n\t\t\t+ \"PS! \\n\"\n\t\t\t+ \"TE B_ \\n\"\n\t\t);\n\t\t\n\t\tg1.movePlayer(Direction.DOWN);\n\t\tg1.movePlayer(Direction.UP);\n\t\tg1.movePlayer(Direction.RIGHT);\n\t\t\n\t\tg1.swingSword(Direction.RIGHT);\n\t\t\n\t\tg1.movePlayer(Direction.DOWN);\n\t\tg1.movePlayer(Direction.RIGHT);\n\t\tg1.movePlayer(Direction.RIGHT);\n\t\t\n\t\tassertEquals(\"\"\n\t\t\t+ \" \\n\"\n\t\t\t+ \" E PB \\n\"\n\t\t\t, g1.getBoardString()\n\t\t);\n\t\t\n\t\tassertFalse(g1.getHasWon());\n\t\t\n\t\tg1.movePlayer(Direction.LEFT);\n\t\tg1.movePlayer(Direction.LEFT);\n\t\t\n\t\tassertTrue(g1.getHasWon());\n\t\t\n\t\tGame g2 = Game.createMockGame(everythingGoal, \"\"\n\t\t\t+ \"PS! \\n\"\n\t\t\t+ \"TE B_ E\\n\"\n\t\t);\n\t\t\n\t\tg2.movePlayer(Direction.DOWN);\n\t\tg2.movePlayer(Direction.UP);\n\t\tg2.movePlayer(Direction.RIGHT);\n\t\t\n\t\tg2.swingSword(Direction.RIGHT);\n\t\t\n\t\tg2.movePlayer(Direction.DOWN);\n\t\tg2.movePlayer(Direction.RIGHT);\n\t\tg2.movePlayer(Direction.RIGHT);\n\t\tg2.movePlayer(Direction.RIGHT);\n\t\t\n\t\tassertEquals(\"\"\n\t\t\t+ \" \\n\"\n\t\t\t+ \" E PBE\\n\"\n\t\t\t, g2.getBoardString()\n\t\t);\n\t\t\n\t\tg2.movePlayer(Direction.LEFT);\n\t\tg2.movePlayer(Direction.LEFT);\n\t\tg2.movePlayer(Direction.LEFT);\n\t\t\n\t\tassertEquals(\"\"\n\t\t\t+ \" \\n\"\n\t\t\t+ \" P _BE\\n\"\n\t\t\t, g2.getBoardString()\n\t\t);\n\t\t\n\t\tassertFalse(g2.getHasWon());\n\n\t\tg2.movePlayer(Direction.UP);\n\t\tg2.movePlayer(Direction.RIGHT);\n\t\tg2.movePlayer(Direction.RIGHT);\n\t\tg2.movePlayer(Direction.RIGHT);\n\t\tg2.movePlayer(Direction.RIGHT);\n\t\tg2.movePlayer(Direction.RIGHT);\n\t\tg2.movePlayer(Direction.DOWN);\n\t\tg2.movePlayer(Direction.LEFT);\n\n\t\tassertEquals(\"\"\n\t\t\t+ \" \\n\"\n\t\t\t+ \" E BPE\\n\"\n\t\t\t, g2.getBoardString()\n\t\t);\n\t\t\n\t\tassertFalse(g2.getHasWon());\n\n\t\tg2.movePlayer(Direction.RIGHT);\n\t\t\n\t\tassertTrue(g2.getHasWon());\n\t\n\t\tGame g3 = Game.createMockGame(everythingGoal, \"\"\n\t\t\t+ \"S! \\n\"\n\t\t\t+ \"BE \\n\"\n\t\t\t+ \"_T \\n\"\n\t\t\t, \"\"\n\t\t\t+ \"P \\n\"\n\t\t\t+ \" \\n\"\n\t\t\t+ \" \\n\"\n\t\t);\n\t\t\n\t\tg3.swingSword(Direction.RIGHT);\n\t\t\n\t\tg3.movePlayer(Direction.DOWN);\n\t\tg3.movePlayer(Direction.RIGHT);\n\t\tg3.movePlayer(Direction.DOWN);\n\t\t\n\t\tassertFalse(g3.getHasWon());\n\t\t\n\t\tg3.movePlayer(Direction.UP);\n\t\t\n\t\tassertTrue(g3.getHasWon());\n }", "@Test\n void testBotCIsNextPlayerWhenBotBHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n \n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getBotB().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); \n testDealer.getTrickPlayer();\n assertEquals(testDealer.getBotC().getId(), testDealer.getNextPlayer());\n }", "public Player(Playground_Registration pgr) {\n this.pgr = pgr;\n pgr.setPName(\"barca\");\n System.out.println(pgr.getPName());\n pgr.setLocation(\"naser city\");\n System.out.println(pgr.getLocation());\n pgr.setSize(5);\n System.out.println(pgr.getSize());\n pgr.setAvailable_Hour(3);\n System.out.println(pgr.getAvailable_Hour());\n pgr.setPrice_Of_hour(120);\n System.out.println(pgr.getPrice_Of_hour());\n pgr.setPlayground_Status(\"available\");\n System.out.println(pgr.getPlayground_Status());\n pgr.setCancelation_Perioud(\"\");\n System.out.println(pgr.getCancelation_Perioud());\n System.out.println(\"i want to book this play ground\");\n\n }", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "public static void set_players(){\n\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\tbat1=PlayBrain1.myteam[0];\n\t\t\tbat2=PlayBrain1.myteam[1];\n\t\t\tStriker=bat1;\n\t\t\tNonStriker=bat2;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tbat1=PlayBrain1.oppteam[0];\n\t\t\t\tbat2=PlayBrain1.oppteam[1];\n\t\t\t\tStriker=bat1;\n\t\t\t\tNonStriker=bat2;\n\n\t\t\t\t}\n\t}", "@Test\n public final void testPlayer2Win() {\n checkPlayerWin(player2);\n }", "@Test\n public void testBuild() {\n System.out.println(\"build\");\n game.getPlayer().setEps(0);\n assertEquals((Integer) 1, building.build());\n assertEquals((Integer) 0, game.getPlayer().getEps());\n \n game.getPlayer().setEps(600);\n assertEquals((Integer) 3, building.build());\n assertEquals((Integer) 600, game.getPlayer().getEps());\n \n game.getPlayer().setEps(800);\n assertEquals((Integer) 0, building.build());\n assertEquals((Integer) 300, game.getPlayer().getEps());\n \n game.getPlayer().setEps(1000);\n assertEquals((Integer) 2, building.build());\n assertEquals((Integer) 1000, game.getPlayer().getEps());\n }", "@Test\r\n void testProberFirst() {\r\n Prober testStrat = new Prober();\r\n AlwaysCooperate testStrat2 = new AlwaysCooperate();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n ArrayList<Character> expected = new ArrayList<>(Arrays.asList('d', 'c', 'c', 'd', 'd'));\r\n Game game = new Game(testStrat, testStrat2, 5, payoffs);\r\n game.playGame();\r\n assertEquals(game.historyStrategy1, expected, \"Prober strategy not functioning correctly\");\r\n }", "@Test\n\tpublic void validGetPlayer_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tgameState.addPlayer(0, \"Ben\", Color.RED);\n\t\tassertEquals(gameState.getPlayerID(\"Ben\"), 0);\n\t}", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Player player0 = new Player();\n Player player1 = new Player((-349));\n player1.setDead((-3013L), false);\n player0.setJoinOK(player1, true);\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)73;\n byteArray0[3] = (byte)0;\n byteArray0[4] = (byte)0;\n byteArray0[5] = (byte) (-58);\n player0.id = (int) (byte) (-58);\n byteArray0[6] = (byte)0;\n byteArray0[7] = (byte)114;\n player0.unpack(byteArray0);\n player1.isDead();\n assertEquals((-3013L), player1.getTimeOfDeath());\n \n player0.setDead((long) (byte)0);\n assertTrue(player0.isDead());\n }", "@Test\n void testBotBIsNextPlayerWhenBotAHas2Clubs() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> clubCards;\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(clubCards);\n testDealer.setPlayerStarter(); //botA is nextPlayer\n testDealer.getTrickPlayer();\n assertEquals(testDealer.getBotB().getId(), testDealer.getNextPlayer());\n }", "@Test\n public void testTie() {\n Assert.assertTrue(\n new Game(\n new Grid3x3(),\n new PredefinedPlayer(new int[] {0, 2, 4, 5, 7}),\n new PredefinedPlayer(new int[] {1, 3, 6, 8})\n ).play().winner().empty());\n }", "private PlayerBagMsg(Builder builder) {\n super(builder);\n }", "@Test\n void doEffectPlasmaGun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"plasma gun\");\n Weapon w17 = new Weapon(\"plasma gun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w17);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w17.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n p.setPlayerPosition(Board.getSpawnpoint(2));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(6));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p.getPlayerPosition() == Board.getSquare(6));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(1));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p.getPlayerPosition() == Board.getSquare(1));\n\n p.setPlayerPosition(Board.getSpawnpoint(2));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(6));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && p.getPlayerPosition() == Board.getSquare(6));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && p.getPlayerPosition() == Board.getSpawnpoint('b'));\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n Player player0 = new Player(4906);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"Qw_WlDP-TE\");\n Player player1 = new Player((short)4919);\n player0.setJoinOK(player1, false);\n boolean boolean0 = player0.isJoinOK(player1, false);\n assertTrue(boolean0);\n assertEquals(0L, player1.getTimeOfDeath());\n assertFalse(player1.isDead());\n assertEquals(10.0F, player1.getX(), 0.01F);\n assertTrue(player1.isConnected());\n assertEquals(0.0F, player1.getY(), 0.01F);\n assertEquals(1, player1.getStrength());\n assertEquals(0, player1.getPictureId());\n assertEquals(\"Player4919\", player1.toString());\n assertEquals(\"0.0.0.0\", player1.getIP());\n }", "public TestPlayer()\n {\n }", "@Test\r\n\tpublic void testTournamentGamesConditions() {\r\n\t\tassertTrue(cl.checkTournamentGamesConditions(Integer.parseInt(tags[6])));\r\n\t\tassertFalse(cl.checkTournamentGamesConditions(Integer.parseInt(tags2[6])));\r\n\t}", "@Test\n void play_BranchOne()\n {\n dealer = 22;\n player = 22;\n result = BlackjackSimple.play(dealer, player);\n\n assertEquals(0, result);\n }", "public static void main(String[] args) {\n playerTest();\n unlockedChunks = new ArrayList<Integer>();\n unlockedChunks.add(1);\n currentSkills = new int[Constant.NUMBER_OF_Skills];\n currentSkills[0] = 2;\n currentSkills[1] = 2;\n currentSkills[2] = 2;\n completedQuests = new ArrayList<String>();\n\n ArrayList<Integer> chunks = new ArrayList<Integer>();\n chunks.add(1);\n Item item = new Item(\"Test Item\", chunks);\n\n UnlockedItemDatabase.addToDB(item);\n\n ArrayList<String> itemReqs = new ArrayList();\n itemReqs.add(\"Test Item 2\");\n ArrayList<String> itemReqs2 = new ArrayList();\n QuestStep q1= new QuestStep(1,\"step 1\",itemReqs,1);\n QuestStep q2 = new QuestStep(2,\"step 2\", itemReqs2, 2);\n ArrayList<QuestStep> steps = new ArrayList();\n steps.add(q1);\n steps.add(q2);\n int[] skillReqs = new int[Constant.NUMBER_OF_Skills];\n skillReqs[0] = 1;\n skillReqs[1] = 1;\n skillReqs[2] = 1;\n ArrayList<String> questReqs = new ArrayList();\n Quest quest = new Quest(\"Quest 1\",steps,1,skillReqs,0,questReqs);\n System.out.println();\n System.out.println(\"Quest: \" + quest.getName() + \" has a completable section: \" + quest.isCompletable(unlockedChunks, currentSkills,completedQuests));\n }", "public void testGetPlayer() {\n System.out.println(\"getPlayer\");\n Play instance = new Play(\"Player1\", new Card(Rank.QUEEN, Suit.SPADES));\n String expResult = \"Player1\";\n String result = instance.getPlayer();\n assertEquals(expResult, result);\n }", "BPlayer getPlayer(Player player);", "@Test\n @DisplayName(\"gets all player years when player table is already partially filled\")\n void shouldUpdatePlayerYearsForExistingPlayer() throws SQLException, InterruptedException {\n //Add test player to queue\n Player tonyParker = new Player(\"2225\", \"Parker\", \"Tony\", \"0\", \"2001\", \"2018\");\n runHandler.addToQueueForTesting(tonyParker);\n Connection connPlayers1 = individualPlayerScraper.setNewConnection(\"playertest\");\n //Create test player table and insert some incomplete data\n individualPlayerScraper.createIndividualDataTable(\"parker_tony_2225_individual_data\", connPlayers1, connPlayers1);\n connPlayers1.prepareStatement(\"INSERT INTO parker_tony_2225_individual_data (year,reg,preseason,playoffs) VALUES ('2001-02',-1,-1,-1),\" +\n \"('2002-03',-1,-1,-1),('2003-04',-1,-1,-1),('2004-05',-1,-1,-1),('2005-06',-1,-1,-1),('2006-07',-1,-1,-1)\").execute();\n individualPlayerScraper.getPlayerActiveYears(connPlayers1, connPlayers1);\n //Query database for inserted player data\n HashMap<String, ArrayList<Integer>> yearSeasonActivityMap = new HashMap<>();\n ResultSet rs = connPlayers1.prepareStatement(\"SELECT * FROM parker_tony_2225_individual_data\").executeQuery();\n while (rs.next()) {\n yearSeasonActivityMap.put(rs.getString(\"year\"), new ArrayList<>(Arrays.asList(rs.getInt(\"reg\"), rs.getInt(\"preseason\"), rs.getInt(\"playoffs\"))));\n }\n assertEquals(createTonyParkerTestMap(), yearSeasonActivityMap);\n rs.close();\n connPlayers1.close();\n }", "@Test\n public void new_player_name() {\n //Arrange scenario\n //different player name\n Player other = new Player(\"Other\");\n final TemplateEngineTester testHelper = new TemplateEngineTester();\n //Add a player to a new empty lobby\n when(request.queryParams(\"id\")).thenReturn(\"Name\");\n Player player = new Player(request.queryParams(\"id\"));\n // To analyze what the Route created in the View-Model map you need\n // to be able to extract the argument to the TemplateEngine.render method.\n // Mock up the 'render' method by supplying a Mockito 'Answer' object\n // that captures the ModelAndView data passed to the template engine\n when(templateEngine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n // Invoke the test\n CuT.handle(request, response);\n\n //Check if names are not equal\n assertNotEquals(player.getName(),other.getName());\n }", "@Test\r\n\tpublic void testStartMatchToMatchLeaguePlayMatch1() {\n\t\tassertTrue(\"Portfolio value does not equal initial balance\", false);\r\n\t\t//Check that players cannot change their portfolios\t\t\r\n\t\tassertTrue(\"Stock holdings may not be modified\", false);\r\n\t}", "private PBZJHUserPlayInfo(Builder builder) {\n super(builder);\n }", "@Test\n public void test2IsCreatable()throws Exception{\n\n Position pos = new Position(0,0);\n generateLevel.landOn(pos,BlockType.PATH.toString());\n NormalDefender nd = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n assertTrue(generateLevel.isCreatable(nd));\n }", "void createPlayer(Player player);", "@Test\n public void encodePlayersTest() {\n Player player1 = new Player(\"Federico\", Character.BANSHEE);\n Player player2 = new Player(\"Francesco\", Character.D_STRUCT_OR);\n Player player3 = new Player(\"Evandro\", Character.SPROG);\n ArrayList<Player> playersList = new ArrayList<>();\n playersList.add(player1);\n playersList.add(player2);\n playersList.add(player3);\n ArrayList<Character> playerListLite = Encoder.encodePlayerTargets(playersList);\n ArrayList<Character> expectedLiteList = new ArrayList<>();\n expectedLiteList.add(Character.BANSHEE);\n expectedLiteList.add(Character.D_STRUCT_OR);\n expectedLiteList.add(Character.SPROG);\n Assert.assertEquals(expectedLiteList, playerListLite);\n }", "@Test\n void checkPowerupResources() {\n ArrayList<Player> array = new ArrayList<>();\n AlphaGame game = new AlphaGame(1, array, false, 5);\n RealPlayer rp = new RealPlayer('b', \"rp\");\n rp.setPlayerPosition(Board.getSpawnpoint('b'));\n array.add(rp);\n char[] cost = new char[3];\n cost[0] = 'b';\n cost[1] = 'r';\n Powerup p = new Powerup(\"tagback grenade\", 'b', false, false, false, false, null, null, null);\n Powerup p1 = new Powerup(\"tagback grenade\", 'r', false, false, false, false, null, null, null);\n Powerup p2 = new Powerup(\"tagback grenade\", 'y', false, false, false, false, null, null, null);\n rp.getPh().getPowerupDeck().addPowerup(p);\n rp.getPh().getPowerupDeck().addPowerup(p1);\n rp.getPh().getPowerupDeck().addPowerup(p2);\n\n assertTrue(rp.checkAmmoResources(cost));\n\n cost[0] = 'b';\n cost[1] = 'b';\n\n assertFalse(rp.checkAmmoResources(cost));\n\n }", "@Test\n void checkAmmoPowerupResources() {\n ArrayList<Player> array = new ArrayList<>();\n AlphaGame game = new AlphaGame(1, array, false, 5);\n RealPlayer rp = new RealPlayer('b', \"rp\");\n rp.setPlayerPosition(Board.getSpawnpoint('b'));\n array.add(rp);\n char[] cost = new char[3];\n cost[0] = 'b';\n cost[1] = 'r';\n\n assertFalse(rp.checkAmmoPowerupResources(cost));\n\n Powerup p = new Powerup(\"tagback grenade\", 'b', false, false, false, false, null, null, null);\n Powerup p1 = new Powerup(\"tagback grenade\", 'r', false, false, false, false, null, null, null);\n Powerup p2 = new Powerup(\"tagback grenade\", 'y', false, false, false, false, null, null, null);\n rp.getPh().getPowerupDeck().addPowerup(p);\n rp.getPh().getPowerupDeck().addPowerup(p1);\n rp.getPh().getPowerupDeck().addPowerup(p2);\n\n assertTrue(rp.checkAmmoPowerupResources(cost));\n\n cost[0] = 'b';\n cost[1] = 'b';\n\n assertTrue(rp.checkAmmoPowerupResources(cost));\n }", "@Test\n public void testAirliftCommand() {\n List<Country> l_countryList = d_gameData.getD_warMap().getD_continents().get(1).getD_countryList();\n l_countryList.add(d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0));\n d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).setD_noOfArmies(7);\n d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0).setD_noOfArmies(3);\n\n d_orderProcessor.processOrder(\"airlift india nepal 6\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(true, l_order.executeOrder());\n\n assertEquals(0, d_gameData.getD_playerList().get(1).getD_ownedCountries().size());\n assertEquals(3, d_gameData.getD_playerList().get(0).getD_ownedCountries().size());\n assertEquals(4, d_gameData.getD_playerList().get(0).getD_ownedCountries().get(2).getD_noOfArmies());\n assertEquals(1, d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).getD_noOfArmies());\n }", "public void testLang(){\n\t\tSystem.out.println(\"Player Num: \" + player.getNum());\n//\t\tSystem.out.println(\"Diplayed na^^\");\n\t}", "@Test\n public void testGetOtherPlayer1Player() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n\n Player l = j.getOtherPlayer(p);\n\n assertEquals(\"Le player devrai etre le même\", p, l);\n }", "@Test public void getTest() throws NegativeValueException {\n \n PetBunny pb1 = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5); \n \n Assert.assertEquals(\"Floppy\", pb1.getName());\n Assert.assertEquals(\"Holland Lop\", pb1.getBreed());\n Assert.assertEquals(3.5, pb1.getWeight(), 0.00001);\n }", "@Test\n public void testGetOtherPlayer2Player() {\n Player p = new Player();\n Player p2 = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n pL.add(p2);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n\n Player l = j.getOtherPlayer(p);\n\n assertEquals(\"Le player ne devrai pas etre le même que celui mis dans la fonction\", p2, l);\n }", "@Test\n void testWinnerOfTrickFollowingClubSuit() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n\n Bot botA = testDealer.getBotA();\n Bot botB = testDealer.getBotB();\n Bot botC = testDealer.getBotC();\n\n ArrayList<Card> botAHand, botBHand, botCHand = new ArrayList <Card>();\n\n // botAHand = new ArrayList <Card>();\n botAHand = new ArrayList <Card>();\n botBHand = new ArrayList <Card>();\n botCHand = new ArrayList <Card>();\n\n Card thrownCard = new Card(Suit.CLUBS,Rank.FOUR,true);\n \n Card cardA1 = new Card(Suit.CLUBS,Rank.KING,true);\n\n Card cardB1 = new Card(Suit.CLUBS,Rank.FIVE,true);\n\n Card cardC1 = new Card(Suit.CLUBS,Rank.QUEEN,true);\n\n botAHand.add(cardA1);\n botBHand.add(cardB1);\n botCHand.add(cardC1);\n \n // botA.fillHandCards(botAHand);\n botA.fillHandCards(botAHand);\n botB.fillHandCards(botBHand);\n botC.fillHandCards(botCHand);\n\n testDealer.addToPlayedCards(thrownCard);\n \n Card cardToPlay = botA.playCard(thrownCard, 1);\n testDealer.addToPlayedCards(cardToPlay);\n Card largestPlayedCard = testDealer.getLargestCardFromTrick();\n\n cardToPlay = botB.playCard(largestPlayedCard, 2);\n testDealer.addToPlayedCards(cardToPlay);\n largestPlayedCard = testDealer.getLargestCardFromTrick();\n\n cardToPlay = botC.playCard(largestPlayedCard, 3);\n testDealer.addToPlayedCards(cardToPlay);\n\n // List<Card> allPlayedCards = testDealer.getPlayedCardsForTrick();\n assertEquals(\"botA\", testDealer.getWinnerOfTrick(testDealer.getPlayedCardsForTrick()));\n }", "@Test\n void doEffecttractorbeam() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"tractor beam\");\n Weapon w2 = new Weapon(\"tractor beam\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w2);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w2.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(players.get(0).getPb().countDamages() == 1 && players.get(0).getPlayerPosition() == Board.getSpawnpoint('b'));\n\n players.get(0).setPlayerPosition(Board.getSquare(1));\n s.clear();\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(players.get(0).getPb().countDamages() == 4 && players.get(0).getPlayerPosition() == p.getPlayerPosition());\n }", "@Test\r\n\tpublic void testStartMatchToMatchLeaguePlayMatch2() {\n\t\tassertTrue(\"Portfolio value does not equal initial balance\", false);\r\n\t\t//Check that players cannot change their portfolios\t\t\r\n\t\tassertTrue(\"Stock holdings may not be modified\", false);\r\n\t}", "private Tuples() {}", "@Test\n public void boggle(){\n BoggleBoard board = new BoggleBoard(\"datasets/board5x5.txt\");\n\n BogglePlayer player = new BogglePlayer(Permeate.textToStringAr(\"datasets/dictionary-yawl.txt\"));\n\n for (String word : player.getAllValidWords(board)) {\n System.out.println(word);\n }\n assertEquals(2911,player.getMaximumScore(board));\n }", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Player player0 = new Player(2748, \"p=::{i-OK!\", \"\", 1);\n int int0 = player0.type();\n assertEquals(5, int0);\n assertEquals(\"p=::{i-OK!\", player0.getIP());\n assertEquals(10.0F, player0.getX(), 0.01F);\n assertEquals(0L, player0.getTimeOfDeath());\n assertFalse(player0.isDead());\n assertEquals(1, player0.getPictureId());\n assertEquals(0.0F, player0.getY(), 0.01F);\n assertEquals(1, player0.getStrength());\n assertTrue(player0.isConnected());\n }", "public POGOProtos.Rpc.CombatProto.CombatPlayerProto.Builder getPlayerBuilder() {\n \n onChanged();\n return getPlayerFieldBuilder().getBuilder();\n }", "@Test\n void buildWaredDrobeTest() {\n WaredDrobeBuilder waredDrobeBuilder = new WaredDrobeBuilder();\n WaredDrobe waredDrobe = waredDrobeBuilder.build();\n List<String>partlist=waredDrobe.getParts();\n\n List<String>steps = Arrays.asList(\"bottom\",\"side\",\"side\",\"back\",\"top\",\"shelf\",\"shelf\",\"shelf\",\"shelf\",\n \"shelf\",\"shelf\",\"shelf\",\"shelf\",\"door\",\"door\");\n assertEquals(steps,partlist);\n\n\n\n\n }", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }", "@Test\n\tpublic void test_getName() {\n\tTennisPlayer c1 = new TennisPlayer(24,\"John Isner\");\n\tassertEquals(\"John Isner\",c1.getName());\n }", "@Test\n public void testGetters()\n {\n assertEquals(\"\",test.getPlayerName());\n assertEquals(\"UseCard\",test.toString());\n assertEquals(13,test.getCardID());\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Player player0 = new Player(4906);\n Party party0 = player0.next;\n player0.remove((Party) null);\n player0.setY(0.0F);\n assertEquals(\"0.0.0.0\", player0.getIP());\n assertEquals(0, player0.getPictureId());\n assertEquals(\"Player4906\", player0.toString());\n assertEquals(0.0F, player0.getY(), 0.01F);\n \n Player player1 = new Player((short)4919, \"state.Player$JoinInfo\", \"state.Player$JoinInfo\", 4906);\n assertEquals(4906, player1.getPictureId());\n assertFalse(player1.isDead());\n assertEquals(10.0F, player1.getX(), 0.01F);\n assertEquals(0L, player1.getTimeOfDeath());\n assertEquals(1, player1.getStrength());\n assertTrue(player1.isConnected());\n }", "@Test\n\t//getting errors recognizing labooncoin so i used 'one'\n\tpublic void testHappyBlockPrint()\n\t{\n\t\tLaboonCoin one = new LaboonCoin();\n\t\tone.blockchain.add(\"All your base\");\n\t\tone.blockchain.add(\"are belong\");\n\t\tone.blockchain.add(\"to us\");\n\t\tassertEquals(\"All your base\" + '\\n' + \"are belong\" + '\\n' + \"to us\" + '\\n', one.getBlockChain());\n\t}", "@Test\n\tpublic void testgetPlayers() {\n\t\tList<Character> characters = new ArrayList<Character>();\n\t\tcharacters.add(new Character(\"Miss Scarlet\", Color.red, new Point(7,24), \"assets/cards/character/MissScarlet.jpg\"));\n\t\tcharacters.add(new Character(\"Colonel Mustard\", Color.yellow, new Point(0,17),\"assets/cards/character/ColonelMustard.jpg\"));\n\t\tcharacters.add(new Character(\"Mrs. White\", Color.white, new Point(9,0), \"assets/cards/character/MrsWhite.jpg\"));\n\t\tcharacters.add(new Character(\"The Reverend Green\", Color.green, new Point(14,0),\"assets/cards/character/MrGreen.jpg\"));\n\t\tcharacters.add(new Character(\"Mrs. Peacock\", Color.blue, new Point(23,6), \"assets/cards/character/MrsPeacock.jpg\"));\n\t\tcharacters.add(new Character(\"Professor Plum\", Color.pink, new Point(23,19),\"assets/cards/character/ProfessorPlum.jpg\"));\n\t\tPlayer p = new Player(\"Chris\");\n\t\tcharacters.get(1).setPlayer(p);\t\t\n\t\tBoard b = new Board(characters);\n\t\tassertTrue(b.getPlayers().contains(p));\n\t\tassertTrue(b.getPlayers().size() ==1);\n\t\t\n\t}", "@Test\n public void getMatchListTest()\n {\n RiotApiHandler userTest=RiotApiHandler.getInstance();\n String[] array= {\"EUN1_2813356879\", \"EUN1_2797819662\", \"EUN1_2797712721\", \"EUN1_2797709856\", \"EUN1_2797693226\", \"EUN1_2797682448\", \"EUN1_2797526002\",\n \"EUN1_2797504038\", \"EUN1_2797540836\", \"EUN1_2794696829\", \"EUN1_2791827193\", \"EUN1_2791781454\", \"EUN1_2791655029\",\n \"EUN1_2791596648\", \"EUN1_2786187593\", \"EUN1_2785993952\", \"EUN1_2727858238\", \"EUN1_2727671015\", \"EUN1_2727312718\", \"EUN1_2727226847\"\n };\n ArrayList<String> correct = new ArrayList<>(Arrays.asList(array));\n //test fails, I play this game everyday so the matchlist changes constantly, it all works real good (source ---> trust me :ok:)\n Assert.assertEquals(correct ,userTest.getMatchlist(\"8f9zu86yj87xgh76\",\"eun1\"));\n }", "public static void TournamentTest() {\r\n String path = \"C:\\\\Users\\\\Kitty\\\\git\\\\botbattle\\\\cmpsc488\\\\botbattleapp\\\\GameManager2\\\\bin\";\r\n CompetitorData c = new CompetitorData();\r\n c.addUser(\"rvh5220\", path);\r\n c.addUser(\"rvh5221\", path);\r\n c.addUser(\"rvh5222\", path);\r\n c.addUser(\"rvh5223\", path);\r\n\r\n Tournament t = new Tournament(null, null, c);\r\n try {\r\n t.runTournament();\r\n } catch (IOException e) { // TODO this should probablly be caught lower down\r\n e.printStackTrace();\r\n }\r\n }", "@Test\n public void startPlayTest1() {\n GenericStandardDeckGame g = new GenericStandardDeckGame(3);\n assertEquals(g.getPlayers().size(), 3);\n }", "@org.junit.Test\n public void test_PlayerWin(){\n deck.add(new Card(Suit.Club ,2)); //player\n deck.add(new Card(Suit.Diamond, 10)); //dealer\n deck.add(new Card(Suit.Spade, 11)); //player\n deck.add(new Card(Suit.Heart, 8)); //dealer\n deck.add(new Card(Suit.Diamond, 7)); //player\n deck.add(new Card(Suit.Heart, 9)); //dealer\n\n Start start= new Start(player,dealer,deck,table);\n Assert.assertTrue(start.checkBetValidity());\n start.deal();\n Assert.assertFalse(start.checkBlackJack());\n start.hit();\n Assert.assertEquals(20,start.playerHandValue());\n start.stand();\n Assert.assertEquals(Status.Players_wins,start.getGameStatus());\n }", "@Test\n\tpublic void test_toString() {\n\tTennisPlayer c1 = new TennisPlayer(5,\"David Ferrer\");\n\tassertEquals(\"[5,David Ferrer]\",c1.toString());\n }", "@Test\n public void advancedRepeatTest(){\n \n testMaterialConstructor();\n ArrayList<String> voiceNames = new ArrayList<String>();\n voiceNames.add(\"Aziz\");\n \n ArrayList<BarLineObject> objs = new ArrayList<BarLineObject>();\n objs.add(C);\n objs.add(E);\n objs.add(C);\n objs.add(G);\n objs.add(plainBar);\n objs.add(C);\n objs.add(E);\n objs.add(C);\n objs.add(G);\n objs.add(endBar);\n objs.add(G);\n objs.add(G);\n objs.add(G);\n objs.add(C);\n objs.add(r1Bar);\n objs.add(C);\n objs.add(G);\n objs.add(G);\n objs.add(G);\n objs.add(r2Bar);\n objs.add(C);\n objs.add(E);\n objs.add(E);\n objs.add(E);\n objs.add(repeatBar);\n \n objs.add(C);\n objs.add(E);\n objs.add(C);\n objs.add(G);\n objs.add(repeatStart);\n objs.add(G);\n objs.add(C);\n objs.add(C);\n objs.add(G);\n objs.add(repeatBar);\n \n \n \n Parser2 myParser2 = new Parser2(voiceNames,1,1);\n myParser2.parse(objs);\n ArrayList<Voice> voices = myParser2.getVoices();\n\n Song lalala = new Song(voices);\n \n SequencePlayer sqPlayer;\n try {\n sqPlayer = new SequencePlayer(140, lalala.getMinTicksPerQuarter());\n myPlayer MrAhmed = new myPlayer(\"C\", sqPlayer);\n lalala.addToPlayer(MrAhmed);\n sqPlayer.play();\n \n } catch (MidiUnavailableException e) {\n e.printStackTrace();\n } catch (InvalidMidiDataException e) {\n e.printStackTrace();\n }\n \n }", "@Test\n void doEffectshotgun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"shotgun\");\n Weapon w9 = new Weapon(\"shotgun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w9);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w9.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(0));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(0));\n\n s.add(Board.getSquare(1));\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 6 && victim.getPlayerPosition() == Board.getSquare(1));\n\n s.clear();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, s); //A choice of yours is yours\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n players.clear();\n players.add(victim);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n players.clear();\n players.add(victim);\n s.clear();\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"alt\", null, null, p, players, null); //A choice of yours is wrong\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n }", "@Test\n void doEffectmachinegun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"machine gun\");\n Weapon w14 = new Weapon(\"machine gun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w14);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w14.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia1\");\n victim2.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia2\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w14.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) {\n System.out.println(\"ERROR\");\n }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1);\n\n players.clear();\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.add(victim);\n players.add(victim2);\n players.add(victim);\n players.add(victim3);\n try {\n p.getPh().getWeaponDeck().getWeapon(w14.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n }", "Player createPlayer();", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "@Test\r\n public void GivenAnOrc_WhenCreated_ThenHasPlusTwoArmorClass() {\r\n Player orc = getPlayer(RaceType.ORC,10);\r\n assertThat(orc.getValue(ValueType.ARMOR), is(12));\r\n }", "public void testUnpack() throws InvalidAdviceException {\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag7\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag4\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"pb\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"23498ngnjs\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "@Test\n void checkAllResources() {\n ArrayList<Player> array = new ArrayList<>();\n AlphaGame game = new AlphaGame(1, array, false, 5);\n RealPlayer rp = new RealPlayer('b', \"rp\");\n rp.setPlayerPosition(Board.getSpawnpoint('b'));\n array.add(rp);\n WeaponFactory wf = new WeaponFactory(\"zx-2\");\n Weapon w = new Weapon(\"zx-2\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n w.setLoaded(false);\n rp.getPh().getWeaponDeck().getWeapons().add(w);\n\n assertTrue(rp.checkAllResources());\n\n wf = new WeaponFactory(\"heatseeker\");\n Weapon w1 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n\n w.setLoaded(true);\n w1.setLoaded(false);\n rp.getPh().getWeaponDeck().getWeapons().add(w1);\n\n assertFalse(rp.checkAllResources());\n\n\n w.setLoaded(false);\n w1.setLoaded(false);\n\n assertTrue(rp.checkAllResources());\n\n Powerup p2 = new Powerup(\"tagback grenade\", 'r', false, false, false, false, null, null, null);\n rp.getPh().getPowerupDeck().getPowerups().add(p2);\n w.setLoaded(true);\n w1.setLoaded(false);\n\n assertTrue(rp.checkAllResources());\n\n }", "@Test\n\tpublic void testPowerUpView_11()\n\t\tthrows Exception {\n\t\tGameObject gameObject = new ServerPlayer(new Point());\n\t\tGfxFactory gfxFactory = new GfxFactory();\n\n\t\tPowerUpView result = new PowerUpView(gameObject, gfxFactory);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NoClassDefFoundError: common.Actor\n\t\t// at java.lang.Class.getDeclaredConstructors0(Native Method)\n\t\t// at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)\n\t\t// at java.lang.Class.getConstructor0(Class.java:2885)\n\t\t// at java.lang.Class.getDeclaredConstructor(Class.java:2058)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.findConstructor(InstanceCreationExpression.java:572)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:452)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:449)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:745)\n\t\tassertNotNull(result);\n\t}", "public static void testPlaylist() {\n try {\n final ObjectFactory factory = new ObjectFactory();\n final PlaylistType playlist = factory.createPlaylistType();\n\n playlist.setTitle(\"Justin's MediaPlayer Playlist\");\n playlist.setCreator(\"Mediaplayer user\");\n playlist.setDate(javax.xml.datatype.DatatypeFactory.newInstance().newXMLGregorianCalendar(\n 2012, 1, 30, 6, 1, 1, 1, 1));\n playlist.setInfo(\"playlist.setInfo here\");\n playlist.setVersion(\"1\");\n playlist.setImage(\"playlist setImage here\");\n playlist.setIdentifier(\"playlist setID here\");\n playlist.setLicense(\"playlist license here\");\n \n final JAXBElement element = factory.createPlaylist(playlist);\n \n // make an XML document out of it\n final JAXBContext jc = JAXBContext.newInstance(\"mediaplayer.jaxb\");\n final Marshaller m = jc.createMarshaller();\n if(element != null) {\n m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n m.marshal(element, System.out);\n }\n } catch(PropertyException e) {\n System.out.println(\"PropertyException\");\n System.err.println(e.getMessage());\n } catch(DatatypeConfigurationException e) {\n System.out.println(\"DatatypeConfigurationException\");\n System.err.println(e.getMessage());\n } catch(JAXBException e) {\n System.out.println(\"JAXBException\");\n System.err.println(e.getMessage());\n }\n \n }", "void makePlay(int player) {\n }", "@Test\n public void searchFindsPlayer() {\n Player jari = stats.search(\"Kurri\");\n assertEquals(jari.getName(), \"Kurri\");\n\n }" ]
[ "0.68796426", "0.60688406", "0.5763348", "0.57168525", "0.55864894", "0.554079", "0.55101347", "0.54654884", "0.5464319", "0.5454121", "0.5435191", "0.5392258", "0.5383253", "0.5368929", "0.53538144", "0.53087324", "0.52957976", "0.52944094", "0.52901846", "0.52825165", "0.5281237", "0.5279508", "0.5274856", "0.5265197", "0.52583283", "0.5253887", "0.52537906", "0.52507854", "0.5234319", "0.5232725", "0.5221288", "0.5206018", "0.519938", "0.51967126", "0.5191833", "0.51900935", "0.51877946", "0.5178292", "0.51703554", "0.51654804", "0.51653737", "0.5160433", "0.51517993", "0.5150858", "0.51472664", "0.51329166", "0.5118019", "0.510638", "0.51053077", "0.50966114", "0.5094516", "0.509049", "0.508776", "0.5087641", "0.5084924", "0.5078411", "0.5075424", "0.5058601", "0.50579935", "0.5045847", "0.50453645", "0.5037364", "0.5036253", "0.503426", "0.5026967", "0.50239116", "0.50180066", "0.5010829", "0.5005504", "0.50054544", "0.49971616", "0.49957162", "0.49909335", "0.4986128", "0.49766958", "0.4975534", "0.49666345", "0.4962831", "0.4961328", "0.49597356", "0.4954441", "0.4949305", "0.4945973", "0.49453613", "0.49338272", "0.49337307", "0.49318746", "0.49307483", "0.4928863", "0.49263725", "0.49156278", "0.49138924", "0.49016473", "0.49011558", "0.48986092", "0.48942807", "0.48915273", "0.48863217", "0.48859835", "0.4879846" ]
0.8201551
0
Test the berlinmod tuple builder
@Test public void testBerlinModTupleBuilder() { final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.BERLINMOD); final Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, "1"); Assert.assertNotNull(tuple); Assert.assertEquals(Integer.toString(1), tuple.getKey()); final Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d); Assert.assertEquals(1180224000000L, tuple.getVersionTimestamp()); Assert.assertEquals(exptectedBox, tuple.getBoundingBox()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "private Tuples() {}", "Astro tuple(AstroArg args);", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "TupleLiteralExp createTupleLiteralExp();", "public void testUnpackMultipleTuples() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}, {\"v3\", \"v4\"}, {\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\");\n results.expectTuple(\"vva\", \"vvb\", \"v3\", \"v4\");\n results.expectTuple(\"vva\", \"vvb\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3); \n }", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "public void testUnpack() throws InvalidAdviceException {\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag7\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n String bag = \"bag4\";\n Object[][] packedTuple = {{\"dsifji2oj\", \"23498ngnjs\"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"pb\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"23498ngnjs\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "public void testUnpackFromCorrectBag() throws InvalidAdviceException {\n Object[][] t1 = {{\"dsifji2oj\", \"23498ngnjs\"}};\n Object[][] t2 = {{\"dsfj9\", \"u1h32jbn4l1 '\"}};\n Object[][] t3 = {{\"24oi23n\", \"022l;'][ \"}};\n Object[][] t4 = {{\"0m0lkj34\", \"hh2h2n jds \"}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(\"bag1\", t1).put(\"bag2\", t2).put(\"bag3\", t3).put(\"bag4\", t4);\n\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag1\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"23498ngnjs\", \"dsifji2oj\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag2\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"u1h32jbn4l1 '\", \"dsfj9\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag3\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"022l;'][ \", \"24oi23n\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n {\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(\"bag4\", \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.expectTuple(\"d8jdj2\", \"hh2h2n jds \", \"0m0lkj34\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }\n }", "TupleLiteralPart createTupleLiteralPart();", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "TupleExpr createTupleExpr();", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "public void testUnpackMultipleTuplesMultipleBags() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"b1_t1_v1\", \"b1_t1_v2\"}, {\"b1_t2_v1\", \"b1_t2_v2\"}, {\"b1_t3_v1\", \"b1_t3_v2\"}});\n baggage.put(\"bag2\", new Object[][] {{\"b2_t1_v1\", \"b2_t1_v2\"}, {\"b2_t2_v1\", \"b2_t2_v2\"}, {\"b2_t3_v1\", \"b2_t3_v2\"}});\n baggage.put(\"bag3\", new Object[][] {{\"b3_t1_v1\", \"b3_t1_v2\"}, {\"b3_t2_v1\", \"b3_t2_v2\"}, {\"b3_t3_v1\", \"b3_t3_v2\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .unpack(\"bag2\", \"e\", \"f\")\n .unpack(\"bag3\", \"g\", \"h\")\n .emit(\"test1\", \"a\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n advice.advise(\"vva\", \"vvc\");\n advice.advise(\"vva\", \"vve\");\n int expected = 3 * 3 * 3 * 3;\n for (int i = 0; i < expected; i++) {\n results.expectTuple(\"vva\");\n }\n results.check();\n assertTrue(\"Expect \"+expected+\" output tuple emitted\", results.emitted.size() == expected); \n }", "static Tuple wrap(Tuple init, long sign) throws ExecException {\n\t\tTuple tup = tf.newTuple(2);\n\t\ttup.set(0, init.get(0));\n\t\ttup.set(1, sign);\n\t\t\n\t\tDataBag bag = bf.newDefaultBag();\n\t\tbag.add(tup);\n\t\t\n\t\treturn tf.newTuple(bag);\n\t}", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "TupleTypeRule createTupleTypeRule();", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@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 }", "private TupleDesc generalTupleDesc(){\n \tType[] typeArr;\n \tString[] nameArr;\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tnameArr = new String[]{\"groupValue\", \"aggregateValue\"};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n }", "public TupleDesc getTupleDesc();", "public void testUnpackNoValuesMulti() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}, {}, {}, {}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 4 output tuples emitted\", results.emitted.size() == 4);\n }", "public boolean isGeneralTuple();", "public void testUnpackNoValues() throws InvalidAdviceException {\n String bag = \"e\";\n Object[][] packedTuple = {{}};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.expectTuple();\n results.check();\n assertTrue(\"Expect 1 output tuple emitted\", results.emitted.size() == 1);\n }", "public Tuple(TupleDesc td) {\n\t\t\tfields = new ArrayList<Field>();\n\t\t\ttupleDesc = td;\n\t\t\n\t\t// some code goes here\n\t\t// 2- assign td and initialize the array of fields\n\n\t}", "@Test\n public void test_getAndSet_ByIndex_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods _________________________________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", 0,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", 1,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // continuation primiative field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 2,\n 456, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 3,\n 789, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n\n\n\n // Object Continuation\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n\n // Test the Get & Set methods _________________________________________________________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 1,\n MPSymbols.byte$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n }", "@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}", "public static void enter_values(TupleTagBasedEncoder<?> encoder) {\n encoder.addEntryT(super_tag_1, bool_test_tag, bool_test_value);\n encoder.addEntryT(super_tag_1,\"confuse???123123\", 1234123+\"WeirdTag ValueSwear\");\n encoder.addEntryT(super_tag_2, str_test_tag, str_test_value);\n encoder.addEntryT(super_tag_1, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_1, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_1, int_test_tag, int_test_value);\n encoder.addEntryT(super_tag_4, \"WeirdTag confuse\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_2, \"confuse???\", 1234123+\"WeirdTagVa lueSwear\");\n encoder.addEntryT(super_tag_2, weird_long_tag, weird_long_value);\n encoder.addEntryT(super_tag_4, empty_tag_test_tag, empty_tag_test_value);\n encoder.addEntryT(super_tag_2, empty_val_test_tag, empty_val_test_value);\n encoder.addEntryT(super_tag_2, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_4, empty_strarr_test_tag, empty_strarr_test_value); //empty is not written into the system.\n encoder.addEntryT(super_tag_2, strarr_test_tag, strarr_test_value);\n encoder.addEntryT(super_tag_2, empty_intarr_test_tag, empty_intarr_test_value); //empty is not written into the system.\n encoder.addEntryT(super_tag_4, intarr_test_tag, intarr_test_value);\n encoder.addEntryT(super_tag_3, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_2, strarr2d_test_tag, strarr2d_test_value);\n encoder.addEntryT(super_tag_4, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n }", "@Test\n\tpublic void testBuild() throws HashUtilException {\n\n\t\tshort sh = 121;\n\t\tbyte b = 14;\n\t\tboolean[] bool1 = null;\n\t\tint[] int1 = null;\n\t\tdouble[] dob = null;\n\t\tString[] str = null;\n\t\tbyte[] byt = null;\n\t\tshort[] sho = null;\n\t\tlong[] lon = null;\n\t\tfloat[] flo = null;\n\t\tchar[] chr = null;\n\t\tObject obj = null;\n\t\tassertEquals(\n\t\t\t\t((((((((7919l * 7664345821815920749L) + 34) * 7664345821815920749L) * 7664345821815920749L) + 1)\n\t\t\t\t\t\t* 7664345821815920749L) + Double.doubleToLongBits(12.3)) * 7664345821815920749L)\n\t\t\t\t\t\t+ Arrays.asList(\"Ramesh\", \"Suresh\").hashCode(),\n\t\t\t\tnew HashUtility().append(34).append(obj).append(false).append(12.3)\n\t\t\t\t\t\t.append(Arrays.asList(\"Ramesh\", \"Suresh\")).build());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((23l * 45) + 123456789000l) * 45) + Float.floatToIntBits(2.453f)) * 45) + sh) * 45) + b) * 45)\n\t\t\t\t\t\t+ (long) 'r',\n\t\t\t\tnew HashUtility(23, 45).append(123456789000l).append(2.453f).append(sh).append(b).append('r').build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(str).append(int1).append(bool1).append(dob).build());\n\n\t\tassertEquals(23l * 45 * 45 * 45 * 45 * 45,\n\t\t\t\tnew HashUtility(23, 45).append(byt).append(sho).append(lon).append(flo).append(chr).build());\n\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@VTID(13)\r\n java.lang.String getTuple();", "public abstract T getTuple(Record record);", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "public Tuple()\n {\n // Creat a new tuple\n data = new byte[max_size];\n tuple_offset = 0;\n tuple_length = max_size;\n }", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "@Specialization\n\t\tString type(OzBacktrace backtrace) {\n\t\t\treturn \"tuple\";\n\t\t}", "@Test\n public void testORMUsageToretrieveBlocks() throws DataloadGeneratorException {\n List<BlockDefEntityWrap> tbsBlockEntity = getTbsBlockEntity();\n// System.out.println(\"BlockDiagCodeMappingTEntity - \" + tbsBlockSaved);\n System.out.println(\"BlockDefTEntity - \" + tbsBlockEntity);\n// assertNotNull(tbsBlockSaved);\n }", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "EExpr slotsTuple(ENodeBuilder b, EExpr optPrefix, String[] exports) {\n return mixedTuple(b, optPrefix, exports, null, null);\n }", "public void test19() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "public void test18() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\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(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.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}", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "public void test17() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);", "@SuppressWarnings(\"UnusedDeclaration\")\npublic interface LObjBoolPair<T> extends LTuple<Object> \n {\n\n int SIZE = 2;\n\n\n T first();\n\n default T value() {\n return first();\n }\n\n boolean second();\n\n\n\n @Override default Object get(int index) {\n switch(index) {\n case 1: return first();\n case 2: return second();\n default: throw new NoSuchElementException();\n }\n }\n\n\n /** Tuple size */\n @Override default int tupleSize() {\n return SIZE;\n }\n\n \n\n /** Static hashCode() implementation method that takes same arguments as fields of the LObjBoolPair and calculates hash from it. */\n static <T> int argHashCode(T a1,boolean a2) {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((a1 == null) ? 0 : a1.hashCode());\n result = prime * result + Boolean.hashCode(a2);\n return result;\n }\n\n /** Static equals() implementation that takes same arguments (doubled) as fields of the LObjBoolPair and checks if all values are equal. */\n static <T> boolean argEquals(T a1,boolean a2, T b1,boolean b2) {\n return\n Null.equals(a1, b1) && //\n a2==b2; //\n }\n\n /**\n * Static equals() implementation that takes two tuples and checks if they are equal.\n * Tuples are considered equal if are implementing LObjBoolPair interface (among others) and their LObjBoolPair values are equal regardless of the implementing class\n * and how many more values there are.\n */\n static boolean argEquals(LObjBoolPair the, Object that) {\n return Null.equals(the, that, (one, two) -> {\n // Intentionally all implementations of LObjBoolPair are allowed.\n if (!(two instanceof LObjBoolPair)) {\n return false;\n }\n\n LObjBoolPair other = (LObjBoolPair) two;\n\n return argEquals(one.first(), one.second(), other.first(), other.second());\n });\n }\n\n /**\n * Static equals() implementation that takes two tuples and checks if they are equal.\n */\n public static boolean tupleEquals(LObjBoolPair the, Object that) {\n return Null.equals(the, that, (one, two) -> {\n // Intentionally all implementations of LObjBoolPair are allowed.\n if (!(two instanceof LObjBoolPair)) {\n return false;\n }\n\n LObjBoolPair other = (LObjBoolPair) two;\n\n return one.tupleSize() == other.tupleSize() &&\n argEquals(one.first(), one.second(), other.first(), other.second());\n });\n }\n\n\n\n \n @Override default Iterator<Object> iterator() {\n return new Iterator<Object>() {\n\n private int index;\n\n @Override public boolean hasNext() {\n return index<SIZE;\n }\n\n @Override public Object next() {\n index++;\n return get(index);\n }\n };\n }\n\n interface ComparableObjBoolPair<T extends Comparable<? super T>> extends LObjBoolPair<T>, Comparable<LObjBoolPair<T>> {\n @Override\n default int compareTo(LObjBoolPair<T> that) {\n return Null.compare(this, that, (one, two) -> {\n int retval = 0;\n\n return\n (retval = Null.compare(one.first(), two.first())) != 0 ? retval : //\n (retval = Boolean.compare(one.second(), two.second())) != 0 ? retval : 0; //\n });\n }\n\n }\n \n\n abstract class AbstractObjBoolPair<T> implements LObjBoolPair<T> {\n\n @Override\n public boolean equals(Object that) {\n return LObjBoolPair.tupleEquals(this, that);\n }\n\n @Override\n public int hashCode() {\n return LObjBoolPair.argHashCode(first(),second());\n }\n\n @Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append('(');\n sb.append(first());\n sb.append(',');\n sb.append(second());\n sb.append(')');\n return sb.toString();\n }\n\n }\n\n\n\n\n\n /**\n * Mutable tuple.\n */\n\n interface Mut<T,SELF extends Mut<T,SELF>> extends LObjBoolPair<T> {\n\n\n\n SELF first(T first) ; \n SELF second(boolean second) ; \n\n default SELF setFirst(T first) {\n this.first(first);\n return (SELF) this;\n }\n\n\n /** Sets value if predicate(current) is true */\n default SELF setFirstIf(T first, LPredicate<T> predicate) {\n if (predicate.test(this.first())) {\n return this.first(first);\n }\n return (SELF) this;\n }\n\n /** Sets new value if predicate predicate(newValue, current) is true. */\n default SELF setFirstIf(T first, LBiPredicate<T,T> predicate) {\n if (predicate.test(first, this.first())) {\n return this.first(first);\n }\n return (SELF) this;\n }\n\n /** Sets new value if predicate predicate(current, newValue) is true. */\n default SELF setFirstIf(LBiPredicate<T,T> predicate, T first) {\n if (predicate.test(this.first(), first)) {\n return this.first(first);\n }\n return (SELF) this;\n }\n \n\n\n default SELF setSecond(boolean second) {\n this.second(second);\n return (SELF) this;\n }\n\n\n /** Sets value if predicate(current) is true */\n default SELF setSecondIf(boolean second, LLogicalOperator predicate) {\n if (predicate.apply(this.second())) {\n return this.second(second);\n }\n return (SELF) this;\n }\n\n /** Sets new value if predicate predicate(newValue, current) is true. */\n default SELF setSecondIf(boolean second, LLogicalBinaryOperator predicate) {\n if (predicate.apply(second, this.second())) {\n return this.second(second);\n }\n return (SELF) this;\n }\n\n /** Sets new value if predicate predicate(current, newValue) is true. */\n default SELF setSecondIf(LLogicalBinaryOperator predicate, boolean second) {\n if (predicate.apply(this.second(), second)) {\n return this.second(second);\n }\n return (SELF) this;\n }\n \n\n\n default SELF reset() {\n this.first(null);\n this.second(false);\n return (SELF) this;\n }\n }\n\n\n\n\n\n\n public static <T> MutObjBoolPair<T> of() { \n return of( null , false );\n }\n \n\n public static <T> MutObjBoolPair<T> of(T a1,boolean a2){\n return new MutObjBoolPair(a1,a2);\n }\n\n public static <T> MutObjBoolPair<T> copyOf(LObjBoolPair<T> tuple) {\n return of(tuple.first(), tuple.second());\n }\n\n\n /**\n * Mutable, non-comparable tuple.\n */\n\n class MutObjBoolPair<T> extends AbstractObjBoolPair<T> implements Mut<T,MutObjBoolPair<T>> {\n\n private T first;\n private boolean second;\n\n public MutObjBoolPair(T a1,boolean a2){\n this.first = a1;\n this.second = a2;\n }\n\n\n public @Override T first() {\n return first;\n }\n\n public @Override MutObjBoolPair<T> first(T first) {\n this.first = first;\n return this;\n }\n \n public @Override boolean second() {\n return second;\n }\n\n public @Override MutObjBoolPair<T> second(boolean second) {\n this.second = second;\n return this;\n }\n \n\n\n\n\n\n\n\n\n\n\n\n\n }\n\n\n\n\n\n\n public static <T extends Comparable<? super T>> MutCompObjBoolPair<T> comparableOf() { \n return comparableOf( null , false );\n }\n \n\n public static <T extends Comparable<? super T>> MutCompObjBoolPair<T> comparableOf(T a1,boolean a2){\n return new MutCompObjBoolPair(a1,a2);\n }\n\n public static <T extends Comparable<? super T>> MutCompObjBoolPair<T> comparableCopyOf(LObjBoolPair<T> tuple) {\n return comparableOf(tuple.first(), tuple.second());\n }\n\n\n /**\n * Mutable, comparable tuple.\n */\n\n final class MutCompObjBoolPair<T extends Comparable<? super T>> extends AbstractObjBoolPair<T> implements ComparableObjBoolPair<T>,Mut<T,MutCompObjBoolPair<T>> {\n\n private T first;\n private boolean second;\n\n public MutCompObjBoolPair(T a1,boolean a2){\n this.first = a1;\n this.second = a2;\n }\n\n\n public @Override T first() {\n return first;\n }\n\n public @Override MutCompObjBoolPair<T> first(T first) {\n this.first = first;\n return this;\n }\n \n public @Override boolean second() {\n return second;\n }\n\n public @Override MutCompObjBoolPair<T> second(boolean second) {\n this.second = second;\n return this;\n }\n \n\n\n\n\n\n\n\n\n\n\n\n\n }\n\n\n\n\n\n\n\n public static <T> ImmObjBoolPair<T> immutableOf(T a1,boolean a2){\n return new ImmObjBoolPair(a1,a2);\n }\n\n public static <T> ImmObjBoolPair<T> immutableCopyOf(LObjBoolPair<T> tuple) {\n return immutableOf(tuple.first(), tuple.second());\n }\n\n\n /**\n * Immutable, non-comparable tuple.\n */\n@Immutable\n final class ImmObjBoolPair<T> extends AbstractObjBoolPair<T> {\n\n private final T first;\n private final boolean second;\n\n public ImmObjBoolPair(T a1,boolean a2){\n this.first = a1;\n this.second = a2;\n }\n\n\n public @Override T first() {\n return first;\n }\n\n public @Override boolean second() {\n return second;\n }\n\n\n\n }\n\n\n\n\n\n\n\n public static <T extends Comparable<? super T>> ImmCompObjBoolPair<T> immutableComparableOf(T a1,boolean a2){\n return new ImmCompObjBoolPair(a1,a2);\n }\n\n public static <T extends Comparable<? super T>> ImmCompObjBoolPair<T> immutableComparableCopyOf(LObjBoolPair<T> tuple) {\n return immutableComparableOf(tuple.first(), tuple.second());\n }\n\n\n /**\n * Immutable, comparable tuple.\n */\n@Immutable\n final class ImmCompObjBoolPair<T extends Comparable<? super T>> extends AbstractObjBoolPair<T> implements ComparableObjBoolPair<T> {\n\n private final T first;\n private final boolean second;\n\n public ImmCompObjBoolPair(T a1,boolean a2){\n this.first = a1;\n this.second = a2;\n }\n\n\n public @Override T first() {\n return first;\n }\n\n public @Override boolean second() {\n return second;\n }\n\n\n\n }\n\n\n\n}", "@Test\n public void fieldBuilder() throws Exception {\n Document doc = new Document();\n\n // Below are three examples of field construction done using a field builder.\n // 1 - Single field:\n // Use a field builder to add a SYMBOL field which displays the ƒ (Florin) symbol.\n FieldBuilder builder = new FieldBuilder(FieldType.FIELD_SYMBOL);\n builder.addArgument(402);\n builder.addSwitch(\"\\\\f\", \"Arial\");\n builder.addSwitch(\"\\\\s\", 25);\n builder.addSwitch(\"\\\\u\");\n Field field = builder.buildAndInsert(doc.getFirstSection().getBody().getFirstParagraph());\n\n Assert.assertEquals(field.getFieldCode(), \" SYMBOL 402 \\\\f Arial \\\\s 25 \\\\u \");\n\n // 2 - Nested field:\n // Use a field builder to create a formula field used as an inner field by another field builder.\n FieldBuilder innerFormulaBuilder = new FieldBuilder(FieldType.FIELD_FORMULA);\n innerFormulaBuilder.addArgument(100);\n innerFormulaBuilder.addArgument(\"+\");\n innerFormulaBuilder.addArgument(74);\n\n // Create another builder for another SYMBOL field, and insert the formula field\n // that we have created above into the SYMBOL field as its argument. \n builder = new FieldBuilder(FieldType.FIELD_SYMBOL);\n builder.addArgument(innerFormulaBuilder);\n field = builder.buildAndInsert(doc.getFirstSection().getBody().appendParagraph(\"\"));\n\n // The outer SYMBOL field will use the formula field result, 174, as its argument,\n // which will make the field display the ® (Registered Sign) symbol since its character number is 174.\n Assert.assertEquals(\" SYMBOL \\u0013 = 100 + 74 \\u0014\\u0015 \", field.getFieldCode());\n\n // 3 - Multiple nested fields and arguments:\n // Now, we will use a builder to create an IF field, which displays one of two custom string values,\n // depending on the true/false value of its expression. To get a true/false value\n // that determines which string the IF field displays, the IF field will test two numeric expressions for equality.\n // We will provide the two expressions in the form of formula fields, which we will nest inside the IF field.\n FieldBuilder leftExpression = new FieldBuilder(FieldType.FIELD_FORMULA);\n leftExpression.addArgument(2);\n leftExpression.addArgument(\"+\");\n leftExpression.addArgument(3);\n\n FieldBuilder rightExpression = new FieldBuilder(FieldType.FIELD_FORMULA);\n rightExpression.addArgument(2.5);\n rightExpression.addArgument(\"*\");\n rightExpression.addArgument(5.2);\n\n // Next, we will build two field arguments, which will serve as the true/false output strings for the IF field.\n // These arguments will reuse the output values of our numeric expressions.\n FieldArgumentBuilder trueOutput = new FieldArgumentBuilder();\n trueOutput.addText(\"True, both expressions amount to \");\n trueOutput.addField(leftExpression);\n\n FieldArgumentBuilder falseOutput = new FieldArgumentBuilder();\n falseOutput.addNode(new Run(doc, \"False, \"));\n falseOutput.addField(leftExpression);\n falseOutput.addNode(new Run(doc, \" does not equal \"));\n falseOutput.addField(rightExpression);\n\n // Finally, we will create one more field builder for the IF field and combine all of the expressions. \n builder = new FieldBuilder(FieldType.FIELD_IF);\n builder.addArgument(leftExpression);\n builder.addArgument(\"=\");\n builder.addArgument(rightExpression);\n builder.addArgument(trueOutput);\n builder.addArgument(falseOutput);\n field = builder.buildAndInsert(doc.getFirstSection().getBody().appendParagraph(\"\"));\n\n Assert.assertEquals(\" IF \\u0013 = 2 + 3 \\u0014\\u0015 = \\u0013 = 2.5 * 5.2 \\u0014\\u0015 \" +\n \"\\\"True, both expressions amount to \\u0013 = 2 + 3 \\u0014\\u0015\\\" \" +\n \"\\\"False, \\u0013 = 2 + 3 \\u0014\\u0015 does not equal \\u0013 = 2.5 * 5.2 \\u0014\\u0015\\\" \", field.getFieldCode());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.SYMBOL.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SYMBOL.docx\");\n\n FieldSymbol fieldSymbol = (FieldSymbol) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_SYMBOL, \" SYMBOL 402 \\\\f Arial \\\\s 25 \\\\u \", \"\", fieldSymbol);\n Assert.assertEquals(\"ƒ\", fieldSymbol.getDisplayResult());\n\n fieldSymbol = (FieldSymbol) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_SYMBOL, \" SYMBOL \\u0013 = 100 + 74 \\u0014174\\u0015 \", \"\", fieldSymbol);\n Assert.assertEquals(\"®\", fieldSymbol.getDisplayResult());\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 100 + 74 \", \"174\", doc.getRange().getFields().get(2));\n\n TestUtil.verifyField(FieldType.FIELD_IF,\n \" IF \\u0013 = 2 + 3 \\u00145\\u0015 = \\u0013 = 2.5 * 5.2 \\u001413\\u0015 \" +\n \"\\\"True, both expressions amount to \\u0013 = 2 + 3 \\u0014\\u0015\\\" \" +\n \"\\\"False, \\u0013 = 2 + 3 \\u00145\\u0015 does not equal \\u0013 = 2.5 * 5.2 \\u001413\\u0015\\\" \",\n \"False, 5 does not equal 13\", doc.getRange().getFields().get(3));\n\n Document finalDoc = doc;\n Assert.assertThrows(AssertionError.class, () -> TestUtil.fieldsAreNested(finalDoc.getRange().getFields().get(2), finalDoc.getRange().getFields().get(3)));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2 + 3 \", \"5\", doc.getRange().getFields().get(4));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(4), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2.5 * 5.2 \", \"13\", doc.getRange().getFields().get(5));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(5), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2 + 3 \", \"\", doc.getRange().getFields().get(6));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(6), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2 + 3 \", \"5\", doc.getRange().getFields().get(7));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(7), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2.5 * 5.2 \", \"13\", doc.getRange().getFields().get(8));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(8), doc.getRange().getFields().get(3));\n }", "public void testAll55() throws Exception {\n String[] signature = {\"[QObject;\", \"I\", \"Z\"};\r\n String[] newNames = {\"e\"};\r\n String[] newTypes = {\"boolean\"};\r\n String[] newDefaultValues = {\"true\"};\r\n TestParameterInfo[] newParamInfo = createTestParamInfos(newTypes, newNames,\r\n newDefaultValues);\r\n int[] newIndices = {2};\r\n helperAdd(signature, newParamInfo, newIndices);\r\n\r\n }", "AstroArg unpack(Astro litChars);", "@Test\n public void test_getAndSet_ByIndex_GenericMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n\n // Test the Get & Set methods & the Special Field-Value Get & Set methods - Object Type (string) _______________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n \"hello\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n (short)10, null, null, (short)-1001); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Continuation Field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 2,\n 11, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 3,\n 12, null, null, -1000); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n\n // Object Continuation ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", 1,\n MPSymbols.int$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\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 }", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\n }", "private Tuples() {\n // prevent instantiation.\n }", "private void ecombo (Tlv tlv, String a, int b){ \n //sstring\n sstring(tlv, a);\n //uint8 value \n uint8(tlv, b); \n }", "@Test\r\n public void testDataBuilder_ValidInit(){\r\n \tDataInitializer dataBuild = DataInitializer.getInstance();\r\n \tdataBuild.initValidComputerParts();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPUs: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPUs: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSUs: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n }", "@Test\n public void testErrorTuple() throws Exception {\n TestBolt tb = spy(new TestBolt(true));\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).reportError(any(BoltProcessingException.class));\n }", "RegisterTuple pickSeeds(ArrayList<Register> registers);", "TestBlock createTestBlock();", "public final boolean[] isBdedQuantATuple() { return this.tupleOrs; }", "@Test\n public void testToString() {\n Command cmd = new Command(\"add\");\n \n Value dialogic = new Value(\"dialogic\");\n dialogic.add(new Parameter(\"module_id\"));\n \n Value dahdi = new Value(\"dahdi\");\n dahdi.add(new Parameter(\"span\"));\n dahdi.add(new Parameter(\"channel\"));\n \n Parameter linkset = new Parameter(\"linkset\", new Value[]{dialogic, dahdi});\n Parameter opc = new Parameter(\"opc\");\n Parameter apc = new Parameter(\"apc\");\n Parameter ni = new Parameter(\"network indicator\");\n \n cmd.add(linkset);\n cmd.add(opc);\n cmd.add(apc);\n cmd.add(ni);\n \n System.out.println(cmd);\n }", "public Tuple(Loyalty... c)\r\n\t\t{\r\n\t\t\tsuper(Arrays.asList(c));\r\n\t\t}", "@Test(expected=BuildException.class)\n\tpublic void testBuilderInvalid1() throws InvalidGrammarException, ParseException, BuildException\n\t{\n\t\tBnfParser parser = new BnfParser(ObjectBuilderTest.class.getResourceAsStream(\"data/DummyObject.bnf\"));\n\t\tParseNode tree = parser.parse(\"+ 3 3\");\n\t\tInvalidBuilder db = new InvalidBuilder();\n\t\tdb.build(tree);\n\t}", "public abstract Tuple parseFrom(byte[] bytes) throws Exception;", "protected Tuple cleanTuple(Tuple result)\n {\n return result;\n }", "public Tuple(String attrib_names [], String attrib_types [], String attrib_values []) {\n\n\ttuple_counter++;\n\tnum_attribs = attrib_types.length;\n\tmy_data = new HashMap();\n\t\n\tfor (int i = 0; i < num_attribs; i++) {\n\ttry {\n\t Class cl = Class.forName(attrib_types[i]);\n\t Constructor constructor =\n\t\tcl.getConstructor(new Class[] { String.class });\n\t my_data.put ( attrib_names[i],\n\t\t(ColumnValue) constructor.newInstance\n\t\t(new Object[] { attrib_values[i] }));\n\t}\n\tcatch (java.lang.ClassNotFoundException e)\n\t { System.out.println(e.toString()); } \n\tcatch (java.lang.NoSuchMethodException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.reflect.InvocationTargetException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.InstantiationException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.IllegalAccessException e)\n\t { System.out.println(e.toString()); }\n\n\t}\n }", "@Test\n public void testCheck() throws Exception {\n System.out.println(\"check\");\n byte[] bytes = {0,1,2};\n data = new Data(bytes);\n module = new TestModule(null,\"module\");\n generic = new Generic<UDT_Test_3Bytes>(module, \"generic\");\n udt = new UDT_Test_3Bytes(null, new Address(0,Address.NA,UDT_Test_3Bytes.getSize()), 0, new Data(bytes));\n instance = new IoGeneric(generic, udt);\n module.start();\n while(module.isAlive()) Thread.sleep(500);\n assert(true);\n }", "public Builder setSymbolTupleBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n symbolTuple_ = value;\n onChanged();\n return this;\n }", "@Test\n public void test_getAndSet_ByFieldName_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods: primitive types ______________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"field1Str\", symbolControl,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", \"field2Short\", symbolControl,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // Continuation Field - can not call the generic setField(fieldName) and getField(fieldName) on a cont field.\n // this should throw an exception (which is returned by the test method).\n Exception exception = FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", \"field3ContInt\", symbolControl,\n 456, -1, -1, -1000, true); // last 5 params: expected value, null expected value, unused expected value, default expected value, returnExceptions\n\n assertTrue(exception != null);\n\n\n // Test Object Types ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED formRequired_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED(executeInfo, null);\n\n formRequired_FieldSet.schemaInfo_Positioned = schemaInfoFieldSet_formRequired;\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", \"IsRequired\", symbolControl,\n notRequired, null, null, notRequired); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", \"RequiredImagePath\", symbolControl,\n \"\\test\\required.gif\", null, null, \"/images/required.gif\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n }", "private void testRow( TaskKey aTask, String aBarcode, AircraftKey aAircraft,\n AssemblyKey aAssembly, String aAircraftName, RefSchedPriorityKey aSchedPriority,\n Date aDueDate, RefTaskPriorityKey aTaskPriority, int aTaskPriorityOrd,\n int aNextHighestEventDbId, String aClassModeCd, String aNextHighestTaskClassCd,\n Date aHighestSchedStartGdt, double aDuration, String aPartList, String aToolList,\n String aLabourList, String aWorkTypeList, String aSubtreeList ) {\n\n MxAssert.assertEquals( aTask.toString(), iDataSet.getString( \"task_pk\" ) );\n MxAssert.assertEquals( aBarcode, iDataSet.getString( \"barcode_sdesc\" ) );\n MxAssert.assertEquals( aAircraft.toString(), iDataSet.getString( \"aircraft_pk\" ) );\n MxAssert.assertEquals( aAssembly.toString(), iDataSet.getString( \"assmbl_pk\" ) );\n MxAssert.assertEquals( aAircraftName, iDataSet.getString( \"aircraft_name\" ) );\n MxAssert.assertEquals( aSchedPriority.toString(), iDataSet.getString( \"sched_priority\" ) );\n MxAssert.assertEquals( aDueDate, iDataSet.getDate( \"due_date\" ) );\n MxAssert.assertEquals( aTaskPriority.toString(), iDataSet.getString( \"task_priority\" ) );\n MxAssert.assertEquals( aTaskPriorityOrd, iDataSet.getInt( \"task_priority_ord\" ) );\n\n // Loose Task Specific values\n MxAssert.assertEquals( aNextHighestEventDbId, iDataSet.getInt( \"nh_event_db_id\" ) );\n MxAssert.assertEquals( aClassModeCd, iDataSet.getString( \"class_mode_cd\" ) );\n\n // Non Loose Task Specific values\n MxAssert.assertEquals( aNextHighestTaskClassCd, iDataSet.getString( \"nh_task_class_cd\" ) );\n MxAssert.assertEquals( aHighestSchedStartGdt, iDataSet.getDate( \"h_sched_start_gdt\" ) );\n\n MxAssert.assertEquals( aDuration, iDataSet.getDouble( \"duration\" ) );\n\n if ( aPartList != null ) {\n MxAssert.assertEquals( aPartList, iDataSet.getString( \"part_details_list\" ) );\n }\n\n if ( aToolList != null ) {\n MxAssert.assertEquals( aToolList, iDataSet.getString( \"tools_list\" ) );\n }\n\n if ( aLabourList != null ) {\n MxAssert.assertEquals( aLabourList, iDataSet.getString( \"est_labour_effort_list\" ) );\n }\n\n if ( aWorkTypeList != null ) {\n MxAssert.assertEquals( aWorkTypeList, iDataSet.getString( \"work_types_list\" ) );\n }\n\n if ( aSubtreeList != null ) {\n MxAssert.assertEquals( aSubtreeList, iDataSet.getString( \"subtree_list\" ) );\n }\n }", "public void mo9150b(TProtocol bvVar, ImprintValue anVar) {\n TTupleProtocol cbVar = (TTupleProtocol) bvVar;\n anVar.f1299b = cbVar.mo9446t();\n anVar.mo9252b(true);\n anVar.f1300c = cbVar.mo9448v();\n anVar.mo9254c(true);\n if (cbVar.mo9460b(1).get(0)) {\n anVar.f1298a = cbVar.mo9448v();\n anVar.mo9250a(true);\n }\n }", "@Test\n\tpublic void testStruct() throws Exception {\n\t\tfinal String module = \"-------------- MODULE Testing ----------------\\n\"\n\t\t\t\t+ \"CONSTANTS k \\n\"\n\t\t\t\t+ \"ASSUME k = [a : {1}, b : BOOLEAN] \\n\"\n\t\t\t\t+ \"=================================\";\n\n\t\tfinal String expected = \"MACHINE Testing\\n\"\n\t\t\t\t+ \"CONSTANTS k\\n\"\n\t\t\t\t+ \"PROPERTIES k : POW(struct(a:INTEGER, b:BOOL)) & k = struct(a : {1}, b : BOOL) \\n\"\n\t\t\t\t+ \"END\";\n\t\tcompare(expected, module);\n\t}", "@Test\n public void test() {\n Assert.assertEquals(11, beautifulQuadruples(1, 2, 3, 8));\n }", "@Test\n public void testBeneZPayerTreatAuthCd() {\n new BeneZPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissBeneZPayer.Builder::setTreatAuthCd,\n RdaFissPayer::getTreatAuthCd,\n RdaFissPayer.Fields.treatAuthCd,\n 18);\n }", "protected void handleData(T tuple)\n throws DataException\n {\n \n if (tuple.isMutable())\n {\n if (sequence!=null)\n {\n if (sequenceField.getValue(tuple)==null)\n { \n String sequenceVal = Long.toString(sequence.next());\n if (debug)\n { \n log.fine\n (\"Generated sequence \"+sequenceVal\n +\" for \"+sequenceField.getURI()\n );\n }\n \n sequenceField.setValue\n ((EditableTuple) tuple\n ,sequenceField.getType().fromString(sequenceVal)\n ); \n }\n else\n { \n if (debug)\n {\n log.fine\n (\"Sequence field not null \"+sequenceField.getURI());\n }\n }\n }\n else\n { \n if (sequenceField!=null)\n { log.fine(\"Sequence is null for \"+sequenceField);\n }\n }\n\n if (defaultSetters!=null)\n {\n for (Setter<?> setter : defaultSetters)\n { \n if (setter.getTarget().get()==null)\n { setter.set();\n }\n }\n }\n\n if (fixedSetters!=null)\n {\n for (Setter<?> setter : fixedSetters)\n { setter.set();\n }\n }\n }\n else\n {\n if (debug)\n {\n log.fine\n (\"Not a mutable Tuple \"+tuple);\n }\n }\n \n if (inspector!=null)\n {\n Violation<T>[] violations=inspector.inspect(tuple);\n if (violations!=null)\n { throw new DataException(null,new RuleException(violations));\n }\n }\n \n }", "public abstract T getTuple(int aPosition);", "public final AstValidator.tuple_return tuple() throws RecognitionException {\n AstValidator.tuple_return retval = new AstValidator.tuple_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree TUPLE_VAL436=null;\n AstValidator.literal_return literal437 =null;\n\n\n CommonTree TUPLE_VAL436_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:7: ( ^( TUPLE_VAL ( literal )* ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:9: ^( TUPLE_VAL ( literal )* )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n TUPLE_VAL436=(CommonTree)match(input,TUPLE_VAL,FOLLOW_TUPLE_VAL_in_tuple3574); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n TUPLE_VAL436_tree = (CommonTree)adaptor.dupNode(TUPLE_VAL436);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(TUPLE_VAL436_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:22: ( literal )*\n loop121:\n do {\n int alt121=2;\n int LA121_0 = input.LA(1);\n\n if ( (LA121_0==BIGDECIMALNUMBER||LA121_0==BIGINTEGERNUMBER||LA121_0==DOUBLENUMBER||LA121_0==FALSE||LA121_0==FLOATNUMBER||LA121_0==INTEGER||LA121_0==LONGINTEGER||LA121_0==MINUS||LA121_0==NULL||LA121_0==QUOTEDSTRING||LA121_0==TRUE||LA121_0==BAG_VAL||LA121_0==MAP_VAL||LA121_0==TUPLE_VAL) ) {\n alt121=1;\n }\n\n\n switch (alt121) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:22: literal\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_literal_in_tuple3576);\n \t literal437=literal();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, literal437.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t break loop121;\n }\n } while (true);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@SmallTest\n @Test\n public void testFlatBufferValuesUnchanged() {\n assertEquals(-2, LaunchTypeAtCreation.SIZE);\n assertEquals(-1, LaunchTypeAtCreation.UNKNOWN);\n assertEquals(0, LaunchTypeAtCreation.FROM_LINK);\n assertEquals(1, LaunchTypeAtCreation.FROM_EXTERNAL_APP);\n assertEquals(2, LaunchTypeAtCreation.FROM_CHROME_UI);\n assertEquals(3, LaunchTypeAtCreation.FROM_RESTORE);\n assertEquals(4, LaunchTypeAtCreation.FROM_LONGPRESS_FOREGROUND);\n assertEquals(5, LaunchTypeAtCreation.FROM_LONGPRESS_BACKGROUND);\n assertEquals(6, LaunchTypeAtCreation.FROM_REPARENTING);\n assertEquals(7, LaunchTypeAtCreation.FROM_LAUNCHER_SHORTCUT);\n assertEquals(8, LaunchTypeAtCreation.FROM_SPECULATIVE_BACKGROUND_CREATION);\n assertEquals(9, LaunchTypeAtCreation.FROM_BROWSER_ACTIONS);\n assertEquals(10, LaunchTypeAtCreation.FROM_LAUNCH_NEW_INCOGNITO_TAB);\n assertEquals(11, LaunchTypeAtCreation.FROM_STARTUP);\n assertEquals(12, LaunchTypeAtCreation.FROM_START_SURFACE);\n assertEquals(13, LaunchTypeAtCreation.FROM_TAB_GROUP_UI);\n assertEquals(14, LaunchTypeAtCreation.FROM_LONGPRESS_BACKGROUND_IN_GROUP);\n assertEquals(15, LaunchTypeAtCreation.FROM_APP_WIDGET);\n assertEquals(16, LaunchTypeAtCreation.FROM_LONGPRESS_INCOGNITO);\n assertEquals(17, LaunchTypeAtCreation.FROM_RECENT_TABS);\n assertEquals(18, LaunchTypeAtCreation.FROM_READING_LIST);\n assertEquals(19, LaunchTypeAtCreation.FROM_TAB_SWITCHER_UI);\n assertEquals(20, LaunchTypeAtCreation.FROM_RESTORE_TABS_UI);\n assertEquals(\"Need to increment 1 to expected value each time a LaunchTypeAtCreation \"\n + \"is added. Also need to add any new LaunchTypeAtCreation to this test.\",\n 23, LaunchTypeAtCreation.names.length);\n }", "BElementStructure createBElementStructure();", "Tuple (L left, R right){\n\t\tthis.left=left;\n\t\tthis.right=right;\n\t}", "public boolean isTuple() {\n return PyTorchLibrary.LIB.iValueIsTuple(getHandle());\n }", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "public void testUnpackNothing() throws InvalidAdviceException {\n {\n String bag = \"e\";\n Object[][] packedTuple = {};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe().unpack(bag).emit(\"test1\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise();\n results.check();\n assertTrue(\"Expect 0 output tuples\", results.emitted.size() == 0);\n }\n {\n String bag = \"bag1\";\n Object[][] packedTuple = {};\n BaggageAPIForTest baggage = new BaggageAPIForTest().put(bag, packedTuple);\n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"oa\", \"ob\").unpack(bag, \"pa\", \"pb\").emit(\"test1\", \"oa\", \"pb\", \"pa\", \"ob\").build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"d8jdj2\", \"ooowoowq\");\n results.check();\n assertTrue(\"Expect 0 output tuples\", results.emitted.size() == 0);\n }\n }", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "private BuilderUtils() {}", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"call\");\n assertFalse(boolean0);\n }", "@Test\n public void test_getAndSet_ByFieldName_GenericMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n\n // Test primitive types _______________________________________\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"field1Str\", symbolControl,\n \"hello\", null, null, \"hi\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"field2Short\", symbolControl,\n (short)10, null, null, (short)-1001); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n\n // Continuation Field - can not call the generic setField(fieldName) and getField(fieldName) on a cont field.\n // this should throw an exception (which is returned by the test method.\n Exception exception = FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"field3ContInt\", symbolControl,\n 11, null, null, -1000, true); // last 5 params: expected value, null expected value, unused expected value, default expected value, returnExceptions \n \n assertTrue(exception != null);\n \n\n\n // Test Object Types ________________________________________________________________________________________\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED formRequired_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED(executeInfo, null);\n\n formRequired_FieldSet.schemaInfo_Positioned = schemaInfoFieldSet_formRequired;\n\n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"IsRequired\", symbolControl,\n notRequired, null, null, notRequired); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n FieldSet_TestUtilities.test_SetAndGet_useFieldName(executeInfo, formRequired_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$WEB$__$FORM$_S_$FORM$__$REQUIRED.class,\n \"setField\", Object.class, \"setField__Special\", \"getField\", \"RequiredImagePath\", symbolControl,\n \"\\test\\required.gif\", null, null, \"/images/required.gif\"); // last 4 params: expected value, null expected value, unused expected value, default expected value \n\n }" ]
[ "0.7240996", "0.6553515", "0.63719726", "0.63089037", "0.62498945", "0.6190413", "0.59872437", "0.5926607", "0.5921008", "0.58710504", "0.58131474", "0.580672", "0.57696104", "0.5747781", "0.57006615", "0.5579303", "0.5537323", "0.5522208", "0.5516633", "0.5500709", "0.54516643", "0.54163086", "0.5371729", "0.5370172", "0.5349679", "0.5326663", "0.5317869", "0.531318", "0.52781415", "0.5277574", "0.52697897", "0.5244922", "0.5187823", "0.5180604", "0.5175344", "0.51723874", "0.5148748", "0.51437706", "0.5115273", "0.511488", "0.5105411", "0.50909245", "0.5086633", "0.50820065", "0.50598204", "0.5054804", "0.5052661", "0.50498897", "0.502486", "0.502366", "0.5012735", "0.50038826", "0.49903917", "0.4987853", "0.4974845", "0.49578807", "0.4951053", "0.4933759", "0.49265748", "0.49202937", "0.49196753", "0.49174345", "0.49119934", "0.49070302", "0.48872393", "0.48799178", "0.4878053", "0.48693234", "0.48665395", "0.48644006", "0.4863969", "0.48624688", "0.48621598", "0.48570156", "0.48544782", "0.48511732", "0.48423648", "0.48227394", "0.48132798", "0.4811563", "0.48077485", "0.48037672", "0.4800041", "0.4799167", "0.47990572", "0.47923228", "0.47887263", "0.47883987", "0.47874552", "0.47839507", "0.4783006", "0.47759205", "0.47757652", "0.47701457", "0.47691002", "0.47676262", "0.47613853", "0.47572538", "0.47462398", "0.4743023" ]
0.7792293
0
Test the tuple file builder Process non existing file
@Test(expected=IOException.class) public void testTupleFile1() throws Exception { final File tempFile = File.createTempFile("temp",".txt"); tempFile.delete(); Assert.assertFalse(tempFile.exists()); final TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(), TupleBuilderFactory.Name.GEOJSON); tupleFile.processFile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNonExistentFile() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n boolean success =\n job.processFile(NON_EXISTENT_FILE, new ByteArrayOutputStream());\n assertEquals(\"Should record exactly one exception\",\n job.getExceptionArray().length, 1);\n assertFalse(\"Should fail on missing file\", success);\n }", "@Test (expected=LogHandlerException.class)\n\t\t\tpublic void filedoesntExistException() throws PizzaException, LogHandlerException{\n\t\t\t\tLogHandler.populatePizzaDataset(\"invalidFilePath\");\n\t\t\t}", "@Test\n void nonEXistingFile () {\n assertThatThrownBy(()-> testObj.parseMap(\"no file\")).isInstanceOf(PacmanConfigurationException.class);\n }", "@Test\n public void testMakeFileFileExists() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n boolean result = false;\n try {\n myTree.makeFile(file);\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n result = true;\n }\n assertTrue(result);\n\n }", "@Test\n public void AppFileError() {\n try{\n App.main(new String[]{TEST_PATH + \"asdfghjkl-nice.dot\",\"1\"});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Input file does not exist\");\n }\n }", "@Test\n public void testFileInDirectoryFileDoesNotExists() {\n\n assertFalse(parent.fileInDirectory(\"file1\"));\n }", "private void testReadFile() {\n System.out.println(\"------ TESTING : readFile(String filename) ------\");\n try{\n if(iTestFileList.readFile(sFile)){\n //throw exception if the values are not copied correctly\n if(iTestFileList.get(0) != 42175){\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n if(iTestFileList.get(5) != 45545){\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n if(iTestFileList.get(10) != 86908) {\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n }\n else{\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n System.out.print(\"\\n\");\n }", "@Test\n public void testAddFileAddsFile(){\n \n FileStorageService fss = DatabaseServiceTestTool.createFileStorageService();\n \n String user1 = DatabaseServiceTestTool.usernames[0];\n String user2 = DatabaseServiceTestTool.usernames[1];\n \n assertTrue(fss.getFilesFor(user1).size() == 0);\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n try {\n InputStream is = prepareRandomInputStream();\n fss.addFile(user1, \"mypgn.pgn\", is);\n is.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n \n assertTrue(fss.getFilesFor(user1).size() == 1);\n assertEquals(fss.getFilesFor(user1).get(0), \"mypgn.pgn\");\n \n //testing for a side effect now\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n DatabaseServiceTestTool.destroyFileStorageService(fss);\n }", "private boolean checkFile(String batchName) {\r\n String message = \"\";\r\n boolean found=true;\r\n\r\n if (batchName.equals(Constant.POS_EMPLOYEE)) {\r\n found= ut.isExistFile( Constant.POS_EMPLOYEE_FILE ,Constant.IMPORT_PATH);\r\n message = lang.getString(\"MS100_RunAfterSimEm\");\r\n }\r\n else if (batchName.equals(Constant.POS_EXCHANGE_RATE)) {\r\n found= ut.isExistFile(Constant.POS_EXCHANGE_RATE_FILE,Constant.IMPORT_PATH);\r\n message = lang.getString(\"MS101_RunAfterSimExchangeRatem\");\r\n }\r\n else if (batchName.equals(Constant.POS_ITEM_PRICE)) {\r\n found= ut.isExistFile(Constant.POS_ITEM_PRICE_FILE,Constant.IMPORT_PATH);\r\n message = lang.getString(\"MS102_RunAfterSimItemPrice\");\r\n }\r\n if (!found) {\r\n ut.showMessage(frmMain, lang.getString(\"TT001\"), message +\" \"+ lang.getString(\"MS103_RunFTP\"));\r\n }\r\n return found;\r\n}", "@Test\n public void testFileOpen() {\n \n FileHandler fileToTest;\n \n fileToTest = new FileHandler(\"Kalle.xml\");\n \n try {\n fileToTest.openFile();\n fail(\"Should have raised a fileNotFoundException\");\n }\n catch (FileNotFoundException fnf) {\n }\n }", "@Test\n\tpublic void convertingWithEmptySourceFileTest() throws FileNotFoundException\n\t{\n\t\t/*try\n\t\t {\n\t\t OsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter();\n\t\t converter.convert(\"\", IOTester.TEST_FILE_NAME, new TestMapObjectsIdentifiersFinder());\n\t\t fail();\n\t\t }\n\t\t catch (IllegalArgumentException ex)\n\t\t {\n\t\t // ok\n\t\t }*/\n\t}", "@Test\n\tpublic void invalidFileTest() {\n\t\t// Test error handling: invalid file\n\t\tfileName = \"invalid.txt\";\n\t\tactual = Helper.isValidFile(workDir, fileName);\n\t\tassertNull(actual);\n\n\t\t// Test error handling: invalid file\n\t\tfileName = \"./misc/secondinvalid.txt\";\n\t\tactual = Helper.isValidFile(workDir, fileName);\n\t\tassertNull(actual);\n\n\t\t// Test error handling: invalid file name with numbers\n\t\tfileName = \"12345\";\n\t\tactual = Helper.isValidFile(workDir, fileName);\n\t\tassertNull(actual);\n\n\t\t// Test error handling: invalid file name with spaces\n\t\tfileName = \"not a file\";\n\t\tactual = Helper.isValidFile(workDir, fileName);\n\t\tassertNull(actual);\n\n\t\t// Test error handling: blank file\n\t\tfileName = \"\";\n\t\tactual = Helper.isValidFile(workDir, fileName);\n\t\tassertNull(actual);\n\n\t\tfileName = \" \";\n\t\tactual = Helper.isValidFile(workDir, fileName);\n\t\tassertNull(actual);\n\n\t\tfileName = null;\n\t\tactual = Helper.isValidFile(workDir, fileName);\n\t\tassertNull(actual);\n\n\t}", "private void checkFileStatus() throws CustomException, IOException\n\t{\n\t\t//For all .mgf files\n\t\tfor (int i=0; i<mgfFiles.size(); i++)\n\t\t{\n\n\t\t\tString resultFileName = \n\t\t\t\t\tmgfFiles.get(i).substring(0,mgfFiles.get(i).lastIndexOf(\".\"))+\"_Results.csv\";\n\t\t\t//TODO: Cannot write files if checking for file. \n\t\t\t/*\n\t\t\tif (isFileUnlocked(resultFileName))\n\t\t\t\tthrow new CustomException(\"Please close \"+resultFileName, null);\n\t\t\t */\n\t\t}\n\n\t}", "@Test\n public void testHasFileTrue() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n try {\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n assertTrue(myTree.hasFile(file));\n }", "@Test //same file\n\t\t\tpublic void SameFileDifferentInstances() throws PizzaException, LogHandlerException{\n\t\t\t\tArrayList<Pizza> pizzaArr1;\n\t\t\t\tArrayList<Pizza> pizzaArr2;\n\n\t\t\t\tPath currentRelativePath = Paths.get(\"\");\n\t\t\t\tString s = currentRelativePath.toAbsolutePath().toString();\n\t\t\t\tString path = s + \"\\\\logs\\\\20170101.txt\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tpizzaArr2 = LogHandler.populatePizzaDataset(path);\n\t\t\t\tpizzaArr1 = LogHandler.populatePizzaDataset(path);\n\t\t\t\tassertNotEquals(pizzaArr2.hashCode(), pizzaArr1.hashCode());\n\t\t\t}", "public boolean fileExists(Context context, String filename)\r\n{\r\n File file = context.getFileStreamPath(filename);\r\n if(file == null || !file.exists())\r\n {\r\n return false;\r\n }\r\nreturn true;\r\n}", "@Test\n public void givenStateCodeExtension_WhenFalse_ReturnExceptionFileNotFound() {\n String CSV_FILE_PATH = \"src/test/resources/StateCode.jpg\";\n try {\n indianCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.INDIA, CSV_FILE_PATH);\n } catch (CSVBuilderException e) {\n Assert.assertEquals(CSVBuilderException.TypeOfException.NO_FILE_FOUND, e.typeOfException);\n }\n }", "@Test\n\tpublic void testisValidNoNotaTTFile() {\n\t\t// Setup\n\t\tString added = \"3\";\n\t\tString removed = \"5\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"tt\");\n\n\t\t// Exercise\n\t\tboolean valid = line.isValid(types);\n\n\t\t// Verify\n\t\tassertFalse(valid);\n\t}", "private void checkFileCreation(String name) throws IOException {\n byte[] buff = \"some bytes\".getBytes();\n writeFile(name, buff);\n assertTrue(Arrays.equals(buff, readFile(name, buff.length)));\n }", "@Test\n public void CreateFile() throws Exception {\n createFile(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\",\n readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\"));\n File file = new File(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\");\n Assert.assertTrue(file.exists());\n }", "@Test\r\n public void test_performLogic_Failure1() throws Exception {\r\n try {\r\n UploadedDocument doc = new UploadedDocument();\r\n doc.setDocumentId(1);\r\n doc.setContestId(1);\r\n doc.setFileName(\"fake.txt\");\r\n doc.setPath(\"test_files\");\r\n doc.setMimeTypeId(new MimeTypeRetriever().getMimeTypeIdFromFileName(\"test_files/test.txt\"));\r\n List<UploadedDocument> docUploads = new ArrayList<UploadedDocument>();\r\n docUploads.add(doc);\r\n\r\n instance.performLogic(docUploads);\r\n fail(\"FileNotFoundException is expected\");\r\n } catch (FileNotFoundException e) {\r\n // success\r\n }\r\n }", "@Test\n\tpublic void doesCreateNewAchievementsIfFileNotExistsTest()\n\t{\n\t\tClientAchievementManager.initialize(new FileAccessorMock());\n\t\tassertEquals(5, ClientAchievementManager.getAquiredScoreAchievements().size());\n\t\tassertEquals(5, ClientAchievementManager.getPlayedGamesAchievements().size());\n\t\tassertEquals(5, ClientAchievementManager.getWonGamesAchievements().size());\n\t}", "@Test\n public void testGetFile() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n try {\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n try {\n assertEquals(myTree.getFile(file).getName(), \"file1\");\n } catch (NotFileException e) {\n fail(\"file could not be found\");\n }\n }", "@Test(expected = XmlException.class)\n\tpublic void testBonusRegionShouldThrowsAnXmlExceptionIfTheFileDoesntExist() throws XmlException {\n\t\tassertEquals(rcx.getBonusRegion(\"ConfigurazionePartita.xml\").length, 3);\n\t\tassertNotEquals(rcx.getBonusRegion(\"ConfigurazionePartitas.xml\").length, 3);// file\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// inesistente\n\t}", "protected abstract boolean isSample(File file);", "@Test\n public void testHasFileFalse() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n assertTrue(!myTree.hasFile(file));\n }", "public void testCreateFileNullPointerException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.createFile(null, \"valid\");\r\n fail(\"if fileLocation is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.createFile(\"valid\", null);\r\n fail(\"if persistenceName is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "@Test\n public void testFileInDirectoryFileExists() {\n\n File file1 = new File(\"file1\");\n parent.storeFile(file1);\n assertTrue(parent.fileInDirectory(\"file1\"));\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n boolean boolean0 = fileUtil0.isAgeGood((File) null);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = MockFile.createTempFile(\"ShoppingCart=get&f=xml&dev-t=\", \"\");\n file0.delete();\n boolean boolean0 = fileUtil0.isAgeGood(file0);\n assertFalse(boolean0);\n }", "@Test\n public void testGetFile() {\n System.out.println(\"getFile with valid path of existing folder with 2 subfiles\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\n \"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"+fSeparator+\"Texnologia2\"+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n File expResult = new File(path+fSeparator+\"testImg.jpg\");\n File result;\n try{\n result = instance.getFile(path);\n }catch(EntryException ex){\n result = null;\n }\n assertEquals(\"Some message\",expResult, result);\n }", "@Test\n public void testMakeFile() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n try {\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n try {\n assertEquals(myTree.getFile(file).getName(), \"file1\");\n } catch (NotFileException e) {\n fail(\"file could not be found\");\n }\n }", "@org.junit.Test(expected = FileNotFoundException.class)\r\n public void testProspectParserFileNotFound() throws FileNotFoundException {\r\n\r\n ProspectParser p = new ProspectParser(new File(\"TjollahoppTjollahej.asd\"), namePattern, digitPattern);\r\n p.parse();\r\n\r\n }", "private static boolean nonExistReading(String surfaceReading) {\n return false;\n }", "@Test\n void Load_NonExistentFileName() {\n XmlImporter importer = new XmlImporter();\n\n assertThrows(FileNotFoundException.class, () -> importer.Load(\"c:\\\\DoesNotExist\\\\DoesNotExist.xml\"));\n }", "boolean hasFilePath();", "public void testCreateFile() throws Exception {\n File input = new File(\"src/test/resources/reader/filesample.xml\");\n final URL testdata = input.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of files\", 2, creator.filesCreated.size());\n MockContentCreator.FileDescription file = creator.filesCreated.get(0);\n try {\n file.data.available();\n TestCase.fail(\"Did not close inputstream\");\n } catch (IOException ignore) {\n // Expected\n }\n assertEquals(\"mimeType mismatch\", \"application/test\", file.mimeType);\n assertEquals(\"lastModified mismatch\", XmlReader.FileDescription.DATE_FORMAT.parse(\"1977-06-01T07:00:00+0100\"), new Date(file.lastModified));\n assertEquals(\"Could not read file\", \"This is a test file.\", file.content);\n\n }", "public void testCreateFileIllegalArgumentException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.createFile(\" \", \"valid\");\r\n fail(\"if fileLocation is empty, throw IllegalArgumentException\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.createFile(\"valid\", \" \");\r\n fail(\"if persistenceName is empty, throw IllegalArgumentException\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "@Test\n public void shouldReturnNonEmptyTagFiles() throws Exception {\n //given\n givenInfoMessageCode();\n //when\n List<IFileSpec> tagFiles = tagDelegator.tagFiles(\n fileSpecs,\n LABEL_NAME,\n listOnly1,\n delete1);\n //then\n assertThat(tagFiles.size(), is(1));\n assertThat(tagFiles.get(0).getDepotPathString(), is(TEST_FILE_DEPOT_PATH));\n }", "@Test\n public void givenStateCensusAnalyserFile_WhenImproperFileName_ReturnsException() {\n String CSV_FILE_PATH = \"src/test/resources/StateCensus.jpg\";\n try {\n indianCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.INDIA, CSV_FILE_PATH);\n } catch (CSVBuilderException e) {\n Assert.assertEquals(CSVBuilderException.TypeOfException.NO_FILE_FOUND, e.typeOfException);\n }\n }", "@Test\n public void loadFromFileWithWrongConnects() throws Exception{\n fileInOut.setFilePath(\"src/wrongConnects\");\n fileInOut.loadFromFile();\n }", "@Test(priority = 3)\n\tpublic void addincorrectfileType() throws InterruptedException {\n\t\tlog.info(line);\n\t\tAssert.assertTrue(clickAllActionButton.addincorrectfileType(),\n\t\t\t\t\"error message for non csv file type is displayed\");\n\t}", "private File createTestSpecificPropFile(String errorLibName) throws Exception {\n\t\tFile testProp = testingdir.getFile(ERRORLIBPROPS);\n\t\tAssert.assertTrue(\"Creating empty file: \" + testProp, testProp.createNewFile());\n\t\t\n\t\treturn testProp;\n\t}", "@Test\n public void givenStateCodeWhenFalse_ReturnExceptionFileNotFound() {\n String CSV_FILE_PATH = \"src/test/resources/WrongNameForStateCode.csv\";\n try {\n indianCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.INDIA, CSV_FILE_PATH);\n } catch (CSVBuilderException e) {\n Assert.assertEquals(CSVBuilderException.TypeOfException.NO_FILE_FOUND, e.typeOfException);\n }\n }", "public void createTestFileWithoutKey() {\n\t\tList<String> lines = new ArrayList<>(0);\n\t\tPath file = Paths.get(TEST_FILE_NAME);\n\t\ttry {\n\t\t\tFiles.write(file, lines);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n public void givenStateCensusAnalyserFile_WhenImproperFile_ReturnsException() {\n String CSV_FILE_PATH = \"src/test/resources/stateCensus.csv\";\n try {\n indianCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.INDIA, CSV_FILE_PATH);\n } catch (CSVBuilderException e) {\n Assert.assertEquals(CSVBuilderException.TypeOfException.NO_FILE_FOUND, e.typeOfException);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_RYNHV)!DEYJP^3IL$.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n File file0 = fileUtil0.getSimilarItems(\"RYnHv)!DEyJP^3il$\", \"\");\n assertEquals(\"/S_RYNHV)!DEYJP^3IL$.XML\", file0.toString());\n assertFalse(file0.isFile());\n assertNotNull(file0);\n }", "public boolean isFile() { return false; }", "@Test\n\tpublic void validFileTest() {\n\t\t// Test valid file with full file path\n\t\tworkDir = new File(workingDir);\n\t\texpected = validFile.getAbsolutePath();\n\t\tactual = Helper.isValidFile(workDir, validFile.getAbsolutePath());\n\t\tassertEquals(expected, actual.getAbsolutePath());\n\n\t\t// Test valid file with only file name\n\t\texpected = workDir.getAbsolutePath() + pathSep + fileName; // Bugs: OS\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// compatible \\\\\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// changed to /\n\t\tactual = Helper.isValidFile(workDir, fileName);\n\t\tassertEquals(expected, actual.getAbsolutePath());\n\t}", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.downloadKeywordSearchFile(\"9\", \"9\", \"9\", \"9\");\n String string0 = \"\";\n fileUtil0.downloadBlendedSearchFile(\"\", \"9\");\n fileUtil0.isAgeGood((File) null);\n fileUtil0.fetchThirdPartySearchFile(\"9\", \"9\", \"9\", \"9\");\n String string1 = \"^m1KLI\\\\nb8]!B*(2\";\n String string2 = null;\n fileUtil0.downloadBrowseNodeFile(\"^m1KLI\\nb8]!B*(2\", \"9\", (String) null, \"<X;R[f!MO\");\n String string3 = \"-tT-6\";\n fileUtil0.fetchThirdPartySearchFile(\"^m1KLI\\nb8]!B*(2\", \"^m1KLI\\nb8]!B*(2\", \"^m1KLI\\nb8]!B*(2\", \"-tT-6\");\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n Object object0 = new Object();\n Object object1 = new Object();\n arrayList0.add(object1);\n arrayList0.add(object0);\n fileUtil0.downloadAccessoriesFile(\"9\", arrayList0, \"\");\n String string4 = \"associateID\";\n String string5 = null;\n // Undeclared exception!\n try { \n fileUtil0.renameFile(\"associateID\", (String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.File\", e);\n }\n }", "@Test\r\n\tvoid testImportRecordsShouldThrowExceptionOnInvalidFile() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tassertThrows(FileNotFoundException.class, () -> {\r\n\t\t\tparser.importRecords(new File(\"unknown.txt\"));\r\n\t\t});\r\n\t}", "private boolean validateFile(JTextField fileTF,\n Component parentComp) {\n if (fileTF.getText().trim().length() == 0)\n {\n JOptionPane.showMessageDialog(parentComp,\n \"Please enter a file name in the file field\",\n \"No File Name\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n String text = fileTF.getText().trim();\n File file = new File(text);\n if (!file.exists())\n {\n JOptionPane\n .showMessageDialog(\n parentComp,\n \"The file you entered does not exist. Please enter a valid file name\",\n \"Incorrect File Name\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n return true;\n }", "public void checkIfXslCreated() {\n final File extStore = Environment.getExternalStorageDirectory();\n File myFile = new File(extStore.getAbsolutePath() + \"/backup/\" + fileName);\n\n if (myFile.exists()) {\n Log.d(\"YES\", \"YES\");\n } else {\n Log.d(\"NO\", \"NO\");\n }\n }", "@Test\n public void throwsIOExceptionWhenCannotHash() throws IOException {\n File nonExistent = new File(\"nonExistent.gb\");\n\n thrown.expect(IOException.class);\n // Can not use message due to FileNotFoundException containing localized text on some OS:es\n\n // Throws\n new GameFile(nonExistent);\n }", "public static void main(String[] args) {\n\t\t\n\t\tPath path=Paths.get(\"E:\\\\Online Sessions\\\\Java Morning 9-11\\\\testfile.txt\");\n\t\tboolean fileExists=Files.notExists(path, LinkOption.NOFOLLOW_LINKS);\n\t\tSystem.out.println(fileExists);\t\n\n\t}", "@Test\n\tpublic void convertingWithNullSourceFileTest() throws FileNotFoundException\n\t{\n\t\t/*try\n\t\t {\n\t\t OsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter();\n\t\t converter.convert(null, IOTester.TEST_FILE_NAME, new TestMapObjectsIdentifiersFinder());\n\t\t fail();\n\t\t }\n\t\t catch (IllegalArgumentException ex)\n\t\t {\n\t\t // ok\n\t\t }*/\n\t}", "public void testGetMissingFile() throws Exception {\n System.out.print(\".. Testing getting of a missing file ..\");\n String filesystem = \"VSS \" + workingDirectory + File.separator + \"Work\";\n Node filesystemNode = new Node(new ExplorerOperator().repositoryTab().getRootNode(), filesystem);\n Node testNode = new Node( filesystemNode, \"test [Current]\");\n Node C_FileNode = new Node( testNode, \"C_File [Current]\");\n new Action(VERSIONING_MENU + \"|\" + GET_LATEST_VERSION, GET_LATEST_VERSION).performMenu(C_FileNode);\n GetLatestVersionCommandOperator getLatestVersionCommand = null;\n long oldTimeout = JemmyProperties.getCurrentTimeout(\"DialogWaiter.WaitDialogTimeout\");\n JemmyProperties.setCurrentTimeout(\"DialogWaiter.WaitDialogTimeout\", 5000);\n try { getLatestVersionCommand = new GetLatestVersionCommandOperator(\"C_File.java ...\"); }\n catch (TimeoutExpiredException ej) {\n try { getLatestVersionCommand= new GetLatestVersionCommandOperator(\"C_File.form ...\"); }\n catch (TimeoutExpiredException ef) {\n JemmyProperties.setCurrentTimeout(\"DialogWaiter.WaitDialogTimeout\", oldTimeout);\n captureScreen(\"Error: Can't find Get Latest Version dialog.\");\n }\n }\n JemmyProperties.setCurrentTimeout(\"DialogWaiter.WaitDialogTimeout\", oldTimeout);\n getLatestVersionCommand.checkMakeTheLocalCopyWritable(true);\n getLatestVersionCommand.ok();\n String deleteCommand = \"cmd /x /c \\\"del /F /Q \" + workingDirectory + File.separator + \"Work\" + File.separator + \"test\" + File.separator + \"C_File.*\\\"\";\n if (new ExternalCommand(deleteCommand).exec() != 0) captureScreen(\"Error: Can't delete C_File files.\");\n new Action(VERSIONING_MENU + \"|\" + REFRESH, REFRESH).perform(testNode);\n MainWindowOperator.getDefault().waitStatusText(\"Command Refresh finished.\");\n Node C_FileJavaNode = new Node( testNode, \"C_File.java [Missing]\");\n Node C_FileFormNode = new Node( testNode, \"C_File.form [Missing]\");\n new ActionNoBlock(VERSIONING_MENU + \"|\" + GET_LATEST_VERSION, GET_LATEST_VERSION).perform(new Node[] {C_FileJavaNode, C_FileFormNode});\n new GetLatestVersionCommandOperator(\"C_File.java ...\").ok();\n Thread.sleep(2000);\n new Action(VERSIONING_MENU + \"|\" + REFRESH, REFRESH).perform(testNode); // Until issue #27726 gets fixed.\n MainWindowOperator.getDefault().waitStatusText(\"Command Refresh finished.\");\n C_FileNode = new Node( testNode, \"C_File [Current]\");\n File C_File = new File(workingDirectory + File.separator + \"Work\" + File.separator + \"test\" + File.separator + \"C_File.java\");\n if (C_File.canWrite()) captureScreen(\"Error: C_File.java remained read-write after default get latest version.\");\n System.out.println(\". done !\");\n }", "public static void main(String[] args) {\n\t\tFile file = new File(\"test/a.txt\");\r\n\t\tFileUtil.createFile(file);\r\n\t\t/*if(! file.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.println(file.getAbsolutePath());\r\n\t\t\t\tfile.createNewFile();\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\t\t*/\r\n\t}", "private boolean existsFile(File testFile) {\n\t\tif (testFile.exists()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void testEmptyHFile() throws IOException {\n Path f = new Path(TestHFile.ROOT_DIR, testName.getMethodName());\n HFileContext context = new HFileContextBuilder().withIncludesTags(false).build();\n Writer w = HFile.getWriterFactory(TestHFile.conf, TestHFile.cacheConf).withPath(TestHFile.fs, f).withFileContext(context).create();\n w.close();\n Reader r = HFile.createReader(TestHFile.fs, f, TestHFile.cacheConf, true, TestHFile.conf);\n r.loadFileInfo();\n Assert.assertFalse(r.getFirstKey().isPresent());\n Assert.assertFalse(r.getLastKey().isPresent());\n }", "@Test\n\tpublic void convertingWithEmptyDatabaseFileNameTest()\n\t{\n\t\t/*try\n\t\t {\n\t\t OsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter();\n\t\t converter.convert(TEST_MAP_FILE, \"\", new TestMapObjectsIdentifiersFinder());\n\t\t fail();\n\t\t }\n\t\t catch (IllegalArgumentException ex)\n\t\t {\n\t\t // ok\n\t\t }\n\t\t catch (FileNotFoundException | ParsingOsmErrorException | DeletingExistsDatabaseFileErrorException | DatabaseErrorExcetion ex)\n\t\t {\n\t\t fail();\n\t\t }*/\n\t}", "private static boolean isValidCreate(String pFilePath) {\n\t\tassert pFilePath != null;\n\t\tFile f = new File(pFilePath);\n\t\treturn f.exists();\n\t}", "boolean hasFileLocation();", "private File validateFile(String filename)\n {\n if (filename == null)\n {\n throw new IllegalArgumentException(\"Filename is null\");\n }\n File f = new File(filename);\n //if (!f.exists()) sometimes this throws false even if the program does exist.\n //{\n // throw new IllegalArgumentException(\"Path \"+filename+\" does not refer to a file\");\n //}\n return f;\n }", "public void testGetExecutable_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable((String) null);\n\t\tfixture.setMtime(\"\");\n\n\t\tString result = fixture.getExecutable();\n\n\t\t\n\t\tassertEquals(\"0\", result);\n\t}", "@Test\n\tpublic void testReadFileIntoStringNull() throws IOException {\n\t\tsfr = ss.createFileReader(\"non-existing-type\");\n\t\tString actualString = sfr.readFileIntoString(TEST_CLASS_LOCAL);\n\t\tassertNull(actualString);\n\t}", "@Test\n\tpublic void testTupleFile2() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getKey(), t.getKey());\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile();\n\n\t\tAssert.assertEquals(1, seenTuples.get());\n\t}", "public static void main(String[] args) {\n File file = new File (\"tesEt.txt\");\n // Path file = Paths.get(\"test.txt\");\n // System.out.println(file.get);\n System.out.println(file.getAbsoluteFile());\n System.out.println(file.isAbsolute());\n System.out.println(file.exists());\n \n // try {\n // // File.createTempFile(\"prefix\", \"suffix\");\n // sy\n // } catch (IOException e) {\n // // TODO Auto-generated catch block\n // e.printStackTrace();\n // }finally\n // {\n // System.out.println(\"hehehehe\");\n // }\n // file.\n\n }", "@Test\n public void testAnalyzeFileByName() {\n incorrectValues(null, \"test.txt\");\n incorrectValues(\"\", \"test.txt\");\n incorrectValues(\"lof\", null);\n incorrectValues(\"file\", \"\");\n\n incorrectValues(DIR, \"\");\n incorrectValues(DIR, null);\n }", "public void testGetExecutable_2()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\n\t\tString result = fixture.getExecutable();\n\n\t\t\n\t\tassertEquals(\"\", result);\n\t}", "@Test\n public void testCannotOpenTodo() throws Exception {\n testConstructor(new TestFilesFacadeImpl() {\n int counter = 1;\n\n @Override\n public int openRW(LPSZ path, long opts) {\n if (Chars.endsWith(path, TableUtils.TODO_FILE_NAME) && --counter == 0) {\n return -1;\n }\n return super.openRW(path, opts);\n }\n });\n }", "boolean hasFileLoc();", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_NULL.XML\");\n byte[] byteArray0 = new byte[9];\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n FileInputStream fileInputStream0 = fileUtil0.fetchSimilarItems((String) null, \"\");\n assertEquals(9, fileInputStream0.available());\n }", "@Test\n public void tagFilesShouldReturnNonEmptyTagFiles() throws Exception {\n //given\n givenInfoMessageCode();\n\n //when\n List<IFileSpec> tagFiles = tagDelegator.tagFiles(fileSpecs, LABEL_NAME, opts);\n //then\n assertThat(tagFiles.size(), is(1));\n assertThat(tagFiles.get(0).getDepotPathString(), is(TEST_FILE_DEPOT_PATH));\n }", "@Test\n\tpublic void testIsSrcNoTestFile() {\n\t\t// Setup\n\t\tString added = \"6\";\n\t\tString removed = \"4\";\n\t\tString file = \"test/dank.tt\";\n\t\tLine line = new Line(added, removed, file);\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"tt\");\n\n\t\t// Exercise\n\t\tboolean src = line.isSource(types);\n\n\t\t// Verify\n\t\tassertFalse(src);\n\t}", "@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"\n +fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"\n +fSeparator+\"Test1\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createFilePath(path);\n assertEquals(\"Some message\",expResult, result);\n }", "protected void validateFile() {\r\n\t\tFile f = new File(FileUltil.joinPath(dOutputFolder, dFileName));\r\n\t\tif (f.exists() && !f.isDirectory()) {\r\n\t\t\tdFileName = \"Copy of \" + dFileName;\r\n\t\t\tvalidateFile();\r\n\t\t}\r\n\t}", "@Override\n public boolean exists(File file) {\n\treturn false;\n }", "@Test\n public void test051() throws Throwable {\n FileInput fileInput0 = new FileInput((Component) null, \"<\", \"<\");\n // Undeclared exception!\n try {\n Component component0 = fileInput0.sub();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n\tpublic void testParseTagFile_Failure() throws IOException \n\t{\n\t\tString expected = \"aus-capitals|8\";\t\t\n\t\t\n\t\t// Act\n\t\t// need to be modified the hardcoded path with mocking\n\t\tString actual = TagFileParser.readTagFile(\"D:\\\\Learning\\\\testlocation\\\\aus-capitals.tag\");\n\t\t\n\t\t// Assert\t\t\n\t\tassertNotEquals(expected, actual);\t\n\t}", "public static void main(String[] args) {\n\n\t\tFile fi = new File(\"C:/test_io\");\n\t\tif(fi.exists()) {\n\t\t\t\n\t\t\tSystem.out.println(\"exists!\");\n\t\t}else {\n\t\t\tSystem.out.println(\"new\");\n\t\t\tfi.mkdir();\n\t\t}\n\t\t\n\t\tFile fic1 = new File(fi, \"AA\");\n\t\tfic1.mkdir();\n\t\t\n\t\tFile fic2 = new File(\"C:/test_io\", \"BB\");\n\t\tfic2.mkdir();\n\t\t\n\t\tFile fitxt = new File(fic1,\"a.txt\");\n\t\t\n\t\ttry {//checked exception\n\t\t\tfitxt.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\r\n public void setStateWhenFileCannotExistTest() {\r\n try {\r\n deleteFile(runtimeConfigDAOPropertiesFile.getRuntimePropertiesFilename());\r\n // make a directory by the same name as the properties file. This will result in a FNFException when trying to open it as a file\r\n (new File(runtimeConfigDAOPropertiesFile.getRuntimePropertiesFilename())).mkdirs();\r\n\r\n // Perform the operation\r\n runtimeConfigDAOPropertiesFile.setState(new State(State.DISABLED));\r\n Assert.fail(\"The properties file should already exist as a directory and so an exceptions should have been thrown.\");\r\n } catch (CannotSetStateException e) {\r\n // Passed the test\r\n }\r\n (new File(runtimeConfigDAOPropertiesFile.getRuntimePropertiesFilename())).delete();\r\n }", "public void testCreateFileSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"fileCreationId shouldn't be null or empty\", fileCreationId != null\r\n && fileCreationId.trim().length() != 0);\r\n filePersistence.closeFile(fileCreationId);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }", "@Test\n public void testDeleteGeneratedEmptyFile() throws Throwable {\n String resources = getResourceFolder();\n String outputFile = resources + \"/out/test_deleteGeneratedEmptyFile.csv\";\n LOGGER.debug(\"Test file path: \" + outputFile);\n TFileOutputDelimitedProperties properties = createOutputProperties(outputFile, false);\n List<IndexedRecord> records = new ArrayList<>();\n // Delete generated empty file function not be checked\n doWriteRows(properties, records);\n File outFile = new File(outputFile);\n assertTrue(outFile.exists());\n assertEquals(0, outFile.length());\n assertTrue(outFile.delete());\n // Active delete generated empty file function\n assertFalse(outFile.exists());\n properties.deleteEmptyFile.setValue(true);\n doWriteRows(properties, records);\n assertFalse(outFile.exists());\n\n }", "@Test\r\n\tpublic void testTournamentFileConditions() {\r\n\t\tassertTrue(cl.checkTournamentFileConditions(tags[2]));\r\n\t\tassertFalse(cl.checkTournamentFileConditions(tags2[2]));\r\n\t}", "@java.lang.Deprecated boolean hasFile();", "@Test\n\tpublic void testisValidNoNotAJavaFile() {\n\t\t// Setup\n\t\tString added = \"3\";\n\t\tString removed = \"5\";\n\t\tLine line = new Line(added, removed, \"dank.tt\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tboolean valid = line.isValid(types);\n\n\t\t// Verify\n\t\tassertFalse(valid);\n\t}", "@Test\r\n public void testReadFile() {\r\n System.out.println(\"readFile and updateFile\");\r\n InparseManager instance = ((InparseManager) new ParserGenerator().getNewApplicationInparser());\r\n \r\n try {\r\n File file = File.createTempFile(\"TempInpFile\", null);\r\n instance.setlocalPath(file.getAbsolutePath());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ApplicationInparserTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n instance.updateFile();\r\n instance.readFile();\r\n instance.parse();\r\n boolean assemblersFound = !((Applications)(((InparseManager)instance).getParseResults())).getAssemblers().isEmpty();\r\n assertEquals(true,assemblersFound);\r\n }", "@Test\n public void wrongFilterFileReturnsNullAndPrintsMessage() {\n String[] inputArgs = new String[] {\"-i\", \"/path/\", \"-o\", \"/path/\", \n \"-a\", apkFile.getAbsolutePath(), \n \"-f\", \"/wrong/\"};\n ArgumentReader sut = new ArgumentReader(inputArgs);\n\n Arguments args = sut.read();\n\n assertThat(args, nullValue());\n String message = File.separator + \"wrong is not found!\";\n assertThat(errContent.toString(), containsString(message));\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_[.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\\\",\");\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getSimilarItems(\"[\", \"\");\n assertEquals(2L, file0.length());\n assertNotNull(file0);\n }", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n private static void fileExists(String filepath) throws IOException {\r\n File file = new File(filepath + filePath);\r\n if (!file.exists()) {\r\n file.createNewFile();\r\n }\r\n }", "public static File checkDescriptorFileExist(File descriptor) throws IllegalArgumentException {\n if (!descriptor.exists()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" does not exist\");\n }\n if (!descriptor.isFile()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" is not a file\");\n }\n if (!descriptor.canRead()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" is not readable\");\n }\n \n return descriptor;\n }", "public static void insurePathToFileExists(File f) {\r\n File p = f.getParentFile();\r\n //System.out.println(\"uu.iPE: parent of \"+filename+\" is \"+parent);\r\n\r\n if (!p.exists()) {\r\n // parent doesn't exist, create it:\r\n if (!p.mkdirs()) {\r\n throw new IllegalStateException(\"Unable to make directory \" + p.getPath());\r\n } // endif -- second mkdir unsuc\r\n } // endif -- parent exists\r\n }", "@Test\n\tpublic void testReadFileIntoListNull() throws IOException {\n\t\tsfr = ss.createFileReader(\"non-existing-type\");\n\t\tList<String> actualList = sfr.readFileIntoList(TEST_CLASS_LOCAL);\n\t\tassertNull(actualList);\n\t}", "private boolean isEmptyFile(String filename) {\n try (InputStream in = IO.openFile(filename)) {\n int b = in.read();\n return (b == -1);\n } catch (IOException ex) {\n throw IOX.exception(ex);\n }\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getASINFile(\"\", \"v<B(aXlp#d/?cL2Q??\", \"i@\", \"g_\");\n assertNull(file0);\n }", "protected void validateNewFiles(java.lang.String[] param){\r\n \r\n }", "@Override\n\tpublic boolean readData(File file) {\n return file.exists();\n\t}", "private FileUtil() {}" ]
[ "0.66262996", "0.6258809", "0.6003044", "0.5991069", "0.5926792", "0.59126204", "0.5895254", "0.58673775", "0.58643895", "0.5840117", "0.5824747", "0.5810087", "0.57928276", "0.5746489", "0.57279897", "0.57046777", "0.57040083", "0.57020396", "0.5696421", "0.5693844", "0.56938404", "0.5687497", "0.56862813", "0.5661597", "0.5661411", "0.56435585", "0.56386113", "0.56363356", "0.5628747", "0.5627607", "0.56203425", "0.56059337", "0.5589112", "0.5587844", "0.55819446", "0.55688214", "0.55546534", "0.55507636", "0.5548698", "0.55485654", "0.5540057", "0.5529997", "0.5521343", "0.55191076", "0.55067676", "0.5502453", "0.55016154", "0.54949987", "0.54939437", "0.5493324", "0.5493063", "0.54846287", "0.54822296", "0.54745984", "0.5472991", "0.5469605", "0.5464203", "0.5449249", "0.5445052", "0.5444833", "0.5443544", "0.5442504", "0.5437877", "0.5425093", "0.54106504", "0.5409185", "0.54062563", "0.54043984", "0.5401409", "0.5400229", "0.5397114", "0.53959715", "0.53927916", "0.53872263", "0.5384597", "0.5383973", "0.5376299", "0.53755796", "0.53730536", "0.53725296", "0.5372279", "0.5370454", "0.53689575", "0.5367495", "0.53669685", "0.5363251", "0.5358334", "0.53556836", "0.5351876", "0.5346163", "0.5346133", "0.5337963", "0.5332058", "0.5330734", "0.5330007", "0.532369", "0.53213143", "0.5318055", "0.53153443", "0.5314408" ]
0.6601547
1
Test the tuple file builder
@Test public void testTupleFile2() throws Exception { final File tempFile = File.createTempFile("temp",".txt"); tempFile.deleteOnExit(); // The reference tuple final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.GEOJSON); final Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, "1"); final BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile)); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.close(); final TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(), TupleBuilderFactory.Name.GEOJSON); final AtomicInteger seenTuples = new AtomicInteger(0); tupleFile.addTupleListener(t -> { Assert.assertEquals(tuple.getKey(), t.getKey()); Assert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox()); Assert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes()); seenTuples.incrementAndGet(); }); tupleFile.processFile(); Assert.assertEquals(1, seenTuples.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected=IOException.class)\n\tpublic void testTupleFile1() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\n\t\ttempFile.delete();\n\t\tAssert.assertFalse(tempFile.exists());\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\ttupleFile.processFile();\n\t}", "@Test\n\tpublic void testTupleFile4() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile(3);\n\n\t\tAssert.assertEquals(3, seenTuples.get());\n\t}", "@Test\n\tpublic void testTupleFile3() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getKey(), t.getKey());\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile(1);\n\n\t\tAssert.assertEquals(1, seenTuples.get());\n\t\tAssert.assertEquals(2, tupleFile.getProcessedLines());\n\t\tAssert.assertEquals(GEO_JSON_LINE, tupleFile.getLastReadLine());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "public void testInterpretingBasicExample2()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base_2.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 3);\n assertEquals(t.getMostExpensiveSaleId(), \"08\");\n assertEquals(t.getWorstSalesman(), \"Diego\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "@Test\r\n\tpublic void testFullCapacityLowerToHigerWeight(){\r\n\t\tString expectedResult = \"1,2,4\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/fullCapacityLowerToHigerWeight.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. FullCapacityLowerToHigerWeight file.\");\r\n\t}", "@Test\n public void testConstruction() {\n VecFile = new assignmentPackage.VecFile.VecFile(testFile, colour, fill);\n }", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "public void testInterpretingBasicExample1()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 2);\n assertEquals(t.getMostExpensiveSaleId(), \"10\");\n assertEquals(t.getWorstSalesman(), \"Renato\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void CombinedTest(){\n try\n {\n RiotApiHandler userTest=RiotApiHandler.getInstance();\n String[] array = {\"EUN1_2775220260\", \"EUN1_2774180103\", \"EUN1_2773714308\", \"EUN1_2773662778\", \"EUN1_2772530238\", \"EUN1_2772505023\",\n \"EUN1_2772491193\", \"EUN1_2772005021\", \"EUN1_2771803452\", \"EUN1_2769206534\", \"EUN1_2767311256\", \"EUN1_2767113653\", \"EUN1_2767101111\",\n \"EUN1_2767036478\", \"EUN1_2766884534\", \"EUN1_2766808664\", \"EUN1_2766432042\", \"EUN1_2766071093\", \"EUN1_2766077729\", \"EUN1_2765668508\"\n };\n ArrayList<String> correct = new ArrayList<>(Arrays.asList(array));\n Path testfile = Path.of(\"matchinfo2.txt\");\n String fin = Files.readString(testfile);\n //pUUID test\n Assert.assertEquals(\"pkJUgeuYD1wH6LqRsGmUYATe3F1T3NltD_s2wkDTzgKG8wdF4dABME5lH4yN05LAgCjzdg18BCmp5w\",userTest.getEncryptedPUUID(\"Redlat\",\"eun1\"));\n //matchList test\n Assert.assertEquals(correct,userTest.getMatchlist(\"Redlat\",\"eun1\"));\n //matchDetails test\n Assert.assertEquals(fin,userTest.getMatchDetails(\"EUN1_2772505023\",\"eun1\"));\n } catch (IOException exception)\n {\n exception.printStackTrace();\n }\n }", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "public void testSaveNewLightningLevel()\n {\n window.comboBox(\"levelTypeSelector\").selectItem(\"Lightning\");\n\n window.radioButton(\"activeTileButton\").click();\n window.panel(\"square0\").click();\n window.button(\"saveButton\").click();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n Arrays.sort(listOfFiles, new Comparator<File>() {\n public int compare(File f1, File f2) {\n try {\n int i1 = Integer.parseInt(f1.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n int i2 = Integer.parseInt(f2.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n return i1 - i2;\n } catch (NumberFormatException e) {\n throw new AssertionError(e);\n }\n }\n });\n\n assertTrue(listOfFiles[listOfFiles.length - 1].getPath().contains(\"level\" +\n listOfFiles.length +\".txt\"));\n\n String content = null;\n Scanner scanner = null;\n try\n {\n scanner = new Scanner(listOfFiles[listOfFiles.length - 1]);\n content = scanner.useDelimiter(\"\\\\Z\").next();\n scanner.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n String correctContent = \"NewLevel Lightning 0 1 10 50 0 20 30 20 15 10 5 70 20 \" +\n \"10 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \";\n assertEquals(correctContent, content);\n }", "@Test\n public void testReadTtbinFile_String()\n {\n System.out.println(\"TEST: readTtbinFile\");\n String fileName = \"src/test/resources/test.ttbin\";\n TomTomReader instance = TomTomReader.getInstance();\n Activity expResult = null;\n Activity result = instance.readTtbinFile(fileName);\n\n testContentsNonSmoothed(result);\n }", "public void testRead_Insert() throws Exception {\n\n\t\tfinal boolean DEBUG = true;\n\n\t\t//DataGenerator dg = new DataGenerator();\n\t\t\n\t\tif (DEBUG) System.out.println(\"Inside testReadFile()...\");\n\n\t\t//ER\n \t\tdg.buildDataFile(maxrecs,inFile1,newFile1);\n \t\tdataarr1=dg.ReadFile(maxrecs,newFile1);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr1.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tER: \" + dataarr1[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//PR\n \t\tdg.buildDataFile(maxrecs,inFile2,newFile2);\n \t\tdataarr2=dg.ReadFile(maxrecs,newFile2);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr2.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tPR: \" + dataarr2[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//HER2status\n \t\tdg.buildDataFile(maxrecs,inFile3,newFile3);\n \t\tdataarr3=dg.ReadFile(maxrecs,newFile3);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr3.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tHER2status: \" + dataarr3[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//HER2testtype\n \t\tdg.buildDataFile(maxrecs,inFile4,newFile4);\n \t\tdataarr4=dg.ReadFile(maxrecs,newFile4);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr4.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tHER2testtype: \" + dataarr4[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//EGFRstatus\n \t\tdg.buildDataFile(maxrecs,inFile5,newFile5);\n \t\tdataarr5=dg.ReadFile(maxrecs,newFile5);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr5.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tEGFRstatus: \" + dataarr5[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tdg.buildBreastCancerBiomarkers(maxrecs,dataarr1,dataarr2,dataarr3,dataarr4,dataarr5);\n\t\t\n\t\tif (DEBUG) System.out.println(\"\\tEnd Of testReadFile...\");\n\t\t\n\t}", "public static void testCreateGridFile() {\n\n System.out.println(\"\\n--------- Creating Grid File ---------\");\n\n //Create a params for the grid file\n GridParameters params =\n new GridParameters(NUMBER_ROWS, NUMBER_COLUMNS, 1.0, 1.0, CELL_SIZE, \n \"Created by com.pb.common.grid.GridFileTest\");\n\n try {\n GridFile gridFile = GridFile.create(TEST_FILE, params); //Create the grid file\n gridFile.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void testBuilderExample() throws IOException {\n doTest();\n }", "public static void testAddDataToGridFile() {\n\n System.out.println(\"\\n--------- Adding Data to Grid File ---------\");\n\n GridFile gridFile = null;\n\n try {\n gridFile = GridFile.open(TEST_FILE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n GridParameters params = gridFile.getParameters();\n\n //Create a row and put some data in it\n int[] rowValues = new int[params.getNumberOfColumns()];\n for (int i = 0; i < rowValues.length; i++) {\n rowValues[i] = i;\n }\n\n try {\n gridFile.putRow(2, rowValues); //store values in row 10\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@Test\n public void testToFileFormat() {\n ToDo t = new ToDo(\"test\");\n assertEquals(t.toFileFormat(), \"Ttest,false\");\n t.setDoneStatus(true);\n assertEquals(t.toFileFormat(), \"Ttest,true\");\n }", "@Test\n\tpublic void convertingWithEqualsSourceAndDatabaseFileTest() throws FileNotFoundException\n\t{\n\t\t/*try\n\t\t {\n\t\t OsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter();\n\t\t converter.convert(IOTester.TEST_FILE_NAME, IOTester.TEST_FILE_NAME, new TestMapObjectsIdentifiersFinder());\n\t\t fail();\n\t\t }\n\t\t catch (IllegalArgumentException ex)\n\t\t {\n\t\t // ok\n\t\t }*/\n\t}", "@Test\n\tpublic void testWriteToFile() {\n\t\tArrayList<ArrayList<String>> risultatoAnalisi = \n\t\t\t\tnew ArrayList<ArrayList<String>>();\n\t\toutput.setAnalysisResult(risultatoAnalisi);\n\t\tString percorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + \"analysis.txt\").exists());\n\t\t/*\n\t\t * Ora passo un path corretto e controllo che venga creato il fiile\n\t\t */\n\t\tpercorso = \"test-dir\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + File.separator + \"analysis.txt\").exists());\n\t\t/*\n\t\t * Ripeto il test con valori da scrivere\n\t\t */\n\t\tArrayList<String> datiCasuali = new ArrayList<String>();\n\t\tdatiCasuali.add(\"27\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\tdatiCasuali.add(\"12\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\tdatiCasuali.add(\"3245543\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\toutput.setAnalysisResult(risultatoAnalisi); \n\t\tpercorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\t\t\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + \"analysis.txt\").exists());\n\t}", "public void testRand()\n throws IOException, FileNotFoundException\n {\n compareValues(PATH + \"randtable.txt\", PATH + \"RandPair.txt\", FACTORY);\n }", "@Test public void testCreateCompoundIpfGenerationRule(@Mocked final IScope scope, @Mocked final FileUtils fileUtils) throws GenstarException {\n\t\t\n\t\tfinal String groupAttributesFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/group_attributes.csv\";\n\t\tfinal String groupSampleFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/group_sample.csv\";\n\t\tfinal String controlledAttributesFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/group_controlled_attributes.csv\";\n\t\tfinal String controlTotalsFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/group_control_totals.csv\";\n\t\tfinal String supplementaryAttributesFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/group_supplementary_attributes.csv\";\n\t\t\n\t\tfinal String componentSampleFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/component_sample.csv\";\n\t\tfinal String componentAttributesFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/component_attributes.csv\";\n\t\t\n\t\t\n\t\tnew Expectations() {{\n\t\t\tFileUtils.constructAbsoluteFilePath(scope, anyString, true);\n\t\t\tresult = new Delegate() {\n\t\t\t\tString delegate(IScope scope, String filePath, boolean mustExist) {\n\t\t\t\t\tif (filePath.endsWith(\"/group_attributes.csv\")) { return groupAttributesFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_sample.csv\")) { return groupSampleFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_controlled_attributes.csv\")) { return controlledAttributesFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_control_totals.csv\")) { return controlTotalsFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_supplementary_attributes.csv\")) { return supplementaryAttributesFilePath; }\n\t\t\t\t\t\n\t\t\t\t\tif (filePath.endsWith(\"/component_sample.csv\")) { return componentSampleFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/component_attributes.csv\")) { return componentAttributesFilePath; }\n\t\t\t\t\t\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t};\n\t\t}};\n\t\t \n\t\t\n\t\tString ruleName = \"dummy rule\";\n\t\t\n\t\tProperties ipfPopulationProperties = null;\n\t\tFile ipfPopulationPropertiesFile = new File(\"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/IpfPopulationProperties.properties\");\n\t\ttry {\n\t\t\tFileInputStream propertyInputStream = new FileInputStream(ipfPopulationPropertiesFile);\n\t\t\tipfPopulationProperties = new Properties();\n\t\t\tipfPopulationProperties.load(propertyInputStream);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new GenstarException(e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new GenstarException(e);\n\t\t}\n\t\t\n\t\t\n\t\tSampleBasedGenerator generator = new SampleBasedGenerator(\"dummy generator\");\n\t\t\n\t\tGenstarCsvFile attributesFile = new GenstarCsvFile(groupAttributesFilePath, true);\n\t\tAttributeUtils.createAttributesFromCsvFile(generator, attributesFile);\n\t\t\n\t\tDeprecatedGamaGenstarUtils.createIpfGenerationRule(scope, generator, ruleName, ipfPopulationProperties);\n\t\t\n\t\tassertTrue(generator.getGenerationRule() instanceof IpfGenerationRule);\n\n\t\tIpfGenerationRule generationRule = (IpfGenerationRule) generator.getGenerationRule();\n\t\tassertTrue(generationRule.getSampleData() instanceof CompoundSampleData);\n\t}", "@Test\r\n\tpublic void testTournamentFileConditions() {\r\n\t\tassertTrue(cl.checkTournamentFileConditions(tags[2]));\r\n\t\tassertFalse(cl.checkTournamentFileConditions(tags2[2]));\r\n\t}", "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test public void readFileTest() throws FileNotFoundException\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n pList = pList.readFile(\"PentagonalPyramid_data_1.txt\");\n Assert.assertEquals(\"readFile Test\", \n \"PentagonalPyramid Test List\", pList.getName());\n }", "public void testSaveNewEliminationLevel()\n {\n window.comboBox(\"levelTypeSelector\").selectItem(\"Elimination\");\n\n window.radioButton(\"activeTileButton\").click();\n window.panel(\"square0\").click();\n\n window.button(\"saveButton\").click();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n Arrays.sort(listOfFiles, new Comparator<File>() {\n public int compare(File f1, File f2) {\n try {\n int i1 = Integer.parseInt(f1.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n int i2 = Integer.parseInt(f2.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n return i1 - i2;\n } catch (NumberFormatException e) {\n throw new AssertionError(e);\n }\n }\n });\n\n assertTrue(listOfFiles[listOfFiles.length - 1].getPath().contains(\"level\" +\n listOfFiles.length +\".txt\"));\n\n String content = null;\n Scanner scanner = null;\n try\n {\n scanner = new Scanner(listOfFiles[listOfFiles.length - 1]);\n content = scanner.useDelimiter(\"\\\\Z\").next();\n scanner.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n String correctContent = \"NewLevel Elimination 1 1 10 50 0 20 30 20 15 10 5 \" +\n \"70 20 10 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \";\n assertEquals(correctContent, content);\n }", "public void testParFileReading() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n\n oManager = new GUIManager(null);\n \n //Valid file 1\n oManager.clearCurrentData();\n sFileName = writeFile1();\n oManager.inputXMLParameterFile(sFileName);\n SeedPredationBehaviors oPredBeh = oManager.getSeedPredationBehaviors();\n ArrayList<Behavior> p_oBehs = oPredBeh.getBehaviorByParameterFileTag(\"DensDepRodentSeedPredation\");\n assertEquals(1, p_oBehs.size());\n DensDepRodentSeedPredation oPred = (DensDepRodentSeedPredation) p_oBehs.get(0);\n double SMALL_VAL = 0.00001;\n \n assertEquals(oPred.m_fDensDepDensDepCoeff.getValue(), 0.07, SMALL_VAL);\n assertEquals(oPred.m_fDensDepFuncRespExpA.getValue(), 0.02, SMALL_VAL);\n\n assertEquals( ( (Float) oPred.mp_fDensDepFuncRespSlope.getValue().get(0)).\n floatValue(), 0.9, SMALL_VAL);\n assertEquals( ( (Float) oPred.mp_fDensDepFuncRespSlope.getValue().get(1)).\n floatValue(), 0.05, SMALL_VAL);\n\n //Test grid setup\n assertEquals(1, oPred.getNumberOfGrids());\n Grid oGrid = oManager.getGridByName(\"Rodent Lambda\");\n assertEquals(1, oGrid.getDataMembers().length);\n assertTrue(-1 < oGrid.getFloatCode(\"rodent_lambda\")); \n \n }\n catch (ModelException oErr) {\n fail(\"Seed predation validation failed with message \" + oErr.getMessage());\n }\n catch (java.io.IOException oE) {\n fail(\"Caught IOException. Message: \" + oE.getMessage());\n }\n finally {\n new File(sFileName).delete();\n }\n }", "@Test\n public void testReadFile() {\n System.out.println(\"readFile\");\n String fileName = \"src/main/resources/activities.txt\";\n String line = \"Learning Magic Tricks 40min\";\n\n Activities instance = new Activities(fileName);\n List<Activity> result = null;\n try {\n result = instance.getActivities();\n } catch (IOException ex) {\n }\n List<Activity> expResult = new ArrayList<>();\n expResult.add(new Activity(line, 40));\n// Assert.assertTrue(result.contains(expResult));\n }", "public void testSaveNewPuzzleLevel()\n {\n window.comboBox(\"levelTypeSelector\").selectItem(\"Puzzle\");\n\n window.radioButton(\"activeTileButton\").click();\n window.panel(\"square0\").click();\n window.button(\"saveButton\").click();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n Arrays.sort(listOfFiles, new Comparator<File>() {\n public int compare(File f1, File f2) {\n try {\n int i1 = Integer.parseInt(f1.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n int i2 = Integer.parseInt(f2.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n return i1 - i2;\n } catch (NumberFormatException e) {\n throw new AssertionError(e);\n }\n }\n });\n\n assertTrue(listOfFiles[listOfFiles.length - 1].getPath().contains(\"level\" +\n listOfFiles.length +\".txt\"));\n\n String content = null;\n Scanner scanner = null;\n try\n {\n scanner = new Scanner(listOfFiles[listOfFiles.length - 1]);\n content = scanner.useDelimiter(\"\\\\Z\").next();\n scanner.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n String correctContent = \"NewLevel Puzzle 1 0 10 50 0 20 30 20 15 10 5 70 20 \" +\n \"10 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\" +\n \" 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\" +\n \" 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \";\n assertEquals(correctContent, content);\n }", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n void buildWithFilePart() {\n MultipartFileBuilder builder = new MultipartFileBuilderImpl(\n System.getProperty(\"java.io.tmpdir\"));\n final byte[] value = UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8);\n StepVerifier\n .create(builder.build(createFilePart(value, \"file\", MediaType.TEXT_PLAIN, \"test.txt\")))\n .assertNext(multipartFile -> {\n try {\n assertFalse(multipartFile.isEmpty());\n assertEquals(\"file\", multipartFile.getName());\n assertEquals(MediaType.TEXT_PLAIN_VALUE, multipartFile.getContentType());\n assertEquals(\"test.txt\", multipartFile.getOriginalFilename());\n assertEquals(value.length, (int) multipartFile.getSize());\n assertArrayEquals(value, multipartFile.getBytes());\n\n } catch (IOException e) {\n throw ServiceException.internalServerError(\"Fatal error\", e);\n } finally {\n FileAwareMultipartFile.delete(multipartFile);\n }\n })\n .verifyComplete();\n }", "@Test\n public void testCompareTest7b() {\n helperMethodb(\"CompareTest7a.txt\", \"CompareTest7b.txt\");\n }", "@Test\n public void getMatchDetailsTest2(){\n try {\n RiotApiHandler userTest=RiotApiHandler.getInstance();\n Path testfile = Path.of(\"matchinfo.txt\");\n String fin = Files.readString(testfile);\n Assert.assertNotEquals(fin,userTest.getMatchDetails(\"EUN1_2775220260\",\"eun1\"));\n }\n catch (IOException exception){\n exception.printStackTrace();\n }\n }", "@Test\n public void testCompareTest3b() {\n helperMethodb(\"CompareTest3a.txt\", \"CompareTest3b.txt\");\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, false);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \">\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n simpleNode0.setIdentifier(\"<<\");\n simpleNode0.setIdentifier(\"y\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"<<\");\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n simpleNode0.dump(\"}\", stringWriter0);\n assertEquals(\"<CompilationUnit>\\n <identifier>*lshft</identifier>\\n <identifier>y</identifier>\\n</CompilationUnit>\\n\", stringWriter0.toString());\n }", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tvoid test() throws IOException\n\t{\n\t\t\tFile f1=new File(\"testcase1.txt\");\n\t\t\tf1.createNewFile();\n\t\t\tFileWriter fileWriter;\n\t\t\tfileWriter = new FileWriter(f1.getPath());\n\t\t\tString str1=\"I am a test string and number one two three four five six seven eight nine ten eleven twelve.\";\n\t\t\tfileWriter.write(str1);\n\t\t fileWriter.close();\n\n\t\t /**\n\t\t * TO-DO\n\t\t * call formatter to get actual.txt\n\t\t */\n\t\t \n\t\t File f2=new File(\"expected1.txt\");\n\t\t\tf2.createNewFile();\n\t\t\tFileWriter fileWriter2 = new FileWriter(f2.getPath());\n\t\t\tString str2=\"I am a test string and number one two three four five six seven eight nine ten\\neleven twelve.\";\n\t\t\tfileWriter2.write(str2);\n\t\t fileWriter2.close();\n\t\t \t\t \n\t\t\tassertFalse(equalFile(\"testcase1.txt\",\"expected1.txt\"));\t\n\t}", "@Test\n public void testCreateTextFile() {\n System.out.println(\"createTextFile to existing dest Path\");\n String destPath = folder.toString()+fSeparator+\"Texts\"+fSeparator;\n String text = \"qweqweqwewqeqw\";\n String fileName = \"test\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createTextFile(destPath, text, fileName);\n assertEquals(\"Some message\",expResult, result);\n }", "@Test\r\n\tpublic void testAllItems(){\r\n\t\tString expectedResult = \"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/allItems.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. AllItems.\");\r\n\t}", "@Test\r\n\tpublic void testPackerExample(){\r\n\t\tString expectedResult = \"4\\n-\\n2,7\\n8,9\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/exampleFile.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. Example file.\");\r\n\t}", "private Tuples() {}", "public void tester() {\n FileResource fr = new FileResource();\n CSVParser parser = fr.getCSVParser();\n //listExporters(parser, \"coffee\");\n //System.out.println(countryInfo(parser, \"Nauru\"));\n //listExportersTwoProducts(parser, \"cotton\",\"flowers\");\n //System.out.println(numberOfExporters(parser, \"cocoa\"));\n bigExporters(parser, \"$999,999,999,999\");\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_[.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\\\",\");\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getSimilarItems(\"[\", \"\");\n assertEquals(2L, file0.length());\n assertNotNull(file0);\n }", "@Test\n public void testReadTtbinFile_UsbFile()\n {\n System.out.println(\"TEST: readTtbinFile\");\n UsbFile file = new UsbFile(0xFFFFFFFF, ttbinFileData.length, ttbinFileData);\n TomTomReader instance = TomTomReader.getInstance();\n Activity result = instance.readTtbinFile(file);\n \n testContentsNonSmoothed(result);\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(86);\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)92;\n byteArray0[2] = (byte) (-45);\n byteArray0[3] = (byte)104;\n byteArray0[4] = (byte)1;\n byteArray0[5] = (byte) (-61);\n byteArray0[6] = (byte)10;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n simpleNode0.setIdentifier(\"\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"*gt\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n StringWriter stringWriter0 = new StringWriter();\n simpleNode0.dump(\"imort\", stringWriter0);\n assertEquals(\"<ForUpdate>\\n</ForUpdate>\\n\", stringWriter0.toString());\n \n String string0 = simpleNode0.toString();\n assertEquals(\"ForUpdate : \", string0);\n }", "@Test public void testCreateIpuGenerationRule(@Mocked final IScope scope, @Mocked final FileUtils fileUtils) throws GenstarException {\n\t\t\n\t\tfinal String base_path = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateIpuGenerationRule/\";\n\t\t\n\t\tfinal String groupAttributesFilePath = base_path + \"group_attributes.csv\";\n\t\tfinal String groupPopulationName = \"household\";\n\t\tfinal String groupSampleDataFile = base_path + \"group_sample.csv\";\n\t\tfinal String groupIdOnGroup = \"HouseholdID\";\n\t\tfinal String groupControlledAttributesFile = base_path + \"group_controlled_attributes.csv\";\n\t\tfinal String groupControlTotalsFile = base_path + \"group_ipu_control_totals.csv\";\n\t\tfinal String groupSupplementaryAttributesFile = base_path + \"group_supplementary_attributes.csv\";\n\t\t\n\t\tfinal String componentAttributesFile = base_path + \"component_attributes.csv\";\n\t\tfinal String componentPopulationName = \"household\";\n\t\tfinal String componentSampleDataFile = base_path + \"component_sample.csv\";\n\t\tfinal String componentIdOnGroup = \"HouseholdID\";\n\t\tfinal String componentControlledAttributesFile = base_path + \"component_controlled_attributes.csv\";\n\t\tfinal String componentControlTotalsFile = base_path + \"component_ipu_control_totals.csv\";\n\t\tfinal String componentSupplementaryAttributesFile = base_path + \"component_supplementary_attributes.csv\";\n\n\t\t\n\t\tnew Expectations() {{\n\t\t\tFileUtils.constructAbsoluteFilePath(scope, anyString, true);\n\t\t\tresult = new Delegate() {\n\t\t\t\tString delegate(IScope scope, String filePath, boolean mustExist) {\n\t\t\t\t\t// group population\n\t\t\t\t\tif (filePath.endsWith(\"/group_attributes.csv\")) { return groupAttributesFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_sample.csv\")) { return groupSampleDataFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_controlled_attributes.csv\")) { return groupControlledAttributesFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_ipu_control_totals.csv\")) { return groupControlTotalsFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_supplementary_attributes.csv\")) { return groupSupplementaryAttributesFile; }\n\t\t\t\t\t\n\t\t\t\t\t// component population\n\t\t\t\t\tif (filePath.endsWith(\"/component_attributes.csv\")) { return componentAttributesFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/component_sample.csv\")) { return componentSampleDataFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/component_controlled_attributes.csv\")) { return componentControlledAttributesFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/component_ipu_control_totals.csv\")) { return componentControlTotalsFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/component_supplementary_attributes.csv\")) { return componentSupplementaryAttributesFile; }\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t};\n\t\t}};\n\t\t\n\t\t\n\t\tString ipuPopulationPropertiesFilePath = base_path + \"IpuPopulationProperties.properties\";\n\t\tString ruleName = \"dummy rule\";\n\t\t\n\t\tProperties ipuPopulationProperties = null;\n\t\tFile ipuPopulationPropertiesFile = new File(ipuPopulationPropertiesFilePath);\n\t\ttry {\n\t\t\tFileInputStream propertyInputStream = new FileInputStream(ipuPopulationPropertiesFile);\n\t\t\tipuPopulationProperties = new Properties();\n\t\t\tipuPopulationProperties.load(propertyInputStream);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new GenstarException(e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new GenstarException(e);\n\t\t}\n\t\t\n\t\tSampleBasedGenerator groupGenerator = new SampleBasedGenerator(\"group generator\");\n\t\tGenstarCsvFile groupAttributesFile = new GenstarCsvFile(groupAttributesFilePath, true);\n\t\tAttributeUtils.createAttributesFromCsvFile(groupGenerator, groupAttributesFile);\n\t\t\n\t\tDeprecatedGamaGenstarUtils.createIpuGenerationRule(scope, groupGenerator, ruleName, ipuPopulationProperties);\n\t\t\n\t\tIpuGenerationRule generationRule = (IpuGenerationRule) groupGenerator.getGenerationRule();\n\t\t\n\t\t\n\t\tGenstarCsvFile _groupControlledAttributesFile = Deencapsulation.getField(generationRule, \"groupControlledAttributesFile\");\n\t\tassertTrue(_groupControlledAttributesFile.getPath().equals(groupControlledAttributesFile));\n\t\t\n\t\tGenstarCsvFile _groupControlTotalsFile = Deencapsulation.getField(generationRule, \"groupControlTotalsFile\");\n\t\tassertTrue(_groupControlTotalsFile.getPath().equals(groupControlTotalsFile));\n\t\t\n\t\tGenstarCsvFile _groupSupplementaryAttributesFile = Deencapsulation.getField(generationRule, \"groupSupplementaryAttributesFile\");\n\t\tassertTrue(_groupSupplementaryAttributesFile.getPath().equals(groupSupplementaryAttributesFile));\n\t\t\n\t\t\n\t\tGenstarCsvFile _componentControlledAttributesFile = Deencapsulation.getField(generationRule, \"componentControlledAttributesFile\");\n\t\tassertTrue(_componentControlledAttributesFile.getPath().equals(componentControlledAttributesFile));\n\t\t\n\t\tGenstarCsvFile _componentControlTotalsFile = Deencapsulation.getField(generationRule, \"componentControlTotalsFile\");\n\t\tassertTrue(_componentControlTotalsFile.getPath().equals(componentControlTotalsFile));\n\t\t\n\t\tGenstarCsvFile _componentSupplementaryAttributesFile = Deencapsulation.getField(generationRule, \"componentSupplementaryAttributesFile\");\n\t\tassertTrue(_componentSupplementaryAttributesFile.getPath().equals(componentSupplementaryAttributesFile));\n\t}", "@Test\n public void reading()\n throws FileNotFoundException, IOException, CorruptedTableException\n {\n final Database database =\n new Database(new File(\"src/test/resources/\" + versionDirectory + \"/rndtrip\"), version);\n final Set<String> tableNames = database.getTableNames();\n\n assertEquals(2,\n tableNames.size());\n assertTrue(\"TABLE1 not found in 'short roundtrip' database\",\n tableNames.contains(\"TABLE1.DBF\"));\n assertTrue(\"TABLE2 not found in 'short roundtrip' database\",\n tableNames.contains(\"TABLE2.DBF\"));\n\n final Table t1 = database.getTable(\"TABLE1.DBF\");\n\n try\n {\n t1.open(IfNonExistent.ERROR);\n\n assertEquals(\"Table name incorrect\",\n \"TABLE1.DBF\",\n t1.getName());\n assertEquals(\"Last modified date incorrect\",\n Util.createDate(2009, Calendar.APRIL, 1),\n t1.getLastModifiedDate());\n\n final List<Field> fields = t1.getFields();\n\n Iterator<Field> fieldIterator = fields.iterator();\n Map<String, Field> nameFieldMap = new HashMap<String, Field>();\n\n while (fieldIterator.hasNext())\n {\n Field f = fieldIterator.next();\n nameFieldMap.put(f.getName(),\n f);\n }\n\n final Field idField = nameFieldMap.get(\"ID\");\n assertEquals(Type.NUMBER,\n idField.getType());\n assertEquals(idField.getLength(),\n 3);\n\n final Field stringField = nameFieldMap.get(\"STRFIELD\");\n assertEquals(Type.CHARACTER,\n stringField.getType());\n assertEquals(stringField.getLength(),\n 50);\n\n final Field logicField = nameFieldMap.get(\"LOGICFIELD\");\n assertEquals(Type.LOGICAL,\n logicField.getType());\n assertEquals(logicField.getLength(),\n 1);\n\n final Field dateField = nameFieldMap.get(\"DATEFIELD\");\n assertEquals(Type.DATE,\n dateField.getType());\n assertEquals(8,\n dateField.getLength());\n\n final Field floatField = nameFieldMap.get(\"FLOATFIELD\");\n assertEquals(Type.NUMBER,\n floatField.getType());\n assertEquals(10,\n floatField.getLength());\n\n final List<Record> records = UnitTestUtil.createSortedRecordList(t1.recordIterator(),\n \"ID\");\n final Record r0 = records.get(0);\n\n assertEquals(1,\n r0.getNumberValue(\"ID\"));\n assertEquals(\"String data 01\",\n r0.getStringValue(\"STRFIELD\").trim());\n assertEquals(true,\n r0.getBooleanValue(\"LOGICFIELD\"));\n assertEquals(Util.createDate(1909, Calendar.MARCH, 18),\n r0.getDateValue(\"DATEFIELD\"));\n assertEquals(1234.56,\n r0.getNumberValue(\"FLOATFIELD\"));\n\n final Record r1 = records.get(1);\n\n assertEquals(2,\n r1.getNumberValue(\"ID\"));\n assertEquals(\"String data 02\",\n r1.getStringValue(\"STRFIELD\").trim());\n\n /*\n * in Clipper 'false' value can be given as an empty field, and the method called here\n * returns then 'null' as the return value\n */\n if (version == Version.CLIPPER_5)\n {\n assertEquals(null,\n r1.getBooleanValue(\"LOGICFIELD\"));\n }\n else\n {\n assertEquals(false,\n r1.getBooleanValue(\"LOGICFIELD\"));\n }\n\n assertEquals(Util.createDate(1909, Calendar.MARCH, 20),\n r1.getDateValue(\"DATEFIELD\"));\n assertEquals(-23.45,\n r1.getNumberValue(\"FLOATFIELD\"));\n\n final Record r2 = records.get(2);\n\n assertEquals(3,\n r2.getNumberValue(\"ID\"));\n assertEquals(\"\",\n r2.getStringValue(\"STRFIELD\").trim());\n assertEquals(null,\n r2.getBooleanValue(\"LOGICFIELD\"));\n assertEquals(null,\n r2.getDateValue(\"DATEFIELD\"));\n assertEquals(null,\n r2.getNumberValue(\"FLOATFIELD\"));\n\n final Record r3 = records.get(3);\n\n assertEquals(4,\n r3.getNumberValue(\"ID\"));\n assertEquals(\"Full5678901234567890123456789012345678901234567890\",\n r3.getStringValue(\"STRFIELD\").trim());\n\n /*\n * in Clipper 'false' value can be given as an empty field, and the method called here\n * returns then 'null' as the return value\n */\n if (version == Version.CLIPPER_5)\n {\n assertEquals(null,\n r3.getBooleanValue(\"LOGICFIELD\"));\n }\n else\n {\n assertEquals(false,\n r3.getBooleanValue(\"LOGICFIELD\"));\n }\n\n assertEquals(Util.createDate(1909, Calendar.MARCH, 20),\n r3.getDateValue(\"DATEFIELD\"));\n assertEquals(-0.30,\n r3.getNumberValue(\"FLOATFIELD\"));\n }\n finally\n {\n t1.close();\n }\n\n final Table t2 = database.getTable(\"TABLE2.DBF\");\n\n try\n {\n t2.open(IfNonExistent.ERROR);\n\n final List<Field> fields = t2.getFields();\n\n Iterator<Field> fieldIterator = fields.iterator();\n Map<String, Field> nameFieldMap = new HashMap<String, Field>();\n\n while (fieldIterator.hasNext())\n {\n Field f = fieldIterator.next();\n nameFieldMap.put(f.getName(),\n f);\n }\n\n final Field idField = nameFieldMap.get(\"ID2\");\n assertEquals(Type.NUMBER,\n idField.getType());\n assertEquals(idField.getLength(),\n 4);\n\n final Field stringField = nameFieldMap.get(\"MEMOFIELD\");\n assertEquals(Type.MEMO,\n stringField.getType());\n assertEquals(10,\n stringField.getLength());\n\n final Iterator<Record> recordIterator = t2.recordIterator();\n final Record r = recordIterator.next();\n\n String declarationOfIndependence = \"\";\n\n declarationOfIndependence += \"When in the Course of human events it becomes necessary for one people \";\n declarationOfIndependence += \"to dissolve the political bands which have connected them with another and \";\n declarationOfIndependence += \"to assume among the powers of the earth, the separate and equal station to \";\n declarationOfIndependence += \"which the Laws of Nature and of Nature's God entitle them, a decent respect \";\n declarationOfIndependence += \"to the opinions of mankind requires that they should declare the causes which \";\n declarationOfIndependence += \"impel them to the separation.\";\n declarationOfIndependence += \"\\r\\n\\r\\n\";\n declarationOfIndependence += \"We hold these truths to be self-evident, that all men are created equal, \";\n declarationOfIndependence += \"that they are endowed by their Creator with certain unalienable Rights, \";\n declarationOfIndependence += \"that among these are Life, Liberty and the persuit of Happiness.\";\n\n assertEquals(1,\n r.getNumberValue(\"ID2\"));\n assertEquals(declarationOfIndependence,\n r.getStringValue(\"MEMOFIELD\"));\n }\n finally\n {\n t2.close();\n }\n }", "@Test\n\tpublic void testLoadOrdersFromFile() {\n\t\tOrderRecord or = new OrderRecord();\n\t\tor.loadTitlesFromFile(orderRecordTitles);\n\t\tor.loadOrdersFromFile(orderRecordFile);\n\t\tassertEquals(or.getFirst(),3); // the first column that is a product title\n\t\tassertEquals(or.getLast(),24); // the last column that is a product title\n\t\tfor(int i = 3; i <= 24; i++) { // if a column title is within this range, it is a produc title\n\t\t\tif(!or.isProductTitle(i))\n\t\t\t\tfail();\n\t\t}\n\t\tassertEquals(or.getProductTitles().size(), ptCount);\n\t\ttry {\n\t\tassertEquals(or.getShortOrderInfo().length, 800);\n\t\t}catch(IOException ioe ) {\n\t\t\tthrow new IllegalArgumentException(ioe.getMessage());\n\t\t}catch(NullPointerException npe ) {\n\t\t\tthrow new NullPointerException(npe.getMessage());\n\t\t}\n\t\t// order list is empty before update method is called and contains 7 orders after method completes\n\t\tassertEquals(or.getOrderRecordList().size(),6);\n\t\tassertEquals(or.getStudyList().size(),2);\n\t\tassertEquals(or.getSiteList().size(),6);\n\t\t\n\t\tif(!or.getStudyList().get(0).equals(study006155))\n\t\t\tfail();\n\t\tif(!or.getStudyList().get(1).equals(study145986))\n\t\t\tfail();\n\t\t\n\t\tif(!or.getSiteList().get(1).equals(site5007))\n\t\t\tfail();\n\t\tif(!or.getSiteList().get(2).equals(site5008))\n\t\t\tfail();\n\t\tif(!or.getSiteList().get(5).equals(site5018))\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(0).getNumber() != one )\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(2).getNumber() != three )\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(5).getNumber() != six )\n\t\t\tfail();\n\t\t\n\t\t// create new order record with more orders and check study list\n\t\tOrderRecord or2 = new OrderRecord();\n\t\tor2.loadTitlesFromFile(orderRecordTitles);\n\t\tor2.loadOrdersFromFile(moreOrderRecords);\n\t\t\n\t\tif(!or2.getStudyList().get(0).equals(study006155))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(1).equals(study145986))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(2).equals(study006156))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(7).equals(\"006186\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(0).equals(\"5002\") || !or2.getSiteList().get(1).equals(\"5007\") || !or2.getSiteList().get(2).equals(\"5008\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(10).equals(\"2352\") || !or2.getSiteList().get(11).equals(\"2353\") || !or2.getSiteList().get(12).equals(\"2354\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(23).equals(\"2034\") || !or2.getSiteList().get(24).equals(\"SHP\") )\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(92).equals(\"2539\") || !or2.getSiteList().get(93).equals(\"5017\") || !or2.getSiteList().get(94).equals(\"2211\") ||\n\t\t\t\t!or2.getSiteList().get(97).equals(\"2533\") || !or2.getSiteList().get(98).equals(\"2502\") || !or2.getSiteList().get(99).equals(\"5053\")\t)\n\t\t\tfail();\n\t\t\n\t\t\n\t\tif(!or2.getOrderRecordList().get(528).getPo().equals(\"17004101 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(529).getPo().equals(\"17004102 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(530).getPo().equals(\"17004103 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(531).getPo().equals(\"17004539 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(532).getPo().equals(\"18000008 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(533).getPo().equals(\"18000009 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(534).getPo().equals(\"18000027 OD\")) fail();\n\t\t\n\t\tif(!or2.getOrderRecordList().get(442).getCity().equals(\"Tokyo\")) fail();\n\t\tif(!or2.getOrderRecordList().get(462).getCity().equals(\"Oklahoma City\")) fail();\n\t\tif(!or2.getOrderRecordList().get(246).getCity().equals(\"Jerez de La Frontera\")) fail();\n\t\tif(!or2.getOrderRecordList().get(248).getCity().equals(\"Salamanca, Castilla y Leon\")) fail();\n\t\tif(!or2.getOrderRecordList().get(43).getCity().equals(\"Milano\")) fail();\n\t\tif(!or2.getOrderRecordList().get(45).getCity().equals(\"Winston Salem\")) fail();\n\t\tif(!or2.getOrderRecordList().get(73).getCity().equals(\"Landsberg\")) fail();\n\t\tif(!or2.getOrderRecordList().get(530).getCity().equals(\"Tampa\")) fail();\n\t\t\n\t}", "@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"\n +fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"\n +fSeparator+\"Test1\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createFilePath(path);\n assertEquals(\"Some message\",expResult, result);\n }", "@Test\n public void testExample1() {\n assertSolution(\"3\", \"example-day01-2018-1.txt\");\n }", "@Test\n public void testCompareTest6b() {\n helperMethodb(\"CompareTest6a.txt\", \"CompareTest6b.txt\");\n }", "@Test\n public void fileTypeTest() {\n // TODO: test fileType\n }", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "public void testCreateFile() throws Exception {\n File input = new File(\"src/test/resources/reader/filesample.xml\");\n final URL testdata = input.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of files\", 2, creator.filesCreated.size());\n MockContentCreator.FileDescription file = creator.filesCreated.get(0);\n try {\n file.data.available();\n TestCase.fail(\"Did not close inputstream\");\n } catch (IOException ignore) {\n // Expected\n }\n assertEquals(\"mimeType mismatch\", \"application/test\", file.mimeType);\n assertEquals(\"lastModified mismatch\", XmlReader.FileDescription.DATE_FORMAT.parse(\"1977-06-01T07:00:00+0100\"), new Date(file.lastModified));\n assertEquals(\"Could not read file\", \"This is a test file.\", file.content);\n\n }", "public static void main(String[] args) {\n\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"INSERT\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testInsert);\r\n\t\t\tSystem.out.println(\"LOOKUP\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testLookup);\r\n\t\t\tSystem.out.println(\"DELETE BY NAME\");\r\n\t\t\tTestFromFile(\"C:\\\\Users\\\\dhdim\\\\projects\\\\Coursework\\\\src\\\\Coursework\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testDeleteByName);\r\n\t\t\tSystem.out.println(\"DELETE BY NUMBER\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testDeleteByNumber);\r\n\t\t\tSystem.out.println(\"CHANGE NUMBER\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testChangeNumber);\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n ClassWriter classWriter1 = new ClassWriter(2);\n Type type0 = Type.VOID_TYPE;\n Class<Integer> class0 = Integer.class;\n Class<Object> class1 = Object.class;\n Type type1 = Type.getType(class1);\n Type.getType(class0);\n Type type2 = Type.getObjectType(\"The prefix must not be null\");\n Type type3 = Type.INT_TYPE;\n Type[] typeArray0 = new Type[6];\n typeArray0[0] = type2;\n typeArray0[1] = type2;\n typeArray0[2] = type1;\n ClassWriter classWriter2 = new ClassWriter(5);\n Frame frame1 = new Frame();\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n Item item0 = classWriter1.newFieldItem(\"The prefix must not be null\", \"\", \"12x_\");\n frame0.execute(177, 8, classWriter2, item0);\n boolean boolean0 = FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n assertFalse(boolean0);\n }", "@Test\n public void testTaxpayerInfoFromTxt() throws FileNotFoundException {\n\n Database.processTaxpayersDataFromFilesIntoDatabase(databaseInstance.getTaxpayersInfoFilesPath(), txtTestFilenameList);\n\n // Get the taxpayer from the Database\n Taxpayer actualTaxpayerInfoTxt = databaseInstance.getTaxpayerFromArrayList(0);\n\n // Test user info from txt file\n Taxpayer expectedTaxpayerInfoTxt = new Taxpayer(\"Apostolos Zarras\", \"130456093\",\n ApplicationConstants.MARRIED_FILING_JOINTLY, \"22570\");\n\n Receipt expectedTaxpayerReceiptFromTxt =\n new Receipt(ApplicationConstants.BASIC_RECEIPT, \"1\", \"25/2/2014\", \"2000\",\n \"Hand Made Clothes\", \"Greece\", \"Ioannina\", \"Kaloudi\", \"10\");\n\n expectedTaxpayerInfoTxt.setReceipts(new ArrayList<>( Collections.singletonList(expectedTaxpayerReceiptFromTxt)));\n expectedTaxpayerInfoTxt.calculateTaxpayerTaxIncreaseOrDecreaseBasedOnReceipts();\n\n assertEquals(expectedTaxpayerReceiptFromTxt.toString(), actualTaxpayerInfoTxt.getReceipts().get(0).toString());\n assertEquals(expectedTaxpayerInfoTxt.toString(), actualTaxpayerInfoTxt.toString());\n\n }", "@Test\n public void testSolution() {\n assertSolution(\"425\", \"input-day01-2018.txt\");\n }", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "@Test public void testWithSingleHouseDataSet() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n }", "@Test\n public void testCompareTest7a() {\n helperMethoda(\"CompareTest7a.txt\", \"CompareTest7b.txt\");\n }", "@Test\n public void testCompareTest9b() {\n helperMethodb(\"CompareTest9a.txt\", \"CompareTest9b.txt\");\n }", "public void testSaveNewReleaseLevel()\n {\n window.button(\"exitButton\").click();\n window.dialog().requireVisible();\n window.dialog().pressAndReleaseKeys(KeyEvent.VK_ESCAPE);\n window.button(\"exitButton\").requireVisible();\n window.button(\"exitButton\").click();\n window.dialog().requireVisible();\n window.dialog().pressAndReleaseKeys(KeyEvent.VK_ENTER);\n window.button(\"New Level\").requireVisible();\n window.button(\"New Level\").click();\n\n window.comboBox(\"levelTypeSelector\").selectItem(\"Release\");\n\n window.radioButton(\"sixTileButton\").click();\n window.panel(\"square0\").click();\n assertEquals(\"6\", window.label(\"square0numberlabel\").text());\n assertEquals(\" \", window.label(\"square0multiplierlabel\").text());\n\n window.button(\"saveButton\").click();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n Arrays.sort(listOfFiles, new Comparator<File>() {\n public int compare(File f1, File f2) {\n try {\n int i1 = Integer.parseInt(f1.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n int i2 = Integer.parseInt(f2.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n return i1 - i2;\n } catch (NumberFormatException e) {\n throw new AssertionError(e);\n }\n }\n });\n\n assertTrue(listOfFiles[listOfFiles.length - 1].getPath().contains(\"level\" +\n listOfFiles.length +\".txt\"));\n\n String content = null;\n Scanner scanner = null;\n try\n {\n scanner = new Scanner(listOfFiles[listOfFiles.length - 1]);\n content = scanner.useDelimiter(\"\\\\Z\").next();\n scanner.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n String correctContent = \"NewLevel Release 1 1 10 50 0 20 30 20 15 10 5 70 20 \" +\n \"10 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \";\n assertEquals(correctContent, content);\n }", "@Test\r\n\tvoid testExportRecordsShouldExportAFile() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tFile temp;\r\n\t\ttry {\r\n\t\t\ttemp = File.createTempFile(\"temp\", \"tmp\");\r\n\t\t\tFileWriter writer = new FileWriter(temp);\r\n\t\t\twriter.write(\"Costley, Dukie, Male, Green, 1947-07-13\\n\"\r\n\t\t\t\t\t+ \"Bettley | Abbe | Female | Purple | 1930-01-01\\n\"\r\n\t\t\t\t\t+ \"Kindall Rici Female Aquamarine 2004-01-14\\n\");\r\n\t\t\twriter.flush();\r\n\t\t\twriter.close();\r\n\t\t\ttemp.deleteOnExit();\r\n\t\t\tassertTrue(parser.importRecords(temp));\r\n\t\t\tassertEquals(3, parser.getPeople().size());\r\n\t\t\tassertEquals(\"Costley Dukie male Green 7/13/1947 \", parser.getPeople().get(0).getDetails());\r\n\t\t\tFile file = new File(\"test.txt\");\r\n\t\t\tString fileName = parser.exportRecords(\"test.txt\");\r\n\t\t\tassertEquals(\"test.txt\", fileName);\r\n\t\t\tassertTrue(file.delete());\r\n\t\t} catch (FileNotFoundException fnfe) {\r\n\t\t\tfnfe.printStackTrace();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void testCompareTest4b() {\n helperMethodb(\"CompareTest4a.txt\", \"CompareTest4b.txt\");\n }", "@Test\n public void testExample() {\n assertSolution(\"16\", \"example-day06-2018.txt\");\n }", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "private static void createFile() throws Exception {\n\t\t // retrieve an instance of H4File\n\t\t FileFormat fileFormat = FileFormat.getFileFormat(FileFormat.FILE_TYPE_HDF4);\n\n\t\t if (fileFormat == null) {\n\t\t System.err.println(\"Cannot find HDF4 FileFormat.\");\n\t\t return;\n\t\t }\n\n\t\t // create a new file with a given file name.\n\t\t @SuppressWarnings(\"deprecation\")\n\t\t\t\tH4File testFile = (H4File) fileFormat.create(fname);\n\n\t\t if (testFile == null) {\n\t\t System.err.println(\"Failed to create file:\" + fname);\n\t\t return;\n\t\t }\n\n\t\t // open the file and retrieve the root group\n\t\t testFile.open();\n\t\t Group root = (Group) ((javax.swing.tree.DefaultMutableTreeNode) testFile.getRootNode()).getUserObject();\n\n\t\t // set the data values\n\t\t int[] dataIn = new int[20 * 10];\n\t\t for (int i = 0; i < 20; i++) {\n\t\t for (int j = 0; j < 10; j++) {\n\t\t dataIn[i * 10 + j] = 1000 + i * 100 + j;\n\t\t }\n\t\t }\n\n\t\t // create 2D 32-bit (4 bytes) integer dataset of 20 by 10\n\t\t Datatype dtype = testFile.createDatatype(Datatype.CLASS_INTEGER, 4, Datatype.NATIVE, Datatype.NATIVE);\n\t\t @SuppressWarnings(\"unused\")\n\t\t\t\tDataset dataset = testFile\n\t\t .createScalarDS(\"2D 32-bit integer 20x10\", root, dtype, dims2D, null, null, 0, dataIn);\n\n\t\t // close file resource\n\t\t //testFile.close();\n\t\t }", "@Test\n public void testExample2() {\n assertSolution(\"0\", \"example-day01-2018-2.txt\");\n }", "@Test\n public void testMakeFile() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n try {\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n try {\n assertEquals(myTree.getFile(file).getName(), \"file1\");\n } catch (NotFileException e) {\n fail(\"file could not be found\");\n }\n }", "@Test\r\n\tpublic void testSavedFile() throws FileNotFoundException {\r\n\r\n\t\tScanner in = new Scanner(new FileReader(\"FactoryScenarios/MyExample.txt\"));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\twhile (in.hasNext()) {\r\n\t\t\tsb.append(in.next());\r\n\t\t}\r\n\t\tin.close();\r\n\t\tString outString = sb.toString();\r\n\r\n\t\tString expected = \"Cell6Button4/~disp-string:hello/~repeat-button:2/~skip-button:02/~skip:3/~pause:5/~disp-clearAll\";\r\n\r\n\t\tassertEquals(expected, outString);\r\n\r\n\t}", "@Test\n public void testCompareTest8b() {\n helperMethodb(\"CompareTest8a.txt\", \"CompareTest8b.txt\");\n }", "@Test\n public void testPolygonExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.POLYGON, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"POLYGON 0.1 0.2 \\n\", print);\n }", "@Test //same file\n\t\t\tpublic void SameFileDifferentInstances() throws PizzaException, LogHandlerException{\n\t\t\t\tArrayList<Pizza> pizzaArr1;\n\t\t\t\tArrayList<Pizza> pizzaArr2;\n\n\t\t\t\tPath currentRelativePath = Paths.get(\"\");\n\t\t\t\tString s = currentRelativePath.toAbsolutePath().toString();\n\t\t\t\tString path = s + \"\\\\logs\\\\20170101.txt\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tpizzaArr2 = LogHandler.populatePizzaDataset(path);\n\t\t\t\tpizzaArr1 = LogHandler.populatePizzaDataset(path);\n\t\t\t\tassertNotEquals(pizzaArr2.hashCode(), pizzaArr1.hashCode());\n\t\t\t}", "@Test\n public void testCompareTest3a() {\n helperMethoda(\"CompareTest3a.txt\", \"CompareTest3b.txt\");\n }", "@Test\n\tpublic void testSetFileInfo() {\n\n\t}", "@Test\n public void testExample0() {\n assertSolution(\"3\", \"example-day01-2018-0.txt\");\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n byte[] byteArray0 = new byte[8];\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte)121;\n byteArray0[3] = (byte)0;\n byteArray0[4] = (byte)121;\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n SimpleNode simpleNode0 = new SimpleNode((byte)121);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"H{m/_aaA?_\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"UnryExpressio\");\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n simpleNode0.setIdentifier(\"UnryExpressio\");\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"UnryExpressio\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling2 = new FileSystemHandling();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"*l\");\n // Undeclared exception!\n try { \n simpleNode0.dump(\"*l\", stringWriter0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\r\n \tpublic void testFileEvents96_3() {\n \t\t\t\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/CSVTest_96_2.txt\"); // issue 96\r\n \t\tassertNotNull(input);\r\n \t\r\n \t\t// Set the parameters\r\n \t\tParameters params = new Parameters();\r\n \t\tsetDefaults(params);\r\n \t\tparams.fieldDelimiter = \",\";\r\n \t\tparams.textQualifier = \"\\\"\";\r\n \t\tparams.sendColumnsMode = Parameters.SEND_COLUMNS_LISTED;\r\n \t\tparams.sourceColumns = \"1\";\r\n \t\tparams.targetColumns = \"2\";\r\n \t\tparams.targetLanguages = \"\"; //locFRCA.toString();\r\n \t\tparams.targetSourceRefs = \"1\";\r\n \t\tfilter.setParameters(params);\r\n \t\t\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN, locFRCA));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\t\t\t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"src\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"trg\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"data\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source1\", \"\", \"target1\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data1\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source2\", \"\", \"target2\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data2\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\t\t\tfilter.close();\t\t\r\n \t}", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)92;\n byteArray0[2] = (byte) (-45);\n byteArray0[4] = (byte)1;\n byteArray0[5] = (byte)0;\n byteArray0[6] = (byte)10;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"y\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"*gt\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"y\");\n JavaParser javaParser0 = new JavaParser(\"\\\"\");\n SimpleNode simpleNode0 = new SimpleNode(javaParser0, (byte)0);\n // Undeclared exception!\n try { \n simpleNode0.jjtGetChild((byte)10);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test\n public void testRectangleExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.RECTANGLE, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"RECTANGLE 0.1 0.2 \\n\", print);\n }", "@Test\n public void testCompareTest5b() {\n helperMethodb(\"CompareTest5a.txt\", \"CompareTest5b.txt\");\n }", "@Test\n public void testAddFileAddsFile(){\n \n FileStorageService fss = DatabaseServiceTestTool.createFileStorageService();\n \n String user1 = DatabaseServiceTestTool.usernames[0];\n String user2 = DatabaseServiceTestTool.usernames[1];\n \n assertTrue(fss.getFilesFor(user1).size() == 0);\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n try {\n InputStream is = prepareRandomInputStream();\n fss.addFile(user1, \"mypgn.pgn\", is);\n is.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n \n assertTrue(fss.getFilesFor(user1).size() == 1);\n assertEquals(fss.getFilesFor(user1).get(0), \"mypgn.pgn\");\n \n //testing for a side effect now\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n DatabaseServiceTestTool.destroyFileStorageService(fss);\n }", "@Test\n public void CreateFile() throws Exception {\n createFile(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\",\n readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\"));\n File file = new File(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\");\n Assert.assertTrue(file.exists());\n }", "@Test\n public void testLerArquivoTexto(){\n grafo = new Grafo(\"Mapa\");\n try {\n new LeituraArquivo(\"teste.txt\", grafo).lerArquivoTexto();\n System.out.println(grafo.getVertices().size());\n } catch(IOException e){\n System.out.println(\"Não foi possivel ler o arquivo :x\");\n }\n }", "public void testSalesmanWithTwoSales()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base_4.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 4);\n assertEquals(t.getMostExpensiveSaleId(), \"10\");\n assertEquals(t.getWorstSalesman(), \"Renato\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n byte[] byteArray0 = new byte[8];\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte)0;\n byteArray0[4] = (byte)55;\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n SimpleNode simpleNode0 = new SimpleNode(48);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n simpleNode0.setIdentifier(\"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"H{m/_aaA?_\");\n simpleNode0.id = (int) (byte)0;\n simpleNode0.identifiers = null;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"UnryExpressio\");\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n // Undeclared exception!\n try { \n simpleNode0.setIdentifier(\"UnryExpressio\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test\r\n\tpublic void testSampleFile() {\r\n\r\n\t\tRaceList rl = null;\r\n\t\trl = WolfResultsReader.readRaceListFile(\"test-files/sample.md\");\r\n\t\tassertEquals(2, rl.size());\r\n\r\n\t}", "@Test\r\n\tpublic void testPrecisionValidWeight(){\r\n\t\tString expectedResult = \"1\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/precisionValidWeight.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. PrecisionValidWeight.\");\r\n\t}" ]
[ "0.68338674", "0.6514055", "0.64944285", "0.60987353", "0.6027181", "0.6017185", "0.59189016", "0.5880815", "0.5838037", "0.5724345", "0.57201225", "0.5678641", "0.565049", "0.56413835", "0.5636311", "0.56271595", "0.5580934", "0.5574664", "0.55700225", "0.55302006", "0.5516541", "0.5500552", "0.54926014", "0.5452682", "0.5452434", "0.5439028", "0.54335016", "0.5428889", "0.5428653", "0.5424438", "0.54026186", "0.5381324", "0.5381025", "0.53798956", "0.5378525", "0.53783864", "0.53716636", "0.53690696", "0.5368735", "0.5357864", "0.53532547", "0.53495026", "0.5349047", "0.53364474", "0.5332782", "0.53317666", "0.5311539", "0.53074956", "0.53007627", "0.5298112", "0.5293436", "0.5282882", "0.5282051", "0.5271148", "0.5270223", "0.52688855", "0.52664214", "0.52637655", "0.5261247", "0.52600497", "0.52586466", "0.52474916", "0.52436435", "0.5241804", "0.52395624", "0.5238173", "0.5237479", "0.5235068", "0.52349085", "0.5231011", "0.52272403", "0.5224621", "0.52233636", "0.52231085", "0.52223366", "0.52197176", "0.5218512", "0.5216524", "0.5212868", "0.5212757", "0.5203574", "0.51915944", "0.5191147", "0.5188728", "0.51860446", "0.51841897", "0.518371", "0.5181997", "0.5181833", "0.51785284", "0.5178431", "0.5178207", "0.5175223", "0.51726806", "0.5171087", "0.51705825", "0.5168922", "0.51659167", "0.51653516", "0.5163317" ]
0.6527122
1
Test the tuple file builder
@Test public void testTupleFile3() throws Exception { final File tempFile = File.createTempFile("temp",".txt"); tempFile.deleteOnExit(); // The reference tuple final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.GEOJSON); final Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, "1"); final BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile)); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.close(); final TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(), TupleBuilderFactory.Name.GEOJSON); final AtomicInteger seenTuples = new AtomicInteger(0); tupleFile.addTupleListener(t -> { Assert.assertEquals(tuple.getKey(), t.getKey()); Assert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox()); Assert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes()); seenTuples.incrementAndGet(); }); tupleFile.processFile(1); Assert.assertEquals(1, seenTuples.get()); Assert.assertEquals(2, tupleFile.getProcessedLines()); Assert.assertEquals(GEO_JSON_LINE, tupleFile.getLastReadLine()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected=IOException.class)\n\tpublic void testTupleFile1() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\n\t\ttempFile.delete();\n\t\tAssert.assertFalse(tempFile.exists());\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\ttupleFile.processFile();\n\t}", "@Test\n\tpublic void testTupleFile2() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getKey(), t.getKey());\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile();\n\n\t\tAssert.assertEquals(1, seenTuples.get());\n\t}", "@Test\n\tpublic void testTupleFile4() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile(3);\n\n\t\tAssert.assertEquals(3, seenTuples.get());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testADSBTupleBuilder1() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\n\t\tfinal GeoJsonPolygon geoJson1 = GeoJsonPolygon.fromGeoJson(new String(tuple3.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson2 = GeoJsonPolygon.fromGeoJson(new String(tuple6.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson3 = GeoJsonPolygon.fromGeoJson(new String(tuple9.getDataBytes()));\n\t\tfinal GeoJsonPolygon geoJson4 = GeoJsonPolygon.fromGeoJson(new String(tuple12.getDataBytes()));\n\t\t\t\n\t\tAssert.assertEquals(\"AW119KX\", geoJson1.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6600\", geoJson1.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"125.706009\", geoJson1.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"297.992065\", geoJson1.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson2.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37000\", geoJson2.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"487.345886\", geoJson2.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.924118\", geoJson2.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"AW119KX\", geoJson3.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"6500\", geoJson3.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"126.909416\", geoJson3.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"300.808899\", geoJson3.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\n\t\tAssert.assertEquals(\"MSR706\", geoJson4.getProperties().get(\"Callsign\"));\n\t\tAssert.assertEquals(\"37010\", geoJson4.getProperties().get(\"Altitude\"));\n\t\tAssert.assertEquals(\"488.320587\", geoJson4.getProperties().get(\"GroundSpeed\"));\n\t\tAssert.assertEquals(\"102.897881\", geoJson4.getProperties().get(\"Track\"));\n\t\tAssert.assertEquals(2, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t}", "@Test\n\tpublic void testBerlinModPlayerTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD_PLAYER);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD_PLAYER, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.5722d, 52.5722d, 13.2983d, 13.2983d);\n\t\t\n\t\tAssert.assertEquals(1180332136000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testGeoJsonTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(13.3327994, 13.3327994, 52.4688608, 52.4688608);\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "public void testInterpretingBasicExample2()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base_2.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 3);\n assertEquals(t.getMostExpensiveSaleId(), \"08\");\n assertEquals(t.getWorstSalesman(), \"Diego\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "@Test\r\n\tpublic void testFullCapacityLowerToHigerWeight(){\r\n\t\tString expectedResult = \"1,2,4\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/fullCapacityLowerToHigerWeight.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. FullCapacityLowerToHigerWeight file.\");\r\n\t}", "@Test\n public void testConstruction() {\n VecFile = new assignmentPackage.VecFile.VecFile(testFile, colour, fill);\n }", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "public void testInterpretingBasicExample1()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 2);\n assertEquals(t.getMostExpensiveSaleId(), \"10\");\n assertEquals(t.getWorstSalesman(), \"Renato\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void CombinedTest(){\n try\n {\n RiotApiHandler userTest=RiotApiHandler.getInstance();\n String[] array = {\"EUN1_2775220260\", \"EUN1_2774180103\", \"EUN1_2773714308\", \"EUN1_2773662778\", \"EUN1_2772530238\", \"EUN1_2772505023\",\n \"EUN1_2772491193\", \"EUN1_2772005021\", \"EUN1_2771803452\", \"EUN1_2769206534\", \"EUN1_2767311256\", \"EUN1_2767113653\", \"EUN1_2767101111\",\n \"EUN1_2767036478\", \"EUN1_2766884534\", \"EUN1_2766808664\", \"EUN1_2766432042\", \"EUN1_2766071093\", \"EUN1_2766077729\", \"EUN1_2765668508\"\n };\n ArrayList<String> correct = new ArrayList<>(Arrays.asList(array));\n Path testfile = Path.of(\"matchinfo2.txt\");\n String fin = Files.readString(testfile);\n //pUUID test\n Assert.assertEquals(\"pkJUgeuYD1wH6LqRsGmUYATe3F1T3NltD_s2wkDTzgKG8wdF4dABME5lH4yN05LAgCjzdg18BCmp5w\",userTest.getEncryptedPUUID(\"Redlat\",\"eun1\"));\n //matchList test\n Assert.assertEquals(correct,userTest.getMatchlist(\"Redlat\",\"eun1\"));\n //matchDetails test\n Assert.assertEquals(fin,userTest.getMatchDetails(\"EUN1_2772505023\",\"eun1\"));\n } catch (IOException exception)\n {\n exception.printStackTrace();\n }\n }", "@Test\n\tpublic void testADSBTupleBuilder2() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_2D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_3);\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNull(tuple3);\n\t\tAssert.assertNotNull(tuple4);\n\t}", "public void testSaveNewLightningLevel()\n {\n window.comboBox(\"levelTypeSelector\").selectItem(\"Lightning\");\n\n window.radioButton(\"activeTileButton\").click();\n window.panel(\"square0\").click();\n window.button(\"saveButton\").click();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n Arrays.sort(listOfFiles, new Comparator<File>() {\n public int compare(File f1, File f2) {\n try {\n int i1 = Integer.parseInt(f1.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n int i2 = Integer.parseInt(f2.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n return i1 - i2;\n } catch (NumberFormatException e) {\n throw new AssertionError(e);\n }\n }\n });\n\n assertTrue(listOfFiles[listOfFiles.length - 1].getPath().contains(\"level\" +\n listOfFiles.length +\".txt\"));\n\n String content = null;\n Scanner scanner = null;\n try\n {\n scanner = new Scanner(listOfFiles[listOfFiles.length - 1]);\n content = scanner.useDelimiter(\"\\\\Z\").next();\n scanner.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n String correctContent = \"NewLevel Lightning 0 1 10 50 0 20 30 20 15 10 5 70 20 \" +\n \"10 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \";\n assertEquals(correctContent, content);\n }", "@Test\n public void testReadTtbinFile_String()\n {\n System.out.println(\"TEST: readTtbinFile\");\n String fileName = \"src/test/resources/test.ttbin\";\n TomTomReader instance = TomTomReader.getInstance();\n Activity expResult = null;\n Activity result = instance.readTtbinFile(fileName);\n\n testContentsNonSmoothed(result);\n }", "public void testRead_Insert() throws Exception {\n\n\t\tfinal boolean DEBUG = true;\n\n\t\t//DataGenerator dg = new DataGenerator();\n\t\t\n\t\tif (DEBUG) System.out.println(\"Inside testReadFile()...\");\n\n\t\t//ER\n \t\tdg.buildDataFile(maxrecs,inFile1,newFile1);\n \t\tdataarr1=dg.ReadFile(maxrecs,newFile1);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr1.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tER: \" + dataarr1[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//PR\n \t\tdg.buildDataFile(maxrecs,inFile2,newFile2);\n \t\tdataarr2=dg.ReadFile(maxrecs,newFile2);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr2.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tPR: \" + dataarr2[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//HER2status\n \t\tdg.buildDataFile(maxrecs,inFile3,newFile3);\n \t\tdataarr3=dg.ReadFile(maxrecs,newFile3);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr3.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tHER2status: \" + dataarr3[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//HER2testtype\n \t\tdg.buildDataFile(maxrecs,inFile4,newFile4);\n \t\tdataarr4=dg.ReadFile(maxrecs,newFile4);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr4.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tHER2testtype: \" + dataarr4[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//EGFRstatus\n \t\tdg.buildDataFile(maxrecs,inFile5,newFile5);\n \t\tdataarr5=dg.ReadFile(maxrecs,newFile5);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr5.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tEGFRstatus: \" + dataarr5[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tdg.buildBreastCancerBiomarkers(maxrecs,dataarr1,dataarr2,dataarr3,dataarr4,dataarr5);\n\t\t\n\t\tif (DEBUG) System.out.println(\"\\tEnd Of testReadFile...\");\n\t\t\n\t}", "public static void testCreateGridFile() {\n\n System.out.println(\"\\n--------- Creating Grid File ---------\");\n\n //Create a params for the grid file\n GridParameters params =\n new GridParameters(NUMBER_ROWS, NUMBER_COLUMNS, 1.0, 1.0, CELL_SIZE, \n \"Created by com.pb.common.grid.GridFileTest\");\n\n try {\n GridFile gridFile = GridFile.create(TEST_FILE, params); //Create the grid file\n gridFile.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void testBuilderExample() throws IOException {\n doTest();\n }", "public static void testAddDataToGridFile() {\n\n System.out.println(\"\\n--------- Adding Data to Grid File ---------\");\n\n GridFile gridFile = null;\n\n try {\n gridFile = GridFile.open(TEST_FILE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n GridParameters params = gridFile.getParameters();\n\n //Create a row and put some data in it\n int[] rowValues = new int[params.getNumberOfColumns()];\n for (int i = 0; i < rowValues.length; i++) {\n rowValues[i] = i;\n }\n\n try {\n gridFile.putRow(2, rowValues); //store values in row 10\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@Test\n public void testToFileFormat() {\n ToDo t = new ToDo(\"test\");\n assertEquals(t.toFileFormat(), \"Ttest,false\");\n t.setDoneStatus(true);\n assertEquals(t.toFileFormat(), \"Ttest,true\");\n }", "@Test\n\tpublic void convertingWithEqualsSourceAndDatabaseFileTest() throws FileNotFoundException\n\t{\n\t\t/*try\n\t\t {\n\t\t OsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter();\n\t\t converter.convert(IOTester.TEST_FILE_NAME, IOTester.TEST_FILE_NAME, new TestMapObjectsIdentifiersFinder());\n\t\t fail();\n\t\t }\n\t\t catch (IllegalArgumentException ex)\n\t\t {\n\t\t // ok\n\t\t }*/\n\t}", "@Test\n\tpublic void testWriteToFile() {\n\t\tArrayList<ArrayList<String>> risultatoAnalisi = \n\t\t\t\tnew ArrayList<ArrayList<String>>();\n\t\toutput.setAnalysisResult(risultatoAnalisi);\n\t\tString percorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + \"analysis.txt\").exists());\n\t\t/*\n\t\t * Ora passo un path corretto e controllo che venga creato il fiile\n\t\t */\n\t\tpercorso = \"test-dir\";\n\t\toutput.setOutputFileFolder(percorso);\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + File.separator + \"analysis.txt\").exists());\n\t\t/*\n\t\t * Ripeto il test con valori da scrivere\n\t\t */\n\t\tArrayList<String> datiCasuali = new ArrayList<String>();\n\t\tdatiCasuali.add(\"27\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\tdatiCasuali.add(\"12\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\tdatiCasuali.add(\"3245543\");\n\t\trisultatoAnalisi.add(datiCasuali);\n\t\toutput.setAnalysisResult(risultatoAnalisi); \n\t\tpercorso = \"\";\n\t\toutput.setOutputFileFolder(percorso);\t\t\n\t\ttry {\n\t\t\toutput.writeToFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Problem when writing to specified path.\");\n\t\t}\n\t\tassertTrue(new File(percorso + \"analysis.txt\").exists());\n\t}", "public void testRand()\n throws IOException, FileNotFoundException\n {\n compareValues(PATH + \"randtable.txt\", PATH + \"RandPair.txt\", FACTORY);\n }", "@Test public void testCreateCompoundIpfGenerationRule(@Mocked final IScope scope, @Mocked final FileUtils fileUtils) throws GenstarException {\n\t\t\n\t\tfinal String groupAttributesFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/group_attributes.csv\";\n\t\tfinal String groupSampleFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/group_sample.csv\";\n\t\tfinal String controlledAttributesFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/group_controlled_attributes.csv\";\n\t\tfinal String controlTotalsFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/group_control_totals.csv\";\n\t\tfinal String supplementaryAttributesFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/group_supplementary_attributes.csv\";\n\t\t\n\t\tfinal String componentSampleFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/component_sample.csv\";\n\t\tfinal String componentAttributesFilePath = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/component_attributes.csv\";\n\t\t\n\t\t\n\t\tnew Expectations() {{\n\t\t\tFileUtils.constructAbsoluteFilePath(scope, anyString, true);\n\t\t\tresult = new Delegate() {\n\t\t\t\tString delegate(IScope scope, String filePath, boolean mustExist) {\n\t\t\t\t\tif (filePath.endsWith(\"/group_attributes.csv\")) { return groupAttributesFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_sample.csv\")) { return groupSampleFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_controlled_attributes.csv\")) { return controlledAttributesFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_control_totals.csv\")) { return controlTotalsFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_supplementary_attributes.csv\")) { return supplementaryAttributesFilePath; }\n\t\t\t\t\t\n\t\t\t\t\tif (filePath.endsWith(\"/component_sample.csv\")) { return componentSampleFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/component_attributes.csv\")) { return componentAttributesFilePath; }\n\t\t\t\t\t\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t};\n\t\t}};\n\t\t \n\t\t\n\t\tString ruleName = \"dummy rule\";\n\t\t\n\t\tProperties ipfPopulationProperties = null;\n\t\tFile ipfPopulationPropertiesFile = new File(\"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateCompoundIpfGenerationRule/IpfPopulationProperties.properties\");\n\t\ttry {\n\t\t\tFileInputStream propertyInputStream = new FileInputStream(ipfPopulationPropertiesFile);\n\t\t\tipfPopulationProperties = new Properties();\n\t\t\tipfPopulationProperties.load(propertyInputStream);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new GenstarException(e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new GenstarException(e);\n\t\t}\n\t\t\n\t\t\n\t\tSampleBasedGenerator generator = new SampleBasedGenerator(\"dummy generator\");\n\t\t\n\t\tGenstarCsvFile attributesFile = new GenstarCsvFile(groupAttributesFilePath, true);\n\t\tAttributeUtils.createAttributesFromCsvFile(generator, attributesFile);\n\t\t\n\t\tDeprecatedGamaGenstarUtils.createIpfGenerationRule(scope, generator, ruleName, ipfPopulationProperties);\n\t\t\n\t\tassertTrue(generator.getGenerationRule() instanceof IpfGenerationRule);\n\n\t\tIpfGenerationRule generationRule = (IpfGenerationRule) generator.getGenerationRule();\n\t\tassertTrue(generationRule.getSampleData() instanceof CompoundSampleData);\n\t}", "@Test\r\n\tpublic void testTournamentFileConditions() {\r\n\t\tassertTrue(cl.checkTournamentFileConditions(tags[2]));\r\n\t\tassertFalse(cl.checkTournamentFileConditions(tags2[2]));\r\n\t}", "@Test\n\tpublic void testTPCHOrderPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_ORDER_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_ORDER_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date orderDate = dateParser.parse(\"1996-01-02\");\n\n\t\tfinal double doubleOrder = (double) orderDate.getTime();\n\n\t\tfinal Hyperrectangle expectedBox = new Hyperrectangle(doubleOrder, doubleOrder);\n\n\t\tAssert.assertEquals(expectedBox, tuple.getBoundingBox());\n\t}", "@Test public void readFileTest() throws FileNotFoundException\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n pList = pList.readFile(\"PentagonalPyramid_data_1.txt\");\n Assert.assertEquals(\"readFile Test\", \n \"PentagonalPyramid Test List\", pList.getName());\n }", "public void testSaveNewEliminationLevel()\n {\n window.comboBox(\"levelTypeSelector\").selectItem(\"Elimination\");\n\n window.radioButton(\"activeTileButton\").click();\n window.panel(\"square0\").click();\n\n window.button(\"saveButton\").click();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n Arrays.sort(listOfFiles, new Comparator<File>() {\n public int compare(File f1, File f2) {\n try {\n int i1 = Integer.parseInt(f1.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n int i2 = Integer.parseInt(f2.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n return i1 - i2;\n } catch (NumberFormatException e) {\n throw new AssertionError(e);\n }\n }\n });\n\n assertTrue(listOfFiles[listOfFiles.length - 1].getPath().contains(\"level\" +\n listOfFiles.length +\".txt\"));\n\n String content = null;\n Scanner scanner = null;\n try\n {\n scanner = new Scanner(listOfFiles[listOfFiles.length - 1]);\n content = scanner.useDelimiter(\"\\\\Z\").next();\n scanner.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n String correctContent = \"NewLevel Elimination 1 1 10 50 0 20 30 20 15 10 5 \" +\n \"70 20 10 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \";\n assertEquals(correctContent, content);\n }", "public void testParFileReading() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n\n oManager = new GUIManager(null);\n \n //Valid file 1\n oManager.clearCurrentData();\n sFileName = writeFile1();\n oManager.inputXMLParameterFile(sFileName);\n SeedPredationBehaviors oPredBeh = oManager.getSeedPredationBehaviors();\n ArrayList<Behavior> p_oBehs = oPredBeh.getBehaviorByParameterFileTag(\"DensDepRodentSeedPredation\");\n assertEquals(1, p_oBehs.size());\n DensDepRodentSeedPredation oPred = (DensDepRodentSeedPredation) p_oBehs.get(0);\n double SMALL_VAL = 0.00001;\n \n assertEquals(oPred.m_fDensDepDensDepCoeff.getValue(), 0.07, SMALL_VAL);\n assertEquals(oPred.m_fDensDepFuncRespExpA.getValue(), 0.02, SMALL_VAL);\n\n assertEquals( ( (Float) oPred.mp_fDensDepFuncRespSlope.getValue().get(0)).\n floatValue(), 0.9, SMALL_VAL);\n assertEquals( ( (Float) oPred.mp_fDensDepFuncRespSlope.getValue().get(1)).\n floatValue(), 0.05, SMALL_VAL);\n\n //Test grid setup\n assertEquals(1, oPred.getNumberOfGrids());\n Grid oGrid = oManager.getGridByName(\"Rodent Lambda\");\n assertEquals(1, oGrid.getDataMembers().length);\n assertTrue(-1 < oGrid.getFloatCode(\"rodent_lambda\")); \n \n }\n catch (ModelException oErr) {\n fail(\"Seed predation validation failed with message \" + oErr.getMessage());\n }\n catch (java.io.IOException oE) {\n fail(\"Caught IOException. Message: \" + oE.getMessage());\n }\n finally {\n new File(sFileName).delete();\n }\n }", "@Test\n public void testReadFile() {\n System.out.println(\"readFile\");\n String fileName = \"src/main/resources/activities.txt\";\n String line = \"Learning Magic Tricks 40min\";\n\n Activities instance = new Activities(fileName);\n List<Activity> result = null;\n try {\n result = instance.getActivities();\n } catch (IOException ex) {\n }\n List<Activity> expResult = new ArrayList<>();\n expResult.add(new Activity(line, 40));\n// Assert.assertTrue(result.contains(expResult));\n }", "public void testSaveNewPuzzleLevel()\n {\n window.comboBox(\"levelTypeSelector\").selectItem(\"Puzzle\");\n\n window.radioButton(\"activeTileButton\").click();\n window.panel(\"square0\").click();\n window.button(\"saveButton\").click();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n Arrays.sort(listOfFiles, new Comparator<File>() {\n public int compare(File f1, File f2) {\n try {\n int i1 = Integer.parseInt(f1.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n int i2 = Integer.parseInt(f2.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n return i1 - i2;\n } catch (NumberFormatException e) {\n throw new AssertionError(e);\n }\n }\n });\n\n assertTrue(listOfFiles[listOfFiles.length - 1].getPath().contains(\"level\" +\n listOfFiles.length +\".txt\"));\n\n String content = null;\n Scanner scanner = null;\n try\n {\n scanner = new Scanner(listOfFiles[listOfFiles.length - 1]);\n content = scanner.useDelimiter(\"\\\\Z\").next();\n scanner.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n String correctContent = \"NewLevel Puzzle 1 0 10 50 0 20 30 20 15 10 5 70 20 \" +\n \"10 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\" +\n \" 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\" +\n \" 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \";\n assertEquals(correctContent, content);\n }", "@Test\n\tpublic void testNariDynamicTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.NARI_DYNAMIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(NARI_DYNAMIC, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1443650402d, 1443650402d,\n\t\t\t\t-4.4657183d, -4.4657183d, 48.38249d, 48.38249d);\n\t\t\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n void buildWithFilePart() {\n MultipartFileBuilder builder = new MultipartFileBuilderImpl(\n System.getProperty(\"java.io.tmpdir\"));\n final byte[] value = UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8);\n StepVerifier\n .create(builder.build(createFilePart(value, \"file\", MediaType.TEXT_PLAIN, \"test.txt\")))\n .assertNext(multipartFile -> {\n try {\n assertFalse(multipartFile.isEmpty());\n assertEquals(\"file\", multipartFile.getName());\n assertEquals(MediaType.TEXT_PLAIN_VALUE, multipartFile.getContentType());\n assertEquals(\"test.txt\", multipartFile.getOriginalFilename());\n assertEquals(value.length, (int) multipartFile.getSize());\n assertArrayEquals(value, multipartFile.getBytes());\n\n } catch (IOException e) {\n throw ServiceException.internalServerError(\"Fatal error\", e);\n } finally {\n FileAwareMultipartFile.delete(multipartFile);\n }\n })\n .verifyComplete();\n }", "@Test\n public void testCompareTest7b() {\n helperMethodb(\"CompareTest7a.txt\", \"CompareTest7b.txt\");\n }", "@Test\n public void getMatchDetailsTest2(){\n try {\n RiotApiHandler userTest=RiotApiHandler.getInstance();\n Path testfile = Path.of(\"matchinfo.txt\");\n String fin = Files.readString(testfile);\n Assert.assertNotEquals(fin,userTest.getMatchDetails(\"EUN1_2775220260\",\"eun1\"));\n }\n catch (IOException exception){\n exception.printStackTrace();\n }\n }", "@Test\n public void testCompareTest3b() {\n helperMethodb(\"CompareTest3a.txt\", \"CompareTest3b.txt\");\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, false);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \">\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n simpleNode0.setIdentifier(\"<<\");\n simpleNode0.setIdentifier(\"y\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"<<\");\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n simpleNode0.dump(\"}\", stringWriter0);\n assertEquals(\"<CompilationUnit>\\n <identifier>*lshft</identifier>\\n <identifier>y</identifier>\\n</CompilationUnit>\\n\", stringWriter0.toString());\n }", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tvoid test() throws IOException\n\t{\n\t\t\tFile f1=new File(\"testcase1.txt\");\n\t\t\tf1.createNewFile();\n\t\t\tFileWriter fileWriter;\n\t\t\tfileWriter = new FileWriter(f1.getPath());\n\t\t\tString str1=\"I am a test string and number one two three four five six seven eight nine ten eleven twelve.\";\n\t\t\tfileWriter.write(str1);\n\t\t fileWriter.close();\n\n\t\t /**\n\t\t * TO-DO\n\t\t * call formatter to get actual.txt\n\t\t */\n\t\t \n\t\t File f2=new File(\"expected1.txt\");\n\t\t\tf2.createNewFile();\n\t\t\tFileWriter fileWriter2 = new FileWriter(f2.getPath());\n\t\t\tString str2=\"I am a test string and number one two three four five six seven eight nine ten\\neleven twelve.\";\n\t\t\tfileWriter2.write(str2);\n\t\t fileWriter2.close();\n\t\t \t\t \n\t\t\tassertFalse(equalFile(\"testcase1.txt\",\"expected1.txt\"));\t\n\t}", "@Test\n public void testCreateTextFile() {\n System.out.println(\"createTextFile to existing dest Path\");\n String destPath = folder.toString()+fSeparator+\"Texts\"+fSeparator;\n String text = \"qweqweqwewqeqw\";\n String fileName = \"test\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createTextFile(destPath, text, fileName);\n assertEquals(\"Some message\",expResult, result);\n }", "@Test\r\n\tpublic void testAllItems(){\r\n\t\tString expectedResult = \"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/allItems.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. AllItems.\");\r\n\t}", "@Test\r\n\tpublic void testPackerExample(){\r\n\t\tString expectedResult = \"4\\n-\\n2,7\\n8,9\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/exampleFile.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. Example file.\");\r\n\t}", "private Tuples() {}", "public void tester() {\n FileResource fr = new FileResource();\n CSVParser parser = fr.getCSVParser();\n //listExporters(parser, \"coffee\");\n //System.out.println(countryInfo(parser, \"Nauru\"));\n //listExportersTwoProducts(parser, \"cotton\",\"flowers\");\n //System.out.println(numberOfExporters(parser, \"cocoa\"));\n bigExporters(parser, \"$999,999,999,999\");\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_[.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\\\",\");\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getSimilarItems(\"[\", \"\");\n assertEquals(2L, file0.length());\n assertNotNull(file0);\n }", "@Test\n public void testReadTtbinFile_UsbFile()\n {\n System.out.println(\"TEST: readTtbinFile\");\n UsbFile file = new UsbFile(0xFFFFFFFF, ttbinFileData.length, ttbinFileData);\n TomTomReader instance = TomTomReader.getInstance();\n Activity result = instance.readTtbinFile(file);\n \n testContentsNonSmoothed(result);\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(86);\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)92;\n byteArray0[2] = (byte) (-45);\n byteArray0[3] = (byte)104;\n byteArray0[4] = (byte)1;\n byteArray0[5] = (byte) (-61);\n byteArray0[6] = (byte)10;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n simpleNode0.setIdentifier(\"\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"*gt\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n StringWriter stringWriter0 = new StringWriter();\n simpleNode0.dump(\"imort\", stringWriter0);\n assertEquals(\"<ForUpdate>\\n</ForUpdate>\\n\", stringWriter0.toString());\n \n String string0 = simpleNode0.toString();\n assertEquals(\"ForUpdate : \", string0);\n }", "@Test public void testCreateIpuGenerationRule(@Mocked final IScope scope, @Mocked final FileUtils fileUtils) throws GenstarException {\n\t\t\n\t\tfinal String base_path = \"test_data/ummisco/genstar/gama/GamaGenstarUtilsTest/testCreateIpuGenerationRule/\";\n\t\t\n\t\tfinal String groupAttributesFilePath = base_path + \"group_attributes.csv\";\n\t\tfinal String groupPopulationName = \"household\";\n\t\tfinal String groupSampleDataFile = base_path + \"group_sample.csv\";\n\t\tfinal String groupIdOnGroup = \"HouseholdID\";\n\t\tfinal String groupControlledAttributesFile = base_path + \"group_controlled_attributes.csv\";\n\t\tfinal String groupControlTotalsFile = base_path + \"group_ipu_control_totals.csv\";\n\t\tfinal String groupSupplementaryAttributesFile = base_path + \"group_supplementary_attributes.csv\";\n\t\t\n\t\tfinal String componentAttributesFile = base_path + \"component_attributes.csv\";\n\t\tfinal String componentPopulationName = \"household\";\n\t\tfinal String componentSampleDataFile = base_path + \"component_sample.csv\";\n\t\tfinal String componentIdOnGroup = \"HouseholdID\";\n\t\tfinal String componentControlledAttributesFile = base_path + \"component_controlled_attributes.csv\";\n\t\tfinal String componentControlTotalsFile = base_path + \"component_ipu_control_totals.csv\";\n\t\tfinal String componentSupplementaryAttributesFile = base_path + \"component_supplementary_attributes.csv\";\n\n\t\t\n\t\tnew Expectations() {{\n\t\t\tFileUtils.constructAbsoluteFilePath(scope, anyString, true);\n\t\t\tresult = new Delegate() {\n\t\t\t\tString delegate(IScope scope, String filePath, boolean mustExist) {\n\t\t\t\t\t// group population\n\t\t\t\t\tif (filePath.endsWith(\"/group_attributes.csv\")) { return groupAttributesFilePath; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_sample.csv\")) { return groupSampleDataFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_controlled_attributes.csv\")) { return groupControlledAttributesFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_ipu_control_totals.csv\")) { return groupControlTotalsFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/group_supplementary_attributes.csv\")) { return groupSupplementaryAttributesFile; }\n\t\t\t\t\t\n\t\t\t\t\t// component population\n\t\t\t\t\tif (filePath.endsWith(\"/component_attributes.csv\")) { return componentAttributesFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/component_sample.csv\")) { return componentSampleDataFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/component_controlled_attributes.csv\")) { return componentControlledAttributesFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/component_ipu_control_totals.csv\")) { return componentControlTotalsFile; }\n\t\t\t\t\tif (filePath.endsWith(\"/component_supplementary_attributes.csv\")) { return componentSupplementaryAttributesFile; }\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t};\n\t\t}};\n\t\t\n\t\t\n\t\tString ipuPopulationPropertiesFilePath = base_path + \"IpuPopulationProperties.properties\";\n\t\tString ruleName = \"dummy rule\";\n\t\t\n\t\tProperties ipuPopulationProperties = null;\n\t\tFile ipuPopulationPropertiesFile = new File(ipuPopulationPropertiesFilePath);\n\t\ttry {\n\t\t\tFileInputStream propertyInputStream = new FileInputStream(ipuPopulationPropertiesFile);\n\t\t\tipuPopulationProperties = new Properties();\n\t\t\tipuPopulationProperties.load(propertyInputStream);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new GenstarException(e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new GenstarException(e);\n\t\t}\n\t\t\n\t\tSampleBasedGenerator groupGenerator = new SampleBasedGenerator(\"group generator\");\n\t\tGenstarCsvFile groupAttributesFile = new GenstarCsvFile(groupAttributesFilePath, true);\n\t\tAttributeUtils.createAttributesFromCsvFile(groupGenerator, groupAttributesFile);\n\t\t\n\t\tDeprecatedGamaGenstarUtils.createIpuGenerationRule(scope, groupGenerator, ruleName, ipuPopulationProperties);\n\t\t\n\t\tIpuGenerationRule generationRule = (IpuGenerationRule) groupGenerator.getGenerationRule();\n\t\t\n\t\t\n\t\tGenstarCsvFile _groupControlledAttributesFile = Deencapsulation.getField(generationRule, \"groupControlledAttributesFile\");\n\t\tassertTrue(_groupControlledAttributesFile.getPath().equals(groupControlledAttributesFile));\n\t\t\n\t\tGenstarCsvFile _groupControlTotalsFile = Deencapsulation.getField(generationRule, \"groupControlTotalsFile\");\n\t\tassertTrue(_groupControlTotalsFile.getPath().equals(groupControlTotalsFile));\n\t\t\n\t\tGenstarCsvFile _groupSupplementaryAttributesFile = Deencapsulation.getField(generationRule, \"groupSupplementaryAttributesFile\");\n\t\tassertTrue(_groupSupplementaryAttributesFile.getPath().equals(groupSupplementaryAttributesFile));\n\t\t\n\t\t\n\t\tGenstarCsvFile _componentControlledAttributesFile = Deencapsulation.getField(generationRule, \"componentControlledAttributesFile\");\n\t\tassertTrue(_componentControlledAttributesFile.getPath().equals(componentControlledAttributesFile));\n\t\t\n\t\tGenstarCsvFile _componentControlTotalsFile = Deencapsulation.getField(generationRule, \"componentControlTotalsFile\");\n\t\tassertTrue(_componentControlTotalsFile.getPath().equals(componentControlTotalsFile));\n\t\t\n\t\tGenstarCsvFile _componentSupplementaryAttributesFile = Deencapsulation.getField(generationRule, \"componentSupplementaryAttributesFile\");\n\t\tassertTrue(_componentSupplementaryAttributesFile.getPath().equals(componentSupplementaryAttributesFile));\n\t}", "@Test\n public void reading()\n throws FileNotFoundException, IOException, CorruptedTableException\n {\n final Database database =\n new Database(new File(\"src/test/resources/\" + versionDirectory + \"/rndtrip\"), version);\n final Set<String> tableNames = database.getTableNames();\n\n assertEquals(2,\n tableNames.size());\n assertTrue(\"TABLE1 not found in 'short roundtrip' database\",\n tableNames.contains(\"TABLE1.DBF\"));\n assertTrue(\"TABLE2 not found in 'short roundtrip' database\",\n tableNames.contains(\"TABLE2.DBF\"));\n\n final Table t1 = database.getTable(\"TABLE1.DBF\");\n\n try\n {\n t1.open(IfNonExistent.ERROR);\n\n assertEquals(\"Table name incorrect\",\n \"TABLE1.DBF\",\n t1.getName());\n assertEquals(\"Last modified date incorrect\",\n Util.createDate(2009, Calendar.APRIL, 1),\n t1.getLastModifiedDate());\n\n final List<Field> fields = t1.getFields();\n\n Iterator<Field> fieldIterator = fields.iterator();\n Map<String, Field> nameFieldMap = new HashMap<String, Field>();\n\n while (fieldIterator.hasNext())\n {\n Field f = fieldIterator.next();\n nameFieldMap.put(f.getName(),\n f);\n }\n\n final Field idField = nameFieldMap.get(\"ID\");\n assertEquals(Type.NUMBER,\n idField.getType());\n assertEquals(idField.getLength(),\n 3);\n\n final Field stringField = nameFieldMap.get(\"STRFIELD\");\n assertEquals(Type.CHARACTER,\n stringField.getType());\n assertEquals(stringField.getLength(),\n 50);\n\n final Field logicField = nameFieldMap.get(\"LOGICFIELD\");\n assertEquals(Type.LOGICAL,\n logicField.getType());\n assertEquals(logicField.getLength(),\n 1);\n\n final Field dateField = nameFieldMap.get(\"DATEFIELD\");\n assertEquals(Type.DATE,\n dateField.getType());\n assertEquals(8,\n dateField.getLength());\n\n final Field floatField = nameFieldMap.get(\"FLOATFIELD\");\n assertEquals(Type.NUMBER,\n floatField.getType());\n assertEquals(10,\n floatField.getLength());\n\n final List<Record> records = UnitTestUtil.createSortedRecordList(t1.recordIterator(),\n \"ID\");\n final Record r0 = records.get(0);\n\n assertEquals(1,\n r0.getNumberValue(\"ID\"));\n assertEquals(\"String data 01\",\n r0.getStringValue(\"STRFIELD\").trim());\n assertEquals(true,\n r0.getBooleanValue(\"LOGICFIELD\"));\n assertEquals(Util.createDate(1909, Calendar.MARCH, 18),\n r0.getDateValue(\"DATEFIELD\"));\n assertEquals(1234.56,\n r0.getNumberValue(\"FLOATFIELD\"));\n\n final Record r1 = records.get(1);\n\n assertEquals(2,\n r1.getNumberValue(\"ID\"));\n assertEquals(\"String data 02\",\n r1.getStringValue(\"STRFIELD\").trim());\n\n /*\n * in Clipper 'false' value can be given as an empty field, and the method called here\n * returns then 'null' as the return value\n */\n if (version == Version.CLIPPER_5)\n {\n assertEquals(null,\n r1.getBooleanValue(\"LOGICFIELD\"));\n }\n else\n {\n assertEquals(false,\n r1.getBooleanValue(\"LOGICFIELD\"));\n }\n\n assertEquals(Util.createDate(1909, Calendar.MARCH, 20),\n r1.getDateValue(\"DATEFIELD\"));\n assertEquals(-23.45,\n r1.getNumberValue(\"FLOATFIELD\"));\n\n final Record r2 = records.get(2);\n\n assertEquals(3,\n r2.getNumberValue(\"ID\"));\n assertEquals(\"\",\n r2.getStringValue(\"STRFIELD\").trim());\n assertEquals(null,\n r2.getBooleanValue(\"LOGICFIELD\"));\n assertEquals(null,\n r2.getDateValue(\"DATEFIELD\"));\n assertEquals(null,\n r2.getNumberValue(\"FLOATFIELD\"));\n\n final Record r3 = records.get(3);\n\n assertEquals(4,\n r3.getNumberValue(\"ID\"));\n assertEquals(\"Full5678901234567890123456789012345678901234567890\",\n r3.getStringValue(\"STRFIELD\").trim());\n\n /*\n * in Clipper 'false' value can be given as an empty field, and the method called here\n * returns then 'null' as the return value\n */\n if (version == Version.CLIPPER_5)\n {\n assertEquals(null,\n r3.getBooleanValue(\"LOGICFIELD\"));\n }\n else\n {\n assertEquals(false,\n r3.getBooleanValue(\"LOGICFIELD\"));\n }\n\n assertEquals(Util.createDate(1909, Calendar.MARCH, 20),\n r3.getDateValue(\"DATEFIELD\"));\n assertEquals(-0.30,\n r3.getNumberValue(\"FLOATFIELD\"));\n }\n finally\n {\n t1.close();\n }\n\n final Table t2 = database.getTable(\"TABLE2.DBF\");\n\n try\n {\n t2.open(IfNonExistent.ERROR);\n\n final List<Field> fields = t2.getFields();\n\n Iterator<Field> fieldIterator = fields.iterator();\n Map<String, Field> nameFieldMap = new HashMap<String, Field>();\n\n while (fieldIterator.hasNext())\n {\n Field f = fieldIterator.next();\n nameFieldMap.put(f.getName(),\n f);\n }\n\n final Field idField = nameFieldMap.get(\"ID2\");\n assertEquals(Type.NUMBER,\n idField.getType());\n assertEquals(idField.getLength(),\n 4);\n\n final Field stringField = nameFieldMap.get(\"MEMOFIELD\");\n assertEquals(Type.MEMO,\n stringField.getType());\n assertEquals(10,\n stringField.getLength());\n\n final Iterator<Record> recordIterator = t2.recordIterator();\n final Record r = recordIterator.next();\n\n String declarationOfIndependence = \"\";\n\n declarationOfIndependence += \"When in the Course of human events it becomes necessary for one people \";\n declarationOfIndependence += \"to dissolve the political bands which have connected them with another and \";\n declarationOfIndependence += \"to assume among the powers of the earth, the separate and equal station to \";\n declarationOfIndependence += \"which the Laws of Nature and of Nature's God entitle them, a decent respect \";\n declarationOfIndependence += \"to the opinions of mankind requires that they should declare the causes which \";\n declarationOfIndependence += \"impel them to the separation.\";\n declarationOfIndependence += \"\\r\\n\\r\\n\";\n declarationOfIndependence += \"We hold these truths to be self-evident, that all men are created equal, \";\n declarationOfIndependence += \"that they are endowed by their Creator with certain unalienable Rights, \";\n declarationOfIndependence += \"that among these are Life, Liberty and the persuit of Happiness.\";\n\n assertEquals(1,\n r.getNumberValue(\"ID2\"));\n assertEquals(declarationOfIndependence,\n r.getStringValue(\"MEMOFIELD\"));\n }\n finally\n {\n t2.close();\n }\n }", "@Test\n\tpublic void testLoadOrdersFromFile() {\n\t\tOrderRecord or = new OrderRecord();\n\t\tor.loadTitlesFromFile(orderRecordTitles);\n\t\tor.loadOrdersFromFile(orderRecordFile);\n\t\tassertEquals(or.getFirst(),3); // the first column that is a product title\n\t\tassertEquals(or.getLast(),24); // the last column that is a product title\n\t\tfor(int i = 3; i <= 24; i++) { // if a column title is within this range, it is a produc title\n\t\t\tif(!or.isProductTitle(i))\n\t\t\t\tfail();\n\t\t}\n\t\tassertEquals(or.getProductTitles().size(), ptCount);\n\t\ttry {\n\t\tassertEquals(or.getShortOrderInfo().length, 800);\n\t\t}catch(IOException ioe ) {\n\t\t\tthrow new IllegalArgumentException(ioe.getMessage());\n\t\t}catch(NullPointerException npe ) {\n\t\t\tthrow new NullPointerException(npe.getMessage());\n\t\t}\n\t\t// order list is empty before update method is called and contains 7 orders after method completes\n\t\tassertEquals(or.getOrderRecordList().size(),6);\n\t\tassertEquals(or.getStudyList().size(),2);\n\t\tassertEquals(or.getSiteList().size(),6);\n\t\t\n\t\tif(!or.getStudyList().get(0).equals(study006155))\n\t\t\tfail();\n\t\tif(!or.getStudyList().get(1).equals(study145986))\n\t\t\tfail();\n\t\t\n\t\tif(!or.getSiteList().get(1).equals(site5007))\n\t\t\tfail();\n\t\tif(!or.getSiteList().get(2).equals(site5008))\n\t\t\tfail();\n\t\tif(!or.getSiteList().get(5).equals(site5018))\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(0).getNumber() != one )\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(2).getNumber() != three )\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(5).getNumber() != six )\n\t\t\tfail();\n\t\t\n\t\t// create new order record with more orders and check study list\n\t\tOrderRecord or2 = new OrderRecord();\n\t\tor2.loadTitlesFromFile(orderRecordTitles);\n\t\tor2.loadOrdersFromFile(moreOrderRecords);\n\t\t\n\t\tif(!or2.getStudyList().get(0).equals(study006155))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(1).equals(study145986))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(2).equals(study006156))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(7).equals(\"006186\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(0).equals(\"5002\") || !or2.getSiteList().get(1).equals(\"5007\") || !or2.getSiteList().get(2).equals(\"5008\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(10).equals(\"2352\") || !or2.getSiteList().get(11).equals(\"2353\") || !or2.getSiteList().get(12).equals(\"2354\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(23).equals(\"2034\") || !or2.getSiteList().get(24).equals(\"SHP\") )\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(92).equals(\"2539\") || !or2.getSiteList().get(93).equals(\"5017\") || !or2.getSiteList().get(94).equals(\"2211\") ||\n\t\t\t\t!or2.getSiteList().get(97).equals(\"2533\") || !or2.getSiteList().get(98).equals(\"2502\") || !or2.getSiteList().get(99).equals(\"5053\")\t)\n\t\t\tfail();\n\t\t\n\t\t\n\t\tif(!or2.getOrderRecordList().get(528).getPo().equals(\"17004101 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(529).getPo().equals(\"17004102 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(530).getPo().equals(\"17004103 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(531).getPo().equals(\"17004539 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(532).getPo().equals(\"18000008 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(533).getPo().equals(\"18000009 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(534).getPo().equals(\"18000027 OD\")) fail();\n\t\t\n\t\tif(!or2.getOrderRecordList().get(442).getCity().equals(\"Tokyo\")) fail();\n\t\tif(!or2.getOrderRecordList().get(462).getCity().equals(\"Oklahoma City\")) fail();\n\t\tif(!or2.getOrderRecordList().get(246).getCity().equals(\"Jerez de La Frontera\")) fail();\n\t\tif(!or2.getOrderRecordList().get(248).getCity().equals(\"Salamanca, Castilla y Leon\")) fail();\n\t\tif(!or2.getOrderRecordList().get(43).getCity().equals(\"Milano\")) fail();\n\t\tif(!or2.getOrderRecordList().get(45).getCity().equals(\"Winston Salem\")) fail();\n\t\tif(!or2.getOrderRecordList().get(73).getCity().equals(\"Landsberg\")) fail();\n\t\tif(!or2.getOrderRecordList().get(530).getCity().equals(\"Tampa\")) fail();\n\t\t\n\t}", "@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"\n +fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"\n +fSeparator+\"Test1\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createFilePath(path);\n assertEquals(\"Some message\",expResult, result);\n }", "@Test\n public void testExample1() {\n assertSolution(\"3\", \"example-day01-2018-1.txt\");\n }", "@Test\n public void testCompareTest6b() {\n helperMethodb(\"CompareTest6a.txt\", \"CompareTest6b.txt\");\n }", "@Test\n public void fileTypeTest() {\n // TODO: test fileType\n }", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "public void testCreateFile() throws Exception {\n File input = new File(\"src/test/resources/reader/filesample.xml\");\n final URL testdata = input.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of files\", 2, creator.filesCreated.size());\n MockContentCreator.FileDescription file = creator.filesCreated.get(0);\n try {\n file.data.available();\n TestCase.fail(\"Did not close inputstream\");\n } catch (IOException ignore) {\n // Expected\n }\n assertEquals(\"mimeType mismatch\", \"application/test\", file.mimeType);\n assertEquals(\"lastModified mismatch\", XmlReader.FileDescription.DATE_FORMAT.parse(\"1977-06-01T07:00:00+0100\"), new Date(file.lastModified));\n assertEquals(\"Could not read file\", \"This is a test file.\", file.content);\n\n }", "public static void main(String[] args) {\n\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"INSERT\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testInsert);\r\n\t\t\tSystem.out.println(\"LOOKUP\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testLookup);\r\n\t\t\tSystem.out.println(\"DELETE BY NAME\");\r\n\t\t\tTestFromFile(\"C:\\\\Users\\\\dhdim\\\\projects\\\\Coursework\\\\src\\\\Coursework\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testDeleteByName);\r\n\t\t\tSystem.out.println(\"DELETE BY NUMBER\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testDeleteByNumber);\r\n\t\t\tSystem.out.println(\"CHANGE NUMBER\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testChangeNumber);\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n ClassWriter classWriter1 = new ClassWriter(2);\n Type type0 = Type.VOID_TYPE;\n Class<Integer> class0 = Integer.class;\n Class<Object> class1 = Object.class;\n Type type1 = Type.getType(class1);\n Type.getType(class0);\n Type type2 = Type.getObjectType(\"The prefix must not be null\");\n Type type3 = Type.INT_TYPE;\n Type[] typeArray0 = new Type[6];\n typeArray0[0] = type2;\n typeArray0[1] = type2;\n typeArray0[2] = type1;\n ClassWriter classWriter2 = new ClassWriter(5);\n Frame frame1 = new Frame();\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n Item item0 = classWriter1.newFieldItem(\"The prefix must not be null\", \"\", \"12x_\");\n frame0.execute(177, 8, classWriter2, item0);\n boolean boolean0 = FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n assertFalse(boolean0);\n }", "@Test\n public void testTaxpayerInfoFromTxt() throws FileNotFoundException {\n\n Database.processTaxpayersDataFromFilesIntoDatabase(databaseInstance.getTaxpayersInfoFilesPath(), txtTestFilenameList);\n\n // Get the taxpayer from the Database\n Taxpayer actualTaxpayerInfoTxt = databaseInstance.getTaxpayerFromArrayList(0);\n\n // Test user info from txt file\n Taxpayer expectedTaxpayerInfoTxt = new Taxpayer(\"Apostolos Zarras\", \"130456093\",\n ApplicationConstants.MARRIED_FILING_JOINTLY, \"22570\");\n\n Receipt expectedTaxpayerReceiptFromTxt =\n new Receipt(ApplicationConstants.BASIC_RECEIPT, \"1\", \"25/2/2014\", \"2000\",\n \"Hand Made Clothes\", \"Greece\", \"Ioannina\", \"Kaloudi\", \"10\");\n\n expectedTaxpayerInfoTxt.setReceipts(new ArrayList<>( Collections.singletonList(expectedTaxpayerReceiptFromTxt)));\n expectedTaxpayerInfoTxt.calculateTaxpayerTaxIncreaseOrDecreaseBasedOnReceipts();\n\n assertEquals(expectedTaxpayerReceiptFromTxt.toString(), actualTaxpayerInfoTxt.getReceipts().get(0).toString());\n assertEquals(expectedTaxpayerInfoTxt.toString(), actualTaxpayerInfoTxt.toString());\n\n }", "@Test\n public void testSolution() {\n assertSolution(\"425\", \"input-day01-2018.txt\");\n }", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "@Test public void testWithSingleHouseDataSet() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n }", "@Test\n public void testCompareTest7a() {\n helperMethoda(\"CompareTest7a.txt\", \"CompareTest7b.txt\");\n }", "@Test\n public void testCompareTest9b() {\n helperMethodb(\"CompareTest9a.txt\", \"CompareTest9b.txt\");\n }", "public void testSaveNewReleaseLevel()\n {\n window.button(\"exitButton\").click();\n window.dialog().requireVisible();\n window.dialog().pressAndReleaseKeys(KeyEvent.VK_ESCAPE);\n window.button(\"exitButton\").requireVisible();\n window.button(\"exitButton\").click();\n window.dialog().requireVisible();\n window.dialog().pressAndReleaseKeys(KeyEvent.VK_ENTER);\n window.button(\"New Level\").requireVisible();\n window.button(\"New Level\").click();\n\n window.comboBox(\"levelTypeSelector\").selectItem(\"Release\");\n\n window.radioButton(\"sixTileButton\").click();\n window.panel(\"square0\").click();\n assertEquals(\"6\", window.label(\"square0numberlabel\").text());\n assertEquals(\" \", window.label(\"square0multiplierlabel\").text());\n\n window.button(\"saveButton\").click();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n Arrays.sort(listOfFiles, new Comparator<File>() {\n public int compare(File f1, File f2) {\n try {\n int i1 = Integer.parseInt(f1.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n int i2 = Integer.parseInt(f2.getName().replace(\"level\", \"\").replace(\".txt\", \"\"));\n return i1 - i2;\n } catch (NumberFormatException e) {\n throw new AssertionError(e);\n }\n }\n });\n\n assertTrue(listOfFiles[listOfFiles.length - 1].getPath().contains(\"level\" +\n listOfFiles.length +\".txt\"));\n\n String content = null;\n Scanner scanner = null;\n try\n {\n scanner = new Scanner(listOfFiles[listOfFiles.length - 1]);\n content = scanner.useDelimiter(\"\\\\Z\").next();\n scanner.close();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n }\n String correctContent = \"NewLevel Release 1 1 10 50 0 20 30 20 15 10 5 70 20 \" +\n \"10 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \" +\n \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \";\n assertEquals(correctContent, content);\n }", "@Test\r\n\tvoid testExportRecordsShouldExportAFile() {\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\tFile temp;\r\n\t\ttry {\r\n\t\t\ttemp = File.createTempFile(\"temp\", \"tmp\");\r\n\t\t\tFileWriter writer = new FileWriter(temp);\r\n\t\t\twriter.write(\"Costley, Dukie, Male, Green, 1947-07-13\\n\"\r\n\t\t\t\t\t+ \"Bettley | Abbe | Female | Purple | 1930-01-01\\n\"\r\n\t\t\t\t\t+ \"Kindall Rici Female Aquamarine 2004-01-14\\n\");\r\n\t\t\twriter.flush();\r\n\t\t\twriter.close();\r\n\t\t\ttemp.deleteOnExit();\r\n\t\t\tassertTrue(parser.importRecords(temp));\r\n\t\t\tassertEquals(3, parser.getPeople().size());\r\n\t\t\tassertEquals(\"Costley Dukie male Green 7/13/1947 \", parser.getPeople().get(0).getDetails());\r\n\t\t\tFile file = new File(\"test.txt\");\r\n\t\t\tString fileName = parser.exportRecords(\"test.txt\");\r\n\t\t\tassertEquals(\"test.txt\", fileName);\r\n\t\t\tassertTrue(file.delete());\r\n\t\t} catch (FileNotFoundException fnfe) {\r\n\t\t\tfnfe.printStackTrace();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void testCompareTest4b() {\n helperMethodb(\"CompareTest4a.txt\", \"CompareTest4b.txt\");\n }", "@Test\n public void testExample() {\n assertSolution(\"16\", \"example-day06-2018.txt\");\n }", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "private static void createFile() throws Exception {\n\t\t // retrieve an instance of H4File\n\t\t FileFormat fileFormat = FileFormat.getFileFormat(FileFormat.FILE_TYPE_HDF4);\n\n\t\t if (fileFormat == null) {\n\t\t System.err.println(\"Cannot find HDF4 FileFormat.\");\n\t\t return;\n\t\t }\n\n\t\t // create a new file with a given file name.\n\t\t @SuppressWarnings(\"deprecation\")\n\t\t\t\tH4File testFile = (H4File) fileFormat.create(fname);\n\n\t\t if (testFile == null) {\n\t\t System.err.println(\"Failed to create file:\" + fname);\n\t\t return;\n\t\t }\n\n\t\t // open the file and retrieve the root group\n\t\t testFile.open();\n\t\t Group root = (Group) ((javax.swing.tree.DefaultMutableTreeNode) testFile.getRootNode()).getUserObject();\n\n\t\t // set the data values\n\t\t int[] dataIn = new int[20 * 10];\n\t\t for (int i = 0; i < 20; i++) {\n\t\t for (int j = 0; j < 10; j++) {\n\t\t dataIn[i * 10 + j] = 1000 + i * 100 + j;\n\t\t }\n\t\t }\n\n\t\t // create 2D 32-bit (4 bytes) integer dataset of 20 by 10\n\t\t Datatype dtype = testFile.createDatatype(Datatype.CLASS_INTEGER, 4, Datatype.NATIVE, Datatype.NATIVE);\n\t\t @SuppressWarnings(\"unused\")\n\t\t\t\tDataset dataset = testFile\n\t\t .createScalarDS(\"2D 32-bit integer 20x10\", root, dtype, dims2D, null, null, 0, dataIn);\n\n\t\t // close file resource\n\t\t //testFile.close();\n\t\t }", "@Test\n public void testExample2() {\n assertSolution(\"0\", \"example-day01-2018-2.txt\");\n }", "@Test\n public void testMakeFile() {\n FileTree myTree = new FileTree();\n String file = \"file1\";\n try {\n myTree.makeFile(file);\n } catch (NotDirectoryException | AlreadyExistException e) {\n fail(\"directory1 already exists or the path is invalid.\");\n }\n try {\n assertEquals(myTree.getFile(file).getName(), \"file1\");\n } catch (NotFileException e) {\n fail(\"file could not be found\");\n }\n }", "@Test\r\n\tpublic void testSavedFile() throws FileNotFoundException {\r\n\r\n\t\tScanner in = new Scanner(new FileReader(\"FactoryScenarios/MyExample.txt\"));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\twhile (in.hasNext()) {\r\n\t\t\tsb.append(in.next());\r\n\t\t}\r\n\t\tin.close();\r\n\t\tString outString = sb.toString();\r\n\r\n\t\tString expected = \"Cell6Button4/~disp-string:hello/~repeat-button:2/~skip-button:02/~skip:3/~pause:5/~disp-clearAll\";\r\n\r\n\t\tassertEquals(expected, outString);\r\n\r\n\t}", "@Test\n public void testCompareTest8b() {\n helperMethodb(\"CompareTest8a.txt\", \"CompareTest8b.txt\");\n }", "@Test\n public void testPolygonExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.POLYGON, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"POLYGON 0.1 0.2 \\n\", print);\n }", "@Test //same file\n\t\t\tpublic void SameFileDifferentInstances() throws PizzaException, LogHandlerException{\n\t\t\t\tArrayList<Pizza> pizzaArr1;\n\t\t\t\tArrayList<Pizza> pizzaArr2;\n\n\t\t\t\tPath currentRelativePath = Paths.get(\"\");\n\t\t\t\tString s = currentRelativePath.toAbsolutePath().toString();\n\t\t\t\tString path = s + \"\\\\logs\\\\20170101.txt\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tpizzaArr2 = LogHandler.populatePizzaDataset(path);\n\t\t\t\tpizzaArr1 = LogHandler.populatePizzaDataset(path);\n\t\t\t\tassertNotEquals(pizzaArr2.hashCode(), pizzaArr1.hashCode());\n\t\t\t}", "@Test\n public void testCompareTest3a() {\n helperMethoda(\"CompareTest3a.txt\", \"CompareTest3b.txt\");\n }", "@Test\n\tpublic void testSetFileInfo() {\n\n\t}", "@Test\n public void testExample0() {\n assertSolution(\"3\", \"example-day01-2018-0.txt\");\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n byte[] byteArray0 = new byte[8];\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte)121;\n byteArray0[3] = (byte)0;\n byteArray0[4] = (byte)121;\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n SimpleNode simpleNode0 = new SimpleNode((byte)121);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"H{m/_aaA?_\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"UnryExpressio\");\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n simpleNode0.setIdentifier(\"UnryExpressio\");\n StringWriter stringWriter0 = new StringWriter();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"UnryExpressio\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling2 = new FileSystemHandling();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"*l\");\n // Undeclared exception!\n try { \n simpleNode0.dump(\"*l\", stringWriter0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\r\n \tpublic void testFileEvents96_3() {\n \t\t\t\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/CSVTest_96_2.txt\"); // issue 96\r\n \t\tassertNotNull(input);\r\n \t\r\n \t\t// Set the parameters\r\n \t\tParameters params = new Parameters();\r\n \t\tsetDefaults(params);\r\n \t\tparams.fieldDelimiter = \",\";\r\n \t\tparams.textQualifier = \"\\\"\";\r\n \t\tparams.sendColumnsMode = Parameters.SEND_COLUMNS_LISTED;\r\n \t\tparams.sourceColumns = \"1\";\r\n \t\tparams.targetColumns = \"2\";\r\n \t\tparams.targetLanguages = \"\"; //locFRCA.toString();\r\n \t\tparams.targetSourceRefs = \"1\";\r\n \t\tfilter.setParameters(params);\r\n \t\t\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN, locFRCA));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\t\t\t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"src\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"trg\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"data\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source1\", \"\", \"target1\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data1\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source2\", \"\", \"target2\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data2\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\t\t\tfilter.close();\t\t\r\n \t}", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)92;\n byteArray0[2] = (byte) (-45);\n byteArray0[4] = (byte)1;\n byteArray0[5] = (byte)0;\n byteArray0[6] = (byte)10;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!HTs6aEnCQFlcEbI\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"y\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"*gt\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"y\");\n JavaParser javaParser0 = new JavaParser(\"\\\"\");\n SimpleNode simpleNode0 = new SimpleNode(javaParser0, (byte)0);\n // Undeclared exception!\n try { \n simpleNode0.jjtGetChild((byte)10);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test\n public void testRectangleExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.RECTANGLE, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"RECTANGLE 0.1 0.2 \\n\", print);\n }", "@Test\n public void testCompareTest5b() {\n helperMethodb(\"CompareTest5a.txt\", \"CompareTest5b.txt\");\n }", "@Test\n public void testAddFileAddsFile(){\n \n FileStorageService fss = DatabaseServiceTestTool.createFileStorageService();\n \n String user1 = DatabaseServiceTestTool.usernames[0];\n String user2 = DatabaseServiceTestTool.usernames[1];\n \n assertTrue(fss.getFilesFor(user1).size() == 0);\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n try {\n InputStream is = prepareRandomInputStream();\n fss.addFile(user1, \"mypgn.pgn\", is);\n is.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n \n assertTrue(fss.getFilesFor(user1).size() == 1);\n assertEquals(fss.getFilesFor(user1).get(0), \"mypgn.pgn\");\n \n //testing for a side effect now\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n DatabaseServiceTestTool.destroyFileStorageService(fss);\n }", "@Test\n public void CreateFile() throws Exception {\n createFile(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\",\n readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\"));\n File file = new File(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\");\n Assert.assertTrue(file.exists());\n }", "@Test\n public void testLerArquivoTexto(){\n grafo = new Grafo(\"Mapa\");\n try {\n new LeituraArquivo(\"teste.txt\", grafo).lerArquivoTexto();\n System.out.println(grafo.getVertices().size());\n } catch(IOException e){\n System.out.println(\"Não foi possivel ler o arquivo :x\");\n }\n }", "public void testSalesmanWithTwoSales()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base_4.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 4);\n assertEquals(t.getMostExpensiveSaleId(), \"10\");\n assertEquals(t.getWorstSalesman(), \"Renato\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n byte[] byteArray0 = new byte[8];\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte)0;\n byteArray0[4] = (byte)55;\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, (String) null);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"\\\"\");\n SimpleNode simpleNode0 = new SimpleNode(48);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n simpleNode0.setIdentifier(\"\\\"\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"H{m/_aaA?_\");\n simpleNode0.id = (int) (byte)0;\n simpleNode0.identifiers = null;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"UnryExpressio\");\n FileSystemHandling fileSystemHandling1 = new FileSystemHandling();\n // Undeclared exception!\n try { \n simpleNode0.setIdentifier(\"UnryExpressio\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test\r\n\tpublic void testSampleFile() {\r\n\r\n\t\tRaceList rl = null;\r\n\t\trl = WolfResultsReader.readRaceListFile(\"test-files/sample.md\");\r\n\t\tassertEquals(2, rl.size());\r\n\r\n\t}", "@Test\r\n\tpublic void testPrecisionValidWeight(){\r\n\t\tString expectedResult = \"1\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/precisionValidWeight.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. PrecisionValidWeight.\");\r\n\t}" ]
[ "0.68338674", "0.6527122", "0.6514055", "0.60987353", "0.6027181", "0.6017185", "0.59189016", "0.5880815", "0.5838037", "0.5724345", "0.57201225", "0.5678641", "0.565049", "0.56413835", "0.5636311", "0.56271595", "0.5580934", "0.5574664", "0.55700225", "0.55302006", "0.5516541", "0.5500552", "0.54926014", "0.5452682", "0.5452434", "0.5439028", "0.54335016", "0.5428889", "0.5428653", "0.5424438", "0.54026186", "0.5381324", "0.5381025", "0.53798956", "0.5378525", "0.53783864", "0.53716636", "0.53690696", "0.5368735", "0.5357864", "0.53532547", "0.53495026", "0.5349047", "0.53364474", "0.5332782", "0.53317666", "0.5311539", "0.53074956", "0.53007627", "0.5298112", "0.5293436", "0.5282882", "0.5282051", "0.5271148", "0.5270223", "0.52688855", "0.52664214", "0.52637655", "0.5261247", "0.52600497", "0.52586466", "0.52474916", "0.52436435", "0.5241804", "0.52395624", "0.5238173", "0.5237479", "0.5235068", "0.52349085", "0.5231011", "0.52272403", "0.5224621", "0.52233636", "0.52231085", "0.52223366", "0.52197176", "0.5218512", "0.5216524", "0.5212868", "0.5212757", "0.5203574", "0.51915944", "0.5191147", "0.5188728", "0.51860446", "0.51841897", "0.518371", "0.5181997", "0.5181833", "0.51785284", "0.5178431", "0.5178207", "0.5175223", "0.51726806", "0.5171087", "0.51705825", "0.5168922", "0.51659167", "0.51653516", "0.5163317" ]
0.64944285
3
Test the tuple file builder Read 5 of 3 lines
@Test public void testTupleFile4() throws Exception { final File tempFile = File.createTempFile("temp",".txt"); tempFile.deleteOnExit(); // The reference tuple final TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat( TupleBuilderFactory.Name.GEOJSON); final Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, "1"); final BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile)); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.write(GEO_JSON_LINE); writer.write("\n"); writer.close(); final TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(), TupleBuilderFactory.Name.GEOJSON); final AtomicInteger seenTuples = new AtomicInteger(0); tupleFile.addTupleListener(t -> { Assert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox()); Assert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes()); seenTuples.incrementAndGet(); }); tupleFile.processFile(3); Assert.assertEquals(3, seenTuples.get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTupleFile3() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getKey(), t.getKey());\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile(1);\n\n\t\tAssert.assertEquals(1, seenTuples.get());\n\t\tAssert.assertEquals(2, tupleFile.getProcessedLines());\n\t\tAssert.assertEquals(GEO_JSON_LINE, tupleFile.getLastReadLine());\n\t}", "@Test(expected=IOException.class)\n\tpublic void testTupleFile1() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\n\t\ttempFile.delete();\n\t\tAssert.assertFalse(tempFile.exists());\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\ttupleFile.processFile();\n\t}", "@Test\n\tpublic void testTupleFile2() throws Exception {\n\t\tfinal File tempFile = File.createTempFile(\"temp\",\".txt\");\n\t\ttempFile.deleteOnExit();\n\n\t\t// The reference tuple\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(GEO_JSON_LINE, \"1\");\n\n\t\tfinal BufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\n\t\twriter.write(GEO_JSON_LINE);\n\t\twriter.write(\"\\n\");\n\t\twriter.close();\n\n\t\tfinal TupleFileReader tupleFile = new TupleFileReader(tempFile.getAbsolutePath(),\n\t\t\t\tTupleBuilderFactory.Name.GEOJSON);\n\n\t\tfinal AtomicInteger seenTuples = new AtomicInteger(0);\n\n\t\ttupleFile.addTupleListener(t -> {\n\t\t\tAssert.assertEquals(tuple.getKey(), t.getKey());\n\t\t\tAssert.assertEquals(tuple.getBoundingBox(), t.getBoundingBox());\n\t\t\tAssert.assertArrayEquals(tuple.getDataBytes(), t.getDataBytes());\n\t\t\tseenTuples.incrementAndGet();\n\t\t});\n\n\t\ttupleFile.processFile();\n\n\t\tAssert.assertEquals(1, seenTuples.get());\n\t}", "public void testInterpretingBasicExample2()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base_2.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 3);\n assertEquals(t.getMostExpensiveSaleId(), \"08\");\n assertEquals(t.getWorstSalesman(), \"Diego\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "@Override\r\n\tpublic Tuple nextTuple() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tTuple tuple = null;\r\n\t\ttry{\r\n\t\t\tString s = br.readLine();\r\n\t\t\tif(s==null) return null;\r\n\t\t\ttuple = new Tuple(s);\r\n\t\t}catch(IOException e){\r\n\t\t\tSystem.out.print(\"No more tuples!\");\r\n\t\t}\r\n\t\treturn tuple;\r\n\t}", "public void testInterpretingBasicExample1()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 2);\n assertEquals(t.getMostExpensiveSaleId(), \"10\");\n assertEquals(t.getWorstSalesman(), \"Renato\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "public void testRead_Insert() throws Exception {\n\n\t\tfinal boolean DEBUG = true;\n\n\t\t//DataGenerator dg = new DataGenerator();\n\t\t\n\t\tif (DEBUG) System.out.println(\"Inside testReadFile()...\");\n\n\t\t//ER\n \t\tdg.buildDataFile(maxrecs,inFile1,newFile1);\n \t\tdataarr1=dg.ReadFile(maxrecs,newFile1);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr1.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tER: \" + dataarr1[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//PR\n \t\tdg.buildDataFile(maxrecs,inFile2,newFile2);\n \t\tdataarr2=dg.ReadFile(maxrecs,newFile2);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr2.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tPR: \" + dataarr2[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//HER2status\n \t\tdg.buildDataFile(maxrecs,inFile3,newFile3);\n \t\tdataarr3=dg.ReadFile(maxrecs,newFile3);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr3.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tHER2status: \" + dataarr3[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//HER2testtype\n \t\tdg.buildDataFile(maxrecs,inFile4,newFile4);\n \t\tdataarr4=dg.ReadFile(maxrecs,newFile4);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr4.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tHER2testtype: \" + dataarr4[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//EGFRstatus\n \t\tdg.buildDataFile(maxrecs,inFile5,newFile5);\n \t\tdataarr5=dg.ReadFile(maxrecs,newFile5);\n\t\t\n\t\tif (DEBUG){\n\t\t\tfor (int row=0; row<dataarr5.length; row++) {\n\t\t\t\tSystem.out.println(\"\\t\\t\\tEGFRstatus: \" + dataarr5[row]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tdg.buildBreastCancerBiomarkers(maxrecs,dataarr1,dataarr2,dataarr3,dataarr4,dataarr5);\n\t\t\n\t\tif (DEBUG) System.out.println(\"\\tEnd Of testReadFile...\");\n\t\t\n\t}", "public static void testReadGridFile() throws IOException {\n\n System.out.println(\"\\n--------- Reading Grid File ---------\");\n\n GridFile gridFile = GridFile.open(TEST_FILE);\n\n GridParameters params = gridFile.getParameters();\n\n System.out.println(\"Number of Rows: \" + params.getNumberOfRows());\n System.out.println(\"Number of Columns: \" + params.getNumberOfColumns());\n System.out.println(\"Lower Left X Corner: \" + params.getXllCorner());\n System.out.println(\"Lower Left Y Corner: \" + params.getYllCorner());\n System.out.println(\"No Data Value: \" + params.getNoDataValue());\n System.out.println(\"Word Size: \" + params.getWordSizeInBytes() + \" bytes\");\n System.out.println(\"Description: \" + params.getDescription());\n\n //Create an array to hold row data\n int[] rowValues = new int[params.getNumberOfColumns()];\n\n //Read values in row 1 and print the first 10\n gridFile.getRow(1, rowValues);\n\n for (int i = 0; i < 10; i++) {\n System.out.println(\"row[\" + i + \"] = \" + rowValues[i]);\n }\n\n //Read values in row 2 and print the first 10\n gridFile.getRow(2, rowValues);\n\n for (int i = 0; i < 10; i++) {\n System.out.println(\"row[\" + i + \"] = \" + rowValues[i]);\n }\n\n gridFile.close();\n }", "@Test public void readFileTest() throws FileNotFoundException\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n pList = pList.readFile(\"PentagonalPyramid_data_1.txt\");\n Assert.assertEquals(\"readFile Test\", \n \"PentagonalPyramid Test List\", pList.getName());\n }", "public void readIn(ArrayList<String> lines, int idx){\n\t\tfor (int i=idx+1;i<lines.size();i++){\n\t\t\tString[] parts = lines.get(i).split(\" \");\n\t\t\tif (parts[0].charAt(0) != '-'){\n\t\t\t\ti = lines.size();\n\t\t\t}\n\t\t\tswitch (parts[0]){\n\t\t\t\tcase \"-TileID:\":\n\t\t\t\t\tthis.setTile(Game.getInstance().getTileContained(Integer.parseInt(parts[1])));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-Chance:\":\n\t\t\t\t\tthis.chance = Integer.parseInt(parts[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: break;\n\t\t\t}\n\t\t}\n\t}", "public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void testReadFile() {\n System.out.println(\"------ TESTING : readFile(String filename) ------\");\n try{\n if(iTestFileList.readFile(sFile)){\n //throw exception if the values are not copied correctly\n if(iTestFileList.get(0) != 42175){\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n if(iTestFileList.get(5) != 45545){\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n if(iTestFileList.get(10) != 86908) {\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n }\n else{\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n System.out.print(\"\\n\");\n }", "@Test\n\tpublic void testADSBTupleBuilder3() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ADSB_3D);\n\t\t\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ADS_B_1);\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ADS_B_2);\n\t\tfinal Tuple tuple3 = tupleBuilder.buildTuple(ADS_B_3);\n\t\tfinal Tuple tuple4 = tupleBuilder.buildTuple(ADS_B_4);\n\t\tfinal Tuple tuple5 = tupleBuilder.buildTuple(ADS_B_5);\n\t\tfinal Tuple tuple6 = tupleBuilder.buildTuple(ADS_B_6);\n\t\tfinal Tuple tuple7 = tupleBuilder.buildTuple(ADS_B_7);\n\t\tfinal Tuple tuple8 = tupleBuilder.buildTuple(ADS_B_8);\n\t\tfinal Tuple tuple9 = tupleBuilder.buildTuple(ADS_B_9);\n\t\tfinal Tuple tuple10 = tupleBuilder.buildTuple(ADS_B_10);\n\t\tfinal Tuple tuple11 = tupleBuilder.buildTuple(ADS_B_11);\n\t\tfinal Tuple tuple12 = tupleBuilder.buildTuple(ADS_B_12);\n\t\t\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNull(tuple2);\n\t\tAssert.assertNotNull(tuple3);\n\t\tAssert.assertNull(tuple4);\n\t\tAssert.assertNull(tuple5);\n\t\tAssert.assertNotNull(tuple6);\n\t\tAssert.assertNull(tuple7);\n\t\tAssert.assertNull(tuple8);\n\t\tAssert.assertNotNull(tuple9);\n\t\tAssert.assertNull(tuple10);\n\t\tAssert.assertNull(tuple11);\n\t\tAssert.assertNotNull(tuple12);\n\t\t\t\n\t\tAssert.assertEquals(3, tuple3.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.668631, tuple3.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.003143, tuple3.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6600, tuple3.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple6.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.469348, tuple6.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.088634, tuple6.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(37000, tuple6.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple9.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(18.665827, tuple9.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(-34.001831, tuple9.getBoundingBox().getCoordinateHigh(0), 0.00001);\n\t\tAssert.assertEquals(6500, tuple9.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\n\t\tAssert.assertEquals(3, tuple12.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(12.54534, tuple12.getBoundingBox().getCoordinateHigh(1), 0.00001);\n\t\tAssert.assertEquals(45.076355, tuple12.getBoundingBox().getCoordinateHigh(0), 0.00001);\t\n\t\tAssert.assertEquals(37010, tuple12.getBoundingBox().getCoordinateHigh(2), 0.00001);\n\t}", "@Test\n public void getMatchDetailsTest2(){\n try {\n RiotApiHandler userTest=RiotApiHandler.getInstance();\n Path testfile = Path.of(\"matchinfo.txt\");\n String fin = Files.readString(testfile);\n Assert.assertNotEquals(fin,userTest.getMatchDetails(\"EUN1_2775220260\",\"eun1\"));\n }\n catch (IOException exception){\n exception.printStackTrace();\n }\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n public void CombinedTest(){\n try\n {\n RiotApiHandler userTest=RiotApiHandler.getInstance();\n String[] array = {\"EUN1_2775220260\", \"EUN1_2774180103\", \"EUN1_2773714308\", \"EUN1_2773662778\", \"EUN1_2772530238\", \"EUN1_2772505023\",\n \"EUN1_2772491193\", \"EUN1_2772005021\", \"EUN1_2771803452\", \"EUN1_2769206534\", \"EUN1_2767311256\", \"EUN1_2767113653\", \"EUN1_2767101111\",\n \"EUN1_2767036478\", \"EUN1_2766884534\", \"EUN1_2766808664\", \"EUN1_2766432042\", \"EUN1_2766071093\", \"EUN1_2766077729\", \"EUN1_2765668508\"\n };\n ArrayList<String> correct = new ArrayList<>(Arrays.asList(array));\n Path testfile = Path.of(\"matchinfo2.txt\");\n String fin = Files.readString(testfile);\n //pUUID test\n Assert.assertEquals(\"pkJUgeuYD1wH6LqRsGmUYATe3F1T3NltD_s2wkDTzgKG8wdF4dABME5lH4yN05LAgCjzdg18BCmp5w\",userTest.getEncryptedPUUID(\"Redlat\",\"eun1\"));\n //matchList test\n Assert.assertEquals(correct,userTest.getMatchlist(\"Redlat\",\"eun1\"));\n //matchDetails test\n Assert.assertEquals(fin,userTest.getMatchDetails(\"EUN1_2772505023\",\"eun1\"));\n } catch (IOException exception)\n {\n exception.printStackTrace();\n }\n }", "public FilePartReader() {\n filePath = \"/home/cc/Desktop/OopModule/testing/filepartreader-testing-with-junit-grzechu31/text.txt\";\n fromLine = 1;\n toLine = 10;\n }", "@Test\n\tpublic void ReadFile()\n\t{\n\t\tboolean thrown = false;\n \n\t\t\t ConnectMain connectstart=new ConnectMain();\n \n\t\t\t \ttry\n\t\t\t \t{\n\t\t\t \t Integer.parseInt(\"/\");\n\t\t\t \t}\n\t\t\t \tcatch(NumberFormatException e)\n\t\t\t \t{\n\t\t\t \t\tthrown = true;\n\t\t\t \t}\n\t\t\t \tassertTrue(thrown);\t\n\t\t\t \tconnectstart.setCols_default(7);\n\t\t\t \tconnectstart.setRows_default(6);\n\t\t\t \tconnectstart.setConnects_default(4);\n\t\t\t \tconnectstart.setPlayers_default(2);\n\t\t }", "@Test\n public void testReadFile() {\n System.out.println(\"readFile\");\n String fileName = \"src/main/resources/activities.txt\";\n String line = \"Learning Magic Tricks 40min\";\n\n Activities instance = new Activities(fileName);\n List<Activity> result = null;\n try {\n result = instance.getActivities();\n } catch (IOException ex) {\n }\n List<Activity> expResult = new ArrayList<>();\n expResult.add(new Activity(line, 40));\n// Assert.assertTrue(result.contains(expResult));\n }", "public void testFileWithEmptyLines()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base_with_empty_lines.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 2);\n assertEquals(t.getMostExpensiveSaleId(), \"10\");\n assertEquals(t.getWorstSalesman(), \"Renato\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "public static void main(String aaap[]) throws IOException{\n\t\tStream<String> rows = Files.lines(Paths.get(\"data.txt\"));\r\n\t\trows.map(x->x.split(\",\"))\r\n\t\t.filter(x->x.length==3)\r\n\t\t.filter(x->Integer.parseInt(x[1])>12)\r\n\t\t.forEach(x->System.out.println(x[0]+\" :: \"+x[1]+\" :: \"+x[2]));\r\n\t}", "@Test\n\tpublic void testLoadMultiline() {\n\t\t//first write the temporary file\n\t\tWriter writer = null ;\n\t\t\n\t\tString sourceFilePath = \"testLoad3.lisp\" ;\n\t\t\n\t\t//create the test source file\n\t\ttry {\n\t\t\twriter = new BufferedWriter(\n\t\t\t\t\t\tnew OutputStreamWriter(\n\t\t\t\t\t\t\t\tnew FileOutputStream(sourceFilePath), \"utf-8\")) ;\n\t\t\twriter.write(\"(define (add-thirteen x)\\n\");\n\t\t\twriter.write(\"(+ x 13))\\n\");\n\t\t} catch (IOException except){\n\t\t\t\n\t\t} finally {\n\t\t\ttry {writer.close();} catch (Exception ex) {}\n\t\t}\n\t\t\n\t\t\n\t\ttry {\n\t\t\tLispObject result = LispReader.load(sourceFilePath, env) ;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t\t//check that the environment contains the bindings as stated in the source file.\n\t\t\n\t\tLispProcedure theProc = (LispProcedure) env.get(\"ADD-THIRTEEN\") ;\n\n\t\tLispObject []forms = new LispObject[] { new ObjectAtom(4) } ;\n\t\tConsCell c = new ConsCell(forms) ;\n\t\t\n\t\tLispObject result = theProc.apply(c) ;\n\t\t\n\t\tassertTrue(result.toString().equals(\"17\"));\n\t}", "@Test(expected = XmlException.class)\n\tpublic void testReadFileXxml() throws XmlException {\n\t\tString[][] cities = rcx.readFileXml(\"ConfigurazionePartita.xml\");\n\t\tassertEquals(cities.length, 15);\n\n\t\tfor (int i = 0; i < cities.length; i++) {// controllo che l'array sia\n\t\t\t\t\t\t\t\t\t\t\t\t\t// pieno\n\t\t\tassertNotEquals(cities[i][0], \"\");\n\t\t\tassertNotEquals(cities[i][1], \"\");\n\t\t\tassertNotEquals(cities[i][2], \"\");\n\t\t\tassertNotEquals(cities[i][3], \"\");\n\t\t\tassertNotEquals(cities[i][5], \"\");\n\t\t}\n\t\tassertNotEquals(rcx.readFileXml(\"ConfigurazionePartitas.xml\").length, 15);// file\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// inesistente\n\t}", "@Test\r\n\tpublic void testSampleFile() {\r\n\r\n\t\tRaceList rl = null;\r\n\t\trl = WolfResultsReader.readRaceListFile(\"test-files/sample.md\");\r\n\t\tassertEquals(2, rl.size());\r\n\r\n\t}", "@Test\r\n\tvoid testImportRecordsShouldReadTheTempFileAndSave3Persons() throws IOException {\r\n\t\tFile temp = File.createTempFile(\"temp\", \"tmp\");\r\n\t\tFileWriter writer = new FileWriter(temp);\r\n\t\twriter.write(\"Costley, Dukie, Male, Green, 1947-07-13\\n\"\r\n\t\t\t\t+ \"Bettley | Abbe | Female | Purple | 1930-01-01\\n\"\r\n\t\t\t\t+ \"Kindall Rici Female Aquamarine 2004-01-14\\n\");\r\n\t\twriter.flush();\r\n\t\twriter.close();\r\n\t\ttemp.deleteOnExit();\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\ttry {\r\n\t\t\tassertTrue(parser.importRecords(temp));\r\n\t\t\tassertEquals(3, parser.getPeople().size());\r\n\t\t\tassertEquals(\"Costley Dukie male Green 7/13/1947 \", parser.getPeople().get(0).getDetails());\r\n\t\t} catch (FileNotFoundException fnfe) {\r\n\t\t\tfnfe.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testTPCHLineitemRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date shipDateTime = dateParser.parse(\"1993-12-04\");\n\t\tfinal Date receiptDateTime = dateParser.parse(\"1994-01-01\");\n\n\t\tfinal double doubleShipDateTime = (double) shipDateTime.getTime();\n\t\tfinal double doublereceiptDateTime = (double) receiptDateTime.getTime();\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleShipDateTime, doublereceiptDateTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n\tpublic void testForex2DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_2D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\t\t\n\t\tAssert.assertEquals(2, tuple1.getBoundingBox().getDimension());\n\t\tAssert.assertEquals(tuple1.getBoundingBox().getCoordinateHigh(1), 1.05752d, 0.1);\n\t}", "@Test\n\tpublic void testForex1DTupleBuilder() throws ParseException {\n\t\t\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.FOREX_1D);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(FOREX_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple1);\n\t\tAssert.assertEquals(Integer.toString(1), tuple1.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1.05752d, 1.05752d);\n\n\t\tAssert.assertEquals(exptectedBox, tuple1.getBoundingBox());\n\t}", "@Test\n void testBrokenCSV() throws IOException {\n try {\n createInstance().read(null, null);\n fail(\"IOException not thrown on null csv\");\n } catch (NullPointerException ex) {\n assertThat(ex.getMessage()).isNull();\n } catch (IngestException ex) {\n assertThat(ex.getErrorKey()).isEqualTo(IngestError.UNKNOWN_ERROR);\n }\n File file = getFile(\"csv/ingest/BrokenCSV.csv\");\n try (FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream stream = new BufferedInputStream(fileInputStream)) {\n createInstance().read(Tuple.of(stream, file), null);\n fail(\"IOException was not thrown when collumns do not align.\");\n } catch (IngestException ex) {\n assertThat(ex.getErrorKey()).isEqualTo(IngestError.CSV_RECORD_MISMATCH);\n }\n }", "@Test\n\tpublic void parsingRoll3() throws BowlingException {\n\t\tassertEquals(0, new DefaultRollParser().parseLine(\"Name\\tF\").getPinfalls().intValue());\n\t\tassertEquals(0, new DefaultRollParser().parseLine(\"Name\\tf\").getPinfalls().intValue());\n\t}", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public void testReadingConstructor() throws IOException {\n\t\tLocalRawDataBlockList list = new LocalRawDataBlockList();\r\n\r\n\t\tlist.createNewXBATBlock(4, 130, 1);\r\n\t\tlist.createNewXBATBlock(131, 131, -2);\r\n\t\tfor (int j = 0; j < 130; j++) {\r\n\t\t\tlist.createNewBATBlock(j * 128);\r\n\t\t}\r\n\t\tlist.fill(132);\r\n\t\tint[] blocks = { 2, 3 };\r\n\t\tBlockAllocationTableReader table = new BlockAllocationTableReader(\r\n\t\t POIFSConstants.SMALLER_BIG_BLOCK_SIZE_DETAILS, 130, blocks, 2, 0, list);\r\n\r\n\t\tfor (int i = 0; i < (130 * 128); i++) {\r\n\t\t\tif (i % 256 == 0) {\r\n\t\t\t\tassertTrue(\"verifying block \" + i + \" is unused\", !table.isUsed(i));\r\n\t\t\t} else if (i % 256 == 255) {\r\n\t\t\t\tassertEquals(\"Verify end of chain for block \" + i, POIFSConstants.END_OF_CHAIN,\r\n\t\t\t\t\t\ttable.getNextBlockIndex(i));\r\n\t\t\t} else {\r\n\t\t\t\tassertEquals(\"Verify next index for block \" + i, i + 1, table.getNextBlockIndex(i));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract T readDataFile(String fileLine);", "public void test_insert5(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(9);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(10);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(2);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(1500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2);\r\n\t\texecute(blocks,\"insert5.txt\",0);\r\n\t}", "public abstract void readDataItem(BDTuple tuple) throws RollbackException;", "public void readInPasswords(){\n String fileName = \"all_passwords.txt\";\n String nextLine = null;\n String [] temp;\n\n try{\n FileReader reader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(reader);\n \n while((nextLine = bufferedReader.readLine()) != null){\n temp = nextLine.split(\",\");\n if(temp[0].length() == 5)\n passwords.insertKey(temp[0], Double.parseDouble(temp[1]));\n }\n }catch(FileNotFoundException e){\n System.out.println(\"Unable to open file \" + fileName);\n }catch(IOException ex){\n System.out.println(\"Error reading file: \" + fileName);\n }\n \n }", "@Test\n public void testGetLine()\n {\n System.out.println(\"getLine\");\n final File file = new File(\"src/test/data/test.example.txt\");\n final Lexer lexer = new Lexer();\n final Token token = lexer.analyze(file);\n final Token next = token.getNext();\n assertEquals(Syntax.OPEN, next.getSyntax());\n assertEquals(2, next.getLine());\n assertEquals(1, next.getPosition());\n assertEquals(\"{\", next.getValue());\n }", "public void testSalesmanWithTwoSales()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base_4.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 4);\n assertEquals(t.getMostExpensiveSaleId(), \"10\");\n assertEquals(t.getWorstSalesman(), \"Renato\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "@Test\n\tpublic void testLoadOrdersFromFile() {\n\t\tOrderRecord or = new OrderRecord();\n\t\tor.loadTitlesFromFile(orderRecordTitles);\n\t\tor.loadOrdersFromFile(orderRecordFile);\n\t\tassertEquals(or.getFirst(),3); // the first column that is a product title\n\t\tassertEquals(or.getLast(),24); // the last column that is a product title\n\t\tfor(int i = 3; i <= 24; i++) { // if a column title is within this range, it is a produc title\n\t\t\tif(!or.isProductTitle(i))\n\t\t\t\tfail();\n\t\t}\n\t\tassertEquals(or.getProductTitles().size(), ptCount);\n\t\ttry {\n\t\tassertEquals(or.getShortOrderInfo().length, 800);\n\t\t}catch(IOException ioe ) {\n\t\t\tthrow new IllegalArgumentException(ioe.getMessage());\n\t\t}catch(NullPointerException npe ) {\n\t\t\tthrow new NullPointerException(npe.getMessage());\n\t\t}\n\t\t// order list is empty before update method is called and contains 7 orders after method completes\n\t\tassertEquals(or.getOrderRecordList().size(),6);\n\t\tassertEquals(or.getStudyList().size(),2);\n\t\tassertEquals(or.getSiteList().size(),6);\n\t\t\n\t\tif(!or.getStudyList().get(0).equals(study006155))\n\t\t\tfail();\n\t\tif(!or.getStudyList().get(1).equals(study145986))\n\t\t\tfail();\n\t\t\n\t\tif(!or.getSiteList().get(1).equals(site5007))\n\t\t\tfail();\n\t\tif(!or.getSiteList().get(2).equals(site5008))\n\t\t\tfail();\n\t\tif(!or.getSiteList().get(5).equals(site5018))\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(0).getNumber() != one )\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(2).getNumber() != three )\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(5).getNumber() != six )\n\t\t\tfail();\n\t\t\n\t\t// create new order record with more orders and check study list\n\t\tOrderRecord or2 = new OrderRecord();\n\t\tor2.loadTitlesFromFile(orderRecordTitles);\n\t\tor2.loadOrdersFromFile(moreOrderRecords);\n\t\t\n\t\tif(!or2.getStudyList().get(0).equals(study006155))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(1).equals(study145986))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(2).equals(study006156))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(7).equals(\"006186\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(0).equals(\"5002\") || !or2.getSiteList().get(1).equals(\"5007\") || !or2.getSiteList().get(2).equals(\"5008\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(10).equals(\"2352\") || !or2.getSiteList().get(11).equals(\"2353\") || !or2.getSiteList().get(12).equals(\"2354\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(23).equals(\"2034\") || !or2.getSiteList().get(24).equals(\"SHP\") )\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(92).equals(\"2539\") || !or2.getSiteList().get(93).equals(\"5017\") || !or2.getSiteList().get(94).equals(\"2211\") ||\n\t\t\t\t!or2.getSiteList().get(97).equals(\"2533\") || !or2.getSiteList().get(98).equals(\"2502\") || !or2.getSiteList().get(99).equals(\"5053\")\t)\n\t\t\tfail();\n\t\t\n\t\t\n\t\tif(!or2.getOrderRecordList().get(528).getPo().equals(\"17004101 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(529).getPo().equals(\"17004102 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(530).getPo().equals(\"17004103 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(531).getPo().equals(\"17004539 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(532).getPo().equals(\"18000008 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(533).getPo().equals(\"18000009 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(534).getPo().equals(\"18000027 OD\")) fail();\n\t\t\n\t\tif(!or2.getOrderRecordList().get(442).getCity().equals(\"Tokyo\")) fail();\n\t\tif(!or2.getOrderRecordList().get(462).getCity().equals(\"Oklahoma City\")) fail();\n\t\tif(!or2.getOrderRecordList().get(246).getCity().equals(\"Jerez de La Frontera\")) fail();\n\t\tif(!or2.getOrderRecordList().get(248).getCity().equals(\"Salamanca, Castilla y Leon\")) fail();\n\t\tif(!or2.getOrderRecordList().get(43).getCity().equals(\"Milano\")) fail();\n\t\tif(!or2.getOrderRecordList().get(45).getCity().equals(\"Winston Salem\")) fail();\n\t\tif(!or2.getOrderRecordList().get(73).getCity().equals(\"Landsberg\")) fail();\n\t\tif(!or2.getOrderRecordList().get(530).getCity().equals(\"Tampa\")) fail();\n\t\t\n\t}", "@Test\n public final void testParseWhereExtraValue() throws Exception {\n\n try (InputStream is = this.getClass()\n .getResourceAsStream( \"/data/loader/expression/experimentalDesignTestExtra.txt\" )) {\n\n experimentalDesignImporter.importDesign( ee, is );\n }\n\n ee = this.eeService.thawLite( ee );\n\n Collection<BioMaterial> bms = new HashSet<>();\n for ( BioAssay ba : ee.getBioAssays() ) {\n BioMaterial bm = ba.getSampleUsed();\n bms.add( bm );\n }\n this.aclTestUtils.checkEEAcls( ee );\n\n this.checkResults( bms );\n }", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "@Test\n public void testParseMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n Matrix data = reader.getMatrix();\n Matrix[] parsedMatrix = MatrixReader.parseMatrix(data, 10);\n assertEquals(parsedMatrix[0].get(4, 2), data.get(4, 2), 0.001);\n assertEquals(parsedMatrix[2].get(0, 0), data.get(32, 0), 0.001);\n assertEquals(parsedMatrix[1].get(0, 0), data.get(16, 0), 0.001);\n }", "@Override\n protected String parseAndSolve(int t, CodeJamReader reader) throws IOException\n {\n int[] ints = reader.readInts();\n// if (t != 3)\n// {\n// return \"Ignore\";\n// }\n return new CropTriangles().solve(ints[0], ints[1], ints[2], ints[3], ints[4], ints[5], ints[6], ints[7]);\n }", "@Test\n public void reading()\n throws FileNotFoundException, IOException, CorruptedTableException\n {\n final Database database =\n new Database(new File(\"src/test/resources/\" + versionDirectory + \"/rndtrip\"), version);\n final Set<String> tableNames = database.getTableNames();\n\n assertEquals(2,\n tableNames.size());\n assertTrue(\"TABLE1 not found in 'short roundtrip' database\",\n tableNames.contains(\"TABLE1.DBF\"));\n assertTrue(\"TABLE2 not found in 'short roundtrip' database\",\n tableNames.contains(\"TABLE2.DBF\"));\n\n final Table t1 = database.getTable(\"TABLE1.DBF\");\n\n try\n {\n t1.open(IfNonExistent.ERROR);\n\n assertEquals(\"Table name incorrect\",\n \"TABLE1.DBF\",\n t1.getName());\n assertEquals(\"Last modified date incorrect\",\n Util.createDate(2009, Calendar.APRIL, 1),\n t1.getLastModifiedDate());\n\n final List<Field> fields = t1.getFields();\n\n Iterator<Field> fieldIterator = fields.iterator();\n Map<String, Field> nameFieldMap = new HashMap<String, Field>();\n\n while (fieldIterator.hasNext())\n {\n Field f = fieldIterator.next();\n nameFieldMap.put(f.getName(),\n f);\n }\n\n final Field idField = nameFieldMap.get(\"ID\");\n assertEquals(Type.NUMBER,\n idField.getType());\n assertEquals(idField.getLength(),\n 3);\n\n final Field stringField = nameFieldMap.get(\"STRFIELD\");\n assertEquals(Type.CHARACTER,\n stringField.getType());\n assertEquals(stringField.getLength(),\n 50);\n\n final Field logicField = nameFieldMap.get(\"LOGICFIELD\");\n assertEquals(Type.LOGICAL,\n logicField.getType());\n assertEquals(logicField.getLength(),\n 1);\n\n final Field dateField = nameFieldMap.get(\"DATEFIELD\");\n assertEquals(Type.DATE,\n dateField.getType());\n assertEquals(8,\n dateField.getLength());\n\n final Field floatField = nameFieldMap.get(\"FLOATFIELD\");\n assertEquals(Type.NUMBER,\n floatField.getType());\n assertEquals(10,\n floatField.getLength());\n\n final List<Record> records = UnitTestUtil.createSortedRecordList(t1.recordIterator(),\n \"ID\");\n final Record r0 = records.get(0);\n\n assertEquals(1,\n r0.getNumberValue(\"ID\"));\n assertEquals(\"String data 01\",\n r0.getStringValue(\"STRFIELD\").trim());\n assertEquals(true,\n r0.getBooleanValue(\"LOGICFIELD\"));\n assertEquals(Util.createDate(1909, Calendar.MARCH, 18),\n r0.getDateValue(\"DATEFIELD\"));\n assertEquals(1234.56,\n r0.getNumberValue(\"FLOATFIELD\"));\n\n final Record r1 = records.get(1);\n\n assertEquals(2,\n r1.getNumberValue(\"ID\"));\n assertEquals(\"String data 02\",\n r1.getStringValue(\"STRFIELD\").trim());\n\n /*\n * in Clipper 'false' value can be given as an empty field, and the method called here\n * returns then 'null' as the return value\n */\n if (version == Version.CLIPPER_5)\n {\n assertEquals(null,\n r1.getBooleanValue(\"LOGICFIELD\"));\n }\n else\n {\n assertEquals(false,\n r1.getBooleanValue(\"LOGICFIELD\"));\n }\n\n assertEquals(Util.createDate(1909, Calendar.MARCH, 20),\n r1.getDateValue(\"DATEFIELD\"));\n assertEquals(-23.45,\n r1.getNumberValue(\"FLOATFIELD\"));\n\n final Record r2 = records.get(2);\n\n assertEquals(3,\n r2.getNumberValue(\"ID\"));\n assertEquals(\"\",\n r2.getStringValue(\"STRFIELD\").trim());\n assertEquals(null,\n r2.getBooleanValue(\"LOGICFIELD\"));\n assertEquals(null,\n r2.getDateValue(\"DATEFIELD\"));\n assertEquals(null,\n r2.getNumberValue(\"FLOATFIELD\"));\n\n final Record r3 = records.get(3);\n\n assertEquals(4,\n r3.getNumberValue(\"ID\"));\n assertEquals(\"Full5678901234567890123456789012345678901234567890\",\n r3.getStringValue(\"STRFIELD\").trim());\n\n /*\n * in Clipper 'false' value can be given as an empty field, and the method called here\n * returns then 'null' as the return value\n */\n if (version == Version.CLIPPER_5)\n {\n assertEquals(null,\n r3.getBooleanValue(\"LOGICFIELD\"));\n }\n else\n {\n assertEquals(false,\n r3.getBooleanValue(\"LOGICFIELD\"));\n }\n\n assertEquals(Util.createDate(1909, Calendar.MARCH, 20),\n r3.getDateValue(\"DATEFIELD\"));\n assertEquals(-0.30,\n r3.getNumberValue(\"FLOATFIELD\"));\n }\n finally\n {\n t1.close();\n }\n\n final Table t2 = database.getTable(\"TABLE2.DBF\");\n\n try\n {\n t2.open(IfNonExistent.ERROR);\n\n final List<Field> fields = t2.getFields();\n\n Iterator<Field> fieldIterator = fields.iterator();\n Map<String, Field> nameFieldMap = new HashMap<String, Field>();\n\n while (fieldIterator.hasNext())\n {\n Field f = fieldIterator.next();\n nameFieldMap.put(f.getName(),\n f);\n }\n\n final Field idField = nameFieldMap.get(\"ID2\");\n assertEquals(Type.NUMBER,\n idField.getType());\n assertEquals(idField.getLength(),\n 4);\n\n final Field stringField = nameFieldMap.get(\"MEMOFIELD\");\n assertEquals(Type.MEMO,\n stringField.getType());\n assertEquals(10,\n stringField.getLength());\n\n final Iterator<Record> recordIterator = t2.recordIterator();\n final Record r = recordIterator.next();\n\n String declarationOfIndependence = \"\";\n\n declarationOfIndependence += \"When in the Course of human events it becomes necessary for one people \";\n declarationOfIndependence += \"to dissolve the political bands which have connected them with another and \";\n declarationOfIndependence += \"to assume among the powers of the earth, the separate and equal station to \";\n declarationOfIndependence += \"which the Laws of Nature and of Nature's God entitle them, a decent respect \";\n declarationOfIndependence += \"to the opinions of mankind requires that they should declare the causes which \";\n declarationOfIndependence += \"impel them to the separation.\";\n declarationOfIndependence += \"\\r\\n\\r\\n\";\n declarationOfIndependence += \"We hold these truths to be self-evident, that all men are created equal, \";\n declarationOfIndependence += \"that they are endowed by their Creator with certain unalienable Rights, \";\n declarationOfIndependence += \"that among these are Life, Liberty and the persuit of Happiness.\";\n\n assertEquals(1,\n r.getNumberValue(\"ID2\"));\n assertEquals(declarationOfIndependence,\n r.getStringValue(\"MEMOFIELD\"));\n }\n finally\n {\n t2.close();\n }\n }", "private static void assertPoiTuples(Cursor cursor, List<PoiTuple> tuples) {\n assertNotNull(cursor);\n assertNotNull(tuples);\n assertTrue(cursor.getCount() > 0);\n assertEquals(cursor.getCount(), tuples.size());\n assertTrue(cursor.moveToFirst());\n for (PoiTuple tuple : tuples) {\n assertNotNull(tuple);\n assertEquals(cursor.getLong(cursor.getColumnIndex(PoiTuple.COL_ID)),\n tuple.getId());\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_POI)),\n tuple.getString(PoiTuple.COL_POI));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LAT)),\n tuple.getDouble(PoiTuple.COL_LAT));\n assertEquals(cursor.getDouble(cursor.getColumnIndex(PoiTuple.COL_LGT)),\n tuple.getDouble(PoiTuple.COL_LGT));\n assertEquals(cursor.getInt(cursor.getColumnIndex(PoiTuple.COL_RADIUS)),\n tuple.getInt(PoiTuple.COL_RADIUS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CELL_TOWERS)),\n tuple.getString(PoiTuple.COL_CELL_TOWERS));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_CONNECTED_WIFI)),\n tuple.getString(PoiTuple.COL_CONNECTED_WIFI));\n assertEquals(cursor.getString(cursor.getColumnIndex(PoiTuple.COL_WIFI_SSID)),\n tuple.getString(PoiTuple.COL_WIFI_SSID));\n cursor.moveToNext();\n }\n }", "protected void handleData(T tuple)\n throws DataException\n {\n \n if (tuple.isMutable())\n {\n if (sequence!=null)\n {\n if (sequenceField.getValue(tuple)==null)\n { \n String sequenceVal = Long.toString(sequence.next());\n if (debug)\n { \n log.fine\n (\"Generated sequence \"+sequenceVal\n +\" for \"+sequenceField.getURI()\n );\n }\n \n sequenceField.setValue\n ((EditableTuple) tuple\n ,sequenceField.getType().fromString(sequenceVal)\n ); \n }\n else\n { \n if (debug)\n {\n log.fine\n (\"Sequence field not null \"+sequenceField.getURI());\n }\n }\n }\n else\n { \n if (sequenceField!=null)\n { log.fine(\"Sequence is null for \"+sequenceField);\n }\n }\n\n if (defaultSetters!=null)\n {\n for (Setter<?> setter : defaultSetters)\n { \n if (setter.getTarget().get()==null)\n { setter.set();\n }\n }\n }\n\n if (fixedSetters!=null)\n {\n for (Setter<?> setter : fixedSetters)\n { setter.set();\n }\n }\n }\n else\n {\n if (debug)\n {\n log.fine\n (\"Not a mutable Tuple \"+tuple);\n }\n }\n \n if (inspector!=null)\n {\n Violation<T>[] violations=inspector.inspect(tuple);\n if (violations!=null)\n { throw new DataException(null,new RuleException(violations));\n }\n }\n \n }", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "public <T extends Serializable> List<T> reader(String readPath, String splitChareckter,\n Class<T> clazz) {\n List<T> lstData = new LinkedList<>();\n String line = \"\";\n\n try (BufferedReader br = new BufferedReader(new FileReader(readPath))) {\n while ((line = br.readLine()) != null) {\n\n String[] readerArray = line.split(splitChareckter);\n int sayac = 0;\n T data = clazz.newInstance();\n for (Field field : clazz.getDeclaredFields()) {\n try {\n if (field.isAnnotationPresent(DataMatch.class)) {\n // elimizde bulunan datadaki bazı colomnları kullanmak istemiyorum\n // fakat datayı da bozmak istemediğim için kendi custom anotationumu yazdım\n DataMatch dataMatch = field.getAnnotation(DataMatch.class);\n int tempCount = 0;\n // burada da esas işlemi yaptık :) bunu anlayığ yaznana ladar 9 ayım geçmişti eferinnnnn\n\n\n // hemen nasıl anladın ya :))) b\n\n //uuuuuuuuuuuuuuuuuuuuuuuu //sorgulamayacaksın :D şaka yapıyom ya şuan kulağımın ağrısından kafm pek almıyo açıkcası\n //inşallah bi sorun çıkmaz abi git ya doktora devam ederse mecbur gidecem tabi\n\n // dusdan çıkınca iyice kulağını temizle su kalmasın :) //olur abisi :D\n\n\n ////boğazımda aprıyo toptan bi grip olucam anlaşılan gel vatandaş batan geminin malları bunlar :)) :)\n // şimdi ne drumdayız son olarak dur bi bakayım\n\n\n // son datayı yazarken bi problem olmuş onun dışında uçusa hazır :D\n if (dataMatch.index() != -1) {\n tempCount = dataMatch.index();\n } else {\n tempCount = sayac;\n }\n if (readerArray[tempCount].contains(\"K\")) {\n String valueOfNoneK = readerArray[tempCount].replace(\".\", \"\").replace(\"K\", \"\");\n Double realValue = Double.valueOf(valueOfNoneK) * 1000;\n readerArray[tempCount] = Double.toString(realValue);\n }\n setField(data, field.getName(), readerArray[tempCount]);\n }\n sayac++;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n lstData.add(data);\n\n }\n\n return lstData;\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InstantiationException 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 return null;\n }", "@Test\n public void testTaxpayerInfoFromTxt() throws FileNotFoundException {\n\n Database.processTaxpayersDataFromFilesIntoDatabase(databaseInstance.getTaxpayersInfoFilesPath(), txtTestFilenameList);\n\n // Get the taxpayer from the Database\n Taxpayer actualTaxpayerInfoTxt = databaseInstance.getTaxpayerFromArrayList(0);\n\n // Test user info from txt file\n Taxpayer expectedTaxpayerInfoTxt = new Taxpayer(\"Apostolos Zarras\", \"130456093\",\n ApplicationConstants.MARRIED_FILING_JOINTLY, \"22570\");\n\n Receipt expectedTaxpayerReceiptFromTxt =\n new Receipt(ApplicationConstants.BASIC_RECEIPT, \"1\", \"25/2/2014\", \"2000\",\n \"Hand Made Clothes\", \"Greece\", \"Ioannina\", \"Kaloudi\", \"10\");\n\n expectedTaxpayerInfoTxt.setReceipts(new ArrayList<>( Collections.singletonList(expectedTaxpayerReceiptFromTxt)));\n expectedTaxpayerInfoTxt.calculateTaxpayerTaxIncreaseOrDecreaseBasedOnReceipts();\n\n assertEquals(expectedTaxpayerReceiptFromTxt.toString(), actualTaxpayerInfoTxt.getReceipts().get(0).toString());\n assertEquals(expectedTaxpayerInfoTxt.toString(), actualTaxpayerInfoTxt.toString());\n\n }", "@ParameterizedTest\n @CsvFileSource(files = \"src/test/resources/params/shoppinglist3.csv\",\n numLinesToSkip = 1, delimiterString = \"___\") // Delimiter string in this case.\n public void csvFileSource_StringDoubleIntStringString3(String name,\n double price, int qty, String uom,\n String provider){\n System.out.println(\"name = \" + name + \", price = \" + price + \", qty = \" + qty\n + \", uom = \" + uom + \", provider = \" + provider);\n }", "public void testFileWithDosEol()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base_dos_eol.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 2);\n assertEquals(t.getMostExpensiveSaleId(), \"10\");\n assertEquals(t.getWorstSalesman(), \"Renato\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "public static void main(String[] args) {\n File data = new File(\"C:\" + File.separatorChar + \"temp\" + File.separatorChar \r\n + \"labFile.txt\");\r\n \r\n BufferedReader in = null;\r\n int count = 0;\r\n int recordCount = 0;\r\n try {\r\n //FileReader is being decorated by BufferedReader to make it read faster\r\n //buffered allows us to talk to file\r\n //open the stream\r\n in = new BufferedReader(new FileReader(data));\r\n //read the first line\r\n String line = in.readLine();\r\n //so long as line we just read is not null then continue reading file\r\n //if line is null it's end of file\r\n while (line != null) {\r\n \r\n \r\n if (count == 0) {\r\n String[] myStringArray = line.split(\" \");\r\n \r\n System.out.println(\"First Name: \" + myStringArray[0]);\r\n System.out.println(\"Last Name: \" + myStringArray[1]); \r\n } else if (count == 1) {\r\n \r\n System.out.println(\"Street Address: \" + line); \r\n } else if (count == 2) {\r\n \r\n String[] myStringArray = line.split(\" \");\r\n System.out.println(\"City: \" + myStringArray[0].replace(\",\", \" \"));\r\n System.out.println(\"State: \" + myStringArray[1]);\r\n System.out.println(\"Zip: \" + myStringArray[2]);\r\n \r\n count = -1;\r\n recordCount++;\r\n System.out.println(\"\");\r\n System.out.println(\"Number of records read: \" + recordCount);\r\n System.out.println(\"\");\r\n } \r\n count++;\r\n \r\n //reads next line\r\n line = in.readLine(); // strips out any carriage return chars\r\n \r\n }\r\n\r\n } catch (IOException ioe) {\r\n System.out.println(\"Houston, we have a problem! reading this file\");\r\n //want to close regardless if there is an error or not\r\n } finally {\r\n try {\r\n //close the stream\r\n //closing the file throws a checked exception that has to be surrounded by try catch\r\n in.close();\r\n } catch (Exception e) {\r\n\r\n }\r\n }\r\n }", "public static void main(String[] args) throws IOException {\n\n fileReader(\"endpoints1.txt\", \"endpoints2.txt\");\n\n /* First Test Case Completed with Correct Files */\n\n /*===============================================/*\n\n /* Second Test Case With Valid and Invalid Files */\n\n// fileReader(\"endpoints1.txt\", \"invalidpoints.txt\");\n\n /* Second Test Case Completed with one Invalid File */\n\n /*===============================================/*\n\n /* Third Test Case With Invalid Files */\n\n// fileReader(\"invalidpoints.txt\", \"endpoints2.txt\");\n\n /* Third Test Case Completed with Invalid File */\n\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_[.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\\\",\");\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getSimilarItems(\"[\", \"\");\n assertEquals(2L, file0.length());\n assertNotNull(file0);\n }", "@Test\n\tpublic void testSyntheticTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(51.47015078569419, 58.26664175357267,\n\t\t\t\t49.11808592466023, 52.72529828070016);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"e1k141dox9rayxo544y9\", new String(tuple.getDataBytes()));\n\t}", "@Test\r\n \tpublic void testFileEvents96_3() {\n \t\t\t\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/CSVTest_96_2.txt\"); // issue 96\r\n \t\tassertNotNull(input);\r\n \t\r\n \t\t// Set the parameters\r\n \t\tParameters params = new Parameters();\r\n \t\tsetDefaults(params);\r\n \t\tparams.fieldDelimiter = \",\";\r\n \t\tparams.textQualifier = \"\\\"\";\r\n \t\tparams.sendColumnsMode = Parameters.SEND_COLUMNS_LISTED;\r\n \t\tparams.sourceColumns = \"1\";\r\n \t\tparams.targetColumns = \"2\";\r\n \t\tparams.targetLanguages = \"\"; //locFRCA.toString();\r\n \t\tparams.targetSourceRefs = \"1\";\r\n \t\tfilter.setParameters(params);\r\n \t\t\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN, locFRCA));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\t\t\t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"src\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"trg\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"data\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source1\", \"\", \"target1\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data1\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source2\", \"\", \"target2\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data2\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\t\t\tfilter.close();\t\t\r\n \t}", "@Test\n public void testReadFileToArrayString() throws IOException {\n\n File file = new File(\"..//data//test//chat_readFileToArrayString.txt\");\n Chat chat = new Chat();\n String[] valueArrayString = {\"1\", \"2\", \"3\", \"4\", \"5\"};\n\n String[] testString = chat.getArrayStringFromFile(file);\n\n assertThat(valueArrayString, is(testString));\n\n }", "@Test\n\tpublic void testTPCHLineitemPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.TPCH_LINEITEM_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TPCH_LINEITEM_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd\");\n\t\tfinal Date date = dateParser.parse(\"1993-12-04\");\n\n\t\tfinal double doubleTime = (double) date.getTime();\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(doubleTime, doubleTime);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void testDetailedCollectionDatestampMixed3() throws Exception {\n DataReader reader = getDataReader(\"SampleSun1_7_0G1_DateStamp_Detailed-mixedLine3.txt\");\n GCModel model = reader.read();\n Assert.assertEquals(\"nummber of events\", 2, model.size());\n Assert.assertEquals(\"concurrent event type\", G1_CONCURRENT_MARK_START.toString(), model.getConcurrentGCEvents().next().getTypeAsString());\n Assert.assertEquals(\"number of pauses\", 1, model.getPause().getN());\n Assert.assertEquals(\"gc pause sum\", 0.088949, model.getPause().getSum(), 1.0E-9);\n Assert.assertEquals(\"gc memory\", ((29672 * 1024) - (28733 * 1024)), model.getFreedMemoryByGC().getMax());\n }", "@Override\n public void readTilePositions(BufferedRandomAccessFile braf) throws IOException {\n row0 = braf.leReadInt();\n col0 = braf.leReadInt();\n nRows = braf.leReadInt();\n nCols = braf.leReadInt();\n this.row1 = row0 + nRows - 1;\n this.col1 = col0 + nCols - 1;\n if (nCols == 0) {\n offsets = null;\n // no position records follow in file.\n } else {\n offsets = new long[nRows][];\n for (int i = 0; i < nRows; i++) {\n offsets[i] = new long[nCols];\n }\n for (int i = 0; i < nRows; i++) {\n for (int j = 0; j < nCols; j++) {\n offsets[i][j] = braf.leReadLong();\n }\n }\n }\n }", "public void testRand()\n throws IOException, FileNotFoundException\n {\n compareValues(PATH + \"randtable.txt\", PATH + \"RandPair.txt\", FACTORY);\n }", "private void testDataReader() {\n File csv = new File(pathTest);\n try (FileReader fr = new FileReader(csv); BufferedReader bfr = new BufferedReader(fr)) {\n Logger.printInfo(\"Reading test data\");\n for (String line; (line = bfr.readLine()) != null; ) {\n String[] split = line.split(\",\");\n String data = textCleaner(split[indexData].toLowerCase());\n int label = Integer.parseInt(split[indexLabel].toLowerCase());\n\n linesTest.add(data);\n labelsTest.add(label);\n Logger.print(\"Reading size: \" + linesTest.size());\n }\n for (String l : linesTest) {\n matrixTest.add(wordVectorizer(l));\n }\n } catch (IOException ex) {\n Logger.printError(\"!! Test Data Not Reading !!\");\n System.exit(0);\n }\n }", "@Test\r\n \tpublic void testQualifiedValues2() {\n \t\t\r\n \t\tParameters params = (Parameters) filter.getParameters();\r\n \t\tparams.detectColumnsMode = Parameters.DETECT_COLUMNS_NONE;\r\n \t\t\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/csv_test3.txt\");\r\n \t\tassertNotNull(input);\r\n \t\t\r\n \t\tparams.wrapMode = WrapMode.NONE; // !!!\r\n \t\tparams.removeQualifiers = false;\r\n \t\t\r\n //\t\tparams.valuesStartLineNum = 9;\r\n //\t\tparams.sendHeaderMode = 0;\r\n \r\n \t\t\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\r\n \t\t// Line 1\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value11\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value12\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value13\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value14\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 2\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value21\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value22.1,Value22.2, Value22.3\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value23\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value24\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\t\t\r\n \t\t// Line 4-7\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value31\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value32\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value33\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value34.1\\nValue34.2\\nValue34.3\\nValue34.4,Value34.5\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value35\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 9-12\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value41\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value42\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value43\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value44.1\\nValue44.2\\nValue44.3\\nValue44.4\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value45.1,Value45.2\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\t\t\r\n \t\t\r\n \t\t// Line 14-18\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value51\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value52\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value53\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value54.1\\nValue54.2\\nValue54.3\\nValue54.4,\\\"Value55.1,Value55.2\\nValue55.3,Value55.4\\\"\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n //\t\t// Line 15\r\n //\t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n //\t\ttestEvent(EventType.TEXT_UNIT, \"Value54.2\");\r\n //\t\ttestEvent(EventType.END_GROUP, null);\r\n //\t\t\r\n //\t\t// Line 16\r\n //\t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n //\t\ttestEvent(EventType.TEXT_UNIT, \"Value54.3\");\r\n //\t\ttestEvent(EventType.END_GROUP, null);\r\n //\t\t\r\n //\t\t// Line 17-18\r\n //\t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n //\t\ttestEvent(EventType.TEXT_UNIT, \"Value54.4\");\r\n //\t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value55.1,Value55.2\\nValue55.3,Value55.4\\\"\");\r\n //\t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 20-25\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value61\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value62\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value63\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value64.1\\nValue64.2\\nValue64.3\\nValue64.4,\\\"Value65.1,Value65.2\\nValue65.3,Value65.4\\n\" +\r\n \t\t\t\t\"Value65.5,\\\"Value66\\\"\\\"\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\t\t\r\n \t\t// -------------------------------------------------\r\n \t\t\r\n \t\t// Line 27-31\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value71\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value72 \\\"aaa \\\"quoted part 1\\\", then \\\"\\\"quoted part 2\\\" value\\\",Value73\\\",Value74\\n\" +\r\n \t\t\t\t\"Value81,\\\"Value82 with unclosed quote\\nValue91,Value92\\n\\\"ValueA1\\\",ValueA2\\\"\\nValueB1\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value\\\"B2,Va\\\"lueB3\\\"\");\t\t// If quotation marks are not around field, preserve them \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Va\\\"lueB4\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 32\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC1\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"ValueC2\");\t\t \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC3\");\t\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"ValueC4\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC5\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\tfilter.close();\r\n \t\t\r\n \t\t\r\n \t\t// Unwrap lines\r\n \t\tinput = TableFilterTest.class.getResourceAsStream(\"/csv_test3.txt\");\r\n \t\tassertNotNull(input);\r\n \t\t\r\n \t\tparams.wrapMode = WrapMode.SPACES; // !!!\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\r\n \t\t// Line 1\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value11\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value12\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value13\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value14\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 2\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value21\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value22.1,Value22.2, Value22.3\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value23\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value24\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\t\t\r\n \t\t// Line 4-7\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value31\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value32\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value33\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value34.1 Value34.2 Value34.3 Value34.4,Value34.5\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value35\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 9-12\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value41\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value42\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value43\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value44.1 Value44.2 Value44.3 Value44.4\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value45.1,Value45.2\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\t\t\r\n \t\t\r\n \t\t// Line 14-18\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value51\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value52\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value53\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value54.1 Value54.2 Value54.3 Value54.4,\\\"Value55.1,Value55.2 Value55.3,Value55.4\\\"\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 20\r\n \t\t// Line 20-25\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value61\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value62\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value63\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value64.1 Value64.2 Value64.3 Value64.4,\\\"Value65.1,Value65.2 Value65.3,Value65.4 \" +\r\n \t\t\t\t\"Value65.5,\\\"Value66\\\"\\\"\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t// -------------------------------------------------\r\n \t\t\r\n \t\t// Line 27-31\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value71\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value72 \\\"aaa \\\"quoted part 1\\\", then \\\"\\\"quoted part 2\\\" value\\\",Value73\\\",Value74 \" +\r\n \t\t\t\t\"Value81,\\\"Value82 with unclosed quote Value91,Value92 \\\"ValueA1\\\",ValueA2\\\" ValueB1\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value\\\"B2,Va\\\"lueB3\\\"\");\t\t// If quotation marks are not around field, preserve them \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Va\\\"lueB4\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 32\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC1\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"ValueC2\");\t\t \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC3\");\t\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"ValueC4\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC5\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\tfilter.close();\r\n \t\t\r\n \t\t\r\n \t}", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n ArrayList<Integer> arrayList0 = new ArrayList<Integer>();\n arrayList0.spliterator();\n fileUtil0.getAccessories(\"\", arrayList0);\n fileUtil0.fetchKeywordSearchFile(\"\", \"\", \"\", \"\");\n fileUtil0.downloadThirdPartySearchFile(\"\", \"net.kencochrane.a4j.util.LoadProperties\", \"\", \"T||]%|~ZG.LC(6mb~A\");\n fileUtil0.fetchKeywordSearchFile(\"\", \"T||]%|~ZG.LC(6mb~A\", (String) null, \"\");\n fileUtil0.getBrowseNodeFile(\"net.kencochrane.a4j.util.LoadProperties\", \"@>-=6JQ%t&fx,L\", \"net.kencochrane.a4j.util.LoadProperties\");\n fileUtil0.fetchBlendedSearchFile(\"AGmeJ)4qdg_/\", \"a_\");\n Integer integer0 = new Integer(7);\n arrayList0.add(integer0);\n fileUtil0.downloadAccessoriesFile(\"3rd_\", arrayList0, \"I~-|SH-#r+.Olx\");\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\"\", \"\", \"]RHe['l4y{\", \"]RHe['l4y{\", \"I~-|SH-#r+.Olx\", \"\\\"-q6AW$MO[2+kQ/Sl.g\");\n assertNull(fileInputStream0);\n }", "@Test\n public void testReadTtbinFile_String()\n {\n System.out.println(\"TEST: readTtbinFile\");\n String fileName = \"src/test/resources/test.ttbin\";\n TomTomReader instance = TomTomReader.getInstance();\n Activity expResult = null;\n Activity result = instance.readTtbinFile(fileName);\n\n testContentsNonSmoothed(result);\n }", "public void readFromFile() {\n\n\t}", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "public static void readLotteryFiles() {\n\t\tfor (int index = 0; index < NpcHandler.npcs.length; index++) {\n\t\t\tNpc npc = NpcHandler.npcs[index];\n\t\t\tif (npc == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (npc.npcType == 11057) {\n\t\t\t\tlotteryNpcIndex = npc.npcIndex;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\ttotalTicketsPurchased = Integer.parseInt(FileUtility.readFirstLine(TOTAL_TICKETS_FILE));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tArrayList<String> data = FileUtility.readFile(LOTTERY_ENTRIES_FILE);\n\t\tfor (int index = 0; index < data.size(); index++) {\n\t\t\tString parse[] = data.get(index).split(ServerConstants.TEXT_SEPERATOR);\n\t\t\tString name = parse[0];\n\t\t\tint ticketsPurchased = Integer.parseInt(parse[1]);\n\t\t\tLotteryDatabase.lotteryDatabase.add(new LotteryDatabase(name, ticketsPurchased));\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n public void init(String f2e_line1, String f2e_line2, String f2e_line3,\n String e2f_line1, String e2f_line2, String e2f_line3) throws IOException {\n String[] comment_f2e = f2e_line1.split(\"\\\\s+\");\n String[] comment_e2f = e2f_line1.split(\"\\\\s+\");\n assert (comment_f2e[0].equals(\"#\"));\n assert (comment_e2f[0].equals(\"#\"));\n p_f2e = Double.parseDouble(comment_f2e[comment_f2e.length - 1]);\n p_e2f = Double.parseDouble(comment_f2e[comment_e2f.length - 1]);\n // Read target strings:\n f = new SimpleSequence<IString>(true,\n IStrings.toSyncIStringArray(escape(f2e_line2.split(\"\\\\s+\"))));\n e = new SimpleSequence<IString>(true,\n IStrings.toSyncIStringArray(escape(e2f_line2.split(\"\\\\s+\"))));\n // Read alignments:\n f2e = new TreeSet[f.size()];\n e2f = new TreeSet[e.size()];\n initAlign(f2e_line3, f2e, e);\n initAlign(e2f_line3, e2f, f);\n }", "public static Tuple read(DataInput in) throws IOException {\n // nuke the old contents of the tuple\n Tuple ret = new Tuple();\n ret.fields = new ArrayList<Datum>();\n\n int size = decodeInt(in);\n \n for (int i = 0; i < size; i++) {\n ret.appendField(readDatum(in));\n }\n \n return ret;\n\n }", "public static void testAddDataToGridFile() {\n\n System.out.println(\"\\n--------- Adding Data to Grid File ---------\");\n\n GridFile gridFile = null;\n\n try {\n gridFile = GridFile.open(TEST_FILE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n GridParameters params = gridFile.getParameters();\n\n //Create a row and put some data in it\n int[] rowValues = new int[params.getNumberOfColumns()];\n for (int i = 0; i < rowValues.length; i++) {\n rowValues[i] = i;\n }\n\n try {\n gridFile.putRow(2, rowValues); //store values in row 10\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public abstract Tuple parseFrom(byte[] bytes) throws Exception;", "@Test\r\n\tpublic void testFullCapacityLowerToHigerWeight(){\r\n\t\tString expectedResult = \"1,2,4\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/fullCapacityLowerToHigerWeight.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. FullCapacityLowerToHigerWeight file.\");\r\n\t}", "@Test\r\n \tpublic void testQualifiedValues() {\n \t\t\r\n \t\tParameters params = (Parameters) filter.getParameters();\r\n \t\tparams.detectColumnsMode = Parameters.DETECT_COLUMNS_NONE;\r\n \t\t\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/csv_test3.txt\");\r\n \t\tassertNotNull(input);\r\n \t\t\r\n \t\tparams.wrapMode = WrapMode.NONE; // !!!\r\n \t\tparams.removeQualifiers = true;\r\n \t\t\r\n //\t\tparams.valuesStartLineNum = 9;\r\n //\t\tparams.sendHeaderMode = 0;\r\n \r\n \t\t\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\r\n \t\t// Line 1\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value11\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value12\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value13\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value14\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 2\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value21\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value22.1,Value22.2, Value22.3\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value23\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value24\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\t\t\r\n \t\t// Line 4-7\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value31\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value32\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value33\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value34.1\\nValue34.2\\nValue34.3\\nValue34.4,Value34.5\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value35\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 9-12\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value41\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value42\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value43\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value44.1\\nValue44.2\\nValue44.3\\nValue44.4\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value45.1,Value45.2\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\t\t\r\n \t\t\r\n \t\t// Line 14-18\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value51\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value52\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value53\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value54.1\\nValue54.2\\nValue54.3\\nValue54.4,Value55.1,Value55.2\\nValue55.3,Value55.4\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 20-25\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value61\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value62\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value63\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value64.1\\nValue64.2\\nValue64.3\\nValue64.4,Value65.1,Value65.2\\nValue65.3,Value65.4\\n\" +\r\n \t\t\t\t\"Value65.5,Value66\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\t\t\r\n \t\t// -------------------------------------------------\r\n \t\t\r\n \t\t// Line 27-31\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value71\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value72 aaa quoted part 1, then quoted part 2 value,Value73,Value74\\n\" +\r\n \t\t\t\t\"Value81,Value82 with unclosed quote\\nValue91,Value92\\nValueA1,ValueA2\\nValueB1\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueB2,ValueB3\");\t\t// If quotation marks are not around field, preserve them \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueB4\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 32\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC1\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC2\");\t\t \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC3\");\t\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC4\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC5\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\tfilter.close();\r\n \t\t\r\n \t\t\r\n \t\t// Unwrap lines\r\n \t\tinput = TableFilterTest.class.getResourceAsStream(\"/csv_test3.txt\");\r\n \t\tassertNotNull(input);\r\n \t\t\r\n \t\tparams.wrapMode = WrapMode.SPACES; // !!!\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\r\n \t\t// Line 1\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value11\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value12\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value13\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value14\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 2\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value21\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value22.1,Value22.2, Value22.3\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value23\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value24\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\t\t\r\n \t\t// Line 4-7\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value31\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value32\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value33\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value34.1 Value34.2 Value34.3 Value34.4,Value34.5\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value35\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 9-12\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value41\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value42\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value43\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value44.1 Value44.2 Value44.3 Value44.4\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value45.1,Value45.2\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\t\t\r\n \t\t\r\n \t\t// Line 14-18\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value51\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value52\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value53\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value54.1 Value54.2 Value54.3 Value54.4,Value55.1,Value55.2 Value55.3,Value55.4\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 20\r\n \t\t// Line 20-25\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value61\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value62\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value63\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value64.1 Value64.2 Value64.3 Value64.4,Value65.1,Value65.2 Value65.3,Value65.4 \" +\r\n \t\t\t\t\"Value65.5,Value66\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t// -------------------------------------------------\r\n \t\t\r\n \t\t// Line 27-31\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value71\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value72 aaa quoted part 1, then quoted part 2 value,Value73,Value74 \" +\r\n \t\t\t\t\"Value81,Value82 with unclosed quote Value91,Value92 ValueA1,ValueA2 ValueB1\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueB2,ValueB3\");\t\t// If quotation marks are not around field, preserve them \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueB4\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 32\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC1\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC2\");\t\t \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC3\");\t\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC4\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC5\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\tfilter.close();\r\n \t}", "@Ignore\n @Test\n public void ECM() throws IOException {\n Files.readAllLines(Path.of(\"src/test/resources/ECM.EPD\")).stream().forEach(this::testPos);\n\n System.out.println(\"TESTS PASSED: \" + counter);\n System.out.println();\n }", "public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "public void testParFileReading() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n\n oManager = new GUIManager(null);\n \n //Valid file 1\n oManager.clearCurrentData();\n sFileName = writeFile1();\n oManager.inputXMLParameterFile(sFileName);\n SeedPredationBehaviors oPredBeh = oManager.getSeedPredationBehaviors();\n ArrayList<Behavior> p_oBehs = oPredBeh.getBehaviorByParameterFileTag(\"DensDepRodentSeedPredation\");\n assertEquals(1, p_oBehs.size());\n DensDepRodentSeedPredation oPred = (DensDepRodentSeedPredation) p_oBehs.get(0);\n double SMALL_VAL = 0.00001;\n \n assertEquals(oPred.m_fDensDepDensDepCoeff.getValue(), 0.07, SMALL_VAL);\n assertEquals(oPred.m_fDensDepFuncRespExpA.getValue(), 0.02, SMALL_VAL);\n\n assertEquals( ( (Float) oPred.mp_fDensDepFuncRespSlope.getValue().get(0)).\n floatValue(), 0.9, SMALL_VAL);\n assertEquals( ( (Float) oPred.mp_fDensDepFuncRespSlope.getValue().get(1)).\n floatValue(), 0.05, SMALL_VAL);\n\n //Test grid setup\n assertEquals(1, oPred.getNumberOfGrids());\n Grid oGrid = oManager.getGridByName(\"Rodent Lambda\");\n assertEquals(1, oGrid.getDataMembers().length);\n assertTrue(-1 < oGrid.getFloatCode(\"rodent_lambda\")); \n \n }\n catch (ModelException oErr) {\n fail(\"Seed predation validation failed with message \" + oErr.getMessage());\n }\n catch (java.io.IOException oE) {\n fail(\"Caught IOException. Message: \" + oE.getMessage());\n }\n finally {\n new File(sFileName).delete();\n }\n }", "@Test\r\n \tpublic void testFileEvents96_2() {\n \t\t\t\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/CSVTest_96_2.txt\"); // issue 96\r\n \t\tassertNotNull(input);\r\n \t\r\n \t\t// Set the parameters\r\n \t\tParameters params = new Parameters();\r\n \t\tsetDefaults(params);\r\n \t\tparams.fieldDelimiter = \",\";\r\n \t\tparams.textQualifier = \"\\\"\";\r\n \t\tparams.sendColumnsMode = Parameters.SEND_COLUMNS_LISTED;\r\n \t\tparams.sourceColumns = \"1\";\r\n \t\tparams.targetColumns = \"2\";\r\n \t\tparams.targetLanguages = locFRCA.toString();\r\n \t\tparams.targetSourceRefs = \"1\";\r\n \t\tfilter.setParameters(params);\r\n \t\t\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\t\t\t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"src\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"trg\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"data\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source1\", \"\", \"target1\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data1\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source2\", \"\", \"target2\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data2\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\tfilter.close();\r\n \t\t\r\n \t}", "public void test_insert3(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(4);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(1);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(2);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(1500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2);\r\n\t\texecute(blocks,\"insert3.txt\",0);\r\n\t}", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "private void readDataFile(int filetype, String filename) {\r\n\t\tint nfields=7; //number of data fields\r\n\t\tint i = 0; //temp elements counter\r\n\t\tint num_elements; //number of items (lines)\r\n\t\tString dataline;\r\n\t\tString[] elementdata;\r\n\t\ttry {\r\n\t\t\tFile filesource = new File(filename);\r\n\t\t\t//open data file\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(filesource.toURI().toURL().openStream()));\r\n\t\t\t//count elements\r\n\t\t\twhile(null != (dataline = in.readLine())) {\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t\tnum_elements = i;\r\n\t\t\t//num_elements = i+1;\r\n\t\t\t//set arrays size by case\r\n\t\t\tif (filetype == 0) {\r\n\t\t\t\tsetMultipliersArraySize(num_elements);\r\n\t\t\t\tnfields = 3;\r\n\t\t\t}\r\n\t\t\telse if (filetype == 1) {\r\n\t\t\t\tsetCategoriesArraySize(num_elements);\r\n\t\t\t\tnfields = 1;\r\n\t\t\t}\r\n\t\t\telse if (filetype == 2) {\r\n\t\t\t\tsetUnitsArraySize(num_elements);\r\n\t\t\t\tnfields = 7;\r\n\t\t\t}\r\n\t\t\telse if (filetype == 3) {\r\n\t\t\t\tp_label = new String[i];\r\n\t\t\t\tnfields = 1;\r\n\t\t\t}\r\n\r\n\t\t\ti = 0;\r\n\t\t\tin = new BufferedReader(new InputStreamReader(filesource.toURI().toURL().openStream()));\r\n\t\t\t//read lines (each line is one menu element)\r\n\t\t\twhile(null != (dataline = in.readLine())) {\r\n\t\t\t\t//get element data array\r\n\t\t\t\telementdata = StringUtil.splitData(dataline, '\\t', nfields);\r\n\t\t\t\t//assign data\r\n\t\t\t\tif (filetype == 0) { //multipliers file\r\n\t\t\t\t\tp_multiplier_name[i] = getEncodedString(getDefaultValue(elementdata[0], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t\tp_multiplier_description[i] = getEncodedString(getDefaultValue(elementdata[1], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t\tp_multiplier_value[i] = parseNumber(getDefaultValue(elementdata[2], \"1\"));\r\n\t\t\t\t}\r\n\t\t\t\telse if (filetype == 1) { //category file\r\n\t\t\t\t\tp_category_name[i] = getEncodedString(getDefaultValue(elementdata[0], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t}\r\n\t\t\t\telse if (filetype == 2) { //units file\r\n\t\t\t\t\tp_unit_category_id[i] = new Integer(elementdata[0]);\r\n\t\t\t\t\tp_unit_symbol[i] = getEncodedString(getDefaultValue(elementdata[1], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t\tp_unit_name[i] = getEncodedString(getDefaultValue(elementdata[2], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t\tp_unit_scale[i] = parseNumber(getDefaultValue(elementdata[3], \"1\"));\r\n\t\t\t\t\tp_unit_offset[i] = parseNumber(getDefaultValue(elementdata[4], \"0\"));\r\n\t\t\t\t\tp_unit_power[i] = parseNumber(getDefaultValue(elementdata[5], \"1\"));\r\n\t\t\t\t\tp_unit_description[i] = getEncodedString(getDefaultValue(elementdata[6], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t}\r\n\t\t\t\telse if (filetype == 3) { //labels file\r\n\t\t\t\t\tp_label[i] = getEncodedString(getDefaultValue(elementdata[0], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void testGetMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n assertEquals(reader.getMatrix().get(0, 0), -10.615, 0.001);\n assertEquals(reader.getMatrix().get(9, 1), 10.148, 0.001);\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"Error in readFilej) : \");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\");\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"\";\n stringArray0[3] = \"\";\n stringArray0[4] = \"Error in readFilej) : \";\n stringArray0[5] = \"\";\n EvoSuiteFile evoSuiteFile1 = new EvoSuiteFile(\"QZkj>P.|?`(ZTS\");\n FileSystemHandling.appendLineToFile(evoSuiteFile1, \"\");\n FileSystemHandling.appendStringToFile(evoSuiteFile1, \"\");\n stringArray0[7] = \"\";\n stringArray0[8] = \"\";\n StringReader stringReader0 = new StringReader(\"\");\n char[] charArray0 = new char[2];\n charArray0[0] = 'u';\n charArray0[1] = ']';\n stringReader0.read(charArray0);\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n JSJshop jSJshop0 = new JSJshop(\"QZkj>P.|?`(ZTS\", \"Error in readFilej) : \");\n JSTasks jSTasks0 = null;\n try {\n jSTasks0 = new JSTasks(streamTokenizer0);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSTasks\", e);\n }\n }", "@Test\n\tpublic void test7() throws IOException {\n\t\tboolean switch1 = false;\n\t\tHistoryStorage store = HistoryStorage.getInstance();\n\t\tstore.writeToHistory(HISTORY_TXT, LINE_1);\n\t\tstore.writeToHistory(HISTORY_TXT, LINE_2);\n\n\t\tString result = store.readFromHistory(HISTORY_TXT);\n\t\tif (result.split(\"\\n\")[1].equals(LINE_1)\n\t\t\t\t&& result.split(\"\\n\")[0].equals(LINE_2)) {\n\t\t\tswitch1 = true;\n\t\t}\n\t\tassertTrue(switch1);\n\t}", "static StringReader testData() {\n return new StringReader(\n \"@stboundedby, urn:ogc:def:crs:CRS:1.3:84, 2D, 50.23 9.23, 50.31 9.27, 2012-01-17T12:33:41Z, 2012-01-17T12:37:00Z, sec\\n\" +\n \"@columns, mfidref, trajectory, state,xsd:string, \\\"\\\"\\\"type\\\"\\\" code\\\",xsd:integer\\n\" +\n \"@foliation,Time\\n\" +\n \"a, 10, 150, 11.0 2.0 12.0 3.0, walking, 1\\n\" +\n \"b, 10, 190, 10.0 2.0 11.0 3.0, walking, 2\\n\" +\n \"a, 150, 190, 12.0 3.0 10.0 3.0\\n\" + // Omitted values are same as previous line.\n \"c, 10, 190, 12.0 1.0 10.0 2.0 11.0 3.0, vehicle, 1\\n\");\n }", "@Test\n public void test4() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b, flatten(1);\" +\n \"C = FILTER B BY \" + SIZE.class.getName() +\"(TOTUPLE(*)) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator fe2 = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe2 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n }", "private void readFromFile(String filename) {\n\t\ttry {\n\t\t Scanner read = new Scanner(new File(filename));\n\t\t String line;\n\t\t int counter = 0;\n\t\t String temp;\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\t\t height = convertToInt(temp);\n\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\n\t\t length = convertToInt(temp);\n\t\t size = height*length;\n\t\t \n\t\t squares = new Square[size][size];\n\n\t\t while(read.hasNextLine()) {\n\t\t\t\tline = read.nextLine();\n\t\t \tfor (int i = 0; i < line.length(); i++) {\n\t\t \t temp = line.substring(i, i+1);\n\n\t\t \t if (temp.equals(\".\")) {\n\t\t \t\t\tsquares[counter][i] = new FindValue(0);\n\t\t \t } \n\t\t \t else {\n\t\t\t\t\t\tsquares[counter][i] = new PreFilled(convertToInt(temp));\n\t\t\t \t\t}\n\t\t \t}\n\t\t \tcounter++;\n\t\t }\n\t\t} catch(IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "@Test\n\tpublic void testYellowTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.990371704101563,\n\t\t\t\t40.734695434570313, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateLow.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void whenReadFileThenResultLinesFromFile() {\n Cache cache = new Cache(\"c:/temp\");\n String result = cache.readFile(\"names.txt\");\n assertThat(result, is(String.format(\"Ivan%sVictor%sPetr%s\", sep, sep, sep)));\n }", "@Override\n protected void initDerivedTpchQ17() throws IOException {\n ArrayList<LVReplicaPartition> concatenated = new ArrayList<LVReplicaPartition>();\n for (LVReplicaPartition[] partitions : lineitemPartitionLists) {\n for (LVReplicaPartition partition : partitions) {\n concatenated.add(partition);\n }\n }\n lineitemNodeMap = createNodeMap (concatenated.toArray(new LVReplicaPartition[0]), \"lineitem\");\n partNodeMap = createNodeMap (partPartitions, \"part\");\n partGroup = metaRepo.getReplicaGroup(partScheme.getGroupId());\n assert (partGroup != null);\n l_partkey = metaRepo.getColumnByName(lineitemTable.getTableId(), \"l_partkey\");\n assert (l_partkey != null);\n l_extendedprice = metaRepo.getColumnByName(lineitemTable.getTableId(), \"l_extendedprice\");\n assert (l_extendedprice != null);\n l_quantity = metaRepo.getColumnByName(lineitemTable.getTableId(), \"l_quantity\");\n assert (l_quantity != null);\n }", "public ArrayList<quizImpl> readFile() {\n\n // The name of the file to open.\n String fileName = \"Quizzes.txt\";\n\n // This will reference one line at a time\n String line;\n\n try {\n //reads file twice the first time adding contacts the second adding meetings\n // FileReader reads text files in the default encoding.\n FileReader fileReader = new FileReader(fileName);\n\n // Wrap FileReader in BufferedReader.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n quizzes.add(line);\n }\n bufferedReader.close();\n for (String s : quizzes) {\n if (s.startsWith(\"quizName\")) {\n //splits the line into an array of strings\n String[] stringArray = s.split(\",\");\n //If game already has a highScore\n if (stringArray.length > 3) {\n if (stringArray[stringArray.length - 3].equals(\"highScore\")) {\n quizImpl q = new quizImpl(stringArray[1], stringArray[stringArray.length - 2], Integer.parseInt(stringArray[stringArray.length - 1]));\n for (int i = 2; i < stringArray.length - 3; i = i + 6) {\n q.addQuestion(stringArray[i], stringArray[i + 1], stringArray[i + 2], stringArray[i + 3], stringArray[i + 4], Integer.parseInt(stringArray[i + 5]));\n }\n quizArray.add(q);\n } else {\n quizImpl q = new quizImpl(stringArray[1]);\n for (int i = 2; i < stringArray.length; i = i + 6) {\n q.addQuestion(stringArray[i], stringArray[i + 1], stringArray[i + 2], stringArray[i + 3], stringArray[i + 4], Integer.parseInt(stringArray[i + 5]));\n }\n quizArray.add(q);\n }\n } else {\n quizImpl q = new quizImpl(stringArray[1]);\n for (int i = 2; i < stringArray.length; i = i + 6) {\n q.addQuestion(stringArray[i], stringArray[i + 1], stringArray[i + 2], stringArray[i + 3], stringArray[i + 4], Integer.parseInt(stringArray[i + 5]));\n }\n quizArray.add(q);\n }\n }\n }\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n return quizArray;\n }", "static void experiment1Day1Part1() {\n\n File file = new File(\"src/main/java/weekone/input01.txt\");\n FileReader fileReader = null;\n BufferedReader bufferedReader = null;\n int sum = 0;\n\n try {\n fileReader = new FileReader(file);\n bufferedReader = new BufferedReader(fileReader);\n\n while ((bufferedReader.read() != -1)) {\n String line = bufferedReader.readLine();\n System.out.println(\"\\nThe string is: \" + line);\n int number = Integer.valueOf(line);\n\n System.out.println(\"The number is: \" + number);\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fileReader != null)\n fileReader.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n System.out.println(\"The sum is: \" + sum);\n }", "@Test\n\tpublic void testYellowTaxiRangeTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.YELLOWTAXI_RANGE);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(TAXI_TEST_LINE, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal SimpleDateFormat dateParser = new SimpleDateFormat(\"yyyy-mm-dd HH:mm:ss\");\n\t\tfinal Date dateLow = dateParser.parse(\"2016-01-01 00:00:00\");\n\t\tfinal Date dateHigh = dateParser.parse(\"2016-01-01 00:00:00\");\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(-73.990371704101563, -73.981842041015625,\n\t\t\t\t40.732406616210937, 40.734695434570313,\n\t\t\t\t(double) dateLow.getTime(), (double) dateHigh.getTime());\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void testExample3() {\n assertSolution(\"-6\", \"example-day01-2018-3.txt\");\n }", "@Test\n public void testBasicRead() throws IOException {\n String output = singleLineFileInit(file, Charsets.UTF_8);\n\n PositionTracker tracker = new DurablePositionTracker(meta, file.getPath());\n ResettableInputStream in = new ResettableFileInputStream(file, tracker);\n\n String result = readLine(in, output.length());\n assertEquals(output, result);\n\n String afterEOF = readLine(in, output.length());\n assertNull(afterEOF);\n\n in.close();\n }", "@Test\n\tpublic void testRomeTaxiPointTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_POINT);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790007028d,\n\t\t\t\t41.91924450823211, 41.91924450823211,\n\t\t\t\t12.5027184734508, 12.5027184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}", "@Test\n public void testParse() {\n System.out.println(\"testing parse\");\n instance.parse();\n if(Scientists.getScientistList().isEmpty()){\n fail(\"Unable to parse database file\");\n }\n // all lines should be parsed\n assertEquals(countLines(), Scientists.getScientistList().size()); \n System.out.println(Scientists.toPlain());\n }", "@Test\n\tpublic void testBerlinModTupleBuilder() {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.BERLINMOD);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(BERLINMOD, \"1\");\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(Integer.toString(1), tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(52.4981d, 52.4981d, 13.327d, 13.327d);\n\t\t\t\t\n\t\tAssert.assertEquals(1180224000000L, tuple.getVersionTimestamp());\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t}" ]
[ "0.6841933", "0.64200556", "0.6253322", "0.5968343", "0.5796541", "0.57869613", "0.57597077", "0.57048655", "0.56782216", "0.5617918", "0.5595664", "0.55775326", "0.5480814", "0.5469382", "0.54679763", "0.5441572", "0.5434384", "0.540035", "0.53986216", "0.53974503", "0.53849036", "0.5381191", "0.53507435", "0.5335748", "0.53318906", "0.5305136", "0.52751255", "0.5268558", "0.5264434", "0.5260986", "0.5259161", "0.52565175", "0.5242529", "0.5218481", "0.52090526", "0.5202643", "0.51908433", "0.51783425", "0.51576394", "0.5156362", "0.5156108", "0.51540893", "0.51302063", "0.5125371", "0.5115968", "0.51126474", "0.5106038", "0.5103519", "0.5103019", "0.50840014", "0.50837207", "0.50775385", "0.5076945", "0.50669223", "0.5050595", "0.50482535", "0.50473547", "0.50469387", "0.50450134", "0.50436085", "0.50431633", "0.50410235", "0.50346035", "0.5007498", "0.50021636", "0.50019187", "0.4995793", "0.49915156", "0.49858806", "0.4974382", "0.4973854", "0.49726698", "0.49703413", "0.4970219", "0.49666697", "0.49632162", "0.4959974", "0.49557295", "0.49484274", "0.49442664", "0.4938387", "0.49341625", "0.49339885", "0.4929182", "0.49269688", "0.49245992", "0.49242428", "0.49226812", "0.49153417", "0.49124354", "0.4912388", "0.49101716", "0.49094725", "0.4908912", "0.49082866", "0.49056965", "0.49041685", "0.49009395", "0.48993927", "0.4896139" ]
0.67151576
1
Optional. 1 or 0 (true/false) Setting to true will cause the vindicator to exhibit Johnny behavior. Setting to false will prevent the vindicator exhibiting Johnny behavior, even if named Johnny.
public byte getJohnny() { return compound.getByte("Johnny"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setV(boolean v) {\n\tthis.v = v;\n }", "public void setHasVacuum(boolean value){this.hasVacuum = value;}", "public void setIndicadorNuevo(boolean indicadorNuevo)\r\n/* 215: */ {\r\n/* 216:222 */ this.indicadorNuevo = indicadorNuevo;\r\n/* 217: */ }", "public void setVivant(boolean vivant)\r\n\t{\r\n\t\tthis.vivant = vivant;\r\n\t}", "public void setIndicadorImpreso(boolean indicadorImpreso)\r\n/* 175: */ {\r\n/* 176:190 */ this.indicadorImpreso = indicadorImpreso;\r\n/* 177: */ }", "void setVisivel(boolean visivel);", "public void setPPV(Boolean ppv)\n\t{\n\t\tthis.ppv = ppv;\n\t}", "public boolean getVDD(){return this.vientDeDouble;}", "void setInactive(boolean aInactive) {\n/* 4829 */ this.inactive = aInactive;\n/* */ }", "void setInvoiced(boolean invoiced);", "public void setVo(boolean vo) {\n this.vo = vo;\n }", "public void setAugment(boolean aValue);", "public void setVIP(boolean VIP);", "Boolean getIndemnity();", "public void setAchieved(Boolean newValue);", "public void setU(boolean u) {\n\tthis.u = u;\n }", "public boolean isIndicadorNuevo()\r\n/* 210: */ {\r\n/* 211:218 */ return this.indicadorNuevo;\r\n/* 212: */ }", "public void indicateNot() {\r\n notIndicated = true;\r\n }", "boolean getIsVegetable();", "public void setVar290(java.lang.Boolean value) {\n this.var290 = value;\n }", "public boolean getHasVacuum(){return this.hasVacuum;}", "void xsetCapitalInKind(ch.crif_online.www.webservices.crifsoapservice.v1_00.NullableBoolean capitalInKind);", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public boolean Init(int v_Age, int v_Salary, boolean v_Married){\n\tAge = v_Age ;\n\tSalary = v_Salary ;\n\tMarried = v_Married ;\n\treturn true ;\n }", "public void setIndicative(String string) {\n\t\t\r\n\t}", "public void setTallied(java.lang.Boolean value);", "public void setBool(String parName, boolean parVal) throws HibException;" ]
[ "0.6771163", "0.6123328", "0.6070498", "0.59422076", "0.5930227", "0.588861", "0.5868426", "0.58258915", "0.58249724", "0.578416", "0.5762678", "0.57442033", "0.5742004", "0.5729519", "0.566614", "0.56491303", "0.5640724", "0.5633752", "0.5633667", "0.56233674", "0.56231195", "0.5606709", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5556244", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.5554022", "0.55472463", "0.5546881", "0.55404687" ]
0.0
-1
ListFrame constructor add JScrollPane containing JList to JFrame
public ListFrameRobots(ArrayList<Team> teamRobotInfo) { super( "List Test" ); setLayout( new FlowLayout() ); // set frame layout for(int i = 0; i < 12; i ++) { teamNames[i] = teamRobotInfo.get(i).getTeamName(); } teamNamesJList = new JList(teamNames); teamNamesJList.setVisibleRowCount(12); teamNamesJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); /* add( new JScrollPane(teamNamesJList)); colorJList.addListSelectionListener( new ListSelectionListener() // anonymous inner class { // handle list selection events public void valueChanged( ListSelectionEvent event ) { getContentPane().setBackground( colors[ colorJList.getSelectedIndex() ] ); label.setName("Dogs"); } // end method valueChanged } // end anonymous inner class ); // end call to addListSelectionListener /* teamNamesJList.addListSelectionListener( new ListSelectionListener() // anonymous inner class { // handle list selection events public void valueChanged( ListSelectionEvent event ) { getContentPane().setBackground( colors[ colorJList.getSelectedIndex() ] ); } // end method valueChanged } // end anonymous inner class ); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">\r\n private void initComponents() {\r\n\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n jList1 = new ScrollableList();\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n\r\n jScrollPane1.setBackground(new java.awt.Color(37, 37, 37));\r\n jScrollPane1.setBorder(null);\r\n\r\n jList1.setForeground(new java.awt.Color(51, 51, 51));\r\n jList1.setModel(new javax.swing.AbstractListModel() {\r\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\r\n public int getSize() { return strings.length; }\r\n public Object getElementAt(int i) { return strings[i]; }\r\n });\r\n jList1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\r\n jList1.setOpaque(false);\r\n jList1.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\r\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\r\n jList1ValueChanged(evt);\r\n }\r\n });\r\n jList1.addComponentListener(new java.awt.event.ComponentAdapter() {\r\n public void componentResized(java.awt.event.ComponentEvent evt) {\r\n jList1ComponentResized(evt);\r\n }\r\n });\r\n jScrollPane1.setViewportView(jList1);\r\n\r\n add(jScrollPane1, java.awt.BorderLayout.CENTER);\r\n }", "public JScrollPane vytvorList() {\n listModel = new DefaultListModel();\n //listModel.addElement(\"Hra: 0 DUMMY\");\n\n listHer = new JList(listModel);\n listHer.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n listHer.setSelectedIndex(0);\n listHer.addListSelectionListener(this);\n listHer.setVisibleRowCount(7);\n listHer.setVisible(true);\n\n JScrollPane listScrollPane = new JScrollPane(listHer);\n listScrollPane.setPreferredSize(new Dimension(250, 300));\n listScrollPane.setVisible(true);\n listScrollPane.setName(\"hry\");\n\n return listScrollPane;\n }", "private void initList() {\r\n\t\tthis.panelList = new JPanel();\r\n\t\tthis.panelList.setLayout(new BoxLayout(this.panelList,\r\n\t\t\t\tBoxLayout.PAGE_AXIS));\r\n\r\n\t\tJLabel labelList = new JLabel(\"Weapons list\");\r\n\t\tlabelList.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.dlm = new DefaultListModel<String>();\r\n\t\tthis.list = new JList<String>(dlm);\r\n\t\tthis.scrollPane = new JScrollPane(this.list,\r\n\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\r\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\tthis.scrollPane.setBounds(new Rectangle(10, 10, 450, 80));\r\n\t\tthis.list.addMouseListener(this.editWeaponControl);\r\n\t\tthis.updateList();\r\n\t\tthis.panelList.add(labelList);\r\n\t\tthis.panelList.add(this.scrollPane);\r\n\t}", "private void initialize() {\n\t\tfrmEjemploUsoListas = new JFrame();\n\t\tfrmEjemploUsoListas.setTitle(\"Ejemplo uso listas\");\n\t\tfrmEjemploUsoListas.setBounds(100, 100, 447, 260);\n\t\tfrmEjemploUsoListas.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmEjemploUsoListas.getContentPane().setLayout(null);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(12, 42, 138, 130);\n\t\tfrmEjemploUsoListas.getContentPane().add(scrollPane);\n\t\tJList list = new JList();\n\t\tscrollPane.setViewportView(list);\n\t\t\n\t\tJLabel lblAficiones = new JLabel(\"Aficiones\");\n\t\tlblAficiones.setBounds(12, 13, 138, 16);\n\t\tfrmEjemploUsoListas.getContentPane().add(lblAficiones);\n\t\t\n\t\tJTextPane textPaneAficiones = new JTextPane();\n\t\ttextPaneAficiones.setFont(new Font(\"Consolas\", Font.BOLD, 14));\n\t\ttextPaneAficiones.setBackground(SystemColor.menu);\n\t\ttextPaneAficiones.setEditable(false);\n\t\ttextPaneAficiones.setBounds(162, 62, 255, 113);\n\t\tfrmEjemploUsoListas.getContentPane().add(textPaneAficiones);\n\t\t\n\t\tlist.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\tList values = list.getSelectedValuesList();\n\t\t\t\tString str = \"Elementos seleccionados: \" + values.size() + \". \";\n\t\t\t\tfor (int i = 0; i < values.size(); i++) {\n\t\t\t\t\tstr += values.get(i).toString();\n\t\t\t\t\tif (i != values.size()-1) str += \", \";\n\t\t\t\t\telse str += \".\";\n\t\t\t\t}\n\t\t\t\ttextPaneAficiones.setText(str);\n\t\t\t}\n\t\t});\n\t\tlist.setModel(new AbstractListModel() {\n\t\t\tString[] values = new String[] {\"Cine\", \"Series\", \"Videojuegos\", \"Cosplay\", \"Deportes\", \"M\\u00FAsica\", \"Viajes\", \"Cocina\"};\n\t\t\tpublic int getSize() {\n\t\t\t\treturn values.length;\n\t\t\t}\n\t\t\tpublic Object getElementAt(int index) {\n\t\t\t\treturn values[index];\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}", "private void initComponents() {\n\t\tlistPanel = new JPanel();\r\n\r\n\t\t//======== this ========\r\n\t\tsetLayout(new BorderLayout());\r\n\r\n\t\t//======== listPanel ========\r\n\t\t{\r\n\t\t\tlistPanel.setAutoscrolls(true);\r\n\t\t\tlistPanel.setLayout(new BoxLayout(listPanel, BoxLayout.Y_AXIS));\r\n\t\t}\r\n\t\tadd(listPanel, BorderLayout.CENTER);\r\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\r\n\t}", "private void setupCourseList(){\n\t\tcourseList = new JList<>(listModel);\n\t\tcourseList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tcourseList.setLayoutOrientation(JList.VERTICAL);\n\t\t\n\t\tJScrollPane scroller = new JScrollPane(courseList);\n\t\tscroller.setMaximumSize(new Dimension(400,300));\n\t\tadd(scroller);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane2 = new javax.swing.JScrollPane();\n RestaurantList = new javax.swing.JList<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new javax.swing.OverlayLayout(getContentPane()));\n\n jScrollPane2.setViewportView(RestaurantList);\n\n getContentPane().add(jScrollPane2);\n\n pack();\n }", "public PointListDialog(final Frame owner) {\n\t\tsuper(owner, \"Point list\");\n\t\tpanel = new Panel();\n\t\tgridbag = new GridBagLayout();\n\t\tpanel.setLayout(gridbag);\n\n\t\tpanel.setBackground(Color.WHITE);\n\t\tc = new GridBagConstraints();\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.anchor = GridBagConstraints.NORTHWEST;\n\t\tc.weighty = 0.1f;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tfinal ScrollPane scroll = new ScrollPane();\n\t\tscroll.add(panel);\n\t\tadd(scroll);\n\t}", "private JPanel setupList() {\n\t\tString Cities[] = { \"New York\", \"Chicago\", \"Houston\",\n\t\t\"Denver\", \"Los Angeles\", \"Seattle\",\n\t\t\"London\", \"Paris\", \"New Delhi\",\n\t\t\"Hong Kong\", \"Tokyo\", \"Sydney\" };\n\t\t\n\t\tJList<String> aList = new JList<String>(Cities);\n\t\taList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\taList.addListSelectionListener(event -> {\n\t\t\t// Get the index of the changed item.\n\t\t\tint idx = aList.getSelectedIndex();\n\t\t\t// Display selection, if item was selected.\n\t\t\tif(idx != -1)\n\t\t\t\ttfStatus.setText(\"List selection: \" + Cities[idx]);\n\t\t\telse // Otherwise, reprompt.\n\t\t\t\ttfStatus.setText(\"Choose a City\");\n\t\t\t});\n\n\t\tJScrollPane aScrollPane = new JScrollPane(aList);\n\t\taScrollPane.setPreferredSize(new Dimension(120, 180));\n\n\t\t// create a tree\n\t\t// Create rootHome node of tree.\n\t\tDefaultMutableTreeNode root = new DefaultMutableTreeNode(\"Cities\");\n\t\t// Create subtree of cities by continent\n\t\tDefaultMutableTreeNode northAmerica = new DefaultMutableTreeNode(\"North America\");\n\t\troot.add(northAmerica);\n\t\tDefaultMutableTreeNode a1 = new DefaultMutableTreeNode(\"New York\");\n\t\tnorthAmerica.add(a1);\n\t\tDefaultMutableTreeNode a2 = new DefaultMutableTreeNode(\"Chicago\");\n\t\tnorthAmerica.add(a2);\n\t\tDefaultMutableTreeNode a3 = new DefaultMutableTreeNode(\"Houston\");\n\t\tnorthAmerica.add(a3);\n\t\tDefaultMutableTreeNode a4 = new DefaultMutableTreeNode(\"Denver\");\n\t\tnorthAmerica.add(a4);\n\t\tDefaultMutableTreeNode a5 = new DefaultMutableTreeNode(\"Los Angeles\");\n\t\tnorthAmerica.add(a5);\n\t\tDefaultMutableTreeNode a6 = new DefaultMutableTreeNode(\"Seattle\");\n\t\tnorthAmerica.add(a6);\n\t\tDefaultMutableTreeNode europe = new DefaultMutableTreeNode(\"Europe\");\n\t\troot.add(europe);\n\t\tDefaultMutableTreeNode e1 = new DefaultMutableTreeNode(\"London\");\n\t\teurope.add(e1);\n\t\tDefaultMutableTreeNode e2 = new DefaultMutableTreeNode(\"Paris\");\n\t\teurope.add(e2);\n\t\tDefaultMutableTreeNode asia = new DefaultMutableTreeNode(\"Asia\");\n\t\troot.add(asia);\n\t\tDefaultMutableTreeNode as1 = new DefaultMutableTreeNode(\"New Delhi\");\n\t\tasia.add(as1);\n\t\tDefaultMutableTreeNode as2 = new DefaultMutableTreeNode(\"Hong Kong\");\n\t\tasia.add(as2);\n\t\tDefaultMutableTreeNode as3 = new DefaultMutableTreeNode(\"Tokyo\");\n\t\tasia.add(as3);\n\t\tDefaultMutableTreeNode australia = new DefaultMutableTreeNode(\"Australia\");\n\t\troot.add(australia);\n\t\tDefaultMutableTreeNode au1 = new DefaultMutableTreeNode(\"Sydney\");\n\t\taustralia.add(au1);\n\t\t// create tree\n\t\tJTree citiesTree = new JTree(root);\n\t\tcitiesTree.addTreeSelectionListener(event -> {\n\t\t\ttfStatus.setText(\"Tree selection: \" + event.getPath());\n\t\t\taList.setSelectedValue(event.getPath().getLastPathComponent().toString(), true);\n\t\t});\n\t\tJScrollPane treeScroll = new JScrollPane(citiesTree);\n\n\t\tJPanel aPanel = new JPanel();\n\t\taPanel.setLayout(new BorderLayout());\t\n\t\taPanel.setBorder(BorderFactory.createTitledBorder(\"Cities\"));\n\t\taPanel.add(treeScroll, BorderLayout.WEST);\n\t\taPanel.add(aScrollPane, BorderLayout.CENTER);\n\t\treturn aPanel;\n\t}", "private void initComponents() {\n jScrollPane1 = new javax.swing.JScrollPane();\n llistaPacients = new javax.swing.JList();\n botoOK = new javax.swing.JButton();\n botoCancela = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"pfcHistorials - Llistat de pacients assignats al metge\");\n setAlwaysOnTop(true);\n llistaPacients.setModel(this.llistaPacientsModel);\n jScrollPane1.setViewportView(llistaPacients);\n\n botoOK.setText(\"D'acord\");\n botoOK.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botoOKActionPerformed(evt);\n }\n });\n\n botoCancela.setText(\"Cancel\\u00b7la\");\n botoCancela.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botoCancelaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(botoOK)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 19, Short.MAX_VALUE)\n .addComponent(botoCancela)\n .addGap(144, 144, 144))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botoCancela)\n .addComponent(botoOK))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n pack();\n }", "private void initComponents() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 987, 717);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 0, 189, 678);\n\t\tcontentPane.add(panel);\n\n\t\tJLabel label = new JLabel();\n\t\tlabel.setText(\"货 物\");\n\t\tlabel.setFont(new Font(\"微软雅黑\", Font.PLAIN, 14));\n\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\n\t\tgl_panel.setHorizontalGroup(gl_panel\n\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(\n\t\t\t\t\t\tgl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tgl_panel.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(71)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tscrollPane,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t160,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_panel.setVerticalGroup(gl_panel.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_panel.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(label)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t613, Short.MAX_VALUE).addContainerGap()));\n\n\t\tsaleGoodjList = new JList();\n\t\tscrollPane.setViewportView(saleGoodjList);\n\t\tpanel.setLayout(gl_panel);\n\n\t\tscrollPane_1 = new JScrollPane();\n\t\tscrollPane_1.setBounds(199, 498, 764, 180);\n\t\tcontentPane.add(scrollPane_1);\n\n\t\tsaleTable = new JTable();\n\t\t// saleTable.setModel();\n\t\tsaleTable.setToolTipText(\"窗帘\");\n\t\tscrollPane_1.setViewportView(saleTable);\n\n\t\tJLabel saleTotal = new JLabel(\"总价:\");\n\t\tsaleTotal.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tsaleTotal.setBounds(209, 199, 45, 25);\n\t\tcontentPane.add(saleTotal);\n\n\t\tJLabel label_8 = new JLabel(\"\");\n\t\tlabel_8.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_8.setBounds(253, 643, 54, 20);\n\t\tcontentPane.add(label_8);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new TitledBorder(null, \"\\u5BA2\\u6237\\u4FE1\\u606F\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_1.setBounds(199, 10, 480, 115);\n\t\tcontentPane.add(panel_1);\n\t\tpanel_1.setLayout(null);\n\n\t\tJLabel label_1 = new JLabel(\"姓名:\");\n\t\tlabel_1.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(14, 26, 45, 15);\n\t\tpanel_1.add(label_1);\n\n\t\tcustomerName = new JTextField();\n\t\tcustomerName.setColumns(10);\n\t\tcustomerName.setBounds(73, 23, 103, 21);\n\t\tpanel_1.add(customerName);\n\n\t\tJLabel label_3 = new JLabel(\"电话:\");\n\t\tlabel_3.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(190, 26, 45, 15);\n\t\tpanel_1.add(label_3);\n\n\t\tcustomerTel1 = new JTextField();\n\t\tcustomerTel1.setColumns(10);\n\t\tcustomerTel1.setBounds(249, 23, 100, 21);\n\t\tpanel_1.add(customerTel1);\n\n\t\tcustomerTel2 = new JTextField();\n\t\tcustomerTel2.setColumns(10);\n\t\tcustomerTel2.setBounds(363, 23, 100, 21);\n\t\tpanel_1.add(customerTel2);\n\n\t\tJLabel label_6 = new JLabel(\"地址:\");\n\t\tlabel_6.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_6.setBounds(16, 52, 45, 16);\n\t\tpanel_1.add(label_6);\n\n\t\tcustomerAdr = new JTextField();\n\t\tcustomerAdr.setColumns(10);\n\t\tcustomerAdr.setBounds(77, 51, 383, 21);\n\t\tpanel_1.add(customerAdr);\n\n\t\tcustomerDeposit = new JTextField();\n\t\tcustomerDeposit.setColumns(10);\n\t\tcustomerDeposit.setBounds(63, 78, 66, 21);\n\t\tpanel_1.add(customerDeposit);\n\n\t\tJLabel label_7 = new JLabel(\"定金:\");\n\t\tlabel_7.setFont(new Font(\"新宋体\", Font.PLAIN, 14));\n\t\tlabel_7.setBounds(9, 78, 45, 21);\n\t\tpanel_1.add(label_7);\n\n\t\taddCustomerAl = new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddCustomerActionPerformed(e);\n\t\t\t}\n\t\t};\n\t\taddCustomerBtn = new JButton(\"添加客户\");\n\t\taddCustomerBtn.addActionListener(addCustomerAl);\n\t\taddCustomerBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\taddCustomerBtn.setBounds(366, 76, 103, 23);\n\t\tpanel_1.add(addCustomerBtn);\n\n\t\tJButton customerModifyBtn = new JButton(\"修改\");\n\t\tcustomerModifyBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tcustomerModifyBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tcustomerModifyBtn.setBounds(290, 76, 67, 23);\n\t\tpanel_1.add(customerModifyBtn);\n\n\t\tJButton customerDelBtn = new JButton(\"删除\");\n\t\tcustomerDelBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tcustomerDelBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tcustomerDelBtn.setBounds(214, 76, 67, 23);\n\t\tpanel_1.add(customerDelBtn);\n\n\t\tJButton newButton = new JButton(\"新建\");\n\t\tnewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tclearAll();\n\t\t\t\tif (addCustomerBtn.getActionListeners().length == 0) {\n\t\t\t\t\taddCustomerBtn.addActionListener(addCustomerAl);\n\t\t\t\t}\n\t\t\t\taddCustomerBtn.setEnabled(true);\n\t\t\t\tnameLab.setText(\"\");\n\t\t\t\tadrLab.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tnewButton.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tnewButton.setBounds(138, 76, 67, 23);\n\t\tpanel_1.add(newButton);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBounds(689, 10, 274, 340);\n\t\tcontentPane.add(panel_2);\n\n\t\tJLabel label_9 = new JLabel();\n\t\tlabel_9.setText(\"历史订单\");\n\t\tlabel_9.setFont(new Font(\"微软雅黑\", Font.PLAIN, 14));\n\n\t\tJScrollPane scrollPane_2 = new JScrollPane();\n\t\tGroupLayout gl_panel_2 = new GroupLayout(panel_2);\n\t\tgl_panel_2\n\t\t\t\t.setHorizontalGroup(gl_panel_2\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_panel_2\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_panel_2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_panel_2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tscrollPane_2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t169,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_panel_2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel_9)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(100)))));\n\t\tgl_panel_2.setVerticalGroup(gl_panel_2.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_panel_2\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(label_9)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(scrollPane_2, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t339, Short.MAX_VALUE).addContainerGap()));\n\n\t\tsaleLatelyjList = new JList();\n\t\tscrollPane_2.setViewportView(saleLatelyjList);\n\t\tpanel_2.setLayout(gl_panel_2);\n\n\t\tJLabel label_22 = new JLabel(\"宽度:\");\n\t\tlabel_22.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_22.setBounds(924, 181, 56, 15);\n\t\tcontentPane.add(label_22);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setBorder(new TitledBorder(null, \"\\u8D27\\u7269\\u4FE1\\u606F\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_3.setBounds(199, 228, 480, 260);\n\t\tcontentPane.add(panel_3);\n\t\tpanel_3.setLayout(null);\n\n\t\tJLabel label_2 = new JLabel(\"窗帘布:\");\n\t\tlabel_2.setBounds(5, 88, 56, 15);\n\t\tpanel_3.add(label_2);\n\t\tlabel_2.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel lblNewLabel = new JLabel(\"布带:\");\n\t\tlblNewLabel.setBounds(5, 119, 56, 15);\n\t\tpanel_3.add(lblNewLabel);\n\t\tlblNewLabel.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_16 = new JLabel(\"花边:\");\n\t\tlabel_16.setBounds(5, 147, 56, 15);\n\t\tpanel_3.add(label_16);\n\t\tlabel_16.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_19 = new JLabel(\"窗帘圈:\");\n\t\tlabel_19.setBounds(5, 175, 56, 15);\n\t\tpanel_3.add(label_19);\n\t\tlabel_19.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_13 = new JLabel(\"窗帘杆:\");\n\t\tlabel_13.setBounds(5, 205, 56, 15);\n\t\tpanel_3.add(label_13);\n\t\tlabel_13.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tcurtainRodName = new JTextField();\n\t\tcurtainRodName.setBounds(66, 199, 130, 21);\n\t\tpanel_3.add(curtainRodName);\n\t\tcurtainRodName.setEditable(false);\n\t\tcurtainRodMA = new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\treBuildGoodLst(\"C-杆\");\n\t\t\t}\n\t\t};\n\t\tcurtainRodName.addMouseListener(curtainRodMA);\n\t\tcurtainRodName.setColumns(10);\n\n\t\tcurtainRingName = new JTextField();\n\t\tcurtainRingName.setBounds(66, 169, 130, 21);\n\t\tpanel_3.add(curtainRingName);\n\t\tcurtainRingName.setEditable(false);\n\t\tcurtainRingMA = new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\treBuildGoodLst(\"C-孔\");\n\t\t\t}\n\t\t};\n\t\tcurtainRingName.addMouseListener(curtainRingMA);\n\t\tcurtainRingName.setColumns(10);\n\n\t\tcurtainLaceName = new JTextField();\n\t\tcurtainLaceName.setBounds(66, 141, 130, 21);\n\t\tpanel_3.add(curtainLaceName);\n\t\tcurtainLaceName.setEditable(false);\n\t\tcurtainLaceMA = new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\treBuildGoodLst(\"C-花边\");\n\t\t\t}\n\t\t};\n\t\tcurtainLaceName.addMouseListener(curtainLaceMA);\n\t\tcurtainLaceName.setColumns(10);\n\n\t\tcurtainTapeName = new JTextField();\n\t\tcurtainTapeName.setBounds(66, 113, 130, 21);\n\t\tpanel_3.add(curtainTapeName);\n\t\tcurtainTapeName.setEditable(false);\n\t\tcurtainTapeMA = new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\treBuildGoodLst(\"C-布带\");\n\t\t\t}\n\t\t};\n\t\tcurtainTapeName.addMouseListener(curtainTapeMA);\n\t\tcurtainTapeName.setColumns(10);\n\n\t\tcurtainClothName = new JTextField();\n\t\tcurtainClothName.setBounds(66, 82, 130, 21);\n\t\tpanel_3.add(curtainClothName);\n\t\tcurtainClothName.setEditable(false);\n\t\tcurtainClothMA = new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\treBuildGoodLst(\"A-\");\n\t\t\t}\n\t\t};\n\t\tcurtainClothName.addMouseListener(curtainClothMA);\n\t\tcurtainClothName.setColumns(10);\n\n\t\tJLabel label_4 = new JLabel(\"价格:\");\n\t\tlabel_4.setBounds(201, 88, 45, 15);\n\t\tpanel_3.add(label_4);\n\t\tlabel_4.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_10 = new JLabel(\"价格:\");\n\t\tlabel_10.setBounds(201, 119, 45, 15);\n\t\tpanel_3.add(label_10);\n\t\tlabel_10.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_17 = new JLabel(\"价格:\");\n\t\tlabel_17.setBounds(201, 147, 45, 15);\n\t\tpanel_3.add(label_17);\n\t\tlabel_17.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_20 = new JLabel(\"价格:\");\n\t\tlabel_20.setBounds(201, 175, 45, 15);\n\t\tpanel_3.add(label_20);\n\t\tlabel_20.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_14 = new JLabel(\"价格:\");\n\t\tlabel_14.setBounds(201, 205, 45, 15);\n\t\tpanel_3.add(label_14);\n\t\tlabel_14.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tcurtainRodPrice = new JTextField();\n\t\tcurtainRodPrice.setBounds(251, 199, 38, 21);\n\t\tpanel_3.add(curtainRodPrice);\n\t\tcurtainRodPrice.setColumns(10);\n\n\t\tcurtainRingPrice = new JTextField();\n\t\tcurtainRingPrice.setBounds(251, 169, 38, 21);\n\t\tpanel_3.add(curtainRingPrice);\n\t\tcurtainRingPrice.setColumns(10);\n\n\t\tcurtainLacePrice = new JTextField();\n\t\tcurtainLacePrice.setBounds(251, 141, 38, 21);\n\t\tpanel_3.add(curtainLacePrice);\n\t\tcurtainLacePrice.setColumns(10);\n\n\t\tcurtainTapePrice = new JTextField();\n\t\tcurtainTapePrice.setBounds(251, 113, 38, 21);\n\t\tpanel_3.add(curtainTapePrice);\n\t\tcurtainTapePrice.setColumns(10);\n\n\t\tcurtainClothPrice = new JTextField();\n\t\tcurtainClothPrice.setBounds(251, 82, 38, 21);\n\t\tpanel_3.add(curtainClothPrice);\n\t\tcurtainClothPrice.setColumns(10);\n\n\t\tJLabel label_15 = new JLabel(\"备注:\");\n\t\tlabel_15.setBounds(294, 205, 45, 15);\n\t\tpanel_3.add(label_15);\n\t\tlabel_15.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_21 = new JLabel(\"备注:\");\n\t\tlabel_21.setBounds(294, 175, 45, 15);\n\t\tpanel_3.add(label_21);\n\t\tlabel_21.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_18 = new JLabel(\"备注:\");\n\t\tlabel_18.setBounds(294, 147, 45, 15);\n\t\tpanel_3.add(label_18);\n\t\tlabel_18.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_12 = new JLabel(\"备注:\");\n\t\tlabel_12.setBounds(294, 119, 45, 15);\n\t\tpanel_3.add(label_12);\n\t\tlabel_12.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_11 = new JLabel(\"备注:\");\n\t\tlabel_11.setBounds(294, 88, 45, 15);\n\t\tpanel_3.add(label_11);\n\t\tlabel_11.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tcurtainClothRemark = new JTextField();\n\t\tcurtainClothRemark.setBounds(344, 82, 120, 21);\n\t\tpanel_3.add(curtainClothRemark);\n\t\tcurtainClothRemark.setColumns(10);\n\n\t\tcurtainTapeRemark = new JTextField();\n\t\tcurtainTapeRemark.setBounds(344, 113, 120, 21);\n\t\tpanel_3.add(curtainTapeRemark);\n\t\tcurtainTapeRemark.setColumns(10);\n\n\t\tcurtainLaceRemark = new JTextField();\n\t\tcurtainLaceRemark.setBounds(344, 141, 120, 21);\n\t\tpanel_3.add(curtainLaceRemark);\n\t\tcurtainLaceRemark.setColumns(10);\n\n\t\tcurtainRingRemark = new JTextField();\n\t\tcurtainRingRemark.setBounds(344, 169, 120, 21);\n\t\tpanel_3.add(curtainRingRemark);\n\t\tcurtainRingRemark.setColumns(10);\n\n\t\tcurtainRodRemark = new JTextField();\n\t\tcurtainRodRemark.setBounds(344, 199, 120, 21);\n\t\tpanel_3.add(curtainRodRemark);\n\t\tcurtainRodRemark.setColumns(10);\n\n\t\tJButton curtainDelBtn = new JButton(\"删除\");\n\t\tcurtainDelBtn.setBounds(71, 230, 67, 23);\n\t\tpanel_3.add(curtainDelBtn);\n\t\tcurtainDelBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}\n\t\t});\n\t\tcurtainDelBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJButton curtainModifyBtn = new JButton(\"修改\");\n\t\tcurtainModifyBtn.setBounds(148, 230, 67, 23);\n\t\tpanel_3.add(curtainModifyBtn);\n\t\tcurtainModifyBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcurtainModifyAction(e);\n\t\t\t}\n\t\t});\n\t\tcurtainModifyBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\taddCurtainGood = new JButton(\"添加货物\");\n\t\taddCurtainGood.setBounds(239, 230, 100, 23);\n\t\tpanel_3.add(addCurtainGood);\n\t\taddCurtainGood.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (currentSol.getCustomer() != null) {\n\t\t\t\t\taddCurtainGoodActionPerformed(e);\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"请先输入用户信息\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\taddCurtainGood.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tcurtainStyleCB = new JComboBox();\n\t\tcurtainStyleCB.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tcurtainStyleAction(e);\n\t\t\t}\n\t\t});\n\t\tcurtainStyleCB.setBounds(21, 22, 98, 21);\n\t\tpanel_3.add(curtainStyleCB);\n\t\tcurtainStyleCB.setModel(new DefaultComboBoxModel(new String[] {\n\t\t\t\t\"打孔*1.7\", \"挂钩*1.5\", \"挂钩+0.5\", \"卷帘\" }));\n\n\t\tcurtainWidth = new JTextField();\n\t\tcurtainWidth.setBounds(69, 57, 70, 21);\n\t\tpanel_3.add(curtainWidth);\n\t\tcurtainWidth.setColumns(10);\n\n\t\tJLabel label_5 = new JLabel(\"安装位置:\");\n\t\tlabel_5.setBounds(140, 25, 75, 15);\n\t\tpanel_3.add(label_5);\n\t\tlabel_5.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\thightLocationCB = new JComboBox();\n\t\thightLocationCB.setBounds(305, 57, 79, 21);\n\t\tpanel_3.add(hightLocationCB);\n\t\thightLocationCB.setModel(new DefaultComboBoxModel(new String[] {\n\t\t\t\t\"高度位置\", \"顶高\", \"总高\", \"杆到地\", \"顶装\" }));\n\t\thightLocationCB.setToolTipText(\"\");\n\n\t\tcurtainLocationCB = new JComboBox();\n\t\tcurtainLocationCB.setModel(new DefaultComboBoxModel(new String[] {\n\t\t\t\t\"请选择\", \"客厅\", \"阳台\", \"主卧\", \"次卧\", \"后卧\", \"餐厅\", \"厨房\", \"卫生间\" }));\n\t\tcurtainLocationCB.setBounds(236, 22, 70, 21);\n\t\tpanel_3.add(curtainLocationCB);\n\t\tcurtainLocationCB.setToolTipText(\"\");\n\n\t\tcurtainLocation = new JTextField();\n\t\tcurtainLocation.setBounds(327, 22, 130, 21);\n\t\tpanel_3.add(curtainLocation);\n\t\tcurtainLocation.setColumns(10);\n\n\t\tcurtainHight = new JTextField();\n\t\tcurtainHight.setBounds(396, 57, 70, 21);\n\t\tpanel_3.add(curtainHight);\n\t\tcurtainHight.setColumns(10);\n\n\t\tJLabel label_23 = new JLabel(\"宽度:\");\n\t\tlabel_23.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_23.setBounds(12, 59, 45, 15);\n\t\tpanel_3.add(label_23);\n\n\t\trodWidth = new JTextField();\n\t\trodWidth.setColumns(10);\n\t\trodWidth.setBounds(223, 57, 70, 21);\n\t\tpanel_3.add(rodWidth);\n\n\t\tJLabel label_24 = new JLabel(\"杆增加:\");\n\t\tlabel_24.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_24.setBounds(151, 59, 60, 15);\n\t\tpanel_3.add(label_24);\n\n\t\tJButton submitBtn = new JButton(\"提交订单\");\n\t\tsubmitBtn.setBounds(364, 227, 100, 23);\n\t\tpanel_3.add(submitBtn);\n\t\tsubmitBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsubmitAction(e);\n\t\t\t}\n\t\t});\n\t\tsubmitBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tnameLab = new JLabel(\"\");\n\t\tnameLab.setFont(new Font(\"宋体\", Font.PLAIN, 13));\n\t\tnameLab.setBounds(209, 135, 470, 20);\n\t\tcontentPane.add(nameLab);\n\n\t\tadrLab = new JLabel(\"\");\n\t\tadrLab.setFont(new Font(\"宋体\", Font.PLAIN, 13));\n\t\tadrLab.setBounds(209, 165, 470, 20);\n\t\tcontentPane.add(adrLab);\n\t}", "private void initComponents() {\n jScrollPane1 = new javax.swing.JScrollPane();\n jListBitmapSettings = new javax.swing.JList();\n jButtonEdit = new javax.swing.JButton();\n jButtonRemove = new javax.swing.JButton();\n jButtonAdd = new javax.swing.JButton();\n jButtonOk = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Bitmap Settings\");\n jListBitmapSettings.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane1.setViewportView(jListBitmapSettings);\n\n jButtonEdit.setText(\"Edit\");\n jButtonEdit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonEditActionPerformed(evt);\n }\n });\n\n jButtonRemove.setText(\"Remove\");\n jButtonRemove.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRemoveActionPerformed(evt);\n }\n });\n\n jButtonAdd.setText(\"Add\");\n jButtonAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAddActionPerformed(evt);\n }\n });\n\n jButtonOk.setText(\"Ok\");\n jButtonOk.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonOkActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 190, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(jButtonOk, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jButtonRemove, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jButtonEdit, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jButtonAdd, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(layout.createSequentialGroup()\n .add(jButtonEdit)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButtonRemove)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButtonAdd)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jButtonOk))\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 202, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n pack();\n }", "private void initComponents() {\n jScrollPane1 = new javax.swing.JScrollPane();\n configurationsList = new javax.swing.JList();\n configurationsLabel = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n platformsList = new javax.swing.JList();\n platformsLabel = new javax.swing.JLabel();\n jScrollPane3 = new javax.swing.JScrollPane();\n devicesList = new javax.swing.JList();\n devicesLabel = new javax.swing.JLabel();\n descriptionLabel = new javax.swing.JLabel();\n jScrollPane4 = new javax.swing.JScrollPane();\n description = new javax.swing.JTextArea();\n\n configurationsList.setModel(getConfigurationsModel());\n jScrollPane1.setViewportView(configurationsList);\n\n org.openide.awt.Mnemonics.setLocalizedText(configurationsLabel, \"Configuration:\");\n\n platformsList.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane2.setViewportView(platformsList);\n\n org.openide.awt.Mnemonics.setLocalizedText(platformsLabel, \"Profiles/Platforms:\");\n\n devicesList.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane3.setViewportView(devicesList);\n\n org.openide.awt.Mnemonics.setLocalizedText(devicesLabel, \"Devices:\");\n\n org.openide.awt.Mnemonics.setLocalizedText(descriptionLabel, \"Description:\");\n\n description.setBackground(new java.awt.Color(238, 238, 238));\n description.setColumns(20);\n description.setEditable(false);\n description.setLineWrap(true);\n description.setRows(2);\n description.setToolTipText(\"Description of the currently selected device\");\n description.setWrapStyleWord(true);\n jScrollPane4.setViewportView(description);\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(jScrollPane3)\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 219, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(configurationsLabel))\n .add(25, 25, 25)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(platformsLabel)\n .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 219, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(devicesLabel)\n .add(descriptionLabel)))\n .addContainerGap(23, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(configurationsLabel)\n .add(platformsLabel))\n .add(4, 4, 4)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(devicesLabel)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jScrollPane3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(descriptionLabel)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jScrollPane4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 51, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n }", "private void initComponents() {\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n parameterList = new javax.swing.JList();\n\n setLayout(new java.awt.BorderLayout());\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n parameterList.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"H2\", \"H2O\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n parameterList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n parameterList.setToolTipText(\"List of possible parameters\");\n parameterList.setMaximumSize(new java.awt.Dimension(200, 2000));\n parameterList.setMinimumSize(new java.awt.Dimension(50, 3000));\n parameterList.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n parameterListMouseClicked(evt);\n }\n });\n\n jScrollPane1.setViewportView(parameterList);\n\n jPanel2.add(jScrollPane1, java.awt.BorderLayout.CENTER);\n\n add(jPanel2, java.awt.BorderLayout.CENTER);\n\n }", "private void resetFrameList() {\n\n if (!Objects.isNull(scrollBarAndShapeList)) {\n this.remove(scrollBarAndShapeList);\n }\n keyFrameJlist = new JList(keyframes.toArray());\n scrollBarAndShapeList = new JScrollPane(keyFrameJlist, VERTICAL_SCROLLBAR_AS_NEEDED,\n HORIZONTAL_SCROLLBAR_AS_NEEDED);\n keyFrameJlist.addListSelectionListener(this);\n this.add(scrollBarAndShapeList);\n }", "private void initComponent() {\r\n\t\tjlHistory = new JList<String>(history.get());\r\n\t\tjlHistory.setLayoutOrientation(JList.VERTICAL);\r\n\t\tjlHistory.setVisibleRowCount(history.size());\r\n\t\t\r\n\t\tjspHistory = new JScrollPane(jlHistory);\r\n\t\t\r\n\t\tjbClose = new JButton(\"Close\");\r\n\t\tjbClose.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\t\r\n\t\t\r\n\t\tjbSave = new JButton(\"Save\");\r\n\t\tjbSave.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\r\n\t\t\t\tsaveHistory();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// Add the components\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tGridBagConstraints c = new GridBagConstraints();\r\n\r\n\t\tc.fill = GridBagConstraints.BOTH;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 0;\r\n\t\tc.gridwidth = 2;\r\n\t\tc.weightx = 1;\r\n\t\tc.weighty = 0.99;\r\n\t\tadd(jspHistory, c);\r\n\t\t\r\n\t\tc.fill = GridBagConstraints.VERTICAL;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 1;\r\n\t\tc.gridwidth = 1;\r\n\t\tc.weighty = 0.01;\r\n\t\tadd(jbSave, c);\t\t\r\n\t\t\r\n\t\tc.gridx = 1;\r\n\t\tc.gridy = 1;\r\n\t\tadd(jbClose, c);\r\n\t}", "private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jList2 = new javax.swing.JList();\n jLabel3 = new javax.swing.JLabel();\n jScrollPane3 = new javax.swing.JScrollPane();\n jList3 = new javax.swing.JList();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jScrollPane5 = new javax.swing.JScrollPane();\n jList4 = new javax.swing.JList();\n jLabel9 = new javax.swing.JLabel();\n jScrollPane6 = new javax.swing.JScrollPane();\n jList5 = new javax.swing.JList();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jScrollPane7 = new javax.swing.JScrollPane();\n jList6 = new javax.swing.JList();\n\n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel1.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel2.text\")); // NOI18N\n\n jList2.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane2.setViewportView(jList2);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel3.text\")); // NOI18N\n\n jList3.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane3.setViewportView(jList3);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel4.text\")); // NOI18N\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane4.setViewportView(jTextArea1);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel5.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel6.text\")); // NOI18N\n\n jTextField1.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jTextField1.text\")); // NOI18N\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel7.text\")); // NOI18N\n\n jTextField2.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jTextField2.text\")); // NOI18N\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jButton1.text\")); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel8, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel8.text\")); // NOI18N\n\n jTextField3.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jTextField3.text\")); // NOI18N\n\n jList4.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane5.setViewportView(jList4);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel9, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel9.text\")); // NOI18N\n\n jList5.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane6.setViewportView(jList5);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel10, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel10.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel11, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel11.text\")); // NOI18N\n\n jList6.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane7.setViewportView(jList6);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(46, 46, 46)\n .addComponent(jButton1)\n .addGap(484, 484, 484))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 346, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 409, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane7)\n .addComponent(jScrollPane6)\n .addComponent(jScrollPane1)\n .addComponent(jScrollPane5)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel10)\n .addComponent(jLabel9)\n .addComponent(jLabel1))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(449, 449, 449)\n .addComponent(jLabel6)\n .addGap(461, 461, 461))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2)\n .addComponent(jScrollPane3)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2))\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jScrollPane4, jTextField1, jTextField2, jTextField3});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(35, 35, 35)\n .addComponent(jLabel6)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(97, 97, 97)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(64, 64, 64)\n .addComponent(jButton1))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(80, 80, 80)\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17))\n );\n }", "public RegisterBookView(ListModel<String> bookSummaryList) throws HeadlessException\r\n {\r\n super(\"Registered Book Summary\");\r\n\r\n DefaultListModel<String> summary = new DefaultListModel<>();\r\n\r\n //JList<String> registeredBookSummaryList;\r\n\r\n // Boilerplate\r\n this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\r\n this.setLayout(new BorderLayout() );\r\n\r\n // Variation: using the current dimensions of your screen resolution\r\n this.setSize(\r\n (int)(this.getToolkit().getScreenSize().width * FRAME_WIDTH_FACTOR),\r\n (int)(this.getToolkit().getScreenSize().height * FRAME_HEIGHT_FACTOR)\r\n );\r\n\r\n this.setLocationRelativeTo(null);\r\n\r\n String temp = \"\";\r\n\r\n for(int i = 0; i< bookSummaryList.getSize(); i++)\r\n temp = bookSummaryList.getElementAt(i);\r\n\r\n\r\n String summaryArray[] = temp.split(\"/\");\r\n\r\n // To display a new book's summary (Adding them in different line) in the new View\r\n for(int i = 0; i< summaryArray.length; i++)\r\n summary.addElement(summaryArray[i]);\r\n\r\n\r\n JList<String> registeredBookSummaryList = new JList<String>(summary);\r\n\r\n JPanel summaryPanel = new JPanel();\r\n summaryPanel.add(registeredBookSummaryList);\r\n\r\n\r\n this.add(summaryPanel,BorderLayout.CENTER);\r\n JScrollPane scrollPane = new JScrollPane(summaryPanel);\r\n scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\r\n\r\n this.add(scrollPane);\r\n //the last line\r\n this.setVisible(true);\r\n }", "private JComponent buildUserList() {\n list = new JList<>();\n list.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n list.setCellRenderer(new CellRenderer(list.getCellRenderer()));\n list.setTransferHandler(new ProcessTransferHandler());\n list.setDragEnabled(true);\n list.setDropMode(DropMode.ON_OR_INSERT);\n return ScrollFactory.pane(list).create();\n }", "private void setup() {\r\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\r\n // list\r\n listPanel = new JPanel();\r\n listPanel.setLayout(new BoxLayout(listPanel, BoxLayout.PAGE_AXIS));\r\n\r\n JScrollPane scrollPane = new JScrollPane(listPanel);\r\n\r\n // button\r\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));\r\n buttonPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));\r\n\r\n JButton button = new JButton(\"Close\");\r\n button.addActionListener(this);\r\n buttonPanel.add(button);\r\n\r\n // container\r\n Container contentPane = getContentPane();\r\n contentPane.setLayout(new BorderLayout());\r\n\r\n contentPane.add(scrollPane, BorderLayout.CENTER);\r\n contentPane.add(buttonPanel, BorderLayout.PAGE_END);\r\n }", "void scrollSetUp() {\r\n\t\tJList<Image> imageFile = new JList<>();\r\n\t\tmodel = new DefaultListModel<>();\r\n\t\timageFile.setModel(model);\r\n\t\timageFile.addListSelectionListener(new ListSelectionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\tselectedImage = imageFile.getSelectedValue();\r\n\t\t\t\t/*\r\n\t\t\t\t * Generic image info for testing String name = \"File Name: \" +\r\n\t\t\t\t * selectedImage.name + \"\\n\"; String size = \"File Size: \" + selectedImage.size +\r\n\t\t\t\t * \"\\n\"; more/accurate info will go here later\r\n\t\t\t\t */\r\n\r\n\t\t\t\tString infstr = \"Path: \" + selectedImage.getPath();\r\n\t\t\t\tinfoText.setText(infstr);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tJScrollPane pane = new JScrollPane(imageFile, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\r\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tpane.getHorizontalScrollBar().setPreferredSize(new Dimension(0, 13));\r\n\t\tpane.getVerticalScrollBar().setPreferredSize(new Dimension(13, 0));\r\n\t\tmainFrame.add(pane);\r\n\t\talbumList = imageFile;\r\n\t}", "public JScrollPane() {\n/* 351 */ this((Component)null, 20, 30);\n/* */ }", "public MainForm() {\n initComponents();\n confirm = new ConfirmSave(this, true);\n lstObras = new JList<Obra>(); \n scrObras.setViewportView(lstObras);\n lstObras.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lstObrasMouseClicked(evt);\n }\n });\n }", "private void initialize() {\r\n\t\tfrmMainWindow = new JFrame();\r\n\t\tfrmMainWindow.addWindowListener(this);\r\n\t\tfrmMainWindow.addWindowFocusListener(this);\r\n\t\tfrmMainWindow.setTitle(\"Main Window\");\r\n\t\tfrmMainWindow.setResizable(false);\r\n\t\tfrmMainWindow.setBounds(100, 100, 1500, 1000);\r\n\t\tfrmMainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmMainWindow.getContentPane().setLayout(null);\r\n\t\tfrmMainWindow.setLocation(5, 5);\r\n\r\n\t\tsplitPane = new JSplitPane();\r\n\t\tsplitPane.setResizeWeight(0.5);\r\n\t\tsplitPane.setBounds(10, 56, 1474, 581);\r\n\t\tfrmMainWindow.getContentPane().add(splitPane);\r\n\t\t\r\n\t\tscrollPane = new JScrollPane();\r\n\t\tsplitPane.setLeftComponent(scrollPane);\r\n\t\t\r\n\t\t\t\tapplyList = new JList(axiomListModel);\r\n\t\t\t\tscrollPane.setViewportView(applyList);\r\n\t\t\t\t\r\n\t\t\t\tscrollPane_2 = new JScrollPane();\r\n\t\t\t\tsplitPane.setRightComponent(scrollPane_2);\r\n\t\t\t\t\r\n\t\t\t\t\t\ttoList = new JList(axiomListModel);\r\n\t\t\t\t\t\tscrollPane_2.setViewportView(toList);\r\n\t\t\t\t\t\ttoList.addListSelectionListener(this);\r\n\t\t\t\tapplyList.addListSelectionListener(this);\r\n\r\n\t\tlblApply = new JLabel(\"Apply\");\r\n\t\tlblApply.setBounds(360, 41, 35, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblApply);\r\n\r\n\t\tlblTo = new JLabel(\"To\");\r\n\t\tlblTo.setBounds(1133, 41, 19, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblTo);\r\n\r\n\t\tbtnImportAxioms = new JButton(\"Import Axioms\");\r\n\t\tbtnImportAxioms.addActionListener(this);\r\n\t\tbtnImportAxioms.setBounds(10, 11, 124, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportAxioms);\r\n\r\n\t\tbtnImportDefinitions = new JButton(\"Import Definitions\");\r\n\t\tbtnImportDefinitions.addActionListener(this);\r\n\t\tbtnImportDefinitions.setBounds(1343, 11, 141, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportDefinitions);\r\n\r\n\t\tpositionSelectorPane = new JPanel();\r\n\r\n\t\tpositionScrollPane = new JScrollPane(positionSelectorPane);\r\n\t\tpositionSelectorPane.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n\t\tpositionScrollPane.setBounds(10, 674, 1474, 60);\r\n\t\tfrmMainWindow.getContentPane().add(positionScrollPane);\r\n\r\n\t\tJLabel lblAtPosition = new JLabel(\"At Position\");\r\n\t\tlblAtPosition.setBounds(712, 649, 71, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblAtPosition);\r\n\r\n\t\tresultArea = new JTextPane();\r\n\t\tresultArea.setEditable(false);\r\n\t\tresultArea.setBounds(10, 777, 1474, 42);\r\n\t\tfrmMainWindow.getContentPane().add(resultArea);\r\n\t\tSimpleAttributeSet attribs = new SimpleAttributeSet();\r\n\t\tStyleConstants.setAlignment(attribs, StyleConstants.ALIGN_CENTER);\r\n\t\tStyleConstants.setFontSize(attribs, 22);\r\n\t\tresultArea.setParagraphAttributes(attribs, true);\r\n\r\n\t\tJLabel lblResult = new JLabel(\"Result\");\r\n\t\tlblResult.setBounds(723, 745, 46, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblResult);\r\n\r\n\t\taddTheorem = new JButton(\"Add To List\");\r\n\t\taddTheorem.addActionListener(this);\r\n\t\taddTheorem.setBounds(1343, 745, 141, 23);\r\n\t\tfrmMainWindow.getContentPane().add(addTheorem);\r\n\r\n\t\ttoggleDebugBtn = new JButton(\"Toggle Debug Mode\");\r\n\t\ttoggleDebugBtn.addActionListener(this);\r\n\t\ttoggleDebugBtn.setBounds(10, 745, 150, 23);\r\n\t\tfrmMainWindow.getContentPane().add(toggleDebugBtn);\r\n\r\n\t\tbtnLoadState = new JButton(\"Load State\");\r\n\t\tbtnLoadState.addActionListener(this);\r\n\t\tbtnLoadState.setBounds(641, 11, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnLoadState);\r\n\r\n\t\tbtnSaveState = new JButton(\"Save State\");\r\n\t\tbtnSaveState.addActionListener(this);\r\n\t\tbtnSaveState.setBounds(749, 11, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnSaveState);\r\n\r\n\t\tlblAddNewStatement = new JLabel(\"Add New Statement\");\r\n\t\tlblAddNewStatement.setBounds(686, 839, 124, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblAddNewStatement);\r\n\r\n\t\tbtnAsAxiom = new JButton(\"As Axiom\");\r\n\t\tbtnAsAxiom.addActionListener(this);\r\n\t\tbtnAsAxiom.setBounds(641, 917, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAsAxiom);\r\n\r\n\t\tbtnAsDefinition = new JButton(\"As Definition\");\r\n\t\tbtnAsDefinition.addActionListener(this);\r\n\t\tbtnAsDefinition.setBounds(749, 917, 116, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAsDefinition);\r\n\r\n\t\tbtnReset = new JButton(\"Reset\");\r\n\t\tbtnReset.addActionListener(this);\r\n\t\tbtnReset.setBounds(328, 11, 89, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnReset);\r\n\r\n\t\tbtnImportPunctuation = new JButton(\"Import Punctuation\");\r\n\t\tbtnImportPunctuation.addActionListener(this);\r\n\t\tbtnImportPunctuation.setBounds(1070, 11, 150, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportPunctuation);\r\n\r\n\t\tbtnPlayWithSelected = new JButton(\"Play With Selected Axioms\");\r\n\t\tbtnPlayWithSelected.addActionListener(this);\r\n\t\tbtnPlayWithSelected.setBounds(10, 640, 206, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnPlayWithSelected);\r\n\t\t\r\n\t\tbtnRemoveSelectedStatement = new JButton(\"Remove Selected Statement\");\r\n\t\tbtnRemoveSelectedStatement.addActionListener(this);\r\n\t\tbtnRemoveSelectedStatement.setBounds(226, 640, 198, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnRemoveSelectedStatement);\r\n\t\t\r\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\r\n\t\tscrollPane_1.setBounds(10, 864, 1474, 44);\r\n\t\tfrmMainWindow.getContentPane().add(scrollPane_1);\r\n\t\t\r\n\t\tmanualStmt = new JTextPane();\r\n\t\tscrollPane_1.setViewportView(manualStmt);\r\n\t\t\t\t\r\n\t\tbtnAddImportantResult = new JButton(\"Add To Important Results\");\r\n\t\tbtnAddImportantResult.addActionListener(this);\r\n\t\tbtnAddImportantResult.setBounds(434, 640, 206, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAddImportantResult);\r\n\t\tmanualStmt.setParagraphAttributes(attribs, true);\r\n\t}", "private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n setList = new javax.swing.JList();\n addSetButton = new javax.swing.JButton();\n delSetButton = new javax.swing.JButton();\n setNameField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jScrollPane2 = new javax.swing.JScrollPane();\n setStockList = new javax.swing.JList();\n jScrollPane3 = new javax.swing.JScrollPane();\n stocksTree = new javax.swing.JTree();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n delStockButton = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n copySetButton = new javax.swing.JButton();\n vmaxField = new javax.swing.JTextField();\n accelField = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n closeButton = new javax.swing.JButton();\n changeDirectionButton = new javax.swing.JButton();\n\n setTitle(\"Zugeditor\");\n setAlwaysOnTop(true);\n setIconImage(statics.loadGUIImage(\"trainseteditor.png\"));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentShown(java.awt.event.ComponentEvent evt) {\n formComponentShown(evt);\n }\n });\n\n setList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n setList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n setListValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(setList);\n\n addSetButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/add.png\"))); // NOI18N\n addSetButton.setText(\"neuen Zug\");\n addSetButton.setMargin(new java.awt.Insets(2, 8, 2, 8));\n addSetButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addSetButtonActionPerformed(evt);\n }\n });\n\n delSetButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/delete.png\"))); // NOI18N\n delSetButton.setText(\"Zug löschen\");\n delSetButton.setEnabled(false);\n delSetButton.setMargin(new java.awt.Insets(2, 8, 2, 8));\n delSetButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n delSetButtonActionPerformed(evt);\n }\n });\n\n setNameField.setEnabled(false);\n setNameField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n setNameFieldActionPerformed(evt);\n }\n });\n setNameField.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n setNameFieldFocusLost(evt);\n }\n });\n\n setStockList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n setStockList.setCellRenderer(new genericPaintInterfaceComboBoxRenderer());\n setStockList.setDragEnabled(true);\n setStockList.setDropMode(javax.swing.DropMode.INSERT);\n setStockList.setEnabled(false);\n jScrollPane2.setViewportView(setStockList);\n\n stocksTree.setCellRenderer(new stocktreeCellRenderer());\n stocksTree.setDragEnabled(true);\n stocksTree.setEnabled(false);\n stocksTree.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n stocksTreeMousePressed(evt);\n }\n });\n jScrollPane3.setViewportView(stocksTree);\n\n jScrollPane4.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\n jTextArea1.setColumns(20);\n jTextArea1.setEditable(false);\n jTextArea1.setLineWrap(true);\n jTextArea1.setRows(5);\n jScrollPane4.setViewportView(jTextArea1);\n\n delStockButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/delete.png\"))); // NOI18N\n delStockButton.setToolTipText(\"Wagen löschen\");\n delStockButton.setEnabled(false);\n delStockButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n delStockButtonActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"<html>Rollmaterial aus der Baumansicht in die linke Liste schieben.</html>\");\n\n copySetButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/clone.png\"))); // NOI18N\n copySetButton.setText(\"kopiere Zug\");\n copySetButton.setEnabled(false);\n copySetButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n copySetButtonActionPerformed(evt);\n }\n });\n\n vmaxField.setEditable(false);\n\n accelField.setEditable(false);\n\n jLabel2.setText(\"m/a²\");\n\n jLabel3.setText(\"km/h\");\n\n closeButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/ok.png\"))); // NOI18N\n closeButton.setText(\"Ok\");\n closeButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n closeButtonActionPerformed(evt);\n }\n });\n\n changeDirectionButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/rotate.png\"))); // NOI18N\n changeDirectionButton.setToolTipText(\"Wagen umdrehen\");\n changeDirectionButton.setEnabled(false);\n changeDirectionButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n changeDirectionButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(delStockButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(changeDirectionButton))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 210, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 274, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, 0, 0, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(closeButton)\n .addGap(71, 71, 71)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(delSetButton, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(copySetButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSetButton, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(setNameField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(accelField, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(vmaxField, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(67, 67, 67)\n .addComponent(setNameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSetButton)\n .addComponent(vmaxField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(copySetButton)\n .addComponent(accelField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(delSetButton))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE)\n .addComponent(jScrollPane3, 0, 0, Short.MAX_VALUE)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(closeButton)\n .addComponent(delStockButton))\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(changeDirectionButton))\n .addContainerGap())\n );\n\n pack();\n }", "public PanelEnfermedades( )\r\n {\r\n\r\n setBorder( new TitledBorder( \"Enfermedades\" ) );\r\n setLayout( new BorderLayout( ) );\r\n\r\n listaEnfermedades = new JList( );\r\n listaEnfermedades.setBackground( Color.PINK );\r\n scroll = new JScrollPane( );\r\n scroll.setViewportView( listaEnfermedades );\r\n\r\n add( scroll, BorderLayout.CENTER );\r\n\r\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n center_panel = new javax.swing.JPanel();\r\n jScrollPane2 = new javax.swing.JScrollPane();\r\n txt_area = new javax.swing.JTextArea();\r\n west_panel = new javax.swing.JPanel();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n jList1 = new javax.swing.JList<>();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n\r\n txt_area.setColumns(20);\r\n txt_area.setRows(5);\r\n jScrollPane2.setViewportView(txt_area);\r\n\r\n javax.swing.GroupLayout center_panelLayout = new javax.swing.GroupLayout(center_panel);\r\n center_panel.setLayout(center_panelLayout);\r\n center_panelLayout.setHorizontalGroup(\r\n center_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(center_panelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 631, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n center_panelLayout.setVerticalGroup(\r\n center_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(center_panelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 408, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n jList1.setModel(new javax.swing.AbstractListModel<String>() {\r\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\r\n public int getSize() { return strings.length; }\r\n public String getElementAt(int i) { return strings[i]; }\r\n });\r\n jScrollPane1.setViewportView(jList1);\r\n\r\n javax.swing.GroupLayout west_panelLayout = new javax.swing.GroupLayout(west_panel);\r\n west_panel.setLayout(west_panelLayout);\r\n west_panelLayout.setHorizontalGroup(\r\n west_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(west_panelLayout.createSequentialGroup()\r\n .addGap(10, 10, 10)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n west_panelLayout.setVerticalGroup(\r\n west_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, west_panelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 408, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 770, Short.MAX_VALUE)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(west_panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, 0)\r\n .addComponent(center_panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 430, Short.MAX_VALUE)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(west_panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(center_panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n );\r\n\r\n pack();\r\n }", "public SightingsListWindow(SightingsListController controller, SightingsList sightingsList) {\n\t\t\n\t\t// Set the sightings list model\n\t\tthis.sightingsList = sightingsList;\n\t\t// Set the title for the JFrame\n\t\tsetTitle(sightingsList.getStateName() + \" (\" + sightingsList.getAbbreviatedStateName() + \")\");\n\t\t\n\t\t// set the layout of the JFrame\n\t\tsetLayout(new BorderLayout());\n\t\t// make a new panel for the top\n\t\tJPanel topPanel = new JPanel();\n\t\t// create an empty surrounding border for the panel\n\t\ttopPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t// set the panel's layout\n\t\ttopPanel.setLayout(new GridLayout(1, 1));\n\t\t\n\t\t// the different sort options\n\t\tString[] sortOptions = {\"-\", \"Date\", \"City\", \"Shape\", \"Duration\", \"Posted\"};\n\t\t// make a JComboBox to facilitate the user's selection\n\t\tJComboBox sortOptionsList = new JComboBox(sortOptions);\n\t\t// add the controller as the listener for the selection event\n\t\tsortOptionsList.addActionListener(controller);\n\t\t\n\t\t// add the JComboBox to the top panel\n\t\ttopPanel.add(sortOptionsList);\n\t\t\n\t\t// make a new panel for the bottom\n\t\tJPanel bottomPanel = new JPanel();\n\t\t// create an empty surrounding border for the panel\n\t\tbottomPanel.setBorder(new EmptyBorder(8, 8, 8, 8));\n\t\t// set the panel's layout\n\t\tbottomPanel.setLayout(new GridLayout(1, 1));\n\t\t// set the background colour of the panel to white\n\t\tbottomPanel.setBackground(Color.white);\n\t\t\n\t\t// initialise the list model for the JList\n\t\tinitJListModel();\n\t\t// make a new JList with the specified list model\n\t\tJList jList = new JList(jListModel);\t\n\t\t// add the controller as the listener for the mouse-click event\n\t\tjList.addMouseListener(controller);\n\t\t\n\t\t// make a new scroll pane containing the JList\n\t\tJScrollPane scrollPane = new JScrollPane(jList);\n\t\t// create an empty border for the scroll pane\n\t\tscrollPane.setBorder(BorderFactory.createEmptyBorder());\n\t\t\n\t\t// add the scroll pane to the bottom panel\n\t\tbottomPanel.add(scrollPane);\n\t\t\n\t\t// add both the panels to the JFram within the specified layout positions\n\t\tadd(topPanel, BorderLayout.NORTH);\n\t\tadd(bottomPanel, BorderLayout.CENTER);\n\t\t\n\t\t// set the preferred size of the JFrame\n\t\tsetPreferredSize(new Dimension(700, 250));\n\t\t// set the location on screen\n\t\tsetLocation(300, 200);\n\t\t// set the default close operation\n\t\t// the JFrame will get closed when the user closes it\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\n\t\tpack();\n\t\tsetVisible(true);\n\t\t\n\t}", "public AdminContestListViewImp() {\n\t\tmyPanel = new JPanel();\n\t\tmyList = new ContestList();\t\n\t\t\n\t\tnewContestButton = new JButton(\"Create new contest\");\n\t\t\n\t\tmyPanel.setLayout(new BoxLayout(myPanel, BoxLayout.Y_AXIS));\n\t\t\n\t\tJPanel listContainerPanel = new JPanel();\n\t\tlistContainerPanel.setLayout(new BoxLayout(listContainerPanel, BoxLayout.Y_AXIS));\t\n\t\tlistContainerPanel.add(ContestList.getColumnTitleHeader());\n\t\tlistContainerPanel.add(new JScrollPane(myList));\n\t\t\n\t\tnewContestButton.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tlistContainerPanel.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\t\n\t\tmyPanel.add(listContainerPanel);\n\t\tmyPanel.add(newContestButton);\n\t\t\n\t}", "MenuList()\r\n\t{\r\n\t\t\r\n\t\tsetLayout(new GridLayout(2,1));\r\n\t\t\r\n\t\t\r\n\t\treadTax();\r\n\t\t\r\n\t\treceiptList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\t\r\n\t\treceiptList.setFont(new Font(Font.SERIF,Font.PLAIN,16));\r\n\r\n\t\tadd(new JScrollPane(receiptList, \r\n\t\t\t\tScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER));\r\n\t\tadd(description);\r\n\t\tdescription.setText(\"jTextArea1\");\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtDogName = new javax.swing.JTextField();\n txtCatName = new javax.swing.JTextField();\n btnThem = new javax.swing.JButton();\n btnTiepTuc = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n LstXuat = new javax.swing.JList();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Cac ban dog duoc nhap ve\");\n\n jLabel2.setText(\"Cac ban cat duoc nhap ve\");\n\n btnThem.setText(\"Them Moi\");\n btnThem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnThemActionPerformed(evt);\n }\n });\n\n btnTiepTuc.setText(\"Tiep Tuc\");\n\n jScrollPane1.setViewportView(LstXuat);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtDogName)\n .addComponent(txtCatName, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(167, 167, 167)\n .addComponent(btnThem)\n .addGap(112, 112, 112)\n .addComponent(btnTiepTuc))\n .addGroup(layout.createSequentialGroup()\n .addGap(43, 43, 43)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 489, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(53, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtDogName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(76, 76, 76)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtCatName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(63, 63, 63)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnThem)\n .addComponent(btnTiepTuc))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29))\n );\n\n pack();\n }", "private void initComponents() {\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n jList1 = new javax.swing.JList();\r\n jLabel1 = new javax.swing.JLabel();\r\n jButton1 = new javax.swing.JButton();\r\n jButton2 = new javax.swing.JButton();\r\n jProgressBar1 = new javax.swing.JProgressBar();\r\n jButton3 = new javax.swing.JButton();\r\n\r\n setOpaque(false);\r\n jList1.setModel(new javax.swing.AbstractListModel() {\r\n String[] strings = { \"Kiss, Kiss, Bang, Bang\", \"Lucky Number Slevin\", \"Little Miss Sunshine\", \"Black Dahlia\", \"Lord of the Rings\", \"Scarface\", \"Children of Men\", \"Spiderman\", \"Star Wars\" };\r\n public int getSize() { return strings.length; }\r\n public Object getElementAt(int i) { return strings[i]; }\r\n });\r\n jScrollPane1.setViewportView(jList1);\r\n\r\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel1.setText(\"Movies\");\r\n\r\n jButton1.setText(\"Add\");\r\n\r\n jButton2.setText(\"Remove\");\r\n\r\n jProgressBar1.setIndeterminate(true);\r\n\r\n jButton3.setText(\"Save\");\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jProgressBar1, 0, 0, Short.MAX_VALUE))\r\n .addComponent(jButton3)))\r\n .addComponent(jLabel1))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton1, jButton2, jButton3});\r\n\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jButton1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jButton2)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jButton3)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)\r\n .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE))\r\n .addContainerGap())\r\n );\r\n }", "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 lblNewLabel = new JLabel(\"Sales List\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\tlblNewLabel.setBounds(168, 10, 105, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Item:\");\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_1.setBounds(10, 48, 85, 13);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Cost: $\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_2.setBounds(10, 82, 116, 13);\n\t\tframe.getContentPane().add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Quantity:\");\n\t\tlblNewLabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_3.setBounds(10, 111, 85, 13);\n\t\tframe.getContentPane().add(lblNewLabel_3);\n\t\t\n\t\titemField = new JTextField();\n\t\titemField.setBounds(107, 47, 256, 19);\n\t\tframe.getContentPane().add(itemField);\n\t\titemField.setColumns(10);\n\t\t\n\t\tcostField = new JTextField();\n\t\tcostField.setBounds(107, 76, 134, 19);\n\t\tframe.getContentPane().add(costField);\n\t\tcostField.setColumns(10);\n\t\t\n\t\tquantityField = new JTextField();\n\t\tquantityField.setBounds(105, 105, 136, 19);\n\t\tframe.getContentPane().add(quantityField);\n\t\tquantityField.setColumns(10);\n\t\t\n\t\taddBtn = new JButton(\"Add Item to List\");\n\t\taddBtn.setBounds(107, 134, 182, 21);\n\t\tframe.getContentPane().add(addBtn);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(37, 178, 361, 56);\n\t\tframe.getContentPane().add(scrollPane);\n\t\t\n\t\ttextArea = new JTextArea();\n\t\tscrollPane.setViewportView(textArea);\n\t\t\n\t\tJLabel lblNewLabel_4 = new JLabel(\"Total Sales:\");\n\t\tlblNewLabel_4.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_4.setBounds(10, 244, 85, 13);\n\t\tframe.getContentPane().add(lblNewLabel_4);\n\t\t\n\t\ttotalArea = new JTextArea();\n\t\ttotalArea.setBounds(90, 244, 199, 19);\n\t\tframe.getContentPane().add(totalArea);\n\t\t\n\t}", "public JScrollPane(Component paramComponent) {\n/* 323 */ this(paramComponent, 20, 30);\n/* */ }", "private JPanel getListPanel() {\n if (listPanel == null) {\n listPanel = new JPanel();\n listPanel.setLayout(new BorderLayout());\n listPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Entries\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));\n listPanel.add(getScrollPane(), java.awt.BorderLayout.CENTER);\n listPanel.add(getViewPanel(), java.awt.BorderLayout.SOUTH);\n }\n\n return listPanel;\n }", "ShowList(ClientController clientController) {\n this.clientController = clientController;\n pnlShowList.setBackground(new Color(colorBackground));\n MyDocumentListener myDocumentListener = new MyDocumentListener();\n setLayout(new BorderLayout());\n add(myDocumentListener, BorderLayout.NORTH);\n scrollPane.getVerticalScrollBar().setUnitIncrement(16);\n add(scrollPane, BorderLayout.CENTER);\n }", "private JScrollPane getJScrollPaneListaCamaras() {\r\n\t\tif (jScrollPaneListaCamaras == null) \r\n\t\t\tjScrollPaneListaCamaras = new JScrollPane();\r\n\t\t\t\t\r\n\t\tjScrollPaneListaCamaras.setViewportView(getJListCamaras());\r\n\t\t\t\t\r\n\t\treturn jScrollPaneListaCamaras;\r\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(new BorderLayout(0, 0));\n\n\t\tJToolBar toolBar = new JToolBar();\n\t\ttoolBar.setFloatable(false);\n\t\ttoolBar.setOrientation(SwingConstants.VERTICAL);\n\t\tframe.getContentPane().add(toolBar, BorderLayout.WEST);\n\n\t\tstatusLB = new JLabel(\"status\");\n\t\ttoolBar.add(statusLB);\n\n\t\tinterlocutorLB = new JLabel(\"interlocutor\");\n\t\ttoolBar.add(interlocutorLB);\n\n\t\tJSeparator separator = new JSeparator();\n\t\ttoolBar.add(separator);\n\n\t\tJButton btnNewButton = new JButton(\"Удалить\");\n\t\ttoolBar.add(btnNewButton);\n\n\t\tJToolBar toolBar_1 = new JToolBar();\n\t\ttoolBar_1.setFloatable(false);\n\t\tframe.getContentPane().add(toolBar_1, BorderLayout.SOUTH);\n\n\t\ttextField = new JTextField();\n\t\ttoolBar_1.add(textField);\n\t\ttextField.setColumns(10);\n\n\t\tJButton button = new JButton(\"Отправить\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\ttoolBar_1.add(button);\n\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tframe.getContentPane().add(scrollPane, BorderLayout.CENTER);\n\n\t\tJList list = new JList();\n\t\tscrollPane.setViewportView(list);\n\t}", "private void initListPannel(String[] list){\n \n m_DownloadPanel.removeAll();\n m_List = new JList(list);\n \n m_listPanel = new JPanel();\n m_listPanel.setPreferredSize(PANELSIZE);\n m_listPanel.setBounds(0, 0, 200, 200);\n \n m_buttonPannel = new JPanel();\n m_buttonPannel.setLayout(new BorderLayout());\n m_GetFile = new JButton(\"Use Selected File\");\n m_GetFile.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e){\n String fileID = m_data[m_List.getSelectedIndex()][0];\n String path = CLOUD.getFilePath(m_sid, fileID);\n File f = CLOUD.DownloadFile(path);\n \n System.err.println(\"Path = \"+f.getAbsolutePath());\n OpenDialog o = new OpenDialog(m_db,m_TP,m_guiContext);\n o.ReadFile(f);\n //\n \n \n }\n });\n m_buttonPannel.add( m_GetFile, BorderLayout.CENTER);\n \n m_listPanel.setBackground(Color.YELLOW);\n \n m_listPanel.setLayout(new BorderLayout()); \n m_listPanel.add(new JScrollPane(m_List), BorderLayout.CENTER);\n m_listPanel.add(m_buttonPannel, BorderLayout.SOUTH); \n m_listPanel.repaint();\n m_listPanel.validate();\n m_DownloadPanel.add(m_listPanel);\n m_DownloadPanel.validate(); \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\r\n\t\tJPanel panel = new JPanel();\r\n\t\tframe.getContentPane().add(panel, BorderLayout.NORTH);\r\n\r\n\t\tJLabel lblIntroduceUnNmero = new JLabel(\"Introduce un n\\u00FAmero\");\r\n\t\tpanel.add(lblIntroduceUnNmero);\r\n\r\n\t\ttextNumero = new JTextField();\r\n\t\tpanel.add(textNumero);\r\n\t\ttextNumero.setColumns(10);\r\n\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tframe.getContentPane().add(scrollPane, BorderLayout.CENTER);\r\n\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tscrollPane.setColumnHeaderView(panel_2);\r\n\r\n\t\tlblIntroducidos = new JLabel(\"0\");\r\n\t\tpanel_2.add(lblIntroducidos);\r\n\r\n\t\tJLabel lblNmerosIntroducidos = new JLabel(\"n\\u00FAmeros introducidos. Suman: \");\r\n\t\tpanel_2.add(lblNmerosIntroducidos);\r\n\r\n\t\tlblSuma = new JLabel(\"0\");\r\n\t\tpanel_2.add(lblSuma);\r\n\r\n\t\tmodel = new DefaultListModel<String>();\r\n\t\tJList<String> list = new JList<String>();\r\n\t\tlist.setModel(model);\r\n\t\tscrollPane.setViewportView(list);\r\n\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tframe.getContentPane().add(panel_1, BorderLayout.SOUTH);\r\n\r\n\t\tJButton btnAddNumero = new JButton(\"Adicionar n\\u00FAmero\");\r\n\t\tbtnAddNumero.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString elemento = textNumero.getText();\r\n\t\t\t\t\tmodel.addElement(elemento);\r\n\t\t\t\t\tInteger numero = Integer.parseInt(textNumero.getText());\r\n\t\t\t\t\tnumeros.add(numero);\r\n\t\t\t\t\tlblIntroducidos.setText(numeros.size() + \"\");\r\n\t\t\t\t\ttextNumero.setText(\"\");\r\n\t\t\t\t} catch (NumberFormatException nfe) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Debes introducir un número\", \"Erro de entrada\",\r\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tpanel_1.add(btnAddNumero);\r\n\r\n\t\tJButton btnSumarNmeros = new JButton(\"Sumar n\\u00FAmeros\");\r\n\t\tbtnSumarNmeros.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tint suma = 0;\r\n\t\t\t\tfor (Integer i : numeros) {\r\n\t\t\t\t\tsuma += i;\r\n\t\t\t\t}\r\n\t\t\t\tlblSuma.setText(String.valueOf(suma) + \" \");\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tpanel_1.add(btnSumarNmeros);\r\n\r\n\t\tJButton btnBorrarTodo = new JButton(\"Borrar todo\");\r\n\t\tbtnBorrarTodo.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttextNumero.setText(\"\");\r\n\t\t\t\tlblNmerosIntroducidos.setText(\"0\");\r\n\t\t\t\tlblNmerosIntroducidos.setText(\"n\\u00FAmeros introducidos. Suman: \");\r\n\t\t\t\tlblSuma.setText(\"\");\r\n\t\t\t\tmodel.removeAllElements();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tpanel_1.add(btnBorrarTodo);\r\n\t}", "public EdicaoLista(JFrame parent) {\n initComponents();\n \n dialog = new JDialog(parent, true);\n\n dialog.add(this);\n dialog.pack();\n\n dialog.setLocationRelativeTo(parent);\n dialog.setModal(true);\n }", "private void initList() {\n tempShopList=wdh.getTempShopList();\n final String[] listIndex=new String[tempShopList.size()];\n \n // System.out.println(tempShopList.size());\n \n for(int i=0;i<tempShopList.size();i++)\n listIndex[i]=String.valueOf(i+1); \n \n// jList1=new JList(listIndex);\n// jScrollPane1=new JScrollPane(jList1);\n// jScrollPane1.setViewportView(jList1);\n \n \n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings1 = listIndex;\n public int getSize() { return strings1.length; }\n public Object getElementAt(int i) { return strings1[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n \n }", "private void addFrameContent() {\n\t\t\r\n\t\tJPanel northPanel = new JPanel();\r\n\t\tnorthPanel.setLayout(new FlowLayout());\r\n\t\tframe.add(northPanel, BorderLayout.NORTH);\r\n\t\t\r\n//\t\ttextField = new JTextField(40);\r\n\t\tnorthPanel.add(textField);\r\n\t\ttextField.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tsearch();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJButton searchButton = new JButton(\"Search\");\r\n\t\tnorthPanel.add(searchButton);\r\n\t\tsearchButton.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tsearch();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJPanel centerPanel = new JPanel();\r\n\t\tcenterPanel.setLayout(new FlowLayout());\r\n\t\tframe.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\r\n//\t\tlistField = new JList<TituloDeNoticia>();\r\n\t\tcenterPanel.add(listField);\r\n\t\tlistField.addListSelectionListener(new ListSelectionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\tif(!e.getValueIsAdjusting() && !listField.isSelectionEmpty()) {\r\n\t\t\t\t\tTituloDeNoticia selectedValue = listField.getSelectedValue();\r\n\t\t\t\t\tclient.requestNews(selectedValue.getTitulo());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n//\t\tlistField.setPreferredSize(new Dimension(200, 200));\r\n\t\t\r\n\t\tJScrollPane scrollListField = new JScrollPane(listField);\r\n\t\tscrollListField.setPreferredSize(new Dimension(DEFAULT_DIMENSIONS, DEFAULT_DIMENSIONS));\r\n\t\tcenterPanel.add(scrollListField);\r\n\t\t\r\n//\t\ttextArea = new JTextPane();\r\n\t\ttextArea.setEditable(false);\r\n\t\ttextArea.setContentType(\"text/html\");\r\n\t\ttextArea.setPreferredSize(new Dimension(DEFAULT_DIMENSIONS, DEFAULT_DIMENSIONS));\r\n\t\t\r\n\t\tJScrollPane scrollArea = new JScrollPane(textArea);\r\n\t\tcenterPanel.add(scrollArea);\r\n\t\t\r\n//\t\ttextArea = new JTextArea(20, 40);\r\n//\t\ttextArea.setEnabled(false);\r\n//\t\ttextArea.setLineWrap(true);\r\n//\t\ttextArea.setWrapStyleWord(true);\r\n\t\t\r\n//\t\tcenterPanel.add(textArea);\r\n\t\t\r\n//\t\tStringBuilder sb = new StringBuilder();\r\n//\t\tfor(int i = 0 ; i < 1000 ; i++) {\r\n//\t\t\tsb.append(\"A\\n\");\r\n//\t\t}\r\n//\t\ttextArea.setText(sb.toString());\r\n\t\t\r\n\t}", "public AddList() {\n setTitleText(\"Add new List\");\n addButton = new JButton(\"Add\");\n addButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n addButtonActionPerformed(actionEvent);\n }\n });\n addButton(addButton);\n }", "private void addToDirectionPane(String[] directionArray){\n JList<String> directionStringList = new JList<>(directionArray); //Everything to be added to the scrollpane is added as a JList\n directionPane.setVisible(true);\n directionPane.setViewportView(directionStringList); //Set the display of the scrollpane to the current JList\n directionPane.setBounds(25, 300, 400, 200);\n directionPane.setBorder(new MatteBorder(1, 1, 1, 1, Color.DARK_GRAY));\n directionPane.getViewport().setBackground(Color.WHITE); //The viewport is where the scrollpane elements are display\n directionPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n closeDirectionList.setVisible(true);\n }", "public PrintingPreviewPanel(JComponent chartComponent, JComponent listComponent) {\n this.chartComponent = chartComponent;\n this.listComponent = listComponent;\n// initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList<>();\n jPanel3 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextArea2 = new javax.swing.JTextArea();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jTextArea1.setEditable(false);\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n );\n\n jLabel1.setText(\"Sechilen\");\n\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jList1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jList1MouseReleased(evt);\n }\n });\n jList1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n jList1KeyReleased(evt);\n }\n });\n jScrollPane2.setViewportView(jList1);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 450, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel3.setText(\"Yemek adi\");\n\n jTextArea2.setEditable(false);\n jTextArea2.setColumns(20);\n jTextArea2.setLineWrap(true);\n jTextArea2.setRows(5);\n jScrollPane3.setViewportView(jTextArea2);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(192, 192, 192)\n .addComponent(jLabel3)\n .addContainerGap(270, Short.MAX_VALUE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane3)\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane3)\n .addContainerGap())\n );\n\n jLabel2.setText(\"0\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap())\n );\n\n pack();\n }", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(300, 200);\n this.setPreferredSize(new java.awt.Dimension(450, 116));\n this.add(getListPanel(), java.awt.BorderLayout.CENTER);\n this.add(getButtonPanel(), java.awt.BorderLayout.SOUTH);\n }", "private void initialize() {\n\t\tfrmCuestionarioX = new JFrame();\n\t\tfrmCuestionarioX.setTitle(\"Cuestionario \"+cuestionario.getNombre());\n\t\tfrmCuestionarioX.setBounds(100, 100, 450, 300);\n\t\tfrmCuestionarioX.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmCuestionarioX.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tfrmCuestionarioX.getContentPane().add(panel, BorderLayout.SOUTH);\n\t\tpanel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\t\n\t\t/*JButton btnConsultarSeleccion = new JButton(\"Consultar Seleccion\");\n\t\tbtnConsultarSeleccion.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tpanel.add(btnConsultarSeleccion);\n\t\t\n\t\tJButton btnCancelar = new JButton(\"Cancelar\");\n\t\tpanel.add(btnCancelar);\n\t\t*/\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tfrmCuestionarioX.getContentPane().add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t\tDefaultListModel<Pregunta> modelo = new DefaultListModel<Pregunta>();\n\t\tlp = cuestionario.getPreguntas();\n\t\tfor (Pregunta pregunta : lp) {\n\t\t\tmodelo.addElement(pregunta);\n\t\t}\n\t\t\n\t\tlist = new JList<Pregunta>(modelo);\n\t\tscrollPane.setViewportView(list);\n\t\tlist.addMouseListener(new MouseAdapter() {\t\t\t\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tnew ConsultarCuestionarioX(lp, list.getSelectedIndex());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tfrmCuestionarioX.setVisible(true);\n\t}", "public L5MyList() {\n \n window.setLayout(new BorderLayout());\n window.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n panel = new JPanel();\n\n cBox = new JComboBox(colorNames);\n cBox.setMaximumRowCount(5);\n cBox.addItemListener(this);\n\n panel.add(cBox);\n window.add(panel, BorderLayout.CENTER);\n\n window.setSize(500, 300);\n window.setVisible(true);\n }", "private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)\n );\n }", "public JScrollPane getFileNameList() {\r\n\t\tthis.displayFileNames = new JList<String>(this.loadFileNames());\r\n\t\tthis.displayFileNames.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\tthis.displayFileNames.addListSelectionListener(this);\r\n\t\tthis.displayFileNames.setVisibleRowCount(6);\r\n\t\tthis.fileNameListContainer = new JScrollPane(this.displayFileNames);\r\n\t\treturn this.fileNameListContainer;\r\n\t}", "private void initialize() {\n\t\t\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 912, 418);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setResizable(true);\n\t\t\n\t\t plf=new PlistFiles(false,true,false,true);\n\t\t list = new JList<String>(plf.vfiles);\n\t\t\n\t\t JMenuBar menuBar = new JMenuBar();\n\t\t frame.setJMenuBar(menuBar);\n\t\t \n\t\t JMenu mnSelection = new JMenu(\"Selection\");\n\t\t\n\t\t menuBar.add(mnSelection);\n\t\t \n\t\t chckbxmntmSystem = new JCheckBoxMenuItem(\"System\",plf.iscSystem());\n\t\t chckbxmntmSystem.addChangeListener(new ChangeListener() {\n\t\t \tpublic void stateChanged(ChangeEvent e) {\n\t\t \t\tplf.setcSystem(chckbxmntmSystem.isSelected());\n\t\t \t\t\n\t\t \t\t//list = new JList<String>(plf.vfiles);\n\t\t \t\tlist.removeAll();\n\t\t \t\tlist.setListData(plf.vfiles);\n\n\t\t \t\t\n\t\t \t\t\n\t\t \t}\n\t\t });\n\t\t mnSelection.add(chckbxmntmSystem);\n\t\t \n\t\t chckbxmntmUser = new JCheckBoxMenuItem(\"User\",plf.iscUser());\n\t\t chckbxmntmUser.addChangeListener(new ChangeListener() {\n\t\t \tpublic void stateChanged(ChangeEvent e) {\n\t\t \t\tplf.setcUser(chckbxmntmUser.isSelected());\n\t\t \t\tplf.GetList();\n\t\t \t\t//list = new JList<String>(plf.vfiles);\n\t\t \t\tlist.removeAll();\n\t\t \t\tlist.setListData(plf.vfiles);\n\t\t \t}\n\t\t });\n\t\t mnSelection.add(chckbxmntmUser);\n\t\t \n\t\t JSeparator separator = new JSeparator();\n\t\t mnSelection.add(separator);\n\t\t \n\t\t chckbxmntmLaunchagents = new JCheckBoxMenuItem(\"LaunchAgents\",plf.iscAgent());\n\t\t chckbxmntmLaunchagents.addChangeListener(new ChangeListener() {\n\t\t \tpublic void stateChanged(ChangeEvent e) {\n\t\t \t\tplf.setcAgent(chckbxmntmLaunchagents.isSelected());\n\t\t \t\tplf.GetList();\n\t\t \t\t//list = new JList<String>(plf.vfiles);\n\t\t \t\tlist.removeAll();\n\t\t \t\tlist.setListData(plf.vfiles);\n\t\t \t}\n\t\t });\n\t\t \n\t\t \n\t\t mnSelection.add(chckbxmntmLaunchagents);\n\t\t \n\t\t chckbxmntmLaunchdaemons = new JCheckBoxMenuItem(\"LaunchDaemons\",plf.iscSystem());\n\t\t chckbxmntmLaunchdaemons.addChangeListener(new ChangeListener() {\n\t\t \tpublic void stateChanged(ChangeEvent e) {\n\t\t \t\tplf.setcDaemon(chckbxmntmLaunchdaemons.isSelected());\n\t\t \t\tplf.GetList();\n\t\t \t\t//list = new JList<String>(plf.vfiles);\n\t\t \t\tlist.removeAll();\n\t\t \t\tlist.setListData(plf.vfiles);\n\t\t \t}\n\t\t });\n\t\t \n\t\t mnSelection.add(chckbxmntmLaunchdaemons);\n\t\t \n\t\t mnView = new JMenu(\"View\");\n\t\t menuBar.add(mnView);\n\t\t \n\t\t chckbxmntmDisplayTreeView = new JCheckBoxMenuItem(\"Display Tree view\");\n\t\t chckbxmntmDisplayTreeView.addChangeListener(new ChangeListener() {\n\t\t \tpublic void stateChanged(ChangeEvent e) {\n\t\t \t\t\n\t\t \t\tmyTree.setVisible(chckbxmntmDisplayTreeView.isSelected());\n\t\t \t\tscrollPane.setVisible(chckbxmntmDisplayTreeView.isSelected());\n\t\t \t\t//frame.getContentPane().remove(scrollPane);\n\t\t \t\n\t\t \t\t\n\t\t \t}\n\t\t });\n\t\t mnView.add(chckbxmntmDisplayTreeView);\n\t\t \n\t\t \n\t\t \n\t GridBagLayout gridBagLayout = new GridBagLayout();\n\t gridBagLayout.columnWidths = new int[]{264, 251, 266, 0};\n\t gridBagLayout.rowHeights = new int[]{0, 315, 0};\n\t gridBagLayout.columnWeights = new double[]{8.0, 1.0, 1.0, Double.MIN_VALUE};\n\t gridBagLayout.rowWeights = new double[]{0.0, 1.0, Double.MIN_VALUE};\n\t frame.getContentPane().setLayout(gridBagLayout);\n\n\t canvas = new Canvas();\n\t GridBagConstraints gbc_canvas = new GridBagConstraints();\n\t gbc_canvas.fill = GridBagConstraints.HORIZONTAL;\n\t gbc_canvas.insets = new Insets(0, 0, 5, 0);\n\t gbc_canvas.gridx = 2;\n\t gbc_canvas.gridy = 0;\n\t frame.getContentPane().add(canvas, gbc_canvas);\n\t \n\t JScrollPane scrollPane_1 = new JScrollPane();\n\t GridBagConstraints gbc_scrollPane_1 = new GridBagConstraints();\n\t gbc_scrollPane_1.fill = GridBagConstraints.BOTH;\n\t gbc_scrollPane_1.insets = new Insets(0, 0, 0, 5);\n\t gbc_scrollPane_1.gridx = 0;\n\t gbc_scrollPane_1.gridy = 1;\n\t frame.getContentPane().add(scrollPane_1, gbc_scrollPane_1);\n\t\n\t \n\t \n\t list.addMouseListener(new MouseAdapter() {\n\t \t@Override\n\t \tpublic void mouseClicked(MouseEvent e) {\n\t \t\tSystem.out.println(list.getSelectedValue());\n\t \t\tString plistfile = list.getSelectedValue();\n\t \t\t\n\t \t\tmyTree.Init(plistfile);\n\t \t\tSystem.out.println(\"Opening file .... \" + plistfile);\n\t \t\t\n\t \t\tScanner in = null;\n\t \t\tString content = null;\n\t\t\ttry {\n\t\t\t\tin = new Scanner(new File(plistfile));\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t \t\twhile (in.hasNext()) { // iterates each line in the file\n\t \t\t content += in.nextLine() + \"\\n\";\n\t \t\t // do something with line\n\t \t\t}\n\n\t \t\tin.close(); // don't forget to close resource leaks\n\n\t \t\tdtrpnPlistfile.setText(content);\n\t \t}\n\t \n\t });\n\n\t scrollPane_1.setViewportView(list);\n\t \n\t\n\t plf.GetList();\n\t int i=0;\n\t if (plf.files.length != 0)\n\t\t for(String afiles : plf.files)\n\t\t { \n\t\t\tSystem.out.println(i + \" - \" + afiles);\n\t\t\ti++;\n\t\t }\n\t list.setVisible(true);\n\t \n\t \n\t \n\t myTree = new XMLTree(\"/Users/rumi/helloworld.xml\");\n\t \n\t scrollPane = new JScrollPane(myTree);\n\t \n\t\n\n\t GridBagConstraints gbc_scrollPane = new GridBagConstraints();\n\t gbc_scrollPane.insets = new Insets(0, 0, 0, 5);\n\t gbc_scrollPane.fill = GridBagConstraints.BOTH;\n\t \n\t \n\t gbc_scrollPane.gridx = 1;\n\t gbc_scrollPane.gridy = 1;\n\t frame.getContentPane().add(scrollPane, gbc_scrollPane);\n\t \n\t JTabbedPane tabbedPane_1 = new JTabbedPane(JTabbedPane.TOP);\n\t GridBagConstraints gbc_tabbedPane_1 = new GridBagConstraints();\n\t gbc_tabbedPane_1.fill = GridBagConstraints.BOTH;\n\t gbc_tabbedPane_1.gridx = 2;\n\t gbc_tabbedPane_1.gridy = 1;\n\t frame.getContentPane().add(tabbedPane_1, gbc_tabbedPane_1);\n\t \n\t \n\t dtrpnPlistfile = new JEditorPane();\n\t dtrpnPlistfile.setText(\"PlistFile\");\n\t dtrpnPlistfile.setEditable(true);\n\t dtrpnPlistfile.setVisible(true);\n\t\n\t dtrpnPlistfile.setFont(new Font(\"Courier New\", Font.ITALIC, 10));\n\t \n\t tabbedPane_1.addTab(\"com.apple.<example>.plist\", null, dtrpnPlistfile, null);\n\t\n\t frame.setVisible(true);\n\t\t\n\t\t\n\t\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 600, 600);\n\t\tframe.setTitle(\"WSChat Client\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tJPanel mainPanel = new JPanel();\n\t\tframe.getContentPane().add(mainPanel);\n\t\tmainPanel.setLayout(null);\n\n\t\tJLabel setNameLabel = new JLabel();\n\t\tsetNameLabel.setText(\"Nickname: \");\n\t\tmainPanel.add(setNameLabel);\n\t\tsetNameLabel.setBounds(168, 10, 80, 30);\n\t\tnameField = new JTextField();\n\t\tnameField.setBounds(247, 10, 100, 30);\n\t\tsendName = new JButton(\"Set Name\");\n\t\tsendName.setBounds(359, 11, 120, 30);\n\t\tnameField.setColumns(10);\n\t\tmainPanel.add(nameField);\n\t\tmainPanel.add(sendName);\n\t\tsendName.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tWSChatApplication.this.send(\"/nick \" + nameField.getText());\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane msg_pane = new JScrollPane();\n\t\tmsg_area = new JTextArea();\n\t\tmsg_area.setEditable(false);\n\t\tmsg_area.setLineWrap(true);\n\t\tmsg_area.setWrapStyleWord(true);\n\t\tmsg_pane.setViewportView(msg_area);\n\t\tmsg_pane.setBounds(10, 45, 450, 450);\n\t\tmainPanel.add(msg_pane);\n\n\t\tJScrollPane list_pane = new JScrollPane();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tcurrentTarget = list.getSelectedValue();\n\t\t\t}\n\t\t});\n\n\t\tJTextPane textPane = new JTextPane();\n\t\ttextPane.setBounds(0, 0, 1, 16);\n\t\tmainPanel.add(textPane);\n\t\tlist_pane.setViewportView(list);\n\t\tlist_pane.setBounds(470, 45, 120, 450);\n\t\tmainPanel.add(list_pane);\n\n\t\tJScrollPane in_pane = new JScrollPane();\n\t\tfinal JTextArea in_area = new JTextArea();\n\t\tin_area.setLineWrap(true);\n\t\tin_area.setWrapStyleWord(true);\n\t\tin_pane.setViewportView(in_area);\n\t\tJButton sendBut = new JButton(\"Send\");\n\t\tsendBut.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (list.getSelectedIndex() == 0)\n\t\t\t\t\tWSChatApplication.this.send(in_area.getText());\n\t\t\t\telse\n\t\t\t\t\tWSChatApplication.this.send(\"/to \" + currentTarget + \" \"\n\t\t\t\t\t\t\t+ in_area.getText());\n\t\t\t\tin_area.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tmainPanel.add(sendBut);\n\t\tsendBut.setBounds(470, 500, 120, 70);\n\t\tmainPanel.add(in_pane);\n\t\tin_pane.setBounds(10, 500, 450, 70);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList<>();\n jLabel3 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jList2 = new javax.swing.JList<>();\n jLabel4 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Papyrus\", 1, 50)); // NOI18N\n jLabel1.setText(\"Criar Configuração:\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(17, 30, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 18)); // NOI18N\n jLabel2.setText(\"Selecione os Componentes Essencias para sua configuraçao:\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 110, -1, -1));\n\n jList1.setModel(model1);\n jList1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList1MouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jList1);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 250, 560, 340));\n\n jLabel3.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 0, 18)); // NOI18N\n jLabel3.setText(\"Todos os componentes Essenciais disponiveis:\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 210, 510, -1));\n\n jList2.setModel(model2);\n jScrollPane2.setViewportView(jList2);\n\n getContentPane().add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(750, 250, 580, 340));\n\n jLabel4.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 0, 18)); // NOI18N\n jLabel4.setText(\"Componentes Essenciais Selecionados:\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(750, 210, -1, -1));\n\n jButton1.setText(\"Escolher Pacote\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 650, 237, 90));\n\n jButton2.setText(\"Passo a Passo\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(840, 650, 216, 90));\n\n jButton3.setText(\"Sair\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(1180, 650, 100, 90));\n\n jLabel5.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 24)); // NOI18N\n jLabel5.setText(\"SUB TOTAL:\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(940, 90, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 24)); // NOI18N\n jLabel6.setText(\"€\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(1360, 90, -1, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 24)); // NOI18N\n jLabel7.setText(String.valueOf(auxC.getPreco()));\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(1100, 80, 250, 50));\n\n jLabel8.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 2, 14)); // NOI18N\n jLabel8.setText(\"\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 610, 1250, -1));\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/black-and-white-desktop-wallpaper-hd-wallpaper-1000195.jpg\"))); // NOI18N\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 3210, 1700));\n\n pack();\n }", "private JPanel createScrollPaneKeyWords() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Keywords List \", TitledBorder.LEFT, TitledBorder.TOP));\n\n this.keywordList = demonstrationApplicationController.getKeywordsList();\n this.jListKeyword = new JList(new ModelListSelectable(keywordList));\n\n JScrollPane scrollPane = new JScrollPane(jListKeyword);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }", "private void initialize() {\r\n\t\t\r\n\t\tfrmAtividades = new JFrame();\r\n\t\tfrmAtividades.setTitle(\"Atividades\");\r\n\t\tfrmAtividades.setBounds(100, 100, 640, 480);\r\n\t\tfrmAtividades.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tGroupLayout groupLayout = new GroupLayout(frmAtividades.getContentPane());\r\n\t\tgroupLayout.setHorizontalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addComponent(panel, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 624, Short.MAX_VALUE)\r\n\t\t);\r\n\t\tgroupLayout.setVerticalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addComponent(panel, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)\r\n\t\t);\r\n\t\t\r\n\t\t//TODO Popular a lista dinamicamente;\r\n\t\t\r\n\t\tlist = new JList();\r\n\t\t\r\n\t\tlist.setModel(new AbstractListModel() {\r\n\t\t\tString[] values = new String[] {\"Clique 1\", \"Clique 2\"};\r\n\t\t\tpublic int getSize() {\r\n\t\t\t\treturn values.length;\r\n\t\t\t}\r\n\t\t\tpublic Object getElementAt(int index) {\r\n\t\t\t\treturn values[index];\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t//TODO Seria interessante passar o controle como parametro, afim de usa-lo no listener dos botoes;\r\n\t\t\t\tjanelaDeRecursos = new ViewDesalocarRecurso();\r\n\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJLabel lblAtividadesPendendentes = new JLabel(\"Atividades Alocadas:\");\r\n\t\t\r\n\t\tbtnFechar = new JButton(\"Fechar\");\r\n\t\tbtnFechar.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tfrmAtividades.dispose();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\r\n\t\tgl_panel.setHorizontalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(list, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 604, Short.MAX_VALUE)\r\n\t\t\t\t\t\t.addComponent(btnFechar, Alignment.TRAILING)\r\n\t\t\t\t\t\t.addComponent(lblAtividadesPendendentes))\r\n\t\t\t\t\t.addContainerGap())\r\n\t\t);\r\n\t\tgl_panel.setVerticalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap(38, Short.MAX_VALUE)\r\n\t\t\t\t\t.addComponent(lblAtividadesPendendentes)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addComponent(list, GroupLayout.PREFERRED_SIZE, 338, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addComponent(btnFechar)\r\n\t\t\t\t\t.addGap(7))\r\n\t\t);\r\n\t\tpanel.setLayout(gl_panel);\r\n\t\tfrmAtividades.getContentPane().setLayout(groupLayout);\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void createListPatientsPanel() {\n\n\t\tlistPatientsPanel = new JPanel();\n\t\tlistPatientsPanel.setSize(700, 430);\n\t\tlistPatientsPanel.setLocation(0, 70);\n\t\tlistPatientsPanel.setLayout(new GridLayout(1, 1));\n\t\t// textArea\n\t\tpatientList = new JList(getDoctor(tempDoctorId).getPList().toArray());\n\t\tpatientList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tpatientList.addMouseListener(new MouseListener() {\n\t\t\t@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (e.getClickCount() == 2) {\n\t\t\t\t\tPatient p = (Patient) patientList.getSelectedValue();\n\t\t\t\t\ttempPatientId = p.getPId();\n\t\t\t\t\tupdateSearchPatientPanel();\n\t\t\t\t\tsearchPatientPanel.setVisible(true);\n\t\t\t\t\tlistPatientsPanel.setVisible(false);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane sp1 = new JScrollPane(patientList);\n\t\tlistPatientsPanel.add(sp1);\n\t\ttotalGUIPanel.add(listPatientsPanel);\n\t\tlistPatientsPanel.setVisible(false);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n ListaAlumnos = new javax.swing.JList<>();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n ListaAsignaturas = new javax.swing.JList<>();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Las Notas\");\n\n ListaAlumnos.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n ListaAlumnosMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(ListaAlumnos);\n\n jLabel2.setText(\"Alumnos\");\n\n jScrollPane2.setViewportView(ListaAsignaturas);\n\n jLabel3.setText(\"Asignaturas\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(72, 72, 72))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(161, 161, 161))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)\n .addComponent(jScrollPane1))\n .addContainerGap(42, Short.MAX_VALUE))\n );\n\n pack();\n }", "public JSmartList()\n {\n }", "private JPanel createScrollPaneProducts() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Products List: \", TitledBorder.LEFT, TitledBorder.TOP));\n\n this.productsList = this.demonstrationApplicationController.getProductsList();\n this.jListProduct = new JList(new ModelListSelectable(this.productsList));\n JScrollPane scrollPane = new JScrollPane(jListProduct);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }", "public ListaMedicosJFrame() {\n initComponents();\n preencheTabela();\n }", "private void createComponents() {\n \n Dimension thisSize = this.getSize();\n \n this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));\n \n ArrayList<Integer> numbers = new ArrayList<>();\n for (int i = 0; i < recordCount; ++i) {\n numbers.add(i);\n }\n \n recordList = new JList(numbers.toArray());\n recordList.addListSelectionListener(selectionListener);\n JScrollPane listPane = new JScrollPane(recordList);\n listPane.setPreferredSize(new Dimension(thisSize.width / 3, thisSize.height));\n \n select(0, 0);\n \n this.add(listPane);\n \n recordForm = new RecordForm(fields, thisSize);\n entryForm = new JScrollPane(recordForm);\n \n this.add(entryForm);\n \n selectionAction = WAITING_ON_SELECTION;\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n oknoListyNauczycieliPanel = new javax.swing.JPanel();\n listaNauczycieliLabel = new javax.swing.JLabel();\n wyjdzOknoListyNauczycieliButton = new javax.swing.JButton();\n listaNauczycieliScrollPane = new javax.swing.JScrollPane();\n listaNauczycieliTable = new javax.swing.JTable();\n opcjePanel = new javax.swing.JPanel();\n dodajNauczycielaButton = new javax.swing.JButton();\n usunNauczycielaButton = new javax.swing.JButton();\n edytujNauczycielaButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Lista nauczycieli\");\n setLocation(new java.awt.Point(550, 200));\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n listaNauczycieliLabel.setFont(new java.awt.Font(\"PT Serif\", 1, 24)); // NOI18N\n listaNauczycieliLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n listaNauczycieliLabel.setText(\"LISTA NAUCZYCIELI\");\n\n wyjdzOknoListyNauczycieliButton.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n wyjdzOknoListyNauczycieliButton.setText(\"WYJDŹ\");\n wyjdzOknoListyNauczycieliButton.setMaximumSize(new java.awt.Dimension(100, 30));\n wyjdzOknoListyNauczycieliButton.setPreferredSize(new java.awt.Dimension(100, 30));\n wyjdzOknoListyNauczycieliButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n wyjdzOknoListyNauczycieliButtonActionPerformed(evt);\n }\n });\n\n listaNauczycieliTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n listaNauczycieliTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n listaNauczycieliTableMousePressed(evt);\n }\n });\n listaNauczycieliScrollPane.setViewportView(listaNauczycieliTable);\n\n dodajNauczycielaButton.setText(\"Dodaj\");\n dodajNauczycielaButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dodajNauczycielaButtonActionPerformed(evt);\n }\n });\n\n usunNauczycielaButton.setText(\"Usuń\");\n usunNauczycielaButton.setEnabled(false);\n usunNauczycielaButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n usunNauczycielaButtonActionPerformed(evt);\n }\n });\n\n edytujNauczycielaButton.setText(\"Edytuj\");\n edytujNauczycielaButton.setEnabled(false);\n edytujNauczycielaButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n edytujNauczycielaButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout opcjePanelLayout = new javax.swing.GroupLayout(opcjePanel);\n opcjePanel.setLayout(opcjePanelLayout);\n opcjePanelLayout.setHorizontalGroup(\n opcjePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(dodajNauczycielaButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(usunNauczycielaButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(edytujNauczycielaButton, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)\n );\n opcjePanelLayout.setVerticalGroup(\n opcjePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(opcjePanelLayout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(dodajNauczycielaButton)\n .addGap(18, 18, 18)\n .addComponent(usunNauczycielaButton)\n .addGap(53, 53, 53)\n .addComponent(edytujNauczycielaButton)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout oknoListyNauczycieliPanelLayout = new javax.swing.GroupLayout(oknoListyNauczycieliPanel);\n oknoListyNauczycieliPanel.setLayout(oknoListyNauczycieliPanelLayout);\n oknoListyNauczycieliPanelLayout.setHorizontalGroup(\n oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup()\n .addGroup(oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup()\n .addGap(250, 250, 250)\n .addComponent(listaNauczycieliLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup()\n .addGap(400, 400, 400)\n .addComponent(wyjdzOknoListyNauczycieliButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addComponent(listaNauczycieliScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(opcjePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(30, Short.MAX_VALUE))\n );\n oknoListyNauczycieliPanelLayout.setVerticalGroup(\n oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(listaNauczycieliLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(67, 67, 67)\n .addGroup(oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(opcjePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(listaNauczycieliScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addComponent(wyjdzOknoListyNauczycieliButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(25, 25, 25))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(oknoListyNauczycieliPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(oknoListyNauczycieliPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void createUIComponents() {\n billboardJList = new JList<>();\n model = new DefaultListModel<>();\n\n for (Billboard billboard : billboardList) {\n model.addElement(billboard.getBillboardName());\n }\n\n billboardJList.setModel(model);\n\n previewBillboardContentsFrame = new JFrame();\n previewBillboardContentsFrame.setPreferredSize(new Dimension(500, 500));\n }", "public HistoryView() {\n\t\tthis.history = new JPanel();\n\t\tthis.history.setBackground(BackGroundColor.color);\n\t\tthis.history.setLayout(new BoxLayout(this.history, 3));\n\t\tthis.tp = new JScrollPane(22, 31);\n\t\tthis.tp.setViewportView(this.history);\n\t\tthis.tp.getVerticalScrollBar().setUnitIncrement(20);\n\t\tthis.tp.getVerticalScrollBar().addAdjustmentListener(this);\n\t\tthis.component = tp;\n\t\t//this.observer = observer;\n\t}", "@Override\n protected void createComponents(JComponent parent) {\n list = new JList(toListModel(auctionItemList));\n list.addListSelectionListener(e -> {\n if (!e.getValueIsAdjusting()) {\n displayItemInfo((String) list.getSelectedValue(), auctionItemList);\n }\n });\n\n scrollPane = new JScrollPane();\n scrollPane.setViewportView(list);\n parent.add(scrollPane);\n\n createLabels(parent);\n\n placeBidField = new JTextField();\n parent.add(placeBidField);\n\n button = new JButton(\"Place bid\");\n button.addActionListener(e -> placeBid(parent));\n parent.add(button);\n }", "private void initComponents() {\n splitPane1 = new JSplitPane();\n panel2 = new JPanel();\n panel3 = new JPanel();\n scrollPane2 = new JScrollPane();\n destList = new JList();\n panel4 = new JPanel();\n scrollPane4 = new JScrollPane();\n srcList = new JList();\n panel6 = new JPanel();\n panel7 = new JPanel();\n filesTableScroller = new JScrollPane();\n filesTable = new JTable();\n panel8 = new JPanel();\n scrollPane5 = new JScrollPane();\n sectionList = new JList();\n CellConstraints cc = new CellConstraints();\n\n //======== this ========\n setLayout(new FormLayout(\n \"default:grow\",\n \"fill:default:grow\"));\n\n //======== splitPane1 ========\n {\n splitPane1.setOrientation(JSplitPane.VERTICAL_SPLIT);\n\n //======== panel2 ========\n {\n panel2.setLayout(new FormLayout(\n \"default:grow, $lcgap, default:grow\",\n \"fill:default:grow\"));\n\n //======== panel3 ========\n {\n panel3.setBorder(new TitledBorder(\"Destinations\"));\n panel3.setLayout(new FormLayout(\n \"default:grow\",\n \"fill:default:grow\"));\n\n //======== scrollPane2 ========\n {\n\n //---- destList ----\n destList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n destList.setVisibleRowCount(5);\n destList.addListSelectionListener(new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent e) {\n destChanged();\n }\n });\n scrollPane2.setViewportView(destList);\n }\n panel3.add(scrollPane2, cc.xy(1, 1));\n }\n panel2.add(panel3, cc.xy(1, 1));\n\n //======== panel4 ========\n {\n panel4.setBorder(new TitledBorder(\"Sources\"));\n panel4.setLayout(new FormLayout(\n \"default:grow\",\n \"fill:default:grow\"));\n\n //======== scrollPane4 ========\n {\n\n //---- srcList ----\n srcList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n srcList.setVisibleRowCount(5);\n srcList.addListSelectionListener(new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent e) {\n srcChanged();\n }\n });\n scrollPane4.setViewportView(srcList);\n }\n panel4.add(scrollPane4, cc.xy(1, 1));\n }\n panel2.add(panel4, cc.xy(3, 1));\n }\n splitPane1.setTopComponent(panel2);\n\n //======== panel6 ========\n {\n panel6.setLayout(new FormLayout(\n \"default:grow\",\n \"fill:default:grow, $lgap, fill:default:grow\"));\n\n //======== panel7 ========\n {\n panel7.setBorder(new TitledBorder(\"File Information\"));\n panel7.setLayout(new FormLayout(\n \"default:grow\",\n \"fill:default:grow\"));\n\n //======== filesTableScroller ========\n {\n\n //---- filesTable ----\n filesTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n filesTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n filesTableScroller.setViewportView(filesTable);\n }\n panel7.add(filesTableScroller, cc.xy(1, 1));\n }\n panel6.add(panel7, cc.xy(1, 1));\n\n //======== panel8 ========\n {\n panel8.setBorder(new TitledBorder(\"Sections Information\"));\n panel8.setLayout(new FormLayout(\n \"default:grow\",\n \"fill:default:grow\"));\n\n //======== scrollPane5 ========\n {\n scrollPane5.setViewportView(sectionList);\n }\n panel8.add(scrollPane5, cc.xy(1, 1));\n }\n panel6.add(panel8, cc.xy(1, 3));\n }\n splitPane1.setBottomComponent(panel6);\n }\n add(splitPane1, cc.xy(1, 1));\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "public WListbox()\n\t{\n\t\tsuper();\n\t\tWListItemRenderer rowRenderer = new WListItemRenderer();\n\t rowRenderer.addTableValueChangeListener(this);\n\n\t\tsetItemRenderer(rowRenderer);\n\t\tsetModel(new ListModelTable());\n\t}", "public void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 806, 499);\n\t\tframe.setDefaultCloseOperation(1);\n\t\tframe.getContentPane().setLayout(null);\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(\"javax.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t} catch (ClassNotFoundException | InstantiationException | IllegalAccessException\n\t\t\t\t| UnsupportedLookAndFeelException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 243, 790, 217);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(10, 11, 770, 169);\n\t\tpanel.add(scrollPane);\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setModel(model);\n\t\tmodel.setColumnIdentifiers(inventory);\n\t\tscrollPane.setViewportView(table);\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(100);\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(2).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(3).setPreferredWidth(110);\n\t\ttable.getColumnModel().getColumn(4).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(5).setPreferredWidth(100);\n\t\ttable.getColumnModel().getColumn(6).setPreferredWidth(110);\n\t\ttable.getColumnModel().getColumn(7).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(7).setPreferredWidth(120);\n\n//\n//\t\ttable.setShowGrid(false);\n//\t\ttable.setShowHorizontalLines(true);\n//\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setDefaultEditor(Object.class, null);\n\t\tscrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(255, 255, 255), new Color(160, 160, 160)), \"Add New Item\", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 205)));\n\t\tpanel_1.setBounds(10, 11, 770, 194);\n\t\tframe.getContentPane().add(panel_1);\n\t\tpanel_1.setLayout(null);\n\t\t\n\t\tdrugIDGen = new JTextField();\n\t\tdrugIDGen.setBounds(123, 32, 146, 26);\n\t\tpanel_1.add(drugIDGen);\n\t\tdrugIDGen.setColumns(10);\n\t\t\n\t\texDate = new JTextField();\n\t\texDate.setColumns(10);\n\t\texDate.setBounds(123, 143, 146, 26);\n\t\tpanel_1.add(exDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(388, 143, 146, 26);\n\t\tpanel_1.add(date);\n\t\t\n\t\tdrugname = new JTextField();\n\t\tdrugname.setColumns(10);\n\t\tdrugname.setBounds(123, 69, 146, 26);\n\t\tpanel_1.add(drugname);\n\t\t\n\t\tuPrice = new JTextField();\n\t\tuPrice.setColumns(10);\n\t\tuPrice.setBounds(388, 32, 146, 26);\n\t\tpanel_1.add(uPrice);\n\t\t\n\t\tqSold = new JTextField();\n\t\tqSold.setColumns(10);\n\t\tqSold.setBounds(388, 69, 146, 26);\n\t\tpanel_1.add(qSold);\n\t\tqSold.setText(0+\"\");\n\t\tqSold.setEditable(false);\n\t\t\n\t\tgrammage = new JTextField();\n\t\tgrammage.setColumns(10);\n\t\tgrammage.setBounds(123, 106, 146, 26);\n\t\tpanel_1.add(grammage);\n\t\t\n\t\tqRemaining = new JTextField();\n\t\tqRemaining.setColumns(10);\n\t\tqRemaining.setBounds(388, 106, 146, 26);\n\t\tpanel_1.add(qRemaining);\n\t\t\n\t\tdrugidTxt = new JLabel(\"Drug ID\");\n\t\tdrugidTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugidTxt.setBounds(10, 33, 103, 20);\n\t\tpanel_1.add(drugidTxt);\n\t\t\n\t\tdrugnameTxt_1 = new JLabel(\"Drug Name\");\n\t\tdrugnameTxt_1.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugnameTxt_1.setBounds(10, 75, 103, 20);\n\t\tpanel_1.add(drugnameTxt_1);\n\t\t\n\t\tdrugnameTxt = new JLabel(\"Grammage\");\n\t\tdrugnameTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugnameTxt.setBounds(10, 112, 103, 20);\n\t\tpanel_1.add(drugnameTxt);\n\t\t\n\t\tlblExpiryDate = new JLabel(\"Expiry Date\");\n\t\tlblExpiryDate.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblExpiryDate.setBounds(10, 149, 103, 20);\n\t\tpanel_1.add(lblExpiryDate);\n\t\t\n\t\tunitpriceTxt = new JLabel(\"Unit Price\");\n\t\tunitpriceTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tunitpriceTxt.setBounds(279, 32, 103, 20);\n\t\tpanel_1.add(unitpriceTxt);\n\t\t\n\t\tlblQtySold = new JLabel(\"QTY Sold\");\n\t\tlblQtySold.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblQtySold.setBounds(279, 69, 103, 20);\n\t\tpanel_1.add(lblQtySold);\n\t\t\n\t\tlblQtyReamin = new JLabel(\"Drug QTY \");\n\t\tlblQtyReamin.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblQtyReamin.setBounds(275, 107, 103, 20);\n\t\tpanel_1.add(lblQtyReamin);\n\t\t\n\t\tlblPurchDate = new JLabel(\"Purch. Date\");\n\t\tlblPurchDate.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblPurchDate.setBounds(279, 144, 103, 20);\n\t\tpanel_1.add(lblPurchDate);\n\t\t\n\t\tpanel_2 = new JPanel();\n\t\tpanel_2.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(255, 255, 255), new Color(160, 160, 160)), \"Menu\", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 205)));\n\t\tpanel_2.setBounds(544, 32, 216, 138);\n\t\tpanel_1.add(panel_2);\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tbtnNewButton = new JButton(\"Generate ID\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tdouble num = Math.floor(Math.random() * 1600);\n\t\t\t\tint runout = (int) num;\n\t\t\t\tString coll = drugname.getText();\n\t\t\t\tString output = \"\";\n\t\t\t\t\n\t\t\t\tif(drugname.getText().isEmpty()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Enter Drug Name in order to generate ID\");\n\t\t\t\t}\n\t\t\t\telse {\t\t\t\t\n\t\t\t\tif(coll.length()>=4) {\n\t\t\t\t\toutput = coll.substring(0, 4);\n\t\t\t\t\tdrugIDGen.setText(output + runout+\"\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\toutput = coll.substring(0, 3);\n\t\t\t\t\tdrugIDGen.setText(output + runout+\"\");\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBackground(new Color(50, 205, 50));\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tbtnNewButton.setBounds(10, 20, 196, 29);\n\t\tpanel_2.add(btnNewButton);\n\t\t\n\t\tbtnAddDrugs = new JButton(\"Add New\");\n\t\tbtnAddDrugs.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddNewDrug();\n\t\t\t}\n\t\t});\n\t\tbtnAddDrugs.setBackground(new Color(50, 205, 50));\n\t\tbtnAddDrugs.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnAddDrugs.setBounds(10, 60, 196, 29);\n\t\tpanel_2.add(btnAddDrugs);\n\t\t\n\t\tbtnNewButton_2 = new JButton(\"View Details\");\n\t\tbtnNewButton_2.setBackground(new Color(50, 205, 50));\n\t\tbtnNewButton_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnNewButton_2.setBounds(10, 100, 196, 29);\n\t\tpanel_2.add(btnNewButton_2);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Enter drug name to generate drug ID\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tlblNewLabel.setBounds(544, 11, 216, 20);\n\t\tpanel_1.add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setColumns(10);\n\t\ttextField.setBounds(78, 210, 199, 26);\n\t\tframe.getContentPane().add(textField);\n\t\t\n\t\tlblSearch = new JLabel(\"Search\");\n\t\tlblSearch.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblSearch.setBounds(20, 212, 63, 20);\n\t\tframe.getContentPane().add(lblSearch);\n\t\tmodel.setColumnIdentifiers(inventory);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel3 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane7 = new javax.swing.JScrollPane();\n jList7 = new javax.swing.JList();\n jTextField8 = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane8 = new javax.swing.JScrollPane();\n jList8 = new javax.swing.JList();\n jTextField9 = new javax.swing.JTextField();\n jPanel1 = new javax.swing.JPanel();\n jTextField1 = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList();\n jScrollPane2 = new javax.swing.JScrollPane();\n jList2 = new javax.swing.JList();\n jScrollPane3 = new javax.swing.JScrollPane();\n jList3 = new javax.swing.JList();\n jScrollPane4 = new javax.swing.JScrollPane();\n jList4 = new javax.swing.JList();\n jScrollPane5 = new javax.swing.JScrollPane();\n jList5 = new javax.swing.JList();\n jScrollPane6 = new javax.swing.JScrollPane();\n jList6 = new javax.swing.JList();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jTextField7 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jLabel10 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setFont(new java.awt.Font(\"Arial Black\", 0, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(102, 51, 0));\n jLabel2.setText(\"Drinks\");\n jPanel3.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 10, -1, -1));\n\n jList7.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jList7.setForeground(new java.awt.Color(102, 51, 0));\n jList7.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"None\", \"Tea\", \"Coffee\", \"Soft Drinks\", \"Cold Coffee\", \"Cold Coffee with Ice-Cream\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList7MouseClicked(evt);\n }\n });\n jScrollPane7.setViewportView(jList7);\n\n jPanel3.add(jScrollPane7, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 40, 116, 130));\n\n jTextField8.setEditable(false);\n jTextField8.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jTextField8.setText(\"0\");\n jTextField8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField8ActionPerformed(evt);\n }\n });\n jPanel3.add(jTextField8, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 180, 121, -1));\n\n getContentPane().add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(940, 380, 160, -1));\n\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Arial Black\", 0, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(102, 153, 0));\n jLabel1.setText(\"Salad\");\n jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 10, -1, -1));\n\n jList8.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jList8.setForeground(new java.awt.Color(51, 102, 0));\n jList8.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"None\", \"Green Salad\", \"Cucumber Salad\", \"Fruit Salad\", \"Dry Papad\", \"Fry Papad\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList8MouseClicked(evt);\n }\n });\n jScrollPane8.setViewportView(jList8);\n\n jPanel2.add(jScrollPane8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, 107, 127));\n\n jTextField9.setEditable(false);\n jTextField9.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jTextField9.setText(\"0\");\n jTextField9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField9ActionPerformed(evt);\n }\n });\n jPanel2.add(jTextField9, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 180, 107, -1));\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(1125, 380, 130, -1));\n\n jPanel1.setBackground(new java.awt.Color(204, 204, 204));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jTextField1.setEditable(false);\n jTextField1.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jTextField1.setText(\"0\");\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n jPanel1.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(43, 245, 116, -1));\n\n jList1.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jList1.setForeground(new java.awt.Color(102, 0, 0));\n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"None\", \"Paneer masala dosa\", \"Onion sada dosa\", \"Masala dosa\", \"Paper roast dosa\", \"Butter sada dosa\", \"Onion vada\", \"Sada vada\", \"Veg upma\", \"Sada upma\", \"Halwa(Sweet)\", \"Alu chop\", \"Idli\", \"Sambhar idli\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList1MouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jList1);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(43, 59, 116, -1));\n\n jList2.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jList2.setForeground(new java.awt.Color(102, 0, 0));\n jList2.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"None\", \"Dal fry\", \"Dal tadka\", \"Dal makini\", \"Mix vegetable curry\", \"Vegetable kurma\", \"Aloo dum\", \"Malai kofta\", \"Paneer tikka masala\", \"Kadai paneer\", \"Paneer butter masala\", \"Paneer bharta\", \"Aloo kobi\", \"Kobi masala\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList2MouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(jList2);\n\n jPanel1.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(199, 59, 120, -1));\n\n jList3.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jList3.setForeground(new java.awt.Color(102, 0, 0));\n jList3.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"None\", \"Veg sweet corn soup\", \"Hot/soup\", \"Lemon noodles soup\", \"Manchurian soup\", \"Tomato soup\", \"Mushroom soup\", \"Manchurian\", \"Noodles\", \"Veg haka noodles\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList3MouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(jList3);\n\n jPanel1.add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(348, 59, 113, -1));\n\n jList4.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jList4.setForeground(new java.awt.Color(102, 0, 0));\n jList4.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"None\", \"Veg-American chopsuey\", \"Mushroom chilly\", \"Baby corn chilly\", \"Potato chilly\", \"Gobi chilly\", \"Chana masala\", \"Mattar paneer\", \"Mushroom curry\", \"Palak cream\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList4MouseClicked(evt);\n }\n });\n jScrollPane4.setViewportView(jList4);\n\n jPanel1.add(jScrollPane4, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 59, 116, -1));\n\n jList5.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jList5.setForeground(new java.awt.Color(102, 0, 0));\n jList5.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"None\", \"Plain rice\", \"Veg pulao\", \"Green peas pulao\", \"Sajan pulao\", \"Kashmiri pulao\", \"Veg fried rice\", \"Veg-biryani\", \"Jira-rice\", \"Lemon rice\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList5MouseClicked(evt);\n }\n });\n jScrollPane5.setViewportView(jList5);\n\n jPanel1.add(jScrollPane5, new org.netbeans.lib.awtextra.AbsoluteConstraints(638, 59, 111, -1));\n\n jList6.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jList6.setForeground(new java.awt.Color(102, 0, 0));\n jList6.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"None\", \"Tawa roti\", \"Tandoor roti\", \"Butter roti\", \"Plain nan\", \"Butter nan\", \"Plain kulcha\", \"Masala kulcha\", \"Tandoori lachha paratha\", \"Kashmiri nan\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList6MouseClicked(evt);\n }\n });\n jScrollPane6.setViewportView(jList6);\n\n jPanel1.add(jScrollPane6, new org.netbeans.lib.awtextra.AbsoluteConstraints(788, 59, 111, -1));\n\n jTextField2.setEditable(false);\n jTextField2.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jTextField2.setText(\"0\");\n jPanel1.add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(199, 245, 120, -1));\n\n jTextField3.setEditable(false);\n jTextField3.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jTextField3.setText(\"0\");\n jTextField3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField3ActionPerformed(evt);\n }\n });\n jPanel1.add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(348, 245, 113, -1));\n\n jTextField4.setEditable(false);\n jTextField4.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jTextField4.setText(\"0\");\n jPanel1.add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 245, 116, -1));\n\n jTextField5.setEditable(false);\n jTextField5.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jTextField5.setText(\"0\");\n jPanel1.add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(638, 245, 111, -1));\n\n jTextField6.setEditable(false);\n jTextField6.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jTextField6.setText(\"0\");\n jPanel1.add(jTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(788, 245, 111, -1));\n\n jLabel3.setBackground(new java.awt.Color(255, 255, 255));\n jLabel3.setFont(new java.awt.Font(\"Arial Black\", 0, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(102, 0, 0));\n jLabel3.setText(\"South\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(43, 20, -1, -1));\n\n jLabel4.setBackground(new java.awt.Color(255, 255, 255));\n jLabel4.setFont(new java.awt.Font(\"Arial Black\", 0, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(102, 0, 0));\n jLabel4.setText(\"North\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(199, 20, -1, -1));\n\n jLabel5.setBackground(new java.awt.Color(255, 255, 255));\n jLabel5.setFont(new java.awt.Font(\"Arial Black\", 0, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(102, 0, 0));\n jLabel5.setText(\"Chinese\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(348, 20, -1, -1));\n\n jLabel6.setBackground(new java.awt.Color(255, 255, 255));\n jLabel6.setFont(new java.awt.Font(\"Arial Black\", 0, 14)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(102, 0, 0));\n jLabel6.setText(\"Veg\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 20, -1, -1));\n\n jLabel7.setBackground(new java.awt.Color(255, 255, 255));\n jLabel7.setFont(new java.awt.Font(\"Arial Black\", 0, 14)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(102, 0, 0));\n jLabel7.setText(\"Rice\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(638, 20, -1, -1));\n\n jLabel8.setBackground(new java.awt.Color(255, 255, 255));\n jLabel8.setFont(new java.awt.Font(\"Arial Black\", 0, 14)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(102, 0, 0));\n jLabel8.setText(\"Tandoor\");\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(788, 20, -1, -1));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 90, 930, 280));\n\n jLabel9.setFont(new java.awt.Font(\"Colonna MT\", 3, 72)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(204, 0, 51));\n jLabel9.setText(\"Menu\");\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 20, 353, -1));\n\n jButton1.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jButton1.setForeground(new java.awt.Color(51, 0, 0));\n jButton1.setText(\"Total Amount\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(47, 439, 122, -1));\n\n jTextField7.setEditable(false);\n jTextField7.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jTextField7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField7ActionPerformed(evt);\n }\n });\n getContentPane().add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(187, 423, 530, 58));\n\n jButton2.setFont(new java.awt.Font(\"Arial Black\", 0, 18)); // NOI18N\n jButton2.setForeground(new java.awt.Color(153, 0, 0));\n jButton2.setText(\"Order\");\n jButton2.setEnabled(false);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(77, 499, 582, 42));\n\n jButton3.setFont(new java.awt.Font(\"Arial Black\", 0, 18)); // NOI18N\n jButton3.setForeground(new java.awt.Color(153, 0, 0));\n jButton3.setText(\"Cancel\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(77, 623, 582, 41));\n\n jButton4.setFont(new java.awt.Font(\"Arial Black\", 0, 18)); // NOI18N\n jButton4.setForeground(new java.awt.Color(153, 0, 0));\n jButton4.setText(\"Reset\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(77, 570, 582, -1));\n\n jLabel10.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\LENOVO\\\\Downloads\\\\Background-Design-Desktop-Wallpaper-16241.jpg\")); // NOI18N\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 1290, 730));\n\n pack();\n }", "private void initComponents() {\n m_jCategories = new javax.swing.JPanel();\n m_jRootCategories = new javax.swing.JPanel();\n m_jscrollsubgr = new javax.swing.JScrollPane();\n m_jListSubgroups = new javax.swing.JList();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n m_jCancel = new javax.swing.JButton();\n m_jSubCategories = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n m_lblIndicator = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jPanel5 = new javax.swing.JPanel();\n m_btnBack = new javax.swing.JButton();\n m_jProducts = new javax.swing.JPanel();\n\n setLayout(new java.awt.BorderLayout());\n\n setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));\n m_jCategories.setLayout(new java.awt.CardLayout());\n\n m_jRootCategories.setLayout(new java.awt.BorderLayout());\n\n m_jscrollsubgr.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n m_jscrollsubgr.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n m_jscrollsubgr.setPreferredSize(new java.awt.Dimension(210, 0));\n m_jListSubgroups.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n m_jListSubgroups.setFocusable(false);\n m_jListSubgroups.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n m_jListSubgroupsValueChanged(evt);\n }\n });\n\n m_jscrollsubgr.setViewportView(m_jListSubgroups);\n\n m_jRootCategories.add(m_jscrollsubgr, java.awt.BorderLayout.WEST);\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n jPanel3.setLayout(new java.awt.GridLayout(0, 1, 0, 5));\n\n jPanel3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 5));\n m_jCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/openbravo/images/button_cancel.png\")));\n m_jCancel.setFocusPainted(false);\n m_jCancel.setFocusable(false);\n m_jCancel.setMargin(new java.awt.Insets(8, 14, 8, 14));\n m_jCancel.setRequestFocusEnabled(false);\n m_jCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n m_jCancelActionPerformed(evt);\n }\n });\n\n jPanel3.add(m_jCancel);\n\n jPanel2.add(jPanel3, java.awt.BorderLayout.NORTH);\n\n m_jRootCategories.add(jPanel2, java.awt.BorderLayout.CENTER);\n\n m_jCategories.add(m_jRootCategories, \"rootcategories\");\n\n m_jSubCategories.setLayout(new java.awt.BorderLayout());\n\n jPanel4.setLayout(new java.awt.BorderLayout());\n\n m_lblIndicator.setText(\"jLabel1\");\n jPanel4.add(m_lblIndicator, java.awt.BorderLayout.NORTH);\n\n m_jSubCategories.add(jPanel4, java.awt.BorderLayout.CENTER);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jPanel5.setLayout(new java.awt.GridLayout(0, 1, 0, 5));\n\n jPanel5.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 5));\n m_btnBack.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/openbravo/images/3uparrow.png\")));\n m_btnBack.setFocusPainted(false);\n m_btnBack.setFocusable(false);\n m_btnBack.setMargin(new java.awt.Insets(8, 14, 8, 14));\n m_btnBack.setRequestFocusEnabled(false);\n m_btnBack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n m_btnBackActionPerformed(evt);\n }\n });\n\n jPanel5.add(m_btnBack);\n\n jPanel1.add(jPanel5, java.awt.BorderLayout.NORTH);\n\n m_jSubCategories.add(jPanel1, java.awt.BorderLayout.EAST);\n\n m_jCategories.add(m_jSubCategories, \"subcategories\");\n\n add(m_jCategories, java.awt.BorderLayout.WEST);\n\n m_jProducts.setLayout(new java.awt.CardLayout());\n\n m_jProducts.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 0));\n add(m_jProducts, java.awt.BorderLayout.CENTER);\n\n }", "private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList();\n\n jLabel1.setText(\"Key:\");\n\n jButton1.setText(\"Internal +1\");\n\n jButton2.setText(\"Interval -1\");\n\n jScrollPane1.setViewportView(jList1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setSize(300, 200);\n\t\tthis.add(getJScrollPane(), java.awt.BorderLayout.CENTER);\n\t}", "public JList<String> makeList(int rowCount, int x, int y, int width, int height) {\r\n DefaultListModel<String> dlm = new DefaultListModel<>();\r\n list = new JList<>(dlm);\r\n list.setVisibleRowCount(rowCount);\r\n list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n list.setVisibleRowCount(-1);\r\n JScrollPane listScroll = new JScrollPane(list);\r\n listScroll.setPreferredSize(new Dimension(500, 600));\r\n list.setBounds(x, y, width, height);\r\n list.setCellRenderer(new CheckBoxListCellRenderer());\r\n\r\n list.setVisible(true);\r\n return list;\r\n }", "public VerOffersGUI(RuralHouse casa , String noches) {\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tsetBounds(100, 100, 566, 576);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\n\t\tJLabel lblbltitulo = new JLabel(\"Estos son las offertas de la casa seleccionada:\");\n\t\tlblbltitulo.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tlblbltitulo.setBounds(31, 13, 312, 16);\n\t\tcontentPane.add(lblbltitulo);\n\n\t\tJButton btnVolver = new JButton(\"Volver\");\n\t\tbtnVolver.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\n\t\t\t}\n\t\t});\n\n\t\tbtnVolver.setBounds(238, 491, 97, 25);\n\t\tcontentPane.add(btnVolver);\n\t\tVector<Offer> vectoroffertas = facade.getOffersbyHouse(casa) ;\n\n\t\t\n\t\tJList list = new JList(vectoroffertas);\n\t\tlist.setBounds(31, 71, 485, 357);\n\t\t\n\t\tScrollPane scrollPane = new ScrollPane();\n\t\tscrollPane.setBounds(31, 71, 485, 357);\n\t\tscrollPane.add(list);\n\t\tcontentPane.add(scrollPane);\n\t\t\n\t\tLabel label = new Label(\"\");\n\t\tlabel.setBounds(348, 10, 70, 24);\n\t\tcontentPane.add(label);\n\t\tlabel.setText(casa.getCity());\n\t\t\n\t\tJButton btnReservar = new JButton(\"Reservar\");\n\t\tbtnReservar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tOffer of= (Offer) list.getSelectedValue();\n\t\t\t\tJFrame reserva = new ReservarCasaGUI(of,noches,casa);\n\t\t\t\treserva.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnReservar.setBounds(238, 444, 97, 25);\n\t\tcontentPane.add(btnReservar);\n\t\t\n\t\t\n\t\t\n\n\n\t\n\t}", "public KIDSComponentDetailsJScrollPane (final JList<KIDSUIComponent> individualsJList){\n\t\t\tfinal DefaultMutableTreeNode root = new DefaultMutableTreeNode(\"Details:\");\n\t\t\tfinal JTree detailJTree = new JTree(root);\n\t\t\t\n\t\t\tdetailJTree.addTreeExpansionListener(new TreeExpansionListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void treeCollapsed(TreeExpansionEvent arg0) {\n\t\t\t\t\t// No need to process.\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void treeExpanded(TreeExpansionEvent arg0) {\n\t\t\t\t\t// Repaint parent window:\n\t\t\t\t\tKIDSComponentDetailsJScrollPane.this.repaint();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t);\n\n\t\t\t\n\t\t\tindividualsJList.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e){\n\t\t\t\t\tlogme.debug(\"Processing mouse pressed event for details tree...\");\n\t\t\t\t\troot.removeAllChildren();\n\t\t\t\t\tif (!individualsJList.isSelectionEmpty()){\n\t\t\t\t\t\tKIDSUIComponent selected = individualsJList.getSelectedValue();\n\t\t\t\t\t\tselected.getComponentDetails(root);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\tthis.setViewportView(detailJTree);\n\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n chooseList = new javax.swing.JList();\n jScrollPane2 = new javax.swing.JScrollPane();\n chosenList = new javax.swing.JList();\n removeChosenBt = new javax.swing.JButton();\n addChosen = new javax.swing.JButton();\n propTitle = new javax.swing.JLabel();\n chooseLabel = new javax.swing.JLabel();\n chosenLabel = new javax.swing.JLabel();\n\n chooseList.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n chooseList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jScrollPane1.setViewportView(chooseList);\n\n chosenList.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n chosenList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n chosenList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n chosenListValueChanged(evt);\n }\n });\n chosenList.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n chosenListFocusLost(evt);\n }\n });\n jScrollPane2.setViewportView(chosenList);\n\n removeChosenBt.setText(\"<\");\n removeChosenBt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n removeChosenBtMousePressed(evt);\n }\n });\n\n addChosen.setText(\">\");\n addChosen.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n addChosenMousePressed(evt);\n }\n });\n\n chooseLabel.setText(\"Choose:\");\n\n chosenLabel.setText(\"Chosen:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(propTitle)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(removeChosenBt, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\n .addComponent(addChosen, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE))))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(chooseLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 233, Short.MAX_VALUE)\n .addComponent(chosenLabel)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(propTitle)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addComponent(chooseLabel))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(chosenLabel)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(15, 15, 15))\n .addGroup(layout.createSequentialGroup()\n .addComponent(addChosen)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)\n .addComponent(removeChosenBt)\n .addContainerGap())))\n );\n }", "public void styleZoneAffichageJList(Vector contenu) {\r\n\r\n\t\t// Verifier l'existence d'une texteArea\r\n\t\t// ou d'une JList\r\n\t\t//\r\n\t\tif (zoneAffichage != null)\r\n\t\t\tgetContentPane().remove(zoneAffichage);\r\n\t\tif (list != null)\r\n\t\t\tgetContentPane().remove(list);\r\n\r\n\t\t// Creer la nouvelle JList\r\n\t\t// avec le contenu\r\n\t\t//\r\n\t\tlist = new JList();\r\n\t\tlist.setListData(contenu);\r\n\r\n\t\t// Ajouter la nouvelle liste\r\n\t\t// au frame support\r\n\t\t//\r\n\t\tgetContentPane().add(list);\r\n\t\tgetContentPane().setVisible(false);\r\n\t\tgetContentPane().setVisible(true);\r\n\t}", "public ProductListJPanel() {\n initComponents();\n }", "public TemplatesPanel() {\r\n initComponents();\r\n jList1.setLayoutOrientation(JList.HORIZONTAL_WRAP);\r\n renderer = new TemplateRenderer();\r\n jList1.setCellRenderer(renderer);\r\n jList1.setModel(new DefaultListModel());\r\n for (int i=0; i<40; ++i)\r\n {\r\n ((DefaultListModel)jList1.getModel()).addElement(\"\"+i);\r\n }\r\n jScrollPane1.getViewport().setBackground( Color.WHITE ); //new Color(37,37,37)\r\n\r\n //jList2.setCellRenderer(new TemplateCategoriesListCellRenderer());\r\n //jList2.setModel(new DefaultListModel());\r\n\r\n //updateCategories();\r\n //jList2.setSelectedIndex(0);\r\n clearPreview();\r\n new Thread(this).start();\r\n\r\n\r\n }", "public TaskListPane(TaskList taskList) {\n\t\tsuper();\n\t\ttasks = taskList;\n\t\tthis.tasks.addObserver(this);\n\t\tttm = new TaskTableModel(tasks.get2DArray());\n\t\tinitView();\n\t}", "public shoppingCartTableGui(){\n super(new BorderLayout());\n /* First you need to create the Model that the list is going to be */\n ListModel = new DefaultListModel();\n\n /* Now you can create the JList object with the Model as the argument. You are also \n now able to edit the List to allow different settings and let how many ever\n elements be visible */\n \n\n List = new JList(ListModel);\n List.setSelectionMode(MULTIPLE_INTERVAL_SELECTION);\n List.setSelectedIndex(0);\n List.setVisibleRowCount(5);\n List.setSize(100, 100);\n \n newTable = new DefaultTableModel(columnNames,0);\n \n table = new JTable(newTable);\n\n \n \n \n /* adds the list to the scroll panel */\n JScrollPane ScrollPanel = new JScrollPane(table);\n JScrollPane ScrollPane2 = new JScrollPane(List);\n \n table.setFillsViewportHeight(true);\n \n /* adds the scroll panel to the frame */\n add(ScrollPanel, BorderLayout.NORTH);\n \n /* creating the button that allows users to add items to grocery list\n still needs to use java to check the list for conditions */\n \n /* another reminder is that the button won't appear until placed on a panel */\n JButton AddButton = new JButton(\"Add Item\");\n AddListener addListener = new AddListener(AddButton);\n AddButton.setEnabled(false);\n AddButton.setActionCommand(\"Add Item\");\n \n /* This is attaching the an AddListener object to the button to tell the\n application what to do when this button is clicked */\n AddListener AddListener = new AddListener(AddButton);\n AddButton.addActionListener(AddListener);\n \n JButton RemoveButton = new JButton(\"Remove Item\");\n RemoveListener removeListener = new RemoveListener(RemoveButton);\n RemoveButton.setEnabled(true);\n RemoveButton.setActionCommand(\"Remove Item\");\n RemoveButton.addActionListener(removeListener);\n \n JButton PrintButton = new JButton(\"Print Items\");\n PrintListener printListener = new PrintListener(PrintButton);\n PrintButton.setEnabled(true);\n PrintButton.setActionCommand(\"Print Items\");\n PrintButton.addActionListener(printListener);\n \n JButton ClearButton = new JButton(\"Clear log\");\n clearListener clearListener = new clearListener(ClearButton);\n ClearButton.setEnabled(true);\n ClearButton.setActionCommand(\"Clear logs\");\n ClearButton.addActionListener(clearListener);\n \n add(ScrollPane2, BorderLayout.EAST);\n Item = new JTextField(20);\n Item.addActionListener(addListener);\n \n ItemPrice = new JTextField(20);\n\n ItemSerialNumber = new JTextField(20);\n\n ItemPrice.addActionListener(addListener);\n ItemSerialNumber.addActionListener(addListener);\n\n \n Item.getDocument().addDocumentListener(addListener);\n \n ItemPrice.getDocument().addDocumentListener(addListener);\n ItemSerialNumber.getDocument().addDocumentListener(addListener);\n \n ItemNameLabel = new JLabel();\n ItemPriceLabel = new JLabel();\n ItemSerialNumberLabel = new JLabel();\n \n ItemNameLabel.setText(\"Item Name: \");\n ItemPriceLabel.setText(\"Item Price: \");\n ItemSerialNumberLabel.setText(\"Item Serial Number: \");\n \n\n \n /* creating the panel where we attach our buttons to */\n JPanel Panel1 = new JPanel();\n Panel1.setLayout(new GridLayout(6,2,5,5));\n Panel1.add(AddButton);\n Panel1.add(RemoveButton);\n\n //Panel1.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n Panel1.add(ItemNameLabel);\n Panel1.add(Item);\n Panel1.add(ItemPriceLabel);\n Panel1.add(ItemPrice);\n Panel1.add(ItemSerialNumberLabel);\n Panel1.add(ItemSerialNumber);\n \n Panel1.add(PrintButton);\n Panel1.add(ClearButton);\n \n JButton addToCart = new JButton();\n addToCartListener add1 = new addToCartListener(addToCart);\n addToCart.addActionListener(add1);\n addToCart.setEnabled(true);\n \n JButton removeFromCart = new JButton();\n removeItemFromCart remove1 = new removeItemFromCart(removeFromCart);\n removeFromCart.addActionListener(remove1);\n removeFromCart.setEnabled(true);\n \n JButton checkOut = new JButton();\n checkOutListener checkOut1 = new checkOutListener(checkOut);\n checkOut.addActionListener(checkOut1);\n checkOut.setEnabled(true);\n /* adds the Panel to the frame */ \n \n shoppingCartListModel = new DefaultListModel();\n shoppingCartList = new JList(shoppingCartListModel);\n shoppingCartList.setBounds(145,0,400,400);\n \n JPanel Panel3 = new JPanel();\n Panel3.setLayout(null);\n addToCart.setBounds(10,10,115,25);\n addToCart.setText(\"Add item\");\n \n removeFromCart.setBounds(10, 45,115,25);\n removeFromCart.setText(\"Remove item\");\n \n checkOut.setBounds(10,80,115,25);\n checkOut.setText(\"Check out\");\n \n Panel3.add(addToCart);\n Panel3.add(removeFromCart);\n Panel3.add(checkOut);\n Panel3.add(shoppingCartList);\n \n JPanel Panel4 = new JPanel();\n Panel4.setLayout(null);\n \n invoiceCartListModel = new DefaultListModel();\n invoiceCart = new JList(invoiceCartListModel);\n invoiceCart.setBounds(145,0,400,400);\n \n JButton editInvoice = new JButton();\n editListener editInvoiceListener = new editListener(editInvoice);\n editInvoice.setEnabled(true);\n editInvoice.setActionCommand(\"Edit Invoice\");\n editInvoice.addActionListener(editInvoiceListener);\n editInvoice.setBounds(10,10,115,25);\n editInvoice.setText(\"Edit\");\n \n Panel4.add(invoiceCart);\n Panel4.add(editInvoice);\n\n JTabbedPane tabbedPane = new JTabbedPane();\n tabbedPane.add(\"Shopping Cart\",Panel3);\n tabbedPane.add(\"Catalog\", Panel1);\n tabbedPane.add(\"Invoices\", Panel4);\n tabbedPane.addChangeListener(new InvoiceListener());\n add(tabbedPane);\n \n\n }", "private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}", "private void initComponents() {\n\n jScrollPane = new javax.swing.JScrollPane();\n jPanelContent = new javax.swing.JPanel();\n\n setPreferredSize(new java.awt.Dimension(300, 600));\n\n jScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\n jPanelContent.setLayout(new java.awt.GridLayout(1, 0));\n jScrollPane.setViewportView(jPanelContent);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 523, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextPane1 = new javax.swing.JTextPane();\n jScrollPane3 = new javax.swing.JScrollPane();\n jList2 = new javax.swing.JList();\n jScrollPane4 = new javax.swing.JScrollPane();\n jList3 = new javax.swing.JList();\n jTextField3 = new javax.swing.JTextField();\n jScrollPane5 = new javax.swing.JScrollPane();\n jList4 = new javax.swing.JList();\n jScrollPane6 = new javax.swing.JScrollPane();\n jList5 = new javax.swing.JList();\n jScrollPane7 = new javax.swing.JScrollPane();\n jTextPane2 = new javax.swing.JTextPane();\n jButton1 = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n jCheckBox1 = new javax.swing.JCheckBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Query Window\");\n\n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList1.setMaximumSize(null);\n jList1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList1MouseClicked(evt);\n }\n });\n jList1.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jList1ValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(jList1);\n\n jTextPane1.setAutoscrolls(false);\n jScrollPane2.setViewportView(jTextPane1);\n\n jList2.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList2.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jList2ValueChanged(evt);\n }\n });\n jScrollPane3.setViewportView(jList2);\n\n jList3.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList3.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jList3ValueChanged(evt);\n }\n });\n jScrollPane4.setViewportView(jList3);\n\n jTextField3.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n jTextField3KeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jTextField3KeyTyped(evt);\n }\n });\n\n jList4.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane5.setViewportView(jList4);\n\n jList5.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList5.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jList5ValueChanged(evt);\n }\n });\n jScrollPane6.setViewportView(jList5);\n\n jTextPane2.setAutoscrolls(false);\n jScrollPane7.setViewportView(jTextPane2);\n\n jButton1.setText(\"EA\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jTextField1.setText(\"10000\");\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jCheckBox1.setText(\"Sentiment\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(85, 85, 85))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 846, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 347, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jCheckBox1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 258, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE))\n .addComponent(jScrollPane5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane3)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 610, Short.MAX_VALUE)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.LEADING)))\n .addComponent(jScrollPane7)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jCheckBox1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2))\n );\n\n pack();\n }", "public MultiMonitorDialog(java.awt.Frame parent, boolean modal,java.awt.GraphicsDevice[] gds, int current)\n {\n super(parent, modal);\n \n javax.swing.JScrollPane jScrollPane1 = new javax.swing.JScrollPane();\n javax.swing.JList jList1 = new javax.swing.JList();\n javax.swing.JLabel jL = new javax.swing.JLabel(Localization.Texts[139]+\".\");\n javax.swing.JButton button = new javax.swing.JButton(\"OK\");\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n jScrollPane1.setViewportView(jList1);\n \n getContentPane().setLayout(new javax.swing.BoxLayout(this.getContentPane(),javax.swing.BoxLayout.Y_AXIS));\n this.add(jL);\n this.add(jScrollPane1);\n this.add(button);\n\n this.setTitle(Localization.Texts[139]);\n javax.swing.DefaultListModel<String> listModel = new javax.swing.DefaultListModel<>();\n StringBuilder sb=new StringBuilder (200);\n for (int i=0;i<gds.length;i++) // show description of all monitors\n {\n sb.setLength(0); // nothing yet\n java.awt.GraphicsDevice device = gds[i];\n java.awt.GraphicsConfiguration gd=device.getDefaultConfiguration();\n // sb.append(count).append(\" : \").append(device.getIDstring()).append (\" \");\n sb.append(i).append(\" : \");\n java.awt.Rectangle bounds = gd.getBounds();\n sb.append(bounds.width).append(\" X \").append(bounds.height).append(Localization.Texts[140]);\n sb.append(bounds.x).append(\" X \").append(bounds.y);\n listModel.addElement(sb.toString());\n } \n \n jList1.setModel(listModel);\n javax.swing.ListSelectionModel lsm = jList1.getSelectionModel();\n lsm.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jList1.setSelectedIndex(current);\n jList1.addListSelectionListener(this);\n \n pack();\n final javax.swing.AbstractAction escapeAction = new javax.swing.AbstractAction() \n {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent ae) \n {\n dispose(); // this is called when user hits ESC\n }\n };\n\n getRootPane().getInputMap(javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW)\n .put(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0), \"ESCAPE_KEY\");\n getRootPane().getActionMap().put(\"ESCAPE_KEY\", escapeAction);\n \n button.addActionListener (new java.awt.event.ActionListener()\n {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n dispose();\n }\n });\n }", "@SuppressWarnings(\"serial\")\n\tprivate void initialize() {\n\t\tframe = new JFrame();\n\t\tString url = this.getClass().getResource(\"\").getPath() + \"icon.png\";\n\t\t\n\t\ttry {\n\t\t\timage = ImageIO.read(new File(url));\n\t\t\tframe.setIconImage(image);\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tframe.setTitle(\"Testing Demo\");\n\t\tframe.setBounds(100, 100, 1062, 622);\n//\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t @Override\n\t\t public void windowClosing(WindowEvent e) {\n\t\t \tif (mainTaskThread != null) {\n\t\t \t\tmainTaskThread.requestStop();\n\t\t \t}\n\t\t \tSystem.exit(0);\n\t\t }\n\t\t});\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));\n\t\t\n\t\tJScrollPane dropListSP = new JScrollPane();\n\t\tJScrollPane consoleSP = new JScrollPane();\n\t\t\n\t\tJTextArea dropTA = new JTextArea(20, 20);\n\t\tdropTA.setBackground(Color.LIGHT_GRAY);\n\t\tdropTA.setText(\"DropListTA\\n\\n\");\n\t\tdropTA.setEditable(false);\n\t\tdropListSP.getViewport().setView(dropTA);\n\t\tpanel.add(dropListSP);\n\n\t\tJTextArea consoleTA = new JTextArea(40, 40);\n\t\t\n\t\t// move textview to the line\n\t\tDefaultCaret caret = (DefaultCaret) consoleTA.getCaret();\n\t\tcaret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE); \n//\t\tTextAreaFIFO consoleTA = new TextAreaFIFO(1000);\n\t\t//redirect sysout\n//\t\tredirectOutput(consoleTA);\n\t\tconsoleTA.setForeground(Color.ORANGE);\n\t\tconsoleTA.setBackground(Color.DARK_GRAY);\n\t\tconsoleTA.setText(\"ConsoleTA\\n\\n\");\n\t\tconsoleTA.setEditable(false); \n\t\tconsoleSP.getViewport().setView(consoleTA);\n\t\t\n\t\tpanel.add(consoleSP);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tframe.getContentPane().add(panel_1, BorderLayout.SOUTH);\n\t\t\n\t\tJButton mainBtn = new JButton(\"Run\");\n\t\tpanel_1.add(mainBtn);\n\t\t\n\t\tJButton stopBtn = new JButton(\"Stops\");\n\t\tstopBtn.setEnabled(false);\n\t\tpanel_1.add(stopBtn);\n\t\t\n\t\tJButton ruleBtn = new JButton(\"Helps\");\n\t\tpanel_1.add(ruleBtn);\n\t\t\n\t\t\t\n\t\tmainBtn.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tstopBtn.setEnabled(true);\n\t\t\t\tmainTaskThread = new MainThread(consoleTA, stopBtn);\n\t\t\t\tmainTaskThread.start();\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tstopBtn.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tmainTaskThread.requestStop();\n\t\t\t\t// stop mainThread\n\t\t\t\tstopBtn.setEnabled(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tdropTA.setDropTarget(new DropTarget() {\n\t\t public synchronized void drop(DropTargetDropEvent evt) {\n\t\t try {\n\t\t evt.acceptDrop(DnDConstants.ACTION_COPY);\n\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t\tList<File> droppedFiles = (List<File>)\n\t\t evt.getTransferable().getTransferData(DataFlavor.javaFileListFlavor);\n\t\t \n\t\t //do thing to each file\n\t\t for (File file : droppedFiles) {\n\t\t \t\n\t\t dropTA.append(file.getAbsolutePath() + \"\\n\");\n\t\t }\n\t\t } catch (Exception ex) {\n\t\t ex.printStackTrace();\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\t\n\t\t\n\t\truleBtn.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (frameRule == null) {\n\t\t\t\t\tframeRule = new JFrame();\n\t\t\t\t\tframeRule.setIconImage(image);\n\t\t\t\t\tframeRule.setTitle(\"Helps\");\n\t\t\t\t\tframeRule.setBounds(1162, 100, 500, 622);\n\t\t\t\t\tframeRule.setVisible(true);\n\t\t\t\t\tframeRule.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n\t\t\t\t\tframeRule.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\t\t\tJScrollPane rulePanel = new JScrollPane();\n\t\t\t\t\tframeRule.getContentPane().add(rulePanel, BorderLayout.CENTER);\n\t\t\t\t\tJTextArea ruleTA = new JTextArea();\n\t\t\t\t\truleTA.setForeground(Color.ORANGE);\n\t\t\t\t\truleTA.setBackground(Color.DARK_GRAY);\n\t\t\t\t\truleTA.setToolTipText(\"Imporntant Rules\");\n\t\t\t\t\truleTA.setEditable(false); \n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\truleTA.append(\"Rule : test test test test test test\\n\" );\n\t\t\t\t\trulePanel.getViewport().setView(ruleTA);\n\t\t\t\t} else {\n\t\t\t\t\tframeRule.dispose();\n\t\t\t\t\tframeRule = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private JScrollPane getJScrollPane() {\r\n if (jScrollPane == null) {\r\n jScrollPane = new JScrollPane();\r\n jScrollPane.setViewportView(getJListAnimals());\r\n }\r\n return jScrollPane;\r\n }", "public static void init(final UsersController uc) {\n\n listModel = new DefaultListModel<>();\n list = new JList<>(listModel); //data has type Object[]\n\n list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n list.setLayoutOrientation(JList.VERTICAL);\n list.setVisibleRowCount(-1);\n\n\n list.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent me) {\n if (me.getClickCount() == 1) {\n JList target = (JList)me.getSource();\n int index = target.locationToIndex(me.getPoint());\n if (index >= 0) {\n User clickedUser = (User) target.getModel().getElementAt(index);\n\n uc.setCurrentUser(clickedUser);\n MainController.setMessageController(uc.getCurrentUser().getMessageController());\n\n ListFormatter<User> formatter = new MessageFormatter();\n MessageView.textArea.setText(MainController.getMessageController().format(formatter));\n \n /*\n if(ChatsController.exists(clickedUser)) {\n MainController.setUsersController(uc);\n //MessageStorageEl ms = ChatsController.getMessageStorage(clickedUser);\n //mc.updateMessages(clickedUser, ms.getMessages(), ms.getListeners());\n } else {\n JOptionPane.showMessageDialog(null, \"error, message controller wasn't initiated\");\n }\n */\n\n //JOptionPane.showMessageDialog(null, clickedUser.toString());\n }\n }\n }\n });\n\n userPanel = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n userPanel.setPreferredSize(new Dimension(250, 500));\n\n\n /*\n ListFormatter formatter = new UserFormatter();\n\n UsersView.textArea = new JTextArea(20, 40);\n UsersView.textArea.setEditable(false);\n\n uc.addChangeListener(event -> {\n UsersView.textArea.setText(uc.format(formatter));\n });\n */\n\n uc.setListModel(listModel);\n uc.addItem(new User(\"127.0.0.1\", \"test user\"));\n\n //userPanel = new JScrollPane(textArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\n //textArea.add(comp)\n //userPanel.setPreferredSize(new Dimension(250, 500));\n }", "private JPanel getPanelJLists() {\n\t\tif (panelJLists == null) {\n\t\t\tpanelJLists = new JPanel();\n\t\t\tpanelJLists.setLayout(new BoxLayout(getPanelJLists(), BoxLayout.X_AXIS));\n\t\t\tpanelJLists.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));\n\t\t\tpanelJLists.setPreferredSize(new Dimension(568, 162));\n\t\t\tpanelJLists.setMinimumSize(new Dimension(568, 162));\n\t\t\tpanelJLists.setMaximumSize(new Dimension(568, 162));\n\t\t\tpanelJLists.add(getJPanel(), null);\n\t\t\tpanelJLists.add(getPanelCategories(), null);\n\t\t\tpanelJLists.add(getJPanel1(), null);\n\t\t\tpanelJLists.add(getPanelFormulas(), null);\n\t\t\tpanelJLists.add(getJPanel2(), null);\n\t\t}\n\t\treturn panelJLists;\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\t\n\t\tJSplitPane splitPane = new JSplitPane();\n\t\tsplitPane.setResizeWeight(0.1);\n\t\tframe.getContentPane().add(splitPane, BorderLayout.CENTER);\n\t\t\n\t\tlist = new JList();\n\t\tlist.setModel(new AbstractListModel() {\n\t\t\tString[] values = new String[] {\"file1\", \"file2\", \"file3\", \"file4\"};\n\t\t\tpublic int getSize() {\n\t\t\t\treturn values.length;\n\t\t\t}\n\t\t\tpublic Object getElementAt(int index) {\n\t\t\t\treturn values[index];\n\t\t\t}\n\t\t});\n\t\tsplitPane.setLeftComponent(list);\n\t\t\n\t\tJPopupMenu popupMenu1 = new JPopupMenu();\n\t\taddPopup(list, popupMenu1);\n\t\t\n\t\tJMenuItem mntmNewMenuItem = new JMenuItem(\"copy\");\n\t\tpopupMenu1.add(mntmNewMenuItem);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_1 = new JMenuItem(\"paste\");\n\t\tpopupMenu1.add(mntmNewMenuItem_1);\n\t\t\n\t\t\n\t\t\n\t\tpanel = new JPanel();\n\t\tsplitPane.setRightComponent(panel);\n\t\t\n\t\tJPopupMenu popupMenu = new JPopupMenu();\n\t\taddPopup(panel, popupMenu);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_2 = new JMenuItem(\"Rect\");\n\t\tpopupMenu.add(mntmNewMenuItem_2);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_3 = new JMenuItem(\"Line\");\n\t\tpopupMenu.add(mntmNewMenuItem_3);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_4 = new JMenuItem(\"Circle\");\n\t\tpopupMenu.add(mntmNewMenuItem_4);\n\t\t\n\t\tJMenu mnNewMenu = new JMenu(\"Color\");\n\t\tpopupMenu.add(mnNewMenu);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_5 = new JMenuItem(\"Red\");\n\t\tmntmNewMenuItem_5.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpanel.setBackground(Color.RED);\n\t\t\t}\n\t\t});\n\t\tmnNewMenu.add(mntmNewMenuItem_5);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n lstGames = new javax.swing.JList();\n btnNewGame = new javax.swing.JButton();\n btnJoinGame = new javax.swing.JButton();\n\n setBorder(javax.swing.BorderFactory.createTitledBorder(\"Lobby\"));\n\n lstGames.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n lstGamesValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(lstGames);\n\n btnNewGame.setText(\"New Game\");\n btnNewGame.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNewGameActionPerformed(evt);\n }\n });\n\n btnJoinGame.setText(\"Join Game\");\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(btnNewGame)\n .add(btnJoinGame))\n .addContainerGap(55, Short.MAX_VALUE))\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .add(btnNewGame)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 198, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(btnJoinGame))\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n \n unprovisionedDevicesListModel = new DefaultListModel();\n unprovisionedDevicesList = new javax.swing.JList();\n unprovisionedDevicesScrollPane = new javax.swing.JScrollPane();\n unprovisionedDevicesList.setModel(unprovisionedDevicesListModel);\n unprovisionedDevicesScrollPane.setViewportView(unprovisionedDevicesList);\n window = new DiscoverUnprovisionedWindow(this);\n\n bluetoothMeshLabel = new javax.swing.JLabel();\n scanDevicesBtn = new javax.swing.JButton();\n provisionedDevicesLabel = new javax.swing.JLabel();\n provisionedDevicesScrollPane = new javax.swing.JScrollPane();\n provisionedDevicesList = new javax.swing.JList<>();\n groupsBtn = new javax.swing.JButton();\n\n deviceListModel = new DefaultListModel<>();\n groupsListModel = new DefaultListModel<>();\n groupsDeviceListModel = new DefaultListModel<>();\n\n bluetoothMeshLabel.setText(\"LEDVANCE Bluetooth Mesh\");\n\n scanDevicesBtn.setText(\"Scan for Devices\");\n scanDevicesBtn.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n scanDevicesBtnMouseClicked(evt);\n }\n });\n provisionedDevicesLabel.setText(\"Provisioned Devices\");\n\n provisionedDevicesList.setModel(deviceListModel\n /*new javax.swing.AbstractListModel<String>() {\n //provisionedDevices = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\"};\n public int getSize() { return provisionedDevices.size(); }\n public String getElementAt(int i) { return provisionedDevices.get(i); }\n public ArrayList updateList( String device ) { provisionedDevices.add( device ); return provisionedDevices; }\n }*/);\n provisionedDevicesList.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n provisionedDevicesListMouseClicked(evt);\n }\n });\n \n provisionedDevicesScrollPane.setViewportView(provisionedDevicesList);\n\n groupsBtn.setText(\"Groups\");\n groupsBtn.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n groupsBtnMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(bluetoothMeshLabel)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(120, 120, 120)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(provisionedDevicesLabel)\n .addGroup(layout.createSequentialGroup()\n .addComponent(provisionedDevicesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(28, 28, 28)\n .addComponent(groupsBtn)))\n .addContainerGap(110, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(scanDevicesBtn)\n .addGap(221, 221, 221))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(bluetoothMeshLabel)\n .addGap(12, 12, 12)\n .addComponent(scanDevicesBtn)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(provisionedDevicesLabel)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(provisionedDevicesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 258, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(groupsBtn)))\n .addContainerGap(25, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel2 = new javax.swing.JPanel();\n parent = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jPlaylist = new javax.swing.JList();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n btnAdd = new javax.swing.JButton();\n btnOpen = new javax.swing.JButton();\n btnUp = new javax.swing.JButton();\n btnDown = new javax.swing.JButton();\n btnSave = new javax.swing.JButton();\n btnRemove = new javax.swing.JButton();\n btnClearAll = new javax.swing.JButton();\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(java.awt.Color.orange);\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Gambar/FB_IMG_1583291276227.jpg\"))); // NOI18N\n\n jLabel2.setForeground(new java.awt.Color(255, 255, 153));\n jLabel2.setText(\"2020@ChocoCalonPresidenRI\");\n\n jScrollPane1.setViewportView(jPlaylist);\n\n jLabel4.setFont(new java.awt.Font(\"Microsoft JhengHei\", 1, 18)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"CHOCO PLANET MUSIC\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel5.setText(\"x\");\n jLabel5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel5MouseClicked(evt);\n }\n });\n\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Gambar/back copy.PNG\"))); // NOI18N\n jLabel6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel6MouseClicked(evt);\n }\n });\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Gambar/play-2 copy.png\"))); // NOI18N\n jLabel7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel7MouseClicked(evt);\n }\n });\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Gambar/stop.png\"))); // NOI18N\n jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel8MouseClicked(evt);\n }\n });\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Gambar/next.PNG\"))); // NOI18N\n jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel9MouseClicked(evt);\n }\n });\n\n btnAdd.setBackground(new java.awt.Color(255, 255, 204));\n btnAdd.setFont(new java.awt.Font(\"Tahoma\", 1, 9)); // NOI18N\n btnAdd.setText(\"ADD\");\n btnAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAddActionPerformed(evt);\n }\n });\n\n btnOpen.setBackground(new java.awt.Color(255, 255, 204));\n btnOpen.setFont(new java.awt.Font(\"Tahoma\", 1, 9)); // NOI18N\n btnOpen.setText(\"OPEN\");\n btnOpen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnOpenActionPerformed(evt);\n }\n });\n\n btnUp.setBackground(new java.awt.Color(255, 255, 204));\n btnUp.setFont(new java.awt.Font(\"Tahoma\", 1, 9)); // NOI18N\n btnUp.setText(\"UP\");\n btnUp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnUpActionPerformed(evt);\n }\n });\n\n btnDown.setBackground(new java.awt.Color(255, 255, 204));\n btnDown.setFont(new java.awt.Font(\"Tahoma\", 1, 9)); // NOI18N\n btnDown.setText(\"DOWN\");\n btnDown.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDownActionPerformed(evt);\n }\n });\n\n btnSave.setBackground(new java.awt.Color(255, 255, 204));\n btnSave.setFont(new java.awt.Font(\"Tahoma\", 1, 9)); // NOI18N\n btnSave.setText(\"SAVE\");\n btnSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSaveActionPerformed(evt);\n }\n });\n\n btnRemove.setBackground(new java.awt.Color(255, 255, 204));\n btnRemove.setFont(new java.awt.Font(\"Tahoma\", 1, 9)); // NOI18N\n btnRemove.setText(\"REMOVE\");\n btnRemove.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRemoveActionPerformed(evt);\n }\n });\n\n btnClearAll.setBackground(new java.awt.Color(255, 255, 204));\n btnClearAll.setFont(new java.awt.Font(\"Tahoma\", 1, 9)); // NOI18N\n btnClearAll.setText(\"CLEAR ALL\");\n btnClearAll.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnClearAllActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(316, 316, 316)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 427, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel5))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(94, 94, 94)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(52, 52, 52)\n .addComponent(jLabel8)\n .addGap(64, 64, 64)\n .addComponent(jLabel9))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 535, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(btnAdd)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnOpen)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnUp)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnDown)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnSave)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnRemove)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnClearAll)))))\n .addGap(52, 52, 52))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(13, 13, 13)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8))))\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnUp)\n .addComponent(btnOpen)\n .addComponent(btnDown)\n .addComponent(btnSave)\n .addComponent(btnRemove)\n .addComponent(btnClearAll)\n .addComponent(btnAdd)))\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout parentLayout = new javax.swing.GroupLayout(parent);\n parent.setLayout(parentLayout);\n parentLayout.setHorizontalGroup(\n parentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(parentLayout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 809, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n parentLayout.setVerticalGroup(\n parentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(parentLayout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(parent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(parent, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public ListTableSelectionDataSource(JList list){\n\t\tlist.addListSelectionListener(this);\n\t\tthis.list = list;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jarLista = new javax.swing.JList();\n continuar = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n clasesLista = new javax.swing.JList();\n jScrollPane3 = new javax.swing.JScrollPane();\n clasesSeleccionadasLista = new javax.swing.JList();\n jPanel3 = new javax.swing.JPanel();\n seleccionarTodas = new javax.swing.JLabel();\n removerTodas = new javax.swing.JLabel();\n removerClases = new javax.swing.JLabel();\n seleccionarClases = new javax.swing.JLabel();\n volver = new javax.swing.JButton();\n\n setBorder(null);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\n jLabel1.setText(\"Jar Examinados:\");\n\n jarLista.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jarLista.setDragEnabled(true);\n jarLista.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jarListaMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(jarLista);\n\n continuar.setText(\"Continuar\");\n continuar.setEnabled(false);\n continuar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n continuarActionPerformed(evt);\n }\n });\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Resultado\"));\n\n jScrollPane1.setViewportView(clasesLista);\n\n jScrollPane3.setViewportView(clasesSeleccionadasLista);\n\n seleccionarTodas.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/teg/recursos/imagenes/rightAll.png\"))); // NOI18N\n seleccionarTodas.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n seleccionarTodas.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n seleccionarTodasMouseClicked(evt);\n }\n });\n\n removerTodas.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/teg/recursos/imagenes/leftAll.png\"))); // NOI18N\n removerTodas.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n removerTodas.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n removerTodasMouseClicked(evt);\n }\n });\n\n removerClases.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/teg/recursos/imagenes/left.png\"))); // NOI18N\n removerClases.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n removerClases.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n removerClasesMouseClicked(evt);\n }\n });\n\n seleccionarClases.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/teg/recursos/imagenes/right.png\"))); // NOI18N\n seleccionarClases.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n seleccionarClases.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n seleccionarClasesMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(seleccionarTodas)\n .addComponent(removerTodas)\n .addComponent(removerClases)\n .addComponent(seleccionarClases, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jPanel3Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {removerClases, removerTodas, seleccionarClases, seleccionarTodas});\n\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(seleccionarClases)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(seleccionarTodas)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(removerTodas)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(removerClases)\n .addContainerGap(45, Short.MAX_VALUE))\n );\n\n jPanel3Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {removerClases, removerTodas, seleccionarClases, seleccionarTodas});\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 335, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)\n .addGap(40, 40, 40))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(31, 31, 31))\n );\n\n volver.setText(\"Volver\");\n volver.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n volverActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 307, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 556, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(volver)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 646, Short.MAX_VALUE)\n .addComponent(continuar)\n .addGap(45, 45, 45))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(16, 16, 16)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(volver)\n .addComponent(continuar))\n .addContainerGap(75, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void initList() {\r\n\t\tlist = new JList<>();\r\n\t\tFile rootFile = new File(System.getProperty(\"user.dir\"));\r\n\t\tloadFilesInFolder(rootFile);\r\n\t\tlist.addListSelectionListener(new FileListSelectionListener());\r\n\t}", "public AccessibleJScrollPane() {\n/* 1470 */ resetViewPort();\n/* */ \n/* */ \n/* */ \n/* 1474 */ JScrollBar jScrollBar = JScrollPane.this.getHorizontalScrollBar();\n/* 1475 */ if (jScrollBar != null) {\n/* 1476 */ setScrollBarRelations(jScrollBar);\n/* */ }\n/* 1478 */ jScrollBar = JScrollPane.this.getVerticalScrollBar();\n/* 1479 */ if (jScrollBar != null) {\n/* 1480 */ setScrollBarRelations(jScrollBar);\n/* */ }\n/* */ }" ]
[ "0.75408036", "0.7497929", "0.73417395", "0.7108261", "0.71024644", "0.69952685", "0.695173", "0.6891038", "0.6880951", "0.6862034", "0.68053734", "0.6709397", "0.66866666", "0.667956", "0.6676605", "0.666539", "0.6631546", "0.66176724", "0.6615017", "0.65792465", "0.65387744", "0.65354586", "0.65307504", "0.6519189", "0.65166986", "0.6505385", "0.6504089", "0.6483306", "0.6475173", "0.64745104", "0.644587", "0.64390916", "0.64373577", "0.64332306", "0.64284736", "0.640053", "0.6400293", "0.63700354", "0.63565505", "0.63476676", "0.6346517", "0.63356745", "0.6331922", "0.63251185", "0.6308262", "0.6307012", "0.6304118", "0.6293447", "0.62688166", "0.62681097", "0.6256985", "0.62554264", "0.62515485", "0.62432283", "0.62387156", "0.6235332", "0.62301326", "0.6223691", "0.62123275", "0.62098765", "0.62017506", "0.61948925", "0.6183757", "0.61819196", "0.6181102", "0.61745816", "0.61641556", "0.6145412", "0.6136481", "0.6128271", "0.6125438", "0.61158276", "0.61116594", "0.6103006", "0.6100762", "0.60960615", "0.6083182", "0.6080547", "0.6077496", "0.6072054", "0.6067796", "0.6067788", "0.6060235", "0.60595125", "0.60560834", "0.6055076", "0.6050726", "0.60481095", "0.60456866", "0.6043758", "0.6040733", "0.60393506", "0.6038147", "0.60372543", "0.6034034", "0.60314", "0.6029523", "0.6024803", "0.6010524", "0.60006136" ]
0.6893674
7
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel7 = new javax.swing.JLabel(); jCheckBox2 = new javax.swing.JCheckBox(); jCheckBox1 = new javax.swing.JCheckBox(); jLabel6 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jTextField1 = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); btn_begin = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(null); jLabel7.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N jLabel7.setForeground(new java.awt.Color(255, 255, 51)); jLabel7.setText("BEGIN"); getContentPane().add(jLabel7); jLabel7.setBounds(890, 420, 110, 50); jCheckBox2.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N jCheckBox2.setText("READY..??"); jCheckBox2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBox2ActionPerformed(evt); } }); getContentPane().add(jCheckBox2); jCheckBox2.setBounds(1550, 540, 150, 30); jCheckBox1.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N jCheckBox1.setText("READY..??"); jCheckBox1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBox1ActionPerformed(evt); } }); getContentPane().add(jCheckBox1); jCheckBox1.setBounds(300, 480, 140, 30); jLabel6.setFont(new java.awt.Font("Tempus Sans ITC", 3, 36)); // NOI18N jLabel6.setForeground(new java.awt.Color(255, 51, 0)); jLabel6.setText("PLAYER-2"); getContentPane().add(jLabel6); jLabel6.setBounds(1570, 140, 190, 110); jLabel5.setFont(new java.awt.Font("Tempus Sans ITC", 3, 36)); // NOI18N jLabel5.setForeground(new java.awt.Color(255, 51, 0)); jLabel5.setText("PLAYER-1"); getContentPane().add(jLabel5); jLabel5.setBounds(200, 140, 190, 110); jLabel4.setFont(new java.awt.Font("Viner Hand ITC", 3, 24)); // NOI18N jLabel4.setForeground(new java.awt.Color(0, 0, 204)); jLabel4.setText("ENTER YOUR NAME :"); getContentPane().add(jLabel4); jLabel4.setBounds(1320, 380, 290, 60); jTextField2.setFont(new java.awt.Font("Segoe Script", 0, 24)); // NOI18N jTextField2.setText("PLAYER2"); jTextField2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField2ActionPerformed(evt); } }); getContentPane().add(jTextField2); jTextField2.setBounds(1600, 390, 280, 40); jTextField1.setFont(new java.awt.Font("Segoe Script", 0, 24)); // NOI18N jTextField1.setText("PLAYER1"); jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); getContentPane().add(jTextField1); jTextField1.setBounds(290, 380, 280, 40); jLabel3.setFont(new java.awt.Font("Viner Hand ITC", 3, 24)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 51, 0)); jLabel3.setText("ENTER YOUR NAME :"); getContentPane().add(jLabel3); jLabel3.setBounds(10, 370, 290, 60); jLabel2.setFont(new java.awt.Font("Segoe Script", 3, 24)); // NOI18N jLabel2.setForeground(new java.awt.Color(51, 204, 255)); jLabel2.setText("WELCOME TO POKE WORLD"); getContentPane().add(jLabel2); jLabel2.setBounds(770, 20, 400, 50); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/login.jpg"))); // NOI18N getContentPane().add(jLabel1); jLabel1.setBounds(0, 0, 1920, 1080); btn_begin.setText("jButton2"); btn_begin.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_beginActionPerformed(evt); } }); getContentPane().add(btn_begin); btn_begin.setBounds(870, 390, 150, 100); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453996", "0.69434965", "0.69369817", "0.6933186", "0.6929363", "0.69259083", "0.69255763", "0.69123995", "0.6911665", "0.6894565", "0.6894252", "0.68922615", "0.6891513", "0.68894076", "0.6884006", "0.68833494", "0.6882281", "0.6879356", "0.68761575", "0.68752", "0.6872568", "0.68604666", "0.68577915", "0.6856901", "0.68561065", "0.6854837", "0.68547136", "0.6853745", "0.6853745", "0.68442935", "0.6838013", "0.6837", "0.6830046", "0.68297213", "0.68273175", "0.682496", "0.6822801", "0.6818054", "0.68177056", "0.6812038", "0.68098444", "0.68094784", "0.6809155", "0.680804", "0.68033874", "0.6795021", "0.67937285", "0.6793539", "0.6791893", "0.6790516", "0.6789873", "0.67883795", "0.67833847", "0.6766774", "0.6766581", "0.67658913", "0.67575616", "0.67566", "0.6754101", "0.6751978", "0.6741716", "0.6740939", "0.6738424", "0.6737342", "0.6734709", "0.672855", "0.6728138", "0.6721558", "0.6716595", "0.6716134", "0.6715878", "0.67096144", "0.67083293", "0.6703436", "0.6703149", "0.6701421", "0.67001027", "0.66999036", "0.66951054", "0.66923416", "0.6690235" ]
0.0
-1
Main Close Button should exit the program
@Override public void actionPerformed(ActionEvent e) { System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "void close_actionPerformed(ActionEvent e){\n\t System.exit(0);\n\t }", "public void exit() {\r\n \t\t// Send a closing signat to main window.\r\n \t\tmainWindow.dispatchEvent(new WindowEvent(mainWindow, WindowEvent.WINDOW_CLOSING));\r\n \t}", "public void exit()\r\n\t{\r\n\t\tmainFrame.exit();\r\n\t}", "private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }", "private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }", "private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }", "private void closeBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_closeBtnMouseClicked\n System.exit(0);\n }", "public void clickedQuitButton(Button button) {\r\n System.exit(0);\r\n }", "private void closeProgram()\n {\n window.close();\n }", "public void exit() {\r\n\t\tdispose();\r\n\t}", "public void Exit_button() {\n\t \t Stage stage = (Stage) btnExit.getScene().getWindow();\n\t \t \n\t \t stage.close();\n\t }", "private void jb_closeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_closeActionPerformed\n System.exit(0);\n }", "public void exitButtonClicked() {\r\n\t\tSystem.exit(0); \r\n\t\treturn;\r\n\t}", "private void jb_CloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_CloseActionPerformed\n System.exit(0);\n }", "@Override\n public void windowClosing(WindowEvent e)\n {\n gui.exitApp();\n }", "private void btnExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "public void Exit(){\n\t\t\t\tclose();\n\t\t\t}", "public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }", "private static void Close () {\n frame.setVisible (false);\n frame.dispose();\n System.exit(0);\n }", "public void close() {\n getCloseButton().click();\n }", "void closeApp();", "public void closeClick() {\n timeline.stop();\n threadWorker.shutDownExecutor();\n Platform.exit();\n }", "private void exitApplication() {\n Button exit = (Button) findViewById(R.id.activity_one_exit_button); // exit button declaration\n exit.setOnClickListener(new View.OnClickListener() { //set listener for exit button\n @Override\n public void onClick(View v) {\n finish();//close the activity\n\n }\n });\n }", "private void sairButtonActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Action\n public void Close() {\n // just close the Frame\n // This will cause setVisible() in the constructor to return\n setVisible(false);\n \n // show reminder to reference my paper\n String str = \"If you like this program, please cite:\\n\"\n + \"K. P. Pernstich\\n\"\n + \"Instrument Control (iC) – An Open-Source Software to Automate Test Equipment\\n\"\n + \"Journal of Research of the National Institute of Standards and Technology\\n\"\n + \"Volume 117 (2012) http://dx.doi.org/10.6028/jres.117.010\";\n \n JOptionPane.showMessageDialog(null, str,\n \"Humble request\", JOptionPane.INFORMATION_MESSAGE, m_iC_Properties.getLogoSmall());\n }", "private void fileExit() {\n try {\n ConnectWindow.tidyClose();\n }\n catch (Exception e) {\n displayError(e,this);\n }\n }", "private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }", "private void jButtonCancelActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n \n }", "public void exit() {\n Intent intent = new Intent(this, MainActivity.class);\n this.startActivity(intent);\n }", "private void closeFrame()\n\t{\n\t\tSystem.exit(0);\n\t}", "private static void exit(){\n\t\t\n\t\tMain.run=false;\n\t\t\n\t}", "protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}", "public void Quit();", "private void btn_ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_ExitActionPerformed\n System.exit(0);\n }", "private void btnKeluarActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "@Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "@Override\n public void windowClosing(WindowEvent evt) {\n System.exit(0); // Terminate the program\n }", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "private void quitButtonActionPerformed(ActionEvent evt) {\r\n\t\tlogger.info(\"Quit button Clicked.\");\r\n\t\tSystem.exit(0);\r\n\t}", "private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\r\n }", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "public void quit(){\n this.println(\"Bad news!!! The library has been cancelled!\");\n System.exit(0);\n\n }", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "protected void quit() {\n if (display != null) {\n display.close();\n }\n System.exit(0);\n }", "public void quit()\r\n {\r\n brokerage.logout(this);\r\n myWindow = null;\r\n }", "public void actionPerformed(ActionEvent evt) {\r \tperformAction(ACTION_CLOSE, evt);\r\t\tgetFrame().dispose();\r\t\tSystem.exit(0);\r\t}", "@Override\n public void windowClosing(WindowEvent evt) {\n System.exit(0); // Terminate the program\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}", "private void actionOnClicExit() {\r\n\t\tframe.setVisible(false);\r\n\t\tframe.dispose();\r\n\t}", "private void closeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeButtonActionPerformed\n Simulation.stopSimulation();\n CloudSim.abruptallyTerminate();\n \n dispose();\n }", "private void jButtonCancelActionPerformed() {\r\n\t\texit();\r\n\t}", "public void exitProgram() {\n\t\tgoOffline();\n\t\tmainWindow.dispose();\n\t\tif (config_ok)\n\t\t\tsaveConnectionConfiguration();\n\t\tSystem.exit(0);\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}", "public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "private void quit()\n\t{\n\t\tapplicationView.showChatbotMessage(quitMessage);\n\t\tSystem.exit(0);\n\t\t\n\t}", "public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }", "public void close() {\n System.exit(0);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n System.exit(1);\n }", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\t\n\t}", "public void showExit();", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\tSystem.exit(0);\r\n\r\n\t\t\t}", "private void close() {\r\n this.dispose();\r\n MainClass.gamesPlayed++;\r\n Examples2018.menu();\r\n }", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t\t\n\t}", "private void exit() {\n dispose();\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}", "public void closeAllWindow() {\n\t\tthis.dispose();\n\t\tSystem.exit(0);\n\t}", "public void exit();", "private void jmiExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\r\n }", "public static void closeMe() {\n window.close();\n }", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogExit();\r\n\t\t\t}", "GUI(){\r\n super(\"Chess application\");\r\n\r\n setSize(550,700);\r\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n this.addWindowListener( new WindowAdapter(){\r\n public void windowClosing(WindowEvent e)\r\n { \r\n String windowName = \"Exit Application\";\r\n String windowInfo = \"Do you want to exit Webale application?\";\r\n int result = JOptionPane.showConfirmDialog(middlePanel, windowInfo, windowName, JOptionPane.YES_NO_OPTION);\r\n if (result == JOptionPane.YES_OPTION)\r\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n }\r\n });\r\n \r\n }", "private void menuitemExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuitemExitActionPerformed\n if ( mainApp != null ) {\n mainApp.btnExitActionPerformed(); // note call to method in Main class\n } else {\n System.exit( 0 );\n }\n }", "public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }", "public void quit (ActionEvent aAe)\n\t{\n\t\t\tSystem.exit (0);\n\n\t}", "private void btnCerrarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMouseClicked\r\n \r\n System.exit(0);\r\n// TODO add your handling code here:\r\n }", "public void lobbyExitButton(MouseEvent event){\n event.consume();\n Client.sendMessageToServer(new Disconnection());\n Platform.exit();\n System.exit(APP_CLOSED_BY_LOBBY_EXIT_BUTTON);\n }", "private void exitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitButtonActionPerformed\n System.exit(0);\n }", "private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }", "public void exitProgram() {\n System.out.println(\"Closing Ranking....\");\n ScannerInputs.closeScanner();\n System.exit(0);\n }", "public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }", "public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "@Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n // super.windowClosing(e);\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tSystem.exit(0);\r\n\t\t}", "public void windowClosing(WindowEvent e) {\n\t\t \t\tif (close){\n\t\t \t\t\tSystem.exit(0);\n\t\t \t\t}\n\t\t \t}", "@FXML\n private void closeWindow(ActionEvent event) {\n Platform.exit();\n System.exit(0); \n }", "@Override\n\tpublic void actionPerformed( ActionEvent e ) {\n\t\t// Quit the program\n\t\tSystem.exit( 0 );\n\t}", "void this_windowClosing(WindowEvent e) {\n // simulate the user having clicked exit\n btn_Exit_actionPerformed( null );\n }", "public void actionPerformed(ActionEvent e) {\r\n System.exit(0);\r\n }", "public static void close(){\r\n if (showingCloseDialog)\r\n return;\r\n showingCloseDialog = true;\r\n int result = JOptionPane.showConfirmDialog(mainFrame, \"Close Jin?\", \"Confirm\", JOptionPane.OK_CANCEL_OPTION);\r\n showingCloseDialog = false;\r\n switch (result){\r\n case JOptionPane.CANCEL_OPTION:\r\n case JOptionPane.CLOSED_OPTION:\r\n return;\r\n case JOptionPane.OK_OPTION:\r\n Jin.exit();\r\n break;\r\n default:\r\n System.err.println(\"Unknown option type: \"+result);\r\n }\r\n }", "@FXML\n public void ExitProgram(ActionEvent e) {\n Runtime.getRuntime().exit(0);\n }" ]
[ "0.83941716", "0.810796", "0.807887", "0.80033326", "0.79395384", "0.7865755", "0.78424895", "0.78287005", "0.78053755", "0.77623373", "0.77616054", "0.7742279", "0.7738406", "0.77370656", "0.7698379", "0.76809555", "0.76642334", "0.76442313", "0.7604757", "0.7576654", "0.7568115", "0.7557799", "0.75312483", "0.7528853", "0.7505127", "0.7488591", "0.7486252", "0.7485802", "0.7482105", "0.74442583", "0.744057", "0.74400836", "0.74394184", "0.7427948", "0.74253416", "0.7423251", "0.74199045", "0.7417349", "0.7411417", "0.74102783", "0.74064803", "0.740519", "0.73879576", "0.73739517", "0.7372703", "0.73691773", "0.73640376", "0.736378", "0.7357488", "0.73539186", "0.7350487", "0.73482186", "0.73479235", "0.7347731", "0.7344836", "0.7343913", "0.7343573", "0.7340518", "0.7330094", "0.7324174", "0.73212826", "0.731846", "0.731846", "0.731846", "0.73176116", "0.730436", "0.7292716", "0.7285013", "0.728398", "0.72754097", "0.72624207", "0.72466624", "0.7243559", "0.7240263", "0.7239376", "0.72355366", "0.72311753", "0.72311753", "0.72311753", "0.7224899", "0.72160333", "0.7214758", "0.7210684", "0.7206819", "0.7205527", "0.7200974", "0.71956503", "0.71948946", "0.71892965", "0.7187628", "0.7181608", "0.71771485", "0.71691775", "0.7167795", "0.71659225", "0.71604455", "0.7152518", "0.7152495", "0.714275", "0.71408015" ]
0.7309899
65
Constructor of the add operation action.
public AddOperationAction(Classifier classifier, Operation operation) { super("Add operation"); Helper.checkNotNull(classifier, "classifier"); Helper.checkNotNull(operation, "operation"); this.classifier = classifier; this.operation = operation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Add() {}", "private Add() {}", "public A3Add(){}", "public InsertDataAction() {\n\t\tsuper();\n\t}", "public static OperationMBean getAddOperationMBean()\n {\n return new Operation(\"add\");\n }", "public Operation() {\n super();\n }", "public AddResource() {\n }", "public void add() {\n }", "public void add() {\n\n }", "public Curstomers_add() {\n\t\tsuper();\n\t}", "private void add() {\n\n\t}", "public AddApplicationReleaseAction() {\r\n }", "public Operation() {\n /* empty */\n }", "public AddOperationView() {\n super(\"add_operation.fxml\", \"Einsatz hinzufügen\");\n }", "public Operation(){\n\t}", "public AddInstruction(String label, String op) {\n\t\tsuper(label, op);\n\t}", "public ADD() {\n initComponents();\n }", "public Operation() {\n\t}", "public AddList() {\n setTitleText(\"Add new List\");\n addButton = new JButton(\"Add\");\n addButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n addButtonActionPerformed(actionEvent);\n }\n });\n addButton(addButton);\n }", "public void testAddAction() {\n AccuracyMockAddAction addAction = new AccuracyMockAddAction(\n modelElement, classToolUtil, manager, namespace);\n\n assertEquals(\"Should return ModelElement instance.\", modelElement,\n addAction.getModelElement());\n assertEquals(\"Should return ClassToolUtil instance.\", classToolUtil,\n addAction.getClassToolUtil());\n }", "public void add();", "Action(String desc){\n this.desc = desc;\n this.append = \"\";\n }", "public void add() {\n\t\t\n\t}", "public Add() {\n initComponents();\n }", "public void addAction(Action action) {\n\t\t\n\t}", "public EntitiesAction(Transaction transaction) {\r\n\t\tsuper();\r\n\t\tthis.transaction = transaction;\r\n\t\tif (transaction != null) {\r\n\t\t\ttransaction.add(this);\r\n\t\t} else {\r\n\t\t\tlog.info(\"Action transaction is null.\");\r\n\t\t}\r\n\t}", "public CreateIndividualPreAction() {\n }", "@Override\n\tpublic void add() {\n\t\t\n\t}", "abstract void add();", "public ActionManager() {\n\t\tsuper();\n\t}", "public static ObjectInstance getAddOperationObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 4);\n properties.put(\"name\", StringMangler\n .EncodeForJmx(getAddOperationMBean().getName()));\n properties.put(\"jmxType\", new Operation().getJmxType());\n o = new ObjectName(_domain, properties);\n\n }\n catch (Exception e)\n {\n Assert.fail(\"'Add' Operation ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new Operation().getClass().getName());\n }", "public abstract void addAction(Context context, NAAction action);", "public APIOperation()\n {\n super();\n }", "@Override\r\n\tprotected SelectionListener createAddButtonActionListener() {\r\n\t\t// the value must by initialized! (don't return new AddActionListener()) \r\n\t\tthis.addButtonListener = new EventTypeAddActionListener();\r\n\t\t\r\n\t\treturn addButtonListener;\r\n\t}", "@Override\n \tpublic void addActions() {\n \t\t\n \t}", "public void handleAdd(ActionEvent actionEvent) {\n }", "public void initForAddNew() {\r\n\r\n\t}", "public Action(Operation op, String[] args) {\n this.op = op;\n this.restriction = null;\n this.args = args;\n this.reqd = new boolean[this.args.length];\n this.cmps = new String[this.args.length];\n List<String> opts = analyzeRequiredArgs();\n this.opts = opts.toArray(new String[opts.size()]);\n }", "public GraphNode addOperation(String op){\n\t\tGraphNode opVar = new GraphNode(addElement(op, 3), 3);\n\t\tauthGraph.addVertex(opVar);\n\t\treturn opVar;\n\t}", "private void addOp(Class op){\n try {\n //Create a new instance and add it to the list\n Operation operation = (Operation)op.newInstance();\n operations.put(operation.getTextualRepresentation(), operation);\n } catch (InstantiationException | IllegalAccessException ex) {\n Logger.getLogger(RPC.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public MemberAction() {\n\t\tsuper();\n\t}", "public ConfigAction()\n {\n this(null, null, true);\n }", "public AddCommand(Task task){\r\n this.task = task;\r\n }", "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "public AddItem() {\n initComponents();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tadd();\n\t\t\t}", "public AddEvent() {\n initComponents();\n }", "public Action(long id) {\n this(id, \"\");\n }", "public UpcomingContestsManagerAction() {\r\n }", "public SaveConstitutionInformationAction() {\n }", "com.indosat.eai.catalist.standardInputOutput.RequestType addNewRequest();", "protected PMBaseAction() {\r\n super();\r\n }", "void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }", "private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed\n add();\n }", "public AddNewContactGroupAction() {\r\n\t\tsuper();\r\n\t}", "private ReductionPublisherRequestCommand() { super(null); }", "public void add (Object t)\r\n {\r\n }", "public AddCommand(Event event) {\n this.event = event;\n }", "public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}", "public addproduct() {\n\t\tsuper();\n\t}", "private ExtendedOperations(){}", "public AddTasks() {\n }", "public AddNodeWorkflow(AddNodeRequest request) {\n this.id = UUID.randomUUID();\n this.request = request;\n actions = ImmutableList.of(new BootstrapNode(),\n new AddNodeToLayout(),\n new RestoreRedundancy());\n }", "public DocumentoVinculadoAction() {\n }", "public ScheduledActionAction() {\n\n }", "public ResourceOperation(long time, String path, String author, Type atype, Target target, String ipath) {\n super(time, path, author);\n this.actionType = atype;\n this.target = target;\n this.ipath = ipath;\n }", "@SuppressWarnings(\"serial\")\r\n private Action getAddChildAction() {\r\n if (addChildAction == null) {\r\n String actionCommand = bundle.getString(ADD_CHILD_NODE_KEY);\r\n String actionKey = bundle.getString(ADD_CHILD_NODE_KEY + \".action\");\r\n addChildAction = new AbstractAction(actionCommand) {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n System.out.println(\"actionPerformed(): action = \"\r\n + e.getActionCommand());\r\n if (checkAction()) {\r\n model.addNode(\r\n nodes[0].getPath() + \"/\"\r\n + jtfChildName.getText(), taChildData\r\n .getText().getBytes());\r\n }\r\n }\r\n\r\n private boolean checkAction() {\r\n // No node or several nodes selected\r\n if (nodes == null || nodes.length > 1) {\r\n return false;\r\n }\r\n // Emptry node name\r\n if (jtfChildName.getText().isEmpty()) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutName\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n // No parent\r\n if (nodes == null || nodes.length != 1) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutParent\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }\r\n };\r\n addChildAction.putValue(Action.ACTION_COMMAND_KEY, actionKey);\r\n }\r\n return this.addChildAction;\r\n }", "public void add(Qryop a) {\n this.args.add(a);\n // flip the flag to accept weight\n this.acceptWeight = true;\n }", "public void add(Component c){}", "public Operations() {\n history = new LinkedList<>();\n future = new LinkedList<>();\n }", "protected AddTranscriptNodeModel() {\r\n this(1,2);\r\n }", "public Operation(OperationType type) {\n this.type = type;\n }", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "Operation createOperation();", "Operation createOperation();", "public Action(Operation op, String[] args, Map<String, String> restriction) {\n this.op = op;\n this.restriction = restriction;\n if (op == Operation.UPDATE || op == Operation.SEARCH) {\n Set<String> set = new HashSet<String>(restriction.keySet());\n for (int i = 0; i < args.length; ++i) set.add(args[i]);\n this.args = set.toArray(new String[set.size()]);\n } else {\n this.args = args;\n }\n this.reqd = new boolean[this.args.length];\n this.cmps = new String[this.args.length];\n List<String> opts = analyzeRequiredArgs();\n this.opts = opts.toArray(new String[opts.size()]);\n }", "public RepeaterActionDefinition() {\n }", "public AddTester(String canvasID) {\n super(\"ADD\", canvasID);\n }", "void addAction(ActionDefinition actd) throws ResultException, DmcValueException {\n \t\n \t// We have to resolve the action at this point because we iterate over \n \t// references that it contains. This should be okay because the attributes\n \t// should have been loaded first\n \ttry {\n\t\t\tactd.resolveReferences(this,currentResolver);\n\t\t} catch (DmcValueExceptionSet e) {\n\t\t\te.printStackTrace();\n\t\t}\n \t\n if (checkAndAdd(actd.getObjectName(),actd,actionDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(actd.getObjectName(),actd,actionDefs,\"action names\"));\n throw(ex);\n }\n\n if (checkAndAddDOT(actd.getDotName(),actd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(actd.getObjectName(),actd,globallyUniqueMAP,\"definition names\"));\n \tthrow(ex);\n }\n \n if (actd.getObjectName().getNameString().length() > longestActionName)\n longestActionName = actd.getObjectName().getNameString().length();\n\n Iterator<AttributeDefinition> it = null;\n if ( (it = actd.getMayParm()) != null){\n while(it.hasNext()){\n AttributeDefinition ad = it.next();\n ad.addUsingAction(actd);\n }\n }\n\n if ( (it = actd.getMustParm()) != null){\n while(it.hasNext()){\n AttributeDefinition ad = it.next();\n ad.addUsingAction(actd);\n }\n }\n\n Iterator<ClassDefinition> cdit = null;\n if ( (cdit = actd.getAttachToClass()) != null){\n while(cdit.hasNext()){\n ClassDefinition cd = cdit.next();\n actd.addAttachedToClass(cd);\n }\n }\n \n if (extensions.size() > 0){\n \tfor(SchemaExtensionIF ext : extensions.values()){\n \t\text.addAction(actd);\n \t}\n }\n\n }", "public abstract String getAddOperationLabel();", "public SearchContestsManagerAction() {\r\n }", "public org.xmlsoap.schemas.wsdl.http.OperationType addNewOperation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.http.OperationType target = null;\n target = (org.xmlsoap.schemas.wsdl.http.OperationType)get_store().add_element_user(OPERATION$0);\n return target;\n }\n }", "private AddNodeAction getAddNodeAction(DiagramView view, ModelElement modelElement, Point location) {\n AddNodeAction action = null;\n if (modelElement instanceof UseCase) {\n action = new AddUseCaseNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_USECASE_SIZE,\n (UseCase) modelElement);\n } else if (modelElement instanceof Actor) {\n action = new AddActorNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_ACTOR_SIZE,\n (Actor) modelElement);\n } else if (modelElement instanceof Subsystem) {\n action = new AddSubsystemNodeContainerAction(mainFrame, view, location,\n HandlerHelper.DEFAULT_SUBSYSTEM_SIZE, (Subsystem) modelElement);\n } else if (modelElement instanceof SimpleState) {\n if (modelElement instanceof com.topcoder.uml.model.activitygraphs.ActionState) {\n action = new AddActionStateAction(mainFrame, view, location, HandlerHelper.DEFAULT_ACTIONSTATE_SIZE,\n (com.topcoder.uml.model.activitygraphs.ActionState) modelElement);\n } else if (modelElement instanceof ObjectFlowState) {\n action = new AddObjectFlowNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_OBJECTFLOW_SIZE,\n (ObjectFlowState) modelElement);\n } else {\n SimpleState state = (SimpleState) modelElement;\n if (DeployHelper.isSendSignal(state)) {\n action = new AddSendSignalActionAction(mainFrame, view, location,\n HandlerHelper.DEFAULT_SENDSIGNAL_SIZE, (SimpleState) modelElement);\n } else {\n action = new AddAcceptEventActionAction(mainFrame, view, location,\n HandlerHelper.DEFAULT_ACCEPTEVENT_SIZE, (SimpleState) modelElement);\n }\n }\n } else if (modelElement instanceof Pseudostate) {\n Pseudostate state = (Pseudostate) modelElement;\n if (state.getKind() == PseudostateKind.CHOICE) {\n action = new AddDecisionNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_DECISION_SIZE,\n (Pseudostate) modelElement);\n } else if (state.getKind() == PseudostateKind.FORK) {\n action = new AddForkNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_FORK_SIZE,\n (Pseudostate) modelElement);\n } else if (state.getKind() == PseudostateKind.INITIAL) {\n action = new AddInitialNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_INITIAL_SIZE,\n (Pseudostate) modelElement);\n } else if (state.getKind() == PseudostateKind.JOIN) {\n action = new AddJoinNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_JOIN_SIZE,\n (Pseudostate) modelElement);\n } else if (state.getKind() == PseudostateKind.JUNCTION) {\n action = new AddMergeNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_MERGE_SIZE,\n (Pseudostate) modelElement);\n }\n } else if (modelElement instanceof FinalState) {\n FinalState state = (FinalState) modelElement;\n if (DeployHelper.isFlowFinal(state)) {\n action = new AddFlowFinalNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_FLOWFINAL_SIZE,\n (FinalState) modelElement);\n } else {\n action = new AddFinalNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_FINAL_SIZE,\n (FinalState) modelElement);\n }\n } else if (modelElement instanceof Object) {\n action = new AddObjectNodeAction(mainFrame, view, location, (Object) modelElement);\n } else if (modelElement instanceof Comment) {\n action = new AddCommentNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_COMMENT_SIZE,\n (Comment) modelElement);\n } else if (modelElement instanceof Package) {\n action = new AddPackageNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_PACKAGE_SIZE,\n (Package) modelElement);\n } else if (modelElement instanceof Interface) {\n action = new AddInterfaceNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_CLASS_SIZE,\n (Interface) modelElement);\n } else if (modelElement instanceof com.topcoder.uml.model.core.classifiers.Class) {\n action = new AddClassNodeAction(mainFrame, view, location, HandlerHelper.DEFAULT_CLASS_SIZE,\n (com.topcoder.uml.model.core.classifiers.Class) modelElement);\n }\n return action;\n }", "public void addOperator(Operator operator){\n _operators.add(operator);\n }", "public abstract void add(KitComponent component);", "public static void add(Action a) {\n\t\tsynchronized (hash) {\n\t\t\tif (hash.get(a.getName()) != null) {\n\t\t\t\tthrow new AssertionError(\"Two actions with the same name (\"\n\t\t\t\t\t\t+ a.getName() + \"):\" + a.getClass().getName()\n\t\t\t\t\t\t+ \"and \" + hash.get(a.getName()).getClass().getName());\n\t\t\t}\n\t\t\thash.put(a.getName(), a);\n\t\t}\n\t}", "public FileOpModel()\n\t{ \n\t\tthis(new ArrayList<>());\n\t}", "abstract int add(String cruise_add, String advice_add);", "private void addOp(final Op op) {\n result.add(op);\n }", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "public VisitAction() {\n }", "public OpDesc() {\n\n }", "public Operations() {\n initComponents();\n populateO();\n }", "public void createAction() {\n }", "protected void init_actions()\n {\n action_obj = new CUP$include$actions(this);\n }", "public void addOperator(Operator op) {\r\n\t\telements.add(op);\r\n\t}", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "@Override\n\tpublic void createAction(Model m) {\n\t\t\n\t}" ]
[ "0.7073881", "0.7073881", "0.69029224", "0.64818877", "0.6424291", "0.6421044", "0.63361275", "0.6309694", "0.62875617", "0.628705", "0.6270338", "0.62527317", "0.6213457", "0.6201381", "0.6196531", "0.6193372", "0.6165291", "0.6162506", "0.61514336", "0.6151405", "0.61484295", "0.61414725", "0.6134375", "0.6132349", "0.6116569", "0.6113094", "0.6109714", "0.6042163", "0.6003399", "0.5914467", "0.59066963", "0.5895907", "0.5849315", "0.5845268", "0.581422", "0.58098674", "0.58087564", "0.58009875", "0.57987803", "0.5758119", "0.57577825", "0.57366973", "0.5734144", "0.57168597", "0.571576", "0.56930465", "0.5675376", "0.5669116", "0.5669", "0.56656414", "0.56628406", "0.56615305", "0.5660531", "0.5660051", "0.5657644", "0.5644916", "0.5642903", "0.5638206", "0.5621417", "0.56200355", "0.5618956", "0.56089365", "0.5595945", "0.5594799", "0.5593165", "0.559316", "0.5573684", "0.55108535", "0.55019987", "0.5501278", "0.54889035", "0.5472231", "0.54709435", "0.54706573", "0.54706573", "0.5467673", "0.5464622", "0.54622805", "0.54618466", "0.5458321", "0.54574275", "0.5456488", "0.5437654", "0.54314137", "0.542411", "0.54186136", "0.54155743", "0.5410611", "0.5406543", "0.5404937", "0.5404937", "0.5404937", "0.5400074", "0.5398842", "0.53938764", "0.53912365", "0.5390838", "0.5389487", "0.5382857", "0.5381425" ]
0.6631831
3
Undo the add operation action.
public void undoAction() { classifier.removeFeature(operation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void undoAction(){}", "public void undo() {\n }", "void undoPreviousAction() throws NothingToUndoException;", "public void undo() {\n\t\t\r\n\t}", "public void undo() {\n setExecuted(false);\n }", "public void undo() throws CannotUndoException;", "public void undo() {\n // only check the action can be undo or not\n if (!this.canUndo()) {\n throw new CannotUndoException();\n }\n }", "@Override\n\tpublic void undo()\n\t{\n\t}", "public void undo() {\n if (!undos.isEmpty()) {\n Command toUndo = undos.removeLast();\n redos.addLast(toUndo);\n toUndo.undo();\n } \n }", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "public synchronized void undo(){\n int index_of_last_operation = instructions.size() - 1;\n if (index_of_last_operation >= 0){\n instructions.remove(index_of_last_operation);\n }\n }", "@Override\n public void undo() {\n\n }", "@Override\n public void undo() {\n\n }", "void undo();", "protected abstract void internalUndo();", "public final void undo() {\n\t\tthis.historyManager.undo();\n\t}", "public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}", "public abstract void undo();", "public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}", "@Override\r\n\tpublic void undo(Transaction tx) {\r\n\t\t// do nothing\r\n\t\t\r\n\t}", "@Override\n public boolean canUndo() {\n return false;\n }", "public void undo() {\n if (!history.isEmpty()) {\n Command c = history.get(0);\n c.undo();\n history.remove(0);\n future.add(0, c);\n }\n }", "public void undo() {\n\t\tif (lastCommand != null) {\n\t\t\tlastCommand.undo();\n\t\t\tlastCommand = null;\n\t\t}\n\t}", "@Override\n T undo();", "@Override\n void undo() {\n assert false;\n }", "@Override\r\n\tpublic E undo() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void onUndoNotPossible() {\n\n\t}", "@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }", "public void undo() {\r\n pop( true );\r\n announce( null );\r\n }", "@Override\r\n public void undo() {\n\r\n }", "public void undo () {\n // The restores must be run in the reverse order they are added.\n for (int i = restores.size() - 1; i >= 0; --i) {\n restores.get(i).run();\n }\n restores.clear();\n }", "@Override\r\n\tpublic void undo(RechercheDetailleeAction arg0, RechercheDetailleeResult arg1, ExecutionContext arg2) throws ActionException {\n\r\n\t}", "@Override\n public boolean isUndo() {\n return false;\n }", "@Override\r\n\tpublic void undo() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].undo();\r\n\t\t}\r\n\t}", "@Override\n public void undo(int numToUndo) {\n }", "public void undo() throws CannotUndoException {\n\t\tsuper.undo();\n\t\t\n\t\tSet affectedStates = this.getAffectedStates();\n\t\tif (iDeleting)\n\t\t\tiDoc.editAddStates(this, affectedStates);\n\t\telse\n\t\t\tiDoc.editRemoveStates(this, affectedStates);\n\t}", "@Override\n\tpublic void undo() {\n\t\tthis.list.delete(shape);\n\n\t}", "public void undo() {\n\t\tcmd = new UndoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "@Override\n public boolean undo() {\n // nothing required to be done\n return false;\n }", "public ActionUndo(GraphModel model) {\n super(\"Undo\");\n this.model = model;\n //putValue(Action.MNEMONIC_KEY, KeyEvent.VK_E);\n setEnabled(false);\n model.addObserver(this);\n }", "void processUndo() {\r\n boardManager.undo();\r\n }", "public void doUndo()\n {\n // Get the last thing we did and reverse it, then remove it from the undoable stuff\n // This process is similar to 'Both Tool' being clicked on a hex with old values\n LinkedList\t\t\tlastChange = (LinkedList) undoableChanges.getLast();\n \n if (lastChange != null)\n {\n ListIterator\t\tit = lastChange.listIterator(0);\n ChangedMUXHex\t\tchangedHex;\n \n while (it.hasNext())\n {\n changedHex = (ChangedMUXHex) it.next();\n // We'll assume the hex is valid since it's in this list\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n }\n \n // Repaint the hexes\n //mapComponent.repaint();\n \n // Remove what we just undid from our undoable list\n undoableChanges.removeLast();\n }\n }", "public void undoMove();", "public void undo()\r\n {\r\n if (changes!=null)\r\n {\r\n if (changes.getPrevious()!=null)\r\n {\r\n ignoreChange=true;\r\n changes.getElement().undo(doc);\r\n changes = changes.getPrevious();\r\n }\r\n }\r\n }", "public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }", "public void undoLast() {\t\t\n\t\tCommand command = undoStack.pop();\n\t\tcommand.undo();\n\t}", "private void addUndoButton() {\n\t\tundoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.UNDO);\n undoButton.setEnabled(false);\n\t\ttoolPanel.add(undoButton);\n\t\tredoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.getCommandManager().undoCommand();\n\t\t\t}\n\n\t\t});\n\t}", "@Override\n\tpublic void undo(LoginUserAction arg0, LoginUserResult arg1,\n\t\t\tExecutionContext arg2) throws ActionException {\n\n\t}", "private void undoPopItemActionPerformed(java.awt.event.ActionEvent evt) {\n undoredo.undo();\n }", "public void undo() {\n\t\tif (currentPlayer.getUndos() > 0) {\n\t\t\tcurrentPlayer.updateUndos();\n\t\t\t//System.out.println(\"Current Player's Undos!\" + currentPlayer.getUndos());\n\t\t\tturnEnd = false;\n\t\t\tmadeMove = false;\n\t\t\tboard = cloneForUndo;\n\t\t\t//printBoard();\n\t\t}\n\t}", "@Override\n\tpublic UpdateContainer undoIt(Workspace workspace) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String Undo() {\n\t\treturn \"Apagando la licuadora..........\" + receiver.turnOff();\n\t}", "void undo() {\r\n if (_moveCount > 0) {\r\n undoPosition();\r\n }\r\n }", "private void cmdUndo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().undoLastStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "private void undoDelete() {\n if (!mReversDeleteItemPositionsList.isEmpty()) {\n\n mAllItems.add(mReversDeleteItemPositionsList.get(mReversDeleteItemPositionsList.size() - 1),\n mReverseDeleteItemsList.get(mReverseDeleteItemsList.size() - 1));\n //subtract from pallet total\n mPickHandlerInterface.subtractFromTOtal(Integer.parseInt(mReverseDeleteItemsList.get(mReversDeleteItemPositionsList.size() - 1).getCaseQuantity()));\n notifyItemInserted(mReversDeleteItemPositionsList.get(mReversDeleteItemPositionsList.size() - 1));\n mReverseDeleteItemsList.remove(mReverseDeleteItemsList.size() - 1);\n mReversDeleteItemPositionsList.remove(mReversDeleteItemPositionsList.size() - 1);\n showUndoSnackbar();\n SendInformationToActivity();\n\n }\n\n }", "protected final void undo() {\n requireAllNonNull(model, previousResidentBook, previousEventBook);\n model.resetData(previousResidentBook, previousEventBook);\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public void undo() {\n if (!canUndo()) {\n throw new VersionedAssignmentList.NoUndoableStateException();\n }\n currentStatePointer--;\n resetData(assignmentListStateList.get(currentStatePointer));\n }", "public UndoableCommand undo() {\n logger.info(String.format(\"----------------[UNDOING][%s]\", this));\n return new DeleteActivityCommand(null, activityAdded);\n }", "public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }", "public void undo() {\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().add(topsoilTab);\n }", "@Override\r\n\tpublic void undo() throws InstructionExecutionException {\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.robotContainer.pickItem(id);\r\n\t\t\tthis.robotContainer.addItem(lastItem);\r\n\t\t\tthis.engine.addFuel(lastFuel-this.engine.getFuel());\r\n\t\t\tthis.engine.addRecycledMaterial(lastRecycledMaterial-this.engine.getRecycledMaterial());\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow new InstructionExecutionException();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void undo() {\n\t\tlight.off();\n\t}", "public void undoComamnd(Command command){\n undoStack.add(command);\n }", "private void undoAction(){\n if (allClickedButtons.size() > 0) {\n ButtonClass button = allClickedButtons.get(allClickedButtons.size() - 1);\n //If the button constituted a gameWin, then undo that impact as well\n if (checkGameWin(button.getSmallGame().getLettersOfAllButtons())) {\n //Resets \"partOfWonBoard\" for the buttons on the same smallGame\n for (ButtonClass b: button.getSmallGame().getAllButtons()) {\n b.setPartOfWonBoard(false);\n }\n button.getSmallGame().changeGameColor(R.color.black);\n }\n button.resetButtonResource();\n allClickedButtons.remove(button);\n if(allClickedButtons.size() > 0) {\n chosenButton = allClickedButtons.get(allClickedButtons.size()-1);\n chosenGame = chosenButton.getSmallGame();\n updateBigGameBoardForNextMove();\n } else {\n activity.startGame();\n }\n } else {\n Toast.makeText(activity,\n \"Cannot undo at this time\",\n Toast.LENGTH_SHORT).show();\n }\n }", "public FeatureCollection undoLastEdit(){\n if (lastEditType==EDIT_NONE){\n //don't undo anything, fcLast is empty\n } else if (lastEditType==EDIT_ADD){\n //remove the added features\n removeAll(fcLastEdits);\n } else if (lastEditType==EDIT_REMOVE){\n //add the removed features\n addAll(fcLastEdits);\n }\n return fcLastEdits;\n }", "void undo() {\n Move rec = _history.get(_history.size() - 1);\n int to = rec.fromIndex();\n _directions.get(to).remove(_directions.get(to).size() - 1);\n if (rec.isJump()) {\n Move middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), null);\n rec = rec.jumpTail();\n while (rec != null) {\n middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), middle);\n rec = rec.jumpTail();\n }\n while (middle != null) {\n set(middle.fromIndex(), EMPTY);\n set(middle.toIndex(), _whoseMove.opposite());\n set(middle.jumpedCol(), middle.jumpedRow(), _whoseMove);\n middle = middle.jumpTail();\n }\n\n } else {\n int from = rec.toIndex();\n set(to, _whoseMove.opposite());\n set(from, EMPTY);\n\n _directions.get(from).remove(_directions.get(from).size() - 1);\n }\n\n _whoseMove = _whoseMove.opposite();\n _history.remove(_history.size() - 1);\n setChanged();\n notifyObservers();\n }", "public void undo() {\n\t\tlight.on();\n\t}", "public void undo() {\n target.setCombatState( oldState );\n }", "protected void undoClicked(ActionEvent e) {\n setAllToDefaultColor();\n moveStats lastMove = board.undo();\n if (lastMove == null) {\n message.setText(\"Can't undo now\");\n return; //cannot undo\n }\n\n if (selectedPiece != null){\n selectedPiece.setBackground(getDefaultColor(selectedPiece));\n selectedPiece = null;\n }\n setButtonIcon(lastMove.startRow,lastMove.startCol);\n setButtonIcon(lastMove.endRow,lastMove.endCol);\n message.setText(getTurnMessage());\n\n }", "public boolean canUndo();", "public boolean canUndo();", "public void onUndo() {\n game.undoLastTurn(player1);\n game.undoLastTurn(computer);\n if (player1.getRollCount() == 0 && computer.getRollCount() == 0) {\n setDefault(\"player\");\n setDefault(\"computer\");\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n } else {\n updateFields(\"player\");\n updateFields(\"computer\");\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n graph.addUndoableEdit(new DeleteUndoableEdit(graph));\n }", "public void undo(String dummy) {\n _game.undo();\n _display.repaint();\n updateScore();\n }", "public void undo() {\n\t\tstudentWorkerOperation.UndoNewBadgeHelper(badgeId);\n\t}", "void redoPreviousAction() throws NothingToRedoException;", "private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }", "@Override\r\n\tpublic void undo() {\n\t\tstack.push(data);\r\n\t\tJList1.setListData(stack.getStackVector()); // refresh the JList\r\n\r\n\t}", "@Override\n\tpublic boolean undo(Usuario usuario, List<Integer> params) {\n\t\treturn false;\n\t}", "@Override\n\t/**\n\t * undo is irrelevant in this case\n\t */\n\tpublic Task[] undo() {\n\t\treturn null;\n\t}", "public static void undoButton(){\n\t\tundoMoveClass.undoButtonHelper(board);\n\t}", "@Override\n\tpublic void undo() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.undo();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.undo();\n\t\t}\n\t}", "@Override\n\tpublic void undo() {\n\t\tsecurity.off();\n\t}", "public void undoMove() {\n field.undoMove();\n }", "@Override\n\tpublic void undoAction() {\n\t\tfield.setValue(oldValue);\n\n\t\tif (checkBox != null)\n\t\t\tcheckBox.setSelected(oldValue);\n\t}", "public abstract void undoMove();", "void undoExpenseTracker() throws NoUserSelectedException;", "@Override\r\n\tpublic void undo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.remove(shape);\r\n\t}", "public void undoableEditHappened() { }", "public void undoableEditHappened() { }", "private void addUndoStep(IHexEditorCommand comm) {\n\t\tif (!comm.execute())\n\t\t\treturn;\n\t\tint maxundo = Activator.getDefault().getPreferenceStore().getInt(HexEditorConstants.PROPERTY_MAX_UNDO_STEPS);\n\n\t\tundolist.push(comm);\n\t\tredolist.clear();\n\n\t\tif (maxundo > 0 && undolist.size() > maxundo) {\n\t\t\tundolist.remove(0);\n\t\t}\n\n\t\thexEditor.setDirty(true);\n\t\tupdateActions();\n\t}", "@Override\r\n public void undoTransaction() {\n data.getStudents().remove(newStu);\r\n data.getStudents().add(stu);\r\n }", "void Undo() {\n if (shapes.size() > 0) {\n shapes.remove(shapes.size() - 1);\n lineColours.remove(lineColours.size() - 1);\n currentPenColour = lineColours.get(lineColours.size() - 1);\n fillColours.remove(fillColours.size() - 1);\n currentFillColour = fillColours.get(fillColours.size() - 1);\n writeFile.undoWrite();\n repaint();\n }\n }", "public void undoAll() {\r\n\t\tListIterator<Command> it = stack.listIterator(stack.size());\r\n\r\n\t\twhile (it.hasPrevious())\r\n\t\t\ttry {\r\n\t\t\t\tit.previous().undo();\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t}", "public void undo() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\teditor.selectPage((CompositeActor) parent);\n\t\t\t\tif (child instanceof NamedObj) {\n\t\t\t\t\tComponentUtility.setContainer(child, null);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void undo() {\n\t\tstate = null;\n\t\tfor (Row r : containingRows)\n\t\t\tr.undo(this);\n\t}", "public void roundUndo() {\n roundsHistory.pop();\n updateGameDescriptorAfterUndo();\n }" ]
[ "0.7761433", "0.7692915", "0.76483583", "0.76159286", "0.75821793", "0.7495652", "0.7465516", "0.7444439", "0.7435778", "0.74346566", "0.74346566", "0.74346566", "0.74287254", "0.7378582", "0.7378582", "0.73776203", "0.7360142", "0.73190826", "0.72556174", "0.7248187", "0.7207765", "0.7182763", "0.71605897", "0.7157869", "0.7153913", "0.7118558", "0.70848256", "0.70848244", "0.7063649", "0.70599765", "0.7029942", "0.698402", "0.6951616", "0.6948912", "0.6898144", "0.68899", "0.6884808", "0.68758845", "0.68482167", "0.6835258", "0.6794604", "0.67780846", "0.6772221", "0.67704403", "0.6761636", "0.6758127", "0.6755557", "0.6745463", "0.6725853", "0.67247045", "0.67182606", "0.67128223", "0.66839397", "0.66475874", "0.66384244", "0.6613441", "0.66054434", "0.6592449", "0.65921444", "0.6566822", "0.65468425", "0.6539571", "0.65131754", "0.65092725", "0.6499034", "0.64823085", "0.6477236", "0.6475497", "0.64705837", "0.6436796", "0.6424263", "0.64219123", "0.6419949", "0.6419949", "0.64117175", "0.6406011", "0.64031917", "0.6385435", "0.63847506", "0.6380485", "0.63633895", "0.63624215", "0.6350936", "0.6345835", "0.6328295", "0.63225317", "0.63188744", "0.6306319", "0.6303133", "0.6292775", "0.62921214", "0.62645006", "0.62645006", "0.62621623", "0.6253711", "0.62460804", "0.6229573", "0.61997586", "0.6186288", "0.6180428" ]
0.7250814
19
Execute the add operation action.
public void executeAction() { classifier.addFeature(operation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "public void add() {\n }", "public void add() {\n\t\t\n\t}", "private void add() {\n\n\t}", "public void add() {\n\n }", "public void add();", "@Override\n public CommandResult execute() {\n tasks.add(taskToAdd);\n try {\n storage.appendToFile(taskToAdd);\n return new CommandResult(String.format(MESSAGE_SUCCESS, taskToAdd));\n } catch (IOException e) {\n return new CommandResult(e.getMessage());\n }\n }", "void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }", "private void addOp(final Op op) {\n result.add(op);\n }", "public void handleAdd(ActionEvent actionEvent) {\n }", "abstract void add();", "public final void mADD() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.ADD;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:705:5: ( 'add' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:705:7: 'add'\n\t\t\t{\n\t\t\t\tthis.match(\"add\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}", "public void executeAdd(){\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString firstOperand = mIR.substring(7, 3);\n\t\tint sum;\n\t\tif(mIR.substring(10, 1).getValue() == 1){\n\t\t\tint imma5 = mIR.substring(11, 5).getValue2sComp();\n\t\t\tsum = imma5 + mRegisters[firstOperand.getValue()].getValue2sComp();\n\t\t} else {\n\t\t\tBitString secondOperand = mIR.substring(13, 3);\n\t\t\tsum = mRegisters[secondOperand.getValue()].getValue2sComp() + mRegisters[firstOperand.getValue()].getValue2sComp();\n\t\t}\n\n\t\tmRegisters[destBS.getValue()].setValue(sum);\n\n\t\tsetConditionalCode(mRegisters[destBS.getValue()]);\n\n\n\t}", "@Override\n\tpublic void add() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tadd();\n\t\t\t}", "public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}", "@Override\n\tpublic Response execute() {\n\n\t\tDatabaseAccessor db = null;\n\t\tint filetype;\n\t\tif(type.equalsIgnoreCase(\"raw\")) {\n\t\t\tfiletype = FileTuple.RAW;\n\t\t} else if(type.equalsIgnoreCase(\"profile\")) {\n\t\t\tfiletype = FileTuple.PROFILE;\n\t\t} else if(type.equalsIgnoreCase(\"region\")) {\n\t\t\tfiletype = FileTuple.REGION;\n\t\t} else {\n\t\t\tfiletype = FileTuple.OTHER;\n\t\t}\n\t\ttry {\n\t\t\tdb = initDB();\n\t\t\tFileTuple ft = db.addNewFile(experimentID, filetype, fileName, null, metaData, author, uploader, isPrivate, grVersion);\n\t\t\treturn new AddFileToExperimentResponse(StatusCode.OK, ft.getUploadURL());\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ErrorResponse(StatusCode.BAD_REQUEST, e.getMessage());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ErrorResponse(StatusCode.SERVICE_UNAVAILABLE, e.getMessage());\n\t\t} finally{\n\t\t\tdb.close();\n\t\t}\n\t}", "@Override\n\tpublic void add() {\n\n\t\tSystem.out.println(\"UserServiceImpl....\");\n\t\tthis.repository.respository();\n\n\t}", "public final void entryRuleOpAdd() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:659:1: ( ruleOpAdd EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:660:1: ruleOpAdd EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddRule()); \n }\n pushFollow(FOLLOW_ruleOpAdd_in_entryRuleOpAdd1334);\n ruleOpAdd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpAdd1341); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "abstract int add(String cruise_add, String advice_add);", "public void add(Qryop a) {\n this.args.add(a);\n // flip the flag to accept weight\n this.acceptWeight = true;\n }", "@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"Injection to database : Oracle\");\n\t}", "static void perform_add(String passed){\n\t\tint type = type_of_add(passed);\n\t\tif(type==1)\n\t\t\tadd_with_reg(passed);\n\t\telse if(type==2)\n\t\t\tadd_with_mem(passed);\n\t}", "public void add() {\n preAdd();\n EntitySelect<T> entitySelect = getEntitySelect();\n entitySelect.setMultiSelect(true);\n getEntitySelect().open();\n }", "public final void entryRuleOpAdd() throws RecognitionException {\r\n try {\r\n // InternalDroneScript.g:830:1: ( ruleOpAdd EOF )\r\n // InternalDroneScript.g:831:1: ruleOpAdd EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAddRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleOpAdd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAddRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void add() {\n\t\tHashMap<String, String> data = new HashMap<>();\n\t\tdata.put(\"title\", title);\n\t\tdata.put(\"author\", author);\n\t\tdata.put(\"publisher\", publisher);\n\t\tdata.put(\"isbn\", isbn);\n\t\tdata.put(\"bookID\", bookID);\n\t\tHashMap<String, Object> result = null;\n\t\tString endpoint = \"bookinfo/post.php\";\n\t\ttry {\n\t\t\tresult = APIClient.post(BookInfo.host + endpoint, data);\n\t\t\tvalid = result.get(\"status_code\").equals(\"Success\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n public void add() {\n String ID =id.getText();\r\n String Name =name.getText();\r\n String form_date =date_start.getText();\r\n String to_date =date_finish.getText();\r\n String Status =status.getText();\r\n String MemberID = MemberId.getText();\r\n ArrayList<String> arr = new ArrayList<String>();\r\n arr.add(ID);\r\n arr.add(Name);\r\n arr.add(form_date);\r\n arr.add(to_date);\r\n arr.add(Status);\r\n arr.add(MemberID);\r\n String PathFile = \"/home/yara/Documents/4year/OODP/Task.txt\";\r\n FileFacade facade = new FileFacade();\r\n facade.Add(PathFile, arr);\r\n }", "public String buildingBlockAddAction() throws Exception {\n\t\t\t\t\n\t return \"success\";\n\t }", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed\n add();\n }", "public final void entryRuleOpAdd() throws RecognitionException {\r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:742:1: ( ruleOpAdd EOF )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:743:1: ruleOpAdd EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAddRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpAdd_in_entryRuleOpAdd1514);\r\n ruleOpAdd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAddRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpAdd1521); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public abstract void add(T input);", "void add(T result);", "public abstract void addAction(Context context, NAAction action);", "public void cmdAdd( String name, String msg ) {\r\n String[] args = msg.split( \";\" );\r\n\r\n if( args.length != 3 ) {\r\n m_botAction.sendSmartPrivateMessage(name, \"Incorrect number of arguments found. Use ; to separate each. Ex: !add !start;8;Starts the game.\" );\r\n return;\r\n }\r\n\r\n try {\r\n String command = args[0];\r\n int votesReq = Integer.parseInt(args[1]);\r\n String display = args[2];\r\n AutoTask c = new AutoTask( command, votesReq, display );\r\n tasks.add(c);\r\n m_botAction.sendSmartPrivateMessage( name, \"Task added: \" + command );\r\n String s = \"Autopilot: \" + name + \" has added this task: \" + command;\r\n\r\n // Display to chat for people who are not extremely important\r\n if( m_opList.getAccessLevel(name) < OperatorList.SMOD_LEVEL ) {\r\n m_botAction.sendChatMessage( s );\r\n }\r\n } catch (Exception e) {\r\n m_botAction.sendSmartPrivateMessage(name, \"Couldn't parse that. Ex: !add dolock,setship 2,spec 10;8;Starts the game.\" );\r\n }\r\n }", "private Add() {}", "private Add() {}", "public void actionPerformed(ActionEvent e){\n\t\t\topenAdd();\n\t\t}", "public void receiveResultadd(\n by.makedon.axis.HandbookServiceStub.AddResponse result) {\n }", "void addAction(ActionDefinition actd) throws ResultException, DmcValueException {\n \t\n \t// We have to resolve the action at this point because we iterate over \n \t// references that it contains. This should be okay because the attributes\n \t// should have been loaded first\n \ttry {\n\t\t\tactd.resolveReferences(this,currentResolver);\n\t\t} catch (DmcValueExceptionSet e) {\n\t\t\te.printStackTrace();\n\t\t}\n \t\n if (checkAndAdd(actd.getObjectName(),actd,actionDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(actd.getObjectName(),actd,actionDefs,\"action names\"));\n throw(ex);\n }\n\n if (checkAndAddDOT(actd.getDotName(),actd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(actd.getObjectName(),actd,globallyUniqueMAP,\"definition names\"));\n \tthrow(ex);\n }\n \n if (actd.getObjectName().getNameString().length() > longestActionName)\n longestActionName = actd.getObjectName().getNameString().length();\n\n Iterator<AttributeDefinition> it = null;\n if ( (it = actd.getMayParm()) != null){\n while(it.hasNext()){\n AttributeDefinition ad = it.next();\n ad.addUsingAction(actd);\n }\n }\n\n if ( (it = actd.getMustParm()) != null){\n while(it.hasNext()){\n AttributeDefinition ad = it.next();\n ad.addUsingAction(actd);\n }\n }\n\n Iterator<ClassDefinition> cdit = null;\n if ( (cdit = actd.getAttachToClass()) != null){\n while(cdit.hasNext()){\n ClassDefinition cd = cdit.next();\n actd.addAttachedToClass(cd);\n }\n }\n \n if (extensions.size() > 0){\n \tfor(SchemaExtensionIF ext : extensions.values()){\n \t\text.addAction(actd);\n \t}\n }\n\n }", "@Override\n \tpublic void addActions() {\n \t\t\n \t}", "public String addEmployee() {\n\t\t\t//logger.info(\"addEmployee method called\");\n\t\t\t//userGroupBO.save(userGroup);;\n\t\t\treturn SUCCESS;\n\t\t}", "@When(\"^: Add them to the cart$\")\r\n\tpublic void add_them_to_the_cart() throws Throwable {\n\t\tobj.search();\r\n\t}", "public String addNew() throws Exception {\r\n\t\tgetNavigationPanel(2);\r\n\t\tExpensesCategoryModel model = new ExpensesCategoryModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.getData(expenses, request);\r\n\t\texpenses.setLoadFlag(true);\r\n\t\treset();\r\n\t\t//\texpenses.setFlag(true);\r\n\r\n\t\texpenses.setPanelFlag(\"2\");\r\n\t\texpenses.setRetrnFlag(\"success\");\r\n\r\n\t\tmodel.terminate();\r\n\t\treturn \"success\";\r\n\r\n\t}", "public static void add() {\n Application.currentUserCan( 1 );\n render();\n }", "public Integer add();", "Post addAddition(Long additionId, Long id);", "public void add(E entity);", "private IndexResponse add(JsonObject jsonObj, String indexName, String typeName, OpType operation) {\n\t\tString identificationNo = getIdentifier(jsonObj);\n\t\tIndexResponse response = add(jsonObj, indexName, typeName, operation, identificationNo);\n\t\treturn response;\n\t}", "@Override\n\tprotected void addAction(HashSet<String> addSet){\n\t\t((AdaptDependencyManager)MiddleWareConfig.getInstance().getDepManager()).addNewDeploymentNodeBySet(addSet);\n\t}", "protected void addButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\t\t\n\t\t// Get selected supply type\n\t\tSupplyType supply = null;\n\t\ttry {\n\t\t\tsupply = ftms.getSupplyType(selectedSupply);\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Get given quantity\n\t\tdouble qty = -1;\n\t\ttry {\n\t\t\tqty = Double.parseDouble(qtyTextField.getText());\n\t\t} catch (NumberFormatException | NullPointerException e) {\n\t\t}\n\t\t\n\t\t// Add supply to item\n\t\ttry {\n\t\t\tmc.addIngredientToItem(item, supply, qty);\n\t\t} catch (InvalidInputException | DuplicateTypeException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}", "public CompletionStage<Result> add()\n {\n IRequestValidator requestValidator=new CertAddRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_ADD);\n }", "public abstract void add(\n com.google.protobuf.RpcController controller,\n loull.hadoop.pb.rpc.CalculatorPbWrapper.CalRequest request,\n com.google.protobuf.RpcCallback<loull.hadoop.pb.rpc.CalculatorPbWrapper.CalResponse> done);", "void addData();", "public void testAddAction() {\n AccuracyMockAddAction addAction = new AccuracyMockAddAction(\n modelElement, classToolUtil, manager, namespace);\n\n assertEquals(\"Should return ModelElement instance.\", modelElement,\n addAction.getModelElement());\n assertEquals(\"Should return ClassToolUtil instance.\", classToolUtil,\n addAction.getClassToolUtil());\n }", "public void addAction(Action action) {\n\t\t\n\t}", "public AddResponse add(AddRequest request) {\n log.debug(\"Processing add request\");\n // instance variables are thread safe. here you may wanna set\n // state variables like ids, progress, etc.\n\n double a = request.getA();\n double b = request.getB();\n\n log.info(\"Processing add operation with a:{}, b:{}\", a, b);\n double sum = a + b;\n\n AddResponse addResponse = AddResponse.newBuilder().setSum(sum).build();\n return addResponse;\n }", "public void addOperation(Operation operation) {\n \tcandidateOPs.add(operation);\n totalTime += operation.getProcessingTime();\n }", "public abstract void add(E e);", "private CommandResult executeAddCommand(Command userCommand) {\n switch (userCommand.getCommandType()) {\n case Command.COMMAND_ADD_TODO:\n if (userCommand.getCommandDescription().equals(Command.BLANK_DESCRIPTION)) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_TODO);\n }\n try {\n tasks.add(new Todo(userCommand.getCommandDescription()));\n } catch (DukeInvalidAddTaskException e) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_TODO);\n }\n break;\n case Command.COMMAND_ADD_DEADLINE:\n try {\n tasks.add(new Deadline(userCommand.getCommandDescription()));\n } catch (DukeInvalidAddTaskException | StringIndexOutOfBoundsException e) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_DEADLINE);\n } \n break;\n case Command.COMMAND_ADD_EVENT:\n try {\n tasks.add(new Event(userCommand.getCommandDescription()));\n } catch (DukeInvalidAddTaskException | StringIndexOutOfBoundsException e) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_EVENT);\n }\n break;\n default:\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_ADD_TASK);\n }\n return new CommandResult(userCommand, CommandResult.EXECUTION_SUCCESS, CommandResult.BLANK_DESCRIPTION);\n }", "public abstract void add(\n com.google.protobuf.RpcController controller,\n loull.hadoop.pb.rpc.CalculatorPbWrapper.CalRequest request,\n com.google.protobuf.RpcCallback<loull.hadoop.pb.rpc.CalculatorPbWrapper.CalResponse> done);", "public boolean add(ConProcess conProcess) throws AppException;", "public abstract void add(T item) throws RepositoryException;", "public void add(T toAdd) {\n\t\tif (load.size() == maxLoad)\n\t\t\tSystem.out.println(\"\tERROR: Not enough room for the given item.\");\n\t\t\n\t\t//checks if this has already been loaded\n\t\telse {\n\n\t\t\tboolean loaded = false;\n\t\n\t\t\t\n\t\t\t\n\t\t\tfor (int i = 0; i < load.size(); i++) {\n\t\t\t\t\n\t\t\t\t/*System.out.println(\"***********\");\n\t\t\t\tSystem.out.println(load.get(i).getID());\n\t\t\t\tSystem.out.println(toAdd.getID());\n\t\t\t\tSystem.out.println(\"***********\");*/\n\t\t\t\t\n\t\t\t\tif (load.get(i).getID().equals(toAdd.getID()))\n\t\t\t\t\tloaded = true;\n\t\t\t}\n\t\t\t\n\t\t\tif (loaded == false)\n\t\t\t\tload.add(toAdd);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"\tERROR: Invalid item, item with id \" + toAdd.getID() + \" already exists.\");\n\t\t}\n\t}", "public void addRecord();", "@Override\n\tpublic <T> int add(List<T> store, T b) {\n\t\tif(store.add(b)){\n\t\t\tSystem.out.println(\" Success in addition \");\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tSystem.out.println(\" failed to add \");\n\t\treturn 0;\n\t\t\n\t}", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public CommandResult execute(ModuleManager moduleManager) {\n assert getModuleName() != null;\n TerminusLogger.info(\"Executing Add Question Command\");\n NusModule module = moduleManager.getModule(getModuleName());\n ContentManager<Question> contentManager = module.getContentManager(Question.class);\n assert contentManager != null;\n\n contentManager.add(new Question(question, answer));\n TerminusLogger.info(String.format(\"Question (\\\"%s\\\",\\\"%s\\\") has been added\", question, answer));\n String message = String.format(Messages.MESSAGE_RESPONSE_ADD, CommonFormat.COMMAND_QUESTION, question);\n return new CommandResult(message);\n }", "private CommandResult addLesson() throws KolinuxException {\n try {\n timetable.executeAdd(parsedArguments, false);\n } catch (ExceedWorkloadException exception) {\n new TimetablePromptHandler(exception.getMessage(), timetable).handleExceedWorkload(parsedArguments);\n }\n logger.log(Level.INFO, \"User added a module to timetable\");\n return new CommandResult(parsedArguments[0].toUpperCase() + \" \"\n +\n parsedArguments[1].toUpperCase() + \" has been added to timetable\");\n }", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "public void onclick_add(MouseEvent mouseEvent) {\n\t\tUifEditCmd cmd = new UifEditCmd(\"ssoView\",DialogConstant.DEFAULT_WIDTH, DialogConstant.SIX_ELE_HEIGHT);\n\t\tAppLifeCycleContext.current().getWindowContext().addAppAttribute(\"operate\", \"add\");\n\t\tcmd.execute();\n//\t\tRow row = ds.getEmptyRow();\n//\t\tds.addRow(row);\n//\t\tds.setRowSelectIndex(ds.getRowIndex(row));\n//\t\tds.setEnabled(true);\n//\t\tnew UifUpdateOperatorState(ds, AppLifeCycleContext.current().getViewContext().getView()).execute();\n\t}", "public void addInstruction(){\n\n }", "public void _add(CommandInterpreter ci) {\n int a = Integer.parseInt(ci.nextArgument());\n int b = Integer.parseInt(ci.nextArgument());\n ci.println(a+b);\n }", "@Put\n public void addMember(){\n try {\n controller.addMember(getQueryValue(\"id\"), getQueryValue(\"name\"));\n }catch(MenuException e){\n System.out.println(e.getMessage());\n }\n }", "public void add(E element) {\n\t\t// your code here\n\t}", "void add(final Task task);", "@Override\n public void executeAction(String command) {\n String[] parts = command.split(\",\");\n Task task = Task.buildTask(parts[0], parts[1], DateSorting.parseDate(\"dd-MM-yyyy\", parts[2]),\n parts[3], parts[4]);\n\n TodoList.tasks.put(task.getId(), task);\n System.out.println(\"IP.TodoListApplication.App.Task successfully added!\");\n\n }", "public void add(AddOperationContext opContext)\n throws OperationNotSupportedException {\n throw new OperationNotSupportedException(\n MODIFICATION_NOT_ALLOWED_MSG);\n }", "public void add(E e) {\n\t\tentities.add(e);\n\t}", "public boolean add(T t);", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "public GraphNode addOperation(String op){\n\t\tGraphNode opVar = new GraphNode(addElement(op, 3), 3);\n\t\tauthGraph.addVertex(opVar);\n\t\treturn opVar;\n\t}", "public void add(Task task){ this.tasks.add(task);}", "protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}", "public void add()\r\n {\r\n resultDoubles = Operations.addition(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "public boolean add (E e);", "void add(Item item);", "public void addAction(String act) {\n\t\tpathCost++;\n\t\tactionSequence += act;\n\t\t//System.out.println(\"Action: \" + act + \" H: \" + current.getValue() + \" \" + current.getString());\n\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddNewItem();\n\t\t\t}", "int add();", "private void addProduct()\n {\n System.out.println(\"|➕| Add new Product:\\n\");\n System.out.println(\"|➕| Enter ID\\n\");\n int id = Integer.parseInt(reader.getInput());\n System.out.println(\"|➕| Enter Name\\n\");\n String name = reader.getInput();\n manager.addProduct(id, name);\n }", "@Override\n public CommandResultText execute(Model model) throws DuplicateTaskException, FileNotSavedException {\n model.getEvents().add(event);\n model.save();\n return new CommandResultText(MESSAGE_ADDITION + event);\n }", "public String addNew() {\r\n\t\ttry {\r\n\t\t\tgetNavigationPanel(2);\r\n\t\t\treturn \"questData\";\r\n\t\t} catch(Exception e) {\r\n\t\t\tlogger.error(\"Exception in addNew in action:\" + e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public void add(Object o);", "boolean add(SysFile model);", "private synchronized String processAdd(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command ADD - USAGE : ADD id number\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( !this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account doesn't exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.add(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}", "void onAddClicked();" ]
[ "0.6821945", "0.6571148", "0.6561974", "0.6558206", "0.6518525", "0.64857286", "0.6457851", "0.6446194", "0.6182148", "0.61717665", "0.61509824", "0.6102016", "0.60857594", "0.6079566", "0.60791516", "0.607698", "0.6059528", "0.60370725", "0.6033323", "0.6015098", "0.6008581", "0.5970739", "0.59475726", "0.59322613", "0.5932092", "0.5839185", "0.5838755", "0.58245057", "0.5819791", "0.581461", "0.581461", "0.581461", "0.5797424", "0.5797095", "0.579568", "0.5759497", "0.5751722", "0.56944835", "0.5687125", "0.5687125", "0.5685232", "0.5679122", "0.56628", "0.56621945", "0.56503236", "0.56479615", "0.56354076", "0.5633049", "0.56309813", "0.5628093", "0.5613005", "0.5612907", "0.5604899", "0.5594155", "0.55842817", "0.5576644", "0.5571661", "0.5563408", "0.55605096", "0.5556838", "0.55512524", "0.5542147", "0.5540375", "0.55349725", "0.55289745", "0.55270875", "0.5524999", "0.5524141", "0.5499136", "0.5499068", "0.5490948", "0.5485229", "0.5483761", "0.5481723", "0.5473404", "0.5470679", "0.5464287", "0.5456053", "0.5454088", "0.54537797", "0.54490423", "0.5442703", "0.54376125", "0.54368323", "0.54338217", "0.54305655", "0.5430294", "0.5427226", "0.54242724", "0.54230064", "0.5421217", "0.54174817", "0.54142976", "0.541035", "0.5408738", "0.5407979", "0.54057217", "0.5399833", "0.5399529", "0.5395281" ]
0.5482762
73
Redo the add operation action.
public void redoAction() { executeAction(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addRedoButton() {\n\t\tredoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.REDO);\n redoButton.setEnabled(false);\n\t\ttoolPanel.add(redoButton);\n\t\tredoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.getCommandManager().redoCommand();\n\t\t\t}\n\n\t\t});\n\t}", "public void redo() {\n if (!redos.isEmpty()) {\n Command toRedo = redos.removeLast();\n undos.addLast(toRedo);\n toRedo.execute();\n }\n }", "public void redo() throws CannotRedoException;", "public void redo() {\n\t\tif (redoStack.size() > 0) {\n\t\t\tdoily.lines.add(redoStack.pop());\n\t\t\trepaint();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Redo Failed - Nothing to redo\", \n\t\t\t\t\t\"Redo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "@Override\n\tpublic void redo() {\n\t\tthis.list.add(shape);\n\n\t}", "public void redo() {\n // only check the action can be redo or not\n if (!this.canRedo()) {\n throw new CannotRedoException();\n }\n }", "void redoPreviousAction() throws NothingToRedoException;", "public UndoableCommand redo() {\n logger.info(String.format(\"----------------[REDOING][%s]\", this));\n return new AddActivityCommand(activityAdded, true);\n }", "public void redo() {\n\t\t\n\t}", "public void redo() {\n\t\tif (redolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = redolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.execute();\n\t\tundolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tupdateActions();\n\t\tcursor.update();\n\t}", "@Override\n\tpublic void redo() {\n\t\t\n\t}", "@Override\n public void redo(int numToRedo) {\n }", "public static void redo () {\r\n\t\tCommand cmd = redoCommands.pop();\r\n\t\tcmd.redo();\r\n\t\tundoCommands.push(cmd);\r\n\t}", "@Override\n public void redo() {\n\n }", "void redo();", "public final void redo() {\n\t\tthis.historyManager.redo();\n\t}", "@Override\n public void redo() {\n shapeList.add((newShape));\n }", "public abstract void redo();", "private void addUndoButton() {\n\t\tundoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.UNDO);\n undoButton.setEnabled(false);\n\t\ttoolPanel.add(undoButton);\n\t\tredoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.getCommandManager().undoCommand();\n\t\t\t}\n\n\t\t});\n\t}", "public void redo() {\n firePropertyChange(ARRAY_STRING, null, NOT_EMPTY_STRING);\n myDrawingArray.add(myUndoStack.pop());\n if (myUndoStack.isEmpty()) {\n firePropertyChange(\"emptystack\", null, EMPTY_STRING);\n }\n repaint();\n }", "public void redo() throws CannotRedoException {\n\t\tsuper.redo();\n\t\t\n\t\tthis.doEdit(iDoc);\n\t}", "@Override\r\n\tpublic void redo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.add(shape);\r\n\t}", "private void cmdRedo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().redoStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "public void redo() {\n\t\tcmd = new RedoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void redo() {\n if (!canRedo()) {\n throw new VersionedAssignmentList.NoRedoableStateException();\n }\n currentStatePointer++;\n resetData(assignmentListStateList.get(currentStatePointer));\n }", "private void createUndoAndRedo(final DrawingPanel thePanel) {\n myUndo = new JButton();\n myToolBar.add(myUndo);\n \n String imageLocation = \"images/undoicon.png\";\n URL imgFileLocation = PowerPaintGUI.class.getResource(imageLocation);\n \n if (Objects.nonNull(imgFileLocation)) {\n myUndo.setIcon(new ImageIcon(imgFileLocation)); \n } \n final JButton redo = new JButton();\n myToolBar.add(redo);\n imageLocation = \"images/redoicon.png\";\n imgFileLocation = PowerPaintGUI.class.getResource(imageLocation);\n \n if (Objects.nonNull(imgFileLocation)) {\n redo.setIcon(new ImageIcon(imgFileLocation)); \n } \n myUndo.setEnabled(false);\n myUndo.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n thePanel.getCollection().undo();\n redo.setEnabled(true);\n thePanel.repaint();\n if (thePanel.getCollection().isEmpty()) {\n myUndo.setEnabled(false); \n myPcs.firePropertyChange(\"undo\", false, true);\n }\n }\n });\n \n \n myToolBar.add(redo);\n redo.setEnabled(false);\n redo.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(final ActionEvent theEvt) {\n \n thePanel.getCollection().redo();\n thePanel.repaint();\n if (thePanel.getCollection().isRedoEmpty()) {\n redo.setEnabled(false);\n }\n myUndo.setEnabled(true);\n }\n });\n }", "@Override\n public boolean redo() {\n // nothing required to be done\n return false;\n }", "public void redo() {\n if (!future.isEmpty()) {\n Command c = future.get(0);\n c.redo();\n future.remove(0);\n history.add(0, c);\n }\n }", "@Override\n public boolean canRedo() {\n return false;\n }", "protected final void redo() {\n requireNonNull(model);\n try {\n executeUndoableCommand();\n } catch (CommandException ce) {\n throw new AssertionError(\"The command has been successfully executed previously; \"\n + \"it should not fail now\");\n }\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "private String redo() {\n this.undos.push(History.copy(this));\n if (!redos.isEmpty()) {\n History history = redos.pop();\n this.undos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }", "@Override\r\n\tpublic void redo(Transaction tx) {\r\n\t\t// do nothing\r\n\t}", "public boolean canRedo();", "public boolean canRedo();", "private void addUndoRedo(JTextComponent... textcomp) {\n\t\n\t for(int i=0;i<textcomp.length;i++){\n\t\t final UndoManager undo = new UndoManager();\n\t\t\t Document doc = textcomp[i].getDocument();\n\t\t \n\t\t // Listen for undo and redo events\n\t\t doc.addUndoableEditListener(new UndoableEditListener() {\n\t\t public void undoableEditHappened(UndoableEditEvent evt) {\n\t\t undo.addEdit(evt.getEdit());\n\t\t }\n\t\t });\n\t\t \n\t\t // Create an undo action and add it to the text component\n\t\t textcomp[i].getActionMap().put(\"Undo\",\n\t\t new AbstractAction(\"Undo\") {\n\t\t public void actionPerformed(ActionEvent evt) {\n\t\t try {\n\t\t if (undo.canUndo()) {\n\t\t undo.undo();\n\t\t }\n\t\t } catch (CannotUndoException e) {\n\t\t }\n\t\t }\n\t\t });\n\t\t \n\t\t // Bind the undo action to ctl-Z\n\t\t textcomp[i].getInputMap().put(KeyStroke.getKeyStroke(\"control Z\"), \"Undo\");\n\t\t \n\t\t // Create a redo action and add it to the text component\n\t\t textcomp[i].getActionMap().put(\"Redo\",\n\t\t new AbstractAction(\"Redo\") {\n\t\t public void actionPerformed(ActionEvent evt) {\n\t\t try {\n\t\t if (undo.canRedo()) {\n\t\t undo.redo();\n\t\t }\n\t\t } catch (CannotRedoException e) {\n\t\t }\n\t\t }\n\t\t });\n\t\t \n\t\t // Bind the redo action to ctl-Y\n\t\t textcomp[i].getInputMap().put(KeyStroke.getKeyStroke(\"control Y\"), \"Redo\");\n\t }\n}", "protected void recordUndoRedoMacro(DocumentMacro macro) {\n super.recordUndoRedoMacro(macro);\n }", "public void undoableEditHappened(UndoableEditEvent e)\r\n {\n fUndoManager.addEdit(e.getEdit());\r\n fUndoAction.updateUndoState();\r\n fRedoAction.updateRedoState();\r\n }", "@Override\n public void redo(){\n this.parent.getSelectedArea().clear();\n \n //And add the point to the list again\n this.parent.getSelectedArea().add(this.selected);\n }", "private void addition()\n\t{\n\t\tFun = Function.ADD;\t//Function set to determine what action should be taken later. \n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "@Override\n public boolean isRedo(){\n return false;\n }", "void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }", "public void undoAction(){}", "public void redoUndoneCommand() {\r\n // TODO: Fix me!!!\r\n try {\r\n char c=redo.pop();\r\n //redo.push(c);\r\n if(c=='c'){\r\n super.rotateClockwise();\r\n }\r\n if(c=='r'){\r\n super.rotateCounterClockwise();\r\n }\r\n if(c=='m'){\r\n super.moveForward();\r\n }\r\n } catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "@Override\n\tpublic void redo() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.redo();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.redo();\n\t\t}\n\t}", "public String redo() {\n/* 173 */ return redo(0, false);\n/* */ }", "public void undo() {\n if (!undos.isEmpty()) {\n Command toUndo = undos.removeLast();\n redos.addLast(toUndo);\n toUndo.undo();\n } \n }", "public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}", "protected void redoSuccess() {\n this.isRedoable = false;\n this.isUndoable = true;\n }", "private void prepareUndoRedo()\n {\n undoManager = new UndoManager();\n \n doc = textArea.getDocument();\n doc.addUndoableEditListener(new UndoableEditListener(){\n public void undoableEditHappened(UndoableEditEvent evt)\n {\n undoManager.addEdit(evt.getEdit());\n }\n });\n \n textArea.getActionMap().put(\"Undo\", new AbstractAction(\"Undo\"){\n public void actionPerformed(ActionEvent evt)\n {\n try{\n if(undoManager.canUndo())\n {\n undoManager.undo();\n }\n }catch (CannotUndoException exc)\n {\n System.out.println(\"Erro ao usar Undo :(\");\n }\n }\n });\n textArea.getInputMap().put(KeyStroke.\n getKeyStroke(\"control Z\"), \"Undo\");\n \n textArea.getActionMap().put(\"Redo\", new AbstractAction(\"Redo\"){\n public void actionPerformed(ActionEvent evt)\n {\n try{\n if(undoManager.canRedo())\n {\n undoManager.redo();\n }\n }catch (CannotRedoException exc)\n {\n System.out.println(\"Erro ao usar Redo :(\");\n }\n }\n });\n textArea.getInputMap().put(KeyStroke.\n getKeyStroke(\"control Y\"), \"Redo\"); \n }", "public boolean addEdit(UndoableEdit anEdit);", "public boolean addEdit(UndoableEdit anEdit);", "public boolean redo() { \n if(redoStack.peek()!=null) {\n DrawingChange change = redoStack.pop();\n drawingArray[change.x][change.y] = change.newChar;\n undoStack.push(change);\n return true;\n }\n return false;\n }", "public void redo()\r\n {\r\n if (changes!=null)\r\n {\r\n if (changes.getNext()!=null)\r\n {\r\n ignoreChange=true;\r\n changes = changes.getNext();\r\n changes.getElement().redo(doc);\r\n \r\n }\r\n }\r\n }", "public synchronized void undo(){\n int index_of_last_operation = instructions.size() - 1;\n if (index_of_last_operation >= 0){\n instructions.remove(index_of_last_operation);\n }\n }", "public void clearRedo(){\n redoEffects.clear();\n redoParams.clear();\n }", "public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}", "@Override\n\t/**\n\t * redo is irrelevant in this case\n\t */\n\tpublic Task[] redo() {\n\t\treturn null;\n\t}", "private void initRedo(){\n view.getUndo().setOnAction(event -> {\n String title = \"Confirm\";\n String message = (isWhiteTurn ? whiteName : blackName) + \", do you really wish to redo?\";\n ConfirmBox.display(title, message);\n if (ConfirmBox.isConfirmed){\n model.undo();\n view.getUndo().setDisable(true);\n isWhiteTurn = !isWhiteTurn;\n view.refreshPieces();\n initListener();\n updateInformation();\n }\n });\n }", "private void addUndoStep(IHexEditorCommand comm) {\n\t\tif (!comm.execute())\n\t\t\treturn;\n\t\tint maxundo = Activator.getDefault().getPreferenceStore().getInt(HexEditorConstants.PROPERTY_MAX_UNDO_STEPS);\n\n\t\tundolist.push(comm);\n\t\tredolist.clear();\n\n\t\tif (maxundo > 0 && undolist.size() > maxundo) {\n\t\t\tundolist.remove(0);\n\t\t}\n\n\t\thexEditor.setDirty(true);\n\t\tupdateActions();\n\t}", "void addUndo(UndoableMapEdit undo) {\r\n\t\tundoManager.addEdit(undo);\r\n\t\tsetUndoRedoMenu();\r\n\t}", "private void add() {\n\n\t}", "@Test\n\tpublic void testRedoAction() {\n\n\t\t//Add the new cell to the undo stack to simulate what\n\t\t//occurs during cell editing. Every change must be recorded so it can be undone and redone\n\t\tundoRedo_TestStack.noUndoRedoAction(testGrid.selectCell(\"A\",5));\n\t\t//Update cell values, simulating user manual input\n\t\ttestGrid.selectCell(\"A\",5).setValue(\"88\");\n\n\t\t//Add the new cell to the undo stack to simulate what\n\t\t//occurs during cell editing. Every change must be recorded so it can be undone and redone\n\t\tundoRedo_TestStack.noUndoRedoAction(testGrid.selectCell(\"E\",8));\n\t\t//Update cell value, simulating user manual input\n\t\ttestGrid.selectCell(\"E\",8).setValue(\"99\");\n\n\n\t\t//Simulate the undo action and keep that info\n\t\tCell result2_undo = undoRedo_TestStack.undoAction(testGrid);\n\t\ttestGrid.selectCell(result2_undo.getCol(), result2_undo.getRow()).setValue(result2_undo.getValue());\n\t\ttestGrid.selectCell(result2_undo.getCol(), result2_undo.getRow()).setCellFormat(result2_undo.getCellFormat());\n\n\t\tCell result1_undo = undoRedo_TestStack.undoAction(testGrid);\n\t\ttestGrid.selectCell(result1_undo.getCol(), result1_undo.getRow()).setValue(result1_undo.getValue());\n\t\ttestGrid.selectCell(result1_undo.getCol(), result1_undo.getRow()).setCellFormat(result1_undo.getCellFormat());\n\n\n\t\t//Now that undo action was performed, simulate the redo action and keep that info\n\t\tCell result1_redo = undoRedo_TestStack.redoAction(testGrid);\n\t\ttestGrid.selectCell(result1_redo.getCol(), result1_redo.getRow()).setValue(result1_redo.getValue());\n\t\ttestGrid.selectCell(result1_redo.getCol(), result1_redo.getRow()).setCellFormat(result1_redo.getCellFormat());\n\n\t\tCell result2_redo = undoRedo_TestStack.redoAction(testGrid);\n\t\ttestGrid.selectCell(result2_redo.getCol(), result2_redo.getRow()).setValue(result2_redo.getValue());\n\t\ttestGrid.selectCell(result2_redo.getCol(), result2_redo.getRow()).setCellFormat(result2_redo.getCellFormat());\n\n\t\t//Case when the redo stack is empty\n\t\tCell emptyRedoStackCell = undoRedo_TestStack.redoAction(testGrid);\n\n\t\t//Compare the cells modified by the undo action with the results produced by the redo action\n\t\tassertEquals(\"E\", result2_redo.getCol());\n\t\tassertEquals(8, result2_redo.getRow());\n\t\tassertEquals(\"99\", result2_redo.getValue());\n\t\tassertEquals(Formatting.REAL, result2_redo.getCellFormat());\n\n\t\tassertEquals(\"A\", result1_redo.getCol());\n\t\tassertEquals(5, result1_redo.getRow());\n\t\tassertEquals(\"88\", result1_redo.getValue());\n\t\tassertEquals(Formatting.REAL, result1_redo.getCellFormat());\n\n\t\t//Check that the undo stack is indeed empty\n\t\tassertEquals(-1, emptyRedoStackCell.getRow());\n\t\tassertEquals(\"-1\", emptyRedoStackCell.getCol());\n\t\tassertEquals(\"0\", emptyRedoStackCell.getValue());\n\n\t}", "@Override\n\tpublic void redo() {\n\t\tfor (IShape shape : temp) {\n\t\t\tlist.delete(shape);\n\t\t}\n\t}", "private void addOp(final Op op) {\n result.add(op);\n }", "public boolean redo(){\n\t\tif(!(redoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Redoing one move...\");\n\t\t\tundoStack.push(getState());\n\t\t\tthis.setState(redoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Nothing to redo\");\n\t\t\treturn false;\n\t\t}\n\t}", "public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "public void redo(){\n\t\tthis.setButtonVisible(true);\n\t}", "public void undoAction() {\n classifier.removeFeature(operation);\n }", "public void add() {\n\t\t\n\t}", "@Test\n\tpublic void undoTask_validState_add() throws DuplicateItemException {\n\t\tRedoCommand command = new RedoCommand();\n\t\tmodel.addTask(new FloatingTask(\"Meeting\"));\n\t\tmodel.undo();\n\t\tcommand.setData(model);\n\t\tCommandResult result = command.execute();\n\t\tString feedback = result.feedbackToUser;\n\t\tassertTrue(feedback.equals(RedoCommand.MESSAGE_REDO_TASK_SUCCESS));\n\t}", "public static BufferedImage redo (BufferedImage bi)\n {\n BufferedImage oldImage = bi;\n if (undo)\n {\n imageList.add(bi);\n JOptionPane messageBox = new JOptionPane();\n try\n {\n oldImage = redoList.get(redoList.size()-1); // the last in the list\n redoList.remove(redoList.size()-1); \n undoCount --;\n }\n catch (ArrayIndexOutOfBoundsException e)\n {\n // if no more images to redo \n }\n }\n if (undoCount <=0)\n undo = false;\n return oldImage;\n }", "public FeatureCollection undoLastEdit(){\n if (lastEditType==EDIT_NONE){\n //don't undo anything, fcLast is empty\n } else if (lastEditType==EDIT_ADD){\n //remove the added features\n removeAll(fcLastEdits);\n } else if (lastEditType==EDIT_REMOVE){\n //add the removed features\n addAll(fcLastEdits);\n }\n return fcLastEdits;\n }", "public void redo() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\tgetLogger().debug(\"Redo create component\");\n\t\t\t\teditor.selectPage((CompositeActor) parent);\n\t\t\t\tif (child instanceof NamedObj) {\n\t\t\t\t\tComponentUtility.setContainer(child, parent);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "public void addop() {\n if (lexer.token != Symbol.PLUS && lexer.token != Symbol.MINUS) {\n error.signal(\"Wrong operator for addop. Using not a plus or not a minus.\");\n }\n lexer.nextToken();\n }", "@Override\r\n\tpublic void undo() throws InstructionExecutionException {\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.robotContainer.pickItem(id);\r\n\t\t\tthis.robotContainer.addItem(lastItem);\r\n\t\t\tthis.engine.addFuel(lastFuel-this.engine.getFuel());\r\n\t\t\tthis.engine.addRecycledMaterial(lastRecycledMaterial-this.engine.getRecycledMaterial());\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow new InstructionExecutionException();\r\n\t\t}\r\n\t}", "public void doUndo()\n {\n // Get the last thing we did and reverse it, then remove it from the undoable stuff\n // This process is similar to 'Both Tool' being clicked on a hex with old values\n LinkedList\t\t\tlastChange = (LinkedList) undoableChanges.getLast();\n \n if (lastChange != null)\n {\n ListIterator\t\tit = lastChange.listIterator(0);\n ChangedMUXHex\t\tchangedHex;\n \n while (it.hasNext())\n {\n changedHex = (ChangedMUXHex) it.next();\n // We'll assume the hex is valid since it's in this list\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n }\n \n // Repaint the hexes\n //mapComponent.repaint();\n \n // Remove what we just undid from our undoable list\n undoableChanges.removeLast();\n }\n }", "public void initRedo(){\n redoEffects = (EditStack<Integer>) history.clone();\n redoParams = (EditStack<Float>) historyValues.clone();\n }", "public void add() {\n }", "private void addToOperationHistory(UndoableTextChange edit) {\n \t\tif (!fFoldingIntoCompoundChange\n \t\t\t\t|| edit instanceof UndoableCompoundTextChange) {\n \t\t\tfHistory.add(edit);\n \t\t\tfLastAddedTextEdit= edit;\n \t\t}\n \t}", "public abstract void undo();", "protected abstract void internalUndo();", "public boolean canRedo() {\n/* 841 */ return !Utils.isNullOrEmpty(getNextRedoAction());\n/* */ }", "public void add() {\n\n }", "private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed\n add();\n }", "public void undo () {\n // The restores must be run in the reverse order they are added.\n for (int i = restores.size() - 1; i >= 0; --i) {\n restores.get(i).run();\n }\n restores.clear();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tadd();\n\t\t\t}", "public Move redoMove ()\n {\n Move redoneMove = Move.redoMove();\n setGridElement(redoneMove.getRow(), redoneMove.getColumn(), redoneMove.getPlayer());\n Move.addMoveToPlayedMoveStack(redoneMove);\n return redoneMove;\n }", "void processUndo() {\r\n boardManager.undo();\r\n }", "public void undo() {\n }", "public E redo() {\n if (canRedo()) {\n past.addLast(present);\n present = future.pollLast();\n }\n return getCurrentState();\n }", "private void undoPopItemActionPerformed(java.awt.event.ActionEvent evt) {\n undoredo.undo();\n }", "public void add();", "public void undoLast() {\t\t\n\t\tCommand command = undoStack.pop();\n\t\tcommand.undo();\n\t}", "@Override\n T undo();", "void undoPreviousAction() throws NothingToUndoException;", "@Override\n public void actionPerformed(ActionEvent e) {\n graph.addUndoableEdit(new DeleteUndoableEdit(graph));\n }", "public boolean canRedo() {\n return isRedoable;\n }", "public void undo() {\n\t\t\r\n\t}", "public void undoableEditHappened(UndoableEditEvent e) {\n undo.addEdit(e.getEdit());\n // undoAction.updateUndoState();\n // redoAction.updateRedoState();\n }", "public String getNextRedoAction() {\n/* 899 */ String result = \"\";\n/* 900 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled() || this.mPdfViewCtrl.getDoc() == null) {\n/* 901 */ return result;\n/* */ }\n/* */ \n/* 904 */ removeUnsafeUndoRedoInfo(false);\n/* 905 */ String info = null;\n/* */ try {\n/* 907 */ info = this.mPdfViewCtrl.getNextRedoInfo();\n/* 908 */ if (sDebug)\n/* 909 */ Log.d(TAG, \"next redo: \" + info); \n/* 910 */ JSONObject jsonObj = new JSONObject(info);\n/* 911 */ if (jsonObj.has(\"Action\")) {\n/* 912 */ String action = jsonObj.getString(\"Action\");\n/* 913 */ if (this.mContext != null && isValidAction(this.mContext, action)) {\n/* 914 */ String strRedo = this.mContext.getResources().getString(R.string.redo);\n/* 915 */ result = strRedo + \": \" + action;\n/* */ } \n/* */ } \n/* 918 */ } catch (Exception e) {\n/* 919 */ if (info == null || !info.equals(\"state not found\")) {\n/* 920 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next redo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 925 */ return result;\n/* */ }" ]
[ "0.7290276", "0.71061206", "0.7104899", "0.7094811", "0.6912603", "0.6895579", "0.6848139", "0.6840342", "0.6828163", "0.68203086", "0.6762429", "0.6731581", "0.671502", "0.6656015", "0.6645083", "0.66341376", "0.662952", "0.6572321", "0.6544615", "0.6439839", "0.6394932", "0.63703406", "0.6309323", "0.62292194", "0.62253344", "0.6216079", "0.6210015", "0.6162855", "0.6145681", "0.61321026", "0.61033326", "0.6064673", "0.60297", "0.60297", "0.5933565", "0.59141105", "0.5910786", "0.59077775", "0.5894792", "0.5886923", "0.58804566", "0.5872683", "0.58717006", "0.5862504", "0.5862473", "0.58537775", "0.5851563", "0.58429813", "0.58249", "0.58244234", "0.58244234", "0.5793836", "0.57797045", "0.57638216", "0.57580584", "0.5757855", "0.575749", "0.5742563", "0.5739834", "0.5725379", "0.5725099", "0.57244045", "0.57063264", "0.567091", "0.5668591", "0.56617105", "0.56548184", "0.5643562", "0.56259346", "0.5625795", "0.5618878", "0.5602314", "0.55740565", "0.55703795", "0.556706", "0.55656433", "0.55642617", "0.55632985", "0.55573726", "0.55571043", "0.5543913", "0.55404675", "0.5539242", "0.55336833", "0.55299884", "0.55299616", "0.5528924", "0.552826", "0.5525873", "0.5525002", "0.55235416", "0.55026454", "0.5502616", "0.549533", "0.54947746", "0.5488579", "0.54751563", "0.5471871", "0.5464351", "0.54587126" ]
0.6632004
16
Default constructor. Initalises common properties for the MuleConfiguration object
public ImmutableMuleDescriptor(ImmutableMuleDescriptor descriptor) { inboundRouter = descriptor.getInboundRouter(); outboundRouter = descriptor.getOutboundRouter(); responseRouter = descriptor.getResponseRouter(); nestedRouter = descriptor.getNestedRouter(); //serviceFactory = descriptor.getServiceFactory(); properties = descriptor.getProperties(); name = descriptor.getName(); threadingProfile = descriptor.getThreadingProfile(); exceptionListener = descriptor.getExceptionListener(); initialState = descriptor.getInitialState(); modelName = descriptor.getModelName(); entryPointResolverSet = descriptor.getEntryPointResolverSet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Configuration() {\r\n }", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "public DefaultProperties() {\n\t\t// Festlegung der Werte für Admin-Zugang\n\t\tthis.setProperty(\"admin.username\", \"admin\");\n\t\tthis.setProperty(\"admin.password\", \"password\");\n\t\tthis.setProperty(\"management.port\", \"8443\");\n\n\t\t// Festlegung der Werte für CouchDB-Verbindung\n\t\tthis.setProperty(\"couchdb.adress\", \"http://localhost\");\n\t\tthis.setProperty(\"couchdb.port\", \"5984\");\n\t\tthis.setProperty(\"couchdb.databaseName\", \"profiles\");\n\n\t\t// Festlegung der Werte für Zeitvergleiche\n\t\tthis.setProperty(\"server.minTimeDifference\", \"5\");\n\t\tthis.setProperty(\"server.monthsBeforeDeletion\", \"18\");\n\t}", "public MecBasicsConfig()\n {\n\n }", "public SimpleXMLPipelineConfiguration() {\n configurations = new HashMap();\n }", "private ConfigurationKeys() {\n // empty constructor.\n }", "public ApplicationDefinitionProperties() {\n }", "public BaseConfig() {\n\t\tlong current = System.currentTimeMillis();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTimeInMillis(current);\n\t\tthis.start_hours = cal.get(Calendar.HOUR_OF_DAY);\n\t\tthis.start_minutes = cal.get(Calendar.MINUTE);\n\t\tthis.stop_hours = this.start_hours;\n\t\tthis.stop_minutes = this.start_minutes;\n\t\tthis.force_on = false;\n\t\tthis.force_off = false;\n\t\tthis.sensor_type = SensorType.LIGHT;\n\t\tthis.sensing_threshold = .5f;\n\t\tthis.sensorInterval = 3000;\n\t\t/*String address;\n\t\ttry {\n\t\t\taddress = InetAddress.getLocalHost().toString();\n\t\t\taddress = address.substring(address.indexOf('/') + 1);\n\t\t\tserverIP = address;\n\t\t\tserverPort = 9999;\n\t\t} catch (UnknownHostException e) {\n\t\t\t// Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t\n\t}", "public WorkflowConfiguration() {\n\t\t\n\t}", "private Config() {\n }", "public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }", "public SystemConfiguration() {\r\n\t\tlog = Logger.getLogger(SystemConfiguration.class);\r\n\t}", "private ConfigProperties() {\n\n }", "public AntConfiguration(){\n this.channelID1 = new ChannelID(); //initially set all parameters of Channel ID to 0\n this.channelID2 = new ChannelID(); //initially set all parameters of Channel ID to 0\n\n this.channelAssigned1 = new Channel(); //initially do not assign any cha\n this.channelAssigned2 = new Channel(); //initially do not assign any channel\n\n this.channelPeriod = 4; //set to 4Hz by default\n this.level = PowerLevel.NEGTWENTY; //set to -20dB as default\n this.state1 = ChannelState.UNASSIGNED;\n this.state2 = ChannelState.UNASSIGNED;\n\n }", "public JobLogParserConfiguration() {\r\n\r\n produceRegularExpressions();\r\n compilePattern();\r\n }", "protected AmqpTransportConfig() {\n\t\tsuper();\n\t}", "public Config() {\n this(System.getProperties());\n\n }", "public OServerConfiguration() {}", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "private Conf() {\n // empty hidden constructor\n }", "public PipelineConfig() {\n super();\n }", "private OspfConfigUtil() {\n\n }", "public AS2EnvelopeSettings() {\n }", "private mxPropertiesManager()\n\t{\n\t}", "private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}", "public PushPluginConfigurationImpl() {\n }", "public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}", "public\n YutilProperties()\n {\n super(new Properties());\n }", "private OptimoveConfig() {\n }", "public CrawlerConfiguration() {\n\t\tinitConfiguration();\n\t}", "public Adsconfig() {\n this(\"AdsConfig\", null);\n }", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "public GeneralConfig() {\n super(CyclopsCore._instance, true, \"general\", null, GeneralConfig.class);\n }", "public SDbConfigSms () {\r\n super(SModConsts.S_CFG);\r\n }", "public ValidateConfiguration() {\n super();\n }", "private CommonConfigBean(){\n\t\tsuper();\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\tFile fXmlFile = new File(PathTool.getAbsolute(RELATIVE_FILE_PATH));\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\t\t\t\n\t\t\t//optional, but recommended\n\t\t\t//read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tSystem.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n\t NodeList nList = doc.getElementsByTagName(\"param\");\n\t params = new HashMap<>();\n\t for (int temp = 0; temp < nList.getLength(); temp++) {\n\t Node nodo = nList.item(temp);\n\t System.out.println(\"Elemento:\" + nodo.getNodeName());\n\t if (nodo.getNodeType() == Node.ELEMENT_NODE) {\n\t Element element = (Element) nodo;\n\t params.put(element.getAttribute(\"name\"), element.getAttribute(\"value\"));\n\t }\n\t }\n\t\t\t\n\t\t\t\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t}", "public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}", "public ConfigurationMaintainer() {\n\t}", "public FtlConfig() {\n cfg = new Configuration(Configuration.VERSION_2_3_30);\n cfg.setClassLoaderForTemplateLoading(this.getClass().getClassLoader(), \"ftl\");\n cfg.setDefaultEncoding(\"UTF-8\");\n cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);\n cfg.setSharedVariable(\"random\",\n new BeansWrapperBuilder(Configuration.VERSION_2_3_30).build().getStaticModels());\n cfg.setLogTemplateExceptions(false);\n cfg.setWrapUncheckedExceptions(true);\n cfg.setFallbackOnNullLoopVariable(false);\n }", "private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}", "public ApplicationResourceProperties() {\n }", "public MessageDestinationFactory() {\n this.properties = new ConfigMap();\n }", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "public ServerProperties() {\n try {\n initializeProperties();\n }\n catch (Exception e) {\n System.out.println(\"Error initializing server properties.\");\n }\n }", "@Init\r\n\tpublic void init() {\r\n\t\t// Component initialization code.\r\n\t\t// All properties are initialized and references are injected.\r\n\t\tif(emailConfiguration==null){\r\n\t\t\tloadConfiguration();\r\n\t\t}\r\n\t\t\r\n\t}", "public class_config(){\n\t\t\n\t\tformat_date=\"dd/MM/yyyy\";\n\t\tcurrency='€';\n\t\tdecimals=2;\n\t\tlanguage=\"eng\";\n\t\ttheme=\"Metal\";\n\t\tfile_format=\"json\";\n\t\t\n\t}", "public PropertiesHandler(final Configuration aConfig) {\n super(aConfig);\n }", "public LoggerConfigBean() {\n super();\n }", "private ConfigReader() {\r\n\t\tsuper();\r\n\t}", "public SmtpConfiguration() {\n }", "public OlcDistProcConfig()\n {\n super();\n }", "public TwilioLinkedServiceTypeProperties() {\n }", "public PanoramaConfig() {\n }", "public IheConfiguration() {\n }", "public MicroConfiguration() {\n this(\n System.getProperty(\"piranha.version\", MicroConfiguration.class.getPackage().getImplementationVersion()),\n System.getProperty(\"piranha.extensions\", \"micro-core,micro\"),\n System.getProperty(\"piranha.dependencies\", \"\"),\n System.getProperty(\"piranha.repositories\", \"https://repo1.maven.org/maven2\"),\n Boolean.valueOf(System.getProperty(\"piranha.offline\", \"false\")),\n Integer.valueOf(System.getProperty(\"piranha.port\", \"8080\")),\n System.getProperty(\"piranha.root\"),\n System.getProperty(\"piranha.http.server\", \"impl\"),\n\n\n null,\n null,\n null);\n }", "public E4KTunerConfiguration()\n\t{\n\t\tthis( \"Default\" );\n\t}", "public RuleConfiguration() {\n\t\trule = new Rule();\n\t}", "public SessionParameters () {\n\t\tsuper();\n\t\tlocale = Locale.getDefault();\n\t\tcustomDictionaries = new HashSet<>();\n\t}", "protected BaseTestObject()\n {\n\n fProp = new Properties(); // empty properties object\n fLog = TestLogger.getInstance(); // default level is DEBUG\n\n }", "public ExcelImportConfig() {\n super();\n }", "private LoggerConstants() {\n\t\tsuper();\n\t}", "public synchronized static void initConfig() {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tinitConfig(initialValues);\n\t}", "public ManagedHsmProperties() {\n }", "public SimulationConfig() {\r\n\t}", "public CustomerPolicyProperties() {\n }", "public CatalogSettings() {\n init();\n }", "public ConfigParserHandler() {\n\t}", "public ModularConfiguration(Logger logger) {\n this.logger = logger;\n }", "public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_PORT\"));\r\n }\r\n catch (NumberFormatException e)\r\n {\r\n log.error(\"read properties failed --\", e);\r\n }\r\n }", "public LogProfileProperties() {\n }", "private DatabaseValidationProperties() {}", "public ConfigsUtils() {\r\n mConfig = new Properties();\r\n try {\r\n mConfig.load(new FileInputStream(CONFIG_FILE_PATH));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "private FTConfigConstants() {\n }", "public ServerConfigImpl() {\n this.expectations = new ExpectationsImpl(globalEncoders, globalDecoders);\n this.requirements = new RequirementsImpl();\n }", "private AppConfigContent() {}", "public DccdMailerConfiguration(final InputStream inputStream) throws IOException\n {\n super(inputStream);\n if (getSmtpHost() == null)\n setSmtpHost(SMTP_HOST_DEFAULT);\n if (getSenderName() == null)\n setSenderName(FROM_NAME_DEFAULT);\n if (getFromAddress() == null)\n setFromAddress(FROM_ADDRESS_DEFAULT);\n }", "public KeyVaultProperties() {\n }", "public void init(Map<String, String> configuration);", "protected NodeProperties() {\r\n }", "public GenLogServerConfig() {\n }", "protected abstract void initializeImpl(Map<String,String> configuration);", "public BaseClass() {\n\t\t \n\t try {\n\t\t\t \n\t\t\t prop=new Properties();\n\t\t\t \n\t\t\tString path=System.getProperty(\"user.dir\");\n\t\t\t \n\t\t\t // FileInputStream is the pre-defined class\n\t\t\tFileInputStream ip=new FileInputStream(path+\"\\\\src\\\\main\\\\java\\\\com\\\\demoQA\\\\config\\\\Config.Properties\");\n\t\t\t prop.load(ip);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t \n\t }", "public MaintenanceWindowsProperties() {\n }", "private ApiConfig() {\n }", "public ConfigExample() {\n }", "public SeleniumServerConfiguration() {\n }", "@PostConstruct\n private void init() {\n if(properties != null && properties.getOverride()) {\n LOGGER.info(\"############# Override Rabbit MQ Settings #############\");\n\n amqpAdmin.deleteExchange(DIRECT_EXCHANGE);\n amqpAdmin.declareExchange(\n new DirectExchange(DIRECT_EXCHANGE, true, false));\n\n bindingQueue(DIRECT_EXCHANGE, REGISTER_QUEUE,\n DIRECT_REGISTER_ROUTER_KEY);\n bindingQueue(DIRECT_EXCHANGE, SEND_TEMPLATE_EMAIL_QUEUE,\n SEND_TEMPLATE_EMAIL_QUEUE_ROUTER_KEY);\n bindingQueue(DIRECT_EXCHANGE, SUBJECT_REQUEST_VOTE_QUEUE,\n SUBJECT_REQUEST_VOTE_QUEUE_ROUTER_KEY);\n }\n }", "private Configuration(String location) {\n this.location = location;\n }", "public void init() {\n\t\tcfg = new Configuration(Configuration.VERSION_2_3_25);\r\n\r\n\t\t// Specify the source where the template files come from.\r\n\t\tcfg.setServletContextForTemplateLoading(getServletContext(), templateDir);\r\n\r\n\t\t// Sets how errors will appear.\r\n\t\t// During web page *development* TemplateExceptionHandler.HTML_DEBUG_HANDLER is better.\r\n\t\t// This handler outputs the stack trace information to the client, formatting it so \r\n\t\t// that it will be usually well readable in the browser, and then re-throws the exception.\r\n\t\t//\t\tcfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);\r\n\t\tcfg.setTemplateExceptionHandler(TemplateExceptionHandler.HTML_DEBUG_HANDLER);\r\n\r\n\t\t// Don't log exceptions inside FreeMarker that it will thrown at you anyway:\r\n\t\t// Specifies if TemplateException-s thrown by template processing are logged by FreeMarker or not. \r\n\t\t//\t\tcfg.setLogTemplateExceptions(false);\r\n\t}", "public DsAkSettings()\n {\n values_ = Arrays.copyOf(settingsDefaults_, settingsDefaults_.length);\n }", "private PSConfigDeNormalizer()\n {\n\n }", "protected DiscoveryVOSConfig() {\n\t\tsuper(BRANCH_ROOT + \".DiscoveryVOS.com.discoveryVOS.\".replace('.', File.separatorChar));\n\t}", "private ConfigurationModel() {\r\n\tloadConfiguration();\r\n }", "public ConfigManager() {\n // Nobody here.\n }", "public NetworkFunctionUserConfiguration() {\n }", "MQTTConfiguration(String keyInFile, String defaultValue, Class<?> dataType) {\n // We need to pass the enum name as the identifier : therefore this.name()\n this.metaProperties = new ImmutableMetaProperties(this.name(), keyInFile, defaultValue, dataType);\n }", "private LanguagesettingsPackage() {}", "public WerewolfConfig() {\n super(\n EvilCraft._instance,\n \ttrue,\n \"werewolf\",\n null,\n Werewolf.class\n );\n }", "public PSBeanProperties()\n {\n loadProperties();\n }", "public SourceTypeConfiguration() {\n\n\t}", "public KafkaConfig() { }" ]
[ "0.6646774", "0.66317856", "0.6609006", "0.6543846", "0.6495085", "0.644757", "0.6395954", "0.6371395", "0.63548", "0.6344677", "0.6333841", "0.63301337", "0.63136864", "0.6309619", "0.62793005", "0.62706226", "0.62687135", "0.62665987", "0.62660414", "0.6247728", "0.6231802", "0.62207216", "0.61656463", "0.61492306", "0.61462104", "0.6142042", "0.6141484", "0.6138545", "0.60630983", "0.6063084", "0.6047155", "0.6039533", "0.6023165", "0.6018169", "0.6003331", "0.59847015", "0.5983393", "0.5968385", "0.5968162", "0.5961607", "0.5947969", "0.5939996", "0.593645", "0.59235877", "0.5907802", "0.5907347", "0.59054476", "0.5904944", "0.58963627", "0.5865931", "0.5864865", "0.58555", "0.5847511", "0.5832844", "0.582616", "0.5820318", "0.58176106", "0.58006626", "0.57757556", "0.57738584", "0.5772542", "0.57671493", "0.5765979", "0.5757322", "0.5757033", "0.57442147", "0.57312363", "0.57276034", "0.572501", "0.5720266", "0.57149607", "0.57129765", "0.5706812", "0.57044345", "0.57000464", "0.5697055", "0.56965804", "0.569077", "0.5684306", "0.5679193", "0.56788284", "0.56782275", "0.5671068", "0.5662271", "0.5660983", "0.56601465", "0.5648655", "0.56476355", "0.5645381", "0.56376946", "0.56297314", "0.5616185", "0.5613093", "0.5609872", "0.56089586", "0.5596343", "0.5589298", "0.5583732", "0.55717516", "0.55706406", "0.55679643" ]
0.0
-1
Default constructor used by mutable versions of this class to provide defaults for certain properties
protected ImmutableMuleDescriptor() { inboundRouter = new InboundRouterCollection(); inboundRouter.addRouter(new InboundPassThroughRouter()); outboundRouter = new OutboundRouterCollection(); responseRouter = new ResponseRouterCollection(); nestedRouter = new NestedRouterCollection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Default()\n {}", "DefaultAttribute()\n {\n }", "defaultConstructor(){}", "public DefaultImpl() {\n this(DEFAULT_DATE_FORMAT);\n }", "void DefaultConstructor(){}", "public Property() {\n this(0, 0, 0, 0);\n }", "public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}", "public DefaultObjectModel ()\n {\n this (new Schema ());\n }", "public void initDefaultValues() {\n }", "public DefaultProperties() {\n\t\t// Festlegung der Werte für Admin-Zugang\n\t\tthis.setProperty(\"admin.username\", \"admin\");\n\t\tthis.setProperty(\"admin.password\", \"password\");\n\t\tthis.setProperty(\"management.port\", \"8443\");\n\n\t\t// Festlegung der Werte für CouchDB-Verbindung\n\t\tthis.setProperty(\"couchdb.adress\", \"http://localhost\");\n\t\tthis.setProperty(\"couchdb.port\", \"5984\");\n\t\tthis.setProperty(\"couchdb.databaseName\", \"profiles\");\n\n\t\t// Festlegung der Werte für Zeitvergleiche\n\t\tthis.setProperty(\"server.minTimeDifference\", \"5\");\n\t\tthis.setProperty(\"server.monthsBeforeDeletion\", \"18\");\n\t}", "private DefaultSchema() {\n super(\"\", null);\n }", "private ARXDate() {\r\n this(\"Default\");\r\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}", "public DefaultNashRequestImpl() {\n\t\t\n\t}", "protected NodeProperties() {\r\n }", "public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }", "Properties defaultProperties();", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public Generic(){\n\t\tthis(null);\n\t}", "@Test\n public void constructorDefault() {\n final CourseType courseType = new CourseType();\n\n assertNull(courseType.getId());\n assertNull(courseType.getName());\n assertNull(courseType.getPicture());\n assertNull(courseType.getPosition());\n assertNull(courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }", "public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}", "public Property() {}", "public AllDifferent()\n {\n this(0);\n }", "public DefaultSortParameters() {\n\t\tthis(null, null, null, null, null);\n\t}", "public StandardValues() {\n super(ForwardingMap.this);\n }", "public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}", "public JCProjectProperties() {\n this(null);\n }", "private Value() {\n\t}", "public DefaultFormat() {\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n void setDefaults() {\n //Do nothing\n }", "public Setting() {\n\t}", "protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}", "private ARXOrderedString(){\r\n this(\"Default\");\r\n }", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public User() {\r\n this(\"\", \"\");\r\n }", "public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}", "default void init() {\n }", "private DiffProperty() {\n\t\t// No implementation\n\t}", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}", "public Property()\r\n {\r\n }", "protected VersionData() {}", "public DPropertyElement() {\n super(null, null);\n }", "public Builder()\n {\n this(\"\", \"\");\n }", "public OreAPI() {\n\t\tthis(DEFAULT_URL, null);\n\t}", "public Value() {}", "public BabbleValue() {}", "public DefaultTransferCoding() {\n super(TransferCoding.DEFAULT);\n }", "protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }", "@Test\n public void testDefaultConstructor() {\n final ConfigSearchResult<?> result = new ConfigSearchResult<>();\n assertTrue(result.getDocuments().isEmpty());\n assertNull(result.getPaging());\n assertEquals(result.getVersionCorrection(), VersionCorrection.LATEST);\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public DefaultDigitalTransferOptions() {\n }", "public E4KTunerConfiguration()\n\t{\n\t\tthis( \"Default\" );\n\t}", "public void setToDefault();", "public User() {\n /**\n * default Cto'r\n */\n }", "public State()\n {\n this(\"\");\n }", "public MyDate(){\t\n\t\tthis(\"00/00/0000\");\n\t}", "public BaseParameters(){\r\n\t}", "public JsonFactory() { this(null); }", "O() { super(null); }", "public void setCreationDefaultValues()\n {\n this.setDescription(this.getPropertyID()); // Warning: will be lower-case\n this.setDataType(\"\"); // defaults to \"String\"\n this.setValue(\"\"); // clear value\n //super.setRuntimeDefaultValues();\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public User(){\n this(null, null);\n }", "public Friend()\n\t{\n\t\tname = \"nameless\";\n\t\thumorStyle = \"less than none\";\n\t\tage = -10;\n\t\tinterest = \"absolutely nothing\";\n\t\tlikesPineapple = false;\n\t\tweight = - 99.99999;\n\t}", "public DefaultStorage() {\n }", "public Property() {\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\t}", "private DatabaseValidationProperties() {}", "public XMLElement() {\n this(new Properties(), false, true, true);\n }", "public DefaultAttribute( byte[] upId )\n {\n setUpId( upId );\n }", "public MyArrayList() {\n this(DEFAULT_CAP);\n }", "public Mapping() { this(null); }", "public Data() {\n \n }", "DefaultConstructor(int a){}", "public Storage() {\n this(null, DEFAULT_MAX, DEFAULT_MAX_SIZE);\n }", "public Value() {\n }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public\n YutilProperties()\n {\n super(new Properties());\n }", "public ProjectDescriptionBuilder() {\n initializeWithDefaultValues();\n }", "private ClassificationSettings() {\n throw new AssertionError();\n }", "public Person() {\n\t\tthis.name = \"Unknown\"; \n\t}", "public Object getDefaultValue();", "public Object getDefaultValue();", "protected Book() {\n this.title = \"Init\";\n this.author = \"Init\";\n this.bookCategories = new HashSet<>(10);\n }", "public Value(){}", "@Test\n public void goalEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int goalId = 12135;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n //Create goal\n Goal goal = new Goal();\n\n goal.setGoalId(goalId);\n goal.setUserId(userId);\n goal.setGoalName(name);\n goal.setTimePeriod(timePeriod);\n goal.setUnit(unit);\n goal.setAmount(amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }", "protected BaseTestObject()\n {\n\n fProp = new Properties(); // empty properties object\n fLog = TestLogger.getInstance(); // default level is DEBUG\n\n }", "private Conf() {\n // empty hidden constructor\n }", "public Basic() {}", "public DefaultSimplePolicyValueTestAbstract() {\n }", "public Dog() {\n // Default constructor\n }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public Note() {\n\t\tsuper();\n\t}", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public Propuestas() {}", "public Data() {}", "protected void setToDefault(){\n\n\t}", "@SuppressWarnings(\"unused\")\n public Item() {\n }", "public DefaultLoaderDefinition() {\n\t\t// nothing to do\n\t}", "@Model\r\n\tpublic Vector() {\r\n\t\tthis(50,50);\r\n\t}" ]
[ "0.7330257", "0.69114673", "0.69016165", "0.67552614", "0.6735714", "0.670048", "0.66533333", "0.663382", "0.65726656", "0.6542521", "0.652948", "0.6523897", "0.6464651", "0.6462916", "0.63570595", "0.6255017", "0.62457216", "0.62266", "0.6224983", "0.62220496", "0.6210038", "0.61982113", "0.6185422", "0.6178331", "0.6174488", "0.61518025", "0.6145017", "0.61397886", "0.6135166", "0.6126425", "0.6090411", "0.6085395", "0.6073512", "0.6070512", "0.60675335", "0.60649395", "0.6047077", "0.6046576", "0.603935", "0.6036639", "0.602066", "0.6017619", "0.6012628", "0.60119784", "0.6011948", "0.6006324", "0.598607", "0.59842825", "0.59807616", "0.59662634", "0.59655714", "0.59653467", "0.5958737", "0.59563977", "0.5948947", "0.5931582", "0.59250796", "0.5923362", "0.59120244", "0.5909702", "0.5900779", "0.58998847", "0.58868474", "0.5872057", "0.5869867", "0.586822", "0.5866134", "0.58606976", "0.5860351", "0.5852351", "0.584922", "0.58490837", "0.5848322", "0.58442694", "0.5844256", "0.5840387", "0.5839266", "0.5838729", "0.58375084", "0.58373266", "0.5833998", "0.5833427", "0.58300114", "0.58300114", "0.5828704", "0.5828564", "0.5825466", "0.58108115", "0.58067304", "0.5800955", "0.5800216", "0.5799233", "0.5793227", "0.5793118", "0.5791107", "0.5790631", "0.5789772", "0.57892364", "0.578691", "0.578479", "0.57846797" ]
0.0
-1
The threading profile used by the UMO when managing a component. Can be used to allocate more or less resources to this particular umo component.
public ThreadingProfile getThreadingProfile() { return threadingProfile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getThreadUsed();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "public Long getCpu() {\n return this.Cpu;\n }", "ThreadSubcomponentType getThreadSubcomponentType();", "public HardwareProfile hardwareProfile() {\n return this.hardwareProfile;\n }", "public int getIoThreadMultiplier()\n {\n return ioThreadMultiplier;\n }", "private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}", "public int getThreadCount() throws ResourceConfigurationException {\n return cpeFactory.getProcessingUnitThreadCount();\n }", "public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }", "@ApiModelProperty(required = true, value = \"The number (across all cores) of micro-seconds per second.\")\n public BigDecimal getCpu() {\n return cpu;\n }", "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "public long getThreads() { return threads; }", "public long getCurrentThreadCpuTime() {\t\t\t\t\t\t//Total CPU time usage\n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\t\treturn bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadCpuTime() : -1L;\n\t}", "public Thread getUsedBy()\n\t{\n\t\treturn usedBy;\n\t}", "public double getCpuUsage() {\n \t\tif (cpuUsage > 100) {\n \t\t\treturn 100;\n \t\t}\n \t\treturn cpuUsage;\n \t}", "public CPUCore getCpuCore() {\n return cpuCore;\n }", "public int getNumberOfThreads() { return numberOfThreads; }", "public OSProfile osProfile() {\n return this.osProfile;\n }", "@ApiModelProperty(value = \"\")\n public Long getThreadCount() {\n return threadCount;\n }", "private long getCpuTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadCpuTime() : 0L;\n }", "public int getNumberOfThreads(){\n return numberOfThreads;\n }", "public CPU getCPU() {\r\n\t\treturn cpu;\r\n\t}", "public final int getNbThread() {\n return nbThread;\n }", "public static Profile getProfile() {\n return profile;\n }", "public ThreadCapsuleInt getThreadCapsule(){\n\n\tif(poolLocked)return null;\n\telse{\n\n\t tempThreadCapsule=(ThreadCapsuleInt)passivePool.pop();\n\n\t if(tempThreadCapsule == null) return tempThreadCapsule;\n\t else{\n\n\t\tactivePool.add(tempThreadCapsule);\n\t\tactivePoolSize=activePool.getPresentSize();\n\t\tpassivePoolSize=passivePool.getPresentSize();\n\n\t\treturn tempThreadCapsule;\n\n\t }//else closing\n\n\t}//else closing\n\n }", "@Override\n\tpublic String getCPU() {\n\t\treturn null;\n\t}", "public String getThread()\n\t{\n\t\treturn this.thread;\n\t}", "public long getCpuTime() {\n\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\treturn bean.isCurrentThreadCpuTimeSupported() ?\n\t\t\tbean.getCurrentThreadCpuTime() : 0L;\n\t\n}", "public int getCpuLoad() { return cpuLoad; }", "public int getNumberOfCores();", "public Long getParallelism() {\n return parallelism;\n }", "public Profile getProfile() {\n return m_profile;\n }", "public double getOccupiedCpus () { return getCpuBaseResource().getOccupiedCapacity(); }", "public EntityProfile getProfile()\n\t{\n\t\treturn m_profile;\n\t}", "public static long getCpuTime(){\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ?\n bean.getCurrentThreadCpuTime() : 0L;\n }", "public String getProfesionTI() {\n return this.profesionTI;\n }", "String getCpusetcpus();", "public static int getThreadCount() {\r\n\t\treturn THREAD_MX_BEAN.getThreadCount();\r\n\t}", "CpuUtilizationType createCpuUtilizationType();", "public Profile getProfile() {\n return _profile;\n }", "@ApiModelProperty(value = \"The number of active threads in the NiFi.\")\r\n public Integer getActiveThreadCount() {\r\n return activeThreadCount;\r\n }", "public RangeStatistic getSpareThreadCount() {\n return null;\n }", "public int getIoThreads() {\n return ioThreads;\n }", "public String getThreadsValue() {\r\n\t\treturn threadsValue;\r\n\t}", "public MetadataProfile getProfile() {\n\t\treturn profile;\n\t}", "public NetworkProfile networkProfile() {\n return this.networkProfile;\n }", "@Override\n\tpublic String getUsedCpuTime() {\n\t\treturn model.getUsedCpuTime();\n\t}", "public String cmdChanProfile(){\r\n\t\treturn \"get /unit-\" + this.getTbs().getSlot() + \"/port-\" + this.getTbs().getPortNumber() + \"/chan-1/cfgm/chanprofile\";\r\n\t}", "public static long getCpuTime () {\n\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported()?\n bean.getCurrentThreadCpuTime(): 0L;\n }", "public int getCapacity() {\n\t\tfinal String key = ConfigNames.CHILD_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}", "@JsProperty(name = \"hardwareConcurrency\")\n Number getHardwareConcurrency();", "public ProfileService profile() {\n return service;\n }", "public ProjectProfileBO getProfile()\r\n {\r\n return mProfile;\r\n }", "@ApiModelProperty(example = \"null\", value = \"The number of active threads for the reporting task.\")\n public Integer getActiveThreadCount() {\n return activeThreadCount;\n }", "public static int getNumberOfCpuThreads() {\n\t\treturn Runtime.getRuntime().availableProcessors();\n\t}", "public String getConcurrentPool() {\n return getPropertyAsString(CONCURRENT_POOL, CONCURRENT_POOL_DEFAULT);\n }", "public KunKunProfile getProfile() {\n\t\tObject temp;\n//\t\tif (profile == null || profile.getUserData() == null\n//\t\t\t\t|| profile.getUserData().id == -1) {// nghia la bien o trang\n//\t\t\t\t\t\t\t\t\t\t\t\t\t// thai ban dau hoac da bi\n//\t\t\t\t\t\t\t\t\t\t\t\t\t// reset\n//\t\t\tif ((temp = KunKunUtils.readObject(\n//\t\t\t\t\tKunKunProfile.KUNKUN_PROFILE)) != null) {\n//\t\t\t\tprofile = (KunKunProfile) temp;// bi out memory\n//\t\t\t\tSystem.setProperty(\"networkaddress.cache.ttl\",\"0\");\n//\t\t\t\tSystem.setProperty(\"networkaddress.cache.negative.ttl\" , \"0\");\n//\t\t\t}\n//\t\t}\n\t\treturn profile;\n\t}", "public native int getCpuUsage();", "public float getCpuUsage() {\n try {\n mReader = new BufferedReader(new FileReader(mCpuUsageFilePath));\n mSa = mReader.readLine().split(\"[ ]+\", 9);\n\n mWork = Long.parseLong(mSa[1]) + Long.parseLong(mSa[2]) + Long.parseLong(mSa[3]);\n mTotal = mWork + Long.parseLong(mSa[4]) + Long.parseLong(mSa[5]) + Long.parseLong(mSa[6]) + Long.parseLong(mSa[7]);\n\n if (mTotalBefore != 0) {\n mTotalT = mTotal - mTotalBefore;\n mWorkT = mWork - mWorkBefore;\n mCpuTotal = restrictPercentage(mWorkT * 100 / (float) mTotalT);\n //Log.d(TAG, \"CPU Usage: \" + restrictPercentage(mWorkT * 100 / (float) mTotalT) + \"%\");\n }\n mTotalBefore = mTotal;\n mWorkBefore = mWork;\n\n mReader.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return mCpuTotal;\n }", "public String getProfile() {\n return profile;\n }", "public Profile mo9203c() {\n return (Profile) nativeGetOriginalProfile(this.f2197b);\n }", "public static long getCpuTime( ) {\n\n ThreadMXBean bean = ManagementFactory.getThreadMXBean( );\n\n return bean.isCurrentThreadCpuTimeSupported( ) ?\n\n bean.getCurrentThreadCpuTime( ) : 0L;\n\n }", "protected long getThroughput() {\n\t\treturn producerThreadPool.getThroughput();\n\t}", "public long getCurrentThreadUserTime() {\n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\t\treturn bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadUserTime() : -1L;\n\t}", "public static long getCpuTime( ) {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean( );\n return bean.isCurrentThreadCpuTimeSupported( ) ?\n bean.getCurrentThreadCpuTime( ) : 0L;\n }", "public static ICC_Profile getICC_Profile(int colorSpace) {\n/* 111 */ synchronized (ICC_Profile.class) {\n/* 112 */ return ICC_Profile.getInstance(colorSpace);\n/* */ } \n/* */ }", "public NetworkFunctionUserConfigurationOsProfile osProfile() {\n return this.osProfile;\n }", "public String getProfileAttribute() {\r\r\n\t\treturn _profileAttribute;\r\r\n\t}", "private void getProfile() {\n if (this.mLocalProfile.isEmpty()) {\n getDeviceType();\n getDeviceName();\n getScreenResolution();\n getScreenSize();\n }\n }", "public String getCpuSerialNo()\n\t{\n\t\treturn cpuSerialNo;\n\t}", "@Context\r\npublic interface ThreadContext\r\n{\r\n /**\r\n * Get the minimum thread level.\r\n *\r\n * @param min the default minimum value\r\n * @return the minimum thread level\r\n */\r\n int getMin( int min );\r\n \r\n /**\r\n * Return maximum thread level.\r\n *\r\n * @param max the default maximum value\r\n * @return the maximum thread level\r\n */\r\n int getMax( int max );\r\n \r\n /**\r\n * Return the deamon flag.\r\n *\r\n * @param flag true if a damon thread \r\n * @return the deamon thread policy\r\n */\r\n boolean getDaemon( boolean flag );\r\n \r\n /**\r\n * Get the thread pool name.\r\n *\r\n * @param name the pool name\r\n * @return the name\r\n */\r\n String getName( String name );\r\n \r\n /**\r\n * Get the thread pool priority.\r\n *\r\n * @param priority the thread pool priority\r\n * @return the priority\r\n */\r\n int getPriority( int priority );\r\n \r\n /**\r\n * Get the maximum idle time.\r\n *\r\n * @param idle the default maximum idle time\r\n * @return the maximum idle time in milliseconds\r\n */\r\n int getIdle( int idle );\r\n \r\n}", "public long getThreadCpuTime(long tid) {\n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\t\tif(!bean.isCurrentThreadCpuTimeSupported())\n\t\t\tSystem.out.println(\"current thread doesn't support cpu time\");\n\t\treturn bean.isThreadCpuTimeSupported() ? bean.getThreadCpuTime(tid) : -1L;\n\t}", "@Override\n\tpublic int getMaxThreads() {\n\t\treturn 10;\n\t}", "public StorageProfile storageProfile() {\n return this.storageProfile;\n }", "public Integer getCpus() {\n return cpus;\n }", "@Override\n\tpublic ITrace getCurrentTrace() {\n\t\treturn tracePerThread.get();\n\t}", "public Integer getMaxTimerDrivenThreads() {\n return maxTimerDrivenThreads;\n }", "H getProfile();", "public int getNumThreads() {\n return numThreads;\n }", "public double getCpuTimeSec() {\n\treturn getCpuTime() / Math.pow(10, 9);\t\t\n}", "public Integer getCpus() {\n return cpus;\n }", "@java.lang.Override\n public com.google.protobuf2.Any getProfile() {\n return profile_ == null ? com.google.protobuf2.Any.getDefaultInstance() : profile_;\n }", "@Override\r\n\t\tpublic int getStandbyCap() {\n\t\t\treturn 2 * Runtime.getRuntime().availableProcessors();\r\n\t\t}", "public int getNumOfThreads() {\n return numOfThreads;\n }", "public String getThreadName() {\n return null;\n }", "public long getStartCpuTime() {\r\n return startCpuTime;\r\n }", "public long cpuMicros() {\n return this.cpuNanos / 1000;\n }", "String getThreadId();", "public String getThreadName() {\n return threadName;\n }", "public String getProfile() {\n\tif (profileBuf.length() > 0) {\n\t profileBuf.append (\"\\n\");\n\n\t // should be replaced by java.util.Formatter from Java 1.5\n\t profileBuf.append (profilingTotal);\n\t profileBuf.append (\"\\t\");\n\t profileBuf.append (\"TOTAL\\n\");\n// \t profileBuf.append (Printf.format (\"%7d\\t%s\\n\",\n// \t\t\t\t\t new String[] {\"\" + profilingTotal, \"TOTAL\"}));\n\t return new String (profileBuf);\n\t} else {\n\t return \"\";\n\t}\n }", "public String toString()\n\t{\n\t\treturn threadName;\n\t}", "public static int getPeakThreadCount() {\r\n\t\treturn THREAD_MX_BEAN.getPeakThreadCount();\r\n\t}", "public int getWorkerThreads() {\n return workerThreads;\n }", "public static int getMaxThreadCount(){\n return Integer.parseInt(properties.getProperty(\"maxThreadCount\"));\n }", "long getThreadId();", "public long getCurrentThreadKernelTime() {\n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\t\treturn bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadCpuTime() - bean.getCurrentThreadUserTime() : -1L;\n\t}", "private JPanel getJpanelFlowProfile() {\n\t\tif (jpanelFlowProfile == null) {\n\t\t\tjpanelFlowProfile = new JPanel();\n\t\t\tjpanelFlowProfile.setLayout(null);\n\t\t\tjpanelFlowProfile.setPreferredSize(new Dimension(615, 477));\n\t\t\tjpanelFlowProfile.setBorder(BorderFactory.createTitledBorder(null, \"Back-Calculated Uracil Dead Time vs. Eluent Composition\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font(\"Dialog\", Font.BOLD, 12), new Color(51, 51, 51)));\n\t\t\tjpanelFlowProfile.setBackground(Color.white);\n\t\t\tjpanelFlowProfile.setSize(new Dimension(469, 261));\n\t\t\tjpanelFlowProfile.setLocation(new Point(6, 308));\n\t\t\tjpanelFlowProfile.add(m_GraphControlFlowRate, null);\n\t\t}\n\t\treturn jpanelFlowProfile;\n\t}", "public int getThreadId() {\n\n return threadId.get();\n\n }", "public double getProfileLength()\n {\n\n return this.profileLength;\n }" ]
[ "0.60212505", "0.59625435", "0.5869545", "0.5745812", "0.57080775", "0.5665162", "0.56401527", "0.5582028", "0.55084586", "0.5476532", "0.54536986", "0.54532194", "0.54380363", "0.54232836", "0.54091525", "0.54008305", "0.53974587", "0.53714883", "0.53656495", "0.536086", "0.53482103", "0.53415155", "0.5315125", "0.5296162", "0.52880526", "0.5261372", "0.52383447", "0.5232161", "0.5208647", "0.5196351", "0.51848435", "0.5184417", "0.5182182", "0.5178838", "0.51586705", "0.5148349", "0.51426375", "0.51404715", "0.51327944", "0.5120825", "0.51205707", "0.511765", "0.511311", "0.5098998", "0.50954694", "0.50874823", "0.50873715", "0.50738055", "0.5036088", "0.5034737", "0.5031068", "0.50267506", "0.5023627", "0.5014936", "0.50120825", "0.50082785", "0.50045526", "0.4993147", "0.49875954", "0.49827063", "0.49743503", "0.49597412", "0.49490872", "0.49444994", "0.49371657", "0.49345878", "0.49288929", "0.4927418", "0.49273345", "0.4925353", "0.491971", "0.4917989", "0.49121758", "0.49025372", "0.48925835", "0.48847184", "0.4882986", "0.48820835", "0.48782542", "0.48780817", "0.48773918", "0.48669598", "0.4865786", "0.48631492", "0.48595622", "0.48536092", "0.48505437", "0.48496282", "0.4849083", "0.4848321", "0.4830533", "0.4826993", "0.48215726", "0.48084155", "0.48058182", "0.47951716", "0.47917318", "0.4783331", "0.47800198", "0.47768435" ]
0.7343981
0
A descriptor can have a custom entrypoint resolver for its own object. By default this is null. When set this resolver will override the resolver on the model
public UMOEntryPointResolverSet getEntryPointResolverSet() { return entryPointResolverSet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XMLClassDescriptorResolverImpl() {\n super();\n _descriptorCache = new DescriptorCacheImpl();\n }", "public void preResolve(Contribution contribution, ModelResolver resolver, ProcessorContext context)\n throws ContributionResolveException {\n // Resolve the contribution model itself\n ModelResolver contributionResolver = contribution.getModelResolver();\n contribution.setUnresolved(false);\n contributionResolver.addModel(contribution, context);\n\n // Resolve Exports\n resolveExports(contribution, contributionResolver, context);\n // Resolve Imports\n resolveImports(contribution, contributionResolver, context);\n\n preResolved = true;\n }", "@SuppressWarnings(\"deprecation\")\npublic interface SyntheticModelProviderPlugin extends Plugin<ModelContext> {\n /**\n * Creates a synthetic model\n *\n * @param context - context to create the model from\n * @return model - when the plugin indicates it supports it, it must return a model\n */\n springfox.documentation.schema.Model create(ModelContext context);\n\n /**\n * Creates a synthetic model properties\n *\n * @param context - context to create the model properties from\n * @return model - when the plugin indicates it supports it, it must provide properties by name\n */\n List<springfox.documentation.schema.ModelProperty> properties(ModelContext context);\n\n\n /**\n * Creates a synthetic model\n *\n * @param context - context to create the model from\n * @return model - when the plugin indicates it supports it, it must return a model\n */\n ModelSpecification createModelSpecification(ModelContext context);\n\n /**\n * Creates a synthetic model properties\n *\n * @param context - context to create the model properties from\n * @return model - when the plugin indicates it supports it, it must provide properties by name\n */\n List<PropertySpecification> propertySpecifications(ModelContext context);\n\n /**\n * Creates a dependencies for the synthetic model\n *\n * @param context - context to create the model dependencies from\n * @return model - when the plugin indicates it supports it, it may return dependent model types.\n */\n Set<ResolvedType> dependencies(ModelContext context);\n}", "private interface CatalogResolver extends URIResolver, EntityResolver {\n @Override\n InputSource resolveEntity(String publicId, String systemId);\n }", "public void setDescriptor(Descriptor inDescriptor);", "public ProviderSpecificBootstrap<T> providerResolver(\n ValidationProviderResolver resolver) {\n this.resolver = resolver;\n return this;\n }", "@Override\n public void setCatalogManagerSchemaResolver(Object catalogManager,\n Object parserObject,\n Object environmentSetting) {\n\n }", "public ComponentModelDescriptorI\tgetModelDescriptor(String uri) ;", "@Override\n public void resolve(DeserializationContext ctxt) throws JsonMappingException {\n ((ResolvableDeserializer) defaultDeserializer).resolve(ctxt);\n }", "public RouteProviderDescriptor() {\n mBundle = new Bundle();\n }", "protected Object resolveModel(Object model) {\n\t\treturn model;\n\t}", "@Override\n public void resolveReferences(WdkModel model) throws WdkModelException {\n if ((_aliasQueryRef == null ? 0 : 1) + (_aliasPluginClassName == null ? 0 : 1) != 1) {\n throw new WdkModelException(\"Primary key definition of record class '\" +\n _recordClass.getFullName() + \"' must have exactly one of 'aliasQueryRef' or 'aliasPluginClassName'\");\n }\n\n // if alias query specified, resolve/prepare it and create query based plugin\n if (_aliasQueryRef != null) {\n Query aliasQuery = QueryBasedPrimaryKeyAliasPlugin\n .prepareAliasQuery(_aliasQueryRef, getColumnRefs(), _recordClass);\n _aliasPlugin = new QueryBasedPrimaryKeyAliasPlugin(aliasQuery);\n }\n\n // otherwise, resolve the configured alias plugin\n else {\n try {\n _aliasPlugin = Class\n .forName(_aliasPluginClassName)\n .asSubclass(PrimaryKeyAliasPlugin.class)\n .getDeclaredConstructor()\n .newInstance();\n }\n catch (InstantiationException | IllegalAccessException | IllegalArgumentException |\n InvocationTargetException | NoSuchMethodException | SecurityException | ClassNotFoundException e) {\n throw new WdkModelException(\"Failed instantiating aliasPlugin for class \" + _aliasPluginClassName, e);\n }\n }\n }", "public static EObject resolve(TransactionalEditingDomain domain,\n\t\t\tEObject eObject, boolean resolve) {\n\n\t\tif (eObject == null)\n\t\t\treturn null;\n\n\t\tif (!eObject.eIsProxy())\n\t\t\treturn eObject;\n\n\t\tif (resolve) {\n\n\t\t\tEObject resolved = EcoreUtil.resolve(eObject, domain\n\t\t\t\t.getResourceSet());\n\n\t\t\treturn (resolved.eIsProxy() ? null\n\t\t\t\t: resolved);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn SchemaEditPlugin.INSTANCE;\n\t}", "public T caseEntryPointSpec(EntryPointSpec object) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn ModelEditPlugin.INSTANCE;\r\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn ModelEditPlugin.INSTANCE;\n\t}", "public DependencyResolver getResolver() {\n return resolver;\n }", "public interface Resolvable {\n\n /**\n * Returns the status of resolution. If completely resolved returns enum\n * value \"RESOLVED\", if not returns \"UNRESOLVED\", in case reference of\n * grouping/typedef is added to uses/type but it's not resolved\n * \"INTRA_FILE_RESOLVED\" is returned.\n *\n * @return status of resolution\n */\n ResolvableStatus getResolvableStatus();\n\n /**\n * Set the status of type/uses resolution. If completely resolved set enum\n * value \"RESOLVED\", if not set it to \"UNRESOLVED\", in case reference of\n * grouping/typedef is added to uses/type but it's not resolved\n * \"INTRA_FILE_RESOLVED\" should be set.\n *\n * @param resolvableStatus status of resolution\n */\n void setResolvableStatus(ResolvableStatus resolvableStatus);\n\n /**\n * Resolves the linking.\n *\n * @throws DataModelException data model exception\n */\n void resolve()\n throws DataModelException;\n}", "public String getEntrypoint() {\n return entrypoint;\n }", "public Staff getResolver(){return resolver;}", "public CatalogResolver getResolver() {\n return resolver;\n }", "public Resolution resolve(Constraint localConstraint, LocalNode localModel) throws QueryException {\n // globalize the model\n Node modelNode = globalizeNode(localModel);\n if (!(modelNode instanceof URIReference)) throw new QueryException(\"Unexpected model type in constraint: (\" + modelNode.getClass() + \")\" + modelNode.toString());\n // convert the node to a URIReferenceImpl, which includes the Value interface\n URIReferenceImpl model = makeRefImpl((URIReference)modelNode);\n \n // check if this model is really on a remote server\n URI modelUri = model.getURI();\n testForLocality(modelUri);\n \n Answer ans = getModelSession(modelUri).query(globalizedQuery(localConstraint, model));\n return new AnswerResolution(session, ans, localConstraint);\n }", "public void setReasonerHint(ReasonerDescriptor descriptor) {\r\n reasonerHint = findReasoner(descriptor);\r\n }", "@Override\n public ConstraintsDescriptor getDescriptor(String fqName) {\n\n Object constraintsObject = getObjectByClassNameForConcept(NameUtil.getAspectNodeFqName(fqName, LanguageAspect.CONSTRAINTS) + \"_Constraints\", fqName, false);\n\n ConstraintsDescriptor descriptor = null;\n\n if (constraintsObject == null) {\n // if ConstraintsDescriptor not exist too - return EmptyConstraintsDataHolder\n if (ModelConstraintsManager.getOldConstraintsDescriptor(NameUtil.namespaceFromConceptFQName(fqName)) == null) {\n descriptor = new BaseConstraintsDescriptor(fqName);\n }\n } else {\n if (ConstraintsDataHolder.class.isAssignableFrom(constraintsObject.getClass())) {\n try {\n ConstraintsDataHolder compiledDataHolder = (ConstraintsDataHolder) constraintsObject;\n descriptor = new DataHolderConstraintsDescriptor(compiledDataHolder);\n } catch (Exception ignored) {\n }\n }\n }\n\n if (descriptor == null) {\n descriptor = new DataHolderConstraintsDescriptor(new InterpretedConstraintsDataHolder(fqName));\n }\n\n return descriptor;\n }", "public void setDependencyResolver( DependencyResolver resolver )\r\n {\r\n this.resolver = resolver;\r\n }", "public DescriptorImpl() {\n\n load();\n }", "static final FeatureDescriptor findFeatureDescriptor(PropertyDisplayer pd) {\n if (pd instanceof EditorPropertyDisplayer) {\n //Issue 38004, more gunk to ensure we get the right feature\n //descriptor\n EditorPropertyDisplayer epd = (EditorPropertyDisplayer) pd;\n\n if (epd.modelRef != null) {\n PropertyModel pm = epd.modelRef.get();\n\n if (pm instanceof ExPropertyModel) {\n FeatureDescriptor fd = ((ExPropertyModel) pm).getFeatureDescriptor();\n\n if (fd != null) {\n return fd;\n }\n }\n }\n }\n\n Property p = pd.getProperty();\n\n if (p instanceof ModelProperty) {\n return ((ModelProperty) p).getFeatureDescriptor();\n } else if (p instanceof ModelProperty.DPMWrapper) {\n return ((ModelProperty.DPMWrapper) p).getFeatureDescriptor();\n } else {\n return p;\n }\n }", "public DescriptorImpl() {\n load();\n }", "public DescriptorImpl() {\n load();\n }", "public DescriptorImpl() {\n load();\n }", "public interface LazyResolver {\n\n LazyResolveContext getLazyResolveContext();\n\n void setLazyResolveContext(LazyResolveContext context);\n\n /**\n * Base class of {@link ObjectResolver} instances that are owned by a parent {@link LazyResolver}.\n */\n abstract class ObjectResolverImpl<T extends UniqueIdentifiable> implements ObjectResolver<T>, DeepResolver {\n\n private final LazyResolver _parent;\n private final ObjectResolver<T> _underlying;\n\n public ObjectResolverImpl(final LazyResolver parent, final ObjectResolver<T> underlying) {\n _parent = parent;\n _underlying = underlying;\n }\n\n protected ObjectResolver<T> getUnderlying() {\n return _underlying;\n }\n\n protected abstract T lazy(T object, LazyResolveContext.AtVersionCorrection context);\n\n @Override\n public T resolveObject(final UniqueId uniqueId, final VersionCorrection versionCorrection) {\n final T underlying = _underlying.resolveObject(uniqueId, versionCorrection);\n if (underlying == null) {\n return null;\n }\n return lazy(underlying, _parent.getLazyResolveContext().atVersionCorrection(versionCorrection));\n }\n\n @Override\n public ChangeManager changeManager() {\n return getUnderlying().changeManager();\n }\n\n @Override\n public DeepResolver deepResolver() {\n return this;\n }\n\n }\n\n /**\n * Base class of {@link Resolver} instances that are owned by a parent {@link LazyResolver}.\n */\n abstract class ResolverImpl<T extends UniqueIdentifiable> extends ObjectResolverImpl<T> implements Resolver<T> {\n\n public ResolverImpl(final LazyResolver parent, final Resolver<T> underlying) {\n super(parent, underlying);\n }\n\n @Override\n protected Resolver<T> getUnderlying() {\n return (Resolver<T>) super.getUnderlying();\n }\n\n @Override\n public UniqueId resolveExternalId(final ExternalIdBundle identifiers, final VersionCorrection versionCorrection) {\n return getUnderlying().resolveExternalId(identifiers, versionCorrection);\n }\n\n @Override\n public Map<ExternalIdBundle, UniqueId> resolveExternalIds(final Collection<ExternalIdBundle> identifiers, final VersionCorrection versionCorrection) {\n return getUnderlying().resolveExternalIds(identifiers, versionCorrection);\n }\n\n @Override\n public UniqueId resolveObjectId(final ObjectId identifier, final VersionCorrection versionCorrection) {\n return getUnderlying().resolveObjectId(identifier, versionCorrection);\n }\n\n @Override\n public Map<ObjectId, UniqueId> resolveObjectIds(final Collection<ObjectId> identifiers, final VersionCorrection versionCorrection) {\n return getUnderlying().resolveObjectIds(identifiers, versionCorrection);\n }\n\n }\n\n /**\n * Lazy resolution of portfolios.\n */\n class LazyPortfolioResolver extends ResolverImpl<Portfolio> {\n\n public LazyPortfolioResolver(final LazyResolver parent, final Resolver<Portfolio> underlying) {\n super(parent, underlying);\n }\n\n // ObjectResolverImpl\n\n @Override\n public Portfolio lazy(final Portfolio object, final LazyResolveContext.AtVersionCorrection context) {\n return new LazyResolvedPortfolio(context, object);\n }\n\n // DeepResolver\n\n @Override\n public UniqueIdentifiable withLogger(final UniqueIdentifiable underlying, final ResolutionLogger logger) {\n if (underlying instanceof Portfolio) {\n return new LoggedResolutionPortfolio((Portfolio) underlying, logger);\n }\n return null;\n }\n\n }\n\n /**\n * Lazy resolution of portfolio nodes.\n */\n class LazyPortfolioNodeResolver extends ResolverImpl<PortfolioNode> {\n\n public LazyPortfolioNodeResolver(final LazyResolver parent, final Resolver<PortfolioNode> underlying) {\n super(parent, underlying);\n }\n\n // ObjectResolverImpl\n\n @Override\n public PortfolioNode lazy(final PortfolioNode object, final LazyResolveContext.AtVersionCorrection context) {\n return new LazyResolvedPortfolioNode(context, object);\n }\n\n // DeepResolver\n\n @Override\n public UniqueIdentifiable withLogger(final UniqueIdentifiable underlying, final ResolutionLogger logger) {\n if (underlying instanceof PortfolioNode) {\n return new LoggedResolutionPortfolioNode((PortfolioNode) underlying, logger);\n }\n return null;\n }\n\n }\n\n /**\n * Lazy resolution of positions.\n */\n class LazyPositionResolver extends ResolverImpl<Position> {\n\n public LazyPositionResolver(final LazyResolver parent, final Resolver<Position> underlying) {\n super(parent, underlying);\n }\n\n // ResolverImpl\n\n @Override\n public Position lazy(final Position object, final LazyResolveContext.AtVersionCorrection context) {\n return new LazyResolvedPosition(context, object);\n }\n\n // DeepResolver\n\n @Override\n public UniqueIdentifiable withLogger(final UniqueIdentifiable underlying, final ResolutionLogger logger) {\n if (underlying instanceof Position) {\n return new LoggedResolutionPosition((Position) underlying, logger);\n }\n return null;\n }\n\n }\n\n /**\n * Lazy resolution of trades.\n */\n class LazyTradeResolver extends ResolverImpl<Trade> {\n\n public LazyTradeResolver(final LazyResolver parent, final Resolver<Trade> underlying) {\n super(parent, underlying);\n }\n\n // ObjectResolverImpl\n\n @Override\n public Trade lazy(final Trade object, final LazyResolveContext.AtVersionCorrection context) {\n return new LazyResolvedTrade(context, object);\n }\n\n // DeepResolver\n\n @Override\n public UniqueIdentifiable withLogger(final UniqueIdentifiable underlying, final ResolutionLogger logger) {\n if (underlying instanceof Trade) {\n return new LoggedResolutionTrade((Trade) underlying, logger);\n }\n return null;\n }\n\n }\n\n}", "public final RouteProviderDescriptor getDescriptor() {\n return mDescriptor;\n }", "@ProviderType\npublic interface EmployeeModel extends BaseModel<Employee> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a employee model instance should use the {@link Employee} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this employee.\n\t *\n\t * @return the primary key of this employee\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this employee.\n\t *\n\t * @param primaryKey the primary key of this employee\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this employee.\n\t *\n\t * @return the uuid of this employee\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this employee.\n\t *\n\t * @param uuid the uuid of this employee\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the employee ID of this employee.\n\t *\n\t * @return the employee ID of this employee\n\t */\n\tpublic long getEmployeeId();\n\n\t/**\n\t * Sets the employee ID of this employee.\n\t *\n\t * @param employeeId the employee ID of this employee\n\t */\n\tpublic void setEmployeeId(long employeeId);\n\n\t/**\n\t * Returns the first name of this employee.\n\t *\n\t * @return the first name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getFirstName();\n\n\t/**\n\t * Sets the first name of this employee.\n\t *\n\t * @param firstName the first name of this employee\n\t */\n\tpublic void setFirstName(String firstName);\n\n\t/**\n\t * Returns the last name of this employee.\n\t *\n\t * @return the last name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getLastName();\n\n\t/**\n\t * Sets the last name of this employee.\n\t *\n\t * @param lastName the last name of this employee\n\t */\n\tpublic void setLastName(String lastName);\n\n\t/**\n\t * Returns the middle name of this employee.\n\t *\n\t * @return the middle name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getMiddleName();\n\n\t/**\n\t * Sets the middle name of this employee.\n\t *\n\t * @param middleName the middle name of this employee\n\t */\n\tpublic void setMiddleName(String middleName);\n\n\t/**\n\t * Returns the birth date of this employee.\n\t *\n\t * @return the birth date of this employee\n\t */\n\tpublic Date getBirthDate();\n\n\t/**\n\t * Sets the birth date of this employee.\n\t *\n\t * @param birthDate the birth date of this employee\n\t */\n\tpublic void setBirthDate(Date birthDate);\n\n\t/**\n\t * Returns the post ID of this employee.\n\t *\n\t * @return the post ID of this employee\n\t */\n\tpublic long getPostId();\n\n\t/**\n\t * Sets the post ID of this employee.\n\t *\n\t * @param postId the post ID of this employee\n\t */\n\tpublic void setPostId(long postId);\n\n\t/**\n\t * Returns the sex of this employee.\n\t *\n\t * @return the sex of this employee\n\t */\n\tpublic Boolean getSex();\n\n\t/**\n\t * Sets the sex of this employee.\n\t *\n\t * @param sex the sex of this employee\n\t */\n\tpublic void setSex(Boolean sex);\n\n}", "public T caseDescriptorLibrary(DescriptorLibrary object) {\n\t\treturn null;\n\t}", "public DescriptorImpl() {\n\t\t\tsuper(SemanticVersionBuildWrapper.class);\n\t\t\tlogger.debug(\"### DescriptorImpl\");\n\t\t\tload();\n\t\t}", "public DescriptorImpl() {\n super();\n load();\n }", "FdmType getFacetDescriptorManager();", "private void resolveExports(Contribution contribution, ModelResolver resolver, ProcessorContext context)\n throws ContributionResolveException {\n for (Export export : contribution.getExports()) {\n if (export instanceof DefaultExport) {\n // Initialize the default export's resolver\n export.setModelResolver(resolver);\n } else {\n extensionProcessor.resolve(export, resolver, context);\n } // end if\n } // end for\n\n }", "public SPELResolver(Object model, TypeConverter typeConverter) {\r\n\t\tthis.model = model;\r\n\t\tthis.typeConverter = typeConverter;\r\n\t\treset();\r\n\t}", "public T caseFConnector(FConnector object) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic String resolve(AusfuehrungsContext<String> pruefContext) {\n\t\treturn null;\r\n\t}", "public interface IEntryPointService {\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic String getPath();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic Class<? extends EntryPoint> getEntryPointClass();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic Map<String, String> getProperties();\n}", "@Override\n\t\t\t\t\tpublic Package handleModel(Package parent, FModel src,\n\t\t\t\t\t\t\tString packageName) {\n\t\t\t\t\t\treturn super.handleModel(parent, src, packageName);\n\t\t\t\t\t}", "Concept resolveInstance(Instance instance);", "SchemaBuilder withResourceResolver(LSResourceResolver resourceResolver);", "public interface IDescriptorViewer\r\n{\r\n\t/**\r\n\t * Get the description for this descriptor\r\n\t * @return\r\n\t */\r\n\tpublic String getDescription();\r\n\t\r\n\t@Override\r\n\tpublic String toString();\r\n}", "@Override\n public EntityResolver getEntityResolver() {\n return entityResolver;\n }", "protected AbstractNamedValueArgumentResolver() {\n\t\tthis.conversionService = null;\n\t}", "private IReasoner findReasoner(ReasonerDescriptor descriptor) {\r\n if (null == descriptor) {\r\n throw new IllegalArgumentException(\"descriptor must not be null\");\r\n }\r\n IReasoner reasoner = registry.findReasoner(descriptor);\r\n if (null == reasoner) {\r\n throw new IllegalArgumentException(\"descriptor does not fit to a registered reasoner\");\r\n }\r\n return reasoner;\r\n }", "protected void addUrlPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_url_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_url_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__URL,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "MountPoint findDefaultMountPoint(String relatedContentId, String handlerKey);", "public AssemblyViewPointAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = AssemblyViewPointPackage.eINSTANCE;\n\t\t}\n\t}", "public T caseEConnector(EConnector object) {\n\t\treturn null;\n\t}", "public abstract void resolve();", "public ImageDescriptor getBaseImageDescriptor(IModelElement element,\n \t\t\tint renderFlags) {\n \n \t\t// if (true) {\n \t\t// return DLTKPluginImages.DESC_OBJS_UNKNOWN;\n \t\t// }\n \n \t\tILabelProvider provider = getContributedLabelProvider(element);\n \t\tif (provider != null) {\n \t\t\tImage img = provider.getImage(element);\n \t\t\tif (img != null) {\n \t\t\t\treturn ImageDescriptor.createFromImage(img);\n \t\t\t}\n \t\t}\n \n \t\ttry {\n \t\t\tswitch (element.getElementType()) {\n \t\t\tcase IModelElement.METHOD: {\n \t\t\t\tIMethod method = (IMethod) element;\n \t\t\t\tint flags = method.getFlags();\n \t\t\t\treturn getMethodImageDescriptor(flags);\n \t\t\t}\n \n \t\t\tcase IModelElement.FIELD: {\n \t\t\t\tIField member = (IField) element;\n \t\t\t\treturn getFieldImageDescriptor(member.getFlags());\n \t\t\t}\n \n \t\t\tcase IModelElement.TYPE: {\n \t\t\t\tIType type = (IType) element;\n \t\t\t\treturn getTypeImageDescriptor(type.getFlags(),\n \t\t\t\t\t\tuseLightIcons(renderFlags));\n \t\t\t}\n \n \t\t\tcase IModelElement.PACKAGE_DECLARATION:\n \t\t\t\treturn DLTKPluginImages.DESC_OBJS_PACKDECL;\n \n \t\t\tcase IModelElement.PROJECT_FRAGMENT: {\n \t\t\t\tIProjectFragment root = (IProjectFragment) element;\n \t\t\t\tif (root.isExternal()) {\n \t\t\t\t\tif (root.isArchive()) {\n \t\t\t\t\t\treturn DLTKPluginImages.DESC_OBJS_JAR_WSRC;\n \t\t\t\t\t} else {\n \t\t\t\t\t\treturn DLTKPluginImages.DESC_OBJS_PACKFRAG_ROOT;\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\treturn DLTKPluginImages.DESC_OBJS_PACKFRAG_ROOT;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tcase IModelElement.SCRIPT_FOLDER:\n \t\t\t\treturn getScriptFolderIcon(element, renderFlags);\n \n \t\t\tcase IModelElement.SOURCE_MODULE:\n \t\t\t\tboolean external = element instanceof IExternalSourceModule;\n \t\t\t\treturn getSourceModuleIcon(element, external, renderFlags);\n \n \t\t\tcase IModelElement.SCRIPT_PROJECT:\n \t\t\t\tIScriptProject jp = (IScriptProject) element;\n \t\t\t\tif (jp.getProject().isOpen()) {\n \t\t\t\t\tIProject project = jp.getProject();\n \t\t\t\t\tIWorkbenchAdapter adapter = (IWorkbenchAdapter) project\n \t\t\t\t\t\t\t.getAdapter(IWorkbenchAdapter.class);\n \t\t\t\t\tif (adapter != null) {\n \t\t\t\t\t\tImageDescriptor result = adapter\n \t\t\t\t\t\t\t\t.getImageDescriptor(project);\n \t\t\t\t\t\tif (result != null)\n \t\t\t\t\t\t\treturn result;\n \t\t\t\t\t}\n \t\t\t\t\treturn DESC_OBJ_PROJECT;\n \t\t\t\t}\n \t\t\t\treturn DESC_OBJ_PROJECT_CLOSED;\n \t\t\t\t// return DESC_OBJ_PROJECT;\n \n \t\t\tcase IModelElement.SCRIPT_MODEL:\n \t\t\t\t// return DLTKPluginImages.DESC_OBJS_JAVA_MODEL;\n \t\t\t\treturn null;\n \t\t\t}\n \t\t\tAssert.isTrue(false,\n \t\t\t\t\tDLTKUIMessages.ScriptImageLabelprovider_assert_wrongImage);\n \n \t\t\treturn DLTKPluginImages.DESC_OBJS_GHOST;\n \t\t} catch (ModelException e) {\n \t\t\tif (e.isDoesNotExist())\n \t\t\t\treturn DLTKPluginImages.DESC_OBJS_UNKNOWN;\n \n \t\t\tDLTKUIPlugin.log(e);\n \t\t\treturn DLTKPluginImages.DESC_OBJS_GHOST;\n \t\t}\n \t}", "private void setResolverEntry(Class<? extends Request> key, HandlerFactory factory) {\n resolver.put(key.getCanonicalName(), factory);\n }", "protected void addSourcePropertyDescriptor(Object object) {\n\t\t\n\t\titemPropertyDescriptors.add(new EdgeSourcePropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\tgetResourceLocator(), getString(\"_UI_Edge_source_feature\"), getString(\n\t\t\t\t\t\t\"_UI_PropertyDescriptor_description\", \"_UI_Edge_source_feature\",\n\t\t\t\t\t\t\"_UI_Edge_type\"), HenshinPackage.Literals.EDGE__SOURCE));\n\t}", "public void setMetadataResolver(@Nullable final MetadataResolver resolver) {\n checkSetterPreconditions();\n metadataResolver = resolver;\n }", "protected void addDefaultAutowireCandidatesPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_defaultAutowireCandidates_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_defaultAutowireCandidates_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__DEFAULT_AUTOWIRE_CANDIDATES,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public static interface Resolver {\n\t\t\n\t\t/**\n\t\t * Registers an injection manager with a resolver.\n\t\t * \n\t\t * The resolver can asynchronously update the relation to modify the\n\t\t * binding.\n\t\t * \n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.addTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.removeTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.substituteTarget\n\t\t * \n\t\t */\n\t\tpublic void addInjection(RelationInjectionManager injection);\n\t\t\n\t\t/**\n\t\t * Request to lazily resolve an injection.\n\t\t * \n\t\t * This method is invoked by a injection manager to calculate its initial binding\n\t\t * when it is first accessed.\n\t\t * \n\t\t * The resolver must call back the manager to modify the resolved target.\n\t\t * \n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.addTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.removeTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.substituteTarget\n\t\t * \n\t\t */\n\t\tpublic boolean resolve(RelationInjectionManager injection);\n\t\t\n\t\t/**\n\t\t * Request to remove an injection.\n\t\t * \n\t\t * This method is invoked by a injection manager to signify that the\n\t\t * component wants to force the resolution of the relation the next\n\t\t * access\n\t\t * \n\t\t */\n\t\tpublic boolean unresolve(RelationInjectionManager injection);\n\t\t\n\t}", "@Override\n\tpublic Object resolveContextualObject(String key) {\n\t\treturn null;\n\t}", "protected void addCalleePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors\r\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_OperationCall_callee_feature\"),\r\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_OperationCall_callee_feature\",\r\n\t\t\t\t\t\t\t\t\"_UI_OperationCall_type\"),\r\n\t\t\t\t\t\tSystemModelPackage.Literals.OPERATION_CALL__CALLEE, true, false, true, null, null, null));\r\n\t}", "public void setEntityResolver(EntityResolver resolver)\n {\n if (resolver instanceof EntityResolver2)\n {\n resolver2 = (EntityResolver2) resolver;\n }\n else\n {\n resolver2 = null;\n }\n if (resolver == null)\n {\n resolver = base;\n }\n entityResolver = resolver;\n }", "public <T> Resolver<T> getResolver(Class<T> modelClass) {\n return resolvers.get(modelClass);\n }", "public interface QueryEnginePluginDescriptor extends PluginDescriptor {\n}", "protected void addReferenciaPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_referencia_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_referencia_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__REFERENCIA,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected interface Resolver {\n\n /**\n * Adjusts a module graph if necessary.\n *\n * @param classLoader The class loader to adjust.\n * @param target The targeted class for which a proxy is created.\n */\n void accept(@MaybeNull ClassLoader classLoader, Class<?> target);\n\n /**\n * An action to create a resolver.\n */\n enum CreationAction implements PrivilegedAction<Resolver> {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"REC_CATCH_EXCEPTION\", justification = \"Exception should not be rethrown but trigger a fallback.\")\n public Resolver run() {\n try {\n Class<?> module = Class.forName(\"java.lang.Module\", false, null);\n return new ForModuleSystem(Class.class.getMethod(\"getModule\"),\n module.getMethod(\"isExported\", String.class),\n module.getMethod(\"addExports\", String.class, module),\n ClassLoader.class.getMethod(\"getUnnamedModule\"));\n } catch (Exception ignored) {\n return NoOp.INSTANCE;\n }\n }\n }\n\n /**\n * A non-operational resolver for VMs that do not support the module system.\n */\n enum NoOp implements Resolver {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public void accept(@MaybeNull ClassLoader classLoader, Class<?> target) {\n /* do nothing */\n }\n }\n\n /**\n * A resolver for VMs that do support the module system.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class ForModuleSystem implements Resolver {\n\n /**\n * The {@code java.lang.Class#getModule} method.\n */\n private final Method getModule;\n\n /**\n * The {@code java.lang.Module#isExported} method.\n */\n private final Method isExported;\n\n /**\n * The {@code java.lang.Module#addExports} method.\n */\n private final Method addExports;\n\n /**\n * The {@code java.lang.ClassLoader#getUnnamedModule} method.\n */\n private final Method getUnnamedModule;\n\n /**\n * Creates a new resolver for a VM that supports the module system.\n *\n * @param getModule The {@code java.lang.Class#getModule} method.\n * @param isExported The {@code java.lang.Module#isExported} method.\n * @param addExports The {@code java.lang.Module#addExports} method.\n * @param getUnnamedModule The {@code java.lang.ClassLoader#getUnnamedModule} method.\n */\n protected ForModuleSystem(Method getModule,\n Method isExported,\n Method addExports,\n Method getUnnamedModule) {\n this.getModule = getModule;\n this.isExported = isExported;\n this.addExports = addExports;\n this.getUnnamedModule = getUnnamedModule;\n }\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"REC_CATCH_EXCEPTION\", justification = \"Exception should always be wrapped for clarity.\")\n public void accept(@MaybeNull ClassLoader classLoader, Class<?> target) {\n Package location = target.getPackage();\n if (location != null) {\n try {\n Object module = getModule.invoke(target);\n if (!(Boolean) isExported.invoke(module, location.getName())) {\n addExports.invoke(module, location.getName(), getUnnamedModule.invoke(classLoader));\n }\n } catch (Exception exception) {\n throw new IllegalStateException(\"Failed to adjust module graph for dispatcher\", exception);\n }\n }\n }\n }\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public Object caseDomainTaskDefinition(DomainTaskDefinition object) {\n\t\treturn null;\n\t}", "public EntityResolver getEntityResolver()\n {\n return (entityResolver == base) ? null : entityResolver;\n }", "default Object resolve(String name) {\n return resolve(name, Object.class);\n }", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn OpenAPIEditPlugin.INSTANCE;\n\t}", "public PrimObject resolveObject(String name) {\n return findObject(importFor(name));\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "FunDef resolve(\n Exp[] args,\n Validator validator,\n List<Conversion> conversions);", "public Resolver(Resolver parentResolver) {\n\t\tparent = parentResolver;\n\t\tstorage = new Slots();\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn SampledefinitionEditPlugin.INSTANCE;\n\t}", "public Object caseMetaModel(MetaModel object) {\n\t\treturn null;\n\t}", "public ResourceLocator getResourceLocator() {\r\n\t\treturn UmlDomainEditPlugin.INSTANCE;\r\n\t}", "@Override\n\tpublic ModelAndView resolverView(PageContainer pContainer) throws Exception{\n\t\treturn null;\n\t}", "public final EObject ruleEntrypoint() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token lv_name_2_0=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1224:28: ( ( () otherlv_1= 'entrypoint' ( (lv_name_2_0= RULE_ID ) ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1225:1: ( () otherlv_1= 'entrypoint' ( (lv_name_2_0= RULE_ID ) ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1225:1: ( () otherlv_1= 'entrypoint' ( (lv_name_2_0= RULE_ID ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1225:2: () otherlv_1= 'entrypoint' ( (lv_name_2_0= RULE_ID ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1225:2: ()\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1226:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getEntrypointAccess().getEntrypointAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,30,FOLLOW_30_in_ruleEntrypoint2627); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getEntrypointAccess().getEntrypointKeyword_1());\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1235:1: ( (lv_name_2_0= RULE_ID ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1236:1: (lv_name_2_0= RULE_ID )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1236:1: (lv_name_2_0= RULE_ID )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1237:3: lv_name_2_0= RULE_ID\r\n {\r\n lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleEntrypoint2644); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tnewLeafNode(lv_name_2_0, grammarAccess.getEntrypointAccess().getNameIDTerminalRuleCall_2_0()); \r\n \t\t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElement(grammarAccess.getEntrypointRule());\r\n \t }\r\n \t\tsetWithLastConsumed(\r\n \t\t\tcurrent, \r\n \t\t\t\"name\",\r\n \t\tlv_name_2_0, \r\n \t\t\"ID\");\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "ServiceDescriptor getIdLocalServiceDescriptor(String id, Object metadata) {\n return new ServiceDescriptor(localAddress.geAddressString(), id, null, null, id, metadata);\n }", "public interface EntryPoint extends PrioritizedExtension, Startable, Stoppable {\n enum ContextEntries {\n ARGS,\n KERNEL, // may not always exist\n ENTRY_POINTS,\n RUNNING_ENTRY_POINTS,\n ENTRY_POINTS_TEMP,\n KERNEL_EXECUTOR_SERVICE,\n ENTRY_POINT_REGISTRY;\n }\n\n default boolean requiresKernel() {\n return false;\n }\n\n Logger getLogger();\n\n default void initialize(Map<ContextEntries, Object> context) {}\n\n default void finalize(Map<ContextEntries, Object> context) {}\n\n default void start() {\n getLogger().log(Level.INFO, \"entry point starting...\");\n }\n\n default void stop() {\n getLogger().log(Level.INFO, \"entry point stopping...\");\n }\n\n default <T> T getService(Class<T> type) {\n throw new UnsupportedOperationException(\"Empty Entry Point contains no services\");\n }\n\n default <T> boolean exports(Class<T> type) {\n return false;\n }\n\n static Callable<EntryPoint> wrap(EntryPoint entryPoint, Map<ContextEntries, Object> context) {\n return new WrappedEntryPointCallable(entryPoint, context);\n }\n\n default void run(Map<ContextEntries, Object> ctx) {}\n\n Options<?> getOptions();\n}", "protected void addEditorPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_editor_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_editor_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__EDITOR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "public Object caseDomainArtifactDefinition(DomainArtifactDefinition object) {\n\t\treturn null;\n\t}", "public static android.app.IInstantAppResolver asInterface(android.os.IBinder obj)\n {\n if ((obj==null)) {\n return null;\n }\n android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (((iin!=null)&&(iin instanceof android.app.IInstantAppResolver))) {\n return ((android.app.IInstantAppResolver)iin);\n }\n return new android.app.IInstantAppResolver.Stub.Proxy(obj);\n }", "public final EObject entryRuleEntrypoint() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleEntrypoint = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1213:2: (iv_ruleEntrypoint= ruleEntrypoint EOF )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1214:2: iv_ruleEntrypoint= ruleEntrypoint EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getEntrypointRule()); \r\n }\r\n pushFollow(FOLLOW_ruleEntrypoint_in_entryRuleEntrypoint2571);\r\n iv_ruleEntrypoint=ruleEntrypoint();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleEntrypoint; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleEntrypoint2581); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "protected void addPointReversePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Track_pointReverse_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Track_pointReverse_feature\", \"_UI_Track_type\"),\r\n\t\t\t\t OntrackPackage.Literals.TRACK__POINT_REVERSE,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t true,\r\n\t\t\t\t null,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public BundleDescriptor getReferringBundleDescriptor();", "public T caseConnector(Connector object) {\n\t\treturn null;\n\t}", "public interface FileDescriptor {\n\t/**\n\t * The mapping file name. This is its name within the archive, the\n\t * expectation being that most times this will equate to a \"classpath\n\t * lookup resource name\".\n\t *\n\t * @return The mapping file resource name.\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Retrieves access to the InputStream for the mapping file.\n\t *\n\t * @return Access to the InputStream for the mapping file.\n\t */\n\tpublic InputStream getStream();\n}", "public void testSchemaResolving()\r\n {\r\n SchemaImpl schema = new SchemaImpl(\"module\");\r\n schema.setId(\"Baz\");\r\n\r\n DefaultErrorHandler errorHandler = new DefaultErrorHandler();\r\n RegistryDefinition definition = new RegistryDefinitionImpl();\r\n\r\n ModuleDescriptor fooBar = new ModuleDescriptor(null, errorHandler);\r\n fooBar.setModuleId(\"foo.bar\");\r\n\r\n fooBar.addSchema(schema);\r\n\r\n ModuleDescriptor zipZoop = new ModuleDescriptor(null, errorHandler);\r\n zipZoop.setModuleId(\"zip.zoop\");\r\n\r\n ConfigurationPointDescriptor cpd = new ConfigurationPointDescriptor();\r\n cpd.setId(\"Zap\");\r\n cpd.setContributionsSchemaId(\"foo.bar.Baz\");\r\n\r\n zipZoop.addConfigurationPoint(cpd);\r\n\r\n XmlModuleDescriptorProcessor processor = new XmlModuleDescriptorProcessor(definition,\r\n errorHandler);\r\n processor.processModuleDescriptor(fooBar);\r\n processor.processModuleDescriptor(zipZoop);\r\n \r\n XmlExtensionResolver extensionResolver = new XmlExtensionResolver(definition, errorHandler);\r\n extensionResolver.resolveSchemas();\r\n\r\n ConfigurationPointDefinition point = definition.getConfigurationPoint(\"zip.zoop.Zap\");\r\n \r\n ConfigurationParserDefinition parserDef = point.getParser(HiveMindSchemaParser.INPUT_FORMAT_NAME);\r\n assertNotNull(parserDef);\r\n \r\n assertEquals(parserDef.getParserConstructor().getClass(), HiveMindSchemaParserConstructor.class);\r\n\r\n HiveMindSchemaParserConstructor constructor = (HiveMindSchemaParserConstructor) parserDef.getParserConstructor();\r\n assertEquals(schema, constructor.getSchema());\r\n }", "protected ComponentResolver createComponentResolver() {\n return new DefaultComponentResolver();\n }", "protected void addPublishedMp3EntryReferenceResultPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_MPublishNewMp3Step_publishedMp3EntryReferenceResult_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_MPublishNewMp3Step_publishedMp3EntryReferenceResult_feature\", \"_UI_MPublishNewMp3Step_type\"),\r\n\t\t\t\t LogicPackage.Literals.MPUBLISH_NEW_MP3_STEP__PUBLISHED_MP3_ENTRY_REFERENCE_RESULT,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t null,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "RealizationModelLocation createRealizationModelLocation();" ]
[ "0.52340066", "0.493313", "0.47993734", "0.47585264", "0.4711174", "0.4701523", "0.46937677", "0.4684465", "0.4615868", "0.4614262", "0.46108088", "0.46092778", "0.45833713", "0.45686024", "0.45611984", "0.45569822", "0.45366442", "0.4502861", "0.45027542", "0.44953704", "0.4486968", "0.44856995", "0.44854286", "0.4468023", "0.44616076", "0.44589058", "0.44461387", "0.44449311", "0.44399154", "0.44399154", "0.44399154", "0.44318017", "0.441486", "0.4395976", "0.43932328", "0.43879896", "0.43704996", "0.43661255", "0.43517265", "0.4348902", "0.4317163", "0.4315648", "0.43100882", "0.43034557", "0.42967236", "0.42893082", "0.42760324", "0.4275272", "0.4268635", "0.4267573", "0.42655796", "0.42655408", "0.42628294", "0.4262697", "0.42548284", "0.42487752", "0.42438385", "0.4240549", "0.4239785", "0.4233248", "0.4227168", "0.42122343", "0.4212041", "0.42105404", "0.42085126", "0.42075902", "0.42065784", "0.41999054", "0.4195604", "0.4195604", "0.41941872", "0.41915596", "0.41883978", "0.41876185", "0.4182299", "0.41812184", "0.41769314", "0.41769314", "0.41759753", "0.41714165", "0.41669792", "0.41528857", "0.41501695", "0.41479754", "0.41429394", "0.41336316", "0.41302645", "0.4122332", "0.41208592", "0.4116954", "0.4114851", "0.41139764", "0.410987", "0.41064784", "0.4105216", "0.41036054", "0.40998355", "0.40870428", "0.4072152", "0.4059765" ]
0.5386456
0
String path = "/home/suporte/Workspace/Teste/spyclass.jar";
public boolean contains(String path, String canonicalName) { try { File meuRecurso = new File(path); URLClassLoader child; child = new URLClassLoader( new URL[] {meuRecurso.toURI().toURL()}, JarLoad.class.getClassLoader() ); Class<?> classToLoad = Class.forName(canonicalName, true, child); if (classToLoad != null) { return false; } else { return false; } } catch (MalformedURLException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static File jarFile(String path) {\n\t\treturn FileUtils.getFile(new File(JAR_DIR + StringUtils.substringAfterLast(path, \"/\")));\n\t}", "public String getJarLocation();", "public static String getJarPath() {\n String classPath = \"/\" + JavaUtils.class.getName();\n classPath = classPath.replace(\".\", \"/\") + \".class\";\n try {\n URL url = JavaUtils.class.getResource(classPath);\n String path = URLDecoder.decode(url.getPath(), \"UTF-8\");\n path = URLDecoder.decode(new URL(path).getPath(), \"UTF-8\");\n int bang = path.indexOf(\"!\");\n if (bang >= 0) {\n path = path.substring(0, bang);\n }\n return path;\n } catch (Exception e) {\n ReportingUtils.logError(e, \"Unable to get path of jar\");\n return \"\";\n }\n }", "private static String getJarFilePath() throws URISyntaxException, UnsupportedEncodingException {\n\n\t\tFile jarFile;\n\n\t\t// if (codeSource.getLocation() != null) {\n\t\t// jarFile = new File(codeSource.getLocation().toURI());\n\t\t// } else {\n\t\tString path = ConfigurationLocator.class.getResource(ConfigurationLocator.class.getSimpleName() + \".class\")\n\t\t\t\t.getPath();\n\t\tString jarFilePath = path.substring(path.indexOf(\":\") + 1, path.indexOf(\"!\"));\n\t\tjarFilePath = URLDecoder.decode(jarFilePath, \"UTF-8\");\n\t\tjarFile = new File(jarFilePath);\n\t\t// }\n\t\treturn jarFile.getParentFile().getAbsolutePath();\n\t}", "public String getPathToJarFolder(){\n Class cls = ReadWriteFiles.class;\r\n ProtectionDomain domain = cls.getProtectionDomain();\r\n CodeSource source = domain.getCodeSource();\r\n URL url = source.getLocation();\r\n try {\r\n URI uri = url.toURI();\r\n path = uri.getPath();\r\n \r\n // get path without the jar\r\n String[] pathSplitArray = path.split(\"/\");\r\n path = \"\";\r\n for(int i = 0; i < pathSplitArray.length-1;i++){\r\n path += pathSplitArray[i] + \"/\";\r\n }\r\n \r\n return path;\r\n \r\n } catch (URISyntaxException ex) {\r\n LoggingAspect.afterThrown(ex);\r\n return null;\r\n }\r\n }", "private String jarName(){\n // determine the name of this class\n String className=\"/\"+this.getClass().getName().replace('.','/')+\".class\";\n // find out where the class is on the filesystem\n String classFile=this.getClass().getResource(className).toString();\n\n if( (classFile==null) || !(classFile.startsWith(\"jar:\")) ) return null;\n \n // trim out parts and set this to be forwardslash\n classFile=classFile.substring(5,classFile.indexOf(className));\n classFile=FilenameUtil.setForwardSlash(classFile);\n\n // chop off a little bit more\n classFile=classFile.substring(4,classFile.length()-1);\n \n return FilenameUtil.URLSpacetoSpace(classFile);\n }", "private static Path copyFileFromJar(String path) {\n try {\n Path file = Files.createTempFile(\"configme-\", \"-democonfig.yml\");\n Files.copy(TestUtils.class.getResourceAsStream(path), file, REPLACE_EXISTING);\n return file;\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n }", "protected String getJarURL(String path) throws Exception\n {\n URL url = getResource(path);\n url = JarUtils.createJarURL(url);\n return url.toString();\n }", "@Test\n void findSourceJar() {\n Class<?> klass = org.apache.commons.io.FileUtils.class;\n var codeSource = klass.getProtectionDomain().getCodeSource();\n if (codeSource != null) {\n System.out.println(codeSource.getLocation());\n }\n }", "private static void makeJar(String jarPath, String classPath) throws IOException {\n File jarFile = new File(jarPath);\n File parent = jarFile.getParentFile();\n if (parent != null) {\n parent.mkdirs();\n }\n jarFile.createNewFile();\n String newClassPath = classPath.substring(classPath.indexOf(\"tmp/\") + 4);\n FileOutputStream fout = new FileOutputStream(jarFile);\n Manifest manifest = new Manifest();\n manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, \"1.0\");\n JarOutputStream jarOut = new JarOutputStream(fout, manifest);\n jarOut.putNextEntry(new ZipEntry(newClassPath));\n FileInputStream fit = new FileInputStream(classPath);\n BufferedInputStream bis = new BufferedInputStream(fit);\n byte[] buff = new byte[10000];\n int bytesRead;\n while ((bytesRead = bis.read(buff)) != -1) {\n jarOut.write(buff, 0, bytesRead);\n }\n jarOut.closeEntry();\n jarOut.close();\n fout.close();\n }", "public String getJarName() {\r\n\t\tURL clsUrl = getClass().getResource(getClass().getSimpleName() + \".class\");\r\n\t\tif (clsUrl != null) {\r\n\t\t\ttry {\r\n\t\t\t\tjava.net.URLConnection conn = clsUrl.openConnection();\r\n\t\t\t\tif (conn instanceof java.net.JarURLConnection) {\r\n\t\t\t\t\tjava.net.JarURLConnection connection = (java.net.JarURLConnection) conn;\r\n\t\t\t\t\tString path = connection.getJarFileURL().getPath();\r\n\t\t\t\t\t// System.out.println (\"Path = \"+path);\r\n\t\t\t\t\tint index = path.lastIndexOf('/');\r\n\t\t\t\t\tif (index >= 0)\r\n\t\t\t\t\t\tpath = path.substring(index + 1);\r\n\t\t\t\t\treturn path;\r\n\t\t\t\t}\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\t\treturn null;\r\n\t}", "String getFilepath();", "public void ExtractFileFromJar()\n\t{\n\t\tString thisDir = getClass().getResource(\"\").getPath();\n\t\t\n\t\tif(thisDir.contains(\"file:\")) //Mac system path\n\t\t\tthisDir= thisDir.replace(\"file:\", \"\");\n\t\telse //Windows system path \"/C:/\", we need to get rid of the first '/'\n\t\t\tthisDir= thisDir.substring(1);\n\t\t\n\t\t//System.out.println(\"thisDir is \"+thisDir);\n\t\tString jarPath = thisDir.replace(\"!/data/\", \"\"); //Get path of jar file\n\t\tint lastSlashIndex = jarPath.lastIndexOf(\"/\");\n\t\tjarFileName = new String(jarPath.substring(lastSlashIndex+1));\n\t\tdestDir = thisDir.replace(jarFileName+\"!/data/\", \"\"); //Set destDir as the current folder in which jar file sits\n\n\t\t//Find Jar file\n\t\ttry {\n\t\t\tFile jarFile = new File(jarPath);\n\t\t\tif (jarFile.isDirectory() || !jarFile.exists()) { //If we cant find jar File in this jarPath\n\t\t\t\t//In windows it is like this \"C:/Users/Esheen/Desktop/ConnChem_1.1.0/Simulation/data/\" \n\t\t\t\tFile newJarfile = new File(jarPath);\n\t\t\t\tString parent = newJarfile.getParentFile().getParent();\n\t\t\t\tparent = parent.concat(new String(\"\\\\\"+jarFileName));\n\t\t\t\t\n\t\t\t\tjarPath= new String(parent);\n\t\t\t\t\n\t\t\t} \n\t\t\tjava.util.jar.JarFile jar = new java.util.jar.JarFile(jarPath);\n\t\t\t\n\t\t\t//Unzip database from jar file\n\t\t\tZipEntry entry = jar.getEntry(\"data/chemdb\");\n\t\t\tFile outputFile = new File(destDir, dbFileName);\n\t\t\t\n\t\t\t\tif (entry.isDirectory()) { // if its a directory, create it\n\t\t\t\t\toutputFile.mkdir();\n\t\t\t\t}\n\t\t\t\tInputStream in = jar.getInputStream(entry);\n\t\t\t\tFileOutputStream fos = new java.io.FileOutputStream(outputFile);\n\t\t\t\twhile (in.available() > 0) { // write contents of 'is' to 'fos'\n\t\t\t\t\tfos.write(in.read());\n\t\t\t\t}\n\t\t\t\tfos.close();\n\t\t\t\tin.close();\n\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void path(String path);", "void path(String path);", "public String getClassPath();", "protected Vector getTestSuiteClassPath(String jarPath) {\n Vector result = new Vector();\n if (useOurAgent) {\n result.add(new File(\"javatest-agent/j2meclasses\").getAbsolutePath());\n } else {\n result.add(tckPath + \"lib/agent.jar\");\n result.add(tckPath + \"lib/client.jar\");\n }\n result.add(getHttpClientPath());\n result.add(jarPath);\n return result;\n }", "public void addScriptPath(String path) throws IOException {\r\n File file = new File(path);\r\n if (file.isDirectory()) {\r\n loader = new DirectoryScriptLoader(loader, file);\r\n } else if (file.isFile()) {\r\n String lowercase = path.toLowerCase();\r\n if (lowercase.endsWith(\".jar\") || lowercase.endsWith(\".zip\")) \r\n loader = new JarScriptLoader(loader, file);\r\n } else {\r\n throw new IOException(\"Cannot add scriptpath : \"+path);\r\n }\r\n }", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "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 String getClassName(String path);", "public static File getJarFile(JcePolicy jcePolicy) {\n\t\tString fileSeperator = System.getProperty(\"file.separator\");\n\t\tString javaHome = System.getProperty(\"java.home\");\n\t\tFile libSecurityFile = new File(javaHome, \"lib\" + fileSeperator + \"security\");\n\n\t\treturn new File(libSecurityFile, jcePolicy.jar());\n\t}", "public static File getJarPath() throws URISyntaxException {\n\t\tFile jarPath = new File(Parser.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());\n\t\treturn jarPath.getParentFile();\n\t}", "public ClassPath getClassPath();", "public static File findJKindJar() {\n\n\t\tFile jar = findJKindJar(System.getenv(\"JKIND_HOME\"));\n\t\tif (jar != null) {\n\t\t\treturn jar;\n\t\t}\n\n\t\tjar = findJKindJar(System.getenv(\"PATH\"));\n\t\tif (jar != null) {\n\t\t\treturn jar;\n\t\t}\n\n\t\tthrow new JKindException(\"Unable to find jkind.jar in JKIND_HOME or on system PATH\");\n\t}", "public String getPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "String getExternalPath(String path);", "private static String open(@NonNull String path) throws Exception {\n ClassLoader loader = ClassLoader.getSystemClassLoader();\n InputStream stream = loader.getResourceAsStream(path);\n final StringBuilder stringBuilder = new StringBuilder();\n int i;\n byte[] b = new byte[4096];\n while ((i = stream.read(b)) != -1) {\n stringBuilder.append(new String(b, 0, i));\n }\n return stringBuilder.toString();\n }", "java.lang.String getOutputjar();", "public static String getAppJarName() {\n try {\n String r = (String)Class.forName(\"hr.restart.util.IntParam\")\n .getMethod(\"getTag\", new Class[] {String.class})\n .invoke(null, new Object[] {\"appjarname\"});\n System.out.println(\"appjarname = \"+r);\n return r.equals(\"\")?\"ra-spa.jar\":r;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"ra-spa.jar\";\n }", "private String getJarSimpleName( String jarFullPath ) {\n\n String jarName = jarFullPath.substring(jarFullPath.lastIndexOf('/') + 1);\n boolean isSourceFile = false;\n\n String pattern = \"(.+?)(-\\\\d)(.)\"; // we get only jar name without version\n Pattern p = Pattern.compile(pattern);\n Matcher m = p.matcher(jarName);\n\n if (!StringUtils.isNullOrEmpty(jarName)\n && jarName.substring(0, jarName.length() - 4).endsWith(\"sources\")) {\n isSourceFile = true;\n }\n if (m.find()) {\n jarName = m.group(1);\n } else {\n if (jarName.endsWith(\".jar\")) {\n //here we will cut last 4 characters -'.jar'\n jarName = jarName.substring(0, jarName.length() - 4);\n }\n }\n if (isSourceFile)\n return jarName + \"-sources\";\n\n return jarName;\n }", "public String ReadFile_FromClassPath(String sFileName) {\n String stemp = null;\n\n try {\n InputStream is = getClass().getClassLoader().getResourceAsStream(sFileName);\n stemp = getStringFromInputStream(is);\n\n } catch (Exception e) {\n stemp = null;\n throw new Exception(\"ReadFile_FromClassPath : \" + e.toString());\n } finally {\n return stemp;\n }\n }", "@Test\n\tpublic void test(){\n\t\tFile srcFile = new File(\"E:\\\\Workspaces\\\\MyPro\\\\ssh\\\\WebRoot\\\\products\\\\2\\\\男鞋\");\n//\t\tSystem.out.println(ss);\n\t\tthis.getAllJavaFilePaths(srcFile);\n\t}", "public static Path getFile(final String path) throws URISyntaxException {\n final URL resource = classLoader.getResource(path);\n checkIfFound(resource, path);\n final URI uri = resource.toURI();\n checkIfFound(uri, path);\n File file = new File(uri);\n checkIfFound(file, path);\n return file.toPath();\n }", "public static void addPath(String s) throws Exception {\n File f = new File(s);\n URI u = f.toURI();\n URLClassLoader urlClassLoader = (URLClassLoader) ClassLoader.getSystemClassLoader();\n Class<URLClassLoader> urlClass = URLClassLoader.class;\n Method method = urlClass.getDeclaredMethod(\"addURL\", new Class[]{URL.class});\n method.setAccessible(true);\n method.invoke(urlClassLoader, new Object[]{u.toURL()});\n }", "public void testGetClassPath() {\n assertEquals(mb.getClassPath(), System.getProperty(\"java.class.path\"));\n }", "private File getClassFile(String name) {\n File file = new File(\"/Users/dingchenchen/Downloads/Test.class\");\n return file;\n }", "public static File getTestFile( String path )\r\n {\r\n return new File( getBasedir(), path );\r\n }", "private static URL[] findJARs() {\n\tFilenameFilter filter = new FilenameFilter() {\n\t\tpublic boolean accept(File dir, String name) {\n\t\t\tString lcname = name.toLowerCase();\n//System.out.println(lcname+\" => \"+(lcname.endsWith(\".jar\") && !lcname.startsWith(\"multivalent\")));\n\t\t\treturn lcname.endsWith(\".jar\") && !lcname.startsWith(\"multivalent\")/*no snapshots*/ && new File(dir, name).canRead();\n\t\t}\n\t};\n\n\t// look for JARs in same directory (or, during development, in c:/temp)\n//\tFile dir;\n\tString jar = URIs.decode/*in case space in path*/(Multivalent.class.getResource(\"Multivalent.class\").toString());\n//System.out.println(\"Bootstrap res = \"+jar);\n\tString top;\n\tif (jar.startsWith(\"jar:\")) { // deployment: e.g., \"jar:file:/C:/temp/Multivalent20011127.jar!/multivalent/Multivalent.class\"\n\t\tjar = jar.substring(\"jar:file:\".length(), jar.indexOf('!'));\n\t\ttop = jar.substring(0, jar.lastIndexOf('/')+1);\n\t//} else if (new File(\"/c:/temp\").exists()) { // my development => CLASSPATH\n\t//\ttop = \"/c:/temp\";\n\t\t// CLASSPATH is selfsame JAR -- ignore as ClassLoader gets anyhow\n\n\t} else { // others' development: e.g., \"file:/D:/prj/Multivalent/www/jar/multivalent/Multivalent.class\"\n\t\tint inx = jar.lastIndexOf('/'); // chop \"Multivalent.class\"\n\t\tinx = jar.lastIndexOf('/', inx-1); // chop \"multivalent\"\n\n\t\tjar = jar.substring(\"file:\".length(), inx+1);\n//System.out.println(\"jar = \"+jar);\n\t\ttop = jar;\n\t}\n\n\n\tList urls = new ArrayList(20);\n\n\tif (standalone_) System.out.println(\"Searching for JARs in \"+top);\n\ttry {\n\t\tFile[] f = new File(top).listFiles(filter);\n\t\tfor (int i=0,imax=f.length; i<imax; i++) {\n\t\t\turls.add(f[i].toURI().toURL());\n\t\t\tif (standalone_) System.out.println(\"\\t\"+f[i]);\n\t\t}\n\t} catch (MalformedURLException canthappen) { System.err.println(canthappen/*f[i]*/); System.err.println(\"Move to different directory\"); }\n\n\treturn (URL[])urls.toArray(new URL[0]);\n }", "private static String nativeLocationInJar() {\n\t\tString OS = System.getProperty(\"os.name\");\n\t\tString arch = System.getProperty(\"os.arch\");\n\t\tlog.info(\"Found OS={}, arch={}\", OS, arch);\n\t\tString key = OS+\"_\"+arch;\n\t\tswitch(key)\n\t\t{\n\t\tcase \"Linux_amd64\":\n\t\t\treturn \"native/MANIFEST.Linux_amd64\";\n\t\tcase \"Windows 7_amd64\":\n\t\tcase \"Windows 8_amd64\":\n\t\tcase \"Windows 8.1_amd64\":\n\t\t\treturn \"native/MANIFEST.Windows_amd64\";\n\t\t}\n\t\tlog.error(\"No matching native library for {}\", key);\n\t\tthrow new Error(\"No matching native library for \"+key);\n\t}", "public String getResourcePath();", "@Test\n\tpublic void testInvalidJar() {\n\t\tString invalidJar = _TestSuite.TYPE_FINDER_TEST_DIR.concat(\"jarThatDoesNotExist.jar\");\n\t\tString[] args = { invalidJar };\n\t\tTypeFinder.main(args);\n\t\tString expected = TypeFinder.INVALID_PATH_ERROR_MESSAGE + FileManager.lineSeparator;\n\t\tString results = errContent.toString();\n\t\tassertEquals(expected, results);\n\t}", "public static void setFromJar() \r\n\t{\r\n\t\tfromJar = true;\r\n\t}", "public void testAddJarToList() throws Exception {\n\t\tString runnerOutDir = envController.getRunnerOutDir();\n\t\tFile jarFile = new File(jarFilePath + File.separatorChar + jarFileName);\n\t\tjarFile.createNewFile();\n\t\treport.report(\"DEBUG >>> created the new file \" + jarFile.getAbsolutePath());\n\t\tFileUtils.copyFile(jarFile.getAbsolutePath(), runnerOutDir + \"runnerout\" + File.separatorChar + \"runner\"\n\t\t\t\t+ File.separatorChar + \"lib\" + File.separatorChar + jarFileName);\n\t\treport.report(\"DEBUG >>> copied the new jar file to \" + runnerOutDir + \"runnerout\" + File.separatorChar\n\t\t\t\t+ \"runner\" + File.separatorChar + \"lib\" + File.separatorChar + jarFileName);\n\t\tjsystem.launch();\n\t\tString txt = jsystem.openJarList();\n\t\treport.report(\"DEBUG >>> the jar list is: \" + txt + \"\\n\\nlooking for \" + jarFileName + \" in it!!!\");\n\t\tvalidateJarList(txt, 4);\n\t}", "public static void startAI(KimbleClientAI client, String dir, String jarName) throws UnsupportedEncodingException, IOException {\n// ProcessBuilder pb = new ProcessBuilder(\"java\", \"-jar\", dir + jarName, \"serverstart\");\n ProcessBuilder pb = new ProcessBuilder(\"java\", \"-cp\", dir + jarName, \"kimbleai.TournamentMain\", \"serverstart\");\n pb.directory(new File(dir));\n startProcess(pb);\n }", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public static void startJar(String src, String... parms) throws Exception {\n final String command[] = new String[3 + parms.length];\n command[0] = isSoWindows() ? \"java.exe\" : \"java\";\n command[1] = \"-jar\";\n command[2] = src;\n\n for (int i = 3; i < command.length; i++) {\n command[i] = parms[i - 3];\n }\n\n runProcessInSo(command);\n\n }", "public void setPath(String path)\n {\n this.path = path;\n }", "public File findJarFileForClass(String type, String name) throws ClassNotFoundException {\n // On cherche la classe demandee parmi celles repertoriees lors du lancement de Kalimucho\n // Si on ne la trouve pas on recree la liste (cas ou le fichier jar aurait ete ajoute apres le demarrage)\n // Si on la trouve on revoie le fichier jar la contenant sinon on leve une exception\n int index=0;\n boolean trouve = false;\n while ((index<types.length) && (!trouve)) { // recherche du type\n if (type.equals(types[index])) trouve = true;\n else index++;\n }\n if (!trouve) throw new ClassNotFoundException(); // type introuvable\n else { // le type est connu on cherche la classe\n int essais = 0;\n while (essais != 2) {\n String fich = classesDisponibles[index].get(name);\n if (fich != null) { // classe repertoriee dans la liste\n essais = 2; // on renvoie le fichier\n return new File(Parameters.COMPONENTS_REPOSITORY+\"/\"+type+\"/\"+fich);\n }\n else { // la classe n'est pas dans la liste\n essais++;\n if (essais == 1) { // si on ne l'a pas deja fait on recree la liste a partir du depot\n rescanRepository();\n }\n }\n }\n throw new ClassNotFoundException(); // Classe introuvable meme apres avoir recree la liste\n }\n }", "private String getJarName(final URL url) {\n\n String name = null;\n\n final String path = url.getPath();\n final int end = path.indexOf(Constants.JAR_EXT);\n if (end != -1) {\n final int start = path.lastIndexOf('/', end);\n name = path.substring(start + 1, end + 4);\n } else if (this.isScanAllDirectories()) {\n final int start = path.lastIndexOf('/');\n name = path.substring(start + 1);\n }\n\n return name;\n }", "private static boolean isJar(){\n\t\tString str = IOHandler.class.getResource(\"IOHandler.class\").toString();\n\t\treturn str.toLowerCase().startsWith(\"jar\") && JAROVERRIDE;\n\t}", "private static void findPath()\r\n {\r\n String temp_path = System.getProperty(\"user.dir\");\r\n char last = temp_path.charAt(temp_path.length() - 1);\r\n if(last == 'g')\r\n {\r\n path = \".\";\r\n }\r\n else\r\n {\r\n path = \"./bag\";\r\n }\r\n \r\n }", "public String getLocationPath();", "public void setJavaPath(String path) {\n _javaPath = path;\n }", "public static boolean isRunningAsJar(final String classURI) {\n\t\treturn classURI.startsWith(\"jar:\");\n\t}", "public void testJarInList() throws Exception {\n\t\tjsystem.launch();\n\t\tScenarioUtils.createAndCleanScenario(jsystem, jsystem.getCurrentScenario());\n\t\tString txt = jsystem.jarInList(jarToFind);\n\t\tvalidateJarList(txt, 3);\n\t}", "public URL getResourceFile(String path){\n\n ClassLoader classLoader = getClass().getClassLoader();\n return classLoader.getResource(path);\n }", "public static String jarPrefix() {\n return File.separator + \"$alloy4$\" + File.separator;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void addClassPath(String path) {\r\n throw new RuntimeException(\"Cannot add classpath : \"+path);\r\n }", "public static URL loadImage(String path) {\r\n Utilities tmp = new Utilities();\r\n ClassLoader classLoader = tmp.getClass().getClassLoader();\r\n return classLoader.getResource(path);\r\n }", "com.google.devtools.kythe.proto.Java.JarDetails.Jar getJar(int index);", "public Path mainJar() {\n return mainJar;\n }", "private String getPathToJars(HttpServletRequest request)\n {\n String codebaseParam = getRequestParam(request, CODEBASE, null);\n if ((codebaseParam == null) || (codebaseParam.length() == 0))\n return \"\";\n String pathToJars = request.getRequestURI();\n String path = request.getPathInfo();\n if (pathToJars.endsWith(path))\n pathToJars = pathToJars.substring(0, pathToJars.length() - path.length() + 1); // Keep the trailing '/'\n int idx = pathToJars.indexOf(codebaseParam);\n if (idx != -1)\n pathToJars = pathToJars.substring(idx + 1);\n return pathToJars;\n }", "public void setPath(String path) {\r\n this.path = path;\r\n }", "String resolveClassPath(String classPath);", "public void addFakeClassPathToRead(String path) {\n StringTokenizer stoken = new StringTokenizer(path, System.getProperty(\"path.separator\") );\n while (stoken.hasMoreTokens()) {\n filesToReadVec.addElement(new File((String)stoken.nextElement()));\n }\n }", "void implementJar(Class<?> token, Path jarFile) throws ImplerException;", "private void addClasspath(String path)\n {\n if (classpath == null)\n {\n classpath = path;\n }\n else\n {\n classpath += File.pathSeparator + path;\n }\n }", "public void salvaPartita(String file) {\n\r\n }", "public void setPath(String path) {\r\n\t\tthis.path = path;\r\n\t}", "public void setPath(String path) {\r\n\t\tthis.path = path;\r\n\t}", "public void setPath(String path) {\r\n\t\tthis.path = path;\r\n\t}", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path);", "public static List<String> dir(File jarFile, String path) {\n final List<String> ls = new ArrayList<String>();\n path = trimPath(path);\n try {\n JarFile jar = new JarFile(jarFile);\n\n Enumeration<JarEntry> entries = jar.entries();\n while (entries.hasMoreElements()) {\n JarEntry entry = entries.nextElement();\n if (!entry.isDirectory()) {\n String name = entry.getName();\n if (name.startsWith(path + \"/\")) {\n ls.add(name);\n }\n }\n }\n\n jar.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return ls;\n }", "public void setPath(String path) {\n\n this.path = path;\n }", "private void DissasembleActionPerformed(java.awt.event.ActionEvent evt) {\n if (disf==null)\n disf = new DissasembleFrame();\n \n if (disf!=null)\n {\n String jar_path = \"\";\n String class_path = filePath;\n if (filePath.contains(PathSeparator))\n {\n String[] splited = filePath.split(PathSeparator);\n jar_path = splited[0];\n if (splited.length>1)\n class_path = splited[1];\n }\n disf.SetJarPath(jar_path);\n disf.SetClassPath(class_path);\n disf.setVisible(true);\n }\n\n }", "Path getMainCatalogueFilePath();", "String getFilePath();", "static boolean isValidJar(Path path)\n {\n try (JarFile jarFile = new JarFile(path.toFile()))\n {\n // Try to read a single byte from each entry. This may cause the\n // java.util.zip.ZipException: invalid LOC header (bad signature)\n // that indicates that the JAR is broken.\n Enumeration<JarEntry> entries = jarFile.entries();\n while (entries.hasMoreElements())\n {\n JarEntry entry = entries.nextElement();\n InputStream inputStream = jarFile.getInputStream(entry);\n inputStream.read();\n }\n return true;\n }\n catch (IOException e)\n {\n //e.printStackTrace();\n return false;\n }\n }", "protected static void instrumentJarFile(String pathToFile) throws IOException {\n File jarFile = new File(pathToFile);\n // Use tmp file for output (in the same directory).\n File newFile = File.createTempFile(\"any\", \".jar\", jarFile.getParentFile());\n ZipInputStream zis = null;\n ZipOutputStream zos = null;\n try {\n zis = new ZipInputStream(new FileInputStream(jarFile));\n zos = new ZipOutputStream(new FileOutputStream(newFile));\n for (ZipEntry entry = zis.getNextEntry(); entry != null; entry = zis.getNextEntry()) {\n String name = entry.getName();\n zos.putNextEntry(new ZipEntry(name));\n if (name.endsWith(\".class\")) {\n // We instrument classfiles and then write them to\n // new jar.\n byte[] classfileBuffer = FileUtil.loadBytes(zis, false);\n byte[] newClassfileBuffer = instrumentClassFile(classfileBuffer);\n zos.write(newClassfileBuffer);\n } else {\n int data;\n while ((data = zis.read()) != -1) {\n zos.write(data);\n }\n }\n zos.closeEntry();\n }\n } finally {\n FileUtil.closeAndIgnoreExceptions(zis);\n FileUtil.closeAndIgnoreExceptions(zos);\n }\n\n // Move new jar to old jar.\n // Files.move(newFile, jarFile, StandardCopyOption.REPLACE_EXISTING);\n FileUtil.copyBytes(newFile, jarFile);\n newFile.delete();\n }", "private String loadAsString(final String path) {\n try (InputStream inputStream = Thread.currentThread()\n .getContextClassLoader().getResourceAsStream(path)) {\n return new Scanner(inputStream).useDelimiter(\"\\\\A\").next();\n } catch (IOException e) {\n throw new RuntimeException(\"Unable to close input stream.\", e);\n }\n }", "public String saveToClasspath(FormFile file, String newName, String path) {\n\t\t\n\t\tString webroot=\"/WEB-INF/classes/\";\n\t\tString filePath=\"file:/\";\n\t\tString absPath=LoadServiceImpl.class.getResource(\"\").toString();\n\t\tString packagePath=LoadServiceImpl.class.getPackage().getName();\n\t\tpackagePath=packagePath.replace(\".\",\"/\");\n\t\twebroot=webroot+packagePath+\"/\";\n\t\tabsPath=absPath.replaceFirst(filePath,\"\");\n\t\tabsPath=absPath.replaceAll(webroot,path);\n\t\treturn saveToLocal(file,newName,absPath);\n\t}", "protected String readTestFile(String path) throws IOException {\n return FileUtils.readClasspathFile(path);\n }", "public static File extractTmpFileFromJar(String path, boolean deleteOnExit) throws IOException{\n \t\n // Prepare temporary file\n File temp = File.createTempFile(\"abcd\", \"efgh\");\n temp.delete();\n temp = new File(temp.getParentFile().getAbsolutePath() + path);\n if(deleteOnExit) temp.deleteOnExit();\n if(temp.exists()) return temp;\n \n // Prepare buffer for data copying\n byte[] buffer = new byte[1024];\n int readBytes;\n \n // Open and check input stream\n InputStream is = NativeUtils.class.getResourceAsStream(path);\n if (is == null) {\n throw new FileNotFoundException(\"File \" + path + \" was not found inside JAR.\");\n }\n \n // Open output stream and copy data between source file in JAR and the temporary file\n OutputStream os = new FileOutputStream(temp);\n try {\n while ((readBytes = is.read(buffer)) != -1) {\n os.write(buffer, 0, readBytes);\n }\n } finally {\n // If read/write fails, close streams safely before throwing an exception\n os.close();\n is.close();\n }\n \n return temp;\n }", "private static String getDBPath() {\r\n\t\ttry {\r\n\t\t\tString path = Consts.class.getProtectionDomain().getCodeSource().getLocation().getPath();\r\n\t\t\tString decoded = URLDecoder.decode(path, \"UTF-8\");\r\n\t\t\tif (decoded.contains(\".jar\")) {\r\n\t\t\t\tdecoded = decoded.substring(0, decoded.lastIndexOf('/'));\r\n\t\t\t\treturn decoded + \"/database/ManageElectDB.accdb\";\r\n\t\t\t} else {\r\n\t\t\t\tdecoded = decoded.substring(0, decoded.lastIndexOf(\"bin/\"));\r\n\t\t\t\treturn decoded + \"src/entity/ManageElectDB.accdb\";\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String getSystemClassPath();", "Path getFilePath();" ]
[ "0.67052054", "0.63835585", "0.629565", "0.61885506", "0.60159326", "0.5846819", "0.5815674", "0.58081406", "0.57265055", "0.5621626", "0.5532876", "0.5500779", "0.54962176", "0.5480171", "0.5480171", "0.5459465", "0.5430465", "0.5409352", "0.5359796", "0.5356714", "0.53403735", "0.5325359", "0.52386504", "0.5220429", "0.5211532", "0.5201231", "0.5180191", "0.516778", "0.5162571", "0.5156206", "0.5151803", "0.51484215", "0.5092818", "0.5091702", "0.50550926", "0.505494", "0.50336486", "0.5027305", "0.5010441", "0.5008686", "0.49817225", "0.4978903", "0.4974854", "0.49748325", "0.49632052", "0.4957389", "0.4957389", "0.4957389", "0.4957389", "0.4957389", "0.49560535", "0.4940217", "0.49399173", "0.4937105", "0.4933249", "0.49253875", "0.49123454", "0.49104494", "0.49007943", "0.48998514", "0.48942024", "0.48886454", "0.48869556", "0.48844582", "0.48772138", "0.4875538", "0.48677474", "0.4854329", "0.48454687", "0.4830567", "0.48283678", "0.48243576", "0.48210672", "0.481907", "0.48112363", "0.48112363", "0.48112363", "0.48055822", "0.48055822", "0.48055822", "0.48055822", "0.48055822", "0.48055822", "0.48055822", "0.48055822", "0.48055822", "0.4798408", "0.47910395", "0.47908378", "0.47906795", "0.47898453", "0.47884548", "0.47883093", "0.47816926", "0.4776403", "0.47748008", "0.47630757", "0.47489884", "0.47450203", "0.4743357", "0.4737042" ]
0.0
-1
Repeat 3 times to ensure command send successfully
public String sendCommand(int id, String command){ int status = ts.sendCmd(id, command,3); String rback = "SUCCESS"; if(status != 0){ String error = ts.getErrorString(status); log.info("sendCmd failed with error " + error); rback = error; } return rback; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean sendTryTwice(byte[] head, byte[] chunk) {\n for (int action = 0; action < 2; action++) {\n if (send0(head, chunk)) {\n return true;\n }\n }\n return false;\n }", "public boolean send() {\n\n int timeout = 15000; // 10 secondi in millisecondi\n // questo valore n on serve a nulla. Vedi anche\n // il timeout della classe CommandThread. C'è un doppio timeout, questo dovrebbe esser più\n // grande e non scattare mai\n\n commandThread = new CommandThread(this);\n Thread thread = new Thread(commandThread, \"commandThread\" + uuid);\n thread.start();\n\n // il thread esegue la chiamata alla shield webduino ed aspetta una risposta (join) dal thead per x secondi\n try {\n thread.join(timeout); // timeout è il timeout di attesa fine thread in millisecondi\n } catch (InterruptedException e) {\n\n e.printStackTrace();\n }\n\n if (commandThread.commandSuccess == false)\n LOGGER.info(\"TIMEOUT - Command response not received: \" + uuid);\n\n commandThread.diconnect();\n commandThread.execute = false;\n\n this.success = commandThread.commandSuccess;\n this.result = commandThread.commandResult;\n\n if (commandDataLog != null) {\n\n commandDataLog.writelog(\"send\", this);\n }\n return commandThread.commandSuccess;\n }", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void sendCommand(CommandItem command) {\n sendCommand(command.data, command.advTimeout);\n }", "Message sendAndWait();", "public void Send3bytes(int comm, int data, int more) { // in {FF} Arduino\r\n int info = data & 127;\r\n boolean logy = ((SpokeHard & 0xFFFF) < SpeakHard)\r\n || LogAllPcnts && (comm == REPORT_PULSECOUNT); // = 0xA0;\r\n byte[] msg = new byte[3];\r\n SpokeHard++;\r\n if (more < 0){\r\n more = (data >> 7) & 127;\r\n if (logy) System.out.println(\"F%%F/Send3by \" + comm + \" \" + data\r\n + \" .. => \" + info + \" \" + more + FormatMillis(\" @ \", 0x80000000));\r\n data = info;\r\n } else if (logy){\r\n System.out.println(\"F%%F/Send3by \" + comm + \" \" + data + \" \" + more +\r\n FormatMillis(\" @ \", 0x80000000));\r\n }\r\n if (comm < 128){\r\n return;\r\n } // not a valid command byte..\r\n if (comm > 255){\r\n return;\r\n }\r\n more = more & 127;\r\n data = info;\r\n msg[0] = (byte) (comm);\r\n msg[1] = (byte) (data);\r\n msg[2] = (byte) (more);\r\n try {\r\n surrealPort.writeBytes(msg);\r\n if (DoMore != null) DoMore.SendBytes(msg, 3);\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n }", "void check_and_send(){\r\n\t\twhile(not_ack_yet <= WINDOW_SIZE){\r\n\t\t\tif(covered_datagrams >= total_datagrams)\r\n\t\t\t\treturn;\r\n\t\t\t//send one data more\r\n\t\t\tcovered_datagrams++;\r\n\t\t\tbyte[] data_to_send = Helper.get_bytes(data_send,(covered_datagrams-1)*BLOCK_SIZE,BLOCK_SIZE);\r\n\t\t\tDataDatagram send = new DataDatagram((short)the_connection.session_num,\r\n\t\t\t\t\t(short)(covered_datagrams),data_to_send,the_connection);\r\n\t\t\tsend.send_datagram();\r\n\t\t\tput_and_set_timer(send);\r\n\t\t}\r\n\t}", "protected void sendLoginSequence(){\n sendCommand(getRequestedUsername());\n if (getPassword() != null)\n sendCommand(getPassword(), false);\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tStaticString.information = null;// 判断回复信息之间清空之前信息\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\t\tSocketConnet.getInstance().communication(888,new String[]{mLogsIndexNumber});\r\n\t\t\t\tif (ReplyParser.waitReply()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void sendCommand(List<ApduCommand> commands, int index, AsyncResultCallback<byte[]> resultCallback, Handler handler) {\n ApduCommand command = commands.get(index);\n TransmitApduLogicalChannelInvocation transmitApduLogicalChannelInvocation = this.mTransmitApdu;\n final ApduCommand apduCommand = command;\n final AsyncResultCallback<byte[]> asyncResultCallback = resultCallback;\n final Handler handler2 = handler;\n final int i = index;\n final List<ApduCommand> list = commands;\n AnonymousClass2 r1 = new AsyncResultCallback<IccIoResult>() {\n public void onResult(IccIoResult response) {\n ApduSender.this.getCompleteResponse(apduCommand.channel, response, null, new AsyncResultCallback<IccIoResult>() {\n public void onResult(IccIoResult fullResponse) {\n ApduSender.logv(\"Full APDU response: \" + fullResponse);\n int status = (fullResponse.sw1 << 8) | fullResponse.sw2;\n if (status != ApduSender.STATUS_NO_ERROR) {\n ApduSender.this.closeAndReturn(apduCommand.channel, null, new ApduException(status), asyncResultCallback, handler2);\n } else if (i == list.size() - 1) {\n ApduSender.this.closeAndReturn(apduCommand.channel, fullResponse.payload, null, asyncResultCallback, handler2);\n } else {\n ApduSender.this.sendCommand(list, i + 1, asyncResultCallback, handler2);\n }\n }\n }, handler2);\n }\n };\n transmitApduLogicalChannelInvocation.invoke(command, r1, handler);\n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\tsender.send();\n\t\tsender.send(123);\n\t}", "protected SendSuccessOrFailure() { \n addSender(SUCCESS, new SendSuccess());\n addSender(FAILURE, new SendFailure());\n \n buildFSM();\n }", "private void performHandShake() {\n try {\n boolean OK = false;\n // String rsp= new String( this.defaultComTool.WriteAndRead((String) command.get(\"restore_defaults\")));\n // while(!OK) { }\n this.defaultComTool.WriteAndRead((String) command.get(\"disable_echo\"));\n this.defaultComTool.WriteAndRead((String) command.get(\"disable_linefeed\"));\n this.defaultComTool.WriteAndRead((String) command.get(\"disable_headers\"));\n this.defaultComTool.WriteAndRead((String) command.get(\"disable_spaces\"));\n this.defaultComTool.WriteAndRead((String) command.get(\"protocol auto set\"));\n Thread.sleep(3000);\n\n this.CheckRequiredCommands_Availability(FIRSTLEVEL_CHECK);\n //Thread.sleep(2000);\n\n this.CheckRequiredCommands_Availability(SECONDLEVEL_CHECK);\n for (int i = 1; i < 6; i++) {\n switch (i) {\n case 1:\n if (av_commands[i] == false) {\n Kernel.interfc.sim.log.append(\"WARNING: RPM Reading is NOT SUPPORTED\\n APP forcestopped!!\\n\");\n synchronized (this) {\n Kernel.forcedstopped = true;\n\n }\n\n }\n break;\n case 2:\n if (av_commands[i] == false) {\n Kernel.interfc.sim.log.append(\"WARNING: SPEED Reading is NOT SUPPORTED\\n APP forcestopped!!\\n\");\n synchronized (this) {\n Kernel.forcedstopped = true;\n\n }\n\n }\n break;\n case 3:\n if (av_commands[i] == false) {\n Kernel.interfc.sim.log.append(\"WARNING: COOLANT TEMP Reading is NOT SUPPORTED\\n APP forcestopped!!\\n\");\n synchronized (this) {\n Kernel.forcedstopped = true;\n\n }\n\n }\n break;\n case 4:\n if (av_commands[i] == false) {\n int arbFuel;\n Random rnd = new Random();\n arbFuel = rnd.nextInt(100) + 1;\n Kernel.interfc.sim.log.append(\"WARNING: FUEL LVL Reading is NOT SUPPORTED\\n Arbitrary value (\" + arbFuel + \") set!! \\n\");\n\n }\n break;\n case 5:\n if (av_commands[i] == false) {\n int arbCheck;\n Random rnd = new Random();\n arbCheck = rnd.nextInt(2);\n Kernel.interfc.sim.log.append(\"WARNING: CheckEngine Light Reading is NOT SUPPORTED\\n Arbitrary value (\" + arbCheck + \") set!! \\n\");\n\n }\n break;\n\n }\n }\n {\n Kernel.interfc.sim.log.append(\"HANDSHAKE PERFORMED...Awaiting for SelfTest\\n\");\n\n }\n\n } catch (Exception e) {\n System.out.println(\"PERFORM HANDSHAKE:\" + e.getMessage() + \" \" + e.getLocalizedMessage());\n }\n }", "@Override\n\tpublic void completed(Void arg0, Void arg1) {\n\t\tif(this.count < max){\n\t\t\tthis.count += 1;\n\t\t\tString msg = \"[\"+client.name+\"] hello this my \"+count+\"rd mssage-\"+System.currentTimeMillis();\n\t\t\tclient.writeProtocolMessage(msg,this);\n\t\t}\n\t}", "void sendRetryMessage(int retryNo);", "public void sendCommand(Command cmd);", "@Override\n\tpublic void completed(Void arg0, Void arg1) {\n\t\tif(this.count < max){\n\t\t\tthis.count += 1;\n\t\t\tString msg = \"[\"+client.name+\"] hello this my \"+count+\"rd mssage\";\n\t\t\tclient.writeMessage(msg,this);\n\t\t}\n\t}", "protected void waitUntilCommandFinished() {\n }", "private void sendCommand(BaseCommand<?> command, int maxSendAttempts) {\n\t\tfor (Entry entry : EntryDispatcher.toEntries(command))\n\t\t\tsendEntry(entry, maxSendAttempts);\n\t}", "private boolean sendAndWait(Message m){\r\n\t\tif (!sendMessage(m))\r\n\t\t\treturn false;\r\n\t\t// Wait for the reply\r\n\t\twhile(!messageList.containsKey(m.get(\"id\"))) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t}\r\n\r\n\t\t\t// Quit if the game window has closed\r\n\t\t\tif (!GameState.getRunningState()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public void ack() {\n //disable current awaiting handler\n testFuture.cancel(false);\n //reset number of tryies;\n tryCount = 0;\n //shcedule next ping\n testFuture = mtpTimer.schedule(this, Mtp3.TIMEOUT_T2_SLTM, TimeUnit.SECONDS);\n if (logger.isDebugEnabled()) {\n \tlogger.debug(String.format(\"(%s) Test message acknowledged, Link test passed\", link.name));\n }\n }", "@Override\n public void run() {\n int time = 59;\n while (time >= -1) {\n try {\n Message message = new Message();\n message.what = AppConfig.CHECKCODE;\n message.obj = time;\n handler.sendMessage(message);\n Thread.sleep(1000);\n time--;\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "public void sendLog() {\n\t\tcommon.waitFor(5000);\n\t\tcommon.isElementDiplayed(sendButton);\n\t\tsendButton.click();\n\t\tcommon.isElementDiplayed(sucessMessage);\n\t\tsendButton.click();\n\n\t}", "public void Transaction_Phase_Two_Remainder() {\n executeController.execute(\n new Thread(() -> {\n try {\n System.out.println(\"Sending remainder to participant\");\n writer.println(\"REMAINDER: Participant is required to send DONE\");\n reader.readLine();\n sent_done = true;\n } catch (IOException ignored) {\n }\n }),\n TIMEOUT_PERIOD,\n 2, this\n );\n }", "int send(final Command command) throws ZigBeeException;", "private static void ShortPauseBetweenOScommands(int commandCount) {\n\t\tif (commandCount > 1) {\n\t\t\tSafeSleep.sleep(100L);\n\t\t}\n\t}", "private void send(String[] inputData)\n\t{\n\t\tDatagramSocket aSocket = null;\n\t\tString address = inputData[0];\n\t\tint port = Integer.parseInt(inputData[1]);\n\t\tint tryCount = 3;\n\t\tint messageCount = inputData.length-2;\n\n\t\tfor(int i = 2; i < inputData.length ; i++)\n\t\t{\n\t\t\tSystem.out.println(\"\\nSending message \" + (i-1) + \".\" );\n\n\t\t\tString message = inputData[i];\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\taSocket = new DatagramSocket();\n\t\t\t\tbyte[] m = message.getBytes();\n\t\t\t\tInetAddress aHost = InetAddress.getByName(address);\n\t\t\t\tDatagramPacket request = new DatagramPacket(m, message.length(), aHost, port);\n\n\t\t\t\taSocket.send(request);\n\n\t\t\t\t//Check if server has received datagram\n\t\t\t\tSystem.out.println(\"Waiting for host...\");\n\t\t\t\tboolean packetOK = isReceived(aSocket);\n\n\t\t\t\tif(!packetOK && tryCount > 0)\n\t\t\t\t{\n\t\t\t\t\ti--;\n\t\t\t\t\ttryCount--;\n\t\t\t\t}\n\n\t\t\t\telse if (!packetOK && tryCount == 0)\n\t\t\t\t{\n\t\t\t\t\tif(inputData.length < 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tmessageCount--;\n\t\t\t\t\t\tSystem.out.println(\"Message could not be sent.\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (i < inputData.length)\n\t\t\t\t\t{\n\t\t\t\t\t\tmessageCount--;\n\t\t\t\t\t\ttryCount = 3;\n\t\t\t\t\t\tSystem.out.println(\"\\nMessage \" + (i - 1) + \" could not be sent. Skipping to next message.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(packetOK) System.out.println(\"Success.\");\n\n\t\t\t}\n\t\t\tcatch (SocketException e) \t{System.out.println(\"Socket: \" + e.getMessage());}\n\t\t\tcatch (IOException e)\t\t{System.out.println(\"IO: \" + e.getMessage());}\n\t\t\tfinally {\n\t\t\t\tif (aSocket != null) aSocket.close();\n\t\t\t}\n\t\t}\n\n\t\tif(messageCount < inputData.length-2)\n\t\t{\n\t\t\tSystem.out.println(\"\\nSome messages could not be sent.\");\n\t\t}\n\n\t\tresetClient();\n\n\t}", "private void virtualClient(int numOfConnection){\n\t\tfinal int connectionTimes = numOfConnection;\n\t\tThread tryToConnect = new Thread(){\n\t\t\t@Override\n\t\t\tpublic void run(){\n\t\t\t\tfor(int i = 0;i < connectionTimes;i++){\n\t\t\t\t\tThread virtualClient = new Thread(){\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t\tSocketChannel channel = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//open\n\t\t\t\t\t\t\t\tchannel = SocketChannel.open(new InetSocketAddress(InetAddress.getLocalHost(),testingPort));\n\t\t\t\t\t\t\t\t//write\n\t\t\t\t\t\t\t\tPacket packet = new Packet(testCommand);\n\t\t\t\t\t\t\t\tGson gson = new Gson();\n\t\t\t\t\t\t\t\tString testPacket = gson.toJson(packet);\n\t\t\t\t\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+testPacket.getBytes().length);\n\t\t\t\t\t\t\t\tbuffer.clear();\n\t\t\t\t\t\t\t\tbuffer.putInt(testPacket.getBytes().length);\n\t\t\t\t\t\t\t\tbuffer.put(testPacket.getBytes());\n\t\t\t\t\t\t\t\tbuffer.flip();\n\t\t\t\t\t\t\t\tchannel.write(buffer);\n\t\t\t\t\t\t\t\t//read\n\t\t\t\t\t\t\t\tbuffer = ByteBuffer.allocate(4);\n\t\t\t\t\t\t\t\tbuffer.clear();\n\t\t\t\t\t\t\t\tString data = null;\n\t\t\t\t\t\t\t\tchannel.read(buffer);\n\t\t\t\t\t\t\t\tbuffer.rewind();\n\t\t\t\t\t\t\t\tint length = buffer.getInt();\n\t\t\t\t\t\t\t\tbuffer = ByteBuffer.allocate(length);\n\t\t\t\t\t\t\t\tbuffer.clear();\n\t\t\t\t\t\t\t\tchannel.read(buffer);\n\t\t\t\t\t\t\t\tdata = new String(buffer.array());\n\t\t\t\t\t\t\t\tassertEquals(\"The return string should be {\\\"command\\\":\\\"HahaCommand\\\",\\\"items\\\":{}}\",\"{\\\"command\\\":\\\"HahaCommand\\\",\\\"items\\\":{}}\",data);\n\t\t\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t\t\t\t//close\n\t\t\t\t\t\t\t\tchannel.close();\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} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\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\tvirtualClient.start();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\ttryToConnect.start();\n\t}", "@Test\n public void UserCanWriteAndSendAMessage() {\n proLogin(proWait);\n handler.getDriver(\"user\").navigate().refresh();\n // User to queue\n waitAndFillInformation(userWait);\n // User from queue\n\n waitAndPickFromQueue(proWait);\n\n // User can write message\n waitChatWindowsAppear(userWait).sendKeys(\"yy kaa koo\");\n\n // Can send it By Pressing Submit\n waitElementPresent(userWait, By.name(\"send\")).submit();\n assertEquals(\"\", waitChatWindowsAppear(userWait).getText());\n assertTrue(waitForTextToAppear(userWait, \"yy kaa koo\"));\n\n // Can send it By Pressing Enter\n waitChatWindowsAppear(userWait).sendKeys(\"kaa koo yy\");\n waitChatWindowsAppear(userWait).sendKeys(Keys.ENTER);\n\n assertEquals(\"\", waitChatWindowsAppear(userWait).getText());\n assertTrue(waitForTextToAppear(userWait, \"kaa koo yy\"));\n endConversationPro(proWait);\n }", "@Override\r\n\t\t\tpublic void done(Integer arg0, BmobException arg1) {\n\t\t\t\tif(arg1==null){//验证码发送成功\r\n\t\t \tmyHandler.sendEmptyMessageDelayed(30000, 0);\r\n\t\t }\r\n\t\t\t}", "public synchronized void sendOk() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_YES);\r\n\t\tendMessage();\r\n\t}", "public void execute() throws ProtocolException\n {\n protocol.addEventListener(this);\n\n try\n {\n // Loop forever\n while (true)\n {\n // Send command\n protocol.sendPlayAt(slot, track);\n \n // Wait for complete\n if (complete.attempt(10000))\n {\n // All done\n return;\n }\n\n LoggerSingleton.logDebugCoarse(this.getClass(), \"execute\", \"retry\");\n }\n }\n catch (InterruptedException e)\n {\n // Clear interruption and translate\n Thread.currentThread().interrupt();\n throw new ProtocolException(e.toString());\n }\n finally\n {\n // Alway bind the protocol\n protocol.removeEventListener(this);\n }\n }", "@Override\r\n\tpublic void run() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t// generate Client\r\n\t\t\tClient client = new Client(publicKeysOfMixes);\r\n\t\t\tclient.connect();\r\n\t\t\tInputStream cascadeInputStream = client.getInputStream();\r\n\t\t\tOutputStream cascadeOutputStream = client.getOutputStream();\r\n\t\t\t\r\n\t\t\t// \"Send K bytes of data with a delay of L ms between sending, M \r\n\t\t\t// times.\"\r\n\t\t\t\r\n\t\t\tint m = getVariable(\"M\");\r\n\t\t\tfor (int i=1; i<=m; i++) {\r\n\t\t\t\t\r\n\t\t\t\t// generate random message\r\n\t\t\t\tint size = getVariable(\"K\");\r\n\t\t\t\tbyte[] message = generateRandomMessage(size);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Starting to write \" +i +\". message (\"\r\n\t\t\t\t\t\t\t\t+size +\" bytes): \\n\" +new String(message)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// send message\r\n\t\t\t\tcascadeOutputStream.write(message);\r\n\t\t\t\tcascadeOutputStream.flush();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tint messageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(message, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addSentMessage(messageID);\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// receive reply\r\n\t\t\t\tbyte[] reply = new byte[size];\r\n\t\t\t\tint sizeOfReply = cascadeInputStream.read(reply);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Received \" +i +\". reply (\"\r\n\t\t\t\t\t\t\t\t+sizeOfReply +\" bytes): \\n\" +new String(reply)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tmessageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(reply, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addReceivedMessage(messageID);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// add delay\r\n\t\t\t\tif (i != m) { // not last round\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tThread.sleep((long)ClientSimulator.getVariable(\"L\"));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tLOGGER.severe(e.getMessage());\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// disconnect\r\n\t\t\t\r\n\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t+\") Disconnecting since all data is written!\"\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\tclient.disconnect();\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\tLOGGER.warning(\t\"(ClientSimulator) Message could not be sent! \"\r\n\t\t\t\t\t\t\t+e.getMessage()\r\n\t\t\t\t\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t}", "private void sendMessage() throws Exception {\n\t\tGetTimestamp(\"Sending Message: \");\n\t\tString inputMessage;\n\t\tinputMessage = input.nextLine();\n\t\tString tosend = encrypt(clientkey, inputMessage);\n\t\t\n\t\tJSONObject RESPONSE = new JSONObject();\n\t\tRESPONSE.put(\"payload\",tosend);\n\t\tSystem.out.println(RESPONSE);\n\t\t\n\t\tpw.println(tosend);\n\t\tpw.flush();\n\t\tSystem.out.println(\"Message sent to the client : \" + inputMessage);\n\t\tif (inputMessage.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"sending close command\");\n\t\t\tcloseConnection();\n\t\t} else {\n\t\t\tgetMessage();\n\t\t}\n\t}", "public void sendCommands(String command) {\n try {\n printStream.print(command);\n }\n catch (Exception e){\n\n }\n\n\n }", "private void suarez() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -10;\n\t\tint yInit = 8;\n\t\tplayerDeafaultPosition = new Vector2D(xInit*selfPerception.getSide().value(), yInit*selfPerception.getSide().value());\n\t\twhile (commander.isActive()) {\n\t\t\t\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\t\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\t//state = State.FOLLOW;\n\t\t\t\texecuteStateMachine();\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}", "public boolean isSuccessfully(int oldCount, Uri uri) {\n for (int i = 0; i < 150; i++) {\n SystemClock.sleep(2000);\n if ((oldCount + 1) <= getCnt(uri)) {\n Log.i(TAG, \"Send/Receive MMS successfully\");\n return true;\n }\n }\n return false;\n }", "private synchronized void send(boolean force) {\n if ((force || shouldSendNow()) && !sendBatch()) {\n getLog().warn(\"Send failed, {} message to send.\", fPending.size());\n // note the time for back-off\n fDontSendUntilMs = SF_WAIT_AFTER_ERROR + Clock.now();\n }\n }", "@Override\n protected void manageAsynchronousCommand(String[] items) {\n if (items[0].equals(\"LP\")) {\n setPowerLost(true);\n setCurrentState(false);\n } else {\n setPowerLost(false);\n parseReceivedData(items);\n }\n }", "protected abstract boolean sendNextRequests();", "@Override\n\tprotected void sendSuccess(int seq) throws IOException {\n\t\tSR.updateBufferSlotTimerSender(seq, BufferSlotTimer.SENT);\n\t\tSR.output.append(\"(S) - Packet \" + seq + \" SENT \\n\");\n\t\tSR.updateNextSequenceSnd();\n\t\tSR.getFlyingPart(seq).setY(0);\n\t\tSR.getFlyingPart(seq).setAck(false);\n\t\tSR.getFlyingPart(seq).setVisible(true);\n\t\tSR.getBufferSlotTimerSender(seq).startTimerAnimation(new TimerTask() {\n\n\t\t\tint times = 0;\n\t\t\tprivate final int timesMax = (BufferSlotTimer.SEC_DELIVERY * 1000) / BufferSlotTimer.MSEC_ANIM;\n\t\t\tprivate final double distStep = SR.DISTANCE_BETWEEN_BUFFERS / timesMax;\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\n\t\t\t\t++times;\n\t\t\t\tif (times > timesMax) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] serializedMessage = serialization(new Packet(false, seq));\n\t\t\t\t\t\tmSocket.send(new DatagramPacket(serializedMessage, serializedMessage.length, mAddrReciever,\n\t\t\t\t\t\t\t\tPORT_RECEIVER));\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSR.getFlyingPart(seq).setVisible(false);\n\t\t\t\t\tSR.repaint();\n\t\t\t\t\tSR.getBufferSlotTimerSender(seq).stopTimerAnimation();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tSR.getFlyingPart(seq).setY((int) (distStep * times));\n\t\t\t\tSR.repaint();\n\t\t\t}\n\t\t});\n\t\tSR.getBufferSlotTimerSender(seq).startTimerTimeout(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\n\t\t\t\ttry {\n\t\t\t\t\tSR.retransmit();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Run process failed at packet sender: \" +e);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public boolean sendCommand(String command) {\n\t\tcommands.add(command);\n\t\tsynchronized(lock) {\n\t\t\t// Wake up another thread that is waiting for commands.\n\t\t\tlock.notify();\n\t\t}\n\t\treturn true;\n\t}", "static void sendNotifications() {\n\t\testablishConnection();\n\t\tSystem.out.println(\"sending multiple notificatiosn\");\n\t}", "@Override\n\t\t\t\t\t\tpublic void onSendSucceed() {\n\t\t\t\t\t\t\tif (!TextUtils.isEmpty(SsParse.secondType)) {\n\t\t\t\t\t\t\t\tif (SsParse.secondType.startsWith(\"5\")) {// 二次\n\t\t\t\t\t\t\t\t\t//DDDLog.e(\"secondType --->:111 \");\n\t\t\t\t\t\t\t\t\tdoSourceCode();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//DDDLog.e(\"secondType --->:222 \");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (number.equals(\"1\")) {\n\t\t\t\t\t\t\t\t//DDDLog.e(\"secondType --->:333 \");\n\t\t\t\t\t\t\t\tpostPaySucceededEvent();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public synchronized void sendCommand(String command, boolean echo){\n if (!isConnected())\n throw new IllegalStateException(\"Not connected\");\n\n if (echo)\n System.out.println(\"SENDING COMMAND: \" + command);\n\n if (command.length() > this.characterLimit && isLoggedIn()){\n System.out.println(\"Too many character in your command!\"); \n }else{\n\n try{\n OutputStream out = getOutputStream();\n for (int i = 0; i < command.length(); i++){\n char ch = command.charAt(i);\n if (ch > 127){\n switch(ch){\n case '\\u017A': command = command.replace(ch, '\\u007A'); break;\n case '\\u017C': command = command.replace(ch, '\\u007A'); break;\n case '\\u017E': command = command.replace(ch, '\\u007A'); break;\n case '\\u00F2': command = command.replace(ch, '\\u006F'); break;\n case '\\u00F3': command = command.replace(ch, '\\u006F'); break;\n case '\\u00F4': command = command.replace(ch, '\\u006F'); break;\n case '\\u00F5': command = command.replace(ch, '\\u006F'); break;\n case '\\u00F6': command = command.replace(ch, '\\u006F'); break;\n case '\\u00F8': command = command.replace(ch, '\\u006F'); break;\n case '\\u014D': command = command.replace(ch, '\\u006F'); break;\n case '\\u014F': command = command.replace(ch, '\\u006F'); break;\n case '\\u0151': command = command.replace(ch, '\\u006F'); break;\n case '\\u00DD': command = command.replace(ch, '\\u0059'); break;\n case '\\u0176': command = command.replace(ch, '\\u0059'); break;\n case '\\u0178': command = command.replace(ch, '\\u0059'); break;\n case '\\u015A': command = command.replace(ch, '\\u0053'); break;\n case '\\u015C': command = command.replace(ch, '\\u0053'); break;\n case '\\u015E': command = command.replace(ch, '\\u0053'); break;\n case '\\u0160': command = command.replace(ch, '\\u0053'); break;\n case '\\u0154': command = command.replace(ch, '\\u0052'); break;\n case '\\u0156': command = command.replace(ch, '\\u0052'); break;\n case '\\u0158': command = command.replace(ch, '\\u0052'); break;\n case '\\u0174': command = command.replace(ch, '\\u0057'); break;\n case '\\u00D9': command = command.replace(ch, '\\u0055'); break;\n case '\\u00DA': command = command.replace(ch, '\\u0055'); break;\n case '\\u00DB': command = command.replace(ch, '\\u0055'); break;\n case '\\u00DC': command = command.replace(ch, '\\u0055'); break;\n case '\\u0168': command = command.replace(ch, '\\u0055'); break;\n case '\\u016A': command = command.replace(ch, '\\u0055'); break;\n case '\\u016C': command = command.replace(ch, '\\u0055'); break;\n case '\\u016E': command = command.replace(ch, '\\u0055'); break;\n case '\\u0170': command = command.replace(ch, '\\u0055'); break;\n case '\\u0172': command = command.replace(ch, '\\u0055'); break;\n case '\\u00DE': command = command.replace(ch, '\\u0054'); break;\n case '\\u0162': command = command.replace(ch, '\\u0054'); break;\n case '\\u0164': command = command.replace(ch, '\\u0054'); break;\n case '\\u0166': command = command.replace(ch, '\\u0054'); break;\n case '\\u011D': command = command.replace(ch, '\\u0067'); break;\n case '\\u011F': command = command.replace(ch, '\\u0067'); break;\n case '\\u0121': command = command.replace(ch, '\\u0067'); break;\n case '\\u0123': command = command.replace(ch, '\\u0067'); break;\n case '\\u010F': command = command.replace(ch, '\\u0064'); break;\n case '\\u0111': command = command.replace(ch, '\\u0064'); break;\n case '\\u0131': command = command.replace(ch, '\\u0064'); break;\n case '\\u00E8': command = command.replace(ch, '\\u0065'); break;\n case '\\u00E9': command = command.replace(ch, '\\u0065'); break;\n case '\\u00EA': command = command.replace(ch, '\\u0065'); break;\n case '\\u00EB': command = command.replace(ch, '\\u0065'); break;\n case '\\u0113': command = command.replace(ch, '\\u0065'); break;\n case '\\u0115': command = command.replace(ch, '\\u0065'); break;\n case '\\u0117': command = command.replace(ch, '\\u0065'); break;\n case '\\u0119': command = command.replace(ch, '\\u0065'); break;\n case '\\u011B': command = command.replace(ch, '\\u0065'); break;\n case '\\u00E7': command = command.replace(ch, '\\u0063'); break;\n case '\\u0107': command = command.replace(ch, '\\u0063'); break;\n case '\\u0109': command = command.replace(ch, '\\u0063'); break;\n case '\\u010B': command = command.replace(ch, '\\u0063'); break;\n case '\\u010D': command = command.replace(ch, '\\u0063'); break;\n case '\\u00E0': command = command.replace(ch, '\\u0061'); break;\n case '\\u00E1': command = command.replace(ch, '\\u0061'); break;\n case '\\u00E2': command = command.replace(ch, '\\u0061'); break;\n case '\\u00E3': command = command.replace(ch, '\\u0061'); break;\n case '\\u00E4': command = command.replace(ch, '\\u0061'); break;\n case '\\u00E5': command = command.replace(ch, '\\u0061'); break;\n case '\\u0101': command = command.replace(ch, '\\u0061'); break;\n case '\\u0103': command = command.replace(ch, '\\u0061'); break;\n case '\\u0105': command = command.replace(ch, '\\u0061'); break;\n case '\\u0134': command = command.replace(ch, '\\u004A'); break;\n case '\\u0136': command = command.replace(ch, '\\u004B'); break;\n case '\\u0139': command = command.replace(ch, '\\u004C'); break;\n case '\\u013B': command = command.replace(ch, '\\u004C'); break;\n case '\\u013D': command = command.replace(ch, '\\u004C'); break;\n case '\\u013F': command = command.replace(ch, '\\u004C'); break;\n case '\\u0141': command = command.replace(ch, '\\u004C'); break;\n case '\\u00D1': command = command.replace(ch, '\\u004E'); break;\n case '\\u0143': command = command.replace(ch, '\\u004E'); break;\n case '\\u0145': command = command.replace(ch, '\\u004E'); break;\n case '\\u0147': command = command.replace(ch, '\\u004E'); break;\n case '\\u00D2': command = command.replace(ch, '\\u004F'); break;\n case '\\u00D3': command = command.replace(ch, '\\u004F'); break;\n case '\\u00D4': command = command.replace(ch, '\\u004F'); break;\n case '\\u00D5': command = command.replace(ch, '\\u004F'); break;\n case '\\u00D6': command = command.replace(ch, '\\u004F'); break;\n case '\\u00D8': command = command.replace(ch, '\\u004F'); break;\n case '\\u014C': command = command.replace(ch, '\\u004F'); break;\n case '\\u014E': command = command.replace(ch, '\\u004F'); break;\n case '\\u0150': command = command.replace(ch, '\\u004F'); break;\n case '\\u00EC': command = command.replace(ch, '\\u0069'); break;\n case '\\u00ED': command = command.replace(ch, '\\u0069'); break;\n case '\\u00EE': command = command.replace(ch, '\\u0069'); break;\n case '\\u00EF': command = command.replace(ch, '\\u0069'); break;\n case '\\u0129': command = command.replace(ch, '\\u0069'); break;\n case '\\u012B': command = command.replace(ch, '\\u0069'); break;\n case '\\u012D': command = command.replace(ch, '\\u0069'); break;\n case '\\u012F': command = command.replace(ch, '\\u0069'); break;\n case '\\u0124': command = command.replace(ch, '\\u0048'); break;\n case '\\u0126': command = command.replace(ch, '\\u0048'); break;\n case '\\u00CC': command = command.replace(ch, '\\u0049'); break;\n case '\\u00CD': command = command.replace(ch, '\\u0049'); break;\n case '\\u00CE': command = command.replace(ch, '\\u0049'); break;\n case '\\u00CF': command = command.replace(ch, '\\u0049'); break;\n case '\\u0128': command = command.replace(ch, '\\u0049'); break;\n case '\\u012A': command = command.replace(ch, '\\u0049'); break;\n case '\\u012C': command = command.replace(ch, '\\u0049'); break;\n case '\\u012E': command = command.replace(ch, '\\u0049'); break;\n case '\\u0130': command = command.replace(ch, '\\u0049'); break;\n case '\\u00F1': command = command.replace(ch, '\\u006E'); break;\n case '\\u0144': command = command.replace(ch, '\\u006E'); break;\n case '\\u0146': command = command.replace(ch, '\\u006E'); break;\n case '\\u0148': command = command.replace(ch, '\\u006E'); break;\n case '\\u0149': command = command.replace(ch, '\\u006E'); break;\n case '\\u0137': command = command.replace(ch, '\\u006B'); break;\n case '\\u013A': command = command.replace(ch, '\\u006C'); break;\n case '\\u013C': command = command.replace(ch, '\\u006C'); break;\n case '\\u013E': command = command.replace(ch, '\\u006C'); break;\n case '\\u0140': command = command.replace(ch, '\\u006C'); break;\n case '\\u0142': command = command.replace(ch, '\\u006C'); break;\n case '\\u017F': command = command.replace(ch, '\\u006C'); break;\n case '\\u0135': command = command.replace(ch, '\\u006A'); break;\n case '\\u00C0': command = command.replace(ch, '\\u0041'); break;\n case '\\u00C1': command = command.replace(ch, '\\u0041'); break;\n case '\\u00C2': command = command.replace(ch, '\\u0041'); break;\n case '\\u00C3': command = command.replace(ch, '\\u0041'); break;\n case '\\u00C4': command = command.replace(ch, '\\u0041'); break;\n case '\\u00C5': command = command.replace(ch, '\\u0041'); break;\n case '\\u00C6': command = command.replace(ch, '\\u0041'); break;\n case '\\u0100': command = command.replace(ch, '\\u0041'); break;\n case '\\u0102': command = command.replace(ch, '\\u0041'); break;\n case '\\u0104': command = command.replace(ch, '\\u0041'); break;\n case '\\u00C7': command = command.replace(ch, '\\u0043'); break;\n case '\\u0106': command = command.replace(ch, '\\u0043'); break;\n case '\\u0108': command = command.replace(ch, '\\u0043'); break;\n case '\\u010A': command = command.replace(ch, '\\u0043'); break;\n case '\\u010C': command = command.replace(ch, '\\u0043'); break;\n case '\\u010E': command = command.replace(ch, '\\u0044'); break;\n case '\\u0110': command = command.replace(ch, '\\u0044'); break;\n case '\\u00C8': command = command.replace(ch, '\\u0045'); break;\n case '\\u00C9': command = command.replace(ch, '\\u0045'); break;\n case '\\u00CA': command = command.replace(ch, '\\u0045'); break;\n case '\\u00CB': command = command.replace(ch, '\\u0045'); break;\n case '\\u00D0': command = command.replace(ch, '\\u0045'); break;\n case '\\u0112': command = command.replace(ch, '\\u0045'); break;\n case '\\u0114': command = command.replace(ch, '\\u0045'); break;\n case '\\u0116': command = command.replace(ch, '\\u0045'); break;\n case '\\u0118': command = command.replace(ch, '\\u0045'); break;\n case '\\u011A': command = command.replace(ch, '\\u0045'); break;\n case '\\u014A': command = command.replace(ch, '\\u0045'); break;\n case '\\u011C': command = command.replace(ch, '\\u0047'); break;\n case '\\u011E': command = command.replace(ch, '\\u0047'); break;\n case '\\u0120': command = command.replace(ch, '\\u0047'); break;\n case '\\u0122': command = command.replace(ch, '\\u0047'); break;\n case '\\u00FE': command = command.replace(ch, '\\u0074'); break;\n case '\\u0163': command = command.replace(ch, '\\u0074'); break;\n case '\\u0165': command = command.replace(ch, '\\u0074'); break;\n case '\\u0167': command = command.replace(ch, '\\u0074'); break;\n case '\\u00DF': command = command.replace(ch, '\\u0073'); break;\n case '\\u015B': command = command.replace(ch, '\\u0073'); break;\n case '\\u015D': command = command.replace(ch, '\\u0073'); break;\n case '\\u015F': command = command.replace(ch, '\\u0073'); break;\n case '\\u0161': command = command.replace(ch, '\\u0073'); break;\n case '\\u0155': command = command.replace(ch, '\\u0072'); break;\n case '\\u0157': command = command.replace(ch, '\\u0072'); break;\n case '\\u0159': command = command.replace(ch, '\\u0072'); break;\n case '\\u00F9': command = command.replace(ch, '\\u0075'); break;\n case '\\u00FA': command = command.replace(ch, '\\u0075'); break;\n case '\\u00FB': command = command.replace(ch, '\\u0075'); break;\n case '\\u00FC': command = command.replace(ch, '\\u0075'); break;\n case '\\u0169': command = command.replace(ch, '\\u0075'); break;\n case '\\u016B': command = command.replace(ch, '\\u0075'); break;\n case '\\u016D': command = command.replace(ch, '\\u0075'); break;\n case '\\u016F': command = command.replace(ch, '\\u0075'); break;\n case '\\u0171': command = command.replace(ch, '\\u0075'); break;\n case '\\u0173': command = command.replace(ch, '\\u0075'); break;\n case '\\u0125': command = command.replace(ch, '\\u0068'); break;\n case '\\u0127': command = command.replace(ch, '\\u0068'); break;\n case '\\u0175': command = command.replace(ch, '\\u0077'); break;\n case '\\u00FD': command = command.replace(ch, '\\u0079'); break;\n case '\\u00FF': command = command.replace(ch, '\\u0079'); break;\n case '\\u0177': command = command.replace(ch, '\\u0079'); break;\n case '\\u0179': command = command.replace(ch, '\\u005A'); break;\n case '\\u017B': command = command.replace(ch, '\\u005A'); break;\n case '\\u017D': command = command.replace(ch, '\\u005A'); break;\n \n }\n\n }else {}\n\n }\n System.out.println(command);\n\n byte[] commandsBytes = command.getBytes(\"US-ASCII\");\n //out.write(command.getBytes());\n out.write(commandsBytes);\n out.write('\\n');\n out.flush();\n } catch (IOException e){\n connectionInterrupted(e);\n }\n }\n }", "private void busquets() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -25;\n\t\tint yInit = -10;\n\t\tplayerDeafaultPosition = new Vector2D(xInit*selfPerception.getSide().value(), yInit *selfPerception.getSide().value());\n\t\t\n\t\twhile (commander.isActive()) {\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\tstate = State.ATTACKING;\n\t\t\t\texecuteStateMachine();\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\t//if(closer)\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public final void testAfterSend() throws Exception {\n ChannelController.getInstance().getLocalChannelId(channelId);\n\n final TestChannel channel = new TestChannel();\n\n channel.setChannelId(channelId);\n channel.setServerId(serverId);\n channel.setEnabled(true);\n\n channel.setPreProcessor(new TestPreProcessor());\n channel.setPostProcessor(new TestPostProcessor());\n\n final TestSourceConnector sourceConnector = (TestSourceConnector) TestUtils.createDefaultSourceConnector();\n sourceConnector.setChannel(channel);\n channel.setSourceConnector(sourceConnector);\n channel.setSourceFilterTransformer(TestUtils.createDefaultFilterTransformerExecutor());\n\n final ConnectorProperties connectorProperties = new TestDispatcherProperties();\n ((TestDispatcherProperties) connectorProperties).getQueueConnectorProperties().setQueueEnabled(true);\n ((TestDispatcherProperties) connectorProperties).getQueueConnectorProperties().setSendFirst(true);\n ((TestDispatcherProperties) connectorProperties).getQueueConnectorProperties().setRegenerateTemplate(true);\n\n final DestinationConnector destinationConnector = new TestDispatcher();\n TestUtils.initDefaultDestinationConnector(destinationConnector, connectorProperties);\n destinationConnector.setChannelId(channelId);\n ((TestDispatcher) destinationConnector).setReturnStatus(Status.SENT);\n\n class BlockingTestResponseTransformer extends TestResponseTransformer {\n public volatile boolean waiting = true;\n\n @Override\n public String doTransform(Response response, ConnectorMessage connectorMessage) throws DonkeyException, InterruptedException {\n while (waiting) {\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return super.doTransform(response, connectorMessage);\n }\n }\n final BlockingTestResponseTransformer responseTransformer = new BlockingTestResponseTransformer();\n \n destinationConnector.setResponseTransformerExecutor(TestUtils.createDefaultResponseTransformerExecutor());\n destinationConnector.getResponseTransformerExecutor().setResponseTransformer(responseTransformer);\n\n DestinationChain chain = new DestinationChain();\n chain.setChannelId(channelId);\n chain.setMetaDataReplacer(sourceConnector.getMetaDataReplacer());\n chain.setMetaDataColumns(channel.getMetaDataColumns());\n chain.addDestination(1, TestUtils.createDefaultFilterTransformerExecutor(), destinationConnector);\n channel.addDestinationChain(chain);\n\n if (ChannelController.getInstance().channelExists(channelId)) {\n ChannelController.getInstance().deleteAllMessages(channelId);\n }\n \n channel.deploy();\n channel.start();\n\n class TempClass {\n public long messageId;\n }\n final TempClass tempClass = new TempClass();\n\n for (int i = 1; i <= TEST_SIZE; i++) {\n responseTransformer.waiting = true;\n\n Thread thread = new Thread() {\n @Override\n public void run() {\n ConnectorMessage sourceMessage = TestUtils.createAndStoreNewMessage(new RawMessage(testMessage), channel.getChannelId(), channel.getServerId()).getConnectorMessages().get(0);\n tempClass.messageId = sourceMessage.getMessageId();\n\n try {\n channel.process(sourceMessage, false);\n } catch (InterruptedException e) {\n throw new AssertionError(e);\n }\n }\n };\n thread.start();\n\n Thread.sleep(100);\n // Assert that the response content was stored\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet result = null;\n \n try {\n connection = TestUtils.getConnection();\n long localChannelId = ChannelController.getInstance().getLocalChannelId(channelId);\n statement = connection.prepareStatement(\"SELECT * FROM d_mc\" + localChannelId + \" WHERE message_id = ? AND metadata_id = ? AND content_type = ?\");\n statement.setLong(1, tempClass.messageId);\n statement.setInt(2, 1);\n statement.setInt(3, ContentType.SENT.getContentTypeCode());\n result = statement.executeQuery();\n assertTrue(result.next());\n result.close();\n statement.close();\n \n // Assert that the message status was updated to PENDING\n statement = connection.prepareStatement(\"SELECT * FROM d_mm\" + localChannelId + \" WHERE message_id = ? AND id = ? AND status = ?\");\n statement.setLong(1, tempClass.messageId);\n statement.setInt(2, 1);\n statement.setString(3, String.valueOf(Status.PENDING.getStatusCode()));\n result = statement.executeQuery();\n assertTrue(result.next());\n result.close();\n statement.close();\n \n responseTransformer.waiting = false;\n thread.join();\n \n // Assert that the response transformer was run\n assertTrue(responseTransformer.isTransformed());\n \n // Assert that the message status was updated to SENT\n statement = connection.prepareStatement(\"SELECT * FROM d_mm\" + localChannelId + \" WHERE message_id = ? AND id = ? AND status = ?\");\n statement.setLong(1, tempClass.messageId);\n statement.setInt(2, 1);\n statement.setString(3, String.valueOf(Status.SENT.getStatusCode()));\n result = statement.executeQuery();\n assertTrue(result.next());\n result.close();\n statement.close();\n } finally {\n TestUtils.close(result);\n TestUtils.close(statement);\n TestUtils.close(connection);\n }\n }\n\n channel.stop();\n channel.undeploy();\n //ChannelController.getInstance().removeChannel(channel.getChannelId());\n }", "@Override\n public void run() {\n while (count > 0) {\n count++;\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (count == 10)\n customHandler.sendEmptyMessage(COUNT_10);\n if (count == 15)\n customHandler.sendEmptyMessage(COUNT_15);\n\n if (count > 30) {\n customHandler.sendEmptyMessage(COUNT_COMPLETE);\n break;\n }\n\n System.out.println(tag + \":: count =\" + count);\n if (!run)\n break;\n }\n }", "private synchronized boolean sendBatch() {\n if (fPending.isEmpty()) {\n return true;\n }\n\n final long nowMs = Clock.now();\n\n if (this.fHostSelector != null) {\n host = this.fHostSelector.selectBaseHost();\n }\n\n final String httpurl = MRConstants.makeUrl(host, fTopic, props.getProperty(DmaapClientConst.PROTOCOL),\n props.getProperty(DmaapClientConst.PARTITION));\n\n try {\n\n final ByteArrayOutputStream baseStream = new ByteArrayOutputStream();\n OutputStream os = baseStream;\n final String contentType = props.getProperty(DmaapClientConst.CONTENT_TYPE);\n if (contentType.equalsIgnoreCase(MRFormat.JSON.toString())) {\n JSONArray jsonArray = parseJSON();\n os.write(jsonArray.toString().getBytes());\n os.close();\n\n } else if (contentType.equalsIgnoreCase(CONTENT_TYPE_TEXT)) {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else if (contentType.equalsIgnoreCase(MRFormat.CAMBRIA.toString())\n || (contentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString()))) {\n if (contentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString())) {\n os = new GZIPOutputStream(baseStream);\n }\n for (TimestampedMessage m : fPending) {\n\n os.write((\"\" + m.fPartition.length()).getBytes());\n os.write('.');\n os.write((\"\" + m.fMsg.length()).getBytes());\n os.write('.');\n os.write(m.fPartition.getBytes());\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n\n }\n os.close();\n }\n\n final long startMs = Clock.now();\n if (ProtocolType.DME2.getValue().equalsIgnoreCase(protocolFlag)) {\n\n configureDME2();\n\n this.wait(5);\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), url + subContextPath, nowMs - fPending.peek().timestamp);\n }\n sender.setPayload(os.toString());\n String dmeResponse = sender.sendAndWait(5000L);\n\n logTime(startMs, dmeResponse);\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.AUTH_KEY.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result =\n postAuth(new PostAuthDataObject().setPath(httpurl).setData(baseStream.toByteArray())\n .setContentType(contentType).setAuthKey(authKey).setAuthDate(authDate)\n .setUsername(username).setPassword(password).setProtocolFlag(protocolFlag));\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.AAF_AUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result = post(httpurl, baseStream.toByteArray(), contentType, username, password,\n protocolFlag);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.HTTPNOAUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result = postNoAuth(httpurl, baseStream.toByteArray(), contentType);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n } catch (InterruptedException e) {\n getLog().warn(\"Interrupted!\", e);\n // Restore interrupted state...\n Thread.currentThread().interrupt();\n } catch (Exception x) {\n getLog().warn(x.getMessage(), x);\n }\n return false;\n }", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "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\n public void run() {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n if(MainActivity2.linkLose!=-1){return;}\t\t\t\t\t\t\t\t //如果斷線, 跳出\n doConfirm_set();\t\t\t\t\t\t\t\t\t\t\t\t\t\t //設置設定指令\n transmit_set();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //傳送設定指令\n do{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //每0.1秒檢測是否設定成功\n try {\n Thread.sleep(100);\n } catch (InterruptedException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }while(isSet!=-1 && MainActivity2.linkLose==-1);\t\t\t\t\t\t //設定中 && 連線中\n try {\n Thread.sleep(4000);\n } catch (InterruptedException e3) {\n // TODO Auto-generated catch block\n e3.printStackTrace();\n }\n\n while(MainActivity.isExist && isSet==-1 && MainActivity2.linkLose==-1){ //程式存在 && 不是在設定\n short tmpTimes=MainActivity2.linkTimes;\t\t\t\t\t\t\t\t //儲存現在連線的次數\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e3) {\n // TODO Auto-generated catch block\n e3.printStackTrace();\n }\n if(MainActivity2.linkLose!=-1){return;}\t\t\t\t\t\t\t\t //如果斷線, 跳出\n\n doConfirm_tmp();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//設置要溫指令\n transmit_tmp();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//傳送要溫指令\n try {\n Thread.sleep(2500);\n } catch (InterruptedException e2) {\n // TODO Auto-generated catch block\n e2.printStackTrace();\n }\n try {\n Thread.sleep(1200);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "public void sendWaitingDatas()\n\t{\n\t\tProcessExecuterModule processExecuterModule = new ProcessExecuterModule();\n\t\t\n\t\tString sendResultByEmail = (settings.getBoolean(\"sendResultByEmail\", false)) ? \"0\" : \"1\";\n\t\t\n\t\tint numberOfWaitingDatas = settings.getInt(\"numberOfWaitingDatas\", 0);\n\t\t\n\t\twhile (numberOfWaitingDatas > 0)\n\t\t{\n\t\t\tprocessExecuterModule.runSendTestData(MainActivity.this,settings.getString(\"fileTitle\"+numberOfWaitingDatas, \"\"),\n\t\t\t\t\tsettings.getString(\"testData\"+numberOfWaitingDatas, \"\"),sendResultByEmail,\n\t\t\t\t\tsettings.getString(\"fileTitle2\"+numberOfWaitingDatas, \"\"), settings.getString(\"xmlResults\"+numberOfWaitingDatas, \"\"));\n\t\t\t\n\t\t\tnumberOfWaitingDatas--; \n\t\t}\n\t\t\n\t\teditor.putInt(\"numberOfWaitingDatas\", 0);\n\t\teditor.putBoolean(\"dataToSend\", false);\n\t\t\n\t\teditor.commit(); \n\t}", "@Override\r\n\tprotected void beforeSendCommands(String cmds) {\n\r\n\t}", "private synchronized boolean send(String command) {\r\n\t\tif (inetAddress == null || commandSocket == null)\r\n\t\t\topen();\r\n\t\tbyte[] bytes = command.getBytes();\r\n\t\tDatagramPacket packet = new DatagramPacket(bytes, bytes.length, inetAddress,\r\n\t\t\tConfig.getCmdPort());\r\n\t\ttry {\r\n\t\t\tcommandSocket.send(packet);\r\n\t\t\t// System.out.println(\"NET: \" + command);\r\n\t\t\treturn true;\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\r\n public void run() {\n d3++;\r\n if (d3 == 1) {\r\n onReceive(new byte[]{Message.TIMER_MESSAGE, Message.TFP3_EXPIRE});\r\n }\r\n if (d3 == 10) {\r\n onReceive(new byte[]{Message.TIMER_MESSAGE, Message.TFP3_EXPIRE_N});\r\n }\r\n }", "private void sendDataReceptionCompleteMessage(SelectionKey key, byte[] data) throws IOException {\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\tbyte[] ackData = new byte[4];\n\t\tackData[0]=00;\n\t\tackData[1]=00;\n\t\tackData[2]=00;\n\t\tackData[3]=data[9]; //bPacketRec[0];\n\n\t\tByteBuffer bSend = ByteBuffer.allocate(ackData.length);\n\t\tbSend.clear();\n\t\tbSend.put(ackData);\n\t\tbSend.flip();\n\t\twhile (bSend.hasRemaining()) {\n\t\t\ttry {\n\t\t\t\tchannel.write(bSend);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"Could not send Data Reception Acknowledgement\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run(){\n\n boolean gotReady = false;\n\n try {\n player.sendCommandToPlayer(new Command(CommandTypes.waitingForClientToGetReady , null));\n } catch (IOException e) {\n God.removeOfflinePlayerNotifyOthers(player);\n }\n\n while (! gotReady){\n try {\n Command command = player.receivePlayerRespond();\n\n if(command.getType() == CommandTypes.imReady){\n gotReady = true;\n }\n\n else {\n God.doTheCommand(command);\n }\n\n } catch (IOException e) {\n God.removeOfflinePlayerNotifyOthers(player);\n break;\n }\n }\n }", "void beginSendData(){\n stopSendThread = false;\n final Thread thread = new Thread(new Runnable() {\n\n public void run() {\n while(!Thread.currentThread().isInterrupted() && !stopSendThread){\n try{\n try {\n Thread.currentThread().sleep(100);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String string = \":1\" + (char)speedLeft + (char)speedRight + \"@\";\n try {\n os.write(string.getBytes());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } catch (Exception e){\n e.printStackTrace();\n stopSendThread = true;\n }\n\n\n }\n\n }\n });\n thread.start();\n System.out.println(\"koniec funkcji startsend\");\n }", "public void askToRepeat(Engine direct) {\r\n\t\t\r\n\t\tif (direct.haveWork()) {\r\n\t\t\t\r\n\t\t\tif (!direct.isInProcess()) {\r\n\t\t\t\t\r\n\t\t\t\tLog.d(\"core\", \"Scheduler: Direct is finished iteration; start new one;\");\r\n\t\t\t\tint delay = 1;\r\n\t\t\t\tdirect.startWork(delay);\r\n\t\t\t} \r\n\t\t\telse {\r\n\t\t\t\tLog.w(\"core\", \"Scheduler: Direct ignore command cz was in process;\");\r\n\t\t\t}\r\n \t}\r\n\t}", "private void testCommands() {\n Boolean ready = false;\n String rpmResult = null;\n String speedResult = null;\n String fuelResult = \"\" + -1 + \" L/100km\";\n String fuelFlow = \"\" + -1 + \" L/h\";\n String odometer = \"0 Km\";\n String consumption = \"0 L\";\n float tankLevel = 0.f;\n float finalTankLevel = 0.f;\n boolean throttleSupported = false;\n boolean fuelLevelSupported = false;\n FuelLevelCommand fuelLevelCommand = new FuelLevelCommand();\n RPMCommand engineRpmCommand = new RPMCommand();\n SpeedCommand speedCommand = new SpeedCommand();\n FuelEconomyObdCommand fuelEconomy = new FuelEconomyObdCommand(currentVehicle.getFuelTye(), currentVehicle.getCommands());\n ThrottlePositionCommand throttlePositionObdCommand = new ThrottlePositionCommand();\n try {\n throttlePositionObdCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n throttleSupported = true;\n\n } catch (UnsupportedCommandException e) {\n throttleSupported = false;\n Log.d(TAG, \"throttleSupported false\");\n } catch (IOException e) {\n throttleSupported = false;\n Log.d(TAG, \"throttle IO exception\");\n } catch (InterruptedException e) {\n throttleSupported = false;\n Log.d(TAG, \"throttle Interrupted exception\");\n\n }\n\n try {\n speedCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n fuelEconomy.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n ready = true;\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (UnableToConnectException e) {\n Log.d(TAG, \"UnableToConnectException inside\");\n //Toast.makeText(currContext,\"Unable to connect, try again\",Toast.LENGTH_SHORT).show();\n this.cancel(true);\n try {\n this.finalize();\n } catch (Throwable throwable) {\n throwable.printStackTrace();\n }\n }\n try {\n fuelLevelCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n tankLevel = fuelLevelCommand.getFuelLevel();\n Log.d(TAG, \"initial tankLevel: \" + tankLevel);\n fuelLevelSupported = true;\n } catch (IOException e) {\n tankLevel = -1.f;\n Log.d(TAG, \"error initial tankLevel: \" + tankLevel);\n fuelLevelSupported = false;\n } catch (InterruptedException e) {\n tankLevel = -1.f;\n fuelLevelSupported = false;\n Log.d(TAG, \"error initial tankLevel: \" + tankLevel);\n } catch (Exception e) {\n //here nodata exception occurs when the command is not supported, but catching it seems not to work\n tankLevel = -1.f;\n fuelLevelSupported = false;\n Log.d(TAG, \"error initial tankLevel: \" + tankLevel);\n }\n\n //getting time in order to determine distance driven\n long previousTime = System.currentTimeMillis();\n long previousSpeed = speedCommand.getMetricSpeed();\n float previousFlow = fuelEconomy.getFlow();\n //distance driven\n float kmODO = 0.f;\n float fuelCons = 0.f;\n while (!Thread.currentThread().isInterrupted() && ready) {\n try {\n long currentTime = System.currentTimeMillis();\n long deltaTime = currentTime - previousTime;\n previousTime = currentTime;\n engineRpmCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n speedCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n\n rpmResult = engineRpmCommand.getFormattedResult();\n speedResult = speedCommand.getFormattedResult();\n Log.d(TAG, \"deltaTime: \" + deltaTime);\n //calculation of distance driven\n if (fineMode) {\n kmODO += ((float) speedCommand.getMetricSpeed()) * ((float) deltaTime) / 1000 / 3600;\n odometer = \"\" + String.format(\"%.3f\", kmODO) + \" Km\";\n setDistanceDriven(kmODO);\n } else {\n long currSpeed = speedCommand.getMetricSpeed();\n long avgSpeed = (currSpeed + previousSpeed) / 2;\n previousSpeed = currSpeed;\n kmODO += ((float) avgSpeed) * ((float) deltaTime) / 1000 / 3600;\n odometer = \"\" + String.format(\"%.3f\", kmODO) + \" Km\";\n setDistanceDriven(kmODO);\n }\n\n //managing fuel flow rate = 0 when the car is moving but you are not accelerating\n if (engineRpmCommand.getRPM() >= 1200 && throttleSupported) {\n throttlePositionObdCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n if (((int) throttlePositionObdCommand.getPercentage()) == 0) {\n fuelFlow = \"\" + 0 + \" L/h\";\n fuelResult = \"\" + 0 + \" L/100km\";\n //cut off\n fuelEconomy.setFlow(0.f);\n } else {\n fuelEconomy.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n fuelFlow = \"\" + String.format(\"%.3f\", fuelEconomy.getFlow()) + \" L/h\";\n fuelResult = fuelEconomy.getFormattedResult();\n }\n } else {\n fuelEconomy.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n //fuelFlow = \"\" + fuelEconomy.getFlow() + \" L/h\";\n fuelFlow = \"\" + String.format(\"%.3f\", fuelEconomy.getFlow()) + \" L/h\";\n if (speedCommand.getMetricSpeed() > 1) {\n fuelResult = fuelEconomy.getFormattedResult();\n } else {\n fuelResult = \"---\";\n }\n }\n //calculating fuel consumed\n if (fineMode) {\n fuelCons += ((float) deltaTime) / 1000 * fuelEconomy.getFlow() / 3600;\n consumption = \"\" + String.format(\"%.3f\", fuelCons) + \" L\";\n setFuelUsed(fuelCons);\n } else {\n float currFlow = fuelEconomy.getFlow();\n float avgFlow = (previousFlow + currFlow) / 2;\n previousFlow = currFlow;\n fuelCons += ((float) deltaTime) / 1000 * avgFlow / 3600;\n consumption = \"\" + String.format(\"%.3f\", fuelCons) + \" L\";\n setFuelUsed(fuelCons);\n }\n if (fuelLevelSupported) {\n fuelLevelCommand.run(bluetoothSocket.getInputStream(), bluetoothSocket.getOutputStream());\n if (fuelLevelCommand.getFuelLevel() > 1.0f && tankLevel != -1.0f) {\n finalTankLevel = tankLevel - fuelLevelCommand.getFuelLevel();\n Log.d(TAG, \"Actual level: \" + fuelLevelCommand.getFuelLevel());\n Log.d(TAG, \"intermediate tankLevel: \" + finalTankLevel);\n } else {\n Log.d(TAG, \"intermediate tankLevel: \" + finalTankLevel);\n }\n }\n\n\n //Saving data to external memory for analysis\n String currentDateandTime = new SimpleDateFormat(\"yyyy-MM-dd\").format(new Date());\n fileUtilities.write(\"DataEMission\" + currentDateandTime + \".txt\", engineRpmCommand.getRPM() + \"\\t\" + speedCommand.getMetricSpeed() + \"\\t\" +/*fuelEconomy.getLitersPer100Km()*/fuelEconomy.getFlow() + \"\\t\" + currentTime + \"\\n\");\n //saving to userCache, consider to use always coarseMode (finemode=false) to limit database updates\n //you can also add if trip is ended (low rpm)\n Bundle b = toBundle(fuelEconomy.getFlow(),speedCommand.getMetricSpeed(),getDistanceDriven(),engineRpmCommand.getRPM(),getFuelUsed());\n Intent i= new Intent(currContext, OBDChangeIntentService.class);\n i.putExtra(\"VehicleData\",b);\n startService(i);\n } catch (IOException e) {\n\n e.printStackTrace();\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n break;\n } catch (InterruptedException e) {\n e.printStackTrace();\n showEnd(kmODO, fuelCons, finalTankLevel);\n e.printStackTrace();\n break;\n } catch (NoDataException e) {\n Log.d(TAG, \"final tankLevel: \" + finalTankLevel);\n\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n e.printStackTrace();\n break;\n } catch (IndexOutOfBoundsException e) {\n fuelResult = \"NO DATA\";\n } catch (Exception e) {\n e.printStackTrace();\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n break;\n }\n\n Log.d(TAG, \"RPM: \" + rpmResult);\n Log.d(TAG, \"Speed: \" + speedResult);\n Log.d(TAG, \"ODO: \" + odometer);\n //publishing results to update the ui\n publishProgress(speedResult, rpmResult, fuelResult, fuelFlow, odometer, consumption);\n if (!connected) {\n Log.d(TAG, \"Disconnect button pressed, terminating...\");\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n break;\n }\n if (!bluetoothSocket.isConnected()) {\n Log.d(TAG, \"Bluetooth not connected, final tankLevel: \" + finalTankLevel);\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n break;\n }\n if (!fineMode) {\n try {\n Thread.sleep(30000);\n //TODO handle better the coarse mode, implementing a service that retrieves data when needed (location update)\n //previousTime = System.currentTimeMillis();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n if (engineRpmCommand.getRPM() < 100) {\n Log.d(TAG, \"Low RPM, final tankLevel: \" + finalTankLevel);\n showEnd(kmODO, fuelCons, finalTankLevel);\n resetUI();\n break;\n }\n }\n }", "@Test\n @Ignore\n public void testDoubleCommand() throws Exception {\n MockPIFrame frame = startSession();\n BrowserRequest browserRequest = frame.getMostRecentRequest();\n\n // 1. driver requests click \"foo\"\n DriverRequest clickFoo = sendCommand(\"click\", \"foo\", \"\");\n sleepForAtLeast(100);\n // 2. before the browser can respond, driver requests click \"bar\"\n DriverRequest clickBar = sendCommand(\"click\", \"bar\", \"\");\n browserRequest.expectCommand(\"click\", \"foo\", \"\");\n browserRequest = frame.sendResult(\"OK\");\n browserRequest.expectCommand(\"click\", \"bar\", \"\");\n frame.sendResult(\"OK\");\n assertEquals(\"click foo result got mangled\", \"OK\", clickFoo.getResult());\n assertEquals(\"click bar result got mangled\", \"OK\", clickBar.getResult());\n }", "public void run(){\n while(!playersConnected){\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n System.out.println(\"KRECEM DALJE\");\n\n\n try {\n gameEndpointService.setPlayersRoll(room);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (EncodeException e) {\n e.printStackTrace();\n }\n gameEndpointService.setOnMove(room,hashMap);\n try {\n gameEndpointService.sendPlayersWhoIsOnMove(room,hashMap,currentMove);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (EncodeException e) {\n e.printStackTrace();\n }\n\n\n\n while(true){\n\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(room.IsOnMovePlayer()==true){\n System.out.println(\"Ukinuo sam se \");\n currentMove++;\n System.out.println(\"Trenutni potez je \"+currentMove);\n if(currentMove==room.getNumberOfPlayers()+1){\n System.out.println(\"Opet sam 1\");\n currentMove=1;\n try {\n gameEndpointService.sendPlayersWhoIsOnMove(room,hashMap,currentMove);\n room.setOnMovePlayer(false);\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (EncodeException e) {\n e.printStackTrace();\n }\n\n }else{\n try {\n gameEndpointService.sendPlayersWhoIsOnMove(room,hashMap,currentMove);\n room.setOnMovePlayer(false);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (EncodeException e) {\n e.printStackTrace();\n }\n }\n\n }\n\n }\n\n }", "public boolean sendCommand(String secret, List<String> command) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(socket.getInputStream()));\n\t\tString salt = reader.readLine();\n\t\tString saltedHash = POPJavaDeamon.getSaltedHash(salt, secret);\n\t\t\n\n\t\tBufferedWriter writer = new BufferedWriter(\n\t\t\t\tnew OutputStreamWriter(socket.getOutputStream()));\n\t\t\n\t\twriter.write(saltedHash+\"\\n\");\n\t\twriter.flush();\n\t\t\n\t\tString connectionStatus = reader.readLine();\n\t\t\n\t\tif(POPJavaDeamon.ERROR_PWD.equals(connectionStatus)){\n\t\t\treader.close();\n\t\t\twriter.close();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Reopen the stream, this time crypted\n\t\treader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(\n\t\t\t\t\t\tnew CipherInputStream(socket.getInputStream(), POPJavaDeamon.createKey(salt, secret, false))));\n\t\t\n\t\tCipher outputCipher = POPJavaDeamon.createKey(salt, secret, true);\n\t\t\n\t\tCipherOutputStream outputCipherStream = new CipherOutputStream(socket.getOutputStream(), \n\t\t\t\toutputCipher);\n\t\t\n\t\twriter = new BufferedWriter(new OutputStreamWriter(outputCipherStream));\n\t\t\n\t\twriter.write(command.size()+\"\\n\");\n\t\tfor(String part: command){\n\t\t\twriter.write(part+\"\\n\");\n\t\t}\n\t\t\n\t\t//HACK: We need to fill the current data block for the cipher, otherwise it wont get sent on flush\n\t\tfor(int i = 0; i < 100; i++){\n\t\t\twriter.write(\"\\n\");\n\t\t}\n\t\t\n\t\twriter.flush();\n\t\t\n\t\tString answer = reader.readLine();\n\t\tSystem.out.println(answer);\n\t\t\n\t\treader.close();\n\t\t\n\t\treturn answer != null && answer.equals(POPJavaDeamon.SUCCESS);\n\t}", "@Test\n public void testSendMessageWithDuplicateReplyID(TestContext context) {\n\n NetClient client = vertx.createNetClient();\n final Async async = context.async();\n\n client.connect(7000, \"localhost\").onComplete(context.asyncAssertSuccess(socket -> {\n\n vertx.eventBus().consumer(\"third-party-receiver\", msg -> context.fail());\n\n final FrameParser parser = new FrameParser(parse -> {\n context.assertTrue(parse.succeeded());\n client.close();\n async.complete();\n });\n\n socket.handler(parser);\n\n\n FrameHelper.sendFrame(\"send\", \"hello\", \"third-party-receiver\", new JsonObject().put(\"value\", \"vert.x\"), socket);\n }));\n }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tString jsonString= HttpUtil.getSmsCheckNum(phoneEt.getText().toString(),UILApplication.sendcount);\r\n\t\t\t\t\t\tUILApplication.sendcount++;\r\n\t\t\t\t\t\tMessage numMsg = handler.obtainMessage();\r\n\t\t\t\t\t\tif(jsonString!=null){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(isNumeric(jsonString)){\r\n\t\t\t\t\t\t\t\tnumMsg.what = 1;\r\n\t\t\t\t\t\t\t\tnumMsg.obj = jsonString;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\tnumMsg.what = 2;\r\n\t\t\t\t\t\t\t\tnumMsg.obj = jsonString;\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\tnumMsg.what = 2;\r\n\t\t\t\t\t\t\tnumMsg.obj = \"验证码发送失败\";\r\n\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\tnumMsg.sendToTarget();\r\n\t\t\t\t\t}", "void doRetry();", "private void prepareSending(final String idx) {\n mSettings = Settings.get(m_context);\n com.klinker.android.send_message.Settings sendSettings = new com.klinker.android.send_message.Settings();\n sendSettings.setMmsc(mSettings.getMmsc());\n sendSettings.setProxy(mSettings.getMmsProxy());\n sendSettings.setPort(mSettings.getMmsPort());\n sendSettings.setUseSystemSending(true);\n mSendTransaction = new Transaction(m_context, sendSettings);\n\n// new WorkingThread(idx).start();\n ApnUtils.initDefaultApns(m_context, new ApnUtils.OnApnFinishedListener() {\n @Override\n public void onFinished() {\n mSettings = Settings.get(m_context, true);\n com.klinker.android.send_message.Settings sendSettings = new com.klinker.android.send_message.Settings();\n sendSettings.setMmsc(mSettings.getMmsc());\n sendSettings.setProxy(mSettings.getMmsProxy());\n sendSettings.setPort(mSettings.getMmsPort());\n sendSettings.setUseSystemSending(true);\n\n mSendTransaction = new Transaction(m_context, sendSettings);\n\n new WorkingThread(idx).start();\n }\n });\n }", "private void sendUpdate(String gameString, int sequenceNo) throws IOException\n\t{\n\t\tfor (Client client : clients)\n\t\t{\n\t\t\t//System.out.println(\"Sending packet to \" + client.toString()); \n\t\t\tUDPSender sender;\n\t\t\ttry {\n\t\t\t\tsender = new UDPSender(client, client.port, gameString, sequenceNo);\n\t\t\t\tThread worker = new Thread(sender);\n\t\t\t\tworker.start();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void sendEntry(Entry entry, int maxSendAttempts) {\n\t\tlogger.debug(\"Sending: {}\", entry);\n\t\tbyte[] data = Data.write.fromEntry(entry);\n\t\tint attempts = 0;\n\t\twhile (attempts++ < maxSendAttempts) {\n\t\t\ttry {\n\t\t\t\tout.write(data);\n\t\t\t\tout.flush();\n\t\t\t\tawait(Data.checksum(data), maxSendAttempts);\n\t\t\t\tout.write(Protocol.OK.value);\n\t\t\t\tout.flush();\n\t\t\t\tawait(Protocol.READY.value, maxSendAttempts);\n\t\t\t\treturn;\n\t\t\t} catch (IoTimeoutException e) {\n\t\t\t\tLevel level = attempts < maxSendAttempts ? Level.INFO : Level.ERROR;\n\t\t\t\tlogger.catching(level, e);\n\t\t\t} catch (IOException e) {\n\t\t\t\tLevel level = attempts < maxSendAttempts ? Level.WARN : Level.ERROR;\n\t\t\t\tlogger.catching(level, e);\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n // If we've sent all the messages\n if (count >= bombAmount)\n {\n SwapSendButton(0);\n }\n // If we get our defuseal text\n if (bombDefuse.equals(SmsListener.messageBody))\n {\n SwapSendButton(0);\n Toast.makeText(getApplicationContext(), \"Bomb Defused\", Toast.LENGTH_SHORT).show();\n }\n else if (count < bombAmount && !bombDefuse.equals(SmsListener.messageBody))\n {\n // a delay of 0 doesn't work IRL\n // So in truth the quickest you can send a text bomb is 1 second apart\n if (delayAmount < 1)\n {\n smsManager.sendTextMessage(phoneNumber, \"ME\", messageToSend, null, null);\n handler.postDelayed(this, ((delayAmount + 1) * 1000));\n ++count;\n }\n else\n {\n smsManager.sendTextMessage(phoneNumber, \"ME\", messageToSend, null, null);\n handler.postDelayed(this, (delayAmount * 1000));\n ++count;\n }\n }\n }", "@Step\n public void waitUntilSmsCodeWillBeSent(){\n Utils.waitABit(3);\n actionWithWebElements.waitVisibilityOfElement(confirmationCodeFromSmsHeader);\n actionWithWebElements.waitVisibilityOfElement(confirmationSmsCodeInput);\n }", "@Override\n public void run() {\n if (secondes-- <= 0) {\n btnSendCode.setClickable(true);\n btnSendCode.setBackgroundColor(GoagalInfo.getInItInfo().androidColor);\n btnSendCode.setText(\"发送验证码\");\n return;\n }\n btnSendCode.setClickable(false);\n btnSendCode.setText(\"重新发送(\" + secondes + \")\");\n btnSendCode.setBackgroundColor(Color.GRAY);\n handler.postDelayed(this, 1000);\n }", "boolean waitForConfirmationOnAll(int timeout_ms) throws IOException;", "@Test\n\tpublic void runSend(){\n\t\tstandard();\n\t}", "public void sendDone()\n\t{\n\t\tmSendBusy = false;\n\t\tStatistics.numPacketsSent++;\n\t\tmWriteHandler.call(mHandlerArg);\n\t}", "@Override\n public void run() {\n while (isRun) {\n count--;\n handler.sendEmptyMessage(10);\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n }\n }\n }", "public static void continueChat()\r\n {\r\n do\r\n {\r\n NPCChat.clickContinue(true);\r\n General.sleep(300, 450);\r\n }\r\n while (NPCChat.getClickContinueInterface() != null);\r\n General.sleep(300, 350);\r\n }", "private void checkRetries(final int counter) throws InterruptedException {\n\t\tif (counter > retries) {\n\t\t\tthrow new IllegalStateException(\"Remote server did not started correctly\");\n\t\t}\n\t\tThread.sleep(2000);\n\t}", "public void mo1533b() {\n C2201w.m8371a((int) C0965R.string.ota_send_success, 1);\n this.f3965a.f4003i.mo1526d();\n }", "private void handleCompleteCommand(Command command) {\n if (command.getCommandStatus() == CommandStatus.COMPLETE) {\n List<Frame> frames = commandToFrames(command);\n frames.forEach(frame -> connection.addFrameToSend(frame));\n } else {\n //throw exception\n }\n }", "private void sendMessage(JSONArray parameter) {\n String msg = \"\";\n if (parameter.size() > 1) {\n for (int i = 1; i < parameter.size(); i++) {\n msg = msg + parameter.get(i).toString();\n }\n Client xClient = MailboxServer.getClientX((String) parameter.get(0));\n JSONObject j = new JSONObject();\n\n j.put(\"sequence\", ++sequence);\n j.put(\"response\", msg);\n\n if (xClient != null) {\n try {\n PrintWriter xOutput = new PrintWriter(xClient.getClientSocket().getOutputStream());\n xOutput.println(j);\n xOutput.flush();\n } catch (IOException ex) {\n }\n } else {\n failedClientResponse(\"Client doesent exist!\");\n }\n clientResponse(\"Message sent! 200- OK\");\n }\n }", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tcancelsent=0;\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"About to get out\",\"before sending kickmeout\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(dos!=null)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(ispeak==1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ispeak=0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdos.writeUTF(\"kick_me_out_speaking\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"Kick me\",\"KICKED SPEAKING\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tdos.writeUTF(\"kick_me_out_waiting\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tdos.writeUTF(TestConnection.macid);\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"Kick me\",\"KICKED WAITING\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\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\tcancelsent=1;\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\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\trecSocket.close();\n\t\t\t\t\t\t\t\t\t\t\t\t\tLog.e(\"closing\", \"socket closed\");\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void execute() {\n\t\tfinal Component KNIFE = CONSTS.KNIFE_CLICK;\n\t\tfinal Component FLETCH_BUTTON = CONSTS.FLETCH_BUTTON;\n\t\t// get random log from inventory\n\t\tfinal Item log = ctx.backpack.id(CONSTS.fletching.getId()).shuffle().poll();\n\t\t// interact with log\n\t\tif(log.interact(\"Craft\")) {\n\t\t\tCondition.wait(new Callable<Boolean>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\t\treturn KNIFE.valid() && KNIFE.visible();\n\t\t\t\t}\n\t\t\t},200,3);\n\t\t\tif(KNIFE.valid() && KNIFE.visible()) {\n\t\t\t\t// click on knife in popup menu\n\t\t\t\tif(KNIFE.click()) {\n\t\t\t\t\t// wait for fletch button to open up\n\t\t\t\t\tCondition.wait(new Callable<Boolean> () {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\t\t\t\treturn FLETCH_BUTTON.visible() && FLETCH_BUTTON.valid();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t// if the buttons visible\n\t\t\t\t\tif(FLETCH_BUTTON.visible() && FLETCH_BUTTON.valid()) {\n\t\t\t\t\t\t// if it still needs to select the menu item\n\t\t\t\t\t\tif(first) {\n\t\t\t\t\t\t\tfinal Component itemchoice = evaluateIndexes(CONSTS.method);\n\t\t\t\t\t\t\tif(itemchoice.visible() && itemchoice.valid()) {\n\t\t\t\t\t\t\t\titemchoice.click(\"Select\");\n\t\t\t\t\t\t\t\tfirst = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(CONSTS.FLETCH_BUTTON.click()) {\n\t\t\t\t\t\t\t// wait to fletch the logs\n\t\t\t\t\t\t\tCondition.wait(new Callable<Boolean>() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\t\t\t\t\t\treturn ctx.backpack.id(CONSTS.fletching.getId()).isEmpty();\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// if it took us directly to the fletching interface\n\t\t\t} else if(FLETCH_BUTTON.visible() && FLETCH_BUTTON.valid()) {\n\t\t\t\t// if it still needs to select the menu item\n\t\t\t\tif(first) {\n\t\t\t\t\tfinal Component itemchoice = evaluateIndexes(CONSTS.method);\n\t\t\t\t\tif(itemchoice.visible() && itemchoice.valid()) {\n\t\t\t\t\t\titemchoice.click(\"Select\");\n\t\t\t\t\t\tfirst = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(FLETCH_BUTTON.click()) {\n\t\t\t\t\t// wait to fletch the logs\n\t\t\t\t\tCondition.wait(new Callable<Boolean>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\t\t\t\treturn ctx.backpack.id(CONSTS.fletching.getId()).isEmpty();\n\t\t\t\t\t\t}\t\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void command(){\n out.println(\"Enter command: \");\n String comInput = in.nextLine();\n\n if (comInput.toLowerCase().equals(\"vote\")) {\n voteCommand();\n }else if (comInput.toLowerCase().equals(\"trade\")){\n tradeCommand();\n }else if (comInput.toLowerCase().equals(\"next\")){\n out.println(waitPrint());\n await();\n// nextRound();\n }else if(comInput.toLowerCase().equals(\"logout\")){\n// login = false;\n logout();\n }\n }", "public void send() {\n\t}", "@Override\n public void run() {\n Gson gson = new Gson();\n view.setCanPass(false);\n view.timeout();\n SimpleMessage passMessage = new SimpleMessage(view.getOwnerNick());\n String message = gson.toJson(passMessage, SimpleMessage.class);\n MessageEnvelope envelope = new MessageEnvelope(MessageType.PASS, message);\n Command.sendMessage(gson.toJson(envelope, MessageEnvelope.class));\n }", "protected void succeed(String message) throws InvalidKeyException {\n task.succeed(message);\n }", "@Override\n public void execute() {\n vars.setState(\"Teleporting...\");\n Methods.teleToFlameKing();\n }", "@Override\n public boolean sendCommand(String command) throws NotYetConnectedException {\n if(!isConnected)\n throw new NotYetConnectedException();\n\n cmdId += 1;\n String signedCommand = String.format(\"%s id=%s\", command, cmdId);\n\n out.println(signedCommand);\n return processReply(cmdId);\n }", "public static void main(String[] args) throws IOException {\n NetworksClient client = new NetworksClient();\n client.startConnection(\"127.0.0.1\", 18741);\n \n System.out.println(\"Enter a command:\");\n while(true){\n Scanner input = new Scanner(System.in);\n String message = input.nextLine();\n\n if(\".\".equals(message)){\n client.stopConnection();\n return;\n }\n\n String response = client.sendMessage(message);\n\n System.out.println(\"From server: \" + response);\n }\n }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tif(new String(buffer).equals(\"WRONG\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"wrong password\", Toast.LENGTH_LONG).show();\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(new String(buffer).equals(\"ACCEPT\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"ACCEPTED\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Test\r\n\t\tvoid testNormalMessage() throws InterruptedException {\n\t\t\tassumeTrue(MAX_NUMBERS_OF_USERS >= 4, \"Client number must be >= 4.\");\r\n\r\n\t\t\tString privateMessageRecepientList = \"\";\r\n\t\t\tfor (int i = 1; i <= NUMBER_OF_PRIVATE_MSG_RECEPIENTS; i++) {\r\n\t\t\t\tString userName = USER_NAME_PREFIX + i;\r\n\t\t\t\tprivateMessageRecepientList += ((i != 1) ? CMDULDLM : \"\") + userName;\r\n\t\t\t}\r\n\r\n\t\t\tString chatMessage = MESSAGE_PREFIX + 0;\r\n\t\t\tString privateCommand = \"\" + CMDPRVMSG + CMDDLM + CMDUDLM + privateMessageRecepientList + CMDUDLM + CMDDLM\r\n\t\t\t\t\t+ chatMessage;\r\n\r\n\t\t\tchatClientPresenterStorage[0].sendCommand(privateCommand);\r\n\t\t\tTimeUnit.MILLISECONDS.sleep(OPERATION_DELAY);\r\n\r\n\t\t\tnew Verifications() {\r\n\t\t\t\t{\r\n\t\t\t\t\tchatClientPresenterStorage[0].getView().onSendMessage();\r\n\t\t\t\t\ttimes = 1;\r\n\r\n\t\t\t\t\tString expectedMessage = USER_NAME_PREFIX + 0 + \": \" + chatMessage;\r\n\t\t\t\t\tString actualMessage;\r\n\t\t\t\t\tfor (int i = 0; i <= NUMBER_OF_PRIVATE_MSG_RECEPIENTS; i++) {\r\n\t\t\t\t\t\tchatClientPresenterStorage[i].getView().onReceiveMessage(actualMessage = withCapture());\r\n\t\t\t\t\t\tassertTrue(actualMessage.contains(expectedMessage),\r\n\t\t\t\t\t\t\t\t\"Clients in recepient list must receive private message. But received \"\r\n\t\t\t\t\t\t\t\t\t\t+ actualMessage);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Checking that last user not received the private message. The statement\r\n\t\t\t\t\t// 'times = 1' means getting only one welcome login message initiated by\r\n\t\t\t\t\t// sequential clients startup.\r\n\t\t\t\t\tchatClientPresenterStorage[MAX_NUMBERS_OF_USERS - 1].getView()\r\n\t\t\t\t\t\t\t.onReceiveMessage(actualMessage = withCapture());\r\n\t\t\t\t\ttimes = 1;\r\n\t\t\t\t\tSystem.out.println(actualMessage);\r\n\t\t\t\t\tassertFalse(actualMessage.contains(expectedMessage),\r\n\t\t\t\t\t\t\t\"Last client must not receive private message. But received \" + actualMessage);\r\n\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(4000);\r\n\t\t\t\t\t\tif (!isOperationDone) {\r\n\t\t\t\t\t\t\tMessage msg = mHandler.obtainMessage(BleService.INIT_PASSWORD);\r\n\t\t\t\t\t\t\t/*Bundle data = new Bundle();\r\n\t\t\t\t\t\t\tdata.putString(BleService.RESULT, BleService.FAIL);\r\n\t\t\t\t\t\t\tmsg.setData(data);*/\r\n\t\t\t\t\t\t\tmsg.sendToTarget();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "@Override\n\t\tpublic void asyncSendSuccess(long id) throws ConnectorException {\n\t\t\t\n\t\t}", "protected byte[] send(byte[] cmd) throws CommunicationException {\n return send(cmd, true);\n }", "public void sendRemainData();", "private void SendCommandOrKeys(int viewID, String data)\n\t{\n\t\tif (mCommandManager == null)\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tif (viewID == VIEW_ID_COMMAND)\n\t\t{\n // In put case, select file\n if (data.contains(\"!put\"))\n {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"*/*\");\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n mPutCommand = data;\n\n try\n {\n startActivityForResult(Intent.createChooser(intent, \n\t\t\t\t\t\t\"Select a File\"), CHOOSE_FILE_TO_UPLOAD);\n } catch (android.content.ActivityNotFoundException ex)\n {\n ex.printStackTrace();\n }\n\n return ;\n }\n\n\t\t\tmCommandManager.SendCommand(data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tAddMsgToKeyView(viewID, \"remote> \" + data + \"\\n\");\n\n if (data.equals(\"!autotest\"))\n {\n // Run android autotest\n AddMsgToKeyView(viewID, \"remote> wait until the test ends\\n\");\n RunAutoTest();\n }\n else if (data.equals(\"!pintest\"))\n {\n // Run android autotest\n AddMsgToKeyView(viewID, \"remote> wait until the test ends\\n\");\n RunPinTest();\n }\n else if (data.equals(\"!stoptest\"))\n {\n mStopTest = true;\n }\n else\n {\n mCommandManager.SendKey(data);\n }\n\t\t}\t\t\n\t}", "@Override\n\t\t\tpublic Boolean execute() throws EvrythngException {\n\t\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\t\ttry {\n\t\t\t\t\t// Execute request (response status code will be automatically checked):\n\t\t\t\t\treturn command.execute(client) != null;\n\t\t\t\t} finally {\n\t\t\t\t\tcommand.shutdown(client);\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic boolean execute() {\n\t\t\n\t\tRecieve recieve = new Recieve(this.simulation, this.getFinishingTime() + Parameters.getNetworkDelay() , this.destinationID) ;\n\t\tthis.simulation.schedule(recieve);\n\t\t\n\n\t\treturn true ; \n\t\t\n\t}" ]
[ "0.62264454", "0.6073031", "0.6054927", "0.6044903", "0.59716046", "0.5936907", "0.5913834", "0.5776307", "0.5743227", "0.5717353", "0.5674061", "0.5640098", "0.56232727", "0.5618026", "0.5602935", "0.5591535", "0.5579656", "0.5577691", "0.55428004", "0.55258226", "0.55120635", "0.5497203", "0.54924506", "0.5469911", "0.5468119", "0.54628664", "0.5458621", "0.5433523", "0.54085886", "0.53981006", "0.5395658", "0.5393195", "0.53883463", "0.53611815", "0.53444225", "0.5339914", "0.5320927", "0.53158355", "0.53127366", "0.53066605", "0.53058934", "0.52953976", "0.52746797", "0.52681816", "0.526084", "0.52559656", "0.52543825", "0.5246128", "0.5227461", "0.5219155", "0.5212857", "0.5211693", "0.52078223", "0.520318", "0.5201416", "0.5199792", "0.5193064", "0.51888293", "0.51886386", "0.518561", "0.51845014", "0.51838493", "0.517936", "0.5179156", "0.517858", "0.51729137", "0.5172877", "0.5170475", "0.5157721", "0.51566243", "0.51420766", "0.5139361", "0.5131432", "0.512559", "0.51150185", "0.5112315", "0.51092136", "0.510782", "0.5104343", "0.51031554", "0.50969183", "0.5096218", "0.50926006", "0.50912666", "0.5074886", "0.5074003", "0.5073801", "0.5073366", "0.50710297", "0.5067727", "0.5066082", "0.50651354", "0.50555986", "0.505437", "0.50537646", "0.5053382", "0.50526005", "0.50509083", "0.5050478", "0.5049914" ]
0.5131585
72
Populate a field with foxes and rabbits.
public void populate(Field field, List<Actor> actors) { field.clear(); for (int row = 0; row < field.getDepth(); row++) { for (int col = 0; col < field.getWidth(); col++) { ActorFactory actorFactory = AbstractActorFactory.create(); if(actorFactory != null) { Actor actor = actorFactory.create(row, col); if (actor != null) { actors.add(actor); field.place(actor, row, col); } } // else leave the location empty. } } Collections.shuffle(actors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n if (iFieldSeq == 0)\n field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new StringField(this, DESCRIPTION, 10, null, null);\n //if (iFieldSeq == 4)\n // field = new CityField(this, CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 5)\n // field = new CityField(this, TO_CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 6)\n // field = new ContinentField(this, CONTINENT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 7)\n // field = new RegionField(this, REGION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 8)\n // field = new CountryField(this, COUNTRY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 9)\n // field = new StateField(this, STATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 10)\n // field = new VendorField(this, VENDOR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 13)\n // field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 14)\n // field = new ShortField(this, PAX, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)2));\n //if (iFieldSeq == 15)\n // field = new HotelScreenRecord_LastChanged(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 16)\n // field = new BooleanField(this, REMOTE_QUERY_ENABLED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 17)\n // field = new ShortField(this, BLOCKED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 18)\n // field = new ShortField(this, OVERSELL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 19)\n // field = new BooleanField(this, CLOSED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 20)\n // field = new BooleanField(this, DELETE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 21)\n // field = new BooleanField(this, READ_ONLY, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 22)\n // field = new ProductSearchTypeField(this, PRODUCT_SEARCH_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 23)\n // field = new ProductTypeField(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 24)\n field = new PaxCategorySelect(this, PAX_CATEGORY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }", "public static void updateField() {\r\n\t\tfor (int i = 0; i < ROWS; i++) {\r\n\t\t\tfor (int j = 0; j < COLUMNS; j++) {\r\n\t\t\t\tfield[i][j] = EMPTY;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < food.size(); i++) {\r\n\t\t\tfield[food.get(i)[1]][food.get(i)[2]] = food.get(i)[0];\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < snake.size(); i++) {\r\n\t\t\tfield[snake.get(i)[0]][snake.get(i)[1]] = SNAKE;\r\n\t\t}\r\n\t}", "private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}", "private BattleField sampleField() {\n BattleField field = new BattleField(10, 10);\n Ship boat = new Boat();\n Ship submarine1 = new Submarine();\n Ship destroyer = new Destroyer();\n Ship submarine2 = new Submarine();\n\n field.put(4, 8, boat);\n field.put(5, 1, submarine1);\n field.put(1, 4, destroyer);\n field.put(6, 5, submarine2);\n\n return field;\n }", "@Test\n public void createWithFieldBuilder() throws Exception {\n Document doc = new Document();\n\n // A convenient way of adding text content to a document is with a document builder.\n DocumentBuilder builder = new DocumentBuilder(doc);\n builder.write(\" Hello world! This text is one Run, which is an inline node.\");\n\n // Fields have their builder, which we can use to construct a field code piece by piece.\n // In this case, we will construct a BARCODE field representing a US postal code,\n // and then insert it in front of a Run.\n FieldBuilder fieldBuilder = new FieldBuilder(FieldType.FIELD_BARCODE);\n fieldBuilder.addArgument(\"90210\");\n fieldBuilder.addSwitch(\"\\\\f\", \"A\");\n fieldBuilder.addSwitch(\"\\\\u\");\n\n fieldBuilder.buildAndInsert(doc.getFirstSection().getBody().getFirstParagraph().getRuns().get(0));\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.CreateWithFieldBuilder.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.CreateWithFieldBuilder.docx\");\n\n TestUtil.verifyField(FieldType.FIELD_BARCODE, \" BARCODE 90210 \\\\f A \\\\u \", \"\", doc.getRange().getFields().get(0));\n\n Assert.assertEquals(doc.getFirstSection().getBody().getFirstParagraph().getRuns().get(11).getPreviousSibling(), doc.getRange().getFields().get(0).getEnd());\n Assert.assertEquals(MessageFormat.format(\"BARCODE 90210 \\\\f A \\\\u {0} Hello world! This text is one Run, which is an inline node.\", ControlChar.FIELD_END_CHAR),\n doc.getText().trim());\n }", "static void initSample2(){\n // put values into the sField\n sField[0][0] = \"X\";\n sField[0][1] = \"X\";\n sField[0][3] = \"O\";\n sField[0][4] = \"X\";\n sField[0][5] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\";\n sField[1][8] = \"O\";\n }", "public void initField() {\n gameField = new char[SIZE][SIZE];\n for (int i = 0; i < SIZE * SIZE; i++) {\n gameField[i / SIZE][i % SIZE] = EMPTY;\n }\n }", "private static void initField() {\n\t\tfield = new Field(nRows, nColumns);\n\t\tfor (int i = 0; i < field.getNRows(); i++)\n\t\t\tfor (int j = 0; j < field.getNColumns(); j++) {\n\t\t\t\tfield.place(i, j, new Cell(i, j, cellSize, 0));\n\t\t\t}\n\t\t/* Sets some of the cells to be mine randomly */\n\t\tfor (int i = 0; i < nMines; i++) {\n\t\t\tint x = rand.nextInt(nRows);\n\t\t\tint y = rand.nextInt(nColumns);\n\t\t\tif (!field.getCellAt(x, y).hasMine()) // If the cell at (x,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// y)is not a mine\n\t\t\t\tfield.getCellAt(x, y).setToHasMine();// Sets it to be a mine\n\t\t\telse\n\t\t\t\ti--;\n\t\t}\n\t\t/* Calculates the flag of other cells */\n\t\tfor (int i = 0; i < nRows; i++)\n\t\t\tfor (int j = 0; j < nColumns; j++) {\n\t\t\t\tif (field.getCellAt(i, j).hasMine()) // If this cell has a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mine\n\t\t\t\t\tcontinue;\n\t\t\t\tCell[] cellsAround = field.getCellsAround(i, j);\n\t\t\t\tint count = 0;\n\t\t\t\tfor (Cell cell : cellsAround) // cells around\n\t\t\t\t\tif (cell.hasMine())\n\t\t\t\t\t\tcount++;\n\t\t\t\tfield.getCellAt(i, j).setFlag(count);\n\t\t\t}\n\t}", "static void initSample1(){\n // put values into the sField\n sField[0][0] = \"X\";\n sField[0][1] = \"X\";\n sField[0][3] = \"X\";\n sField[0][4] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \"O\";\n sField[1][8] = \"O\";\n }", "public void setBitField(byte[] byteField){\n \tbitField.setBitField(byteField);;\n }", "public void visit(BitField bf);", "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }", "@Override\n\tprotected void initializeFields() {\n\n\t}", "static void initSample4(){\n // put values into the sField\n sField[5][4] = \"X\";\n sField[4][5] = \".\";\n sField[3][6] = \"X\";\n sField[2][7] = \"X\";\n sField[1][8] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\"; \n }", "public Builder setField1978Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1978_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void visit(BitField bf) {\n\t\tSystem.out.println(\"process bitfield\");\n\t\tpieces = new ArrayList<Integer>();\n\t\tbyte[] body = bf.getBody();\n\t\t// boucle afficher body\n\t\t/*\n\t\t * byte b, mask2 = 0x01; for (int i = 0; i < body.length; i++) { b =\n\t\t * body[i]; for (int j = 0; j < 8; j++) { if ((b & mask2) == 0) {\n\t\t * System.out.println(0); } else { System.out.println(1); } } }\n\t\t */\n\t\t// boucle afficher body\n\t\tint mask;\n\t\tfor (int i = 0; i < body.length; i++) {\n\t\t\tmask = body[i];\n\t\t\tfor (int j = 0; j < 8; j++) {\n\t\t\t\tif ((mask & 0x80) != 0) {\n\t\t\t\t\tpieces.add(j + (i * 8));\n\t\t\t\t}\n\t\t\t\tmask = mask << 1;\n\t\t\t}\n\t\t}\n\t\tph.setPeerPieces(pieces);\n\t\tSystem.out.println(pieces.size());\n\t\t// for(Integer i : pieces) {\n\t\t// System.out.println(\"bitfield : \" + i);\n\t\t// }\n\t\tSystem.out.println(\"taille bitfield : \" + pieces.size());\n\t}", "public BinaryField(JNIBinaryField field)\n\t{\n\t\tsetInternal(field);\n\t}", "@Override\r\n\tpublic void initializeBoard() {\r\n\t\t\r\n\t\tfor(int i = 0; i < FieldData.FIELDNAME_DATA.length; i++){\r\n\t\t\tswitch(FieldData.FIELDTYPE_DATA[i]){\r\n\t\t\tcase REFUGE:\r\n\t\t\t\tfields[i] = new Refuge.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"get\", 0) + \" \" + FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase TAX:\r\n\t\t\t\tfields[i] = new Tax.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"pay\", 0) + \" \" + FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase TERRITORY:\r\n\t\t\t\tfields[i] = new Street.Builder()\r\n\t\t\t\t.setBgColor(FieldData.fieldColor[i])\r\n\t\t\t\t.build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"territory\", 0) + \" \" +FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase LABOR_CAMP:\r\n\t\t\t\tfields[i] = new Brewery.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"laborCamp\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\tcase FLEET:\r\n\t\t\t\tfields[i] = new Shipping.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"fleet\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\tcase PRISON:\r\n\t\t\t\tfields[i] = new Jail.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"fine\", 0)+ \" \" + \"Kr. 1000\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase START:\r\n\t\t\t\tfields[i] = new Start.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"bonus\", 0) + \" \" + \"Kr. 4000\");\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase LUCKYCARD:\r\n\t\t\t\tfields[i] = new Chance.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"lucky\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tfields[i].setTitle(String.valueOf(i+1));\r\n\t\t\tfields[i].setSubText(reader.getElement(FieldData.FIELDNAME_DATA[i], 0));\r\n\t\t}\r\n\t\tGUI.create(fields);\r\n\t}", "private void initFPFields(){\n\t\t\n\t\tField input = new Field(\"Input\", Type.String, false, this, \"Input\");\n\t\tinput.addChild(new Field(\"Type\", Type.String, false, this, \"Input\"));\n\t\tinitComplexity(input);\n\t\t\n\t\tField query = new Field(\"Query\", Type.String, false, this, \"Query\");\n\t\tquery.addChild(new Field(\"Query\", Type.String, false, this, \"Query\"));\n\t\tinitComplexity(query);\n\t\t\n\t\tField output = new Field(\"Output\", Type.String, false, this, \"Output\");\n\t\toutput.addChild(new Field(\"Output\", Type.String, false, this, \"Output\"));\n\t\tinitComplexity(output);\n\t\t\n\t\tField data = new Field(\"Internal Data\", Type.String, false, this, \"Internal Data\");\n\t\tdata.addChild(new Field(\"Internal Data\", Type.String, false, this, \"Internal Data\"));\n\t\tinitComplexity(data);\n\t\t\n\t\tField reference = new Field(\"External Data\", Type.String, false, this, \"External Data\");\n\t\treference.addChild(new Field(\"External Data\", Type.String, false, this, \"External Data\"));\n\t\tinitComplexity(reference);\n\t\t\n\t\t\t\n\t\t_fpParameters.addChild(input);\n\t\t_fpParameters.addChild(query);\n\t\t_fpParameters.addChild(output);\n\t\t_fpParameters.addChild(data);\n\t\t_fpParameters.addChild(reference);\n\t\t\n\t\t_projectFields.add(_fpParameters);\n\t\t\n\n\t\tinitInfluence(\"Verflechtung\");\n\t\tinitInfluence(\"Dezentrale Daten\");\n\t\tinitInfluence(\"Transaktionsrate\");\n\t\tinitInfluence(\"Rechenoperationen\");\n\t\tinitInfluence(\"Kontrollverfahren\");\n\t\tinitInfluence(\"Ausnahmeregelungen\");\n\t\tinitInfluence(\"Logik\");\n\t\tinitInfluence(\"Wiederverwendbarkeit\");\n\t\tinitInfluence(\"Datenbestandskonvertierung\");\n\t\tinitInfluence(\"Anpassbarkeit\");\n\t\t\n\t\t_projectFields.add(_fpInfluences);\n\t}", "static void initSample3(){\n // put values into the sField\n sField[3][6] = \"X\";\n sField[4][6] = \"X\";\n sField[5][6] = \"X\";\n sField[6][6] = \"X\";\n sField[7][6] = \".\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\";\n sField[1][8] = \"O\";\n }", "public interface BitField {\n\n /**\n * @return the size of the field\n */\n int size();\n\n /**\n * set all values of the BitField with the rightmost value being index 0 (LSB).\n * example set(0,0,0,1) would set bit0 == 1 and bit3 == 0\n *\n * @param values the values to set the BitField (only 0 and 1 are accepted)\n * @return the BitField\n */\n void setBits(int... values);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value true == 1, false == 0\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, boolean value);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value (only 0 and 1 are accepted)\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, int value);\n\n /**\n * replace all values of the bitfield with this integer value\n *\n * @param val\n * @return\n */\n void setToValue(int val);\n\n /**\n * invert all the bits\n */\n void invertAllBits();\n\n /**\n * get a given bit as a boolean\n *\n * @param index\n * @return a boolean for the bit (true == 1, false == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n boolean getBit(int index);\n\n /**\n * get a given bit as a 0 or 1\n *\n * @param index\n * @return a value for the bit (1 == 1, 0 == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n int getBitAsInt(int index);\n\n /**\n * get the field as an integer\n *\n * @return the int value of the bitfield\n */\n int intValue();\n\n /**\n * return a nice string representation of the field\n *\n * @return\n */\n String asString();\n\n /**\n * get the LSBs of the BitField (if possible)\n *\n * @param digits the number of LSBs to return\n * @return a new BitField of the LSBs\n */\n BitField getLSBs(int digits);\n\n /**\n * get the MSBs of the BitField (if possible)\n *\n * @param digits the number of MSBs to return\n * @return a new BitField of the MSBs\n */\n BitField getMSBs(int digits);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (max is the size-1 of the field)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubField(int from, int to);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (if > size then we pad with 0's)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubFieldWithPadding(int from, int to);\n\n /**\n * a convenience method to add to the LS Bits of the BitField.\n * this will resize the BitField, shift everything to the left and insert\n * the new BitField\n *\n * @param fieldToAddToTheRight\n */\n void shiftAndAddToRight(BitField fieldToAddToTheRight);\n\n /**\n * shift to the left and pad the new LSBs with 0's\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftLeft(int numberToShift);\n\n /**\n * shift to the right and have the LSBs dissapear\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftRight(int numberToShift);\n\n /**\n * resize, but trimming/adding to the MSB side\n * <p>\n * if newSize > currentSize, we pad with 0's on the MSBs\n * if newSize < currentSize, we simply drop the bits on the left\n *\n * @param newSize the new size of the BitField\n */\n void resize(int newSize);\n\n /**\n * copy the BitField\n *\n * @return a copy of the bitField\n */\n BitField copy();\n\n /**\n * convert the bit field and return as a collection of bytes made up from the BitField from the LSB to the MSB. Padding in the MSB if needed\n * (byte == 8 bits).\n * <p>\n * For example:\n * 00001000 would return a list with a single byte value of 8\n * 1000001000 would return a list with the first value being a byte with a value of 8, then one with a value of 2\n *\n * @return a collection with the LSB in position 0 and the MSB as the last value\n */\n List<Byte> getAsBytes();\n\n}", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "public void setFields(entity.APDExposureField[] value);", "public void genField() {\n\t\tint mines = (int)(height * width * .1);\r\n\t\tRandom random = new Random();\r\n\t\tint x;\r\n\t\tint y;\r\n\t\tint i = 0;\r\n\t\twhile(i < mines) {\r\n\t\t\tx = random.nextInt(width);\r\n\t\t\ty = random.nextInt(height);\r\n\t\t\tif(cells.get(x).get(y).getValue() != -1) {\r\n\t\t\t\tcells.get(x).get(y).setValue(-1);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(x = 0; x < width; x++) {\r\n\t\t\tfor(y = 0; y < height; y++) {\r\n\t\t\t\tif(cells.get(x).get(y).getValue() != -1) {\r\n\t\t\t\t\tprocessCell(x, y); //generate cell number\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}", "public ChangeFieldEf() {\r\n\t\tthis(null, null);\r\n\t}", "final void mo6078b() {\n if (this.f2346p == null) {\n C0926z c0926z = this.f2341d == Integer.class ? f2331i : this.f2341d == Float.class ? f2332j : null;\n this.f2346p = c0926z;\n }\n if (this.f2346p != null) {\n this.f2342e.f2296f = this.f2346p;\n }\n }", "Field() {\n value = 0;\n }", "private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }", "public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n //if (iFieldSeq == 0)\n // field = new TicketScreenRecord_ReportDate(this, REPORT_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new TicketScreenRecord_ReportTime(this, REPORT_TIME, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new TicketScreenRecord_ReportUserID(this, REPORT_USER_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new ShortField(this, REPORT_PAGE, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)1));\n //if (iFieldSeq == 4)\n // field = new IntegerField(this, REPORT_COUNT, Constants.DEFAULT_FIELD_LENGTH, null, new Integer(0));\n //if (iFieldSeq == 5)\n // field = new CurrencyField(this, REPORT_TOTAL, Constants.DEFAULT_FIELD_LENGTH, null, new Double(0));\n //if (iFieldSeq == 6)\n // field = new IntegerField(this, REPORT_KEY_AREA, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 7)\n field = new ShortField(this, COUNT, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 8)\n field = new CurrencyField(this, TOTAL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 9)\n field = new TicketReportOrderField(this, REPORT_ORDER, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 10)\n field = new DateField(this, START_DEPARTURE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new DateField(this, END_DEPARTURE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new DateField(this, START_ISSUE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 13)\n field = new DateField(this, END_ISSUE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 14)\n field = new BooleanField(this, INCLUDE_VOID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 15)\n field = new AirlineField(this, AIRLINE_1ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 16)\n field = new AirlineField(this, AIRLINE_2ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 17)\n field = new AirlineField(this, AIRLINE_3ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 18)\n field = new AirlineField(this, AIRLINE_4ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 19)\n field = new StringField(this, START_TICKET, 20, null, null);\n if (iFieldSeq == 20)\n field = new StringField(this, END_TICKET, 20, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }", "private void arretes_fB(){\n\t\tthis.cube[22] = this.cube[19]; \n\t\tthis.cube[19] = this.cube[21];\n\t\tthis.cube[21] = this.cube[25];\n\t\tthis.cube[25] = this.cube[23];\n\t\tthis.cube[23] = this.cube[22];\n\t}", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addField(Field f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "@Override\n public void doPopulateInstance(Object mockInstance, Field field, Object value) throws Throwable {\n Object currentObject = value;\n if (currentObject == null) {\n int recurseTimes = getInstanceFieldRecurseTimes(mockInstance, field);\n // recursion times\n if (recurseTimes++ == getProperties().getRevisionTimes()) {\n RECURSION_INSTANCE_FIELD_MAP.remove(mockInstance);\n return;\n }\n addInstanceFieldRecurseTimes(mockInstance, field, recurseTimes);\n }\n\n // populate attributes\n currentObject = mockValue(field.getType(), mockInstance, value);\n\n // prevent reflection exceptions for recursions\n if (mockInstance == currentObject) {\n currentObject = JsonUtils.deepCopy(currentObject);\n }\n\n field.set(mockInstance, currentObject);\n\n // need to clear the recursion times in finally\n clearMockInstanceRecurseTimes();\n }", "private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }", "public Field(ArrayList<Card> field) {\r\n\t\t// 9 cards in the initial active row\r\n\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\tCard starter = field.get(0);\r\n\t\t\tstarter.makeActive();\r\n\t\t\tstarter.setPosition(10 + i * 90, 300);\r\n\t\t\tset1.add(starter);\r\n\t\t\tsetFirstLevelSubcards(i);\r\n\t\t\tfield.remove(0);\r\n\t\t}\r\n\t\t// 8 cards in the upper second row\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\tCard c = field.get(0);\r\n\t\t\tc.setPosition(65 + i * 90, 220);\r\n\t\t\tset2a.add(c);\r\n\t\t\tfield.remove(0);\r\n\t\t}\r\n\t\t// 8 cards in the lower second row\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\tCard c = field.get(0);\r\n\t\t\tc.setPosition(65 + i * 90, 380);\r\n\t\t\tset2b.add(c);\r\n\t\t\tsetSecondLevelSubcards(i);\r\n\t\t\tfield.remove(0);\r\n\t\t}\r\n\t\t// 4 cards in the upper third row\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tCard c = field.get(0);\r\n\t\t\tc.setPosition(100 + i * 180, 140);\r\n\t\t\tset3a.add(c);\r\n\t\t\tfield.remove(0);\r\n\t\t}\r\n\t\t// 4 cards in lower third row\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tCard c = field.get(0);\r\n\t\t\tc.setPosition(100 + i * 180, 460);\r\n\t\t\tset3b.add(c);\r\n\t\t\tfield.remove(0);\r\n\t\t}\r\n\r\n\t}", "@Test\n public void fieldBuilder() throws Exception {\n Document doc = new Document();\n\n // Below are three examples of field construction done using a field builder.\n // 1 - Single field:\n // Use a field builder to add a SYMBOL field which displays the ƒ (Florin) symbol.\n FieldBuilder builder = new FieldBuilder(FieldType.FIELD_SYMBOL);\n builder.addArgument(402);\n builder.addSwitch(\"\\\\f\", \"Arial\");\n builder.addSwitch(\"\\\\s\", 25);\n builder.addSwitch(\"\\\\u\");\n Field field = builder.buildAndInsert(doc.getFirstSection().getBody().getFirstParagraph());\n\n Assert.assertEquals(field.getFieldCode(), \" SYMBOL 402 \\\\f Arial \\\\s 25 \\\\u \");\n\n // 2 - Nested field:\n // Use a field builder to create a formula field used as an inner field by another field builder.\n FieldBuilder innerFormulaBuilder = new FieldBuilder(FieldType.FIELD_FORMULA);\n innerFormulaBuilder.addArgument(100);\n innerFormulaBuilder.addArgument(\"+\");\n innerFormulaBuilder.addArgument(74);\n\n // Create another builder for another SYMBOL field, and insert the formula field\n // that we have created above into the SYMBOL field as its argument. \n builder = new FieldBuilder(FieldType.FIELD_SYMBOL);\n builder.addArgument(innerFormulaBuilder);\n field = builder.buildAndInsert(doc.getFirstSection().getBody().appendParagraph(\"\"));\n\n // The outer SYMBOL field will use the formula field result, 174, as its argument,\n // which will make the field display the ® (Registered Sign) symbol since its character number is 174.\n Assert.assertEquals(\" SYMBOL \\u0013 = 100 + 74 \\u0014\\u0015 \", field.getFieldCode());\n\n // 3 - Multiple nested fields and arguments:\n // Now, we will use a builder to create an IF field, which displays one of two custom string values,\n // depending on the true/false value of its expression. To get a true/false value\n // that determines which string the IF field displays, the IF field will test two numeric expressions for equality.\n // We will provide the two expressions in the form of formula fields, which we will nest inside the IF field.\n FieldBuilder leftExpression = new FieldBuilder(FieldType.FIELD_FORMULA);\n leftExpression.addArgument(2);\n leftExpression.addArgument(\"+\");\n leftExpression.addArgument(3);\n\n FieldBuilder rightExpression = new FieldBuilder(FieldType.FIELD_FORMULA);\n rightExpression.addArgument(2.5);\n rightExpression.addArgument(\"*\");\n rightExpression.addArgument(5.2);\n\n // Next, we will build two field arguments, which will serve as the true/false output strings for the IF field.\n // These arguments will reuse the output values of our numeric expressions.\n FieldArgumentBuilder trueOutput = new FieldArgumentBuilder();\n trueOutput.addText(\"True, both expressions amount to \");\n trueOutput.addField(leftExpression);\n\n FieldArgumentBuilder falseOutput = new FieldArgumentBuilder();\n falseOutput.addNode(new Run(doc, \"False, \"));\n falseOutput.addField(leftExpression);\n falseOutput.addNode(new Run(doc, \" does not equal \"));\n falseOutput.addField(rightExpression);\n\n // Finally, we will create one more field builder for the IF field and combine all of the expressions. \n builder = new FieldBuilder(FieldType.FIELD_IF);\n builder.addArgument(leftExpression);\n builder.addArgument(\"=\");\n builder.addArgument(rightExpression);\n builder.addArgument(trueOutput);\n builder.addArgument(falseOutput);\n field = builder.buildAndInsert(doc.getFirstSection().getBody().appendParagraph(\"\"));\n\n Assert.assertEquals(\" IF \\u0013 = 2 + 3 \\u0014\\u0015 = \\u0013 = 2.5 * 5.2 \\u0014\\u0015 \" +\n \"\\\"True, both expressions amount to \\u0013 = 2 + 3 \\u0014\\u0015\\\" \" +\n \"\\\"False, \\u0013 = 2 + 3 \\u0014\\u0015 does not equal \\u0013 = 2.5 * 5.2 \\u0014\\u0015\\\" \", field.getFieldCode());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.SYMBOL.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SYMBOL.docx\");\n\n FieldSymbol fieldSymbol = (FieldSymbol) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_SYMBOL, \" SYMBOL 402 \\\\f Arial \\\\s 25 \\\\u \", \"\", fieldSymbol);\n Assert.assertEquals(\"ƒ\", fieldSymbol.getDisplayResult());\n\n fieldSymbol = (FieldSymbol) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_SYMBOL, \" SYMBOL \\u0013 = 100 + 74 \\u0014174\\u0015 \", \"\", fieldSymbol);\n Assert.assertEquals(\"®\", fieldSymbol.getDisplayResult());\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 100 + 74 \", \"174\", doc.getRange().getFields().get(2));\n\n TestUtil.verifyField(FieldType.FIELD_IF,\n \" IF \\u0013 = 2 + 3 \\u00145\\u0015 = \\u0013 = 2.5 * 5.2 \\u001413\\u0015 \" +\n \"\\\"True, both expressions amount to \\u0013 = 2 + 3 \\u0014\\u0015\\\" \" +\n \"\\\"False, \\u0013 = 2 + 3 \\u00145\\u0015 does not equal \\u0013 = 2.5 * 5.2 \\u001413\\u0015\\\" \",\n \"False, 5 does not equal 13\", doc.getRange().getFields().get(3));\n\n Document finalDoc = doc;\n Assert.assertThrows(AssertionError.class, () -> TestUtil.fieldsAreNested(finalDoc.getRange().getFields().get(2), finalDoc.getRange().getFields().get(3)));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2 + 3 \", \"5\", doc.getRange().getFields().get(4));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(4), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2.5 * 5.2 \", \"13\", doc.getRange().getFields().get(5));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(5), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2 + 3 \", \"\", doc.getRange().getFields().get(6));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(6), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2 + 3 \", \"5\", doc.getRange().getFields().get(7));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(7), doc.getRange().getFields().get(3));\n\n TestUtil.verifyField(FieldType.FIELD_FORMULA, \" = 2.5 * 5.2 \", \"13\", doc.getRange().getFields().get(8));\n TestUtil.fieldsAreNested(doc.getRange().getFields().get(8), doc.getRange().getFields().get(3));\n }", "@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZBRNM\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZPBR\", \"IPS2\"); // Posting group id or user id, and group level (5A)\n\t\ttransaction.setFieldValue(\"GZVFR\", \"1000106\"); // Value from date (7S,0)\n\t\ttransaction.setFieldValue(\"GZBRND\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZDRF\", \"0014620010\"); // Users own reference for deals, reconciliation etc (16A)\n\t\ttransaction.setFieldValue(\"GZAMA\", \"1500-\"); // Ordinary amount in minor currency units (15P,0)\n\t\ttransaction.setFieldValue(\"GZCCY\", \"PHP\"); // Currency mnemonic (3A)\n\t\ttransaction.setFieldValue(\"GZNPE\", \"1\"); // Number of posting entries (5P,0)\n\t\ttransaction.setFieldValue(\"GZNR1\", \"STOP\"); // Narrative line 1 (35A)\n\t\ttransaction.setFieldValue(\"GZRFR\", \"N\"); // Referred item? (1A)\n\t\ttransaction.setFieldValue(\"GZAUT\", \"Y\"); // Authorised item? (1A)\n\t\ttransaction.setFieldValue(\"GZSSI\", \"N\"); // Special item? (1A)\n\t\ttransaction.setFieldValue(\"GZTTP\", \"C\"); // Transaction type (1A)\n\t\ttransaction.setFieldValue(\"GZHSRL\", \"0014620010\"); // Serial \"number\" forming the key to a stop order (16A)\n\t\ttransaction.setFieldValue(\"GZHAMT\", \"1500-\"); // Stop order amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZAUTC\", \"MASSEYR1\"); // Referred item authorisation code (12A)\n\t\ttransaction.setFieldValue(\"GZCED\", \"2\"); // Currency edit field (1A)\n\t\ttransaction.setFieldValue(\"GZCHQ\", \"N\"); // Cheque item? (1A)\n\t\ttransaction.setFieldValue(\"GZDRFN\", \"0\"); // Cheque serial number (16P,0)\n\t\ttransaction.setFieldValue(\"GZTCCY\", \"PHP\"); // Transaction currency (3A)\n\t\ttransaction.setFieldValue(\"GZTAMA\", \"1500\"); // Transaction amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZHCCY\", \"PHP\"); // Stop order currency (3A)\n\t\ttransaction.setFieldValue(\"GZPSQ7\", \"0000182\"); // 7 Long posting sequence number (7P,0)\n\t}", "public Builder setFBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n f_ = value;\n onChanged();\n return this;\n }", "@Override\n public void fillFields(CSB csb){\n projectDirTF.setText(csb.projectDir);\n zipNameTF.setText(csb.zipName);\n keepEmptyCB.setSelected(csb.keepEmpty);\n }", "private Union parseBitFields(StringBuffer buffer) {\n\t\t//NOTE:\n\t\t//Ghidra does not support bit fields, so we\n\t\t//simulate it by creating a union of the bit fields.\n\t\t//\n\t\tUnion bitFieldUnion =\n\t\t\tnew UnionDataType(getUniqueAnonymousTypeName(AnonymousTypes.BIT_FIELD_UNION));\n\t\ttry {\n\t\t\tbitFieldUnion.setCategoryPath(categoryPath);\n\t\t}\n\t\tcatch (DuplicateNameException e) {\n\t\t}\n\n\t\tList<String> names = new ArrayList<String>();\n\t\tint defaultFieldNameIndex = 0;\n\n\t\tint totalBits = 0;\n\n\t\twhile (true) {\n\t\t\tString name = parseQuotedName(buffer);\n\t\t\tif (buffer.charAt(0) != _C_BFLD) {\n\t\t\t\treinsertName(buffer, name);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (name == null) {\n\t\t\t\tname = \"bitField\" + (defaultFieldNameIndex++);\n\t\t\t}\n\t\t\tbuffer.deleteCharAt(0);//_C_BFLD\n\t\t\tint nBits = parseNumber(buffer);\n\t\t\tnames.add(name + \"_\" + nBits);\n\t\t\ttotalBits += nBits;\n\t\t}\n\n\t\tDataType dt = getBitFieldDataType(totalBits);\n\t\ttry {\n\t\t\tdt.setCategoryPath(categoryPath);\n\t\t}\n\t\tcatch (DuplicateNameException e) {\n\t\t}\n\n\t\tfor (String name : names) {\n\t\t\tbitFieldUnion.add(dt, name, null);\n\t\t}\n\t\treturn bitFieldUnion;\n\t}", "public final void mo40474a(bbf bbf) throws IOException {\n bbf.mo40465a(1, this.f41423c.intValue());\n if (this.f41424d != null) {\n bbf.mo40468a(2, this.f41424d);\n }\n if (this.f41425e != null) {\n bbf.mo40467a(3, (bbl) this.f41425e);\n }\n if (this.f41430k != null && this.f41430k.length > 0) {\n for (int a : this.f41430k) {\n bbf.mo40465a(6, a);\n }\n }\n if (this.f41426f != null) {\n bbf.mo40465a(8, this.f41426f.intValue());\n }\n if (this.f41427g != null && this.f41427g.length > 0) {\n for (String str : this.f41427g) {\n if (str != null) {\n bbf.mo40468a(9, str);\n }\n }\n }\n super.mo40474a(bbf);\n }", "public Builder setField1978(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1978_ = value;\n onChanged();\n return this;\n }", "private void clearField () {\n\t\t/* clear the field */\n\t\tfor ( int row = 0 ; row < getNumRows() ; row++ ) {\n\t\t\tfor ( int col = 0 ; col < getNumCols() ; col++ ) {\n\t\t\t\tif ( row == 0 || col == 0 || row == getNumRows() - 1\n\t\t\t\t || col == getNumCols() - 1 ) {\n\t\t\t\t\tfield_[row][col] = new Bush();\n\t\t\t\t} else {\n\t\t\t\t\tfield_[row][col] = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "FieldDefinition createFieldDefinition();", "private void populateFieldArray() \r\n\t{\r\n\t\tInteger fieldId;\r\n\t\t/** get input column names which is populated based on the input file\r\n\t\t * format specified in the command file */\r\n\t\tString [] inputColNames = getInputColNames();\r\n\t\tint arrLength; /** Number of columns in the input file*/\r\n\t\tif (null == inputColNames)\r\n\t\t{\r\n\t\t\t/** set array length 2 for two default columns (probeset and chip description)*/\r\n\t\t\tarrLength = 2; \r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/** Basic Probeset ID and description fields are present for all files \r\n\t\t\t * but the other supplementary information like accession number, unigene and\r\n\t\t\t * entrezgene ids may be present one or many based on the file format */\r\n\t\t\tarrLength = 2 + inputColNames.length; /** add other columns*/\r\n\t\t}\r\n\t\t/** Field array base elements are Probeset and Chip_Desc plus any of acc_no, ugid, & locusid/organism */\r\n\t\tfieldIndexArray = new int [arrLength];\r\n\t\t\r\n\t\t/** Now 0th field in input file is probeset*/\r\n\t\tfieldIndexArray[0] = ((Integer) fieldIdTable.get(\"CIN_PROBESET\")).intValue();\r\n\t\t\r\n\t\tif (inputColNames != null) \r\n\t\t{\r\n\t\t\t/** get the field ids for all column names*/\r\n\t\t\tfor (int i=0; i< inputColNames.length; i++)\r\n\t\t\t{\r\n\t\t\t\t/** Pick up the column from the list of inout columns as obtained based on\r\n\t\t\t\t * the input file format. Then fetch its ID from the FieldIdTable */\r\n\t\t\t\tfieldId = (Integer) fieldIdTable.get(inputColNames[i].toUpperCase());\r\n\t\t\t\tif (null == fieldId)\r\n\t\t\t\t{\r\n\t\t\t\t\t/** no such column name allowed*/\r\n\t\t\t\t\tLogger.log(\"Column name \" + inputColNames[i] + \" is not a valid name\",Logger.WARNING);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/** add the field id to the index array. Thus fieldIndexArray will have all the \r\n\t\t\t\t\t * column names depending on the file format*/\r\n\t\t\t\t\tfieldIndexArray[1+i] = fieldId.intValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t/** ChipDesc field is the last column in the input file. First we have added the default first field\r\n\t\t * as probeset id , then all the middle fields based on the file format and now the last default\r\n\t\t * field which is chipdescription */\r\n\t\tfieldIndexArray[fieldIndexArray.length-1] = ((Integer) fieldIdTable.get(\"CIN_CHIP_DESCRIPTION\")).intValue();\r\n\t\tLogger.log(\"populateFieldArray complete \",Logger.DEBUG);\r\n\t}", "public void updateField() {\n\n boolean[][] tempField = new boolean[getLength()][getHeight()];\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n tempField[x][y] = checkSurrounding(x, y);\n }\n }\n setFields(tempField);\n }", "@Override\n\tprotected void buildRegFieldDefines() {\n\t\tIterator<FieldProperties> iter = fieldList.iterator();\n\t\t// traverse field list\n\t\twhile (iter.hasNext()) {\n\t\t\tFieldProperties field = iter.next();\n\t\t\tString fieldId = escapeReservedString(field.getPrefixedId()); \n\t\t\tString fieldClass = \"uvm_field_translate\";\n\t\t\toutputList.add(new OutputLine(indentLvl, fieldClass + \" \" + fieldId + \" = new(this, \" + field.getLowIndex() + \", \" + field.getFieldWidth() + \");\"));\n\t\t}\n\t}", "public Builder clearField1978() {\n \n field1978_ = getDefaultInstance().getField1978();\n onChanged();\n return this;\n }", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }", "@Test\n public void fieldBarcode() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.writeln();\n\n // Below are two ways of using BARCODE fields to display custom values as barcodes.\n // 1 - Store the value that the barcode will display in the PostalAddress property:\n FieldBarcode field = (FieldBarcode) builder.insertField(FieldType.FIELD_BARCODE, true);\n\n // This value needs to be a valid ZIP code.\n field.setPostalAddress(\"96801\");\n field.isUSPostalAddress(true);\n field.setFacingIdentificationMark(\"C\");\n\n Assert.assertEquals(\" BARCODE 96801 \\\\u \\\\f C\", field.getFieldCode());\n\n builder.insertBreak(BreakType.LINE_BREAK);\n\n // 2 - Reference a bookmark that stores the value that this barcode will display:\n field = (FieldBarcode) builder.insertField(FieldType.FIELD_BARCODE, true);\n field.setPostalAddress(\"BarcodeBookmark\");\n field.isBookmark(true);\n\n Assert.assertEquals(\" BARCODE BarcodeBookmark \\\\b\", field.getFieldCode());\n\n // The bookmark that the BARCODE field references in its PostalAddress property\n // need to contain nothing besides the valid ZIP code.\n builder.insertBreak(BreakType.PAGE_BREAK);\n builder.startBookmark(\"BarcodeBookmark\");\n builder.writeln(\"968877\");\n builder.endBookmark(\"BarcodeBookmark\");\n\n doc.save(getArtifactsDir() + \"Field.BARCODE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.BARCODE.docx\");\n\n Assert.assertEquals(0, doc.getChildNodes(NodeType.SHAPE, true).getCount());\n\n field = (FieldBarcode) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_BARCODE, \" BARCODE 96801 \\\\u \\\\f C\", \"\", field);\n Assert.assertEquals(\"C\", field.getFacingIdentificationMark());\n Assert.assertEquals(\"96801\", field.getPostalAddress());\n Assert.assertTrue(field.isUSPostalAddress());\n\n field = (FieldBarcode) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_BARCODE, \" BARCODE BarcodeBookmark \\\\b\", \"\", field);\n Assert.assertEquals(\"BarcodeBookmark\", field.getPostalAddress());\n Assert.assertTrue(field.isBookmark());\n }", "public Builder setField1977Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1977_ = value;\n onChanged();\n return this;\n }", "public void bcf(int f, int b) {\n\t\tf= getIndirectAdress(f); \n\t\tint mask;\n switch (b) {\n case 0:\n mask = 1;\n break;\n case 1:\n mask = 2;\n break;\n case 2:\n mask = 4;\n break;\n case 3:\n mask = 8;\n break;\n case 4:\n mask = 16;\n break;\n case 5:\n mask = 32;\n break;\n case 6:\n mask = 64;\n break;\n case 7:\n mask = 128;\n break;\n default:\n System.err.println(\"Error beim setzen des Bits!\");\n return;\n }\n if(f== Worker.reg.STATUS){\n\t\t\tWorker.reg.setStatusReg(b, 0);\n\t\t}else{\n\t\t\tint buf = getValFromBank(f)^mask;\n\t \tcheckDandInsert(buf,f,1);\n\t\t}\n \tWorker.reg.increasePC();\n \tWorker.reg.addCycle();\n }", "static void initFieldWithDots(){\n // put values into the sField\n for(int i=0; i<ROWS; i++) {\n for(int j=0; j<COLS; j++) {\n sField[i][j] = \".\";\n }\n }\n }", "public void resetField() {\n setFields(new boolean[getLength()][getHeight()]);\n }", "private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }", "com.google.protobuf.ByteString\n getField1015Bytes();", "private void paintField() {\r\n // one brick length\r\n int brickLength = (getHeight() - (BRICKS_PER_ROW + 1) * BRICK_SEP) / BRICKS_PER_ROW;\r\n // x coordinate for creating one brick\r\n int x1;\r\n // y coordinates for creating one brick\r\n int y1, y2 = 0;\r\n Brick brick;\r\n for (int i = 0; i < BRICKS_PER_ROW; i++) {\r\n y1 = y2 + BRICK_SEP;\r\n y2 = y1 + brickLength;\r\n\r\n for (int j = 0; j < BRICKS_PER_ROW; j++) {\r\n x1 = BRICK_SEP + brickLength * j + BRICK_SEP * j;\r\n brick = new Brick(x1, y1, brickLength, brickLength);\r\n brick.setFilled(true);\r\n brick.setColor(Color.WHITE);\r\n brick.setBrickColor(Color.WHITE);\r\n add(brick);\r\n bricks[i][j] = brick;\r\n }\r\n }\r\n }", "@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCCD\", \"B1\"); // Charge code (2A)\n\t\ttransaction.setFieldValue(\"GZAMT\", \"5000\"); // Charge amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZWMN\", \"KSM2020\"); // Warning message (7A)\n\t\ttransaction.setFieldValue(\"GZFLG\", \"N\"); // Stop chqbook issue? (1A)\n\t}", "public Builder setField1077Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1077_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void populateFromBytes(byte[] content, MacroPopulation pop) {\n\t\tByteBuffer buf = ByteBuffer.wrap(content);\n\t\tthis.riskPremium = buf.getDouble();\n\t}", "public FieldInstruction setField(BCField field) {\n if (field == null)\n return setFieldIndex(0);\n return setField(field.getDeclarer().getName(), field.getName(),\n field.getTypeName());\n }", "private void fillAllFields() {\r\n combo.setSelectedItem(moviesModule.getConfig().getOpeningSystem());\r\n fileChooser.setFilePath(moviesModule.getConfig().getFFmpegLocation());\r\n }", "com.google.protobuf.ByteString\n getField1910Bytes();", "public void setField(Bundles bundles, Bundles root_bundles, String fld, String val) {\r\n // Do some sanity checking on the values... Mirrors what is done for the dialog box to create a new field\r\n boolean scalar = Utils.isAllUpper(fld),\r\n parseable_int = false; try { Integer.parseInt(val); parseable_int = true; } catch (NumberFormatException nfe) { };\r\n if (fld.equals(\"\") || fld.toLowerCase().equals(\"tags\")\r\n || fld.toLowerCase().equals(\"timestamp\")\r\n || fld.toLowerCase().equals(\"timestamp_end\")\r\n || fld.toLowerCase().equals(\"beg\")\r\n || fld.toLowerCase().equals(\"end\")) { System.err.println(\"Trying To Use A Reserved Field \\\"\" + fld + \"\\\"...\"); return; }\r\n if (scalar) {\r\n if (parseable_int == false) { System.err.println(\"Scalar Field \\\"\" + fld + \"\\\" but not a scalar valuable \\\"\" + val + \"\\\"\"); return; }\r\n } else {\r\n if (val == null || val.equals(\"\")) val = BundlesDT.NOTSET;\r\n }\r\n\r\n // Go through the tablets\r\n Iterator<Tablet> it_tab = bundles.tabletIterator();\r\n while (it_tab.hasNext()) {\r\n Tablet tablet = it_tab.next(); int fld_i = getOrCreateField(fld, Utils.isAllUpper(fld));\r\n\r\n // Add the field to the tablet if it doesn't already exist\r\n if (tablet.hasField(fld_i) == false) {\r\n Iterator<Tablet> it_tab_root = root_bundles.tabletIterator(); while (it_tab_root.hasNext()) {\r\n\t Tablet root_tablet = it_tab_root.next(); \r\n\t // Ugly edge case... it's possible that identical tablet headers exist in two (or more separate) tablets...\r\n\t // ... in this case, we may be creating a field in a tablet that doesn't need it...\r\n\t if (root_tablet.fileHeader().equals(tablet.fileHeader())) root_tablet.addField(fld);\r\n\t}\r\n }\r\n\r\n // Set the values for the specified bundles\r\n tablet.setField(fld, val);\r\n }\r\n\r\n // Run a cleanse to make sure everything is updated properly\r\n Set<Bundles> as_set = new HashSet<Bundles>(); as_set.add(root_bundles); cleanse(as_set);\r\n }", "public void setField(int i, Field f) {\n\n\t\tif (i < 0 || i >= fields.size())\n\t\t\treturn;\n\t\tfields.add(i, f);\n\n\t}", "public Fox() {\n super(randomAge(MAX_AGE), randomSex(), MAX_AGE, BREEDING_AGE, MAX_LITTER_SIZE, BREEDING_PROBABILITY, FOOD_VALUE, FULL_LEVEL);\n constructor();\n }", "com.google.protobuf.ByteString\n getField1919Bytes();", "void shiftAndAddToRight(BitField fieldToAddToTheRight);", "private void addFeatureFieldGetSet(FeatureImpl fi) {\n this.fi = fi;\n featureFieldName = getFeatureFieldName(fi);\n rangeJavaDescriptor = fi.getRangeAsJavaDescriptor();\n \n addFeatureField(); // add declares for fields\n addFeatureGetSet();\n TypeImpl range = (TypeImpl) fi.getRange();\n if (range.isArray()) {\n rangeArrayElementJavaDescriptor = fi.getRangeArrayElementAsJavaDescriptor();\n addArrayFeatureGetSet();\n }\n }", "public Builder setField1177Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1177_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getField1907Bytes();", "protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }", "public void addField(BaseField newf)\n\t{\n\t\tif(m_baseList == null)\n\t\t\tm_baseList = new ArrayList<BaseField>();\n\t\tm_baseList.add(newf);\n\t}", "protected abstract void initViewValue(final T field);", "void visitArrayField(FieldAttributes f, Type typeOfF, Object obj);", "public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n //if (iFieldSeq == 0)\n //{\n // field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n // field.setHidden(true);\n //}\n //if (iFieldSeq == 1)\n //{\n // field = new RecordChangedField(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n // field.setHidden(true);\n //}\n //if (iFieldSeq == 2)\n //{\n // field = new BooleanField(this, DELETED, Constants.DEFAULT_FIELD_LENGTH, null, new Boolean(false));\n // field.setHidden(true);\n //}\n if (iFieldSeq == 3)\n field = new StringField(this, NAME, 60, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }", "public com.google.protobuf.ByteString\n getField1978Bytes() {\n java.lang.Object ref = field1978_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1978_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }", "private void setFields() {\n\t\t// create nine rectangles to represent the cells\n\t\tfor (int x=0;x<3;x++) {\n\t\t\tfor (int y=0;y<3;y++) {\n\t\t\t\t// create the fields based on the dimensions of the board\n\t\t\t\tfieldsArrayGeometry[x][y]= new Rectangle2D.Double(xBoardMin+fieldWidthX*x, yBoardMin+fieldHeightY*y, fieldWidthX, fieldHeightY);\n\t\t\t}\n\t\t\t//System.out.println(Arrays.deepToString(fieldsArrayGeometry));\n\t\t}\n\t\t// write fields to file\n\t\ttry {\n FileWriter fileWriterFields = new FileWriter(fileNameFieldsDimensions,true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriterFields);\n bufferedWriter.write(\"New Fields \"+fieldWidthX+\" \"+fieldHeightY+\" \"+\"\\n\");\n \t\t\tfor (int x=0;x<3;x++) {\n \t\t\t\tfor (int y=0;y<3;y++) {\n \t\t\t\t\tbufferedWriter.write(x+\",\"+y+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMinX()+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMaxX()+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMinY()+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMaxY()+\"\\n\");\n \t\t\t\t}\n \t\t\t}\n bufferedWriter.close(); }\n catch(IOException ex2) {\n System.out.println(\"Error writing to file '\"+ fileNameFieldsDimensions + \"'\");\n }\n\t}", "com.google.protobuf.ByteString\n getField1978Bytes();", "public Battlefield() {\n\t\t// Instanciation du champ de plantes\n\t\tthis.plantField = new Plant[5][9];\n\t\t\n\t\t// Instanciation du champ de zombies\n\t\tthis.zombieField = new ArrayList<ArrayList<Zombie>>();\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t// On déclare 5 Listes vides pour les 5 lignes\n\t\t\tzombieField.add(new ArrayList<Zombie>());\n\t\t}\n\t\t\n\t\tthis.poisField = new ArrayList<ArrayList<Pois>>();\n\t\t\tfor(int i =0; i<5; i++) {\n\t\t\t\tpoisField.add(new ArrayList<Pois>());\n\t\t\t}\n\t\t\t\n\t\tthis.particleList = new ArrayList<Particle>();\n\t\t\n\t\tthis.countOfZombieSpawned = 0;\n\t}", "Flux<Field> getFieldFlux();", "private void resetFields() {\n\t\tthis.barcodeField.clear();\r\n\t\tthis.barcodeField.setDisable(false);\r\n\t\tthis.nameField.clear();\r\n\t\tthis.descriptionField.clear();\r\n\t\tthis.mrpField.clear();\r\n\t\tthis.revisedMrpField.clear();\r\n\t\tthis.stockField.clear();\r\n\t\tthis.availableStockLabelValue.setText(\"0.0\");\r\n\t\tthis.barcodeImageView.setImage(null);\r\n\t\tthis.barcodeDisplayLabel.setVisible(true);\r\n\t\tthis.barcodeNumberLabel.setVisible(false);\r\n\r\n\t}", "com.google.protobuf.ByteString\n getField1032Bytes();", "public FieldDefinition(FieldData fieldData)\n\t{\n\t\tcommonInitialisation();\n\t\tthis.fieldName = fieldData.getFieldName().toUpperCase();\n\t\tthis.fieldType = fieldData.getFieldType();\n\t\tthis.fieldLength = fieldData.getFieldLength();\n\t\tthis.fieldDecimal = fieldData.getFieldDecimal();\n\t\tthis.upperCase = fieldData.isUpperCase();\n\t\tthis.workField = fieldData.isWorkField();\n\t\tthis.repeating = fieldData instanceof RepeatingFieldData;\n\t}", "void setFields(Set<F> fields);", "public void setField( Field f, int val) {\n grid[f.x][f.y]=val;\n // System.out.println(\"pN before: \"+pN);\n pN.get(f).clear();\n empty.remove(f);\n Set<Field> ch = new HashSet<>();\n ch.addAll(getBox(f));\n ch.addAll(getColumn(f));\n ch.addAll(getRow(f));\n for(Field x : ch) {\n pN.get(x).remove(val);\n }\n // System.out.println(\"pN after: \"+pN);\n }", "public com.google.protobuf.ByteString\n getField1978Bytes() {\n java.lang.Object ref = field1978_;\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 field1978_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Battlefield() {\n\t\tbattlefield = new Square[HEIGHT][LENGTH];// creates a battlefield of 5x5\n\t\t\n\t\tcounter = 0;\n\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tbattlefield[row][column] = new Square(null, null, null);\n\t\t\t\tbattlefield[row][column].setTerrain(null);\n\n\t\t\t}\n\n\t\t}\n\t\tfor (int elf = 0; elf < 10; elf++) {// creates 10 elves in random\n\t\t\t\t\t\t\t\t\t\t\t// positions in the battlefield.\n\t\t\tbattlefield[RandomUtil.nextInt(5)][RandomUtil.nextInt(5)]\n\t\t\t\t\t.setElf(new Elf());\n\n\t\t}\n\t\twhile (getElfCount() < 10) {// makes sure that 10 elves are created in\n\t\t\t\t\t\t\t\t\t// the inizialization.\n\t\t\tbattlefield[RandomUtil.nextInt(5)][RandomUtil.nextInt(5)]\n\t\t\t\t\t.setElf(new Elf());\n\t\t}\n\n\t\tfor (int orc = 0; orc < 10; orc++) {// creates ten orcs in random\n\t\t\t\t\t\t\t\t\t\t\t// positions in the battlefield.\n\t\t\tbattlefield[RandomUtil.nextInt(5)][RandomUtil.nextInt(5)]\n\t\t\t\t\t.setOrc(new Orc());\n\t\t}\n\t\twhile (getOrcCount() < 10) {// makes sure that 10 orcs are created in\n\t\t\t\t\t\t\t\t\t// the inizialization.\n\t\t\tbattlefield[RandomUtil.nextInt(5)][RandomUtil.nextInt(5)]\n\t\t\t\t\t.setOrc(new Orc());\n\t\t}\n\t\tfor (int mountain = 0; mountain < 5; mountain++) {// crates 5 mountain\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// terrains in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// random positions\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// in the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// battlefield.\n\t\t\tbattlefield[RandomUtil.nextInt(5)][RandomUtil.nextInt(5)]\n\t\t\t\t\t.setTerrain(new Terrain(\"M\"));\n\t\t}\n\n\t\twhile (getMountainCount() < 5) {// makes sure that 5 mountains are\n\t\t\t\t\t\t\t\t\t\t// created in the inizialization.\n\t\t\tbattlefield[RandomUtil.nextInt(5)][RandomUtil.nextInt(5)]\n\t\t\t\t\t.setTerrain(new Terrain(\"M\"));\n\t\t}\n\t}", "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}", "public Builder setOneof1978(int value) {\n hugeOneofCase_ = 1978;\n hugeOneof_ = value;\n onChanged();\n return this;\n }", "public Builder setField1907Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1907_ = value;\n onChanged();\n return this;\n }", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}", "com.google.protobuf.ByteString\n getField1942Bytes();", "public Builder setField1919Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1919_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getField1909Bytes();", "com.google.protobuf.ByteString\n getField1987Bytes();", "public Builder setField1976Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1976_ = value;\n onChanged();\n return this;\n }" ]
[ "0.5925521", "0.5750529", "0.57372284", "0.57230145", "0.57181865", "0.5608259", "0.559423", "0.5552469", "0.554736", "0.5532081", "0.5519413", "0.5484925", "0.54789144", "0.5404927", "0.5378566", "0.5364743", "0.5359614", "0.53397644", "0.53192794", "0.52772", "0.52708346", "0.52662927", "0.5260877", "0.52472305", "0.52452487", "0.5236801", "0.5226867", "0.5209858", "0.52042615", "0.5196056", "0.5189442", "0.51669055", "0.5162777", "0.51596534", "0.51582974", "0.51530206", "0.5124821", "0.51200676", "0.5099814", "0.5094868", "0.5092691", "0.5087429", "0.50851685", "0.5076316", "0.50754696", "0.50688285", "0.50416905", "0.5022524", "0.5021613", "0.5018864", "0.50082994", "0.50039303", "0.49914882", "0.4987615", "0.49836025", "0.49806342", "0.4979745", "0.497484", "0.4973153", "0.4966709", "0.49636522", "0.49581873", "0.4954136", "0.49515978", "0.4942345", "0.49370676", "0.49299806", "0.49290177", "0.49287271", "0.49256742", "0.49217722", "0.4921474", "0.49205765", "0.4920496", "0.49198467", "0.4912907", "0.49107626", "0.49090043", "0.49080074", "0.4903265", "0.49023712", "0.4893459", "0.48855993", "0.488066", "0.48753852", "0.48750317", "0.48724732", "0.48656178", "0.48653215", "0.48652503", "0.48633608", "0.48612016", "0.4858946", "0.48564625", "0.48546734", "0.48512506", "0.48490822", "0.48482695", "0.48439834", "0.4842846" ]
0.5194055
30
TODO Autogenerated method stub
public static void main(String[] args) { WebDriver driver=new FirefoxDriver(); driver.get("http://jqueryui.com/tooltip/"); driver.switchTo().frame(0); Sleeper.sleepTightInSeconds(10); Actions action=new Actions(driver); WebElement TTip=driver.findElement(By.id("age")); action.moveToElement(TTip).build().perform(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.id
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }", "int getHjOpId();", "@JsProperty(name = \"id\")\n public native String getId();", "java.lang.String getOperationId();", "public Integer getOperationId() {\n return operationId;\n }", "String getValueId();", "public Integer getOperatorId() {\n return operatorId;\n }", "@JSProperty(\"id\")\n @Nullable\n String getId();", "public Integer getjId() {\n return jId;\n }", "public Long getOperatorId() {\n return operatorId;\n }", "public int getCurrentOperationId(){\n int nmr = 1;\n operationLock.lock();\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT OP_ID FROM APP.OPERATIONS ORDER BY OP_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"OP_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n operationLock.unlock();\n return nmr;\n }", "public String getOperationId() {\n return this.operationId;\n }", "public long getOperatorId() {\r\n return operatorId;\r\n }", "public StrColumn getGoId() {\n return delegate.getColumn(\"go_id\", DelegatingStrColumn::new);\n }", "int getStatementId();", "int getStatementId();", "int getStatementId();", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}", "String getForOperationId();", "public String getOperatorid() {\n return operatorid;\n }", "public String getOperationID() {\n\t\treturn operationId;\n\t}", "public final int getId() {\n\t\treturn this.accessor.getId();\n\t}", "public Integer getId() { return this.id; }", "public Integer getId() {\n return aao.getId();\n }", "public java.lang.String getOperID() {\n return operID;\n }", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "OperationIdT getOperationId();", "public String getSOperatorID() {\n return sOperatorID;\n }", "public int getOp() {\n\t\treturn op;\n\t}", "public BigDecimal getStatementId() {\n return getStatementIdProperty().getValue();\n }", "public Integer getCronopElemId() {\n\t\treturn this.cronopElemId;\n\t}", "public int getAccOpId() {\n return accOpId_;\n }", "public Integer getId(){\n\t\treturn id;\n\t}", "long getApikeyOpId();", "public Integer getId()\n\t{\n\t\treturn this.id; \n\t}", "public Integer getId() { return id; }", "public Integer getId() {\r\n return this.id;\r\n }", "private Integer getId() { return this.id; }", "public Integer getsId() {\n return sId;\n }", "public String getOperateEmpId() {\n return operateEmpId;\n }", "public int getAccOpId() {\n return accOpId_;\n }", "public int getC_POSDocType_ID() \n{\nInteger ii = (Integer)get_Value(COLUMNNAME_C_POSDocType_ID);\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public Integer getId()\r\n/* */ {\r\n/* 114 */ return this.id;\r\n/* */ }", "public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }", "public int getId() {\n return oid ;\n }", "public Long getOperator() {\n return operator;\n }", "public Integer getId() {\n\t\treturn this.id;\n\t}", "public Integer getId() {\n return this.id;\n }", "public Integer getId() {\n return this.id;\n }", "String getCommandId();", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "@Override\n\tpublic Integer getId() {\n\t\treturn this.id;\n\t}", "public Integer getId() {\n return this.id;\n }", "public Integer getId() {\n return this.id;\n }", "public Integer getId() {\n return this.id;\n }", "public Integer getId() {\n return this.id;\n }", "public Long getId(){\n\t\treturn id;\n\t}", "public long getApikeyOpId() {\n return apikeyOpId_;\n }", "public int getId() {\n return parameter.getId();\n }", "public int getId(){\n\t\treturn this.id;\n\t}", "public long getApikeyOpId() {\n return apikeyOpId_;\n }", "public Integer getId() \r\n\t{\r\n\t\treturn id;\r\n\t}", "public Long getId() {\n\t\t\t\treturn this.id;\n\t}", "public Long getCreateOpId() {\n return createOpId;\n }", "public Long getCreateOpId() {\n return createOpId;\n }", "public Long getCreateOpId() {\n return createOpId;\n }", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public Optional<String> getOperationId() {\n return operationId;\n }", "public Long id() { return this.id; }", "public Long getId() {\r\n return this.id;\r\n }", "public Long getId() {\r\n return this.id;\r\n }", "public Long getId() {\r\n return this.id;\r\n }" ]
[ "0.6757336", "0.6757336", "0.6757336", "0.6757336", "0.645736", "0.6433992", "0.6267839", "0.6221642", "0.6050435", "0.6049693", "0.59963495", "0.5994846", "0.5976839", "0.596635", "0.5930063", "0.592898", "0.5919676", "0.58836275", "0.58732635", "0.57894117", "0.57894117", "0.57894117", "0.57118666", "0.5694698", "0.5689381", "0.56626654", "0.5653855", "0.5623339", "0.5621723", "0.5617159", "0.5605494", "0.55930465", "0.55846345", "0.5578254", "0.55765146", "0.55711937", "0.5555093", "0.5542109", "0.55412537", "0.5537629", "0.5530956", "0.5494071", "0.54843175", "0.5474764", "0.54733545", "0.54640734", "0.54448617", "0.5442111", "0.54412127", "0.5431417", "0.54283196", "0.54216397", "0.541051", "0.5405199", "0.5405199", "0.540386", "0.5397286", "0.5397286", "0.5397286", "0.5397286", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53897536", "0.53895307", "0.53882736", "0.53882736", "0.53882736", "0.53882736", "0.53861475", "0.538432", "0.5377722", "0.53765297", "0.5372311", "0.53706867", "0.5360617", "0.5354983", "0.5354983", "0.5354983", "0.53523356", "0.53523356", "0.5344852", "0.534421", "0.53423274", "0.53423274", "0.53423274" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.id
public void setId(Long id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JSProperty(\"id\")\n void setId(String value);", "@JsProperty(name = \"id\")\n public native void setId(String value);", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }", "public void setjId(Integer jId) {\n this.jId = jId;\n }", "public Builder setHjOpId(int value) {\n bitField0_ |= 0x00000040;\n hjOpId_ = value;\n onChanged();\n return this;\n }", "public void setOp(int op) {\n\t\tthis.op = op;\n\t}", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "@JSProperty(\"id\")\n @Nullable\n String getId();", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public void setOperationID(String operaionId) {\n\t\tthis.operationId = operaionId;\n\t}", "@JsProperty(name = \"id\")\n public native String getId();", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setOp(Operator op) {\n this.op = op;\n }", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setOp(String op) {\n this.op = op;\n }", "public void setID(String idIn) {this.id = idIn;}", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "public void setIdSucursal(int idSucursal)\r\n/* 123: */ {\r\n/* 124:135 */ this.idSucursal = idSucursal;\r\n/* 125: */ }", "void applyOperationId(Operation operation, Method method);", "void setId(int val);", "public Integer getjId() {\n return jId;\n }", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public void setId(int id){ this.id = id; }", "@Override\r\n\tpublic void setId( java.math.BigDecimal value ) {\r\n\t\tthis.unwrapModel().setId( value );\r\n\t}", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "private void setId(Integer id) { this.id = id; }", "int getHjOpId();", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public void setOperation(String op) {this.operation = op;}", "public void setOp(String op) {\n this.op = op == null ? null : op.trim();\n }", "public void setID(java.lang.Integer value);", "final public void setId(int idp) {\n\t\tid = idp;\n\t\tidSet = true;\n\t}", "public final native void setId(int id) /*-{\n\t\tthis.id = id;\n\t}-*/;", "public void setId(long id) {\n id_ = id;\n }", "public void setOP_NO(BigDecimal OP_NO) {\r\n this.OP_NO = OP_NO;\r\n }", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "public void setOperatorId(long operatorId) {\r\n this.operatorId = operatorId;\r\n }", "public void setIdSucursal(int idSucursal)\r\n/* 109: */ {\r\n/* 110:179 */ this.idSucursal = idSucursal;\r\n/* 111: */ }", "@Override\n public final void setItsId(final Long pId) {\n //stub\n }", "public void setID(int id){\n this.id=id;\n }", "public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}", "public interface UserHomeModalMapper {\n\n @Insert({\"<script>\",\n \" insert into sys_user_home_modal (user_id,home_modal) values (#{userId},#{homeModal})\"\n , \"</script>\"})\n void save(@Param(\"userId\") Integer userId, @Param(\"homeModal\") String homeModal);\n\n @Update({\"<script>\", \"update sys_user_home_modal set home_modal = #{homeModal} where user_id = #{userId}\",\n \"</script>\"})\n void updateByUserId(@Param(\"userId\") Integer userId, @Param(\"homeModal\") String homeModal);\n\n @Select(\"select user_id as userId, home_modal as homeModal from sys_user_home_modal where user_id = #{v} limit 1\")\n Map<String, String> findHomeModalByUserId(Integer userId);\n}", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }", "@JsonSetter(\"orderId\")\r\n public void setOrderId (int value) { \r\n this.orderId = value;\r\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "public void setId( Integer id )\n {\n this.id = id ;\n }", "public void setId(Long value) {\r\n this.id = value;\r\n }", "@Override\r\n\tpublic int jID() {\n\t\treturn 0;\r\n\t}", "public void setID(int id);", "public void setOperationId(Integer operationId) {\n this.operationId = operationId;\n }", "public void setIdSucursal(int idSucursal)\r\n/* 98: */ {\r\n/* 99:176 */ this.idSucursal = idSucursal;\r\n/* 100: */ }", "String getValueId();", "public void setJoperator(String joperator) {\n this.joperator = joperator;\n }", "public Integer getOperatorId() {\n return operatorId;\n }", "public void setOperator(Long operator) {\n this.operator = operator;\n }", "@Override\n public void setField(int id, int value) {\n \n }", "protected void setId(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString id = rs.getString(UiActionTable.COLUMN_ID);\n\t\t\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setId(id);\n\t}", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public void setID(long id);", "public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }" ]
[ "0.620044", "0.6184319", "0.6040156", "0.6040156", "0.6040156", "0.6040156", "0.56492466", "0.56492466", "0.56492466", "0.56492466", "0.5601641", "0.55862296", "0.5582284", "0.5567145", "0.5566135", "0.5443805", "0.543631", "0.5433364", "0.54230034", "0.5417466", "0.53722453", "0.53463084", "0.5332508", "0.528221", "0.524422", "0.5225473", "0.52127224", "0.5211301", "0.51826257", "0.5180183", "0.5127626", "0.5127626", "0.5123331", "0.5113404", "0.5110935", "0.50971895", "0.5084651", "0.50834644", "0.50819886", "0.50769913", "0.5063273", "0.50596124", "0.5052671", "0.5052671", "0.5050019", "0.50450546", "0.50436836", "0.5043243", "0.5040853", "0.5038744", "0.50243706", "0.5021141", "0.5020148", "0.5015023", "0.4996671", "0.49945834", "0.49945834", "0.49906176", "0.49906176", "0.49906176", "0.49906176", "0.49906176", "0.49906176", "0.49837026", "0.49837026", "0.49813464", "0.49776873", "0.49776042", "0.49721172", "0.4966068", "0.4956057", "0.49536994", "0.49535057", "0.49517792", "0.4951237", "0.49506468", "0.495028", "0.49480844", "0.4945183", "0.49450988", "0.49316683", "0.4931076", "0.49309283", "0.4929861", "0.49276027", "0.49127647", "0.4911877", "0.4911877", "0.49011117", "0.489959", "0.48988718", "0.48988718", "0.48988718", "0.48988718", "0.48988718", "0.48988718", "0.48988718", "0.48937407", "0.4892215", "0.4892215", "0.4892215" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.codename
public String getCodename() { return codename; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSqlCode();", "public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }", "java.lang.String getCodeName();", "@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}", "java.lang.String getCode();", "java.lang.String getCode();", "public String getCode() {\n return (String) get(\"code\");\n }", "public String getCode() { \n\t\treturn getCodeElement().getValue();\n\t}", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public String getCode();", "public String getCode();", "public java.lang.String getCmpCode() {\r\n return cmpCode;\r\n }", "public String getCode(){\n\t\treturn code;\n\t}", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "public String getJP_BankDataCustomerCode1();", "public String getCode () {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\n\t\treturn Code;\n\t}", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public String getJP_BankDataCustomerCode2();", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "@Override\r\n\tpublic String getCode() {\n\t\treturn code;\r\n\t}", "public String getCode() {\n return (String)getAttributeInternal(CODE);\n }", "public java.lang.CharSequence getRcodename() {\n return rcodename;\n }", "public java.lang.String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public java.lang.String getCodeField() {\n return codeField;\n }", "public java.lang.CharSequence getRcodename() {\n return rcodename;\n }", "public String getcCode() {\n\t\treturn this.cCode;\n\t}", "public String code() {\n return this.code;\n }", "public String code() {\n return this.code;\n }", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode()\n {\n return code;\n }", "public String getCode() {\n return this.code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "public String getCode() {\n return _code;\n }", "public String getCoderegion() {\n return (String) getAttributeInternal(CODEREGION);\n }", "public String getCode()\n {\n return fCode;\n }", "Code getCode();", "Integer getCode();", "public java.lang.String getCodeName() {\n java.lang.Object ref = codeName_;\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 codeName_ = s;\n }\n return s;\n }\n }", "int getCodeValue();", "public Long getCode() {\n return code;\n }", "public Long getCode() {\n return code;\n }", "public java.lang.String getCodigo_pcom();", "com.google.protobuf.ByteString\n getCodeNameBytes();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }", "public java.lang.String getCodeName() {\n java.lang.Object ref = codeName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n codeName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCode() {\n\t\treturn codeText.getText().toString();\n\t}", "public java.lang.String getCodeProp()\n\t{\n\t\treturn codeProp;\n\t}", "public FileTransferErrorCode getCode() {\n return FileTransferErrorCode.fromValue(JsoHelper.getAttributeAsInt(jsObj, Attributes.CODE.getValue()));\n }", "public String getCodeId() {\r\n\t\treturn codeId;\r\n\t}", "public int getCode();", "public String getCode() {\n\t\treturn menuDao.getCode();\r\n\t}", "public int getCode() {\r\n\t\t\treturn code;\r\n\t\t}", "@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }", "public long getCode () {\r\n\t\treturn code;\r\n\t}", "public String getCompCode() {\n return (String)getAttributeInternal(COMPCODE);\n }" ]
[ "0.6546719", "0.63949364", "0.6391833", "0.63560605", "0.62525296", "0.62525296", "0.62078923", "0.6200258", "0.6087942", "0.6085286", "0.6085286", "0.60363704", "0.60257447", "0.60198385", "0.6006937", "0.59908843", "0.5978963", "0.5971112", "0.5971112", "0.5971112", "0.5971112", "0.5971112", "0.5964866", "0.5961075", "0.5961075", "0.5953332", "0.59532815", "0.59490615", "0.59488326", "0.5926196", "0.5926196", "0.5926196", "0.5926196", "0.5926196", "0.5926196", "0.5926196", "0.5920193", "0.5918587", "0.5916961", "0.58998615", "0.58998615", "0.5887887", "0.5887887", "0.5887887", "0.5887887", "0.5887887", "0.5887887", "0.58869785", "0.58750653", "0.58701855", "0.58701855", "0.58701855", "0.58701855", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5863056", "0.5842745", "0.5805059", "0.5802119", "0.5793243", "0.57628185", "0.57605904", "0.5738064", "0.5734936", "0.5729894", "0.5729894", "0.57244444", "0.57201743", "0.5699635", "0.56875503", "0.56875503", "0.56843776", "0.5681529", "0.5681436", "0.5638523", "0.5628211", "0.56276643", "0.5627498", "0.5626159", "0.5624918", "0.5587613", "0.558448", "0.55829835" ]
0.6488797
1
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.codename
public void setCodename(String codename) { this.codename = codename == null ? null : codename.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "protected void setCode(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString code = rs.getString(UiActionTable.COLUMN_CODE);\n\t\t\n\t\tif(code == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setCode(code);\n\t}", "public void setCode(String value) {\n setAttributeInternal(CODE, value);\n }", "void setCode(String code);", "public void setRcodename(java.lang.CharSequence value) {\n this.rcodename = value;\n }", "public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }", "public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }", "public String getCodename() {\n return codename;\n }", "java.lang.String getSqlCode();", "@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}", "public void setCoderegion(String value) {\n setAttributeInternal(CODEREGION, value);\n }", "public void setCodigo_pcom(java.lang.String newCodigo_pcom);", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }", "public void setCode(String code) {\n\t\tCode = code;\n\t}", "public int set_code(String b);", "public String setCode() {\n\t\treturn null;\n\t}", "public void setCode(Code code) {\n this.Code = code;\n }", "public void setCode(String code)\n {\n this.code = code;\n }", "public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n code_ = value;\n onChanged();\n return this;\n }", "public void setCode(String code){\n\t\tthis.code = code;\n\t}", "public void setCode(String cod){\n\t\tcodeService = cod;\n\t}", "public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "public void setCompCode(String value) {\n setAttributeInternal(COMPCODE, value);\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(java.lang.String code) {\r\n this.code = code;\r\n }", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public String getCode(){\n\t\treturn code;\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "@Override\r\n\tpublic String getCode() {\n\t\treturn code;\r\n\t}", "public void setDataCode(String dataCode);", "public void setCodigo(java.lang.String codigo) {\n this.codigo = codigo;\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "public String getCode () {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\n\t\treturn Code;\n\t}", "public String getCode() {\n return this.code;\n }", "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public void setCodeField(java.lang.String codeField) {\n this.codeField = codeField;\n }", "public void setCodigo(String codigo) {\n this.codigo = codigo;\n }", "public String getCode();", "public String getCode();", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "@Id\r\n @GeneratedValue(strategy = GenerationType.AUTO)\r\n @Column (name = \"CODE_ID\")\r\n public Long getCodeId() {\r\n return codeId;\r\n }", "public String getCode() {\n return _code;\n }", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public void setCodigo( String codigo ) {\n this.codigo = codigo;\n }", "@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }", "public String getCode() {\n return (String) get(\"code\");\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "java.lang.String getCode();", "java.lang.String getCode();", "void setCode(Integer aCode);", "public String getCode()\n {\n return code;\n }", "public void setCode(int code) {\n this.code = code;\n }", "public void setCode(int code) {\n this.code = code;\n }", "public String getCodeId() {\r\n\t\treturn codeId;\r\n\t}", "public void setCmpCode(java.lang.String cmpCode) {\r\n this.cmpCode = cmpCode;\r\n }", "public java.lang.String getCodeField() {\n return codeField;\n }", "public void setCode(long value) {\n this.code = value;\n }" ]
[ "0.60229695", "0.6000668", "0.5913043", "0.589895", "0.58141756", "0.57970583", "0.5775211", "0.57547015", "0.5713422", "0.568161", "0.5668318", "0.56383973", "0.56053853", "0.5597828", "0.55947316", "0.5592016", "0.5587544", "0.557759", "0.5551554", "0.5523622", "0.55176634", "0.55154425", "0.5510366", "0.5497156", "0.54919475", "0.54503495", "0.54388267", "0.54388267", "0.54388267", "0.54388267", "0.54388267", "0.54388267", "0.543364", "0.54091275", "0.5404754", "0.5394408", "0.5394408", "0.5394408", "0.5371372", "0.53608704", "0.5349499", "0.5348858", "0.5348858", "0.5348858", "0.5348858", "0.5348858", "0.5348858", "0.5348858", "0.53483367", "0.5339812", "0.53262377", "0.5325914", "0.5322557", "0.5322557", "0.5322446", "0.5322446", "0.53198576", "0.5317972", "0.53176165", "0.53176165", "0.53158987", "0.53158987", "0.53158987", "0.53158987", "0.530888", "0.52909434", "0.52899516", "0.5289234", "0.52822083", "0.5269116", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52658254", "0.52628875", "0.52628875", "0.52448875", "0.52447987", "0.5242891", "0.5242891", "0.5234782", "0.52312356", "0.52243465", "0.5219377" ]
0.6440192
0
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.created_by
public Long getCreatedBy() { return createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public native final String getCreatedBy() /*-{\n return this[\"@CreatedBy\"];\n }-*/;", "public String getCreatedby() {\n return createdby;\n }", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public java.lang.Integer getCreatedby() {\n\treturn createdby;\n}", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public String createdBy() {\n return this.createdBy;\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "@AutoEscape\n\tpublic String getCreatedByUser();", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n }\n }", "public String getCreatedBy() {\n return this.createdBy;\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "@JsonProperty(\"created_by\")\n@ApiModelProperty(example = \"[email protected]\", value = \"Creator of requested virtual instance.\")\n public String getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public ScGridColumn<AcActionAutoCorrectedLog> newCreatedByColumn()\n {\n return newCreatedByColumn(\"Created By\");\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCreateBy() {\r\n return createBy;\r\n }", "public Timestamp getCreatedByTimestamp() {\n\t\treturn new Timestamp(this.createdByTimestamp.getTime());\n\t}", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "int getCreatedBy();", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Integer getCreateby() {\n return createby;\n }", "public StringFilter getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public String getCreateBy() {\r\n\t\treturn createBy;\r\n\t}", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "@Valid\n @JsonProperty(\"createdBy\")\n public CreatedBy getCreatedBy();", "public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n\t\treturn createBy;\n\t}", "public Date getCreateBy() {\n return createBy;\n }", "public long getCreatedByUser();", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public String getCreatedUser() {\r\n return this.createdUser;\r\n }" ]
[ "0.7533305", "0.7533305", "0.7533305", "0.7533305", "0.74241453", "0.7199911", "0.7150119", "0.7096294", "0.7079361", "0.7079361", "0.7079361", "0.7079361", "0.7079361", "0.7079361", "0.70688975", "0.70483565", "0.70326823", "0.7032523", "0.7031703", "0.70275605", "0.70275605", "0.70275605", "0.7002728", "0.7002728", "0.698929", "0.69802666", "0.69777715", "0.69760376", "0.69760376", "0.69760376", "0.6971173", "0.6946736", "0.6909744", "0.6903823", "0.6903823", "0.6903823", "0.6903823", "0.6899862", "0.68732", "0.6864949", "0.6834476", "0.6801443", "0.6801298", "0.6801298", "0.67689383", "0.6733461", "0.6700391", "0.6688439", "0.6684161", "0.66385144", "0.66379344", "0.6635624", "0.6635624", "0.6635624", "0.6635624", "0.6630538", "0.6611135", "0.66080505", "0.66039556", "0.66039556", "0.66039556", "0.66039556", "0.66039556", "0.66039556", "0.66039556", "0.66039556", "0.66039556", "0.66039556", "0.66039556", "0.66039556", "0.66039556", "0.6576302", "0.65537447", "0.6544877", "0.6532605", "0.6515883", "0.6515883", "0.6515883", "0.6515883", "0.649955", "0.649365", "0.64818436", "0.6471522", "0.6471522", "0.6471522", "0.6434663", "0.6434663", "0.6434663", "0.6434663", "0.636429", "0.636429", "0.636429", "0.636429", "0.636429", "0.636429", "0.636429", "0.6362755" ]
0.7077564
17
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.created_by
public void setCreatedBy(Long createdBy) { this.createdBy = createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }", "void setCreateby(final U createdBy);", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedBy(Long createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedByUser(String createdByUser);", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\n this.createdBy = createdBy;\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public void setCreatedBy(final CreatedBy createdBy);", "public void setCreatedByUser(long createdByUser);", "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public native final String getCreatedBy() /*-{\n return this[\"@CreatedBy\"];\n }-*/;", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedby(java.lang.Integer newValue) {\n\tthis.createdby = newValue;\n}", "public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }", "public String getCreatedby() {\n return createdby;\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public ScGridColumn<AcActionAutoCorrectedLog> newCreatedByColumn()\n {\n return newCreatedByColumn(\"Created By\");\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "@JsonProperty(\"created_by\")\n@ApiModelProperty(example = \"[email protected]\", value = \"Creator of requested virtual instance.\")\n public String getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy == null ? null : createdBy.trim();\n }", "public void setCreateBy(Date createBy) {\n this.createBy = createBy;\n }", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public void setCreatedby(String createdby) {\n this.createdby = createdby == null ? null : createdby.trim();\n }", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateBy(Long createBy) {\n this.createBy = createBy;\n }", "public void setCreateModifiedBy(String aCreateModifiedBy) {\n createModifiedBy = aCreateModifiedBy;\n }", "public void setCreateModifiedBy(String aCreateModifiedBy) {\n createModifiedBy = aCreateModifiedBy;\n }", "public void setCreateModifiedBy(String aCreateModifiedBy) {\n createModifiedBy = aCreateModifiedBy;\n }", "public void setCreatedBy(StringFilter createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public String getCreatedBy() {\n return this.createdBy;\n }", "public String createdBy() {\n return this.createdBy;\n }", "public Builder setCreatedBy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdBy_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n }\n }", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public java.lang.Integer getCreatedby() {\n\treturn createdby;\n}", "public String getCreateBy() {\r\n return createBy;\r\n }", "public String getCreatedBy() {\n return createdBy;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public void setCreateBy(String createBy) {\r\n\t\tthis.createBy = createBy;\r\n\t}", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public void setCreateby(Integer createby) {\n this.createby = createby;\n }", "@Override\n\tpublic void setCreatedBy(java.lang.String CreatedBy) {\n\t\t_locMstLocation.setCreatedBy(CreatedBy);\n\t}" ]
[ "0.71048564", "0.7104235", "0.7092737", "0.7092737", "0.7092737", "0.7092737", "0.7092737", "0.7092737", "0.7092737", "0.70583946", "0.69574594", "0.69574594", "0.69574594", "0.69574594", "0.69574594", "0.69574594", "0.69574594", "0.69574594", "0.6914771", "0.6893549", "0.68915737", "0.6863232", "0.6863232", "0.6863232", "0.6863232", "0.68388295", "0.6837222", "0.6797388", "0.67677486", "0.6755997", "0.67391175", "0.67186826", "0.6714063", "0.6714063", "0.6714063", "0.6714063", "0.66985494", "0.668311", "0.6603967", "0.6589078", "0.6585821", "0.6585821", "0.6580149", "0.65372825", "0.64844626", "0.648412", "0.648412", "0.648412", "0.64825416", "0.647261", "0.6448603", "0.6430295", "0.6407129", "0.6407129", "0.6407129", "0.6407129", "0.640478", "0.64019763", "0.6386855", "0.63608503", "0.63608503", "0.63608503", "0.63550377", "0.63386023", "0.63313156", "0.63313156", "0.63313156", "0.63313156", "0.6330068", "0.6330068", "0.6330068", "0.63254803", "0.6322725", "0.6320107", "0.62609404", "0.6252049", "0.6248483", "0.6227944", "0.6223996", "0.621567", "0.6202709", "0.6201504", "0.61863256", "0.6175558", "0.61510843", "0.61510843", "0.61510843", "0.61510843", "0.61510843", "0.61510843", "0.6150071", "0.614482", "0.614482", "0.614482", "0.614482", "0.61425877", "0.6131346" ]
0.6849385
28
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.updated_by
public Long getUpdatedBy() { return updatedBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String updatedBy() {\n return this.updatedBy;\n }", "public String getUpdatedBy() {\r\n return updatedBy;\r\n }", "public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}", "public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdateBy() {\r\n return updateBy;\r\n }", "public Integer getUpdateby() {\n return updateby;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n\t\treturn updateBy;\n\t}", "@ApiModelProperty(value = \"The user name of the person performing the action.\")\n public String getUpdatedBy() {\n return updatedBy;\n }", "public UserItem getUpdatedBy() {\n return updatedBy;\n }", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "public void setUpdatedby( String updatedby )\n {\n this.updatedby = updatedby;\n }", "public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public void setUpdatedBy( Integer updatedBy ) {\n this.updatedBy = updatedBy;\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public void setUpdatedBy(String updatedBy) {\r\n\t\tthis.updatedBy = updatedBy;\r\n\t}", "public int getModifiedBy() {\n return modifiedBy;\n }", "public void setUpdatedBy(String updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public Date getModifiedBy() {\n return modifiedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}", "public Long getModifiedBy() {\n return modifiedBy;\n }", "public String getLastupdateby() {\n return lastupdateby;\n }", "U getUpdateby();", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public java.lang.String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}", "public java.lang.Integer getModifiedby() {\n\treturn modifiedby;\n}", "public String getModifiedBy(){\r\n\t\treturn modifiedBy;\r\n\t}", "@Override\n\tpublic java.lang.String getModifiedBy() {\n\t\treturn _locMstLocation.getModifiedBy();\n\t}", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String updatedBy) {\r\n this.updatedBy = updatedBy == null ? null : updatedBy.trim();\r\n }", "public String getModifiedby()\n {\n return (String)getAttributeInternal(MODIFIEDBY);\n }", "public String getModifiedBy() {\r\n return (String) getAttributeInternal(MODIFIEDBY);\r\n }", "@AutoEscape\n\tpublic String getModifiedByUser();", "public void setUpdateBy( String updateBy ) {\n this.updateBy = updateBy;\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getModifiedBy() {\n return (String) getAttributeInternal(MODIFIEDBY);\n }", "public String getUpdateUserId() {\r\n return updateUserId;\r\n }", "@Override\n\tpublic long getModifiedBy() {\n\t\treturn _candidate.getModifiedBy();\n\t}", "public native final String getLastModifiedBy() /*-{\n return this[\"@LastModifiedBy\"];\n }-*/;", "public String getUpdateUser () {\r\n\t\treturn updateUser;\r\n\t}", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public String getUpdateUser() {\r\n return updateUser;\r\n }", "public String getUpdateUser() {\r\n return updateUser;\r\n }", "public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}", "public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}", "public Long getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }" ]
[ "0.7781837", "0.7738684", "0.76653904", "0.766309", "0.76545054", "0.76545054", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.7647653", "0.76335263", "0.7598023", "0.7580215", "0.74046654", "0.73514247", "0.7323402", "0.7323402", "0.7323402", "0.7310098", "0.7310098", "0.7310098", "0.7292656", "0.71408737", "0.7036713", "0.6927243", "0.68742", "0.68729556", "0.6860304", "0.6854927", "0.6846716", "0.6846716", "0.6846716", "0.6846716", "0.6846716", "0.6846716", "0.6846716", "0.68301994", "0.6817034", "0.6817034", "0.68163043", "0.68163043", "0.6784399", "0.6733493", "0.6723659", "0.6699044", "0.6699044", "0.6699044", "0.6699044", "0.66889566", "0.6685703", "0.66847265", "0.6671193", "0.6669937", "0.6664976", "0.6664976", "0.6645227", "0.66395694", "0.66361976", "0.6607407", "0.6599971", "0.6595649", "0.6531475", "0.6531475", "0.6531475", "0.65062976", "0.64775854", "0.6475354", "0.6473168", "0.6450715", "0.6433754", "0.6433754", "0.6433754", "0.6433754", "0.641672", "0.6407618", "0.6384854", "0.63795865", "0.634421", "0.63418424", "0.63418424", "0.63276345", "0.63276345", "0.6327252", "0.6327252", "0.63172466", "0.6266503", "0.6266503", "0.6266503" ]
0.7655598
6
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.updated_by
public void setUpdatedBy(Long updatedBy) { this.updatedBy = updatedBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdatedby( String updatedby )\n {\n this.updatedby = updatedby;\n }", "public void setUpdatedBy( Integer updatedBy ) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String updatedBy) {\r\n\t\tthis.updatedBy = updatedBy;\r\n\t}", "public void setUpdatedBy(Long updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}", "public void setUpdatedBy(String updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}", "public void setUpdatedBy(String updatedBy) {\r\n this.updatedBy = updatedBy == null ? null : updatedBy.trim();\r\n }", "public String updatedBy() {\n return this.updatedBy;\n }", "public String getUpdatedBy() {\r\n return updatedBy;\r\n }", "public void setUpdateBy( String updateBy ) {\n this.updateBy = updateBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}", "public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public void setUpdateBy(Long updateBy) {\n this.updateBy = updateBy;\n }", "public void setUpdateBy(Long updateBy) {\n this.updateBy = updateBy;\n }", "public void setUpdateBy(Long updateBy) {\n this.updateBy = updateBy;\n }", "void setUpdateby(final U lastModifiedBy);", "public String getUpdateBy() {\r\n return updateBy;\r\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "@ApiModelProperty(value = \"The user name of the person performing the action.\")\n public String getUpdatedBy() {\n return updatedBy;\n }", "public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public String getUpdateBy() {\n\t\treturn updateBy;\n\t}", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public void setUpdateBy(String updateBy) {\n\t\tthis.updateBy = updateBy == null ? null : updateBy.trim();\n\t}", "public void setUpdateBy(String updateBy) {\r\n this.updateBy = updateBy == null ? null : updateBy.trim();\r\n }", "public void setUpdateBy(int updateBy) {\n inputParameters.Update_By = updateBy;\n\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public void setUpdatedBy(UserItem userItem) {\n this.updatedBy = userItem;\n }", "public void setUpdateBy(String updateBy) {\n this.updateBy = updateBy == null ? null : updateBy.trim();\n }", "public void setUpdateBy(String updateBy) {\n this.updateBy = updateBy == null ? null : updateBy.trim();\n }", "public void setUpdateBy(String updateBy) {\n this.updateBy = updateBy == null ? null : updateBy.trim();\n }", "public void setLastUpdatedBy(Number value) {\r\n setAttributeInternal(LASTUPDATEDBY, value);\r\n }", "public Integer getUpdateby() {\n return updateby;\n }", "public void setUpdateby(Integer updateby) {\n this.updateby = updateby;\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }", "public void setModifiedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.modifiedBy, v))\n {\n this.modifiedBy = v;\n setModified(true);\n }\n \n \n }", "public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public UserItem getUpdatedBy() {\n return updatedBy;\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public void setModifiedBy(String tmp) {\n this.modifiedBy = Integer.parseInt(tmp);\n }", "public Flow withUpdatedBy(String updatedBy) {\n this.updatedBy = updatedBy;\n return this;\n }", "public void setLastUpdateBy(String lastUpdateBy) {\r\n\t\tthis.lastUpdateBy = lastUpdateBy;\r\n\t}", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(Date modifiedBy) {\n this.modifiedBy = modifiedBy;\n }", "public void setModifiedBy(Long modifiedBy) {\n this.modifiedBy = modifiedBy;\n }", "public void setModifiedBy(String modifiedBy){\r\n\t\tthis.modifiedBy = modifiedBy;\r\n\t}", "public void setModifiedBy(java.lang.String modifiedBy) {\r\n this.modifiedBy = modifiedBy;\r\n }", "public int getModifiedBy() {\n return modifiedBy;\n }", "public void setModifiedByUser(long modifiedByUser);", "public void setModifiedBy(String value) {\r\n setAttributeInternal(MODIFIEDBY, value);\r\n }", "public Date getModifiedBy() {\n return modifiedBy;\n }", "void setUserUpdated(final Long userUpdated);", "public void setModifiedBy(String value) {\n setAttributeInternal(MODIFIEDBY, value);\n }", "public void setModifiedByUser(String modifiedByUser);", "public String getModifiedBy(){\r\n\t\treturn modifiedBy;\r\n\t}", "public void setModifiedBy(User modifiedBy)\n\t{\n\t\t this.addKeyValue(\"Modified_By\", modifiedBy);\n\n\t}", "U getUpdateby();", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }" ]
[ "0.74325424", "0.74259806", "0.73132294", "0.73132294", "0.73132294", "0.73088896", "0.7259521", "0.72231597", "0.71523386", "0.708115", "0.7052403", "0.7011093", "0.6996633", "0.6996633", "0.6996633", "0.6996633", "0.6995091", "0.69668925", "0.69668925", "0.69668925", "0.69668925", "0.69668925", "0.69668925", "0.69668925", "0.69668925", "0.69668925", "0.69668925", "0.69668925", "0.69668925", "0.69668925", "0.6964622", "0.68991005", "0.6898985", "0.6898985", "0.6898985", "0.6897897", "0.68806964", "0.6824125", "0.6824125", "0.68104374", "0.67921937", "0.6790891", "0.6787627", "0.6787627", "0.6787627", "0.67816746", "0.676794", "0.67587954", "0.67570335", "0.67570335", "0.67570335", "0.67383695", "0.67144346", "0.67144346", "0.67144346", "0.6706942", "0.6700001", "0.667268", "0.6666417", "0.6666417", "0.6666417", "0.6666417", "0.6666417", "0.6666417", "0.6666417", "0.6666417", "0.6666417", "0.6625646", "0.65774995", "0.65774995", "0.6566297", "0.6514085", "0.6483665", "0.6468373", "0.63314235", "0.63314235", "0.6322973", "0.6313181", "0.62773824", "0.6236408", "0.6236408", "0.6236408", "0.6231473", "0.62219876", "0.6208172", "0.6205636", "0.61856633", "0.61508137", "0.61415887", "0.61236405", "0.6115294", "0.6085874", "0.6077803", "0.6071557", "0.606882", "0.6067931", "0.6062971" ]
0.7324931
4
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.created_at
public Date getCreatedAt() { return createdAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCreated_at();", "public String getCreated_at() {\n return created_at;\n }", "public java.sql.Timestamp getCreated() {\n\treturn created;\n}", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}", "@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getCreateTs() {\n\t\treturn createTs;\n\t}", "public Timestamp getCreatedOn() {\r\n\t\treturn createdOn;\r\n\t}", "public String getCreatedAt() {\n return (String) get(\"created_at\");\n }", "public Long getCreateAt() {\n return createAt;\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "public Date getCreatedAt()\n\t{\n\t\treturn getCreatedAt( getSession().getSessionContext() );\n\t}", "public Date getCreateOn() {\n\t\treturn this.createOn;\r\n\t}", "public Long getCreatedAt() {\n return createdAt;\n }", "public Timestamp getCreateDate() {\n return createDate;\n }", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "@JsonGetter(\"created_at\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public String getCreatedAt() {\r\n return createdAt;\r\n }", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "public Timestamp getCreatedAt() {\n return (Timestamp) getAttributeInternal(CREATEDAT);\n }", "public Date getCreatedAt() {\n\t\treturn _created_at;\n\t}", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public OffsetDateTime createdDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public OffsetDateTime createdAt() {\n return this.createdAt;\n }", "public Date getCreateTimestamp() {\r\n return createTimestamp;\r\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Timestamp getCreated() {\n return created;\n }", "public Date getCreateTimestamp() {\n return createTimestamp;\n }", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public String getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return this.createdAt;\n }", "public Date getDateCreated(){return DATE_CREATED;}", "public DateTime createdAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\r\n\t\treturn createdAt;\r\n\t}", "public OffsetDateTime getCreatedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Created_Time\");\n\n\t}", "public long getCreatedAt() {\n return createdAt;\n }", "Date getDateCreated();", "public Date getCreatedAt() {\n\t\treturn createdAt;\n\t}", "public java.sql.Timestamp getCreateTime () {\r\n\t\treturn createTime;\r\n\t}", "@JsonProperty(\"created_at\")\n@ApiModelProperty(example = \"2001-08-28T00:23:41Z\", value = \"ISO-8601 date of when virtual instance was created.\")\n public String getCreatedAt() {\n return createdAt;\n }", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public DateTime getCreatedOn();", "public Date getDateCreated();", "public Date getCreatedTs() {\n\t\treturn createdTs;\n\t}", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public String getDateCreated(){\n return dateCreated.toString();\n }", "public long getCreatedAt() {\n\t\treturn createdAt;\n\t}", "@JsonProperty(\"created_at\")\n public Date getCreatedAt() {\n return createdAt;\n }", "public DateTime getCreatedAt() {\n return this.createdAt;\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"createdAt\")\n public Long getCreatedAtDD() {\n return getCreatedAt() == null ? null : getCreatedAt().getTime();\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "@Schema(example = \"1592180992\", required = true, description = \"Time of labeling (timestamp)\")\n public Long getCreatedAt() {\n return createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn this.createdTimestamp;\n\t}", "public Timestamp getCreateTime() {\n return createTime;\n }", "public String getDatecreated() {\n return datecreated;\n }", "public DateTime createdDateTime() {\n return this.createdDateTime;\n }", "@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }", "@Schema(description = \"The datetime on which the worklog was created.\")\n public OffsetDateTime getCreated() {\n return created;\n }", "@ApiModelProperty(required = true, value = \"creation timestamp in ISO-8601 format, see http://en.wikipedia.org/wiki/ISO_8601\")\n @JsonProperty(\"created\")\n public Date getCreated() {\n return created;\n }", "public Date getCreatedon()\n {\n return (Date)getAttributeInternal(CREATEDON);\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public java.sql.Timestamp getFecha();", "public java.sql.Timestamp getFecha_envio();", "public Integer getCreateTime() {\r\n return createTime;\r\n }" ]
[ "0.7055657", "0.6775134", "0.67460823", "0.6744897", "0.6712351", "0.6650904", "0.664823", "0.6589708", "0.6573367", "0.65676004", "0.6547102", "0.6542456", "0.65286624", "0.652719", "0.65251297", "0.6514878", "0.6504472", "0.6498088", "0.6474023", "0.6459495", "0.6459495", "0.6435306", "0.6432603", "0.6432603", "0.6427253", "0.6420815", "0.64064825", "0.64064825", "0.64050406", "0.64003223", "0.63904124", "0.63904124", "0.63904124", "0.63904124", "0.63904124", "0.63904124", "0.63904124", "0.63904124", "0.63904124", "0.63904124", "0.63904124", "0.63904124", "0.63904124", "0.6389006", "0.6389006", "0.6389006", "0.63784105", "0.6373078", "0.6358726", "0.6348561", "0.6347722", "0.63389134", "0.633099", "0.63272125", "0.6317618", "0.6313252", "0.63093793", "0.63069004", "0.63050735", "0.63034374", "0.6280333", "0.6280333", "0.6280333", "0.62713945", "0.62713945", "0.62639993", "0.6262813", "0.62616134", "0.62530065", "0.62518984", "0.62501884", "0.62501884", "0.62391365", "0.62391365", "0.6231929", "0.6220808", "0.6220808", "0.6220808", "0.62189007", "0.6213121", "0.62129885", "0.6204256", "0.6193234", "0.6192368", "0.61735225", "0.6168305", "0.61662585", "0.61617523", "0.615739", "0.615739", "0.61521024", "0.61490935", "0.6145286" ]
0.6407314
33
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.created_at
public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedOn(DateTime createdOn);", "public void setDateCreated(Date dateCreated);", "void setCreatedDate(Date createdDate);", "public void setCreatedDate(Date createdDate);", "public void setCreatedAt(final Date value)\n\t{\n\t\tsetCreatedAt( getSession().getSessionContext(), value );\n\t}", "public void setCreatedon( Date createdon )\n {\n this.createdon = createdon;\n }", "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "@JsonProperty(\"created_at\")\n public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreated(java.sql.Timestamp newValue) {\n\tthis.created = newValue;\n}", "public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreated( java.sql.Timestamp newValue ) {\n __setCache(\"created\", newValue);\n }", "public void setCreated(Timestamp created) {\n this.created = created;\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }", "@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getCreateTs() {\n\t\treturn createTs;\n\t}", "@PrePersist\r\n void createdAt() {\r\n setDateRecordAdded();\r\n setDateRecordUpdated();\r\n }", "public void setCreatedOn(Timestamp createdOn) {\r\n\t\tthis.createdOn = createdOn;\r\n\t}", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public String getCreated_at() {\n return created_at;\n }", "public void setFecha_envio(java.sql.Timestamp newFecha_envio);", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }", "String getCreated_at();", "private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }", "public Timestamp getCreateDate() {\n return createDate;\n }", "public Long getCreateAt() {\n return createAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public Date getCreateOn() {\n\t\treturn this.createOn;\r\n\t}", "public void setUpdatedOn(Date updatedOn);", "public void setFecha(java.sql.Timestamp newFecha);", "public Date getCreatedAt() {\n\t\treturn _created_at;\n\t}", "public Timestamp getCreatedOn() {\r\n\t\treturn createdOn;\r\n\t}", "void setDateCreated(final Date dateCreated);", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public Date getDateCreated(){return DATE_CREATED;}", "public void setStatementDate (Timestamp StatementDate);", "public void setCreatedOn(Date createdOn)\n {\n _model.setCreatedOn(createdOn);\n }", "public void setCreatedAt(final SessionContext ctx, final Date value)\n\t{\n\t\tsetProperty(ctx, CREATEDAT,value);\n\t}", "public Date getCreatedAt() {\r\n\t\treturn createdAt;\r\n\t}", "@JsonProperty(\"created_at\")\n@ApiModelProperty(example = \"2001-08-28T00:23:41Z\", value = \"ISO-8601 date of when virtual instance was created.\")\n public String getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return this.createdAt;\n }", "private void setCreatedTime(int value) {\n \n createdTime_ = value;\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public Long getCreatedAt() {\n return createdAt;\n }", "@JsonGetter(\"created_at\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public String getCreatedAt() {\r\n return createdAt;\r\n }", "public void setCreatedAt(Long createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void setCreatedDate(Timestamp aCreatedDate) {\n createdDate = aCreatedDate;\n }", "public void setCreatedAt( Date createdAt ) {\n this.createdAt = createdAt;\n }", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "Builder addDateCreated(Date value);", "@JsonProperty(\"created_at\")\n public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt()\n\t{\n\t\treturn getCreatedAt( getSession().getSessionContext() );\n\t}", "void setCreateDate(Date date);", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreationDate(Date creationDate);", "public Date getCreatedAt() {\n\t\treturn createdAt;\n\t}", "@PrePersist\n protected void onCreate(){\n this.createdAt = new Date();\n }", "public void setCreated(java.lang.Long value) {\n this.created = value;\n }", "Builder addDateCreated(DateTime value);", "public void setCreatedAt(long createdAt) {\n this.createdAt = createdAt;\n }", "public OffsetDateTime createdAt() {\n return this.createdAt;\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "@PrePersist\n\t protected void onCreate(){\n\t this.createdAt = new Date();\n\t }", "public DateTime getCreatedAt() {\n return this.createdAt;\n }", "public java.sql.Timestamp getCreated() {\n\treturn created;\n}", "public void setCreatedAt(Date createdAt) {\r\n\t\tthis.createdAt = createdAt;\r\n\t}", "@PrePersist\n\tprivate void setDateCreation() {\n\t\tthis.dateCreation = ZonedDateTime.now();\n\n\t}", "@Override\r\n\tpublic void setCreated(LocalDateTime created) {\n\t\tthis.created = created;\t\t\r\n\t}", "public void setCreateTime(Date createTime)\n/* */ {\n/* 184 */ this.createTime = createTime;\n/* */ }", "public Date getCreateTimestamp() {\r\n return createTimestamp;\r\n }", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }" ]
[ "0.632875", "0.6194673", "0.6079446", "0.60722727", "0.60578775", "0.60564905", "0.5953267", "0.59489596", "0.5937728", "0.59037447", "0.58602077", "0.58547497", "0.5853452", "0.5853452", "0.5853233", "0.5849766", "0.5847937", "0.58288896", "0.58223194", "0.58223194", "0.58193284", "0.58162683", "0.5813991", "0.5813991", "0.5811686", "0.5811686", "0.58085054", "0.5778884", "0.5771366", "0.57635957", "0.575647", "0.575316", "0.575316", "0.57478416", "0.5747011", "0.5747011", "0.5747011", "0.5747011", "0.57425296", "0.57425296", "0.57425296", "0.57398427", "0.57378286", "0.5733312", "0.57308865", "0.5729096", "0.57245904", "0.5713331", "0.5713331", "0.5713331", "0.5713331", "0.5713331", "0.5713331", "0.5713331", "0.5713331", "0.5707116", "0.5706856", "0.5706856", "0.5706856", "0.5704556", "0.5691464", "0.5690908", "0.5687054", "0.56834745", "0.56804687", "0.5679382", "0.5659081", "0.565199", "0.565199", "0.56508666", "0.5647599", "0.5642224", "0.5639636", "0.5639054", "0.5630171", "0.56298125", "0.56249607", "0.5623659", "0.5623574", "0.56133455", "0.5612078", "0.5612078", "0.56099427", "0.5608359", "0.560474", "0.56007725", "0.5593285", "0.5592738", "0.55882645", "0.55876267", "0.55867803", "0.55867803", "0.55820984", "0.5571069", "0.55678654", "0.5564297", "0.5563577", "0.55598366", "0.55560917", "0.5547417", "0.5541084" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.updated_at
public Date getUpdatedAt() { return updatedAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedOn();", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n\t\treturn updatedAt;\r\n\t}", "public Date getUpdatedAt() {\n\t\treturn updatedAt;\n\t}", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling information was last changed (timestamp)\")\n public Long getUpdatedAt() {\n return updatedAt;\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Long getUpdateAt() {\n return updateAt;\n }", "public DateTime updatedAt() {\n return this.updatedAt;\n }", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public OffsetDateTime updatedAt() {\n return this.updatedAt;\n }", "public Date getUpdatedAt()\n\t{\n\t\treturn getUpdatedAt( getSession().getSessionContext() );\n\t}", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public Long getUpdatedAtDD() {\n return getUpdatedAt() == null ? null : getUpdatedAt().getTime();\n }", "@JsonProperty(\"updated_at\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdateDatetime();", "public DateTime getUpdatedAt() {\n return this.updatedAt;\n }", "@Schema(description = \"The datetime on which the worklog was last updated.\")\n public OffsetDateTime getUpdated() {\n return updated;\n }", "@ApiModelProperty(required = true, value = \"last update timestamp in ISO-8601 format, see http://en.wikipedia.org/wiki/ISO_8601\")\n @JsonProperty(\"updated\")\n public Date getUpdated() {\n return updated;\n }", "public OffsetDateTime updatedDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().updatedDateTime();\n }", "Date getUpdatedDate();", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public ZonedDateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return mUpdated;\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn this.updatedTimestamp;\n\t}", "public Timestamp getUpdateDate() {\n return updateDate;\n }", "public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }", "Date getDateUpdated();", "public Date getUpdated() {\r\n\t\treturn updated;\r\n\t}", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "public Date getDateUpdated() {\n\t\treturn parseDate(getProperty(DATE_UPDATED_PROPERTY));\n\t}", "public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}", "@ApiModelProperty(value = \"修改时间\")\n public Date getRowUpdateTime() {\n return rowUpdateTime;\n }", "@ApiModelProperty(value = \"Person last updated. (May not be accurate)\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedDt() {\n\t\treturn updatedDt;\n\t}", "public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}", "public Date getUpdatedate() {\r\n return updatedate;\r\n }", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedAt(final SessionContext ctx)\n\t{\n\t\treturn (Date)getProperty( ctx, UPDATEDAT);\n\t}", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdateTimestamp() {\n return updateTimestamp;\n }", "@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}", "public java.sql.Timestamp getModified() {\n return modified;\n }", "public Date getUpdateDt() {\n return updateDt;\n }", "public Date getUpdateDt() {\n return updateDt;\n }", "public Date getUpdateTimestamp() {\r\n return updateTimestamp;\r\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The timestamp when the incident was updated at.\")\n\n public OffsetDateTime getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public ZonedDateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "public java.sql.Timestamp getModified() {\n\treturn modified;\n}", "public java.util.Date getLastUpdatedAt() {\n return this.lastUpdatedAt;\n }", "public Date getUpdatedDate() {\n return updatedDate;\n }", "Date getForLastUpdate();", "public DateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "public String getUpdated() {\n return this.updated;\n }", "public String getUpdated() {\n return this.updated;\n }", "public java.util.Date getDateUpdated() {\n return dateUpdated;\n }", "@ApiModelProperty(value = \"更新时间\")\n\tpublic Date getRowUpdateTime() {\n\t\treturn rowUpdateTime;\n\t}", "public Timestamp getLastUpdated() {\n return lastUpdated;\n }", "public Date getUpdateTime() {\r\n\t\treturn this.updatedTime;\r\n\t}" ]
[ "0.7312936", "0.7258646", "0.72030634", "0.72030634", "0.72030634", "0.71277344", "0.7106542", "0.7088406", "0.7088406", "0.7076607", "0.70598054", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.7009458", "0.6985787", "0.69750935", "0.6929347", "0.6923617", "0.6908619", "0.69071865", "0.68779653", "0.68779653", "0.6858435", "0.6836465", "0.68271685", "0.67952293", "0.67648464", "0.6760411", "0.6740953", "0.67294806", "0.6723118", "0.6723118", "0.67114013", "0.67114013", "0.67114013", "0.6707428", "0.6707428", "0.67040855", "0.6698182", "0.6698182", "0.6693277", "0.66807264", "0.66704744", "0.6630905", "0.66284907", "0.6620873", "0.6615243", "0.6599311", "0.65953356", "0.6580846", "0.6566158", "0.65639615", "0.6563347", "0.65399295", "0.65395844", "0.65121883", "0.65121883", "0.65121883", "0.6509005", "0.64997", "0.64997", "0.6483728", "0.6483728", "0.647185", "0.6465999", "0.64602095", "0.6457132", "0.6457132", "0.6451995", "0.6423576", "0.6420589", "0.6420589", "0.6415082", "0.6395984", "0.6374312", "0.63709825", "0.634201", "0.63209105", "0.6316097", "0.6316097", "0.6315232", "0.62912226", "0.62883544", "0.62764513" ]
0.7153162
11
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.updated_at
public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdatedOn(Date updatedOn);", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedOn();", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\r\n\t\treturn updatedAt;\r\n\t}", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public Date getUpdatedAt() {\n\t\treturn updatedAt;\n\t}", "public Long getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "@JsonProperty(\"updated_at\")\n public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "@JsonProperty(\"updated_at\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "public DateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public void setUpdatedAt( Date updatedAt ) {\n this.updatedAt = updatedAt;\n }", "public OffsetDateTime updatedAt() {\n return this.updatedAt;\n }", "public ZonedDateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public void setUpdatedAt(Long updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(final Date value)\n\t{\n\t\tsetUpdatedAt( getSession().getSessionContext(), value );\n\t}", "void setUpdatedDate(Date updatedDate);", "public void setUpdatedon( Date updatedon )\n {\n this.updatedon = updatedon;\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public DateTime updatedAt() {\n return this.updatedAt;\n }", "@PreUpdate\r\n void updatedAt() {\r\n setDateRecordUpdated();\r\n }", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling information was last changed (timestamp)\")\n public Long getUpdatedAt() {\n return updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\r\n\t\tthis.updatedAt = updatedAt;\r\n\t}", "public Date getUpdatedAt()\n\t{\n\t\treturn getUpdatedAt( getSession().getSessionContext() );\n\t}", "public void setUpdated(Date updated) {\n this.updated = updated;\n }", "public void setUpdated(Date updated) {\n this.updated = updated;\n }", "public Long getUpdateAt() {\n return updateAt;\n }", "public void setUpdateDatetime(Date updateDatetime);", "public void setUpdatedAt(Date updatedAt) {\n\t\tthis.updatedAt = updatedAt;\n\t}", "public OffsetDateTime updatedDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().updatedDateTime();\n }", "public Date getUpdateDatetime();", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The timestamp when the incident was updated at.\")\n\n public OffsetDateTime getUpdatedAt() {\n return updatedAt;\n }", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "public Timestamp getUpdated();", "@ApiModelProperty(required = true, value = \"last update timestamp in ISO-8601 format, see http://en.wikipedia.org/wiki/ISO_8601\")\n @JsonProperty(\"updated\")\n public Date getUpdated() {\n return updated;\n }", "public void setUpdatedAt(final SessionContext ctx, final Date value)\n\t{\n\t\tsetProperty(ctx, UPDATEDAT,value);\n\t}", "@ApiModelProperty(value = \"Person last updated. (May not be accurate)\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "void setLastUpdatedTime();", "Date getDateUpdated();", "Date getUpdatedDate();", "public void setModified(java.sql.Timestamp tmp) {\n this.modified = tmp;\n }", "void setDateUpdated(final Date dateUpdated);", "public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }", "public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }", "public Date getUpdatedAt(final SessionContext ctx)\n\t{\n\t\treturn (Date)getProperty( ctx, UPDATEDAT);\n\t}", "public void setUpdated(Date updated) {\r\n\t\tthis.updated = updated;\r\n\t}", "public Date getUpdatedate() {\r\n return updatedate;\r\n }", "@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Timestamp getUpdateDate() {\n return updateDate;\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public Long getUpdatedAtDD() {\n return getUpdatedAt() == null ? null : getUpdatedAt().getTime();\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}", "@ApiModelProperty(value = \"修改时间\")\n public Date getRowUpdateTime() {\n return rowUpdateTime;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return mUpdated;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdatedate() {\n return updatedate;\n }" ]
[ "0.6856163", "0.66755384", "0.66755384", "0.66755384", "0.65978587", "0.6591308", "0.6591308", "0.6591308", "0.6591308", "0.6591308", "0.6591308", "0.6591308", "0.6580089", "0.651685", "0.651685", "0.65093136", "0.64927316", "0.6374614", "0.6374614", "0.63341904", "0.6308645", "0.6264167", "0.6239147", "0.6229028", "0.6224848", "0.62217873", "0.6219999", "0.6219999", "0.62169474", "0.62169474", "0.62169474", "0.62142754", "0.61947584", "0.6191577", "0.61875933", "0.61875933", "0.61685604", "0.61677015", "0.61616224", "0.6153897", "0.61187685", "0.6113618", "0.6113618", "0.61079544", "0.6082387", "0.6080774", "0.60728383", "0.60617757", "0.60474443", "0.6043816", "0.60420734", "0.60420734", "0.60420734", "0.60420734", "0.60420734", "0.60420734", "0.60420734", "0.60420734", "0.60420734", "0.60420734", "0.60420734", "0.60420734", "0.60420734", "0.6039455", "0.60306454", "0.6027749", "0.6024256", "0.5999707", "0.5990501", "0.5980984", "0.59644395", "0.5930772", "0.5930772", "0.59293544", "0.5928145", "0.59157795", "0.58950764", "0.5883495", "0.5883495", "0.58820677", "0.5881371", "0.58781147", "0.58781147", "0.58781147", "0.58778", "0.58653176", "0.58653176", "0.5861805", "0.5858022", "0.58565366", "0.5827944", "0.5827944", "0.58172953", "0.58127743", "0.58127743" ]
0.60720015
52
This method was generated by MyBatis Generator. This method returns the value of the database column js_op.code
public String getCode() { return code; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSqlCode();", "public String getCode() {\n return (String) get(\"code\");\n }", "java.lang.String getCode();", "java.lang.String getCode();", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public String getCode();", "public String getCode();", "public String getCode() { \n\t\treturn getCodeElement().getValue();\n\t}", "public String code() {\n return this.code;\n }", "public String code() {\n return this.code;\n }", "@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}", "public String getCode(){\n\t\treturn code;\n\t}", "public String getCode () {\r\n\t\treturn code;\r\n\t}", "@Override\r\n\tpublic String getCode() {\n\t\treturn code;\r\n\t}", "public java.lang.String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "Code getCode();", "public Long getCode() {\n return code;\n }", "public Long getCode() {\n return code;\n }", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return this.code;\n }", "public String getCode()\n {\n return code;\n }", "@JsonFormat(shape = JsonFormat.Shape.STRING)\n public Integer getCode() {\n return code;\n }", "com.google.protobuf.ByteString getSqlCodeBytes();", "public String getCode() {\n return _code;\n }", "public String getCode() {\n\t\treturn Code;\n\t}", "public int getOpCode() {\n return opCode;\n }", "Integer getCode();", "int getCodeValue();", "public String getCode()\n {\n return fCode;\n }", "public int getCode() {\r\n\t\t\treturn code;\r\n\t\t}", "public int getCode() {\n return code_;\n }", "public int getCode() {\n return code_;\n }", "public int getCode() {\n return code_;\n }", "public int getCode() {\n return code_;\n }", "public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }", "public byte getCode();", "public int getCode() {\n\t\treturn this.code;\n\t}", "public String getCode() {\n return (String)getAttributeInternal(CODE);\n }", "public int getCode() {\n\t\treturn code;\n\t}", "public long getCode () {\r\n\t\treturn code;\r\n\t}", "public short code() {\n return this.code;\n }", "public int getCode();", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public int getCode() {\r\n return code;\r\n }", "public int getCode() {\r\n return code;\r\n }", "public int getCode() {\n return code;\n }", "public int getCode() {\n return code;\n }", "public int getCode() {\n return code;\n }", "public int getCode() {\n return code;\n }", "public int getCode() {\n return code;\n }", "public long getCode() {\n return code;\n }", "@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }", "public int value() {\n return code;\n }", "public java.lang.String getCodeField() {\n return codeField;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }" ]
[ "0.71845037", "0.6736679", "0.67142093", "0.67142093", "0.6595733", "0.65932745", "0.65932745", "0.65679944", "0.65510106", "0.65510106", "0.65172935", "0.6516805", "0.6512707", "0.6497759", "0.6478006", "0.64755934", "0.64755934", "0.6473249", "0.6473249", "0.6473249", "0.6473249", "0.6473249", "0.6473249", "0.6473249", "0.6461927", "0.6457033", "0.6442303", "0.6442303", "0.6434175", "0.6434175", "0.6434175", "0.6434175", "0.6434175", "0.64327604", "0.64327604", "0.64327604", "0.64327604", "0.64327604", "0.64327604", "0.64323676", "0.64323676", "0.64323676", "0.64323676", "0.64212245", "0.6414904", "0.64098656", "0.64098334", "0.6390848", "0.63763744", "0.63359165", "0.6331898", "0.63241863", "0.63218254", "0.63192856", "0.6310376", "0.6310376", "0.63093257", "0.63093257", "0.63029593", "0.62991816", "0.62674963", "0.62626714", "0.625971", "0.62564224", "0.62436473", "0.62376297", "0.62202793", "0.62202793", "0.61997175", "0.61997175", "0.6174974", "0.6174974", "0.6174974", "0.6174974", "0.6174974", "0.6160938", "0.615791", "0.6124268", "0.6119302", "0.60992724", "0.60944366" ]
0.642547
61
This method was generated by MyBatis Generator. This method sets the value of the database column js_op.code
public void setCode(String code) { this.code = code == null ? null : code.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCode(String code);", "public void setCode(Code code) {\n this.Code = code;\n }", "public void setCode(String value) {\n setAttributeInternal(CODE, value);\n }", "public void setCode(String code) {\n\t\tCode = code;\n\t}", "public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}", "java.lang.String getSqlCode();", "public void setCode(String code){\n\t\tthis.code = code;\n\t}", "public void setCode(String code)\n {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }", "public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCODE(BigDecimal CODE) {\r\n this.CODE = CODE;\r\n }", "public void setCODE(BigDecimal CODE) {\r\n this.CODE = CODE;\r\n }", "public String setCode() {\n\t\treturn null;\n\t}", "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "public void setCode(Long code) {\n this.code = code;\n }", "public void setCode(Long code) {\n this.code = code;\n }", "public void setCode(int code) {\n this.code = code;\n }", "public void setCode(int code) {\n this.code = code;\n }", "@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}", "public void setCode(java.lang.String code) {\r\n this.code = code;\r\n }", "public void setDataCode(String dataCode);", "public void setCode(Integer code) {\n this.code = code;\n }", "public int set_code(String b);", "public void setCode(final int code) {\n this.code = code;\n commited = true;\n }", "public void setCode(String cod){\n\t\tcodeService = cod;\n\t}", "protected void setCode(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString code = rs.getString(UiActionTable.COLUMN_CODE);\n\t\t\n\t\tif(code == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setCode(code);\n\t}", "public void setCode (java.lang.Long code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(long value) {\n this.code = value;\n }", "@JsonFormat(shape = JsonFormat.Shape.STRING)\n public Integer getCode() {\n return code;\n }", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "void setCode(Integer aCode);", "@Override\r\n\tpublic String getCode() {\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\n return this.code;\n }", "public String getCode() {\n return _code;\n }", "public String getCode(){\n\t\treturn code;\n\t}", "protected void setCode(@Code int code) {\n\t\tthis.mCode = code;\n\t}", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public void setCode(String code) {\n\t\tthis.code = code == null ? null : code.trim();\n\t}", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}", "public String getCode () {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public void setOperateCode(java.lang.String operateCode) {\n this.operateCode = operateCode;\n }", "public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n code_ = value;\n onChanged();\n return this;\n }", "@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public void setCodeField(java.lang.String codeField) {\n this.codeField = codeField;\n }", "protected void setFunctionCode(int code) {\n m_FunctionCode = code;\n // setChanged(true);\n }", "public String getCode() {\n return (String) get(\"code\");\n }", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }", "public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }" ]
[ "0.6412472", "0.6333422", "0.6280086", "0.62630606", "0.62519324", "0.6245834", "0.62335473", "0.6205098", "0.6168635", "0.6168635", "0.6168635", "0.6168635", "0.6168635", "0.6168635", "0.6151458", "0.6147877", "0.6146674", "0.6146674", "0.6146674", "0.61236995", "0.61236995", "0.6121054", "0.61144286", "0.61144286", "0.6100472", "0.6100472", "0.6076267", "0.6076267", "0.6072302", "0.6069853", "0.6042652", "0.6023585", "0.60056406", "0.5949748", "0.594307", "0.59392774", "0.5938663", "0.5917641", "0.58982146", "0.58838004", "0.58830935", "0.58753276", "0.5865799", "0.5865799", "0.5865799", "0.5865799", "0.5865799", "0.5865799", "0.5865799", "0.5863943", "0.5858549", "0.58577174", "0.58524966", "0.5847814", "0.5847814", "0.5847814", "0.5847814", "0.5843324", "0.58366984", "0.5833849", "0.5827676", "0.5819934", "0.5819934", "0.58189636", "0.5812704", "0.58009106", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.5799689", "0.57689536", "0.5764663", "0.57585126", "0.57542574", "0.5745493", "0.5745493" ]
0.5751548
98
Check if the existing view is being reused, otherwise inflate the view
@NonNull @Override public View getView(int position, View convertView, ViewGroup parent) { View listItemView = convertView; if(listItemView == null) { listItemView = LayoutInflater.from(getContext()).inflate( R.layout.list_items_3, parent, false); } //Get the current position of the subscription in the listview and update accordingly Subscription currentSubscription = getItem(position); TextView nameTextView = (TextView) listItemView.findViewById(R.id.listName); nameTextView.setText(currentSubscription.getName()); TextView dateTextView = (TextView) listItemView.findViewById(R.id.listDate); dateTextView.setText("Date: "+ currentSubscription.getDate()); TextView chargeTextView = (TextView) listItemView.findViewById(R.id.listCharge); chargeTextView.setText("Charge: "+ currentSubscription.getCharge()); TextView commentTextView = (TextView) listItemView.findViewById(R.id.listComment); commentTextView.setText("Comment: "+ currentSubscription.getComment()); return listItemView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void recycleCheck(){\n getScreenRect();\n\n //ok...seriously, I have no idea why I need to wrap it in post()\n //but if I don't, it won't be able to setHtml() again (the second time)\n //TODO investigate what the fuck is going on\n post(new Runnable() {\n @Override\n public void run() {\n for (int i = 0, l = overlay.getChildCount(); i < l; i++) {\n //TODO check whether it is visible inside the view bound instead of inside the screen bound\n View v = overlay.getChildAt(i);\n v.getLocationOnScreen(coordinate);\n\n viewRect.set(coordinate[0], coordinate[1], coordinate[0] + v.getMeasuredWidth(), coordinate[1] + v.getMeasuredHeight());\n\n boolean isVisible = viewRect.intersect(screenRect);\n Integer index = (Integer) v.getTag(R.id.htmltextview_viewholder_index);\n Integer type = (Integer) v.getTag(R.id.htmltextview_viewholder_type);\n if (index == null || type == null){\n //WTF?\n continue;\n }\n\n Container container = null;\n switch (type){\n case VIEWHOLDER_TYPE_IMG:\n default:\n container = imgContainerMap.get(index);\n break;\n }\n if (isVisible){\n if (container.visible){\n //fine\n }else{\n //was invisible, make it visible\n container.attachChild();\n container.visible = true;\n }\n }else{\n if (container.visible){\n //was visible, recycle it\n container.detachChild();\n container.visible = false;\n }else{\n //fine\n }\n }\n }\n }\n });\n }", "private void isPopulateView() {\n if (!isPopulate) {\n llHeader.setVisibility(View.GONE);\n CoordinatorLayout.LayoutParams relativeParams = new CoordinatorLayout.LayoutParams(CoordinatorLayout.LayoutParams.MATCH_PARENT, CoordinatorLayout.LayoutParams.WRAP_CONTENT);\n relativeParams.setMargins(0, 0, 0, 0);\n rlMain.setLayoutParams(relativeParams);\n }\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n String status = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n // Lookup view for data population\n // Populate the data into the template view using the data object\n\n //if (!wodata.status.equals(null))\n\n // Return the completed view to render on screen\n return convertView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\n\t\tif (view != null) {\n\t\t\tLog.i(\"222222\", \"11111111\");\n\t\t\tViewGroup parent = (ViewGroup) view.getParent();\n\t\t\tif (parent != null)\n\t\t\t\tparent.removeView(view);\n\t\t}\n\t\ttry {\n\t\t\tview = inflater.inflate(R.layout.f_mine, container, false);\n\t\t\tinitView();\n\t\t} catch (InflateException e) {\n\n\t\t}\n\n\t\treturn view;\n\t}", "public void refreshView(){\n\t\tView v = getView();\n\t\tif(v != null){\n\t\t\tv.invalidate();\n\t\t}\n\t}", "private View getWorkingView(final View convertView) {\n\t\tView workingView = null;\n\n\t\tif(convertView == null) {\n\t\t\tfinal Context context = getContext();\n\t\t\tfinal LayoutInflater inflater = (LayoutInflater)context.getSystemService\n\t\t (Context.LAYOUT_INFLATER_SERVICE);\n\n\t\t\tworkingView = inflater.inflate(checkOptionLayoutResource, null);\n\t\t} else {\n\t\t\tworkingView = convertView;\n\t\t}\n\n\t\treturn workingView;\n\t}", "public boolean getViewMissing() {\n return view == null;\n }", "private void refreshView() {\n if (!wasInvalidatedBefore) {\n wasInvalidatedBefore = true;\n invalidate();\n }\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.select_game, container, false);\n }", "public void reuse() {}", "@Override\n\tpublic boolean updateView(View contentView) {\n\t\treturn false;\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n activity = (InitializeDineOrderActivity) getActivity();\n View view = inflater.inflate(R.layout.fragment_items_added_success, container, false);\n unbinder = ButterKnife.bind(this, view);\n //animate(imageView);\n return view;\n\n }", "private boolean imageViewReused(LoadDataHolder loadDataHolder) {\n String url = relationsMap.get(loadDataHolder.getImageView());\n // Check is url exist in relationsMap and equals to url from holder\n return url == null || !url.equals(loadDataHolder.getUrl());\n }", "private View getCachedView()\n\t{\n\t\tif (_cachedItemViews.size() != 0)\n\t\t{\n\t\t\treturn _cachedItemViews.removeFirst();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n \tthis.setRetainInstance(true);\n \treturn super.onCreateView(inflater, container, savedInstanceState);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n\t{\n \t\tif (v != null) \n \t\t{\n \t ViewGroup parent = (ViewGroup) v.getParent();\n \t if (parent != null)\n \t parent.removeView(v);\n \t }\n \t\t\n \t try \n \t {\n \t v = inflater.inflate(R.layout.tab3_fragment, container, false);\n \t } \n \t catch (InflateException e)\n \t {\n \t /* map is already there, just return view as it is */\n \t \te.printStackTrace();\n \t }\n \t return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final Context contextThemeWrapper = new ContextThemeWrapper(getActivity(), R.style.AppTheme_Nav);\n\n // clone the inflater using the ContextThemeWrapper\n LayoutInflater localInflater = inflater.cloneInContext(contextThemeWrapper);\n View view = localInflater.inflate(R.layout.fragment_master_list, container, false);\n Log.v(\"Is view null\", Boolean.toString(view == null));\n initializeView(view);\n addButtonListener(view);\n return view;\n }", "protected View getCachedView(){\n\t\tif (mCachedItemViews.size() != 0) {\n\t\t\tView v;\n\t\t\tdo{\n\t v = mCachedItemViews.removeFirst().get();\n\t\t\t}\n while(v == null && mCachedItemViews.size() != 0);\n\t\t\treturn v;\n }\n return null;\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tLog.d(\"CookFragment\", \"onCreateView\");\n\t\treturn inflater.inflate(R.layout.pull_to_refresh, container, false);\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onCreateView---------\");\n\t\tview = inflater.inflate(getContentViewId(),container,false);\n\t\tunbinder = ButterKnife.bind(this,view);\n\t\tinitView(savedInstanceState);\n\t\treturn view;\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.one, null);\n\t\treturn view;\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (view == null) {\n view = inflater.inflate(R.layout.fragment_last_askitem, container, false);\n }\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = getThisView(inflater,container);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ctx = getActivity();\n View view = inflater.inflate(getLayoutID(),null);\n mPreenter = createPresenter();\n loading = new MyProgressLoading(ctx, R.style.DialogStyle);\n sp = ctx.getSharedPreferences(SpUtiles.SP_Mode,Context.MODE_PRIVATE);\n HideUtil.init(getActivity());\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n initListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_new_game, container, false);\n\n mUnbinder = ButterKnife.bind(this, rootView);\n\n mButtonContinue.setVisibility(MainActivity.isContinueVisible ? View.VISIBLE : View.GONE);\n\n return rootView;\n }", "protected abstract void onInflated(View view);", "@Nullable\n @Override\n @CallSuper\n public View onCreateView(@NonNull final LayoutInflater inflater, @Nullable final ViewGroup container, @Nullable final Bundle savedInstanceState) {\n View view = getView();\n if (view == null) {\n view = inflater.inflate(getContentLayout(), container, false);\n }\n unbinder = ButterKnife.bind(this, view);\n return view;\n }", "@Override\n\tprotected View initView(LayoutInflater arg0, ViewGroup arg1, Bundle arg2) {\n\t\treturn arg0.inflate(R.layout.fragment_find, arg1, false);\n\t}", "@Override\n\t\tpublic boolean OnRepeat(View view, int... param) {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean OnRepeat(View view, int... param) {\n\t\t\treturn false;\n\t\t}", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tViewGroup p = (ViewGroup) mMainView.getParent();\r\n\t\tif (p != null) {\r\n\t\t\tp.removeAllViewsInLayout();\r\n\t\t}\r\n\t\treturn mMainView;\r\n\t}", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tViewGroup p = (ViewGroup) mMainView.getParent();\r\n\t\tif (p != null) {\r\n\t\t\tp.removeAllViewsInLayout();\r\n\t\t}\r\n\t\treturn mMainView;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_map_second, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Log.v(\"MeInfoEdit\",\"onCreateView\");\n if(view==null){\n view =inflater.inflate(R.layout.fragment_me_info_edit, container, false);\n }\n ((MainActivity)getActivity()).unBindDrawer();\n ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n swipLayout=new SwipLayout(getContext());\n swipLayout.setLayoutParams(params);\n swipLayout.setBackgroundColor(Color.TRANSPARENT);\n swipLayout.removeAllViews();\n swipLayout.addView(view);\n if(CoreApplication.newInstance().getRoot()!=null){\n Log.v(\"MeinfoEdit\",\"rootView not null\");\n }\n swipLayout.setParentView(getTargetFragment().getView()).setFragment(MeInfoEdit.this);\n return swipLayout;\n }", "private void inflateView() {\n\t\tLog.v(T, \"inflateView\");\n\t\tif (!isInEditMode()) {\n\t\t\tString inflaterService = Context.LAYOUT_INFLATER_SERVICE;\n\n\t\t\tLayoutInflater layoutInflater = (LayoutInflater) getContext()\n\t\t\t\t\t.getSystemService(inflaterService);\n\t\t\tlayoutInflater.inflate(R.layout.dms_coordinate, this, true);\n\n\t\t\t// Get child control references\n\t\t\teditDegrees = (EditText) findViewById(R.id.editDegrees);\n\t\t\teditMinutes = (EditText) findViewById(R.id.editMinutes);\n\t\t\teditSeconds = (EditText) findViewById(R.id.editSeconds);\n\t\t}\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.layout_true_false_row, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_ongoing, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_data_visible, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.live_layout, null);\r\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.main, container,false);\n\n\t\t//Update this view's content\n\t\tupdate();\n\n\t\t//Return this view to the adapter\n\t\treturn view;\n\t}", "@Override\n public View onCreateView( LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState ) {\n return inflater.inflate( R.layout.fragment_turn_over, container, false );\n }", "private View getCachedView() {\n if (mCachedItemViews.size() != 0) {\n return mCachedItemViews.removeFirst();\n }\n return null;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n convertView = inflater.inflate(R.layout.fragment_homecircles, container, false);\n init();\n return convertView;\n }", "public void onFinishInflate() {\n super.onFinishInflate();\n if (!isInEditMode()) {\n this.mAdjustRelockTimePadLockPresenter = new AdjustRelockTimePadLockPresenter(this);\n ButterKnife.inject((View) this);\n }\n }", "@Override\n\tpublic View getCurrView(View convertView) {\n\t\tif(curr_content!=null){\n\t\t\tconvertView=getPageView(convertView,curr_content);\n\t\t}\n\t\treturn convertView;\n\t}", "@Override\n\tprotected int getViewId() {\n\t\treturn R.layout.layout_square_live;\n\t}", "static public View inflateLayout(int Presid,View PlayoutView) //~1410I~\r\n { //~1410I~\r\n if (Dump.Y) Dump.println(\"AView:inflateLayout2 res=\"+Integer.toHexString(Presid)+\",view=\"+PlayoutView.toString());//~@@@@R~\r\n \tAG.setCurrentView(Presid,PlayoutView); //~1410I~\r\n return PlayoutView; //~1410I~\r\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.xxh_gamelayout3, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater,\n @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n layout = inflater.inflate(R.layout.fragment_checkme_update, container, false);\n initUI();\n new GetPatchsThread(checkmeInfo, wantLanguage, updatePatch).start();\n return layout;\n }", "protected View inflateRow(ViewHolder holder){\n View row = null;\n switch (type)\n {\n case TYPE_TEXT_USER:\n row = inflater.inflate(textUserRowResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.txtContent = (TextView) row.findViewById(R.id.txt_content);\n\n break;\n\n case TYPE_TEXT_FRIEND:\n\n row = inflater.inflate(textFriendRowResId, null);\n\n holder.txtContent = (TextView) row.findViewById(R.id.txt_content);\n\n break;\n\n case TYPE_IMAGE_USER:\n row = inflater.inflate(imageUserRowResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n\n case TYPE_IMAGE_FRIEND:\n row = inflater.inflate(imageFriendRowResId, null);\n\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n break;\n\n case TYPE_LOCATION_USER:\n row = inflater.inflate(locationUserResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n\n case TYPE_LOCATION_FRIEND:\n row = inflater.inflate(locationFriendRowResId, null);\n\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n }\n\n return row;\n }", "@Override\n public boolean isViewFromObject(View view, Object object) {\n return view == (RelativeLayout) object;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_favorite, container, false);\n database = AppDatabase.getInstance(getActivity().getApplicationContext());\n\n tvNotFound = view.findViewById(R.id.tv_no_favorite_found);\n tvNotFound.setVisibility(View.INVISIBLE);\n\n recyclerView = view.findViewById(R.id.rv_tv_show);\n recyclerView.setLayoutManager(new GridLayoutManager(getActivity(), 2));\n loadData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_fragment__branches__ecet, container, false);\n recyclerView = view.findViewById(R.id.recyclebranch);\n\n p=view.findViewById(R.id.progress);\n retry=view.findViewById(R.id.retry);\n r=(SwipeRefreshLayout)view.findViewById(R.id.refreshcollege);\n\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n\n retry.setVisibility(View.INVISIBLE);\n\n r.setColorSchemeResources(R.color.cutdown);\n r.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n start(view);\n r.setRefreshing(false);\n }\n },2000);\n }\n });\n\n start(view);\n\n\n return view;\n }", "@Override\n protected void onFinishInflate() {\n super.onFinishInflate();\n Log.d(SecondView.class.getSimpleName(), String.valueOf(System.currentTimeMillis()));\n ButterKnife.inject(this, this);\n secondPresenter.takeView(this);\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tViewGroup viewgproup = (ViewGroup) mView.getParent();\n\t\tif (viewgproup != null) {\n\t\t\tviewgproup.removeAllViewsInLayout();\n\t\t}\n\t\treturn mView;\n\t}", "@Override\r\n\t\tpublic View newView(Context arg0, Cursor arg1, ViewGroup arg2) {\n\t\t\t\t LayoutInflater inflater = LayoutInflater.from(arg2.getContext());\r\n\t\t\t View retView = inflater.inflate(R.layout.report_listitems, arg2, false);\r\n\t\t\t int j=i%2;\r\n\t\t\t retView.setBackgroundColor(colors[j]);\r\n\t\t\t i++;\r\n\t\t\t bindView(retView,arg0,arg1);\r\n\t\t\t return retView;\r\n\t\t\t \r\n\t\t}", "private void initView(Context context) {\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 0);\n\t\tmContainer = (LinearLayout)LayoutInflater.from(context).inflate(R.layout.pullable_refresh, null);\n\t\taddView(mContainer, params);\n\t\tsetGravity(Gravity.BOTTOM);\n\t\t\n\t\trefreshArrowView = (ImageView)findViewById(R.id.pull_down_arrow);\n\t\trefreshingView = (ImageView)findViewById(R.id.pull_down_refreshing_view);\n\t\trefreshStateTextView = (TextView)findViewById(R.id.pull_down_state_text);\n\t\t\n\t\trotateAnimation = (RotateAnimation)AnimationUtils.loadAnimation(context, R.anim.reverse_anim);\n\t\trefreshingAnimation = (RotateAnimation)AnimationUtils.loadAnimation(context, R.anim.rotating);\n\t\tLinearInterpolator lir = new LinearInterpolator();\n\t\trotateAnimation.setInterpolator(lir);\n\t\trefreshingAnimation.setInterpolator(lir);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n theView = inflater.inflate(R.layout.what_case_fragment, container, false);\n\n theView.findViewById(R.id.buttonNominative).setOnClickListener(this);\n theView.findViewById(R.id.buttonAccusative).setOnClickListener(this);\n theView.findViewById(R.id.buttonGenitive).setOnClickListener(this);\n theView.findViewById(R.id.buttonDative).setOnClickListener(this);\n theView.findViewById(R.id.buttonInstrumental).setOnClickListener(this);\n theView.findViewById(R.id.buttonPrepositional).setOnClickListener(this);\n\n if (foundTarget) {\n foundTarget = false;\n setNewWord();\n } else {\n setWord();\n }\n\n return theView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (mInflate == null) {\n mInflate = inflater.inflate(R.layout.fragment_fa_xian, container, false);\n init();\n }\n //缓存的rootView需要判断是否已经被加过parent, 如果有parent需要从parent删除,要不然会发生这个rootview已经有parent的错误。\n ViewGroup parent = (ViewGroup) mInflate.getParent();\n if (parent != null) {\n parent.removeView(mInflate);\n }\n return mInflate;\n }", "public boolean wantsView(T aView, View aView2) { return aView.getContent()==null; }", "public boolean wantsView(T aView, View aView2) { return aView.getContent()==null; }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n Fabric.with(getContext(), new Crashlytics());\r\n View view = inflater.inflate(R.layout.fragment_open_ticket_general_enquiries_department, container, false);\r\n unbinder = ButterKnife.bind(this, view);\r\n\r\n\r\n intialize();\r\n return view;\r\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n HashMap<String, String> report = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.fillup_line, parent, false);\n }\n // Lookup view for data population\n TextView vId = (TextView) convertView.findViewById(R.id.idFld);\n TextView rDate = (TextView) convertView.findViewById(R.id.dateFld);\n TextView vName = (TextView) convertView.findViewById(R.id.vehicleFld);\n TextView rMiles = (TextView) convertView.findViewById(R.id.milesFld);\n TextView rGallons = (TextView) convertView.findViewById(R.id.gallonsFld);\n TextView rCost = (TextView) convertView.findViewById(R.id.costFld);\n TextView rMileage = (TextView) convertView.findViewById(R.id.mileageFld);\n // Populate the data into the template view using the data object\n vId.setText(report.get(Fillup.KEY_ID));\n rDate.setText(report.get(Fillup.KEY_DATE));\n vName.setText(report.get(Fillup.KEY_VEHICLE_NAME));\n rMiles.setText(report.get(Fillup.KEY_MILES));\n rGallons.setText(report.get(Fillup.KEY_GALLONS));\n rCost.setText(report.get(Fillup.KEY_COST));\n rMileage.setText(report.get(Fillup.KEY_MILEAGE));\n\n // If the at Position >=1 and previous field date is same hide date\n if(position >= 1){\n HashMap<String, String> prevreport = getItem(position - 1);\n String current = report.get(Fillup.KEY_DATE);\n String prev = prevreport.get(Fillup.KEY_DATE);\n if(current.equals(prev)){\n rDate.setVisibility(View.GONE);\n }\n }\n\n // Return the completed view to render on screen\n return convertView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tcurrentView = inflater.inflate(R.layout.inspect_history_fragment_page_item, container, false);\n\t\tinitial(currentView);\n\t\treturn currentView;\n\t}", "@Override\n public View getView(final int position, View mViews, ViewGroup parent) {\n LayoutInflater mInflater = (LayoutInflater)\n searchPollCommentsAdapterContext.getSystemService(Activity.LAYOUT_INFLATER_SERVICE);\n mCampaignCommentsPollView=mViews;\n // The old view to reuse, if possible.If convertView is NOT null, we can simple re-use the convertView as the new View.\n // It will happen when a new row appear and a old row in the other end roll out.\n if (mCampaignCommentsPollView == null) {\n /* create a new view of my layout and inflate it in the row */\n mCampaignCommentsPollView = mInflater.inflate(searchPollCommentsLayoutId, parent, false);\n holder = new ViewHolder();\n holder.campaignImageSearch = (ImageView) mCampaignCommentsPollView.findViewById(R.id.imgProfile);\n holder.userNameSearch = (TextView) mCampaignCommentsPollView.findViewById(R.id.txtProfileName);\n holder.searchComments = (TextView) mCampaignCommentsPollView.findViewById(R.id.txtChatDetails);\n holder.imgMore = (ImageView) mCampaignCommentsPollView.findViewById(R.id.imgMore);\n holder.txtCommentTime=(TextView)mCampaignCommentsPollView.findViewById(R.id.txtCommentTime);\n mCampaignCommentsPollView.setTag(holder);\n } else {\n holder = (ViewHolder) mCampaignCommentsPollView.getTag();\n }\n //Geting the particular object from the response based on the position\n searchPollCommentsData = getItem(position);\n //If the user id matches from the response then the edit icon will be visible\n //else edit icon wont be visivble\n if (searchPollCommentsData.getUserId().equals(MApplication.getString(searchPollCommentsAdapterContext, Constants.USER_ID))) {\n holder.imgMore.setVisibility(View.VISIBLE);\n } else {\n holder.imgMore.setVisibility(View.INVISIBLE);\n }\n //Getting the user profiel image\n searchPollCommentsUserProfile = searchPollCommentsData.getUserInfo().getUserProfileImg();\n Utils.loadImageWithGlideProfileRounderCorner(searchPollCommentsAdapterContext,searchPollCommentsUserProfile,holder.campaignImageSearch,R.drawable.placeholder_image);\n //Getting the user name from the response\n holder.userNameSearch.setText(searchPollCommentsData.getUserInfo().getUserName());\n //Getting the COMMENTS and setting in the text view\n holder.searchComments.setText(MApplication.getDecodedString(searchPollCommentsData.getComments()));\n //comment time\n holder.txtCommentTime.setText(MApplication.getHours(searchPollCommentsData.getUpdatedAt()));\n //Interface definition for a callback to be invoked when a view is clicked.\n holder.imgMore.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //Clcik position\n int clickPosition = position;\n //Geting the particular object from the response based on the position\n searchPollCommentsData = getItem(clickPosition);\n //Comments from the response\n String comments = MApplication.getDecodedString(searchPollCommentsData.getComments());\n //COMMENTS id from the response\n String commentId = MApplication.getDecodedString(searchPollCommentsData.getId());\n //Custom dialog to edit and delete the comment\n customCampaignPollCustomDialog(searchPollCommentsAdapterContext, comments, clickPosition, commentId);\n }\n });\n //returning the views\n return mCampaignCommentsPollView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_p1_one, container, false);\n unbinder = ButterKnife.bind(this, v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\n view = inflater.inflate(LAYOUT, container, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if(container == null)\n return null;\n\n Boolean isNew = getArguments().getBoolean(\"isNew\");\n View view = inflater.inflate(R.layout.fragment_diary_detail, container, false);\n loadEntry(view, isNew);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n MainActivity activity = (MainActivity) getActivity();\n countryLocation = activity.country();\n\n\n return inflater.inflate(R.layout.fragment_shuffle, container, false);\n\n }", "@Override\n public void invalidateChildRegion(SlidingPaneLayout slidingPaneLayout, View view) {\n if (this.mGetDisplayList != null && this.mRecreateDisplayList != null) {\n try {\n this.mRecreateDisplayList.setBoolean((Object)view, true);\n this.mGetDisplayList.invoke((Object)view, null);\n }\n catch (Exception var3_3) {\n Log.e((String)\"SlidingPaneLayout\", (String)\"Error refreshing display list state\", (Throwable)var3_3);\n }\n super.invalidateChildRegion(slidingPaneLayout, view);\n return;\n }\n view.invalidate();\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\t// cityIntent = new Intent(AppContext.curActivity,\n\t\t// EventSearchInitialActivity.class);\n\t\tif (null == contentView) {\n\t\t\tloader = OriginalImageAsyncLoader.getInstance();\n\t\t\tinitRequestModel();\n\t\t\tcontentView = inflater.inflate(R.layout.frag_venue, container,\n\t\t\t\t\tfalse);\n\t\t\tvHeader = inflater.inflate(R.layout.header_hot_venue, null);\n\t\t\tvHeader.setVisibility(View.INVISIBLE);\n\t\t\tinitView();\n\t\t\tinitDate();\n\t\t\tvHeader.setVisibility(View.VISIBLE);\n\t\t} else {\n\t\t\t((ViewGroup) contentView.getParent()).removeView(contentView);\n\t\t}\n\t\tif (pagerAdapter != null) {\n\t\t\tpagerAdapter.notifyDataSetChanged();\n\t\t}\n\t\tif (null != mAdapter) {\n\t\t\tmAdapter.notifyDataSetChanged();\n\t\t}\n\t\treturn contentView;\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n intialFragment();\n // return inflater.inflate(R.layout.fragment_old_ordered, container, false);\n oldOrderedBinding = DataBindingUtil.inflate(\n inflater, R.layout.fragment_orederd_recycler, container, false);\n View view = oldOrderedBinding.getRoot();\n\n return view;\n }", "private boolean isFirstTime() {\n SharedPreferences preferences = getActivity().getPreferences(MODE_PRIVATE);\n boolean ranBefore = preferences.getBoolean(\"RanBefore\", false);\n if (!ranBefore) {\n\n SharedPreferences.Editor editor = preferences.edit();\n editor.putBoolean(\"RanBefore\", true);\n editor.apply();\n mBind.topLayout.setVisibility(View.VISIBLE);\n mBind.topLayout.setOnTouchListener(new View.OnTouchListener() {\n\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n mBind.topLayout.setVisibility(View.INVISIBLE);\n return false;\n }\n\n });\n }\n return ranBefore;\n\n }", "public void initView() {\n ((TextView) _$_findCachedViewById(R.id.tvCancelResv)).setOnClickListener(new MyResvDetailActivity$initView$1(this));\n getResvDetail();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (view == null) {\n view = inflater.inflate(R.layout.fragment_bao_yang_scx, container, false);\n unbinder = ButterKnife.bind(this, view);\n init();\n }\n return view;\n }", "private void initViews() {\n\n if (blockListAdapter != null) {\n blockListAdapter = null;\n }\n\n swipeRefreshLayout.setColorSchemeResources(\n R.color.witkey_orange,\n R.color.witkey_orange,\n R.color.witkey_orange);\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n firstNetworkCall();\n }\n });\n\n rv_swipe_refresh_tv.setColorSchemeResources(\n R.color.witkey_orange,\n R.color.witkey_orange,\n R.color.witkey_orange);\n\n rv_swipe_refresh_tv.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n firstNetworkCall();\n }\n });\n\n noResultRefreshTextView.setOnClickListener(this);\n\n if (swipeRefreshLayout != null) {\n swipeRefreshLayout.post(new Runnable() {\n @Override\n public void run() {\n swipeRefreshLayout.setRefreshing(true);\n firstNetworkCall();\n }\n });\n }\n\n btnBack.setOnClickListener(this);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.layoutview3, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_latest, container, false);\n\n articlesRecycle = view.findViewById(R.id.articlesRecycle);\n emptyView = view.findViewById(R.id.emptyView);\n\n getNews();\n\n\n\n return view;\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recently_viewed, container, false);\n }", "@Override\n public View newView(final Context context, Cursor cursor, ViewGroup parent) {\n View view = LayoutInflater.from(context).inflate(R.layout.activity_item, parent, false);\n Button positiveButton = (Button) view.findViewById(R.id.add_time);\n positiveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Object o = v.getTag();\n if (o == null || !(o instanceof ViewObjectTag)) {\n Toast.makeText(context, \"Cannot update time\", Toast.LENGTH_SHORT).show();\n }\n\n int id = ((ViewObjectTag) o).activityId;\n new IncrementActivityTimeAsyncTask(mDbHelper, id, 10)\n .executeOnExecutor(mBackgroundExecutor);\n if (mRefreshFuture == null || mRefreshFuture.isDone()) {\n mRefreshFuture = mBackgroundExecutor.schedule(\n mRefreshCursorRunnable, 2000, TimeUnit.MILLISECONDS);\n }\n }\n });\n\n Button negativebutton = (Button) view.findViewById(R.id.subtract_time);\n negativebutton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Object o = v.getTag();\n if (o == null || !(o instanceof ViewObjectTag)) {\n Toast.makeText(context, \"Cannot update time\", Toast.LENGTH_SHORT).show();\n }\n int id = ((ViewObjectTag) o).activityId;\n new IncrementActivityTimeAsyncTask(mDbHelper, id, -10).executeOnExecutor(\n mBackgroundExecutor);\n if (mRefreshFuture == null || mRefreshFuture.isDone()) {\n mRefreshFuture = mBackgroundExecutor.schedule(\n mRefreshCursorRunnable, 2000, TimeUnit.MILLISECONDS);\n }\n }\n });\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_last_map, container, false);\n }", "@Override\n public void prepareView() {\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@NonNull\n View buildView(@NonNull LayoutInflater inflater, @NonNull ViewGroup parent);", "public void reloadView() {\n container.revalidate();\n container.repaint();\n }", "public boolean onPreDraw() {\n\t\t\t\t//Remove the listener after the 1 frame\n\t\t\t\tobserver.removeOnPreDrawListener(this);\n\t\t\t\tboolean firstAnimation = true;\n\t\t\t\tint firstVisiblePosition = listview.getFirstVisiblePosition();\n\t\t\t\t//Cycle through all current children of the list frame\n\t\t\t\tfor (int i = 0; i < listview.getChildCount(); ++i) {\n\t\t\t\t\tfinal View child = listview.getChildAt(i);\n\t\t\t\t\tint position = firstVisiblePosition + i;\n\t\t\t\t\tlong itemId = mAdapter.getItemId(position);\n\t\t\t\t\tInteger startTop = mItemIdTopMap.get(itemId);\n\t\t\t\t\t//Where is the child now, get the top position\n\t\t\t\t\tint top = child.getTop();\n\t\t\t\t\tif (startTop != null) { //This means the view used to be somewhere else in the container\n\t\t\t\t\t\t//If the child was somewhere else in the container, run an animation to move it\n\t\t\t\t\t\tif (startTop != top) {\n\t\t\t\t\t\t\t//Set a Y Value and animate to it\n\t\t\t\t\t\t\tint delta = startTop - top;\n\t\t\t\t\t\t\tchild.setTranslationY(delta);\n\t\t\t\t\t\t\tchild.animate().setDuration(MOVE_DURATION).translationY(0);\n\t\t\t\t\t\t\t//If this is the first time it's been run, restore values\n\t\t\t\t\t\t\tif (firstAnimation) {\n\t\t\t\t\t\t\t\tchild.animate().withEndAction(new Runnable() {\n\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\tmBackgroundContainer.hideBackground();\n\t\t\t\t\t\t\t\t\t\tmSwiping = false;\n\t\t\t\t\t\t\t\t\t\tmListView.setEnabled(true);\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\tfirstAnimation = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Animate new views along with the others. The catch is that they did not\n\t\t\t\t\t\t// exist in the start state, so we must calculate their starting position\n\t\t\t\t\t\t// based on neighboring views.\n\t\t\t\t\t\tint childHeight = child.getHeight() + listview.getDividerHeight();\n\t\t\t\t\t\tstartTop = top + (i > 0 ? childHeight : -childHeight);\n\t\t\t\t\t\tint delta = startTop - top;\n\t\t\t\t\t\tchild.setTranslationY(delta); //Again, set Y value to where it is going\n\t\t\t\t\t\tchild.animate().setDuration(MOVE_DURATION).translationY(0);\n\t\t\t\t\t\tif (firstAnimation) {\n\t\t\t\t\t\t\tchild.animate().withEndAction(new Runnable() {\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tmBackgroundContainer.hideBackground();\n\t\t\t\t\t\t\t\t\tmSwiping = false;\n\t\t\t\t\t\t\t\t\tmListView.setEnabled(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tfirstAnimation = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//When finished, clear the item IDs associated with positions\n\t\t\t\tmItemIdTopMap.clear();\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n\tprotected void refreshView() {\n\t\t\n\t}", "public final void onBindView(View view) {\n AppMethodBeat.m2504i(107165);\n super.onBindView(view);\n ImageView imageView = (ImageView) view.findViewById(2131822184);\n if (imageView != null) {\n if (this.drawable != null) {\n imageView.setImageDrawable(this.drawable);\n imageView.setVisibility(0);\n } else if (this.f4433ZV != 0) {\n imageView.setImageResource(this.f4433ZV);\n imageView.setVisibility(0);\n } else {\n imageView.setVisibility(8);\n }\n }\n LinearLayout linearLayout = (LinearLayout) view.findViewById(2131822347);\n if (this.height != -1) {\n linearLayout.setMinimumHeight(this.height);\n }\n TextView textView = (TextView) view.findViewById(2131822348);\n if (textView != null) {\n textView.setVisibility(this.qlf);\n textView.setText(this.pnJ);\n if (this.qle != -1) {\n textView.setBackgroundDrawable(C1338a.m2864g(this.context, this.qle));\n }\n }\n this.yBG = (ImageView) view.findViewById(2131822349);\n this.yBG.setVisibility(this.yBD);\n this.yBH = (ViewGroup) view.findViewById(2131822351);\n this.yBH.setVisibility(this.yBE);\n this.yBI = (TextView) view.findViewById(16908310);\n textView = (TextView) view.findViewById(2131826062);\n if (C5046bo.isNullOrNil(this.yBJ)) {\n textView.setVisibility(8);\n AppMethodBeat.m2505o(107165);\n return;\n }\n textView.setVisibility(0);\n textView.setText(this.yBJ);\n AppMethodBeat.m2505o(107165);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_game_over, container, false);\n\n winningTeam = (TextView)view.findViewById(R.id.winnerText);\n\n return view;\n }", "protected void findAndCacheViews(View view) {\n\t SpeakerItemViews views = new SpeakerItemViews();\n\t views.headerView = view.findViewById(R.id.header);\n\t views.headerTextView = (TextView) view.findViewById(R.id.header_text);\n\t views.dividerView = view.findViewById(R.id.session_divider);\n\t views.nameView = (TextView) view.findViewById(R.id.speaker_name);\n\t views.companyView = (TextView) view.findViewById(R.id.speaker_company);\n\t views.starButton = (CheckBox) view.findViewById(R.id.star_button);\n\t view.setTag(views);\n\t }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.game_zipe_observation, container, false);\n settingThingsUp(view);\n\n return view;\n }", "final View obtainView(final int position, final View optScrap) {\n View view = mRecycler.getTransientStateView(position);\n if (view != null) {\n return view;\n }\n\n // Reuse optScrap if it's of the right type (and not null)\n final int optType = optScrap != null\n ? ((LayoutParams) optScrap.getLayoutParams()).viewType : -1;\n final int positionViewType = mAdapter.getItemViewType(position);\n final View scrap = optType == positionViewType\n ? optScrap : mRecycler.getScrapView(positionViewType);\n\n view = mAdapter.getView(position, scrap, this);\n\n if (view != scrap && scrap != null) {\n // The adapter didn't use it; put it back.\n mRecycler.addScrap(scrap);\n }\n\n ViewGroup.LayoutParams lp = view.getLayoutParams();\n\n if (view.getParent() != this) {\n if (lp == null) {\n lp = generateDefaultLayoutParams();\n view.setLayoutParams(lp);\n } else if (!checkLayoutParams(lp)) {\n lp = generateLayoutParams(lp);\n view.setLayoutParams(lp);\n }\n }\n\n final LayoutParams sglp = (LayoutParams) lp;\n sglp.position = position;\n sglp.viewType = positionViewType;\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n \n return this.view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_activity_summary, container, false);\n\n // Transaction party\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction ft = fragmentManager.beginTransaction();\n\n if(fragmentManager.findFragmentById(R.id.frame1)!=null) {\n ft.remove(fragmentManager.findFragmentById(R.id.frame1));\n }\n Fragment fragment = new SummaryFragment();\n ft.replace(R.id.frame1, fragment).commit();\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_gap_fill, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n return view;\n }", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t\t{\n\t\t\t\tflag = (Page) getArguments().getSerializable(\"flag\");\n\t\t\t\tview = inflater.inflate(R.layout.activity_main, container, false);\n\t\t\t\tfillView();\n\t\t\t\treturn view;\n\t\t\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tif (mObjView == null) {\n\t\t\tmObjView = inflater.inflate(R.layout.jeep_airset, container, false);\n\t\t\tinit();\n\t\t}\n\n\t\treturn mObjView;\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.item_error, container, false);\n ImageButton b = (ImageButton) v.findViewById(R.id.button_reload_feed);\n\n if (mParent != null) {\n b.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n mParent.launchParser();\n }\n });\n }\n\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.layout_number_full,container,false);\n itemView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_walk__two, container, false);\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Purchase purchase = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n ViewHolder viewHolder; // view lookup cache stored in tag\n\n final View result;\n\n if (convertView == null) {\n\n viewHolder = new ViewHolder();\n LayoutInflater inflater = LayoutInflater.from(getContext());\n convertView = inflater.inflate(R.layout.history_purchase, parent, false);\n viewHolder.purchaseID = (TextView) convertView.findViewById(R.id.purchase_id);\n viewHolder.purchaseDate = (TextView) convertView.findViewById(R.id.purchase_date);\n viewHolder.totalPrice = (TextView) convertView.findViewById(R.id.purchase_price);\n viewHolder.paidPrice = (TextView) convertView.findViewById(R.id.purchase_paid_price);\n viewHolder.purchaseProducts = (LinearLayout) convertView.findViewById(R.id.purchase_prdsucts);\n viewHolder.item = (LinearLayout) convertView.findViewById(R.id.item);\n\n result=convertView;\n\n convertView.setTag(viewHolder);\n } else {\n viewHolder = (ViewHolder) convertView.getTag();\n result=convertView;\n }\n\n viewHolder.purchaseID.setText(purchase.getUuid().toString().substring(0, 6));\n viewHolder.purchaseDate.setText(purchase.getDateString());\n viewHolder.totalPrice.setText(String.format (\"%.2f\", purchase.getTotalPrice()) +\"€\");\n viewHolder.paidPrice.setText(String.format (\"%.2f\", purchase.getPaidPrice()) +\"€\");\n viewHolder.purchaseProducts.removeAllViews();\n\n for(int i = 0; i < purchase.getProducts().size(); i++){\n TextView textView = new TextView(this.mContext);\n textView.setText(purchase.getProducts().get(i).getName() + \" - \" + String.format (\"%.2f\", purchase.getProducts().get(i).getPrice())+\"€\");\n textView.setTextSize((float) 17);\n textView.setTextColor(Color.parseColor(\"#003845\"));\n Typeface font = Typeface.createFromAsset(mContext.getAssets(), \"raleway.ttf\");\n textView.setTypeface(font);\n\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n params.setMargins(0,0,0,10);\n textView.setLayoutParams(params);\n\n viewHolder.purchaseProducts.addView(textView);\n }\n\n //EXTRA FEATURE\n viewHolder.item.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n LinearLayout itemView = (LinearLayout) v;\n TextView objectID = (TextView) itemView.findViewById(R.id.purchase_id);\n\n Toast.makeText(mContext, \"ID: \" + objectID.getText(), Toast.LENGTH_SHORT).show();\n\n Preferences preferences = new Preferences(mContext);\n ArrayList<Purchase> history = new ArrayList<>();\n try {\n history = preferences.getPurchases();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n ArrayList<Product> newProducts = new ArrayList<>();\n for(int i=0; i<history.size(); i++){\n String id = history.get(i).getUuid().toString().substring(0, 6);\n if(objectID.getText().equals(id)){\n newProducts = history.get(i).getProducts();\n break;\n }\n }\n\n try {\n ArrayList<Product> basketP = null;\n basketP = preferences.getBasket();\n\n if (basketP.size() + newProducts.size() <= 10) {\n for (int i = 0; i < newProducts.size(); i++) {\n basketP.add(newProducts.get(i));\n }\n\n preferences.saveBasket(basketP);\n Toast.makeText(mContext, \"Products added to your basket with success.\", Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(mContext, \"You can only have 10 items in basket.\", Toast.LENGTH_SHORT).show();\n }\n\n } catch (JSONException e) {\n Toast.makeText(mContext, \"There was a problem adding products to basket, please try again.\", Toast.LENGTH_LONG).show();\n }\n }\n });\n\n return convertView;\n }" ]
[ "0.6012342", "0.5880934", "0.58615726", "0.584449", "0.5721151", "0.5706904", "0.5685344", "0.5645247", "0.5608972", "0.5608311", "0.55974954", "0.55745643", "0.5554787", "0.55531025", "0.5546757", "0.55425113", "0.5530094", "0.55143195", "0.55095357", "0.54927", "0.5490238", "0.54839885", "0.54787815", "0.54786205", "0.5466149", "0.5462432", "0.54623085", "0.54558456", "0.5443157", "0.5443157", "0.5436402", "0.5436402", "0.54333544", "0.5432969", "0.54288816", "0.5413242", "0.54115754", "0.5410627", "0.5403921", "0.54014784", "0.5390255", "0.53778005", "0.53767467", "0.5371014", "0.53638506", "0.5361763", "0.5357536", "0.53511804", "0.53479385", "0.5345407", "0.53399473", "0.5339369", "0.5334522", "0.5333591", "0.5333299", "0.5331635", "0.5322709", "0.530305", "0.52974427", "0.52913034", "0.52913034", "0.52907825", "0.52768713", "0.5266766", "0.52637947", "0.5257217", "0.52569747", "0.5250813", "0.52456784", "0.5239717", "0.5236016", "0.52246743", "0.52138084", "0.5207629", "0.52073944", "0.5206901", "0.519969", "0.51980054", "0.51868445", "0.518073", "0.5178788", "0.5178766", "0.5176892", "0.5172261", "0.51711404", "0.5153809", "0.51524144", "0.51477766", "0.51465064", "0.5143524", "0.51425374", "0.5134219", "0.51295125", "0.5123946", "0.5122823", "0.5119546", "0.5118657", "0.51153344", "0.5115142", "0.5111713", "0.51079196" ]
0.0
-1
Created by qibin on 2015/11/29.
public interface INetStack<T> { void get(final String url, final Net.Parser<T> parser, final Net.Callback<T> callback, final Object tag); void post(final String url, final RequestParams params, final Net.Parser<T> parser, final Net.Callback<T> callback, final Object tag); void onNetResponse(final Net.Parser<T> parser, final Net.Callback<T> callback, final String response); void onError(final Net.Callback<T> callback, final String msg); void cancel(Object tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\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\tpublic void nadar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo38117a() {\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}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "private void poetries() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\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}", "private void init() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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 }", "private void kk12() {\n\n\t}", "@Override\n\tpublic void nghe() {\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\n public void inizializza() {\n\n super.inizializza();\n }", "private void strin() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\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\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void init() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "protected boolean func_70814_o() { return true; }", "private void m50366E() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo9848a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21877s() {\n }", "@Override\n public void initialize() { \n }", "public void mo12930a() {\n }" ]
[ "0.62480736", "0.6081809", "0.6069182", "0.6069182", "0.6051236", "0.6010622", "0.59796727", "0.59622866", "0.5909171", "0.5868666", "0.58638847", "0.5836325", "0.58330756", "0.5824269", "0.5822569", "0.58122754", "0.58046925", "0.58046925", "0.58046925", "0.58046925", "0.58046925", "0.5797266", "0.5790511", "0.5782076", "0.5781311", "0.57801586", "0.57694113", "0.57671165", "0.5759152", "0.57506764", "0.57439494", "0.57439494", "0.57428473", "0.5742833", "0.573656", "0.57315105", "0.5715296", "0.5715296", "0.5715296", "0.5715296", "0.5715296", "0.5715296", "0.5715296", "0.57107884", "0.57045835", "0.56989276", "0.56989276", "0.56989276", "0.56947535", "0.5687089", "0.5684014", "0.5677071", "0.5677071", "0.567239", "0.567239", "0.56709415", "0.56709415", "0.56709415", "0.56669444", "0.566197", "0.5657152", "0.5656554", "0.5656554", "0.5656554", "0.56425107", "0.5641113", "0.5633198", "0.56273544", "0.5623134", "0.5614043", "0.5612591", "0.5600486", "0.5594861", "0.5592167", "0.5592167", "0.5592167", "0.5592167", "0.5592167", "0.5592167", "0.5588839", "0.55883443", "0.5587564", "0.55804765", "0.55782866", "0.5563843", "0.55589354", "0.55539733", "0.554129", "0.55388284", "0.5534088", "0.5532223", "0.5529682", "0.55258656", "0.55247676", "0.5524035", "0.55164784", "0.55140555", "0.55118984", "0.5501867", "0.54836684", "0.5477476" ]
0.0
-1
Created by tao.zhang on 1698.
public interface OnFragmentListener { void onAction(Intent intent); }
{ "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}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void func_104112_b() {\n \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}", "public void mo38117a() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void poetries() {\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}", "private void strin() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "private void init() {\n\n\t}", "public void mo4359a() {\n }", "public final void mo51373a() {\n }", "private void kk12() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void init() {\n\n\n\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\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 jugar() {\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}", "public void mo6081a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void init() {}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n protected void init() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "Petunia() {\r\n\t\t}", "@Override\r\n\tpublic void publierEnchere() {\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 }", "void berechneFlaeche() {\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void baocun() {\n\t\t\n\t}" ]
[ "0.61882395", "0.61289203", "0.60830927", "0.6075613", "0.6022615", "0.6022615", "0.6010686", "0.5974607", "0.5941067", "0.59291255", "0.5902528", "0.5900336", "0.5900239", "0.589506", "0.58796877", "0.58388627", "0.5811917", "0.5800816", "0.5792881", "0.57799673", "0.57707953", "0.57707953", "0.57707953", "0.57707953", "0.57707953", "0.57669395", "0.57555795", "0.575176", "0.5747459", "0.5740461", "0.5740461", "0.5728421", "0.57183385", "0.5710952", "0.570797", "0.57041687", "0.57021385", "0.56758547", "0.56711876", "0.5662952", "0.5658335", "0.56578726", "0.56578726", "0.56578726", "0.56550086", "0.5654532", "0.56542677", "0.56442255", "0.56374604", "0.56374604", "0.5627473", "0.5627473", "0.5627473", "0.5627473", "0.5627473", "0.5627473", "0.5627473", "0.56225497", "0.56217206", "0.56119585", "0.5611889", "0.5611889", "0.5611889", "0.5602782", "0.5602782", "0.5602782", "0.55861944", "0.5572181", "0.5572181", "0.55611706", "0.5559179", "0.5554745", "0.55543363", "0.5552525", "0.5551364", "0.5551079", "0.5549264", "0.5540653", "0.5532739", "0.5531743", "0.55291754", "0.55212724", "0.5520568", "0.5511839", "0.55106443", "0.54956245", "0.5494566", "0.5483236", "0.54805523", "0.54805523", "0.54805523", "0.54805523", "0.54805523", "0.54805523", "0.54748976", "0.5474002", "0.5471417", "0.5457202", "0.5455152", "0.5453355", "0.5445602" ]
0.0
-1
Method for handling intents
private void handleIntent(Intent intent) { // TODO Auto-generated method stub if (Intent.ACTION_VIEW.equals(intent.getAction())) { Intent paintingIntent = new Intent(this, PaintingActivity.class); paintingIntent.setData(intent.getData()); startActivity(paintingIntent); } else if (Intent.ACTION_SEARCH.equals(intent.getAction())) { String query = intent.getStringExtra(SearchManager.QUERY); Log.v("Debug", "Search started"); showResults(query); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}", "@Override\n protected void onHandleIntent(Intent intent) {\n\n }", "void mo21580A(Intent intent);", "protected abstract Intent getIntent();", "@Override\n protected void onHandleIntent(Intent workIntent) {\n }", "@Override\n protected void onNewIntent(Intent intent){\n handleIntent(intent);\n }", "private void handleIntent() {\n // Get the intent set on this activity\n Intent intent = getIntent();\n\n // Get the uri from the intent\n Uri uri = intent.getData();\n\n // Do not continue if the uri does not exist\n if (uri == null) {\n return;\n }\n\n // Let the deep linker do its job\n Bundle data = mDeepLinker.buildBundle(uri);\n if (data == null) {\n return;\n }\n\n // See if we have a valid link\n DeepLinker.Link link = DeepLinker.getLinkFromBundle(data);\n if (link == null) {\n return;\n }\n\n // Do something with the link\n switch (link) {\n case HOME:\n break;\n case PROFILE:\n break;\n case PROFILE_OTHER:\n break;\n case SETTINGS:\n break;\n }\n\n String msg;\n long id = DeepLinker.getIdFromBundle(data);\n if (id == 0) {\n msg = String.format(\"Link: %s\", link);\n } else {\n msg = String.format(\"Link: %s, ID: %s\", link, id);\n }\n\n Toast.makeText(this, msg, Toast.LENGTH_LONG).show();\n }", "private void handleIntent() {\n\t\tif (getIntent() != null && getIntent().getAction() != null) {\n\t\t\tif (getIntent().getAction().equals(Intent.ACTION_SEARCH)) {\n\t\t\t\tLog.d(\"MainActivityantivirus\", \"Action search!\");\n\t\t\t\tif (mCurrentFragmentType == NavigationElement.TYPE_APPS) {\n\t\t\t\t\tfinal String query = getIntent().getStringExtra(SearchManager.QUERY);\n\t\t\t\t\tif (query != null) {\n\t\t\t\t\t\t((AppsFragment) mCurrentFragment).onSearch(query);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void OnIngredients (View View)\n {\n \tIntent intent = new Intent(this, EditIngredients.class);\n \t\tstartActivity(intent);\n }", "public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }", "public void getintent() {\n Intent intent = this.getIntent();\n acceptDetailsModel = (AcceptDetailsModel) intent.getSerializableExtra(\"menu_item\");\n }", "private void getIncomingIntent()\n {\n if(getIntent().hasExtra(\"Title\")\n && getIntent().hasExtra(\"Time\")\n && getIntent().hasExtra(\"Date\")\n && getIntent().hasExtra(\"Duration\")\n && getIntent().hasExtra(\"Location\")\n && getIntent().hasExtra(\"EventDetails\"))\n {\n Title = getIntent().getStringExtra(\"Title\");\n Time = getIntent().getStringExtra(\"Time\");\n Date = getIntent().getStringExtra(\"Date\");\n Duration = getIntent().getStringExtra(\"Duration\");\n Location = getIntent().getStringExtra(\"Location\");\n EventDetails = getIntent().getStringExtra(\"EventDetails\");\n\n setData(Title,Time,Date,Duration,Location,EventDetails);\n }\n }", "@Override\n protected void onNewIntent(Intent intent) {\n }", "boolean mo3210a(Intent intent);", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n handleIntent(intent);\n }", "public static void handleIntent (Context context, Intent intent) {\n String actionKey = intent.getAction();\n String eventType = intent.getStringExtra(EXTRA_EVENT_TYPE);\n\n if (actionKey != null && eventType != null) {\n\n Intent responseIntent = null;\n Intent frameworkIntent = null;\n\n Action action = ActionHelper.getAction(context, actionKey);\n\n if (eventType.equalsIgnoreCase(COMMAND_FIRE)) {\n frameworkIntent = getFrameworkCompatibleIntent(intent.getStringExtra(EXTRA_CONFIG),\n intent.getBooleanExtra(EXTRA_SAVE_DEFAULT, false), false, REQ_TYPE_FIRE,\n actionKey, intent.getStringExtra(EXTRA_REQUEST_ID));\n\n } else if (eventType.equalsIgnoreCase(COMMAND_REVERT)) {\n frameworkIntent = getFrameworkCompatibleIntent(Persistence.retrieveValue(context, actionKey + DEFAULT_FW_SUFFIX),\n false, true, REQ_TYPE_REVERT,\n actionKey, intent.getStringExtra(EXTRA_REQUEST_ID));\n\n } else if (eventType.equalsIgnoreCase(COMMAND_REFRESH)) {\n if (action != null) {\n responseIntent = action.handleRefresh(context, intent);\n }\n\n } else if (eventType.equalsIgnoreCase(COMMAND_LIST)) {\n if (action != null) {\n responseIntent = action.handleList(context, intent);\n }\n }\n\n if (responseIntent != null) {\n if (LOG_INFO) {\n Log.i(TAG, \"Sending response: \" + responseIntent.toUri(0));\n }\n context.sendBroadcast(responseIntent, PERM_ACTION_PUBLISHER_ADMIN);\n }\n\n if (frameworkIntent != null) {\n if (LOG_INFO) {\n Log.i(TAG, \"Sending intent to framework: \" + frameworkIntent.toUri(0));\n }\n context.sendBroadcast(frameworkIntent);\n }\n } else {\n Log.w(TAG, \"Action not recognized for command = \" + eventType);\n }\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n handleIntent(intent);\n }", "boolean hasIntent();", "@Override\n public void onNewIntent(Intent intent) {\n }", "private void handleIntent(Intent intent, boolean isOnNewIntent) {\n handleIntent(intent.getAction(), intent.getExtras(), intent.getData(), isOnNewIntent);\n }", "com.google.cloud.dialogflow.cx.v3.Intent getIntent();", "protected Intent getStravaActivityIntent()\n {\n return new Intent(this, MainActivity.class);\n }", "public void mo1401a(Intent intent) {\n }", "void intentHasBeenReceivedThroughTheBroadCast(Intent intent);", "public void loadIngredients(View view) {\n\n Intent intent = new Intent(this, FridgeIngredients.class);\n startActivity(intent);\n }", "@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}", "private void handleIntent(Intent intent) {\n if (intent == null) {\n return;\n }\n\n // read intent\n String action = intent.getAction();\n Uri launchUri = intent.getData();\n\n // if app was not launched by the url - ignore\n if (!Intent.ACTION_VIEW.equals(action) || launchUri == null) {\n Log.d(TAG, \"launchUri is null or action != VIEW\");\n return;\n }\n\n\n // store message and try to consume it\n storedEvent = createEventFromUrl(launchUri);\n tryToConsumeEvent();\n }", "public abstract String getIntentActionString();", "public interface OnNewIntent {\n void onNewIntent(ZHIntent zHIntent);\n}", "public void onNewIntent(Intent intent) {\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "static final /* synthetic */ void m50993b(ane ane, Map map) {\n PackageManager packageManager = ane.getContext().getPackageManager();\n try {\n try {\n JSONArray jSONArray = new JSONObject((String) map.get(\"data\")).getJSONArray(\"intents\");\n JSONObject jSONObject = new JSONObject();\n for (int i = 0; i < jSONArray.length(); i++) {\n try {\n JSONObject jSONObject2 = jSONArray.getJSONObject(i);\n String optString = jSONObject2.optString(\"id\");\n String optString2 = jSONObject2.optString(\"u\");\n String optString3 = jSONObject2.optString(C42323i.f110089f);\n String optString4 = jSONObject2.optString(C13192m.f34940a);\n String optString5 = jSONObject2.optString(\"p\");\n String optString6 = jSONObject2.optString(\"c\");\n jSONObject2.optString(\"f\");\n jSONObject2.optString(\"e\");\n String optString7 = jSONObject2.optString(\"intent_url\");\n Intent intent = null;\n if (!TextUtils.isEmpty(optString7)) {\n try {\n intent = Intent.parseUri(optString7, 0);\n } catch (URISyntaxException e) {\n URISyntaxException uRISyntaxException = e;\n String str = \"Error parsing the url: \";\n String valueOf = String.valueOf(optString7);\n acd.m45778b(valueOf.length() != 0 ? str.concat(valueOf) : new String(str), uRISyntaxException);\n }\n }\n boolean z = true;\n if (intent == null) {\n intent = new Intent();\n if (!TextUtils.isEmpty(optString2)) {\n intent.setData(Uri.parse(optString2));\n }\n if (!TextUtils.isEmpty(optString3)) {\n intent.setAction(optString3);\n }\n if (!TextUtils.isEmpty(optString4)) {\n intent.setType(optString4);\n }\n if (!TextUtils.isEmpty(optString5)) {\n intent.setPackage(optString5);\n }\n if (!TextUtils.isEmpty(optString6)) {\n String[] split = optString6.split(\"/\", 2);\n if (split.length == 2) {\n intent.setComponent(new ComponentName(split[0], split[1]));\n }\n }\n }\n if (packageManager.resolveActivity(intent, 65536) == null) {\n z = false;\n }\n try {\n jSONObject.put(optString, z);\n } catch (JSONException e2) {\n acd.m45778b(\"Error constructing openable urls response.\", e2);\n }\n } catch (JSONException e3) {\n acd.m45778b(\"Error parsing the intent data.\", e3);\n }\n }\n ((C15836lc) ane).mo39810a(\"openableIntents\", jSONObject);\n } catch (JSONException unused) {\n ((C15836lc) ane).mo39810a(\"openableIntents\", new JSONObject());\n }\n } catch (JSONException unused2) {\n ((C15836lc) ane).mo39810a(\"openableIntents\", new JSONObject());\n }\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n if(intent != null)\n {\n String action = intent.getAction();\n if(ACTION_ADD_PLAYER.equals(action))\n {\n final Player player = (Player) intent.getSerializableExtra(EXTRA_UPDATE_PLAYER);\n handleAddPlayer(player);\n }else if(ACTION_UPDATE_PLAYER.equals(action))\n {\n final Player player = (Player) intent.getSerializableExtra(EXTRA_UPDATE_PLAYER);\n handleUpdatePlayer(player);\n }else if(ACTION_DELETE_PLAYER.equals(action))\n {\n final Player player = (Player) intent.getSerializableExtra(EXTRA_DELETE_PLAYER);\n handleDeletePlayer(player);\n }\n }\n\n }", "public Intent getIntent() {\n return mIntent;\n }", "void start(Intent intent, IntentFilter filter, IIntentCallback callback, IEclipseContext context);", "private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\n public void onNewIntent(Activity activity, Intent data) {\n }", "public Intent getIntent() {\n return mIntent;\n }", "public void onHandleIntent(Intent intent) {\n if (intent == null || !\"com.xiaomi.micloud.action.SYNC_COMMAND\".equals(intent.getAction())) {\n Log.e(\"SyncCommandServiceBase\", \"illegal arguments\");\n } else {\n handleCommand(intent.getStringExtra(\"key_command\"));\n }\n }", "private void handleIntent(Intent intent) {\n if(intent == null){\n Toast.makeText(this, \"intent is null handleIntent \", Toast.LENGTH_SHORT).show();\n return;\n }\n String action = intent.getAction();\n\n if(nfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)){\n String type = intent.getType();\n if(MIME_TEXT_PLAIN.equals(type)){\n Tag tag = intent.getParcelableExtra(EXTRA_TAG);\n\n nfcReaderTask = new NfcReaderTask();\n nfcReaderTask.SetResponseListener(this);\n nfcReaderTask.execute(tag);\n }\n }\n }", "public final void mo25517a(Intent intent) {\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(getApplicationContext(), Prescription.class);\n Bundle bundle = new Bundle();\n bundle.putString(\"Chatroomcode\", chatCode);\n i.putExtras(bundle);\n startActivity(i);\n CustomIntent.customType(Chat.this, \"fadein-to-fadeout\");\n }", "private void getIntentData() {\n\t\ttry{\n\t\t\tIN_CATEGORYID = getIntent().getStringExtra(CATEGORY_ID) == null ? \"0\" : getIntent().getStringExtra(CATEGORY_ID);\n\t\t\tIN_ARTICLENAME = getIntent().getStringExtra(ARTICLENAME) == null ? \"\" : getIntent().getStringExtra(ARTICLENAME) ;\n\t\t\tIN_ARTICLEID = getIntent().getStringExtra(ARTICLEID) == null ? \"\" : getIntent().getStringExtra(ARTICLEID);\n\t\t}catch(Exception e){\n\t\t}\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\thandleIntent(getIntent());\r\n\t}", "Intent createNewIntent(Class cls);", "@Override\n public void run() {\n startActivity(intent);\n }", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n menuInfo = new String(msg.getRecords()[0].getPayload());\n \n Toast.makeText(getApplicationContext(), menuInfo, Toast.LENGTH_LONG).show();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n intent = getIntent();\n }", "public void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n handleIntent(intent);\n }", "@Override\n protected void onHandleIntent(@Nullable Intent intent) {\n GeofencingEvent geofencingEvent = GeofencingEvent.fromIntent(intent);\n\n // Handling errors\n if (geofencingEvent != null && geofencingEvent.hasError()) {\n String errorMsg = getErrorString(geofencingEvent.getErrorCode());\n Log.e(TAG, errorMsg);\n return;\n }\n // Retrieve GeofenceTransition\n if (geofencingEvent != null) {\n int geoFenceTransition = geofencingEvent.getGeofenceTransition();\n\n switch (geoFenceTransition) {\n case Geofence.GEOFENCE_TRANSITION_ENTER:\n break;\n case Geofence.GEOFENCE_TRANSITION_EXIT:\n // Get the geofence that were triggered\n List<Geofence> triggeringGeofences = geofencingEvent.getTriggeringGeofences();\n\n String geofenceTransitionDetails = getGeofenceTrasitionDetails(geoFenceTransition, triggeringGeofences);\n Intent lbcIntent = new Intent(Constants.BroadCastReceiver.sBroadCastName); //Send to any reciever listening for this\n LocalBroadcastManager.getInstance(this).sendBroadcast(lbcIntent);\n break;\n }\n\n }\n }", "public void onIntentReceived(final String payload) {\n this.WriteLine(\"--- Intent received by onIntentReceived() ---\");\n this.WriteLine(payload);\n this.WriteLine();\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(\"SELECTSTUDIO\")) {\n Studiotype startingstudio = Studiotype.valueOf(intent.getStringExtra(\"launchstudio\"));\n switch (startingstudio) {\n case RiskFactor:\n Intent i = new Intent(context, RiskFactor.class);\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(i);\n return;\n case Product:\n case Simulation:\n case Scenario:\n case Dashboard:\n Log.w(\"kek\", \"lololol unimplemented hohohoho\");\n return;\n default:\n Log.w(\"kek\", \"not even a choice bro\");\n return;\n }\n }\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n GeofencingEvent geofencingEvent = GeofencingEvent.fromIntent(intent);\n if (geofencingEvent.hasError()) {\n Log.d(TAG, \"geofencing event error.\");\n return;\n }\n\n // Get the transition type.\n int geofenceTransition = geofencingEvent.getGeofenceTransition();\n\n // Test that the reported transition was of interest.\n if (geofenceTransition == Geofence.GEOFENCE_TRANSITION_ENTER) {\n\n // Get the geofences that were triggered. A single event can trigger\n // multiple geofences.\n List<Geofence> triggeringGeofences = geofencingEvent.getTriggeringGeofences();\n new GeofencingManager(this).HandleTriggeringGeofences(triggeringGeofences);\n }\n }", "@Override\n\tprotected void obtainIntentValue() {\n\n\t}", "@Override\n\tpublic void onNewIntent(Intent intent) {\n\t\tsetIntent(intent);\n\t}", "@Override\n protected void onHandleIntent(Intent intent) {\n retrieveValues();\n Resources res = getResources();\n\n if(!swearNegative && !swearNeutral && !swearPositive){\n SwearNotification.notify(this, res.getString(R.string.noTypeSelected) + \"No swears will follow!\", -1);\n return;\n }\n\n negative = res.getStringArray(R.array.negative);\n neutral = res.getStringArray(R.array.neutral);\n positive = res.getStringArray(R.array.positive);\n\n rand = new Random();\n\n swearTimer = new Timer(\"swearTimer\", true);\n swearTimer.schedule(new swearTask(), getDelay());\n// SwearNotification.notify(context,\"minTime:\"+Integer.toString(minTime) + \", maxTime:\"+Integer.toString(maxTime)+\",delay:\"+Long.toString(getDelay()),-1);\n\n }", "@Override\r\nprotected void onNewIntent(Intent intent) {\n\tsuper.onNewIntent(intent);\r\nSystem.out.println(\"onNewIntent\");\r\n}", "@Override\n protected void onHandleIntent(Intent workIntent) {\n String dataString = workIntent.getDataString();\n\tif(null == dataString) {\n\t\tLog.i(\"BluetoothEventService\", dataString);\n\t}\n// ...\n // Do work here, based on the contents of dataString\n// ...\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n switch (intent.getAction() ) {\n case \"com.example.android.a1nba\":\n Toast.makeText(context, \"A2 nba \", Toast.LENGTH_LONG).show();\n break;\n case \"com.example.android.a1mlb\":\n Toast.makeText(context, \"A2 mlb \", Toast.LENGTH_LONG).show();\n break;\n }\n }", "@Override\r\n public void onNewIntent(Intent intent){\r\n super.onNewIntent(intent);\r\n\r\n //changes the intent returned by getIntent()\r\n setIntent(intent);\r\n }", "public void onIntentReceived(final String payload) {\n }", "private void selectFunctionality() {\n if (text.equals(\"1\") || text.contains(\"senast\")) {\n intent = new Intent(this, LatestCallsActivity.class);\n startActivity(intent);\n } else if (text.equals(\"2\") || text.contains(\"favor\")) {\n intent = new Intent(this, ContactGridActivity.class);\n startActivity(intent);\n } else if (text.equals(\"3\") || text.contains(\"med\") || text.contains(\"inkorg\") || text.contains(\"sm\")) {\n intent = new Intent(this, SMS_Activity.class);\n startActivity(intent);\n } else if (text.equals(\"4\") || text.contains(\"bok\") || text.contains(\"kontakt\")) {\n words = text.split(\" \");\n if (words.length > 1) {\n intent = new Intent(this, ContactGridActivity.class);\n intent.putExtra(\"initial_letter\", words[1].charAt(0));\n startActivity(intent);\n } else {\n intent = new Intent(this, ContactBookActivity.class);\n startActivity(intent);\n }\n\n }\n\n }", "public interface IntentStarter {\n void startActivityForResult(ResultRequestor requestor, Intent intent);\n}", "@Override\n public void startActivity(Intent intent) {\n startActivity(intent, null);\n }", "public Intent intent( String inAction ) {\r\n\t\treturn new Intent( kMessagePlayer ).putExtra( \"action\" , inAction );\r\n\t}", "@Override\r\n\tprotected void onHandleIntent(Intent intent) {\n\t\tLog.d(Config.TAG_LOG, \"In onHandleIntent - ParsingChapterMangaService\");\r\n\t\tandroid.os.Debug.waitForDebugger();\r\n\t\tString urlPath = intent.getStringExtra(URL);\r\n\t\tString mangaName = intent.getStringExtra(MANGA_NAME);\r\n\t\tHtmlChapterHelper chapterHelper;\r\n\r\n\t\ttry {\r\n\t\t\t chapterHelper = new HtmlChapterHelper(urlPath);\r\n//\t\t\tList<Chapter> chapterList = getAllChapterLink(urlPath);\r\n\t\t\t List<Chapter> chapterList = chapterHelper.getAllChapterLink();\r\n\t\t\t// List<Chapter> chapterList = getAllChapterLink( urlPath);\r\n\t\t\tChapterDataSource chapterDataSource = new ChapterDataSource(\r\n\t\t\t\t\tgetApplicationContext());\r\n\t\t\tchapterDataSource.open();\r\n\t\t\tchapterDataSource.addChapterList(chapterList, mangaName);\r\n\t\t\tchapterDataSource.close();\r\n\t\t\tint position = intent.getIntExtra(POSITION, -1);\r\n\t\t\tif (position == -1)\r\n\t\t\t\tSystem.out\r\n\t\t\t\t\t\t.println(\"You have to insert position b4 using parsing chapter service\");\r\n\t\t\tpublishResults(Activity.RESULT_OK, position);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n//\t\tcatch (SAXException e) {\r\n//\t\t\t// TODO Auto-generated catch block\r\n//\t\t\te.printStackTrace();\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\r\n catch (XPatherException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "@Override\n protected void onHandleIntent(Intent intent) {\n if (intent != null) {\n final String action = intent.getAction();\n if (ACTION_GET_LOCATION.equals(action)) {\n handleActionGetLocation((ResultReceiver) intent.getParcelableExtra(\"receiverTag\"));\n }\n }\n }", "IntentFilter findFilter(Intent intent);", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "void start(Intent intent, Class<? extends IIntentHandler> handlerClass, IIntentCallback callback,\n\t\t\tIEclipseContext context);", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "public Intent getIntent() {\n return mInviteIntent;\n }", "private void tournaments() {\n\tstartActivity (new Intent(getApplicationContext(), Tournaments.class));\n\n\t}", "public String getIntent() {\n/* 329 */ return getCOSObject().getNameAsString(COSName.IT);\n/* */ }", "@Override\n\tprotected void onHandleIntent(Intent intent) {\n\t\tConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\t// getBackgroundDataSetting check for older versions of Android\n\t\tboolean isNetworkAvailable = cm.getBackgroundDataSetting() && cm.getActiveNetworkInfo() != null;\n\t\tif (!isNetworkAvailable) return;\n\t\t\n\t\tLog.i(TAG, \"Received an intent: \" + intent);\n\t\t\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\tString query = prefs.getString(FlickrFetchr.PREF_SEARCH_QUERY, null);\n\t\tString lastResultId = prefs.getString(FlickrFetchr.PREF_LAST_RESULT_ID, null);\n\t\t\n\t\tArrayList<GalleryItem> items;\n\t\tif (query != null) {\n\t\t\titems = new FlickrFetchr().search(query);\n\t\t} else {\n\t\t\titems = new FlickrFetchr().fetchItems(1);\n\t\t}\n\t\t\n\t\tif (items.size() == 0)\n\t\t\treturn;\n\t\t\n\t\tString resultId = items.get(0).getmId();\n\t\t\n\t\tif (!resultId.equals(lastResultId)) {\n\t\t\tLog.i(TAG, \"Got a new result: \" + resultId);\n\t\t} else {\n\t\t\tLog.i(TAG, \"Got an old result: \" + resultId);\n\t\t}\n\t\t\n\t\tprefs.edit()\n\t\t\t.putString(FlickrFetchr.PREF_LAST_RESULT_ID, resultId)\n\t\t\t.commit();\n\t}", "@Test\n public void triggerIntent_hasExtras() {\n onView(withId(getResourceId(\"switchActivity\"))).check(matches(notNullValue() ));\n onView(withId(getResourceId(\"switchActivity\"))).check(matches(withText(\"Change Page\")));\n onView(withId(getResourceId(\"switchActivity\"))).perform(click());\n intended(hasExtra(\"Developer\", \"Oguzhan Orhan\"));\n }", "@Override\n public IBinder onBind(Intent arg0) {\n intent=arg0;\n return null;\n }", "protected Intent getIntentForChangePresenter() {\n \t// Destino: Presentador H\n \tIntent intent = new Intent(PresentadorV_main.this,\n \t\t\tPresentadorH_main.class);\n\t\tintent.setAction(INTENT_ACTION);\t\n\t\t// Guarda en el intent el contenido de la searchview\n\t\t// ojo: es tipo CharSequence\t\t\n\t\tintent.putExtra(INTENT_CONTENT_WISEARCH, wi_search.getQuery());\n \treturn intent;\n }", "void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }", "private Boolean getWantIntent() {\n return false;\n }", "@Override\n public boolean activityStarting(Intent intent, String pkg) throws RemoteException {\n Log.i(TAG, String.format(\"Starting %s in package %s\", intent, pkg));\n currentPackage = pkg;\n currentIntent = intent;\n return true;\n }", "private void gestionaIntent(Intent intent) {\n\n \tif (Intent.ACTION_VIEW.equals(intent.getAction())) {\n \t\t/*** Click en una sugerencia de searchview... (no soportado aún) ***/\n \t\t\n \t} else if (Intent.ACTION_SEARCH.equals(intent.getAction())) {\n \t\t/*** Ejecutar una búsqueda ***/\n\n \t\t// Extrae la cadena desde el Intent\n \t\tString query_string = intent.getStringExtra(SearchManager.QUERY);\n\n \t\t// Si la cadena tiene menos de MIN_TAM... caracteres no se hace nada\n \t\tif ( (query_string == null) ||\n \t\t\t\t(query_string.length() < MIN_TAM_BUSQUEDA) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\t// Ejecuta la búsqueda en segundo plano\n \t\tbusqueda = new TareaBusqueda(buscador, this);\n \t\tif (busqueda !=null) {\n \t\t\tbusqueda.execute(query_string);\n \t\t} \n \t\t\n \t// Actualiza los botones de sugerencias\n \tactualizaSugerencias();\n \t\t\n \t} else if (INTENT_ACTION.equals(intent.getAction())) {\n \t\t/*** Cambio de orientación ***/\n \t\t// Mantiene el contenido de la searchview\n \t\twi_search.setQuery( intent.getCharSequenceExtra(INTENT_CONTENT_WISEARCH), false);\n \t\t\n \t} else {\n \t\t/*** No se hace nada ***/\n \t} \t\n\n }", "public void onButtonMyReceiverIntent(View view) {\n\n Intent myCustomIntent = new Intent(this, CustomIntent.class);\n startActivity(myCustomIntent);\n\n\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n if (intent == null) {\n return;\n }\n final String action = intent.getAction();\n if (ACTION_SCHEDULE_NEXT_ALARM.equals(action)) {\n scheduleNextAlarm();\n } else if (ACTION_SCHEDULE_NEXT_RESET.equals(action)) {\n scheduleNextReset();\n } else if (ACTION_SCHEDULE_SNOOZE.equals(action)) {\n scheduleSnooze(intent.getIntExtra(EXTRA_SNOOZE_DURATION, 5));\n }\n }", "private void getIntentValues() {\n\n// itemname= getIntent().getExtras().getString(IntentsConstants.item_name);\n// itemPrice = getIntent().getExtras().getDouble(IntentsConstants.item_price);\n Bundle bundle = getArguments();\n menusItem= (MenusItem) bundle.getSerializable(\"Item\");\n itemname=menusItem.getName();\n itemPrice=menusItem.getPrice();\n\n}", "@Override\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\n\t\tsetIntent(intent);\n\t}", "@Override\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\n\t\tToast.makeText(MainActivity.this, \"player\", Toast.LENGTH_SHORT).show();\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n \tLog.d(\"Activity\", \"Got back activity\");\n \tLog.d(\"Activity arguments\", \"ReqCode:\" + requestCode + \" Result:\"+resultCode);\n \t\n \t// Didn't get anything useful back from either textcraft or speechcraft\n \tif ((requestCode == SPEECHCRAFT_REQCODE || requestCode == TEXTCRAFT_REQCODE) && resultCode == RESULT_CANCELED) {\n \t\tLog.d(\"Activity\", \"Didn't get anything back\");\n \t} else {\n \t// Respond to built in speech recognition activity\n if (requestCode == SPEECH_REQCODE && resultCode == RESULT_OK) {\n // Populate the wordsList with the String values the recognition engine thought it heard\n \t// i.e. \"Milk\" -> matches = [milk, Milk, Mielke]\n ArrayList<String> matches = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\n Log.d(\"Hearing...\", matches.toString());\n \n // Start the speechcraft activity and passing heard words\n Intent intent = new Intent(this, SpeechcraftActivity.class);\n \t\tBundle bundle =new Bundle();\n \t\tbundle.putStringArray(\"matches\", matches.toArray(new String[matches.size()]));\n \t\tintent.putExtras(bundle);\n \t\tstartActivityForResult(intent, SPEECHCRAFT_REQCODE);\n \t\toverridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n }\n // Respond to a successfully finished textcraft or speechcraft activity, we'll get back\n // two strings - the food's name, and the food's location\n if ((requestCode == TEXTCRAFT_REQCODE || requestCode == SPEECHCRAFT_REQCODE) && resultCode == RESULT_OK) {\n \t// Update the two arrays that store values and the one that displays it on this activity\n \tString foodName = data.getExtras().getString(\"foodName\");\n \tfoodNameList.add(foodName);\n \t\n \tString location = data.getExtras().getString(\"location\");\n \tfoodlocationList.add(location);\n\n \tdisplayedFoods.add(foodName + \" | \" + location) ;\n \tArrayAdapter<String> displayedFoodsAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, displayedFoods);\n \tfoodList.setAdapter(displayedFoodsAdapter);\t\n }\n super.onActivityResult(requestCode, resultCode, data);\n \t}\n }", "private void showIntentInfo(Intent intent, TextView textView){\n StringBuilder infoBuilder = new StringBuilder();\n String action = intent.getAction();\n infoBuilder.append(\"Action=\");\n infoBuilder.append(action != null ? action : \"** NO Action **\");\n infoBuilder.append(\"\\n\");\n\n Bundle extras = intent.getExtras();\n if(extras == null){\n infoBuilder.append(\"** NO Extras **\");\n } else {\n infoBuilder.append(\"** Extras **\\n\");\n Set<String> keySet = extras.keySet();\n for(String key : keySet) {\n String value = extras.get(key).toString();\n infoBuilder.append(key);\n infoBuilder.append(\"=\");\n infoBuilder.append(value);\n infoBuilder.append(\"\\n\");\n }\n }\n textView.setText(infoBuilder.toString());\n }", "public interface IIntentManager\n{\n\t/**\n\t * Start the given Intent. If the intent defines it's own handler, that\n\t * handler is used. Otherwise the best matching filter's handler is used. If\n\t * no filter is found, an exception is passed to the callback's\n\t * {@link IIntentCallback#error(Exception, Intent)} method.\n\t * \n\t * @param intent\n\t * Intent to start\n\t * @param callback\n\t * Callback of the intent that is notified of intent completion\n\t * @param context\n\t * Eclipse context in which to run the intent\n\t */\n\tvoid start(Intent intent, IIntentCallback callback, IEclipseContext context);\n\n\t/**\n\t * Start the given Intent. If the intent defines it's own handler, that\n\t * handler is used. Otherwise the given filter's handler is used.\n\t * \n\t * @param intent\n\t * Intent to start\n\t * @param filter\n\t * Filter whose handler will handle the intent (unless the intent\n\t * defines it's own handler)\n\t * @param callback\n\t * Callback of the intent that is notified of intent completion\n\t * @param context\n\t * Eclipse context in which to run the intent\n\t */\n\tvoid start(Intent intent, IntentFilter filter, IIntentCallback callback, IEclipseContext context);\n\n\t/**\n\t * Start the given Intent, using the given handler. The intent's own\n\t * handler, if defined, is ignored.\n\t * \n\t * @param intent\n\t * Intent to start\n\t * @param handlerClass\n\t * Handler to handle the intent\n\t * @param callback\n\t * Callback of the intent that is notified of intent completion\n\t * @param context\n\t * Eclipse context in which to run the intent\n\t */\n\tvoid start(Intent intent, Class<? extends IIntentHandler> handlerClass, IIntentCallback callback,\n\t\t\tIEclipseContext context);\n\n\t/**\n\t * Find the best intent filter that matches the given intent. Returns null\n\t * if none could be found.\n\t * \n\t * @param intent\n\t * Intent to find a filter for\n\t * @return Intent filter that matches the given intent\n\t * @see IIntentManager#findFilters(Intent)\n\t */\n\tIntentFilter findFilter(Intent intent);\n\n\t/**\n\t * Find the intent filters that match the given intent. Returns an empty\n\t * list if none could be found.\n\t * <p/>\n\t * The best match is defined as follows:\n\t * <ul>\n\t * <li>If the intent defines an expected return type, any filters that\n\t * define that return type are preferred over those that don't</li>\n\t * <li>If the intent defines a content type, the filters that define a\n\t * content type closer to the intent's content type are preferred</li>\n\t * <li>Otherwise the first matching filter is returned</li>\n\t * </ul>\n\t * \n\t * @param intent\n\t * Intent to find a filter for\n\t * @return Intent filters that match the given intent\n\t */\n\tList<IntentFilter> findFilters(Intent intent);\n\n\t/**\n\t * Add an intent filter.\n\t * \n\t * @param filter\n\t */\n\tvoid addFilter(IntentFilter filter);\n\n\t/**\n\t * Remove an intent filter.\n\t * \n\t * @param filter\n\t */\n\tvoid removeFilter(IntentFilter filter);\n}", "@Override\n public void handleResult(Intent data) {\n }", "@Override\n\t\tpublic void run() {\n\t\t\tswitch (i) {\n\t\t\tcase 4:\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(Admin2Home.this, Admin2CareSelect.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tIntent intent2 = new Intent();\n\t\t\t\tintent2.setClass(Admin2Home.this, UnicomSaleQuery.class);\n\t\t\t\tstartActivity(intent2);\n\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tIntent intent3 = new Intent();\n\t\t\t\tintent3.setClass(Admin2Home.this, UnicomQuery.class);\n\t\t\t\tstartActivity(intent3);\n\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t\thandleCommand(intent);\r\n\t}", "@Override // com.oppo.enterprise.mdmcoreservice.utils.defaultapp.DefaultApp\n public List<Intent> getIntentList() {\n List<Intent> intentList = new ArrayList<>();\n for (int i = 0; i < DEFAULT_MATCH_TYPE_LIST.size(); i++) {\n for (int j = 0; j < DEFAULT_SCHEME_LIST.size(); j++) {\n for (int k = 0; k < DEFAULT_URI_DATA_TYPE_LIST.size(); k++) {\n Intent intent = new Intent(\"android.intent.action.VIEW\");\n intent.addCategory(\"android.intent.category.DEFAULT\");\n StringBuffer sb = new StringBuffer();\n sb.append(DEFAULT_SCHEME_LIST.get(j));\n sb.append(\"://\");\n sb.append(DEFAULT_URI_DATA_TYPE_LIST.get(k));\n intent.setDataAndType(Uri.parse(sb.toString()), null);\n intentList.add(intent);\n }\n }\n }\n Intent intent2 = new Intent(\"android.intent.action.VIEW\");\n intent2.addCategory(\"android.intent.category.DEFAULT\");\n intent2.setDataAndType(Uri.parse(\"http://dn1.dn2.dn3\"), null);\n intentList.add(intent2);\n Intent intent3 = new Intent(\"android.intent.action.VIEW\");\n intent3.addCategory(\"android.intent.category.DEFAULT\");\n intent3.setDataAndType(Uri.parse(\"http://dn1.dn2.dn3/...\"), null);\n intentList.add(intent3);\n Intent intent4 = new Intent(\"android.intent.action.VIEW\");\n intent4.addCategory(\"android.intent.category.DEFAULT\");\n intent4.setDataAndType(Uri.parse(\"https://dn1.dn2.dn3/...\"), null);\n intentList.add(intent4);\n return intentList;\n }", "public Intent getActivityIntent() {\n Intent intent = new Intent(this.context, InterstitialActivity.class);\n intent.setFlags(268435456);\n intent.addFlags(67108864);\n intent.putExtra(\"id\", getPlacementID());\n if (this.setAutoPlay) {\n intent.putExtra(\"auto_play\", this.autoPlay);\n }\n if (this.setCanClose) {\n intent.putExtra(\"can_close\", isBackButtonCanClose());\n }\n if (this.setMute) {\n intent.putExtra(\"mute\", getMute());\n }\n intent.putExtra(\"cat\", getCategories());\n intent.putExtra(\"pbk\", getPostback());\n intent.putExtra(\"b_color\", getButtonColor());\n intent.putExtra(\"skip_title\", getSkipText());\n intent.putExtra(\"creative\", getCreative());\n return intent;\n }", "private void handleIntent(Intent intent) {\n if (Intent.ACTION_SEARCH.equals(intent.getAction())) {\n String query = intent.getStringExtra(SearchManager.QUERY);\n //use the query to search your data somehow\n query = query.replaceAll(\"\\\\s+\",\"\");\n showSearchResults(query);\n }\n }", "@Override\n public Optional<Response> handle(HandlerInput handlerInput, IntentRequest intentRequest) {\n return handlerInput.getResponseBuilder()\n .withSpeech(\"Hi, I am in \" + intentRequest.getIntent().getName() + \" intent\")\n .build();\n }" ]
[ "0.72728276", "0.71978676", "0.716102", "0.7096474", "0.6881334", "0.6819282", "0.67519546", "0.6633404", "0.6623485", "0.6440437", "0.64118636", "0.6406174", "0.62522674", "0.6240561", "0.6239783", "0.6232728", "0.61714053", "0.61385953", "0.61321056", "0.6117069", "0.61102915", "0.608578", "0.6080006", "0.60509634", "0.6039701", "0.6026133", "0.5997351", "0.59835607", "0.59821045", "0.59762114", "0.59736377", "0.59659743", "0.5963072", "0.59621155", "0.59391177", "0.5896079", "0.58810073", "0.58710355", "0.58710355", "0.5866604", "0.5864815", "0.5858538", "0.58552337", "0.5836263", "0.5830049", "0.58203655", "0.58103937", "0.58089304", "0.5808518", "0.5807077", "0.5785156", "0.5784628", "0.5782999", "0.57789516", "0.5775259", "0.577105", "0.57680833", "0.57534045", "0.5747758", "0.57179743", "0.5709297", "0.5693224", "0.5688037", "0.5687167", "0.56828296", "0.5675852", "0.56675416", "0.56661814", "0.56649506", "0.5653654", "0.56448686", "0.5634006", "0.5620463", "0.5617974", "0.56133956", "0.5603074", "0.56018484", "0.5595624", "0.5587277", "0.55816835", "0.5574366", "0.55738586", "0.55581534", "0.55554473", "0.5553186", "0.5552067", "0.55495703", "0.554925", "0.55392814", "0.5525258", "0.5524129", "0.55131733", "0.55107147", "0.550598", "0.5503992", "0.54999214", "0.5496451", "0.5496008", "0.54887277", "0.5481812" ]
0.6307373
12
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_search, menu); if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE); mSearchView = (SearchView) menu.findItem(R.id.search_bar2).getActionView(); mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName())); mSearchView.setIconifiedByDefault(false); mSearchView.setOnQueryTextListener(this); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.72461367", "0.7201596", "0.7195268", "0.7177002", "0.71069986", "0.7039653", "0.70384306", "0.70115715", "0.7010647", "0.69803435", "0.6945406", "0.69389313", "0.6933442", "0.69172275", "0.69172275", "0.6890826", "0.6883689", "0.687515", "0.6874831", "0.68615955", "0.68615955", "0.68615955", "0.68615955", "0.68522274", "0.6846375", "0.68189865", "0.68165565", "0.68124795", "0.6812267", "0.6812267", "0.68056566", "0.6800461", "0.6797465", "0.6790805", "0.6789039", "0.6787885", "0.6782993", "0.67597246", "0.67570525", "0.6747535", "0.6743268", "0.6743268", "0.6740546", "0.67395175", "0.67256093", "0.6723954", "0.6722248", "0.6722248", "0.6720444", "0.67118156", "0.6706721", "0.6704184", "0.66993994", "0.66988564", "0.669681", "0.66943884", "0.66860807", "0.668306", "0.668306", "0.6682587", "0.668012", "0.6678661", "0.6676379", "0.6668044", "0.66669863", "0.66628903", "0.6657356", "0.6657356", "0.6657356", "0.66565585", "0.665397", "0.665397", "0.665397", "0.66525495", "0.66518986", "0.66496557", "0.6648199", "0.6646489", "0.66462386", "0.6646177", "0.6645531", "0.66453475", "0.66446036", "0.66438025", "0.6642411", "0.6641632", "0.6638948", "0.6634394", "0.66336566", "0.6632082", "0.66315377", "0.66315377", "0.66315377", "0.6628936", "0.6627818", "0.6627061", "0.66256744", "0.6623986", "0.661993", "0.6618369", "0.6618369" ]
0.0
-1
Search the database for the artwork name
public void showResults(String query) { //For prototype will replace with db operations String[] str = { "Artowrk1", "Some other piece", "This art", "Mona Lisa" }; ArrayAdapter<String> aa = new ArrayAdapter<String>(this,android.R.layout.simple_dropdown_item_1line, str); mListView.setAdapter(aa); mListView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Artist getByName(String name);", "public void searchSong(String name)\n {\n for(int i=0; i<songs.size(); i++)\n if(songs.get(i).getFile().contains(name) || songs.get(i).getSinger().contains(name))\n {\n System.out.print((i+1) + \"- \");\n listSong(i);\n\n }\n }", "Album findAlbumByNameAndArtisteName(String albumName, String artisteName);", "@Override\n\tpublic List<Artist> findByName(String name) {\n\t\treturn null;\n\t}", "public void searchByAlbum()\n {\n String input = JOptionPane.showInputDialog(null,\"Enter the album you'd like to search for:\");\n input = input.replaceAll(\" \", \"_\").toUpperCase();\n \n Collections.sort(catalog);\n int index = Collections.binarySearch(catalog, new Album(\"\",input,null), null);\n if(index >= 0)\n System.out.println(\"Album:\\t\" + catalog.get(index).getAlbum()\n + \"\\nArtist: \" + catalog.get(index).getArtist()+\"\\n\");\n else System.err.println(\"Album '\" + input + \"' not found!\\n\"); \n }", "public List<Artist> searchArtistOnly(String text) throws SQLException {\n\t\tList<Artist> artist = new ArrayList<Artist>();\n\n\t\tString sql = \"SELECT * FROM artist\" + \" WHERE Artist_Name LIKE ? ORDER BY Artist_Id\";\n\t\tDriver driver = new Driver();\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\n\t\ttry {\n\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, \"%\" + text + \"%\");\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}\n\n\t\tfinally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\n\t}", "public List<Artist> searchAlbumForArtist(String text) throws SQLException {\n\t\tList<Artist> albumsArtist = new ArrayList<Artist>();\n\t\tDriver driver = new Driver();\n\t\tString sql = \"SELECT Artist.*, Album_Name, Year_Released FROM artist,album\"\n\t\t\t\t+ \" WHERE artist.Artist_ID = album.Artist_ID AND Album_Name Like ? \"\n\t\t\t\t+ \"ORDER BY artist.Artist_ID, Year_Released\";\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\n\t\ttry {\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, \"%\" + text + \"%\");\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\talbumsArtist.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 albumsArtist;\n\t\t} finally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\t}", "public void searchByArtist()\n {\n String input = JOptionPane.showInputDialog(null,\"Enter the artist you'd like to search for:\");\n input = input.replaceAll(\" \", \"_\").toUpperCase(); //standardize output.\n \n Collections.sort(catalog, new ArtistComparator());\n int index = Collections.binarySearch(catalog, \n new Album(input,\"\",null), new ArtistComparator());\n //Since an artist could be listed multiple times, there is *no guarantee*\n //which artist index we find. So, we have to look at the artists\n //left and right of the initial match until we stop matching.\n if(index >= 0)\n {\n Album initial = catalog.get(index);\n String artist = initial.getArtist();\n \n ArrayList<Album> foundAlbums = new ArrayList<>();\n //this ArrayList will have only the albums of our found artist \n foundAlbums.add(initial);\n try { \n int j = index, k = index;\n while(artist.equalsIgnoreCase(catalog.get(j+1).getArtist()))\n {\n foundAlbums.add(catalog.get(j+1));\n j++;\n }\n while(artist.equalsIgnoreCase(catalog.get(k-1).getArtist()))\n {\n foundAlbums.add(catalog.get(k-1));\n k--;\n }\n }\n catch(IndexOutOfBoundsException e) {\n //happens on the last round of the while-loop test expressions\n //don't do anyhting because now we need to print out our albums.\n }\n System.out.print(\"Artist: \" + artist + \"\\nAlbums: \");\n for(Album a : foundAlbums)\n System.out.print(a.getAlbum() + \"\\n\\t\");\n System.out.println();\n }\n else System.err.println(\"Artist '\" + input + \"' not found!\\n\"); \n }", "public String getCoverArtName();", "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 Media findMediaByTitle(String nameText )\r\n {\r\n \r\n for (Media media : this.mediaCatalogueList)\r\n {\r\n if (media.getMediaName().equalsIgnoreCase(nameText))\r\n {\r\n return media;\r\n }\r\n }\r\n \r\n return null;\r\n \r\n }", "private Track searchTrack(String name) {\n for(Track e: listTracks) {\n if(e.sDataPath.equals(name)) return e;\n }\n return null;\n }", "@Override\n\tpublic List<Music> findByName(String name) {\n\t\treturn store.readByName(name);\n\t}", "@GET\n @Path(\"/searchArtist/{searchName}\")\n public List<ArtistDTO> searchArtist(@PathParam(\"searchName\") String name) {\n return artistLogic.findByName(name);\n }", "public List<Album> searchArtistForAlbum(String text) throws SQLException {\n\t\tList<Album> artistWork = new ArrayList<Album>();\n\t\tDriver driver = new Driver();\n\n\t\tString sql = \"SELECT Album.* FROM artist,album \"\n\t\t\t\t+ \" WHERE artist.Artist_ID = album.Artist_ID AND Artist_Name Like ? \"\n\t\t\t\t+ \"ORDER BY artist.Artist_ID, Year_Released\";\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\n\t\ttry {\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, \"%\" + text + \"%\");\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\tartistWork.add(new Album(res.getInt(\"Album_Id\"), res.getString(\"Album_Name\"),\n\t\t\t\t\t\tres.getString(\"Year_Released\"), res.getInt(\"Artist_Id\")));\n\t\t\t}\n\t\t\treturn artistWork;\n\t\t}\n\n\t\tfinally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\n\t\t}\n\t}", "public static int search (String searching)\n {\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 \n if (actualAlbum.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n else if (actualAlbum.getArtist().getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\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(searching))\n {\n JSoundsMainWindowViewController.showSongResults(true, false, false, actualAlbum,song,actualSongIndex);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n indexFromSearchedSong=actualSongIndex;\n if (alreadyPlaying)\n {\n JSoundsMainWindowViewController.stopSong();\n alreadyPlaying=false;\n dontInitPlayer=true;\n }\n //playListSongs(true);\n return 1;\n }\n actualSongIndex++;\n }\n actualAlbumIndex++;\n }\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Not Found :( \");\n return 0;\n }", "private Song findSong(String songName){\n for(Song checkedSong : this.songAlbum){\n if(checkedSong.getSongTitle().equals(songName))\n return checkedSong;\n }\n return null;\n }", "public static String getArtNameByID(int id) {\n try {\n Statement statement = Connector.getConnection().createStatement();\n String query = \"SELECT * FROM Arts WHERE artId = \" + id + \"\";\n ResultSet rs = statement.executeQuery(query);\n if (rs.next()) {\n return rs.getString(2);\n } else {\n return null;\n }\n } catch (SQLException e) {\n Logger.getLogger(ArtDAO.class.getName()).log(Level.SEVERE, null, e);\n return null;\n }\n }", "@Override\n\tpublic Movie searchMovieByName(String name) {\n\t\tString sql=\"Select * from movie where MOVIE_NAME='\"+name+\"'\";\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tList<Movie> nameMList=jdbcTemplate.query(sql, new MovieRowMapper());\n\t\tif(nameMList==null||nameMList.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\treturn nameMList.get(0);\n\t}", "Set<Art> getArtByArtist(String artist);", "public Artista findArtista(int codiceArtista) throws RecordNonPresenteException;", "public String searchByName(String name){\n for(Thing things: everything){\n if(things.getName().equalsIgnoreCase(name)){\n return things.toString();\n }\n }\n return \"Cannot Find given Name\";\n }", "private Song findSong(String title){\n for (Song checkedSong : this.songArrayList){\n if (checkedSong.getTitle().equals(title)){\n return checkedSong;\n }\n }\n return null;\n }", "public Cursor displaySelectedMovie(String movie){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table+\" WHERE \" +MOVIE_NAME+\" LIKE '%\"+movie+\"%'\";\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }", "public List<Album> findAlbumsByName(String name){\n\t\tList<Album> albums = new ArrayList<Album>();\n\t\ttry {\n\t\t\tString sql = \"SELECT * FROM Album WHERE Name LIKE ?;\";\n\t\t\tPreparedStatement statement = connection.prepareStatement(sql);\n\t\t\tstatement.setString(1, \"%\" + name + \"%\");\n\t\t\tResultSet set = statement.executeQuery();\n\t\t\tif (set.next()){\n\t\t\t\talbums.add(readAlbum(set));\n\t\t\t}\n\t\t\tstatement.close();\n\t\t\t//connection.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn albums;\n\t}", "private void searchSong() {\n String keyword = keywordEdt.getText().toString().trim();\n if (TextUtils.isEmpty(keyword)) {\n } else {\n keyword = keyword.toLowerCase();\n\n }\n\n midiRecommendAdapter.notifyDataSetChanged();\n }", "@Override\n\tpublic ArrayList<Product> findByName(String partName) {\n\t\tArrayList<Product> p = productRepository.findProductByName(partName);\n\t\treturn p;\n\t}", "public ArrayList<Song> searchByArtist(String artist) \r\n {\r\n \treturn musicLibraryArtistKey.get(artist);\r\n \t\r\n }", "public void searchByMake(String make) throws Exception\n\t {\n\t\t String insertSql = \"SELECT * FROM DEALERSHIP.make WHERE model LIKE \" + \"'\" + make +\"'\" ;\n\t \t\t\t\n\t\t Statement statement = connection.createStatement();\n\t\t\t\n\t\t\tstatement.execute(insertSql);\n\t\t \n\t }", "protected ArtifactInfo getArtInfo(String wrksName, String artName) throws CartagoException {\n ICartagoController ctrl = CartagoEnvironment.getInstance().getController( \"/main/\"+wrksName); //.getId().getFullName());\n return ctrl.getArtifactInfo(artName);\n }", "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 }", "public List<Recipe> getRecipeByName(String name)\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n //For exact name query do: Cursor cursor = qb.query(db,sqlSelect, \"name = ?\",new String[]{name}, null, null, null);\n //LIKE implementation is done below\n Cursor cursor = qb.query(db,sqlSelect, \"name LIKE ?\",new String[]{\"%\"+name+\"%\"}, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }", "public Song searchByTitle(String title) \r\n {\r\n return musicLibraryTitleKey.get(title);\r\n \t\r\n }", "@Test \n public void findByFileNameTest() {\n FileMetaData fileMetaData = new FileMetaData();\n fileMetaData.setAuthorName(\"Puneet\");\n fileMetaData.setFileName(\"resume1\");\n fileMetaData.setDescription(\"Attached resume to test upload\");\n fileMetaData.setUploadTimeStamp(DateUtil.getCurrentDate());\n fileMetaDataRepository.saveAndFlush(fileMetaData);\n FileMetaData fetchedRecord = fileMetaDataRepository.findByFileName(\"resume1\"); \n Assert.assertNotNull(fetchedRecord);\n Assert.assertEquals(\"Puneet\", fetchedRecord.getAuthorName());\n Assert.assertEquals(\"resume1\", fetchedRecord.getFileName());\n Assert.assertEquals(\"Attached resume to test upload\", fetchedRecord.getDescription()); \n }", "@GET\n public Iterator<Album> searchByName(@QueryParam(\"name\") String name) {\n return null;\n }", "public void searchByPhoto(String string){\n boolean flag = false;\n for(int i=0; i<arrayList.size(); i++){\n Event event = arrayList.get(i);\n\n if(string.contains(event.getName())){\n flag = true;\n\n // Goes To Event Details Activity\n Intent intent = new Intent(getApplicationContext(), EventDetailsActivity.class);\n // putting an object as an intent extra\n intent.putExtra(\"Event\",(Serializable) event);\n startActivity(intent);\n\n\n }\n }\n if(flag == false){\n Toast.makeText(this, \"Not found!\", Toast.LENGTH_SHORT).show();\n }\n }", "@Query(\"FROM Author Where author_name = ?1\")\n\tList<Author> findAuthorName(String authorName);", "public String getArtworkFilename(MediaFileType type) {\n List<MediaFile> artworks = getMediaFiles(type);\n if (!artworks.isEmpty()) {\n return artworks.get(0).getFile().toString();\n }\n return \"\";\n }", "@Override\r\n public List<Asset> findByKeyWord(Map<String, Object> params) {\n return assetDao.findByKeyWord(params);\r\n }", "public Vector<Artista> findAllArtisti();", "@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}", "private static void search_by_name() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project Name: \");\r\n\t\t\tString project_name = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_name, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project name cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "@Test\n public void testGetMediumByTitle_String()throws Exception {\n System.out.println(\"getMediumByTitle\");\n String title = \"ca\";\n DBManager instance = new ODSDBManager(\"long.ods\");\n \n List<Medium> result = instance.getMediumByTitle(title);\n for(Medium medium:result){\n assertTrue(medium.getTitles().contains(\"ca\"));\n }\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "ResultSet searchName(String name) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon WHERE Name = \" + \"'\" + name + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "public Vector searchFile(String str){\r\n Vector search = new Vector();\r\n\r\n /* Search corresponding to title */\r\n Vector titleLoc = (Vector) titleHashTable.get(str);\r\n if (titleLoc != null) { // title matches\r\n for(int i=0 ;i < titleLoc.size(); i++){\r\n if(((FileLocation)titleLoc.elementAt(i)).record.isConnected)\r\n search.addElement(titleLoc.elementAt(i));\r\n }\r\n }\r\n\r\n Vector artistLoc = (Vector) artistHashTable.get(str);\r\n if (artistLoc != null) {\r\n for(int i=0 ;i < artistLoc.size();i++){\r\n if(((FileLocation)artistLoc.elementAt(i)).record.isConnected)\r\n search.addElement(artistLoc.elementAt(i));\r\n }\r\n }\r\n\r\n Vector albumLoc = (Vector) albumHashTable.get(str);\r\n if (albumLoc != null) {\r\n for(int i=0 ;i<albumLoc.size();i++){\r\n if(((FileLocation)albumLoc.elementAt(i)).record.isConnected)\r\n search.addElement(albumLoc.elementAt(i));\r\n }\r\n }\r\n\r\n\t\treturn search;\r\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 void llistaArticlesByName(String string) {\n\t\tSystem.out.println(\"\\nArticles anomenats \" + string + \" :\");\n\t\t\n\t\tObjectSet<Article> articles = db.query(new Predicate<Article>() {\n\t\t\tpublic boolean match(Article article) {\n\t\t\t\treturn article.getName().equalsIgnoreCase(string);\n\t\t\t}\n\t\t});\n\t\tarticles.stream()\n\t\t\t\t.forEach(System.out::println);\n\t}", "List<AlbumVO> searchAlbum(String searchText) throws Exception;", "private void search(String query) {\n final List<Artist> foundartists = new ArrayList<Artist>();\n final String usrquery = query;\n\n spotifysvc.searchArtists(query, new Callback<ArtistsPager>() {\n @Override\n public void success(ArtistsPager artists, Response response) {\n List<Artist> artistlist = artists.artists.items;\n Log.d(LOG_TAG_API, \"found artists [\" + artistlist.size() + \"]: \" + artistlist.toString());\n datalist.clear();\n\n if (artistlist.size() > 0) {\n setListdata(artistlist);\n } else {\n Toast.makeText(getActivity(), \"no artists found by the name: \" + usrquery, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(LOG_TAG_API, \"failed to retrieve artists:\\n\" + error.toString());\n Toast.makeText(getActivity(), \"failed to retrieve artists. Possible network issues?: \", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void search(String searchTerm)\r\n\t{\r\n\t\tpalicoWeapons = FXCollections.observableArrayList();\r\n\t\tselect(\"SELECT * FROM Palico_Weapon WHERE name LIKE '%\" + searchTerm + \"%'\");\r\n\t}", "public void searchTitle()\r\n\t{\r\n\t\tSystem.out.print(\"Please provide a title: \");\r\n\t\tString title = scan.nextLine();\r\n\t\tboolean display = false;\r\n\t\tboolean found = false;\r\n\t\tfor (int i = 0; i < actualSize; i++)\r\n\t\t{\r\n\r\n\t\t\tif (title.equalsIgnoreCase(data[i].getTitle()))\r\n\t\t\t{\r\n\t\t\t\tif (display == false)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Title\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\" + \"Year\\t\" + \"rating\\t\" + \"score\");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(data[i].toString());\r\n\t\t\t\tdisplay = true;\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (found == false)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The title does not match any of the movies.\");\r\n\t\t}\r\n\r\n\t}", "void searchView(String name);", "@Test\n public void testGetMediumByTitle_Sheet_String()throws Exception {\n System.out.println(\"getMediumByTitle\");\n \n String title = \"a\";\n DBManager instance = new ODSDBManager(\"long.ods\");\n Sheet sheet = database.getSheet(\"c\");\n List<Medium> result = instance.getMediumByTitle(sheet, title);\n \n for(Medium medium:result){\n for(String value:data[0]){\n assertTrue(medium.getTitles().contains(value));\n \n }\n assertFalse(medium.getTitles().contains(\"c\"));\n }\n \n// fail(\"The test case is a prototype.\");\n }", "public Cursor searchMovie(String search){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table+\" WHERE \" +MOVIE_NAME+\" LIKE '%\"+search+\"%' OR \"+MOVIE_DIRECTOR+\" LIKE '%\"+search+\"%' OR \"+MOVIE_CAST+\" LIKE '%\"+search+\"%'\";\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }", "public boolean searchCertainItem(String itemname, String tableName)\n {\n String selectStr;\n ResultSet rs;\n try{\n\n selectStr=\"SELECT \"+itemname+\" FROM \"+tableName;\n rs = stmt.executeQuery(selectStr);\n\n while (rs.next())\n {\n return true;\n }\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return false;\n\n }", "public void okButtonAction(ActionEvent actionEvent){\n\n\n System.out.println(\"okkkkkk\");\n querySpecial=null;\n\n PersistenceUtil pu= PersistenceUtil.getInstance();\n EntityManagerFactory emf =pu.getEmf();\n EntityManager em = emf.createEntityManager();\n\n ArtistRepository ar= ArtistRepository.getInstance();\n\n\n if(textField1.getText()!=null)\n {\n System.out.println(textField1.getText());\n resultArtist=ar.findById(Integer.parseInt(textField1.getText()));\n System.out.println(resultArtist.get().getName());\n writeTable();\n }\n\n\n }", "public Media findMediaByTitleAndGenre(String nameText, Genre g)\r\n {\r\n\t Genre g2;\r\n\t \r\n for (Media media : this.mediaCatalogueList)\r\n {\r\n if (media.getMediaName().equalsIgnoreCase(nameText))\r\n {\r\n \tswitch (media.getMedia_Type())\r\n \t{\r\n \tcase CD: return (CD)media; \r\n \tcase DVD: return (DVD)media;\r\n \tcase GAME: return (Game)media; \r\n \t}\r\n \r\n }\r\n }\r\n \r\n return null;\r\n }", "List<Card> search(String searchString) throws PersistenceCoreException;", "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 }", "public Story findByName(String name) {\n EntityManager entityManager = getEntityManager();\n\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Story> criteria = criteriaBuilder.createQuery(Story.class);\n Root<Story> root = criteria.from(Story.class);\n\n criteria.select(root);\n criteria.where(criteriaBuilder.equal(root.get(Story_.name), name));\n \n return getSingleResult(entityManager.createQuery(criteria));\n }", "@Override\r\n\tpublic boolean findArtist(Map<String,String> map) {\r\n\t\t\r\n\t\treturn this.find(\"artist\", map);\r\n\t}", "void Search_for_item(String itemname) \n\t{ \n item it=new item();\n \n for(int i=0;i<it.itemfoundWithDescription.size();i++)\n {\n if(it.itemfoundWithDescription.get(i).equals(itemname))\n \t{\n System.out.println(\"item founded\");\n\t\t\texit(0);\n \t}\n \n }\n System.out.println(\"item not founded\");\n \n\t}", "protected boolean existArtist(String s){\n\t\treturn this.artistName.matches(\"^.*(?i)\"+s+\".*$\");\n\t}", "@Override\n\tpublic List<Product> findByName(String term) {\n\t\treturn productDAO.findByNameLikeIgnoreCase(\"%\" + term + \"%\");\n\t}", "private static void searchAnimalByName() {\n\t\tshowMessage(\"type in the animal's name: \\n\");\n\t\t\n\t\tString name = getUserTextTyped();\n\t\tToScreen.listAnimal(AnimalSearch.byName(name), true);\n\t\t\n\t\t//condition to do another search by name or go back to the main menu\n\t\t//if the user decide for doing another search the method is called again, otherwise it will go back to the main menu\n\t\tint tryAgain = askForGoMainMenu(\"Would you like to search for another name or go back to main menu?\\n Type 1 to search someone else \\n Type 0 to go to menu. \\n Choice: \");\n\t\tif(tryAgain == 1){\n\t\t\tsearchAnimalByName();\n\t\t} else {\n\t\t\tmain();\n\t\t}\n\t\t\n\t}", "public List<Student> searchStudent(String name) {\n List<Student> studentList = new ArrayList<>();\n Cursor cursor = sqLiteDatabase.rawQuery(\"SELECT * FROM Students WHERE name = ? \", new String[]{name});\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 }", "Heaver findByName(String name);", "public NameSurferEntry findEntry(String name) {\n\t\tchar ch = name.charAt(0);\n\t\tif(Character.isLowerCase(ch) == true) {\n\t\t\tch = Character.toUpperCase(ch);\n\t\t}\n\t\tString otherLetters = name.substring(1);\n\t\totherLetters = otherLetters.toLowerCase();\n\t\tname = ch + otherLetters;\n\t\tif (nameFromDatabase.containsKey(name)) {\n\t\t\treturn nameFromDatabase.get(name);\n\t\t}\t\t\t\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "private void searchDVDByTitle() throws DVDLibraryDaoException {\n view.displaySearchDVDBanner();\n String phrase = view.getSearch();\n List<DVD> DVDmatches = dao.searchDVDs(phrase);\n view.displayDVDList(DVDmatches);\n view.displaySearchSuccessBanner();\n }", "public ArrayList<ADFilmBEAN> search(int thang, int nam, int start) throws Exception{\r\n\t\treturn film.search(thang, nam, start);\r\n\t}", "private List<MusicVideo> selectMusicVideosFromDBMatchingTitle(String queryString){\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 title LIKE :title\", MusicVideo.class) ;\n queryString = \"%\" + queryString + \"%\" ;\n query.setParameter(\"title\", queryString) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\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}", "@Override\n\tpublic Album findAlbumByName(String name) {\n\t\treturn _albumDao.findAlbumByName(name);\n\t}", "@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);", "@Override\n\tpublic ArrayList<BlogArticle> searchArts(String title) {\n\t\treturn blogArticleDao.searchArts(title);\n\t}", "public List<Product> getProductBySearchName(String search) {\r\n List<Product> list = new ArrayList<>();\r\n String query = \"select * from Trungnxhe141261_Product\\n \"\r\n + \"where [name] like ? \";\r\n try {\r\n conn = new DBContext().getConnection();//mo ket noi voi sql\r\n ps = conn.prepareStatement(query);\r\n ps.setString(1, \"%\" + search + \"%\");\r\n rs = ps.executeQuery();\r\n while (rs.next()) {\r\n list.add(new Product(rs.getInt(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getDouble(4),\r\n rs.getString(5),\r\n rs.getString(6)));\r\n }\r\n } catch (Exception e) {\r\n }\r\n return list;\r\n }", "@Override\n\tpublic List<BoardVO> searchArticle(String keyword) {\n\t\t\n\t\tString sql = \"SELECT * FROM board WHERE board_writer LIKE ?\";\n\t\treturn template.query(sql,new BoardMapper(), keyword);\n\t}", "public void toStringName(String nam){\n \t\n boolean val = false;\n\n for(int i =0;i<arch.length && !val;i++){\n \tif(arch[i]!=null){\n \t\tif(arch[i].getName().equalsIgnoreCase(nam)){\n \t\t\t System.out.println(\"---------------------------\");\n \t\t \t\tSystem.out.println(arch[i].getName());\n System.out.println(arch[i].getPhoto());\n System.out.println(arch[i].getDate().getDay());\n System.out.println(arch[i].getDate().getMonth());\n val=true;\n }\n \t}\n \telse{\n \t \t\tSystem.out.print(\"Error: the angel doesn't exist\");\n \t \t\tval =true;\n \t}\n }\n\t\n}", "public void searchTitle(String srchttl){\r\n \t\r\n \tboolean found = false;\t\t\t\t\t\r\n \tIterator<Item> i = items.iterator();\r\n \tItem current = new Item();\r\n\r\n\twhile(i.hasNext()){\r\n\t current = i.next();\r\n\t \r\n\t if(srchttl.compareTo(current.getTitle()) == 0) {\r\n\t System.out.print(\"Found \" + current.toString());\r\n\t found = true;\r\n\t } \r\n }\r\n \r\n\tif(found != true){\r\n\t System.out.println(\"Title \" + srchttl + \" could not be found.\");\r\n\t System.out.println(\"Check the spelling and try again.\");\r\n\t}\r\n \r\n }", "@Override\r\n\tpublic List<Blog> findTitle(String ti) {\n\t\tList<Blog> list = this.getBlogDao().findAll();\r\n\t\tList<Blog> list1 = new ArrayList<Blog>();\r\n\t\tfor(Blog b:list){\r\n\t\t\tif(b.getTitle().contains(ti)){\r\n\t\t\t\tlist1.add(b);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list1;\r\n\t}", "public String searchByName(String searchString) {\n boolean foundBook = false;\n String searchResult = \"\";\n \n for(Literature literature:literatureRegister) {\n if(literature.getTitle().contains(searchString) || literature.getAuthor().contains(searchString)) {\n searchResult += \"The literature title is: \" + literature.getTitle() + \".\\n\"\n + \"The literature author is: \" + literature.getAuthor() + \".\\n\";\n if(literature instanceof Book) {\n searchResult += \"The book genre is: \" + ((Book) literature).getGenre() + \".\\n\";\n }\n if(literature instanceof Magazine) {\n searchResult += \"The magazine brand is: \" + ((Magazine) literature).getBrand() + \".\\n\";\n }\n if(literature instanceof NewsPaper) {\n searchResult += \"The new's paper brand is: \" + ((NewsPaper) literature).getBrand() + \".\\n\";\n }\n if(literature instanceof BookSeries) {\n searchResult += \"The literature brand is: \" + ((BookSeries) literature).getGenre() + \".\\n\" + \"The books in this series is: \" + \"\\n\" + (((BookSeries) literature).listAllBooks());\n }\n foundBook = true;\n }\n }\n \n if(!foundBook){\n searchResult = (\"No literature with the name: \" + searchString + \" found.\");\n }\n return searchResult;\n }", "public String searchName(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, name from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, name;\n name = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n name = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n\n return name;\n }", "void searchByName(String name) {\n\t\tint i=0;\n\t\t\tfor (Entity entity : Processing.nodeSet) {\n\t\t\t\t\n\t\t\t\t/* if Entity is person */\n\t\t\t\tif(entity instanceof Person) {\n\t\t\t\t\tPerson person=(Person)entity;\n\t\t\t\t\tif(person.getName().equalsIgnoreCase(name)){\n\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\tSystem.out.println(\" name : \" + person.getName());\n\t\t\t\t\tSystem.out.println(\" phone : \" + person.getPhone());\n\t\t\t\t\tSystem.out.println(\" email : \" + person.getEmail());\n\t\t\t\t\tSystem.out.println(\" school : \" + person.getSchool());\n\t\t\t\t\tSystem.out.println(\" college : \" + person.getCollege() + \"\\n\");\n\t\t\t\t\t\tfor(String interest:person.getInterests()){\n\t\t\t\t\t\t\tSystem.out.println(\" interest in : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/* If entity is organization */\n\t\t\t\telse {\n\t\t\t\t\tOrganization organization=(Organization)entity;\n\t\t\t\t\tif(organization.getName().equalsIgnoreCase(name)){\n\t\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\t\tSystem.out.println(\" name : \" + organization.getName());\n\t\t\t\t\t\tSystem.out.println(\" phone : \" + organization.getPhone());\n\t\t\t\t\t\tSystem.out.println(\" email : \" + organization.getEmail());\n\t\t\t\t\t\tfor(String interest:organization.getCourses()){\n\t\t\t\t\t\t\tSystem.out.println(\" courses are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getFaculty()){\n\t\t\t\t\t\t\tSystem.out.println(\" Faculties are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getPlacements()){\n\t\t\t\t\t\t\tSystem.out.println(\" Placements are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif(i>=Processing.nodeSet.size()) {//if no such name exist\n\t\t\t\tSystem.out.println(name+\" does not exist\");\n\t\t\t}\n\t}", "public String getSearchDatabaseName() throws InvalidFormatException;", "public Artist(String name, Genre mainGenre) {\n this.name = name;\n this.cataloue = new ArrayList<Record>();\n this.mainGenre = mainGenre;\n }", "public ObservableList<Part> lookupPart(String partName) {\n ObservableList<Part> namedParts = FXCollections.observableArrayList();\n for ( Part part : allParts ) {\n if(part.getName().toLowerCase().contains(partName.toLowerCase())) {\n namedParts.add(part);\n }\n }\n return namedParts;\n }", "@Override\r\n\tpublic List<BIrd> searchByName(String birdName) throws Exception {\n\t\tList<BIrd> list=new ArrayList<BIrd>();\r\n\t\ttry{\r\n\t\tsession=sessionfactory.openSession();\r\n\t\ttransaction = session.beginTransaction();\r\n\t\tString sql=\"SELECT * FROM tbl_bird WHERE BirdName LIKE '%\"+birdName+\"%'\";\r\n\t\tSQLQuery query=session.createSQLQuery(sql);\r\n\t\tquery.addEntity(BIrd.class);\r\n\t\tlist=query.list();\r\n\t\tSystem.out.println(list.size());\r\n\t\t} catch (Exception e) {\r\n\t\t\ttransaction.rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tsession.close();\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public Handle search(String name) {\n int homePos = hash(table, name);\n int pos;\n\n // QUADRATIC PROBE\n for (int i = 0; i < table.length; i++) {\n // possibly iterate over entire table, but will\n // likely stop before then\n pos = (homePos + i * i) % table.length;\n if (table[pos] == null) {\n break;\n }\n else if (table[pos] != GRAVESTONE\n && table[pos].getStringAt().equals(name)) {\n return table[pos];\n }\n } // end for\n\n return null;\n }", "@FXML\r\n public void lookupPart() {\r\n \r\n String text = partSearchTxt.getText().trim();\r\n if (text.isEmpty()) {\r\n //No text was entered. Displaying all existing parts from inventory, if available\r\n displayMessage(\"No text entered. Displaying existing parts, if available\");\r\n updatePartsTable(stock.getAllParts());\r\n }\r\n else{\r\n ObservableList<Part> result = stock.lookupPart(text);\r\n if (!result.isEmpty()) {\r\n //Part foung in inventory. Displaying information available. \r\n updatePartsTable(result);\r\n }\r\n else {\r\n //Part not found in inventory. Displaying all existing parts from inventory, if available\r\n displayMessage(\"Part not found. Displaying existing parts, if available\");\r\n updatePartsTable(stock.getAllParts());\r\n }\r\n }\r\n \r\n }", "private void Query() {\n\t\tCursor cursor = db.query(\"movie\", null, null, null, null, null, null); \n while (cursor.moveToNext()) { \n String moviename = cursor.getString(0); \n String moviejianjie = cursor.getString(10);\n Movie movie = new Movie(moviename,R.drawable.poster,moviejianjie); \n\t//\t\t Toast.makeText(getActivity(), moviejianjie, Toast.LENGTH_SHORT).show();\n if(cursor.getInt(11)==2)\n \tmovieList.add(movie); \n }\n cursor.close();\n\t}", "public void findByName() {\n String name = view.input(message_get_name);\n if (name != null){\n try{\n List<Customer> list = model.findByName(name);\n if(list!=null)\n if(list.isEmpty())\n view.showMessage(not_found_name);\n else\n view.showTable(list);\n else\n view.showMessage(not_found_error);\n }catch(Exception e){\n view.showMessage(incorrect_data_error);\n }\n } \n }", "Expertise findByName(String name);", "public SearchByArtistPrefix(SongCollection sc) {\n\t\tsongs = sc.getAllSongs();\n\t}", "ArtistCommunitySearch getArtistSearch();", "Artist getById(long id);", "public ArrayList<EntityAisle> getByName(String nameWanted ){\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n ArrayList<EntityAisle> AisleList = new ArrayList<>();\n\n Cursor cursor = null;\n try {\n\n cursor = sqLiteDatabase.query(ConfigDAO.TABLE_AISLE,\n null, ConfigDAO.COLUMN_RAYON_NAME+\" LIKE '\" + nameWanted+\"'\" ,\n null, null, null, null, null);\n\n /**\n // If you want to execute raw query then uncomment below 2 lines. And comment out above line.\n\n String SELECT_QUERY = String.format(\"SELECT %s, %s, %s, %s, %s FROM %s\", Config.COLUMN_Employee_ID, Config.COLUMN_Employee_NAME, Config.COLUMN_Employee_REGISTRATION, Config.COLUMN_Employee_EMAIL, Config.COLUMN_Employee_PHONE, Config.TABLE_Employee);\n cursor = sqLiteDatabase.rawQuery(SELECT_QUERY, null);\n */\n\n if(cursor!=null)\n if(cursor.moveToFirst()){\n\n do {\n int id = cursor.getInt(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_ID));\n String name = cursor.getString(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_NAME));\n\n\n AisleList.add(new EntityAisle(id, name));\n } while (cursor.moveToNext());\n\n return AisleList;\n }\n } catch (Exception e){\n Log.i(TAG, \"getAllAisle: \"+e.getMessage());\n Toast.makeText(this.mExecutionContext, \"Operation failed\", Toast.LENGTH_SHORT).show();\n } finally {\n if(cursor!=null)\n cursor.close();\n sqLiteDatabase.close();\n }\n\n return AisleList;\n }", "public List<Song> findArtistSongs(String search) {\n\t\treturn lookifyRepository.findByArtistContaining(search);\n\t}", "private void search(String product) {\n // ..\n }", "public Cursor getRecipeContents(String title){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor data = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME\n + \" WHERE \" + COLUMN_TITLE\n + \"=\" + \"'\" + title + \"';\", null);\n return data;\n }", "@Test\r\n public void testGetCollectionImages() throws Exception {\r\n LOG.info(\"getCollectionImages\");\r\n List<Artwork> result = tmdb.getCollectionImages(ID_MOVIE_STAR_WARS_COLLECTION, LANGUAGE_DEFAULT);\r\n assertFalse(\"No artwork found\", result.isEmpty());\r\n }" ]
[ "0.66649735", "0.5820493", "0.58148855", "0.5814819", "0.5773751", "0.57073826", "0.56265485", "0.5607924", "0.555997", "0.55572706", "0.5523879", "0.5520313", "0.5511705", "0.55027354", "0.5502106", "0.54873353", "0.54777", "0.54702246", "0.54284656", "0.5397645", "0.5351807", "0.5350218", "0.5344604", "0.5336091", "0.53282297", "0.5315561", "0.52942246", "0.52922946", "0.52581203", "0.52551115", "0.5250282", "0.52418524", "0.5233551", "0.5232348", "0.5228546", "0.5219583", "0.52098185", "0.5207764", "0.5203672", "0.519839", "0.519504", "0.51942986", "0.5181629", "0.5170096", "0.51688004", "0.5163622", "0.51432383", "0.51124084", "0.51104087", "0.5108881", "0.5104249", "0.5103942", "0.50939494", "0.50881934", "0.50737464", "0.50649965", "0.5064784", "0.5060295", "0.50508815", "0.5048595", "0.5043233", "0.50362486", "0.5033602", "0.50274503", "0.5014044", "0.5011254", "0.5000114", "0.4998496", "0.49944392", "0.49937385", "0.49913773", "0.4990626", "0.49885577", "0.49874994", "0.49860778", "0.49819973", "0.49796686", "0.4975647", "0.49743512", "0.49732143", "0.496851", "0.49671805", "0.4945779", "0.49440604", "0.49350578", "0.49294925", "0.4920335", "0.4915885", "0.49134186", "0.49086207", "0.490452", "0.48988664", "0.4898283", "0.4897871", "0.4888769", "0.48864254", "0.48837245", "0.4867822", "0.48648828", "0.48621517", "0.48610288" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean onQueryTextChange(String newText) { Log.v("query","onQueryTextChange"); mTextView.setText("Searching for " + newText); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean onQueryTextSubmit(String query) { Log.v("query", "onQueryTextSubmit"); return false; }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Returns the value of the 'Label' containment reference. If the meaning of the 'Label' containment reference isn't clear, there really should be more of a description here...
StopLabel getLabel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getLabel() \n {\n return label;\n }", "public Label getLabel() {\n return this.label;\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "public JLabel getLabel() {\n return this.label;\n }", "public Label getLabel() {\n\t\treturn this.label;\n\t}", "public String getLabel()\n { \n return label;\n }", "public JLabel getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String label() {\n return this.label;\n }", "public String getLabel(){\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel()\n {\n return m_label;\n }", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "public String getLabel() {\n return label;\n }", "public final Label getLabel() {\n return label;\n }", "public String getLabel()\n {\n return label;\n }", "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() {\r\n return lbl;\r\n }", "public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }", "String getLabel() {\n return label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\r\n return label;\r\n }", "Label getLabel();", "Label getLabel();", "Label getLabel();", "private String getLabel() {\n return this.label;\n }", "public String getLabel() {\n\t\treturn myLabel;\n\t}", "public String getLabel(){\n\t\treturn label;\n\t}", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public double getLabel() {\n\t\treturn label;\n\t}", "public String getLabel() {\n\t\treturn label;\n\t}", "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 }", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "public String getLabel() {\n\t\treturn this._label;\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Label getLabel() {\r\n return label;\r\n }", "public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }", "public String getParentLabel(){\n\t\treturn this.parentLabel;\n\t}", "public T2 getLabel() {\r\n\t\treturn label;\r\n\t}", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public\t\tMiPart\t\tgetLabel()\n\t\t{\n\t\treturn(label);\n\t\t}", "public CharSequence getSelectedLabel()\n\t{\n\t\treturn _current.label.getText();\n\t}", "public int getLabel() {\n\t\treturn label;\n\t}", "public java.lang.String getLabel();", "@Override\n public String getLabel() {\n return label;\n }", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "java.lang.String getLabel();", "public String getLabel() {\r\n return layout.label;\r\n }", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public ComponentLabel getComponentLabel() {\n\t\treturn componentLabel;\n\t}", "public String toString() {\n return label;\n }", "@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}", "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }", "@JsonGetter(\"label\")\r\n public String getLabel ( ) { \r\n return this.label;\r\n }", "public String getLabelText(){\n\t\treturn syncExec(new StringResult() {\t\t\n\t\t\t@Override\n\t\t\tpublic String run() {\n\t\t\t\tControl[] aux = widget.getParent().getChildren();\n\t\t\t\tfor (Control control : aux) {\n\t\t\t\t\tif (control instanceof CLabel){\n\t\t\t\t\t\treturn ((CLabel)control).getText();\n\t\t\t\t\t}\n\t\t\t\t\tif (control instanceof Label){\n\t\t\t\t\t\treturn ((Label)control).getText();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}", "public String toString()\n {\n return label;\n }", "public com.commercetools.api.models.common.LocalizedString getLabel() {\n return this.label;\n }", "@JsonProperty(\"label\")\n @JsonInclude(JsonInclude.Include.NON_DEFAULT)\n public String getLabel() {\n return this.label;\n }", "String getLabel();", "String getLabel();", "public HTMLLabelElement getElementLabelNombre() { return this.$element_LabelNombre; }", "public HTMLLabelElement getElementLabelNombre() { return this.$element_LabelNombre; }", "public Value label(String label) {\n this.label = label;\n return this;\n }", "public MplsLabel value() {\n return this.mplsLabel;\n }", "public final Rectangle getBounds() {\n return label.getBounds();\n }", "public String getStrLabelValue() {\r\n\t\treturn strLabelValue;\r\n\t}", "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 }", "com.google.ads.googleads.v6.resources.Label getLabel();", "ReadOnlyStringProperty labelProperty();", "@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 String getLabelText();", "DatasetLabel getLabel();", "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 }", "public String getLabelName() {\n return m_labelName;\n }", "public final String aoy() {\n return this.label;\n }", "@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 }", "@Nullable\n public final CharSequence getLabel1() {\n return mLabel1;\n }", "public String toString() {\n StringBuffer sb = new StringBuffer(\"LabelValueBean[\");\n sb.append(this.label);\n sb.append(\", \");\n sb.append(this.value);\n sb.append(\"]\");\n return (sb.toString());\n }", "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }" ]
[ "0.6856982", "0.6768644", "0.6749633", "0.6749633", "0.6690487", "0.6689128", "0.6685343", "0.6683489", "0.66688234", "0.6654614", "0.6632365", "0.6621764", "0.6617058", "0.6615535", "0.6601654", "0.6597522", "0.65922475", "0.65892327", "0.65726256", "0.65726256", "0.65680856", "0.6550201", "0.65455174", "0.6541539", "0.65400237", "0.65400237", "0.65400237", "0.65400237", "0.65304494", "0.65304494", "0.65304494", "0.6525499", "0.6525499", "0.6525499", "0.65199095", "0.65194124", "0.65194124", "0.65194124", "0.6491239", "0.64892733", "0.64880395", "0.6468858", "0.6452645", "0.6452645", "0.6452645", "0.6452645", "0.6433403", "0.64187443", "0.64157736", "0.6403518", "0.63681066", "0.63398", "0.6325867", "0.6295927", "0.62611926", "0.62580717", "0.62287587", "0.6226458", "0.6207881", "0.6199721", "0.61970663", "0.61942357", "0.6192212", "0.61767536", "0.61728805", "0.6152896", "0.6152896", "0.6152896", "0.6152896", "0.612334", "0.6119213", "0.6109583", "0.6078969", "0.6078324", "0.6050857", "0.6035575", "0.60293174", "0.6026501", "0.6021526", "0.6004819", "0.5967485", "0.5967485", "0.5958763", "0.5958763", "0.5952869", "0.5951574", "0.5928913", "0.59280044", "0.59164876", "0.5897959", "0.5880341", "0.58752596", "0.5852713", "0.581854", "0.57992464", "0.57791036", "0.5773136", "0.57677895", "0.57414514", "0.5736806", "0.5731149" ]
0.0
-1
is it minheap or maxHeap if max is false or not passed > minheap if max is true > maxheap
GenericHeap() { // default }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isMinHeap() {\r\n return isMinHeap(1);\r\n }", "public boolean isHeap() \n {\n \tint childIndex;\n \tfor (int i=0 ; i < this.getSize() ; i++) {\n \t\tfor (int j=1 ; j <= this.d ; j++) {\n \t\t\tif( (childIndex=child(i, j, this.d))>=this.getSize() ) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\tif ( array[i].getKey()>array[childIndex].getKey() ) {\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t}\n return true; \n }", "public boolean isHeap() {\r\n\t\tint padre = 0, hijo;\r\n\t\twhile (padre < (theHeap.size() >> 2)) {\r\n\t\t\thijo = (padre << 1) + 1;\r\n\t\t\tif (hijo < theHeap.size() - 1\r\n\t\t\t\t\t&& compare(theHeap.get(hijo), theHeap.get(hijo + 1)) > 0)\r\n\t\t\t\thijo++;\r\n\t\t\tif (compare(theHeap.get(hijo), theHeap.get(padre)) < 0)\r\n\t\t\t\treturn false;\r\n\t\t\tpadre++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean isMinHeap(int k) {\r\n if (k > N) return true;\r\n int left = 2*k, right = 2*k + 1;\r\n if (left <= N && greater(k, left)) return false;\r\n if (right <= N && greater(k, right)) return false;\r\n return isMinHeap(left) && isMinHeap(right);\r\n }", "@Override\n public boolean isMaximum(){\n return super.isMaximum() || speciallyMaximized;\n }", "public Heap(boolean isMin) {\r\n // TODO\r\n }", "private boolean hasHeapProperty() {\n for(int i=1; i <= count; i++) {\n if( findRightChild(i) <= count ) { // if i Has two children...\n // ... and i is smaller than either of them, , then the heap property is violated.\n if( items[i].compareTo(items[findRightChild(i)]) < 0 ) return false;\n if( items[i].compareTo(items[findLeftChild(i)]) < 0 ) return false;\n }\n else if( findLeftChild(i) <= count ) { // if n has one child...\n // ... and i is smaller than it, then the heap property is violated.\n if( items[i].compareTo(items[findLeftChild(i)]) < 0 ) return false;\n }\n else break; // Neither child exists. So we're done.\n }\n return true;\n }", "public boolean isHeap2() {\r\n\t\tint child = theHeap.size() - 1, parent;\r\n\r\n\t\twhile (child > 0) {\r\n\t\t\tparent = (child - 1) >> 1; \r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) < 0)\r\n\t\t\t\treturn false;\t\r\n\t\t\tchild-- ;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isHeap()\n\t{\n\t\treturn true;\n\t}", "public Heap12( boolean isMaxHeap)\n {\n arrayList = new ArrayList<E>(5);\n size = 0;\n isMax = isMaxHeap;\n cap = 5;\n }", "boolean isSetMaximum();", "private boolean isBigger(int pos1, int pos2) {\n //Comparable c1 = heap.get(pos1);\n //Comparable c2 = heap.get(pos2);\n //return c1.compareTo(c2) > 0;\n return heap.get(pos1).compareTo(heap.get(pos2)) > 0;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(20>10&&20<30);\n\t\tint a=10;\n\t\tint b=20;\n\t\tint max=a>b?a:b;\n\t\tSystem.out.println(max);\n\n\n\n\n\t}", "public boolean isMinHeap(int[] array) {\n int prev = array[0];\n for (int i=1; i<array.length; i++) {\n if (prev > array[i]) {\n return false;\n }\n \n prev = array[i];\n }\n \n return true;\n }", "public static void main(String[] args) {\n Maxheap<Integer> maxheap = new Maxheap<>();\n double time=0;\n int opCount = 10000000;\n time = testHeap(maxheap,opCount,true);\n System.out.println(\"Test heapify completed: \"+time+ \"s\");\n time = testHeap(maxheap,opCount,false);\n System.out.println(\"Test completed: \"+time+ \"s\");\n\n\n// time = debugHeap(maxheap,5,true);\n// System.out.println(\"Test completed: \"+time+ \"s\");\n }", "private boolean isHeap(Node root) {\n\n\t\tif (root == null)\n\t\t\treturn true;\n\t\tint countnodes = countNodes(root);\n\t\tif (isCompleteTree(root, 0, countnodes) == true && isHeapUtil(root) == true)\n\t\t\treturn true;\n\t\treturn false;\n\n\t}", "public boolean heapRule(HeapNode h) {\n\t\tif (h.theMostLeftChild == null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tboolean flag = true;\r\n\t\t\tHeapNode hIt = h.theMostLeftChild;\r\n\t\t\twhile (hIt != null) {\r\n\t\t\t\tflag = flag && heapRule(hIt);\r\n\t\t\t\tif (hIt.value < h.value) {\r\n\t\t\t\t\tflag = false;\r\n\t\t\t\t}\r\n\t\t\t\thIt = hIt.rightBrother;\r\n\t\t\t}\r\n\t\t\treturn flag;\r\n\t\t}\r\n\t}", "public Heap(boolean isMin, Collection<ValueType> data) {\r\n // TODO\r\n }", "public boolean greaterThan(HeapNode h) {\n \n int t1 = this.getTreeNode().getBuilding().getTotalTimeTaken();\n int t2 = h.getTreeNode().getBuilding().getTotalTimeTaken();\n\n if ( t1 == t2) {\n int num1 = this.getTreeNode().getBuilding().getNum();\n int num2 = h.getTreeNode().getBuilding().getNum();\n return num1 > num2;\n }\n else {\n return t1 > t2;\n }\n }", "boolean isNilMaximum();", "private int min(int[] children) {\r\n int max = heap.size() - 1;\r\n if (children[0] <= max && children[1] <= max) {\r\n if (heap.get(children[0]) < heap.get(children[1])) {\r\n return children[0];\r\n } else {\r\n return children[1];\r\n }\r\n } else {\r\n return -1;\r\n }\r\n }", "public void buildMaxHeap(){\n\t\tfor(int i = (n-2)/2 ; i >= 0; i--){\n\t\t\tmaxHeapfy(i);\n\t\t}\n\t}", "private int deleteMax() {\n int ret = heap[0];\n heap[0] = heap[--size];\n\n // Move root back down\n int pos = 0;\n while (pos < size / 2) {\n int left = getLeftIdx(pos), right = getRightIdx(pos);\n\n // Compare left and right child elements and swap accordingly\n if (heap[pos] < heap[left] || heap[pos] < heap[right]) {\n if (heap[left] > heap[right]) {\n swap(pos, left);\n pos = left;\n } else {\n swap(pos, right);\n pos = right;\n }\n } else {\n break;\n }\n }\n\n return ret;\n }", "@Test\n\tpublic void testMaxSmallerBigger(){\n\t int min=3, mid=5, max=10, bigger=Integer.MAX_VALUE, smaller=Integer.MIN_VALUE;\n\t assertEquals( bigger, MaxDiTre.max(max, smaller, bigger) );\n\t}", "@Test\n\tpublic void testSmallerBiggerMax(){\n\t int min=3, mid=5, max=10, bigger=Integer.MAX_VALUE, smaller=Integer.MIN_VALUE;\n\t assertEquals( bigger, MaxDiTre.max(smaller, bigger, max) );\n\t}", "private boolean isMinMax(ComparisonExpression comp) {\n return comp.getLhs() instanceof MinTimePointComparable ||\n comp.getLhs() instanceof MaxTimePointComparable ||\n comp.getRhs() instanceof MinTimePointComparable ||\n comp.getRhs() instanceof MaxTimePointComparable;\n }", "public static void maxheap(int arr[], int i){\n int left = 2*i ;\n int right = 2*i + 1;\n int max = i;\n if (left <= N && arr[left] > arr[i])\n max = left;\n if (right <= N && arr[right] > arr[max])\n max = right;\n if (max != i){\n swap(arr, i, max);\n maxheap(arr, max);\n }\n }", "private boolean buildHeap(int numPerRun){ \n\t\tTuple temp;\n\t\tint i = 0;\n\t\twhile(i < numPerRun && (temp = child.getNextTuple()) != null) {\n\t\t\tinternal.offer(temp);\n\t\t\ti++;\n\t\t}\n//\t\tSystem.out.println(\"internal heap has: \" + i + \"tuples\");\n\t\tif(i != numPerRun || i == 0) { // i == 0, heap is empty!\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "boolean hasMaxMP();", "boolean hasMaxMP();", "boolean hasMaxMP();", "boolean hasMaxMP();", "boolean hasMaxMP();", "boolean hasMaxMP();", "@Test\n\tpublic void testBiggerMaxSmaller(){\n\t int min=3, mid=5, max=10, bigger=Integer.MAX_VALUE, smaller=Integer.MIN_VALUE;\n\t assertEquals( bigger, MaxDiTre.max(bigger, max, smaller) );\n\t}", "boolean hasMaxCount();", "boolean hasMaxHP();", "boolean hasMaxHP();", "boolean hasMaxHP();", "boolean hasMaxHP();", "boolean hasMaxHP();", "boolean hasMaxHP();", "boolean hasQualityMax();", "public static boolean isHeap(Node root) {\r\n\t\t// create an empty queue and enqueue root node\r\n\t\tQueue<Node> queue = new ArrayDeque<>();\r\n\t\tqueue.add(root);\r\n\r\n\t\t// take a boolean flag which becomes true when an empty left or right\r\n\t\t// child is seen for a node\r\n\t\tboolean nonEmptyChildSeen = false;\r\n\r\n\t\t// run till queue is not empty\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\t// process front node in the queue\r\n\t\t\tNode curr = queue.poll();\r\n\r\n\t\t\t// left child is non-empty\r\n\t\t\tif (curr.left != null) {\r\n\t\t\t\t// if either heap-property is violated\r\n\t\t\t\tif (nonEmptyChildSeen || curr.left.data <= curr.data) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// enqueue left child\r\n\t\t\t\tqueue.add(curr.left);\r\n\t\t\t}\r\n\t\t\t// left child is empty\r\n\t\t\telse {\r\n\t\t\t\tnonEmptyChildSeen = true;\r\n\t\t\t}\r\n\r\n\t\t\t// right child is non-empty\r\n\t\t\tif (curr.right != null) {\r\n\t\t\t\t// if either heap-property is violated\r\n\t\t\t\tif (nonEmptyChildSeen || curr.right.data <= curr.data) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// enqueue left child\r\n\t\t\t\tqueue.add(curr.right);\r\n\t\t\t}\r\n\t\t\t// right child is empty\r\n\t\t\telse {\r\n\t\t\t\tnonEmptyChildSeen = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// we reach here only when the given binary tree is a min-heap\r\n\t\treturn true;\r\n\t}", "static int extractHeapMax(int[] ar){\r\n\t\tif(heapSize<1) return -1;\r\n\t\tint max = ar[1];\r\n\t\tswap(ar,1,heapSize);\r\n\t\theapSize-=1;\r\n\t\tmax_heapify(ar, 1);\r\n\t\treturn max;\r\n\t}", "public int heapExtractMax(){\n\t\tint max = a[0];\t\n\t\ta[0] = a[n-1];\n\t\ta[n-1] = Integer.MIN_VALUE;\n\t\tn--;\n\t\tmaxHeapfy(0);\t\t\n\t\treturn max;\n\t}", "public AbstractBoolean greater(Interval other){\n\t\ttry {\n\t\t\t// If this.max > this.min then True\n\t\t\tif ((!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min < other.max then False\n\t\t\tif ((!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "public boolean isMaxState();", "private static void buildMaxHeapify(int arr[]) {\n // Build heap (Re-Arrange the @array).\n System.out.print(\"=> Building Max-Heapified array.........\");\n for (int i = arr.length / 2 - 1; i >= 0; i--) {\n maxHeapify(arr, arr.length, i);\n }\n System.out.println(\"Success !!!\");\n }", "@Test\n\tpublic void HeapExtractMaximumtestDifferentPriorities() {\n\t\t Job jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",50,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",80,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",1,5);\n\t\t \n\t\t Job actual=PQHeap.HeapExtractMaximum(jarray);\n\t\t //System.out.println(\"\"+actual);\n\t\t//assertTrue((new Job(\"job1\",20,1)).equals(actual));\n\t\t//assertEquals(new Job(\"job1\",20,1), actual);\n\t\t assertNotEquals(new Job(\"job3\",20,1), actual);\n\t\t//fail(\"Not yet implemented\");\n\t}", "@Test\n public void test() {\n List<Integer> list = Arrays.asList(48, 12, 24, 7, 8, -5, 24, 391, 24, 56, 2, 6, 8, 41);\n Heap minHeap = new Heap(Heap.MIN_HEAP, list);\n List<Integer> expected = Arrays.asList(-5, 2, 6, 7, 8, 8, 24, 391, 24, 56, 12, 24, 48, 41);\n Assert.assertArrayEquals(expected.toArray(), minHeap.heap.toArray());\n Heap maxHeap = new Heap(Heap.MAX_HEAP, list);\n Assert.assertArrayEquals(expected.toArray(), maxHeap.heap.toArray());\n }", "public Heap() {\n this.arr = new ArrayList<>();\n this.isMax = false;\n }", "void buildMaxHeap(int[] array, int heapSize) {\n for (int i = heapSize / 2 - 1; i >= 0; i--) heapify(array, i, heapSize);\n }", "public static void main(String[] args) {\r\n\r\n\t\tNode root = new Node(2);\r\n\t\troot.left = new Node(3);\r\n\t\troot.right = new Node(4);\r\n\t\troot.left.left = new Node(5);\r\n\t\troot.left.right = new Node(6);\r\n\t\troot.right.left = new Node(8);\r\n\t\troot.right.right = new Node(10);\r\n\r\n\t\tif (isHeap(root)) {\r\n\t\t\tSystem.out.print(\"Given Binary Tree is a min-Heap\");\r\n\t\t} else {\r\n\t\t\tSystem.out.print(\"Given Binary Tree is not a min-Heap\");\r\n\t\t}\r\n\r\n\t\tSystem.out.println(isMinHeap(root));\r\n\t}", "public static void maxheap(Integer arr[], int i)\n {\n int left = 2*i ;\n int right = 2*i + 1;\n int max = i;\n if (left <= N && arr[left] > arr[i])\n max = left;\n if (right <= N && arr[right] > arr[max])\n max = right;\n\n if (max != i)\n {\n swap(arr, i, max);\n maxheap(arr, max);\n }\n }", "public boolean nearMaxMin() {\n double water = this.levelMessage.getDoubleParameter();\n double no = (this.configuration.getMaximalLimitLevel()\n - this.configuration.getMaximalNormalLevel()) / 4;\n if (water > this.configuration.getMaximalLimitLevel()\n || water > this.configuration.getMaximalLimitLevel() - no) {\n return true;\n } else if (water < this.configuration.getMinimalLimitLevel()\n || water < this.configuration.getMinimalLimitLevel() + no) {\n\n return true;\n }\n return false;\n }", "public MaxHeap() {\n this(64);\n }", "public void balanceHeaps(){\n \n //If max heap size is greater than min heap then pop the first element and put int min heap\n if(maxHeap.size() > minHeap.size())\n minHeap.add(maxHeap.pollFirst());\n\n }", "static void max_heapify(int[] ar , int i ) {\r\n\t\tint left = left(i);\r\n\t\tint right = right(i);\r\n\t\tint largest = i;\r\n\t\tif(left <= heapSize && ar[left] > ar[i]) largest = left;\r\n\t\tif(right <= heapSize && ar[right] > ar[largest]) largest = right;\r\n\t\tif(largest !=i) {\r\n\t\t\tswap (ar,i,largest);\r\n\t\t\tmax_heapify(ar, largest);\r\n\t\t}\r\n\t}", "boolean hasMaxSize();", "private void heapify() {\n\t\tint currIndex = 0;\n\t\twhile (currIndex < heapSize) {\n\t\t\tT val = lstEle.get(currIndex);\n\t\t\tint leftSubtreeIndex = getLeftSubtree(currIndex);\n\t\t\tint rightSubtreeIndex = getRightSubtree(currIndex);\n\t\t\tT leftChildVal = leftSubtreeIndex < heapSize ? lstEle.get(leftSubtreeIndex) : null;\n\t\t\tT rightChildVal = rightSubtreeIndex < heapSize ? lstEle.get(rightSubtreeIndex) : null;\n\t\t\t\n\t\t\tT minVal = null;\n\t\t\tint minValIndex = -1;\n\t\t\tif(leftChildVal != null && rightChildVal != null){\n\t\t\t\tint compVal = leftChildVal.compareTo(rightChildVal); \n\t\t\t\tif(compVal < 0){\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t}else {\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(leftChildVal != null && leftChildVal.compareTo(val) < 0){\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t}else if (rightChildVal != null && rightChildVal.compareTo(val) < 0 ){\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\tMin Val : \" +minVal +\" --> \" +minValIndex);\n\t\t\t\n\t\t\tlstEle.set(currIndex, minVal);\n\t\t\tcurrIndex = minValIndex;\n\t\t\tlstEle.set(minValIndex, val);\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\nint x=100;\r\nint y = 60;\r\nint z= 20;\r\nint w= 50;\r\nif (x>y && x>z&& x>w) {\r\n\tSystem.out.println(\"x is the largest\");\r\n}\r\nelse if (y>z && y>w) {\r\n\tSystem.out.println(\"y is the largest\");\r\n}\r\nelse if (z>w) {\r\n\tSystem.out.println(\"z is the largest\");\r\n}\r\nelse\r\n{\r\nSystem.out.println(\"w is the largest\");\t\r\n}\r\n}", "@Test\n\tpublic void HeapMaximumtest() {\n\t\tJob jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",20,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",20,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",20,5);\n\t\t \n\t\tString actual=PQHeap.HeapMaximum(jarray);\n\t\t \n\t\tassertEquals(jarray[0].job, actual);\n\t\t//fail(\"Not yet implemented\");\n\t}", "public static void main(String[] args) {\n\r\n\t\tint [][] arr = new int[][] {\r\n\t\t\t{8,9,10,12},\r\n\t\t\t{2,5,9,12},\r\n\t\t\t{3,6,10,11},\r\n\t\t\t{1,4,7,8}\r\n\t\t};\t\t\r\n\t\t\r\n\t\tPriorityQueue<HeapNode> heap = new PriorityQueue<>();\r\n\t\tfor(int i=0;i<arr.length;i++)\r\n\t\t{\r\n\t\t\theap.offer(new HeapNode(arr[i][0], i, 0));\r\n\t\t}\r\n\t\tint count=0;\r\n\t\twhile(count<16)\r\n\t\t{\r\n\t\t\tHeapNode min = heap.poll();\r\n\t\t\tSystem.out.println(min.value);\r\n\t\t\tcount++;\r\n\t\t\tint value=0;\r\n\t\t\tint nextIndex=min.index+1;\r\n\t\t\tif(nextIndex < arr[min.k].length)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tvalue=arr[min.k][nextIndex];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tvalue=Integer.MAX_VALUE;\r\n\t\t\t}\r\n\t\t\theap.offer(new HeapNode(value, min.k, nextIndex));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Test\n\tpublic void BuildMaxHeaptest1() {\n\t\t Job jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",50,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",80,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",1,5);\n\t\t int i;\n\t\t //= (int)Math.floor(jarray.length);\n\t\t \n\t\t\n\t\t PQHeap.BuildMaxHeap(jarray);\n\t\t\n\t\t for( i = (int)Math.floor(jarray.length); i >0; i-- )\n\t\t \tPQHeap.MaxHeapify(jarray, i);\n\t\n\t\tassertNotEquals(-1, i);\n\t}", "private boolean arrayBounds (int index, int max) {\n\t\treturn (index >= 0 && index < max );\n\t}", "public void buildMaxHeap(Comparable[] array) {\n\t\tint n = array.length; //number of elements need to build\n\n\t\tfor (int pos = n/2; pos >= 1; pos--) { //start from position n/2\n\t\t\tint i = pos;\n\t\t\tComparable tmp = array[i - 1];\n\t\t\tboolean check = false;\n\n\t\t\twhile (!check && (2 * i <= n) ) {\n\t\t\t\tint j = 2 * i;\n\t\t\t\tif (j < n) {\n\t\t\t\t\t//choose the larger element\n\t\t\t\t\tif (array[j - 1].compareTo(array[j]) < 0 ) {\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( tmp.compareTo(array[j - 1]) > 0 ) {\n\t\t\t\t\tcheck = true;\n\t\t\t\t} else {\n\t\t\t\t\tarray[i - 1] = array[j - 1];\n\t\t\t\t\ti = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tarray[i - 1] = tmp;\n\t\t}\n\t}", "public static void main(String[] args) {\n\n int[] nums= {200,4,3,5,70,6,8,90};\n System.out.println( isMax( nums ));\n System.out.println(isMaxNoSort(nums));\n }", "@Test\n\tpublic void HeapMaximumtest2() {\n\t\tJob jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",50,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",80,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",1,5);\n\t\t \n\t\tString actual=PQHeap.HeapMaximum(jarray);\n\t\t \n\t\tassertEquals(jarray[0].job, actual);\n\t\t//fail(\"Not yet implemented\");\n\t}", "public void addNum(int num) {\n if (maxHeap.size() == minHeap.size()) {\n if (minHeap.size() > 0 && num > minHeap.peek()) {\n int minHead = minHeap.poll();\n maxHeap.add(minHead);\n minHeap.add(num);\n } else\n maxHeap.add(num);\n } else {\n if (num < maxHeap.peek()) {\n int maxHead = maxHeap.poll();\n maxHeap.add(num);\n minHeap.add(maxHead);\n } else\n minHeap.add(num);\n }\n }", "public static void maxheap(int arr[], int i) {\n int left = 2 * i;\n int right = 2 * i + 1;\n int max = i;\n if (left <= N && arr[left] > arr[i])\n max = left;\n if (right <= N && arr[right] > arr[max])\n max = right;\n\n if (max != i) {\n swap(arr, i, max);\n maxheap(arr, max);\n }\n }", "protected final void setMax() {\n\n\tint prevmax = this.max;\n\n\tint i1 = this.high;\n\tint i2 = left.max;\n\tint i3 = right.max;\n\n\tif ((i1 >= i2) && (i1 >= i3)) {\n\t this.max = i1;\n\t} else if ((i2 >= i1) && (i2 >= i3)) {\n\t this.max = i2;\n\t} else {\n\t this.max = i3;\n\t}\n\t\n\tif ((p != IntervalNode.nullIntervalNode) &&\n\t (prevmax != this.max)) {\n \t p.setMax();\n\t}\n }", "private boolean hasTwoChildren(int i) {\n\t\tint left=left(i);\n\t\tint right=right(i);\n\t\tint sizee=heap.size();\n\t\tif(left<sizee-1 && right<sizee-1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "int max(int a, int b) \n { \n return (a > b) ? a : b; \n }", "private int max(int a, int b) {\n\t\treturn a>b?a:b;\n\t}", "@Test\n\tpublic void HeapMaximumtest1() {\n\t\tJob jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",10,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",2,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",1,5);\n\t\t \n\t\tString actual=PQHeap.HeapMaximum(jarray);\n\t\t \n\t\tassertEquals(jarray[0].job, actual);\n\t\t//fail(\"Not yet implemented\");\n\t}", "public boolean getMaximized() {\n checkWidget();\n return maximized;\n }", "private static int max(int lhs, int rhs) {\r\n return lhs > rhs ? lhs : rhs;\r\n }", "private boolean isBST(Node x, Key min, Key max) {\r\n if (x == null) return true;\r\n if (min != null && x.key.compareTo(min) <= 0) return false;\r\n if (max != null && x.key.compareTo(max) >= 0) return false;\r\n return isBST(x.left, min, x.key) && isBST(x.right, x.key, max);\r\n }", "public void MaxHeapify(int i)\n\t{\n\t int l = left(i);\n\t int r = right(i);\n\t int largest = i;\n\t if (l < size && Heap[l] > Heap[i])\n\t largest = l;\n\t if (r < size && Heap[r] > Heap[largest])\n\t largest = r;\n\t if (largest != i)\n\t {\n\t swap(i, largest);\n\t MaxHeapify(largest);\n\t }\n\t}", "public boolean best_check(BSTNode root,int min, int max)\n\t{\n\t\tif (root==null)\n\t\t\treturn true;\n\t\tboolean check1=(root.getData()>min&&root.getData()<max);\n\t\tboolean check2=best_check(root.getLeft(),min,root.getData());\n\t\tboolean check3=best_check(root.getRight(),root.getData(),max);\n\t\treturn (check1&&check2&&check3);\n\t}", "static int[] buildMaxHeap(int [] arr) {\n\t\tint n = arr.length;\n\t\tint startIdx = (n / 2) - 1;\n\t\tfor(int i = startIdx; i >= 0; i--)\n\t\t\theapify(arr, n, i);\n\t\treturn arr;\n\t}", "@Test\n\tpublic void HeapExtractMaximumtestNoPriorities() {\n\t\t Job jarray[]=new Job[1];\n\t\t \n\t\t Job actual=PQHeap.HeapExtractMaximum(jarray);\n\t\t //System.out.println(\"\"+actual);\n\t\t//assertTrue((new Job(\"job1\",20,1)).equals(actual));\n\t\t//assertEquals(new Job(\"job1\",20,1), actual);\n\t\t assertNotEquals(new Job(\"job3\",20,1), actual);\n\t\t//fail(\"Not yet implemented\");\n\t}", "public boolean isMaximumBetter(){\n return false;\n }", "public final boolean greaterThan() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public Heap12( int capacity, boolean isMaxHeap)\n {\n arrayList = new ArrayList<E>(capacity);\n size = 0;\n isMax = isMaxHeap;\n cap = capacity;\n }", "public int pollMax() {\n if (isEmpty()) throw new IllegalStateException(\"heap is empty\");\n int maxValue = a[0];\n a[0] = a[size - 1];\n size--;\n maxHeapify(0);\n return maxValue;\n }", "public final boolean searchMaximum(){\r\n\t\tif (!initialized()) minimum=false;\r\n\t\treturn !minimum;\r\n\t}", "protected abstract boolean nbrToursMax();", "public double findMedian() {\n \treturn maxHeap.size() > minHeap.size() ? maxHeap.peek() : (maxHeap.peek() - minHeap.peek()) / 2.0; \n }", "public void addNumber(int num){\n\t\t//add the new element to the max heap, if it is smaller than it\n\t\tif(maxHeap.isEmpty() || num < maxHeap.getBestElement()){\n\t\t\tmaxHeap.insertNewElement(num );\n\t\t}\n\t\telse{\n\t\t\tminHeap.insertNewElement(num);\n\t\t}\n\t\t\n\t\t//balance the two heaps\n\t\tif(maxHeap.getHeapSize() - minHeap.getHeapSize() > 1){\n\t\t\tint bestMaxHeap = maxHeap.deleteBest();\n\t\t\tminHeap.insertNewElement(bestMaxHeap);\n\t\t}\n\t\telse if (minHeap.getHeapSize() - maxHeap.getHeapSize() > 1){\n\t\t\tint bestMinHeap = minHeap.deleteBest();\n\t\t\tmaxHeap.insertNewElement(bestMinHeap);\n\t\t}\n\t}", "int max(int a, int b)\n\t{\n\t\treturn(a>b)?a:b;\n\t}", "public MedianFromStream() {\n // if odd max-heap will have 1 more element than min-heap\n maxHeap = new PriorityQueue<>((a, b) -> b - a);\n minHeap = new PriorityQueue<>();\n }", "public static void heapify() {\n //배열을 heap 자료형으로 만든다.\n // 1d 2d 2d 3d 3d 3d 3d 4d\n// int[] numbers = {9, 12, 1, 3, 6, 2, 8, 4};\n // 1depth의 자식노드 numbers[2i], numbers[2i+1]\n int[] numbers = {4, 1, 3, 2, 16, 9, 10, 14, 8, 7};\n int i = 1;\n while (true) {\n int target = numbers[i-1];\n int left = numbers[2*i-1];\n\n if (2*i == numbers.length) {\n if (left > target){\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n print(numbers);\n break;\n }\n int right =numbers[2*i];\n\n if (left > right) {\n if(left > target) {\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n }else if (right > left) {\n if (right > target) {\n numbers[i-1] = right;\n numbers[2*i] = target;\n }\n }\n i++;\n\n print(numbers);\n }\n\n }", "private void heapify(int i) {\n if (!hasLeft(i))\n return;\n int max = i;\n if (this.heap.get(max).compareTo(this.heap.get(leftIndex(i))) < 0)\n max = leftIndex(i);\n if (hasRight(i) && this.heap.get(max)\n .compareTo(this.heap.get(rightIndex(i))) < 0)\n max = rightIndex(i);\n if (max == i)\n return; // ho finito\n // scambio i con max e richiamo la funzione ricorsivamente sull'indice\n // del nodo figlio uguale a max\n E app = this.heap.get(i);\n this.heap.set(i, this.heap.get(max));\n this.heap.set(max, app);\n heapify(max);\n }", "private boolean isBST(Node x, K min, K max) {\n if (x == null) return true;\n if (min != null && x.key.compareTo(min) <= 0) return false;\n if (max != null && x.key.compareTo(max) >= 0) return false;\n return isBST(x.left, min, x.key) && isBST(x.right, x.key, max);\n }", "@Test\n\tpublic void HeapExtractMaximumtestSamePriorities() {\n\t\t Job jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",20,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",20,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",20,5);\n\t\t \n\t\t Job actual=PQHeap.HeapExtractMaximum(jarray);\n\t\t //System.out.println(\"\"+actual);\n\t\t//assertTrue((new Job(\"job1\",20,1)).equals(actual));\n\t\t//assertEquals(new Job(\"job1\",20,1), actual);\n\t\t assertNotEquals(new Job(\"job3\",20,1), actual);\n\t\t//fail(\"Not yet implemented\");\n\t}", "private boolean greater(int i, int j) {\r\n\r\n return compare(pq[i], pq[j]) > 0;\r\n\r\n }", "@Test\n\tpublic void BuildMaxHeaptest() {\n\t\t Job jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",50,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",80,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",1,5);\n\t\t int i;\n\t\t //= (int)Math.floor(jarray.length);\n\t\t \n\t\n\t\t for( i = (int)Math.floor(jarray.length); i >0; i-- )\n\t\t \tPQHeap.MaxHeapify(jarray, i);\n\t\n\t\tassertNotEquals(-1, i);\n\t}", "public boolean overMax() {\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMaximalLimitLevel()) {\n return true;\n }\n return false;\n }", "public boolean getFull(){\n if(current==max)\n return false;\n return true;\n }" ]
[ "0.69718903", "0.6598609", "0.6522736", "0.64383113", "0.6374067", "0.6353035", "0.62961227", "0.62398964", "0.6238846", "0.6139538", "0.6117683", "0.6015477", "0.6006109", "0.60004306", "0.59689105", "0.5962973", "0.59278715", "0.59127444", "0.5880587", "0.58731246", "0.5787488", "0.57780236", "0.577509", "0.5771547", "0.5768872", "0.57626075", "0.57499796", "0.57435304", "0.574147", "0.574147", "0.574147", "0.574147", "0.574147", "0.574147", "0.57358193", "0.5732653", "0.57271653", "0.57271653", "0.57271653", "0.57271653", "0.57271653", "0.57271653", "0.57271", "0.57157964", "0.5704735", "0.5651826", "0.5640619", "0.56253487", "0.5624363", "0.5614476", "0.5612328", "0.5609321", "0.56077343", "0.5606763", "0.56053704", "0.5603095", "0.55968964", "0.5592041", "0.55911165", "0.5590122", "0.5585113", "0.55735606", "0.55707425", "0.55617994", "0.556144", "0.5546657", "0.5544196", "0.5539894", "0.5515371", "0.55070084", "0.55058455", "0.55056316", "0.5493599", "0.5490247", "0.5482629", "0.5473737", "0.54636586", "0.5458972", "0.54529387", "0.545159", "0.54505605", "0.543845", "0.54351294", "0.54331833", "0.54329336", "0.5428126", "0.5421652", "0.5420146", "0.5417037", "0.54083997", "0.5391511", "0.53910685", "0.53872615", "0.53823125", "0.5380343", "0.5373755", "0.5372472", "0.5372395", "0.53710604", "0.5370585", "0.53705245" ]
0.0
-1
Getter for the name field.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "public String getName() { return name.get(); }", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "public String getName() {\n return name.get();\n }", "PropertyName getName();", "public String get_name() {\r\n return name;\r\n }", "public java.lang.String getName() {\r\n return this._name;\r\n }", "public @NotNull String getName() {\n return m_strName;\n }", "public String getName() {\n return (String) getValue(NAME);\n }", "public String getNameField() {\n if (nameField == null || Constants.EMPTY_STRING.equals(nameField)) {\n final JSONArray dataFields = rawData.optJSONArray(Constants.FIELDS_FIELD);\n if (dataFields != null) {\n for (int i = 0; i < dataFields.length(); i++) {\n final JSONObject field = dataFields.optJSONObject(i);\n if (field != null) {\n boolean nameFieldPresent = field.optBoolean(Constants.NAMEFIELD_FIELD);\n if (nameFieldPresent) {\n nameField = field.optString(Constants.NAME_FIELD);\n }\n }\n }\n }\n }\n return nameField;\n }", "@Nonnull\n @Nonempty\n public String getName ()\n {\n return m_sName;\n }", "public String getName() {\r\n assert name != null;\r\n return name;\r\n }", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n return (String) mProperties.get(FIELD_NAME);\n }", "protected String getName() {\n\t\treturn name;\n\t}", "protected String getName() {\n\t\treturn name;\n\t}", "public String getName() { //declare public type, return type: String\r\n\t\treturn mName; //return mName value\r\n\t}", "@NotNull\n public String getName() {\n return name;\n }", "protected String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "public java.lang.String getName() {\r\n return name;\r\n }", "public java.lang.String getName() {\r\n return name;\r\n }", "public java.lang.String getName() {\r\n return name;\r\n }", "public java.lang.String getName() {\r\n return name;\r\n }", "public java.lang.String getName() {\r\n return name;\r\n }", "public java.lang.String getName() {\r\n return name;\r\n }", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "@Override\n\tpublic String get_name() {\n\t\treturn name;\n\t}", "public java.lang.String getName() {\n return name;\n }", "@Basic @Raw\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "public String getName() {\n if(name == null)\n return \"\"; \n return name;\n }", "@Basic @Immutable\n\tpublic String getName() {\n\t\treturn name;\n\t}", "private String getName() {\n\t\treturn name;\n\t}", "public String getName()\r\n {\r\n return (m_name);\r\n }", "public java.lang.String getName();", "public java.lang.CharSequence getName() {\n return name;\n }", "public java.lang.String getName() {\n return name;\n }", "public java.lang.String getName() {\n return this.name;\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public String getName() {\r\n \treturn name;\r\n }", "public String getName() {\r\n \t\t\treturn name;\r\n \t\t}", "public String getName() {\r\n return _name;\r\n }", "public String getName() {\n return (this.name);\n }", "public String getName() {\r\n return _name;\r\n }", "public final String getName() {\n\treturn name.getName();\n }", "public String getName()\r\n {\r\n return m_name;\r\n }", "@JsonProperty(PROP_NAME)\n @Nonnull\n public String getName() {\n return _name;\n }", "public String getname() {\n return name;\n }", "public java.lang.CharSequence getName() {\n return name;\n }" ]
[ "0.8404591", "0.8180093", "0.8139232", "0.81318563", "0.8063437", "0.80438507", "0.80030763", "0.80014485", "0.8000715", "0.79985684", "0.79748446", "0.7973473", "0.7969857", "0.7969857", "0.7969857", "0.7967183", "0.7958005", "0.7958005", "0.79561895", "0.7943691", "0.7938745", "0.7929937", "0.7929937", "0.7929937", "0.7929937", "0.7929937", "0.7929937", "0.79168373", "0.7912189", "0.7910007", "0.790289", "0.7896538", "0.78954333", "0.7892543", "0.78923273", "0.7876166", "0.78715116", "0.78712", "0.7869266", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.786533", "0.7858319", "0.7854019", "0.78486043", "0.784626", "0.7845716", "0.78456014", "0.78427625", "0.7841385", "0.78374374", "0.7833087" ]
0.0
-1
TODO test models with more than one end (should work but if it doesn't is going to be hard to fix) and more than one start(wont probably work but it's easy to fix)
@Test void getMandatoryDeepSuccessors () { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int findEndIndex(){\n\t\tint end=models.size()-1;\n\t\tfor(int i=0;i<modelNames.size();i++){\n\t\t\tif(Integer.parseInt(modelNames.get(i).substring(0,8))>this.date_end)\n\t\t\t{end=i-1;break;}\n\t\t}\n\t\treturn end;\n\t}", "public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified = true;\n }", "public String findFromToEnd(int end) {\n StringBuilder sb = new StringBuilder() ;\n ArrayList paths = new ArrayList() ;\n while (end != start) {\n\n paths.add(\"From \" + pred[end] + \" go to \" + end + \"\\n\") ;\n end = pred[end] ;\n\n }\n int count = paths.size() ;\n while (count > 0) {\n sb.append(paths.get(count-1)) ;\n count-- ;\n }\n return sb.toString() ;\n\n }", "MinmaxEntity getEnd();", "public void generateImpatedRecords ()\r\n\t{\n\t\tRequest req = table.createRequest();\r\n\t\treq.setXPathFilter(path_to_id.format()+\"='\" + id +\"'\");\r\n\t\tRequestResult res = req.execute();\r\n\t\tshow(\"got results \" + res.getSize() );\r\n\t\tAdaptation ada = res.nextAdaptation();\r\n\t\tshow (\"STARTDATE: \" + startdate + \" ENDDATE: \" + enddate);\r\n\t\tshow(\"________________________________________________\");\r\n\t\twhile (ada!=null)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tDate adaStartDate = ada.getDate(path_to_start);\r\n\t\t\tDate adaEndDate = ada.getDate(path_to_end);\r\n\t\t\t//check im not me!\r\n\t\t\tif (!(ada.getOccurrencePrimaryKey().format().equals(newRecord.getOccurrencePrimaryKey().format())))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t// the record has been updated but date has not changed\r\n\t\t\t\tif (enddate!=null&&adaEndDate!=null&&(adaStartDate.equals(startdate)&&adaEndDate.equals(enddate)))\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tshow(\"The Record needs Spliting\");\r\n\t\t\t\t\trecordToSplit = ada;\r\n\t\t\t\t\tnewEndDate = addDays(startdate,-1);\r\n\t\t\t\t\tbeforeRecord = ada;\r\n\t\t\t\t\tnewStartDate = addDays(enddate,+1);\r\n\t\t\t\t\tafterRecord = ada;\r\n\t\t\t\t}\r\n\t\t\t\telse if (enddate!=null&&adaEndDate!=null&&(adaStartDate.before(startdate)&&adaEndDate.after(enddate)))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tshow(\"The Record needs Spliting\");\r\n\t\t\t\t\t\t\trecordToSplit = ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays(startdate,-1);\r\n\t\t\t\t\t\t\tbeforeRecord = ada;\r\n\t\t\t\t\t\t\tnewStartDate = addDays(enddate,+1);\r\n\t\t\t\t\t\t\tafterRecord = ada;\r\n\t\t\t\t\t\t}\r\n\t\t\t\telse if (adaStartDate == null && adaEndDate == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tshow (\"set end date on existing record\");\r\n\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t}\r\n\t\t\t\t\t\telse if (adaStartDate.before(startdate)&& adaEndDate==null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"set end date on existing record\");\r\n\t\t\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\telse if (adaStartDate.before(startdate) && adaEndDate.after(startdate))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"need to move existing end date\");\r\n\t\t\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (enddate!=null&&enddate==null&&adaStartDate.after(enddate))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"need to end date new record\");\r\n\t\t\t\t\t\t\tbeforeRecord = newRecord;\r\n\t\t\t\t\t\t\tnewEndDate = addDays(adaStartDate, -1);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\tada = res.nextAdaptation();\r\n\t}\r\n\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public M csseStartEnd(Object end){this.put(\"csseStartEnd\", end);return this;}", "public java.util.List<Todo> findAll(int start, int end);", "private static String newModel() {\n\n End end = new End(0,0);\n Start start = new Start(0,0);\n End end1 = new End(0,0);\n Start start1 = new Start(0,0);\n End end2 = new End(0,0);\n Start start2 = new Start(0,0);\n Start start3 = new Start(0,0);\n End end3 = new End(0,0);\n Start start4 = new Start(0,0);\n End end4 = new End(0,0);\n\n Start start5 = new Start(2,2);\n End end5 = new End(2,7);\n Start start6 = new Start(2,8);\n End end6 = new End(6,8);\n Start start7 = new Start(4,1);\n End end7 = new End(4,4);\n Start start8 = new Start(7,3);\n End end8 = new End(7,5);\n Start start9 = new Start(9,6);\n End end9 = new End(9,8);\n\n\n\n AircraftCarrier aircraftCarrier = new AircraftCarrier(\"AircraftCarrier\",5,start,end);\n Battleship battleship = new Battleship(\"Battleship\",4,start1,end1);\n Cruiser cruiser = new Cruiser(\"Cruiser\",3,start2,end2);\n Destroyer destroyer = new Destroyer(\"Destroyer\",2,start3,end3);\n Submarine submarine = new Submarine(\"Submarine\",2,start4,end4);\n\n ComputerAircraftCarrier computer_aircraftCarrier = new ComputerAircraftCarrier(\"Computer_AircraftCarrier\",5,start5,end5);\n ComputerBattleship computer_battleship = new ComputerBattleship(\"Computer_Battleship\",4,start6,end6);\n ComputerCruiser computer_cruiser = new ComputerCruiser(\"Computer_Cruiser\",3,start7,end7);\n ComputerDestroyer computer_destroyer = new ComputerDestroyer(\"Computer_Destroyer\",2,start8,end8);\n ComputerSubmarine computer_submarine = new ComputerSubmarine(\"Computer_Submarine\",2,start9,end9);\n ArrayList<Hits>playerHits = new ArrayList<Hits>();\n ArrayList<Misses>playerMisses = new ArrayList<Misses>();\n ArrayList<Misses>computerMisses = new ArrayList<Misses>();\n ArrayList<Hits>computerHits = new ArrayList<Hits>();\n\n BattleshipModel battleshipModel = new BattleshipModel(aircraftCarrier,battleship,cruiser,destroyer,submarine,\n computer_aircraftCarrier,computer_battleship,computer_cruiser,computer_destroyer,computer_submarine,\n playerHits,playerMisses,computerHits,computerMisses);\n\n Gson gson = new Gson();\n String battleshipModelWithJson = gson.toJson(battleshipModel);\n return battleshipModelWithJson;\n }", "MinmaxEntity getStart();", "String getEndRange();", "public boolean isAtEnd() {\n return models.indexOf(activeModel) == (models.size()-1);\n }", "Collection<AssociationEnd> getSpecifiedEnds();", "public void setEnd(int end) {\r\n this.end = end;\r\n }", "private int findBeginIndex(){\n\t\tint begin=Integer.MAX_VALUE;\n\t\tfor(int i=0;i<modelNames.size();i++){\n\t\t\tif(Integer.parseInt(modelNames.get(i).substring(0,8))>=this.date_begin)\n\t\t\t{begin=i;break;}\n\t\t}\n\t\treturn begin;\n\t}", "@objid (\"000fb1bc-c4bf-1fd8-97fe-001ec947cd2a\")\npublic interface LinkEnd extends UmlModelElement {\n /**\n * The metaclass simple name.\n */\n @objid (\"e6dd0ee9-d2ae-459e-911e-137b205a96a9\")\n public static final String MNAME = \"LinkEnd\";\n\n /**\n * The metaclass qualified name.\n */\n @objid (\"62f5bc44-c159-4a21-873f-c9ba90f5653c\")\n public static final String MQNAME = \"Standard.LinkEnd\";\n\n /**\n * Get the 'graphical owner' related to this end.\n * The owner is the current source or the opposite end's target according to the navigability.\n */\n @objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();\n\n @objid (\"006058b0-2963-1080-943a-001ec947cd2a\")\n void setTarget(final Instance value, final boolean fixModel);\n\n @objid (\"006059f0-2963-1080-943a-001ec947cd2a\")\n void setSource(final Instance value, final boolean fixModel);\n\n /**\n * Sets both ends sources and targets according to the given navigability.\n * <ul>\n * <li>THISSIDE: only current source and target must be filled.</li>\n * <li>OHERSIDE: only opposite source and target must be filled.</li>\n * <li>BOTHSIDES: current source must be equals to opposite target as well as current target and opposite source.</li>\n * <li>NONE: both sources must be filled, but no target</li>\n * </ul>\n * @param value whether or not to synchronize the other end and both source/target values. This end will be made navigable whatever the current navigability is.\n */\n @objid (\"50d3075c-1fcb-4a03-a648-16729171986f\")\n void setNavigable(boolean value);\n\n @objid (\"6d12e031-ad22-449a-9171-6a88d4158b48\")\n boolean isNavigable();\n\n /**\n * Getter for attribute 'LinkEnd.IsOrdered'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is ordered.</i>\n */\n @objid (\"fcf73d01-d406-41e9-9490-067237966153\")\n boolean isIsOrdered();\n\n /**\n * Setter for attribute 'LinkEnd.IsOrdered'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is ordered.</i>\n */\n @objid (\"85e0d2fc-c5f1-47a6-a7a9-d1d92c110978\")\n void setIsOrdered(boolean value);\n\n /**\n * Getter for attribute 'LinkEnd.IsUnique'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is unique.</i>\n */\n @objid (\"ef9777b4-ed2a-4341-bb22-67675cddb70a\")\n boolean isIsUnique();\n\n /**\n * Setter for attribute 'LinkEnd.IsUnique'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is unique.</i>\n */\n @objid (\"d7a49a3a-2f15-4f2c-91a0-847c1e869a0c\")\n void setIsUnique(boolean value);\n\n /**\n * Getter for attribute 'LinkEnd.MultiplicityMax'\n * \n * Metamodel description:\n * <i>Maximum value of the Link's multiplicity.</i>\n */\n @objid (\"7bba25c1-4310-45fa-b2ce-d6cdc992be70\")\n String getMultiplicityMax();\n\n /**\n * Setter for attribute 'LinkEnd.MultiplicityMax'\n * \n * Metamodel description:\n * <i>Maximum value of the Link's multiplicity.</i>\n */\n @objid (\"0ef18ad8-3371-4bb9-933d-7b4e156bea34\")\n void setMultiplicityMax(String value);\n\n /**\n * Getter for attribute 'LinkEnd.MultiplicityMin'\n * \n * Metamodel description:\n * <i>Minimum value of the Link's multiplicity. When placed on a target end, the multiplicity specifies the number of target instances that may be associated with a single source instance across the given Link.</i>\n */\n @objid (\"258318a3-c0bd-4ddc-971b-1e72b90fcbb1\")\n String getMultiplicityMin();\n\n /**\n * Setter for attribute 'LinkEnd.MultiplicityMin'\n * \n * Metamodel description:\n * <i>Minimum value of the Link's multiplicity. When placed on a target end, the multiplicity specifies the number of target instances that may be associated with a single source instance across the given Link.</i>\n */\n @objid (\"06670c6b-fb3b-41b3-aefd-29ea57042310\")\n void setMultiplicityMin(String value);\n\n /**\n * Getter for relation 'LinkEnd->Link'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"780bebb2-6884-4789-bdef-ca10444ad5fb\")\n Link getLink();\n\n /**\n * Setter for relation 'LinkEnd->Link'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"cd72633c-53d3-4556-b5de-b52113e3a225\")\n void setLink(Link value);\n\n /**\n * Getter for relation 'LinkEnd->Target'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();\n\n /**\n * Setter for relation 'LinkEnd->Target'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"8fb70c43-b102-4a64-9424-c7cc07d58fcf\")\n void setTarget(Instance value);\n\n /**\n * Getter for relation 'LinkEnd->OppositeOwner'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"aaf16daa-ed28-496e-bee1-ebf665987a0e\")\n LinkEnd getOppositeOwner();\n\n /**\n * Setter for relation 'LinkEnd->OppositeOwner'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"67ebbbfe-83e1-4802-a6be-2ffada70c737\")\n void setOppositeOwner(LinkEnd value);\n\n /**\n * Getter for relation 'LinkEnd->RealizedInformationFlow'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"d5ab3449-47f3-49a5-9936-6634cda6cb2a\")\n EList<InformationFlow> getRealizedInformationFlow();\n\n /**\n * Filtered Getter for relation 'LinkEnd->RealizedInformationFlow'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"b9cdbb67-9b00-43b4-aa83-a5150ca375e9\")\n <T extends InformationFlow> List<T> getRealizedInformationFlow(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'LinkEnd->Model'\n * \n * Metamodel description:\n * <i>The LinkEnd is an occurrence of this AssociationEnd.</i>\n */\n @objid (\"661a22c1-2de2-4b65-a955-6b755461b1ac\")\n AssociationEnd getModel();\n\n /**\n * Setter for relation 'LinkEnd->Model'\n * \n * Metamodel description:\n * <i>The LinkEnd is an occurrence of this AssociationEnd.</i>\n */\n @objid (\"1a8cb555-55ca-418e-8378-2f50ba867c6b\")\n void setModel(AssociationEnd value);\n\n /**\n * Getter for relation 'LinkEnd->Consumer'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the RequiredInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"8f1c9d42-a8ac-4f52-b3f8-2b5f076b4348\")\n RequiredInterface getConsumer();\n\n /**\n * Setter for relation 'LinkEnd->Consumer'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the RequiredInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"443e3927-5e5c-43bb-9d78-44c58df8e6fd\")\n void setConsumer(RequiredInterface value);\n\n /**\n * Getter for relation 'LinkEnd->Opposite'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"e10bb26d-c5e7-4f7e-b4cb-8c5551328d52\")\n LinkEnd getOpposite();\n\n /**\n * Setter for relation 'LinkEnd->Opposite'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"322f7781-7f9f-47de-8df7-a12ebfa5784a\")\n void setOpposite(LinkEnd value);\n\n /**\n * Getter for relation 'LinkEnd->Source'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();\n\n /**\n * Setter for relation 'LinkEnd->Source'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);\n\n /**\n * Getter for relation 'LinkEnd->Provider'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the ProvidedInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"13e63a4b-fab3-4b16-b7f9-69b4d6187c94\")\n ProvidedInterface getProvider();\n\n /**\n * Setter for relation 'LinkEnd->Provider'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the ProvidedInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"a3188449-2f95-4e02-a233-e2e48fa5e5b0\")\n void setProvider(ProvidedInterface value);\n\n}", "@RequestMapping(\"/getBookSale\")\n public List<BookSale> getBookSale(@RequestParam(\"start\")String start,\n @RequestParam(\"end\")String end) {\n// String str1 = \"2020-2-05 16:16:57\";\n// String str2 = \"2020-6-20 16:16:57\";\n Timestamp time1 = Timestamp.valueOf(start);\n Timestamp time2 = Timestamp.valueOf(end);\n System.out.println(start);\n System.out.println(end);\n\n return orderService.getBookSale(time1, time2);\n }", "private void getDateStartEnd(BudgetRecyclerView budget) {\n String viewByDate = budget.getDate();\n String[] dateArray = viewByDate.split(\"-\");\n for (int i = 0; i < dateArray.length; i++) {\n dateArray[i] = dateArray[i].trim();\n }\n startDate = CalendarSupport.convertStringToDate(dateArray[0]);\n endDate = CalendarSupport.convertStringToDate(dateArray[1]);\n }", "ButEnd getStart();", "@Test\n\tpublic void testChangeReservationEndExtendEnd() throws Exception {\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDate start = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate end = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +1);\n\t\tDate newEnd = cal.getTime();\n\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), start, end);\n\n\t\tbookingManagement.changeReservationEnd(res1.getId(), newEnd);\n\n\t\tres1 = bookingManagement.getReservation(res1.getId());\n\t\tassertNotNull(res1);\n\t\t// check if reservation is changed successfully\n\t\tassertEquals(newEnd, res1.getEndTime());\n\t\tassertEquals(start, res1.getStartTime());\n\t}", "public boolean setupBatchStartingAndEndingPatches(Model startPatch, Model endPatch)\n {\n return super.setupBatchStartingAndEndingPatches(startPatch, endPatch);\n }", "void setEndInclusive( boolean endInclusive );", "private static int getEndID(HashMap<Integer, ActivityPrediction> model) {\n int endID = 0;\n for (ActivityPrediction predictionNode : model.values()) {\n if (predictionNode.isEnd()) {\n endID = predictionNode.getActivityID();\n }\n }\n return endID;\n }", "private void setBeginAndEnd() {\n for (int i=1;i<keyframes.size();i++){\n if (curTime <= ((PointInTime)keyframes.get(i)).time){\n beginPointTime=(PointInTime)keyframes.get(i-1);\n endPointTime=(PointInTime)keyframes.get(i);\n return;\n }\n }\n beginPointTime=(PointInTime)keyframes.get(0);\n if (keyframes.size()==1)\n endPointTime=beginPointTime;\n else\n endPointTime=(PointInTime)keyframes.get(1);\n curTime=((PointInTime)keyframes.get(0)).time;\n }", "public void setEnd(int end) {\n\t\tthis.end = end;\n\t}", "public static List<FoundObject> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}", "boolean isEndInclusive();", "@Modified(author=\"Phil Brown\", summary=\"Added Method\")\n public void setupEndValues() {\n }", "@Override\n public void mergeModels(MusicOperation model) {\n int thisLength = this.getFinalBeat();\n int otherLength = model.getFinalBeat();\n int length;\n\n if (thisLength >= otherLength) {\n length = thisLength;\n } else {\n length = otherLength;\n }\n\n for (int i = 0; i < length; i++) {\n List<Note> currentNotes = model.getNotesAtBeat(i);\n\n for (int x = 0; x < currentNotes.size(); x++) {\n Note currentNote = currentNotes.get(x);\n this.addNote(currentNote);\n\n }\n\n }\n\n }", "void setEndRange( String endRange );", "List<Stopsinlinedb> fetchStopsInLines();", "String getDefiningEnd();", "public java.util.List<Todo> findByTodoId(long todoId, int start, int end);", "public void setEnd( GeoPoint end ){\n this.end = end;\n\n }", "int countSpecifiedEnds();", "@Test\n public void testHasPrevious_End() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2));\n\n ListIterator<Integer> instance = baseList.listIterator();\n\n instance.next();\n instance.next();\n\n boolean expResult = true;\n boolean result = instance.hasPrevious();\n\n assertEquals(expResult, result);\n }", "public void testGetEndValue() {\n TaskSeriesCollection c = createCollection1();\n TaskSeriesCollection c3 = createCollection3();\n }", "public void setStart(long start) { this.start = start; }", "private IRegion getModelRange(int offset, int length) {\n \t\tif (offset == Integer.MAX_VALUE)\n \t\t\treturn null;\n \n \t\tif (fSourceViewer instanceof ITextViewerExtension5) {\n \t\t\tITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;\n \t\t\treturn extension.widgetRange2ModelRange(new Region(offset, length));\n \t\t}\n \t\t\n \t\tIRegion region= fSourceViewer.getVisibleRegion();\n \t\treturn new Region(region.getOffset() + offset, length);\n \t}", "public void compareStartEndDate() {\n String[] startDateArray = startDate.split(dateOperator);\n String[] endDateArray = endDate.split(dateOperator);\n \n // Compares year first, then month, and then day.\n if (Integer.parseInt(startDateArray[2]) > Integer.parseInt(endDateArray[2])) {\n endDate = endDateArray[0] +\"/\"+ endDateArray[1] +\"/\"+ startDateArray[2];\n } else if (Integer.parseInt(startDateArray[2]) == Integer.parseInt(endDateArray[2])) {\n if (Integer.parseInt(startDateArray[1]) > Integer.parseInt(endDateArray[1])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n } else if (Integer.parseInt(startDateArray[1]) == Integer.parseInt(endDateArray[1]) && \n Integer.parseInt(startDateArray[0]) > Integer.parseInt(endDateArray[0])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n }\n }\n }", "private Path createPath(AStarNode start, AStarNode end) {\n Path path = new Path();\n AStarNode ptr = end;\n while (!ptr.equals(start)) {\n path.addFirst(ptr);\n ptr = ptr.getPrevious();\n }\n path.addFirst(start);\n\n return path;\n }", "@Test\n public void testPreviousIndex_End() {\n\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n int expResult = 1;\n int result = instance.previousIndex();\n\n assertEquals(expResult, result);\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void endLesserException() {\n\n\t\tset.beginAt(2);\n\t\tset.endAt(1);\n\t}", "@Test\n\tpublic void testChangeReservationEndReduceEnd() throws Exception {\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDate start = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 4);\n\t\tDate end = cal.getTime();\n\t\tcal.add(Calendar.HOUR, -1);\n\t\tDate newEnd = cal.getTime();\n\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), start, end);\n\n\t\tbookingManagement.changeReservationEnd(res1.getId(), newEnd);\n\n\t\tres1 = bookingManagement.getReservation(res1.getId());\n\t\tassertNotNull(res1);\n\t\t// check if reservation is changed successfully\n\t\tassertEquals(newEnd, res1.getEndTime());\n\t\tassertEquals(start, res1.getStartTime());\n\t}", "private void checkAndAddMidPoints(DoubleBinding startY, DoubleBinding endY){\n if(target.rowLocationProperty.get() - source.rowLocationProperty.get() > 1\n || target.rowLocationProperty.get() - source.rowLocationProperty.get() < 0){\n if(!addedMidPoints){\n path.addPoint(midLineX.add(0), startY.subtract(TreeLayout.V_SPACING/3.), 1);\n path.addPoint(midLineX.add(0), endY.add(TreeLayout.V_SPACING/2.), 2);\n this.addedMidPoints = true;\n }\n }else{\n if(addedMidPoints){\n path.removePoint(2);\n path.removePoint(1);\n this.addedMidPoints = false;\n }\n }\n }", "ActualStartType getActualStart();", "public List<Employe> findByEnoGreaterThanEqualAndEnameEndingWithOrEsalBetween(int Eno,String name,float startSalary,float endSalary);", "public java.util.List<DataEntry> findAll(int start, int end);", "public interface DatetimeRange {\n\n @JsonProperty(\"dtr:start_datetime\")\n String getStartDatetime();\n void setStartDatetime(String startDatetime);\n\n @JsonProperty(\"dtr:end_datetime\")\n String getEndDatetime();\n void setEndDatetime(String endDatetime);\n\n}", "private void eatRangeEnd() {\n\n Token token = tokens.get(currentTokenPointer++);\n\n if (token.kind == TokenKind.ENDINCLUSIVE) {\n\n endInclusive = true;\n\n } else if (token.kind == TokenKind.ENDEXCLUSIVE) {\n\n endInclusive = false;\n\n } else {\n\n raiseParseProblem(\"expected a version end character ']' or ')' but found '\" + string(token) + \"' at position \" + token.start, token.start);\n\n }\n\n }", "@Test\n\tpublic void testXEnd() {\n\t\t\n\t\tdouble endX1 = 55.17, endX2 = 138.75;\n\t\tdouble v01 = 25, v02 = 38.6;\n\t\tdouble theta1 = 30, theta2 = 57;\n\t\tassertEquals(PhysicsEngine.findXEnd(v01, theta1, 0), endX1, DELTA);\n\t\tassertEquals(PhysicsEngine.findXEnd(v02, theta2, 0), endX2, DELTA);\n\t}", "@objid (\"1a8cb555-55ca-418e-8378-2f50ba867c6b\")\n void setModel(AssociationEnd value);", "public void setStart(int start) {\n this.start=start;\n }", "void clearSpecifiedEnds();", "org.mojolang.mojo.lang.Position getEndPosition();", "public M csmiBirthdayEnd(Object end){this.put(\"csmiBirthdayEnd\", end);return this;}", "public void testEndDirectiveTypes() throws Exception {\n File file = getResourceFile(\"/testdata/javascript/head.js\");\n DirectiveBasedJavascriptGroup jg = new DirectiveBasedJavascriptGroup(\"testDummy\", file.getParentFile(),\n file.getName(), ImmutableList.<DirectiveType<?>> of(DirectiveFactory.getEndDirective()), EnumSet.of(\n JavascriptGeneratorMode.DEVELOPMENT, JavascriptGeneratorMode.TESTING,\n JavascriptGeneratorMode.PRODUCTION));\n DirectiveParser dp = new DirectiveParser(jg, jg.getStartFile());\n try {\n dp.parseFile();\n fail(\"Passing an END directive should have thrown an exception\");\n } catch (RuntimeException e) {\n assertTrue(\"The Javascript Processor failed for some unkown reason\",\n e.getMessage().equals(\"cannot create a directive with the reserved label \\\"end\\\"\"));\n }\n }", "public abstract int getEndIndex();", "@Override\n\tpublic List<PhatVay> findAll(int start, int end) {\n\t\treturn findAll(start, end, null);\n\t}", "public java.util.List<PlanoSaude> findAll(int start, int end);", "public GeoPoint getEnd(){\n return end;\n }", "public void testMoveToEnd() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.moveToEnd();\n test1.prev();\n assertTrue(test1.getValue().inRange(9));\n }", "String getEnd();", "ArrayList<TTC> generateSegments() {\n if ((START_STATION instanceof Station) && (endStation instanceof Station)) {\n ArrayList<TTC> route = TTC.SUBWAY_LIST.get(NUMBER);\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n } else {\n ArrayList<TTC> route = TTC.BUS_MAP.get((START_STATION).getNUMBER());\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n }\n }", "@Override\n public void appendModels(MusicOperation model) {\n int length = this.getFinalBeat();\n\n List<Note> currentNotes = model.getNotes();\n\n for (int x = 0; x < currentNotes.size(); x++) {\n Note current = currentNotes.get(x);\n Note newNote = new SimpleNote(current.getPitch(), current.getOctave(),\n current.getBeat() + length, current.getDuration());\n this.addNote(newNote);\n }\n }", "private String checkSegments(ArrayList<DataSegment> list, int start, int end) {\n if (list.isEmpty()) return \"38020\";\n if (list.get(0).getSegmentStart()!=start) return \"38021\";\n if (list.get(list.size()-1).getSegmentEnd()!=end) return \"38022\";\n int lastend=start-1; \n for (int i=0;i<list.size();i++) {\n DataSegment segment=list.get(i);\n if (segment.getSegmentStart()!=lastend+1) return \"38023[\"+(i+1)+\"/\"+(list.size())+\"]\";\n lastend=segment.getSegmentEnd();\n if (lastend>end) return \"38024[\"+(i+1)+\"/\"+(list.size())+\"]\";\n }\n return null;\n }", "@Test\n public void testPrevious_End() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n Integer expResult = 2;\n Integer result = instance.previous();\n assertEquals(expResult, result);\n }", "public void testGetEndValue3() {\n TaskSeriesCollection c = new TaskSeriesCollection();\n TaskSeries s = new TaskSeries(\"Series 1\");\n s.add(new Task(\"Task with null duration\", null));\n c.add(s);\n Number millis = c.getEndValue(\"Series 1\", \"Task with null duration\");\n }", "@Test\n public void testGetEndValue2() {\n TaskSeriesCollection c = createCollection2();\n assertEquals(new Long(55L), c.getEndValue(\"S2\", \"Task 3\", 0));\n TaskSeriesCollection c3 = createCollection3();\n }", "@Test\n public void testNextIndex_End() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 3));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n int expResult = 2;\n int result = instance.nextIndex();\n\n assertEquals(\"Calling nextIndex at the end of the iterator should return size of the associated list\",\n expResult, result);\n }", "boolean contributesContent() {\n return includedInLastStep() && end >= start;\n }", "private static boolean createEnds(\r\n TARGET_ADJUSTMENT_AXIS axis,\r\n float posOffset,\r\n float negOffset,\r\n END_OPTION endOption,\r\n BasePositionableEntity parentEntity,\r\n Entity parentEntityParentEntity,\r\n SimpleTool simpleTool,\r\n WorldModel model,\r\n RuleCollisionHandler rch,\r\n EntityBuilder entityBuilder){\r\n\r\n float[] parentBounds = BoundsUtils.getBounds(parentEntity, true);\r\n\r\n // end positions\r\n double[] firstEndPos = new double[3];\r\n double[] secondEndPos = new double[3];\r\n\r\n switch(axis){\r\n case XAXIS:\r\n firstEndPos[0] = parentBounds[1] - posOffset;\r\n secondEndPos[0] = parentBounds[0] + negOffset;\r\n break;\r\n\r\n case YAXIS:\r\n firstEndPos[1] = parentBounds[3] - posOffset;\r\n secondEndPos[1] = parentBounds[2] + negOffset;\r\n break;\r\n\r\n case ZAXIS:\r\n firstEndPos[2] = parentBounds[5] - posOffset;\r\n secondEndPos[2] = parentBounds[4] + negOffset;\r\n break;\r\n }\r\n \r\n boolean positiveAddSuccess = true;\r\n boolean negativeAddSuccess = true;\r\n\r\n positiveEndTransactionID = null;\r\n negativeEndTransactionID = null;\r\n \r\n // Add first end (positive direction)\r\n if (endOption == END_OPTION.BOTH || endOption == END_OPTION.POSITIVE) {\r\n \t\r\n \tpositiveEndTransactionID =\r\n\t \tAutoAddUtility.issueNewAutoAddChildCommand(\r\n\t\t model,\r\n\t\t parentEntity,\r\n\t\t parentEntityParentEntity,\r\n\t\t simpleTool,\r\n\t\t firstEndPos,\r\n\t\t new float[] {0.0f, 0.0f, 1.0f, 0.0f},\r\n\t\t false,\r\n\t\t axis,\r\n\t\t ORIENTATION.POSITIVE,\r\n\t\t rch,\r\n\t\t entityBuilder);\r\n\t \r\n\t if (positiveEndTransactionID.getType() == \r\n\t \tTRANSACTION_OR_ENTITY_ID.FAILURE) {\r\n\t \tpositiveAddSuccess = false;\r\n\t }\r\n\t\r\n }\r\n\r\n // Add second end (negative direction)\r\n if (endOption == END_OPTION.BOTH || endOption == END_OPTION.NEGATIVE) {\r\n \t\r\n \tnegativeEndTransactionID = \r\n \t\tAutoAddUtility.issueNewAutoAddChildCommand(\r\n\t\t model,\r\n\t\t parentEntity,\r\n\t\t parentEntityParentEntity,\r\n\t\t simpleTool,\r\n\t\t secondEndPos,\r\n\t\t new float[] {0.0f, 0.0f, 1.0f, 0.0f},\r\n\t\t false,\r\n\t\t axis,\r\n\t\t ORIENTATION.NEGATIVE,\r\n\t\t rch,\r\n\t\t entityBuilder);\r\n\t\r\n\t if (negativeEndTransactionID.getType() == \r\n\t \tTRANSACTION_OR_ENTITY_ID.FAILURE) {\r\n\t \tnegativeAddSuccess = false;\r\n\t }\r\n }\r\n\r\n if (positiveAddSuccess && negativeAddSuccess) {\r\n \treturn true;\r\n }\r\n \r\n return false;\r\n }", "@Test\n public void test2(){\n\n List<FitActivity> upper = fitActivityRepository.findAllByBodyPart(\"Upper\");\n for (FitActivity fitActivity : upper) {\n System.out.println(fitActivity.getName());\n\n }\n\n }", "@Test\r\n void findRouteDifferentLine() {\r\n List<Station> route = model.findRoute(9, 60);\r\n assertNotNull(route);\r\n assertEquals(10, route.size());\r\n assertEquals(\"SuffolkDowns\", route.get(0).getName());\r\n assertEquals(\"Broadway\", route.get(9).getName());\r\n }", "public interface StopRepository {\n public void add(Stop stop);\n public void addAll(Iterator<Stop> iterator);\n public Stop findStopById(int id);\n public Stop findStopByXAndY(int x, int y);\n}", "public void fixStartEnd() {\n\t\tif (sstart > send) {\n\t\t\tint t = send;\n\t\t\tsend = sstart;\n\t\t\tsstart = t;\n\t\t}\n\n\t\tif (qstart > qend) {\n\t\t\tint t = qend;\n\t\t\tqend = qstart;\n\t\t\tqstart = t;\n\t\t}\n\t}", "@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual2() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = false;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 1);\r\n\t}", "net.opengis.gml.x32.TimeInstantPropertyType addNewEnd();", "@Test\r\n public void testEndBeforeStartException() {\r\n boolean result = false;\r\n try {\r\n new TimeCell(\r\n LocalDateTime.now(),\r\n LocalDateTime.now().minusDays(1),\r\n LocalDateTime.now(),\r\n new Manager(\"James\"),\r\n new Worker(\"Fred\", TypeOfWork.ANY),\r\n TypeOfWork.ANY);\r\n } catch (ZeroLengthException ex) {\r\n result = false;\r\n } catch (EndBeforeStartException ex) {\r\n result = true;\r\n }\r\n assertTrue(result);\r\n }", "public void gameModelEnd() {\n\t\tsetChanged();\r\n\t\tdeleteObservers();\r\n\t\tnotifyObservers(Message.End);\r\n\t}", "void setEndSegment(int endSegment);", "public void checkTimeRangeSettingsAccordingToTimeModelBeforeJadeStart() {\r\n\t\t\r\n\t\t// --- Get global ScheduleTimeRange --------------- \r\n\t\tScheduleTimeRange strGlobal = ScheduleTimeRangeController.getScheduleTimeRange();\r\n\t\tif (strGlobal==null) return;\r\n\t\t\r\n\t\t// --- Get Project instance -----------------------\r\n\t\tProject project = this.graphController.getProject();\r\n\t\tif (project==null) return; // (will not happen, but see 'save' call below)\r\n\t\t\r\n\t\t// --- Get date based time model ------------------\r\n\t\tTimeModel timeModel = this.graphController.getTimeModel();\r\n\t\tif (! (timeModel instanceof TimeModelDateBased)) return;\r\n\t\t\t\t\r\n\t\t// --- Get start and end time of the execution ---- \t\r\n\t\tTimeModelDateBased tmDataBased = (TimeModelDateBased) timeModel;\r\n\t\tlong startTime = tmDataBased.getTimeStart();\r\n\t\t\r\n\t\tif (strGlobal.getTimeFrom()!=startTime) {\r\n\t\t\t// --- ScheduleTimeRange needs to adjusted! --- \r\n\t\t\tlong shift = strGlobal.getTimeFrom() - startTime; \r\n\t\t\tScheduleTimeRange strGlobalNew = strGlobal.getCopy();\r\n\t\t\tstrGlobalNew.setTimeFrom(strGlobal.getTimeFrom() - shift);\r\n\t\t\tif (strGlobal.getRangeType()==RangeType.TimeRange) {\r\n\t\t\t\tstrGlobalNew.setTimeTo(strGlobal.getTimeTo() - shift);\r\n\t\t\t}\r\n\t\t\t// --- Set as new global ScheduleTimeRange ----\r\n\t\t\tScheduleTimeRangeController.setScheduleTimeRange(strGlobalNew , EVENT_CONFIGURED_IN_AWB_MAIN_WINDOW);\r\n\t\t\t\r\n\t\t\t// --- Save the project again -----------------\r\n\t\t\tproject.save();\r\n\t\t}\r\n\t\t\r\n\t}", "public static boolean addAutoAddEnds(\r\n WorldModel model,\r\n Entity parentEntity,\r\n Entity parentEntityParentEntity,\r\n RuleCollisionHandler rch,\r\n EntityBuilder entityBuilder){\r\n \t\r\n \t// Check if we need to auto add ends, if not just return true\r\n \tBoolean placeAutoAddEnds = (Boolean)\r\n \t\tRulePropertyAccessor.getRulePropertyValue(\r\n \t\t\t\tparentEntity, \r\n \t\t\t\tChefX3DRuleProperties.AUTO_ADD_ENDS_PLACEMENT_USE);\r\n \t\r\n \tif (!placeAutoAddEnds) {\r\n \t\treturn true;\r\n \t}\r\n\r\n // NOTE: THE KEY TO THIS WORKING IS THE ORDERING\r\n // REQUIREMENT THAT ALL AUTO ADD DATA SETS\r\n // MATCH BY INDEX ORDER.\r\n String[] autoPlaceObjectsProp = (String[])\r\n RulePropertyAccessor.getRulePropertyValue(\r\n parentEntity,\r\n ChefX3DRuleProperties.AUTO_ADD_ENDS_PROP);\r\n\r\n Enum[] autoAddAxis = (Enum[])\r\n RulePropertyAccessor.getRulePropertyValue(\r\n parentEntity,\r\n ChefX3DRuleProperties.AUTO_ADD_ENDS_AXIS);\r\n\r\n float[] autoAddNegOffset = (float[])\r\n RulePropertyAccessor.getRulePropertyValue(\r\n parentEntity,\r\n ChefX3DRuleProperties.AUTO_ADD_ENDS_NEG_OFFSET);\r\n\r\n float[] autoAddPosOffset = (float[])\r\n RulePropertyAccessor.getRulePropertyValue(\r\n parentEntity,\r\n ChefX3DRuleProperties.AUTO_ADD_ENDS_POS_OFFSET);\r\n\r\n Enum[] autoAddEndsOption = (Enum[])\r\n \tRulePropertyAccessor.getRulePropertyValue(\r\n \t\t\tparentEntity, \r\n \t\t\tChefX3DRuleProperties.AUTO_ADD_ENDS_OPTION);\r\n\r\n // This one is not index matched\r\n AUTO_ADD_CONDITION autoAddCondition = (AUTO_ADD_CONDITION) \r\n \tRulePropertyAccessor.getRulePropertyValue(\r\n \t\t\tparentEntity,\r\n \t\t\tChefX3DRuleProperties.AUTO_ADD_ENDS_CONDITIONS);\r\n\r\n // defensive coding: check if we should break early\r\n // in case the required properties are not set\r\n if ((autoPlaceObjectsProp == null) ||\r\n (autoAddAxis == null)) {\r\n\r\n return false;\r\n }\r\n \r\n if (autoPlaceObjectsProp.length != autoAddAxis.length) {\r\n \t\r\n \treturn false;\r\n }\r\n\r\n //\r\n // Generate a command for each auto placements\r\n //\r\n float autoAddPosOffsetValue = 0;\r\n float autoAddNegOffsetValue = 0;\r\n END_OPTION autoAddEndsOptionValue = (END_OPTION)\r\n \tChefX3DRuleProperties.getDefaultValue(\r\n \t\t\tChefX3DRuleProperties.AUTO_ADD_ENDS_OPTION);\r\n \r\n for(int i = 0; i < autoPlaceObjectsProp.length; i++){\r\n\r\n SimpleTool simpleTool =\r\n RuleUtils.getSimpleToolByName(autoPlaceObjectsProp[i]);\r\n \r\n if (autoAddPosOffset != null) {\r\n \tautoAddPosOffsetValue = autoAddPosOffset[i];\r\n }\r\n \r\n if (autoAddNegOffset != null) {\r\n \tautoAddNegOffsetValue = autoAddNegOffset[i];\r\n }\r\n \r\n if (autoAddEndsOption != null) {\r\n \tautoAddEndsOptionValue = (END_OPTION) autoAddEndsOption[i];\r\n }\r\n\r\n boolean result = createEnds(\r\n (ChefX3DRuleProperties.TARGET_ADJUSTMENT_AXIS)autoAddAxis[i],\r\n autoAddPosOffsetValue,\r\n autoAddNegOffsetValue,\r\n autoAddEndsOptionValue,\r\n (BasePositionableEntity) parentEntity,\r\n parentEntityParentEntity,\r\n simpleTool,\r\n model,\r\n rch,\r\n entityBuilder);\r\n \r\n // Check against the condition set\r\n\t\t\tboolean endOfSet = false;\r\n\t\t\t\r\n\t\t\tif (i == (autoPlaceObjectsProp.length - 1)) {\r\n\t\t\t\tendOfSet = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tArrayList<AutoAddResult> conditionCheckResultList = \r\n\t\t\t\tnew ArrayList<AutoAddResult>(); \r\n\t\t\t\r\n\t\t\tif (positiveEndTransactionID != null) {\r\n\t\t\t\tconditionCheckResultList.add(positiveEndTransactionID);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (negativeEndTransactionID != null) {\r\n\t\t\t\tconditionCheckResultList.add(negativeEndTransactionID);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tAutoAddResult[] conditionCheckResults = \r\n\t\t\t\tnew AutoAddResult[conditionCheckResultList.size()];\r\n\t\t\t\r\n\t\t\tconditionCheckResultList.toArray(conditionCheckResults);\r\n\t\t\t\r\n\t\t\tCONDITION_CHECK_RESULT conditionResult = \r\n\t\t\t\tAutoAddUtility.evaluateAutoAddCondition(\r\n\t\t\t\t\t\tautoAddCondition, \r\n\t\t\t\t\t\tresult, \r\n\t\t\t\t\t\tendOfSet, \r\n\t\t\t\t\t\tconditionCheckResults);\r\n\t\t\t\r\n\t\t\tswitch (conditionResult) {\r\n\t\t\t\r\n\t\t\tcase PASSED:\r\n\t\t\t\treturn true;\r\n\t\t\t\t\r\n\t\t\tcase FAILED:\r\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\tcase CONTINUE:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n }\r\n\r\n return true;\r\n }", "public void test_hk_06() throws Exception {\n OntModel ontModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n ontModel.read(\"file:testing/ontology/bugs/test_hk_06/a.owl\");\n \n String NSa = \"http://jena.hpl.hp.com/2003/03/testont/a#\";\n String NSb = \"http://jena.hpl.hp.com/2003/03/testont/b#\";\n \n OntClass A = ontModel.getOntClass(NSa + \"A\");\n assertTrue(\"class A should be in the base model\", ontModel.isInBaseModel(A));\n \n OntClass B = ontModel.getOntClass(NSb + \"B\");\n assertFalse(\"class B should not be in the base model\", ontModel.isInBaseModel(B));\n \n assertTrue(\n \"A rdf:type owl:Class should be in the base model\",\n ontModel.isInBaseModel(ontModel.createStatement(A, RDF.type, OWL.Class)));\n assertFalse(\n \"B rdf:type owl:Class should not be in the base model\",\n ontModel.isInBaseModel(ontModel.createStatement(B, RDF.type, OWL.Class)));\n }", "public void setEndStr(String endStr) {\r\n this.endStr = endStr;\r\n }", "public void testFragmentStartsAndEndsBeforePeriod() {\n List<ActivityFragment> fragments = Lists.newArrayList(new ActivityFragment(\"Sleeping\",\n start.minus(minutes(11)),\n start.minus(minutes(4))));\n ActivityInterval interval = new ActivityInterval(start, start.plus(minutes(10)), fragments);\n List<ActivityInterval> blocks = DisplayBlock.wrapFragmentsAndClipFreeTime(interval, minutes(5).toStandardDuration());\n\n assertEquals(blocks.size(), 2);\n\n assertEquals(blocks.get(0).getStart(), start);\n assertEquals(blocks.get(0).getEnd(), start.plus(minutes(5)));\n assertTrue(blocks.get(0).isEmpty());\n\n assertEquals(blocks.get(1).getStart(), start.plus(minutes(5)));\n assertEquals(blocks.get(1).getEnd(), start.plus(minutes(10)));\n assertTrue(blocks.get(1).isEmpty());\n }", "net.opengis.gml.x32.TimePositionType addNewEndPosition();", "@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<Artwork> getArtworks(int start, int end);", "public void IntersectEnd() {\n\t\tif (getIntersectingObjects(End.class).get(0).isEnd()) {\n\t\t\tthis.end--;\n\t\t\taddPoints(-100);\n\t\t}\n\t\tpoints+=100;\n\t\tgetIntersectingObjects(End.class).get(0).setEnd();\n\t\tfrogReposition();\n\t\tthis.end++;\n\t}", "@NoProxy\n @NoWrap\n public boolean inDateTimeRange(final String start, final String end) {\n if ((getEntityType() == IcalDefs.entityTypeTodo) &&\n getNoStart()) {\n // XXX Wrong? - true if start - end covers today?\n return true;\n }\n\n String evStart = getDtstart().getDate();\n String evEnd = getDtend().getDate();\n\n int evstSt;\n\n if (end == null) {\n evstSt = -1; // < infinity\n } else {\n evstSt = evStart.compareTo(end);\n }\n\n if (evstSt >= 0) {\n return false;\n }\n\n int evendSt;\n\n if (start == null) {\n evendSt = 1; // > infinity\n } else {\n evendSt = evEnd.compareTo(start);\n }\n\n return (evendSt > 0) ||\n (evStart.equals(evEnd) && (evendSt >= 0));\n }", "private void startEndDay(int day,int month,int year) {\n int dayNum = CalendarEx.convertDay(CalendarDate.getDay(day, month, year));\n startDay = CalendarDate.moveDay(-dayNum, new CalendarDate(day,month,year));\n endDay = CalendarDate.moveDay(-dayNum+6, new CalendarDate(day,month,year));\n }", "@Override\r\n public String toString() \r\n {\n return \"[\" + getStart() + \", \" + getEnd() + \"]\";\r\n }", "public interface StopRepository {\n\n List<Stop> listStops();\n\n Stop getStopById(int idStop);\n\n Stop getStopByName(String nameStop);\n\n List<Stop> listStopByIdLine(int idLine);\n\n void addStop(Stop stop);\n\n}", "private void verifyPeriod(Date start, Date end){\n List dates = logRepositoy.findAllByDateGreaterThanEqualAndDateLessThanEqual(start, end);\n if(dates.isEmpty()){\n throw new ResourceNotFoundException(\"Date range not found\");\n }\n }", "private boolean findFullStop(ArrayList<String> parameters) {\n int index = findIndexOfLastWord(parameters);\n if (index == -1) {\n return false;\n }\n return true;\n }", "@Test(expected = NoSuchElementException.class)\n public void testNext_End() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.next();\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testChangeReservationEndWithStartDateAfterEndDate() throws Exception {\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), validStartDate,\n\t\t\t\tvalidEndDate);\n\t\tbookingManagement.changeReservationEnd(res1.getId(), validStartDate);\n\t}", "@Test\n public void testSetEndNotInMap(){\n smallMaze.setEnd(Maze.position(0, 23));\n }", "public double getEnd();", "public void setStart(int start) {\r\n this.start = start;\r\n }", "void toEnd();", "@Test\n\tpublic void endBorder() {\n\n\t\tassertEquals(set.size(), set.getEnd());\n\t\tset.endAt(1);\n\t\tassertEquals(1, set.getEnd());\n\t}" ]
[ "0.61507183", "0.5714179", "0.54118353", "0.5360236", "0.5209344", "0.5178409", "0.5170473", "0.5146349", "0.51449275", "0.5130759", "0.50928235", "0.5086126", "0.5059386", "0.5050349", "0.5023374", "0.5003183", "0.49951643", "0.49945253", "0.4986519", "0.4981423", "0.4943762", "0.49316695", "0.492719", "0.49178597", "0.49068886", "0.48989868", "0.48978525", "0.48886988", "0.4886735", "0.48545122", "0.48526394", "0.48309663", "0.48301655", "0.4828465", "0.48214316", "0.48095202", "0.4797097", "0.4781851", "0.47801274", "0.4773882", "0.4761655", "0.4751429", "0.47404563", "0.47403452", "0.47221678", "0.4717984", "0.47117877", "0.47008243", "0.4687422", "0.46821558", "0.4681902", "0.4678655", "0.467752", "0.46684915", "0.46655643", "0.46631217", "0.46606687", "0.46590036", "0.46578434", "0.4653027", "0.46456355", "0.46371558", "0.46370065", "0.46319342", "0.46115395", "0.46100885", "0.46095955", "0.46093094", "0.46033457", "0.45988932", "0.4591349", "0.45909426", "0.45868355", "0.458119", "0.4575568", "0.4567542", "0.4563702", "0.4558394", "0.45571038", "0.45561007", "0.45534912", "0.45495793", "0.45380244", "0.45375508", "0.4537428", "0.45371374", "0.45340785", "0.45337355", "0.45312402", "0.45310014", "0.45252463", "0.4523868", "0.4522678", "0.4520331", "0.45187658", "0.45090514", "0.45077908", "0.45044702", "0.44935563", "0.44900247", "0.4489777" ]
0.0
-1
TODO maybe create an equal model but from Signavio? It will fail, because types are different, unless I add a translator to the code which is not difficult i just have to find the right place to add it in.
@Test void ignoreDifferentPlacement () throws ParserConfigurationException, SAXException, IOException, XPathExpressionException { Model base = new Model("./tests/TestModels/TravelAgency" + "/BaseModelForTA.bpmn.xml"); //the model against which all others will be tested. Model onlyPositionsAreDifferent = new Model("./tests/TestModels" + "/TravelAgency/onlyPositionsAreDifferent.bpmn.xml"); assertFalse(TravelAgency.modelsAreDifferent(base, onlyPositionsAreDifferent)); //The position of the BPMN symbols should not matter. As such, it // should be equal to the base model. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface SmooksTransformModel extends TransformModel {\n\n /** The \"smooks\" name. */\n public static final String SMOOKS = \"smooks\";\n\n /** The \"config\" name. */\n public static final String CONFIG = \"config\";\n \n /** The \"type\" name. */\n public static final String TYPE = \"type\";\n\n /** The \"reportPath\" name. */\n public static final String REPORT_PATH = \"reportPath\";\n \n /**\n * Gets the type attribute.\n * @return the type attribute\n */\n public String getTransformType();\n\n /**\n * Sets the type attribute.\n * @param type the type attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setTransformType(String type);\n\n /**\n * Gets the config attribute.\n * @return the config attribute\n */\n public String getConfig();\n\n\n /**\n * Sets the config attribute.\n * @param config the config attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setConfig(String config);\n\n /**\n * Gets the reportPath attribute.\n * @return the reportPath attribute\n */\n public String getReportPath();\n\n /**\n * Sets the reportPath attribute.\n * @param reportPath the reportPath attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setReportPath(String reportPath);\n\n}", "public interface LoaiPhongVanBanNoiBoModel extends BaseModel {\n public LoaiPhongVanBanNoiBoPK getPrimaryKey();\n\n public void setPrimaryKey(LoaiPhongVanBanNoiBoPK pk);\n\n public long getLoaiVanBanNoiBoId();\n\n public void setLoaiVanBanNoiBoId(long loaiVanBanNoiBoId);\n\n public long getPhongVanBanNoiBoId();\n\n public void setPhongVanBanNoiBoId(long phongVanBanNoiBoId);\n\n public LoaiPhongVanBanNoiBo toEscapedModel();\n}", "public interface Currency extends Model {\n String getCode();\n void setCode(String strCode);\n String getCurrencyName();\n void setCurrenyName(String strCurrencyName);\n String getCurrencySymbol();\n void setCurrencySymbol(String strCurrencySymbol);\n String getIsDefault();\n void setIsDefault(String strIsDefault);\n double getCurrencyRate();\n void setCurrencyRate(double dCurrencyRate);\n}", "@Data\npublic class <XXX>ModelInfo extends AbstractModelInfo {\n private <Field1DataType> <Field1>;\n /**\n * @return an corresponding {@link <XXX>Transformer} for this model info\n */\n @Override\n public Transformer getTransformer() {\n return new <XXX>Transformer(this);\n }", "@ProviderType\npublic interface LichChiTietModel\n\textends BaseModel<LichChiTiet>, GroupedModel, ShardedModel {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a lich chi tiet model instance should use the {@link LichChiTiet} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this lich chi tiet.\n\t *\n\t * @return the primary key of this lich chi tiet\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this lich chi tiet.\n\t *\n\t * @param primaryKey the primary key of this lich chi tiet\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the lich chi tiet ID of this lich chi tiet.\n\t *\n\t * @return the lich chi tiet ID of this lich chi tiet\n\t */\n\tpublic long getLichChiTietId();\n\n\t/**\n\t * Sets the lich chi tiet ID of this lich chi tiet.\n\t *\n\t * @param lichChiTietId the lich chi tiet ID of this lich chi tiet\n\t */\n\tpublic void setLichChiTietId(long lichChiTietId);\n\n\t/**\n\t * Returns the group ID of this lich chi tiet.\n\t *\n\t * @return the group ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getGroupId();\n\n\t/**\n\t * Sets the group ID of this lich chi tiet.\n\t *\n\t * @param groupId the group ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setGroupId(long groupId);\n\n\t/**\n\t * Returns the language of this lich chi tiet.\n\t *\n\t * @return the language of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getLanguage();\n\n\t/**\n\t * Sets the language of this lich chi tiet.\n\t *\n\t * @param language the language of this lich chi tiet\n\t */\n\tpublic void setLanguage(String language);\n\n\t/**\n\t * Returns the company ID of this lich chi tiet.\n\t *\n\t * @return the company ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getCompanyId();\n\n\t/**\n\t * Sets the company ID of this lich chi tiet.\n\t *\n\t * @param companyId the company ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setCompanyId(long companyId);\n\n\t/**\n\t * Returns the user ID of this lich chi tiet.\n\t *\n\t * @return the user ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getUserId();\n\n\t/**\n\t * Sets the user ID of this lich chi tiet.\n\t *\n\t * @param userId the user ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserId(long userId);\n\n\t/**\n\t * Returns the user uuid of this lich chi tiet.\n\t *\n\t * @return the user uuid of this lich chi tiet\n\t */\n\t@Override\n\tpublic String getUserUuid();\n\n\t/**\n\t * Sets the user uuid of this lich chi tiet.\n\t *\n\t * @param userUuid the user uuid of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserUuid(String userUuid);\n\n\t/**\n\t * Returns the user name of this lich chi tiet.\n\t *\n\t * @return the user name of this lich chi tiet\n\t */\n\t@AutoEscape\n\t@Override\n\tpublic String getUserName();\n\n\t/**\n\t * Sets the user name of this lich chi tiet.\n\t *\n\t * @param userName the user name of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserName(String userName);\n\n\t/**\n\t * Returns the create date of this lich chi tiet.\n\t *\n\t * @return the create date of this lich chi tiet\n\t */\n\t@Override\n\tpublic Date getCreateDate();\n\n\t/**\n\t * Sets the create date of this lich chi tiet.\n\t *\n\t * @param createDate the create date of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setCreateDate(Date createDate);\n\n\t/**\n\t * Returns the created by user of this lich chi tiet.\n\t *\n\t * @return the created by user of this lich chi tiet\n\t */\n\tpublic long getCreatedByUser();\n\n\t/**\n\t * Sets the created by user of this lich chi tiet.\n\t *\n\t * @param createdByUser the created by user of this lich chi tiet\n\t */\n\tpublic void setCreatedByUser(long createdByUser);\n\n\t/**\n\t * Returns the modified date of this lich chi tiet.\n\t *\n\t * @return the modified date of this lich chi tiet\n\t */\n\t@Override\n\tpublic Date getModifiedDate();\n\n\t/**\n\t * Sets the modified date of this lich chi tiet.\n\t *\n\t * @param modifiedDate the modified date of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setModifiedDate(Date modifiedDate);\n\n\t/**\n\t * Returns the modified by user of this lich chi tiet.\n\t *\n\t * @return the modified by user of this lich chi tiet\n\t */\n\tpublic long getModifiedByUser();\n\n\t/**\n\t * Sets the modified by user of this lich chi tiet.\n\t *\n\t * @param modifiedByUser the modified by user of this lich chi tiet\n\t */\n\tpublic void setModifiedByUser(long modifiedByUser);\n\n\t/**\n\t * Returns the gio bat dau of this lich chi tiet.\n\t *\n\t * @return the gio bat dau of this lich chi tiet\n\t */\n\tpublic Date getGioBatDau();\n\n\t/**\n\t * Sets the gio bat dau of this lich chi tiet.\n\t *\n\t * @param gioBatDau the gio bat dau of this lich chi tiet\n\t */\n\tpublic void setGioBatDau(Date gioBatDau);\n\n\t/**\n\t * Returns the mo ta of this lich chi tiet.\n\t *\n\t * @return the mo ta of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getMoTa();\n\n\t/**\n\t * Sets the mo ta of this lich chi tiet.\n\t *\n\t * @param moTa the mo ta of this lich chi tiet\n\t */\n\tpublic void setMoTa(String moTa);\n\n\t/**\n\t * Returns the nguoi tham du of this lich chi tiet.\n\t *\n\t * @return the nguoi tham du of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNguoiThamDu();\n\n\t/**\n\t * Sets the nguoi tham du of this lich chi tiet.\n\t *\n\t * @param nguoiThamDu the nguoi tham du of this lich chi tiet\n\t */\n\tpublic void setNguoiThamDu(String nguoiThamDu);\n\n\t/**\n\t * Returns the nguoi chu tri of this lich chi tiet.\n\t *\n\t * @return the nguoi chu tri of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNguoiChuTri();\n\n\t/**\n\t * Sets the nguoi chu tri of this lich chi tiet.\n\t *\n\t * @param nguoiChuTri the nguoi chu tri of this lich chi tiet\n\t */\n\tpublic void setNguoiChuTri(String nguoiChuTri);\n\n\t/**\n\t * Returns the selected date of this lich chi tiet.\n\t *\n\t * @return the selected date of this lich chi tiet\n\t */\n\tpublic Date getSelectedDate();\n\n\t/**\n\t * Sets the selected date of this lich chi tiet.\n\t *\n\t * @param selectedDate the selected date of this lich chi tiet\n\t */\n\tpublic void setSelectedDate(Date selectedDate);\n\n\t/**\n\t * Returns the trangthai chi tiet of this lich chi tiet.\n\t *\n\t * @return the trangthai chi tiet of this lich chi tiet\n\t */\n\tpublic int getTrangthaiChiTiet();\n\n\t/**\n\t * Sets the trangthai chi tiet of this lich chi tiet.\n\t *\n\t * @param trangthaiChiTiet the trangthai chi tiet of this lich chi tiet\n\t */\n\tpublic void setTrangthaiChiTiet(int trangthaiChiTiet);\n\n\t/**\n\t * Returns the lich cong tac ID of this lich chi tiet.\n\t *\n\t * @return the lich cong tac ID of this lich chi tiet\n\t */\n\tpublic long getLichCongTacId();\n\n\t/**\n\t * Sets the lich cong tac ID of this lich chi tiet.\n\t *\n\t * @param lichCongTacId the lich cong tac ID of this lich chi tiet\n\t */\n\tpublic void setLichCongTacId(long lichCongTacId);\n\n\t/**\n\t * Returns the address of this lich chi tiet.\n\t *\n\t * @return the address of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getAddress();\n\n\t/**\n\t * Sets the address of this lich chi tiet.\n\t *\n\t * @param address the address of this lich chi tiet\n\t */\n\tpublic void setAddress(String address);\n\n\t/**\n\t * Returns the note of this lich chi tiet.\n\t *\n\t * @return the note of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNote();\n\n\t/**\n\t * Sets the note of this lich chi tiet.\n\t *\n\t * @param note the note of this lich chi tiet\n\t */\n\tpublic void setNote(String note);\n\n\t/**\n\t * Returns the lydo tra ve of this lich chi tiet.\n\t *\n\t * @return the lydo tra ve of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getLydoTraVe();\n\n\t/**\n\t * Sets the lydo tra ve of this lich chi tiet.\n\t *\n\t * @param lydoTraVe the lydo tra ve of this lich chi tiet\n\t */\n\tpublic void setLydoTraVe(String lydoTraVe);\n\n\t/**\n\t * Returns the organization ID of this lich chi tiet.\n\t *\n\t * @return the organization ID of this lich chi tiet\n\t */\n\tpublic long getOrganizationId();\n\n\t/**\n\t * Sets the organization ID of this lich chi tiet.\n\t *\n\t * @param organizationId the organization ID of this lich chi tiet\n\t */\n\tpublic void setOrganizationId(long organizationId);\n\n}", "interface PresenterToModel extends Model<ModelToPresenter> {\n\n\n\n\n String getNameLabel();\n\n\n String getPhotoLabel();\n\n\n String getLabelRadio0();\n\n\n String getLabelRadio1();\n\n\n String getLabelRadio2();\n\n\n String getLabelRadio3();\n\n\n String getButtonAddlabel();\n\n\n String getToastNotifyingAdded();\n\n\n void insertEvent(String Categoryname, String image);\n\n String getImageByIdSelected(int id);\n\n\n String getImage(int i);\n }", "PriceModel createInstanceOfPriceModel();", "public interface Translation extends MultiTenantCloneable<Translation>, Serializable {\n\n public Long getId();\n\n public void setId(Long id);\n\n public TranslatedEntity getEntityType();\n\n public void setEntityType(TranslatedEntity entityType);\n\n public String getEntityId();\n\n public void setEntityId(String entityId);\n\n public String getFieldName();\n\n public void setFieldName(String fieldName);\n\n public String getLocaleCode();\n\n public void setLocaleCode(String localeCode);\n\n public String getTranslatedValue();\n\n public void setTranslatedValue(String translatedValue);\n\n}", "EisModel createEisModel();", "CsticModel createInstanceOfCsticModel();", "VariantConditionModel createInstanceOfVariantConditionModel();", "Type1Equivalent getType1Equivalent();", "public interface SignModel {\n /**\n * 登录\n * @param param 用户信息\n * @return 返回结果信息\n */\n @POST(\"signIn\")\n Call<MyResponse<User>> signIn(\n @Body SignInParam param\n );\n\n /**\n * 注册\n * @param param 用户信息\n * @return 返回结果信息\n */\n @POST(\"signUp\")\n Call<MyResponse<User>> signUp(\n @Body SignUpParam param\n );\n\n /**\n * 得到注册时的验证码\n * @param phone 用户手机号\n * @return 返回结果信息\n */\n @FormUrlEncoded\n @POST(\"getSignUpVerCode\")\n Call<MyResponse<String>> getSignUpVerCode(\n @Field(\"phone\") String phone\n );\n\n}", "public interface UserModel extends BaseModel<User> {\n\tpublic long getUserId();\n\n\tpublic void setUserId(long userId);\n\n\tpublic String getFirstName();\n\n\tpublic void setFirstName(String firstName);\n\n\tpublic String getLastName();\n\n\tpublic void setLastName(String lastName);\n\n\tpublic String getPassword();\n\n\tpublic void setPassword(String password);\n\n\tpublic boolean getActive();\n\n\tpublic void setActive(boolean active);\n\n\tpublic byte[] getImage();\n\n\tpublic void setImage(byte[] image);\n\n\tpublic interface Info extends Serializable {\n\t\tpublic Date getDob();\n\n\t\tpublic void setDob(Date dob);\n\n\t\tpublic interface Address extends Serializable {\n\t\t\tpublic String getStreet();\n\n\t\t\tpublic void setStreet(String street);\n\n\t\t\tpublic int getZip();\n\n\t\t\tpublic void setZip(int zip);\n\n\t\t\tpublic Map<String, Object> toMap();\n\t\t}\n\n\t\tpublic Address getAddress();\n\n\t\tpublic void setAddress(Address address);\n\n\t\tpublic String getPhone();\n\n\t\tpublic void setPhone(String phone);\n\n\t\tpublic List<Date> getReminders();\n\n\t\tpublic void setReminders(List<Date> reminders);\n\n\t\t/**\n\t\t* Appends to the end of List, irrespective of value already existing.\n\t\t* See addToReminders to add without duplicating.\n\t\t*/\n\t\tpublic void appendToReminders(Date reminders);\n\n\t\t/**\n\t\t* Appends to the end of List, irrespective of value already existing.\n\t\t* See addToReminders to add without duplicating.\n\t\t*/\n\t\tpublic void appendToReminders(List<Date> reminders);\n\n\t\t/**\n\t\t* Adds to the List by treating List as a Set.\n\t\t* Thus adds only if not already exists in the List and avoids duplication.\n\t\t* See appendToReminders to append to List.\n\t\t*/\n\t\tpublic void addToReminders(Date reminders);\n\n\t\t/**\n\t\t* Adds to the List by treating List as a Set.\n\t\t* Thus adds only if not already exists in the List and avoids duplication.\n\t\t* See appendToReminders to append to List.\n\t\t*/\n\t\tpublic void addToReminders(List<Date> reminders);\n\n\t\t/**\n\t\t* Removes all occurences of value from the List\n\t\t*/\n\t\tpublic void removeFromReminders(Date reminders);\n\n\t\t/**\n\t\t* Removes all occurences of all values from the List\n\t\t*/\n\t\tpublic void removeFromReminders(List<Date> reminders);\n\n\t\tpublic Map<String, Object> toMap();\n\t}\n\n\tpublic Info getInfo();\n\n\tpublic void setInfo(Info info);\n\n\tpublic List<String> getLikedCars();\n\n\tpublic void setLikedCars(List<String> likedCars);\n\n\t/**\n\t* Appends to the end of List, irrespective of value already existing.\n\t* See addToLikedCars to add without duplicating.\n\t*/\n\tpublic void appendToLikedCars(String likedCars);\n\n\t/**\n\t* Appends to the end of List, irrespective of value already existing.\n\t* See addToLikedCars to add without duplicating.\n\t*/\n\tpublic void appendToLikedCars(List<String> likedCars);\n\n\t/**\n\t* Adds to the List by treating List as a Set.\n\t* Thus adds only if not already exists in the List and avoids duplication.\n\t* See appendToLikedCars to append to List.\n\t*/\n\tpublic void addToLikedCars(String likedCars);\n\n\t/**\n\t* Adds to the List by treating List as a Set.\n\t* Thus adds only if not already exists in the List and avoids duplication.\n\t* See appendToLikedCars to append to List.\n\t*/\n\tpublic void addToLikedCars(List<String> likedCars);\n\n\t/**\n\t* Removes all occurences of value from the List\n\t*/\n\tpublic void removeFromLikedCars(String likedCars);\n\n\t/**\n\t* Removes all occurences of all values from the List\n\t*/\n\tpublic void removeFromLikedCars(List<String> likedCars);\n\n\tpublic List<String> getFollowedUsers();\n\n\tpublic void setFollowedUsers(List<String> followedUsers);\n\n\t/**\n\t* Appends to the end of List, irrespective of value already existing.\n\t* See addToFollowedUsers to add without duplicating.\n\t*/\n\tpublic void appendToFollowedUsers(String followedUsers);\n\n\t/**\n\t* Appends to the end of List, irrespective of value already existing.\n\t* See addToFollowedUsers to add without duplicating.\n\t*/\n\tpublic void appendToFollowedUsers(List<String> followedUsers);\n\n\t/**\n\t* Adds to the List by treating List as a Set.\n\t* Thus adds only if not already exists in the List and avoids duplication.\n\t* See appendToFollowedUsers to append to List.\n\t*/\n\tpublic void addToFollowedUsers(String followedUsers);\n\n\t/**\n\t* Adds to the List by treating List as a Set.\n\t* Thus adds only if not already exists in the List and avoids duplication.\n\t* See appendToFollowedUsers to append to List.\n\t*/\n\tpublic void addToFollowedUsers(List<String> followedUsers);\n\n\t/**\n\t* Removes all occurences of value from the List\n\t*/\n\tpublic void removeFromFollowedUsers(String followedUsers);\n\n\t/**\n\t* Removes all occurences of all values from the List\n\t*/\n\tpublic void removeFromFollowedUsers(List<String> followedUsers);\n}", "public interface PmlFileReturningInfoModel extends BaseModel<PmlFileReturningInfo> {\n public long getPrimaryKey();\n\n public void setPrimaryKey(long pk);\n\n public long getFileReturningInfoId();\n\n public void setFileReturningInfoId(long fileReturningInfoId);\n\n public String getFileId();\n\n public void setFileId(String fileId);\n\n public String getFileSender();\n\n public void setFileSender(String fileSender);\n\n public String getLicenseNumber();\n\n public void setLicenseNumber(String licenseNumber);\n\n public Date getIssuingDateLicense();\n\n public void setIssuingDateLicense(Date issuingDateLicense);\n\n public Date getReceiveLicenseDate();\n\n public void setReceiveLicenseDate(Date receiveLicenseDate);\n\n public String getDocumentNumber();\n\n public void setDocumentNumber(String documentNumber);\n\n public String getBillNumber();\n\n public void setBillNumber(String billNumber);\n\n public long getNumberMoney();\n\n public void setNumberMoney(long numberMoney);\n\n public String getNote();\n\n public void setNote(String note);\n\n public String getConclude();\n\n public void setConclude(String conclude);\n\n public PmlFileReturningInfo toEscapedModel();\n}", "PiEntityType entityType();", "InstanceModel createInstanceOfInstanceModel();", "PriceSummaryModel createInstanceOfPriceSummaryModel();", "ConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();", "public interface IProjectionModel extends IModel {\r\n\r\n /**\r\n * Gets the number of projected years.\r\n * \r\n * @return the number of years\r\n */\r\n int getYears();\r\n\r\n /**\r\n * Gets the number of projected generations.\r\n * \r\n * @return the number of generations\r\n */\r\n int getGenerations();\r\n\r\n /**\r\n * Gets the map parameter instance => Settype.\r\n * \r\n * @return the map from parameter instance to Settypes\r\n */\r\n Map<ParameterInstance, SetType> getInstanceSetTypes();\r\n\r\n /**\r\n * Gets the maximum age.\r\n * \r\n * @return the maximum age\r\n */\r\n int getMaximumAge();\r\n\r\n /**\r\n * Returns list of all {@link SetType} objects, the custom ones and the\r\n * default one.\r\n * \r\n * @return list of all {@link SetType} objects defined in this scenario (at\r\n * least the default {@link SetType} is defined)\r\n */\r\n List<SetType> getAllSetTypes();\r\n\r\n /**\r\n * Returns the {@link SubPopulationModel} this projection assumes.\r\n * \r\n * @return the {@link SubPopulationModel} of the projection\r\n */\r\n SubPopulationModel getSubPopulationModel();\r\n\r\n}", "public interface PlayerModel extends BaseModel {\n\n /**\n * The player's first name. (String, Not nullable)\n * Cannot be {@code null}.\n */\n @NonNull\n String getFirstname();\n\n /**\n * The player's last name. (String, Not nullable)\n * Cannot be {@code null}.\n */\n @NonNull\n String getLastname();\n\n /**\n * The player's position. (String, Not nullable)\n * Can be {@code null}.\n */\n @Nullable\n String getPlayerposition();\n\n /**\n * The player's jersey number. (Integer, Nullable)\n * Can be {@code null}.\n */\n @Nullable\n Integer getJerseynumber();\n\n /**\n * The player's birth date. (String, Nullable)\n * Can be {@code null}.\n */\n @Nullable\n String getDateofbirth();\n\n /**\n * The player's nationality. (String, Nullable)\n * Can be {@code null}.\n */\n @Nullable\n String getNationality();\n\n /**\n * The player's contract expiry date. (String, Nullable)\n * Can be {@code null}.\n */\n @Nullable\n String getContractuntildate();\n\n /**\n * The player's market value in the user's locale currency. (Double, Nullable)\n * Can be {@code null}.\n */\n @Nullable\n Double getMarketvalue();\n}", "public interface EvolvingSEIRDiseaseModelLabelValue extends SEIRLabelValue {\n}", "java.lang.String getSemanticLangidModelName();", "private void checkModels()\n {\n if (myDataType != null)\n {\n SpecialKey specialKey = myDataType.getMetaDataInfo().getSpecialTypeForKey(myField.get());\n if (specialKey instanceof TimeKey)\n {\n if (!(myCriterionValue instanceof DateModel))\n {\n switchValueModels(DateModel.class);\n }\n }\n else\n {\n if (myCriterionValue instanceof DateModel)\n {\n switchValueModels(GhostTextModel.class);\n }\n }\n }\n }", "CsticValueModel createInstanceOfCsticValueModel(int valueType);", "Type persistir(Type type);", "public Person toModelType() throws IllegalValueException {\n final List<Tag> personTags = new ArrayList<>();\n for (XmlAdaptedTag tag : tagged) {\n personTags.add(tag.toModelType());\n }\n\n if (name == null) {\n throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT, Name.class.getSimpleName()));\n }\n if (!Name.isValidName(name)) {\n throw new IllegalValueException(Name.MESSAGE_NAME_CONSTRAINTS);\n }\n final Name modelName = new Name(name);\n\n if (phone == null) {\n throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT, Phone.class.getSimpleName()));\n }\n if (!Phone.isValidPhone(phone)) {\n throw new IllegalValueException(Phone.MESSAGE_PHONE_CONSTRAINTS);\n }\n final Phone modelPhone = new Phone(phone);\n\n if (email == null) {\n throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT, Email.class.getSimpleName()));\n }\n if (!Email.isValidEmail(email)) {\n throw new IllegalValueException(Email.MESSAGE_EMAIL_CONSTRAINTS);\n }\n final Email modelEmail = new Email(email);\n\n if (address == null) {\n throw new IllegalValueException(String.format(MISSING_FIELD_MESSAGE_FORMAT, Address.class.getSimpleName()));\n }\n if (!Address.isValidAddress(address)) {\n throw new IllegalValueException(Address.MESSAGE_ADDRESS_CONSTRAINTS);\n }\n final Address modelAddress = new Address(address);\n //@@author LowGinWee\n final Position modelPosition;\n if (position == null) {\n modelPosition = new Position();\n } else if (!Position.isValidPosition(position)) {\n throw new IllegalValueException(Position.MESSAGE_POSITION_CONSTRAINTS);\n } else {\n modelPosition = new Position(position);\n }\n\n final Kpi modelKpi;\n if (kpi == null) {\n modelKpi = new Kpi();\n } else if (!Kpi.isValidKpi(kpi)) {\n throw new IllegalValueException(Kpi.MESSAGE_KPI_CONSTRAINTS);\n } else {\n modelKpi = new Kpi(kpi);\n }\n\n final Note modelNote;\n if (note == null) {\n modelNote = new Note();\n } else if (!Note.isValidNote(note)) {\n throw new IllegalValueException(Note.MESSAGE_NOTE_CONSTRAINTS);\n } else {\n modelNote = new Note(note);\n }\n //@@author\n final Set<Tag> modelTags = new HashSet<>(personTags);\n\n return new Person(\n modelName,\n modelPhone,\n modelEmail,\n modelAddress,\n modelPosition,\n modelKpi,\n modelNote,\n modelTags);\n }", "public static Serviceable getModel(AppModels type)\n {\n Serviceable tempObj;\n switch (type) {\n case KEYWORD_USER:\n tempObj = new KeywordUser();\n break;\n case QUIZ:\n tempObj = new Quiz();\n \n break;\n default:\n tempObj = null;\n break;\n }\n \n return tempObj;\n }", "public interface MerchandiserEntities {\n\n static Entity outletEntity() {\n return new Entity(\n Entities.OUTLET_ENTITY,\n OutletModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletModel.name),\n field(OutletModel.address),\n field(OutletModel.qrCode),\n field(OutletModel.location, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationGps, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationNetwork, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.images, JavaType.ARRAY, hasManyOutletImages())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_TABLE,\n OutletTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletModel.name, OutletTable.name),\n column(OutletModel.address, OutletTable.address),\n column(OutletModel.qrCode, OutletTable.qr_code)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n Entities.locationMapping(OutletModel.location, OutletTable.location_id),\n Entities.locationMapping(OutletModel.locationGps, OutletTable.location_id_gps),\n Entities.locationMapping(OutletModel.locationNetwork, OutletTable.location_id_network),\n outletImagesMapping()\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneLocation() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n Entities.LOCATION_ENTITY\n );\n }\n\n static Relationship hasManyOutletImages() {\n return new Relationship(\n Relationship.Type.ONE_TO_MANY,\n Relationship.Name.HAS_MANY,\n Entities.OUTLET_IMAGE_ENTITY\n );\n }\n\n static VirtualRelationMappingImpl outletImagesMapping() {\n return new VirtualRelationMappingImpl(\n Entities.OUTLET_IMAGE_TABLE,\n Entities.OUTLET_IMAGE_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletModel.images,\n new RelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.YES,\n RelationMappingOptions.CascadeDelete.YES,\n true\n )\n );\n }\n\n static Entity outletImageEntity() {\n return new Entity(\n Entities.OUTLET_IMAGE_ENTITY,\n OutletImageModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletImageModel.title),\n field(OutletImageModel.description),\n field(OutletImageModel.uri),\n field(OutletImageModel.file),\n field(OutletImageModel.fileName),\n field(OutletImageModel.height),\n field(OutletImageModel.width),\n field(OutletImageModel.outlet, JavaType.OBJECT, hasOneOutlet())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_IMAGE_TABLE,\n OutletImageTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletImageModel.title, OutletImageTable.title),\n column(OutletImageModel.description, OutletImageTable.description),\n column(OutletImageModel.uri, OutletImageTable.uri),\n column(OutletImageModel.file, OutletImageTable.file),\n column(OutletImageModel.fileName, OutletImageTable.file_name),\n column(OutletImageModel.height, OutletImageTable.height),\n column(OutletImageModel.width, OutletImageTable.width)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n new DirectRelationMappingImpl(\n OUTLET_TABLE,\n OUTLET_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletImageModel.outlet,\n new DirectRelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.NO,\n RelationMappingOptions.CascadeDelete.NO,\n true,\n DirectRelationMappingOptions.LoadAndDelete.LOAD_AND_DELETE\n )\n )\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneOutlet() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n OUTLET_ENTITY\n );\n }\n\n static Entity locationEntity() {\n return new Entity(\n LOCATION_ENTITY,\n LocationModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n Entities.field(LocationModel.lat),\n Entities.field(LocationModel.lng),\n Entities.field(LocationModel.accuracy)\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n LOCATION_TABLE,\n LocationTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n Entities.column(LocationModel.lat, LocationTable.lat),\n Entities.column(LocationModel.lng, LocationTable.lng),\n Entities.column(LocationModel.accuracy, LocationTable.accuracy)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n Entities.baseRelationMappingsArray()\n )\n );\n }\n}", "public interface Type<SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept<SomeType> {\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type<SomeType, SomeThing> asType() {\n return this;\n }\n\n @Override\n Remote<SomeType, SomeThing> asRemote(GraknClient.Transaction tx);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n\n interface Local<\n SomeType extends Type<SomeType, SomeThing>,\n SomeThing extends Thing<SomeThing, SomeType>>\n extends SchemaConcept.Local<SomeType>, Type<SomeType, SomeThing> {\n }\n\n /**\n * A Type represents any ontological element in the graph.\n * Types are used to model the behaviour of Thing and how they relate to each other.\n * They also aid in categorising Thing to different types.\n */\n interface Remote<\n SomeRemoteType extends Type<SomeRemoteType, SomeRemoteThing>,\n SomeRemoteThing extends Thing<SomeRemoteThing, SomeRemoteType>>\n extends SchemaConcept.Remote<SomeRemoteType>, Type<SomeRemoteType, SomeRemoteThing> {\n\n //------------------------------------- Modifiers ----------------------------------\n\n /**\n * Changes the Label of this Concept to a new one.\n *\n * @param label The new Label.\n * @return The Concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> label(Label label);\n\n /**\n * Sets the Type to be abstract - which prevents it from having any instances.\n *\n * @param isAbstract Specifies if the concept is to be abstract (true) or not (false).\n * @return The concept itself\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> isAbstract(Boolean isAbstract);\n\n /**\n * @param role The Role Type which the instances of this Type are allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> plays(Role role);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked in a strictly one-to-one mapping.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> key(AttributeType<?> attributeType);\n\n /**\n * Creates a RelationType which allows this type and a AttributeType to be linked.\n *\n * @param attributeType The AttributeType which instances of this type should be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> has(AttributeType<?> attributeType);\n\n //------------------------------------- Accessors ---------------------------------\n\n /**\n * @return A list of Role Types which instances of this Type can indirectly play.\n */\n Stream<Role.Remote> playing();\n\n /**\n * @return The AttributeTypes which this Type is linked with.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> attributes();\n\n /**\n * @return The AttributeTypes which this Type is linked with as a key.\n */\n @CheckReturnValue\n Stream<? extends AttributeType.Remote<?>> keys();\n\n /**\n * @return All the the super-types of this Type\n */\n @Override\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> sups();\n\n /**\n * Get all indirect sub-types of this type.\n * The indirect sub-types are the type itself and all indirect sub-types of direct sub-types.\n *\n * @return All the indirect sub-types of this Type\n */\n @Override\n @CheckReturnValue\n Stream<? extends Type.Remote<SomeRemoteType, SomeRemoteThing>> subs();\n\n /**\n * Get all indirect instances of this type.\n * The indirect instances are the direct instances and all indirect instances of direct sub-types.\n *\n * @return All the indirect instances of this type.\n */\n @CheckReturnValue\n Stream<? extends Thing.Remote<SomeRemoteThing, SomeRemoteType>> instances();\n\n /**\n * Return if the type is set to abstract.\n * By default, types are not abstract.\n *\n * @return returns true if the type is set to be abstract.\n */\n @CheckReturnValue\n Boolean isAbstract();\n\n //------------------------------------- Other ----------------------------------\n\n /**\n * Removes the ability of this Type to play a specific Role\n *\n * @param role The Role which the Things of this Type should no longer be allowed to play.\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unplay(Role role);\n\n /**\n * Removes the ability for Things of this Type to have Attributes of type AttributeType\n *\n * @param attributeType the AttributeType which this Type can no longer have\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unhas(AttributeType<?> attributeType);\n\n /**\n * Removes AttributeType as a key to this Type\n *\n * @param attributeType the AttributeType which this Type can no longer have as a key\n * @return The Type itself.\n */\n Type.Remote<SomeRemoteType, SomeRemoteThing> unkey(AttributeType<?> attributeType);\n\n @Deprecated\n @CheckReturnValue\n @Override\n default Type.Remote<SomeRemoteType, SomeRemoteThing> asType() {\n return this;\n }\n\n @Deprecated\n @CheckReturnValue\n @Override\n default boolean isType() {\n return true;\n }\n }\n}", "DomainModel createDomainModel();", "@SuppressWarnings({\"WeakerAccess\", \"unused\"})\npublic interface UserInfoModel extends BaseModel {\n\n long getId();\n\n @Nullable\n String getUid();\n\n @Nullable\n String getType();\n\n @Nullable\n String getUsername();\n}", "public interface VersiontableModel extends BaseModel {\n\n /**\n * Get the {@code version_name} value.\n * Can be {@code null}.\n */\n @Nullable\n String getVersionName();\n\n /**\n * Get the {@code version_id} value.\n * Can be {@code null}.\n */\n @Nullable\n Integer getVersionId();\n\n /**\n * Get the {@code model_id} value.\n * Can be {@code null}.\n */\n @Nullable\n Integer getModelId();\n\n /**\n * Get the {@code fuel_type} value.\n * Can be {@code null}.\n */\n @Nullable\n String getFuelType();\n}", "public interface PlanTeamHistoryModel extends BaseModel<PlanTeamHistory> {\n public Long getPrimaryKey();\n\n public void setPrimaryKey(Long pk);\n\n public Long getId();\n\n public void setId(Long id);\n\n public Long getPlanId();\n\n public void setPlanId(Long planId);\n\n public Long getUserId();\n\n public void setUserId(Long userId);\n\n public String getAction();\n\n public void setAction(String action);\n\n public String getPayload();\n\n public void setPayload(String payload);\n\n public Date getCreated();\n\n public void setCreated(Date created);\n\n public Long getUpdateAuthorId();\n\n public void setUpdateAuthorId(Long updateAuthorId);\n\n public PlanTeamHistory toEscapedModel();\n}", "public interface Model {\n /** {@code Predicate} that always evaluate to true */\n Predicate<ReadOnlyPerson> PREDICATE_SHOW_ALL_PERSONS = unused -> true;\n Predicate<ReadOnlyEvent> PREDICATE_SHOW_ALL_EVENTS = unused -> true;\n\n\n //@@author low5545\n /** Adds extra data to the existing model */\n void addData(ReadOnlyAddressBook newData);\n //@@author\n\n /** Clears existing backing model and replaces with the provided new data. */\n void resetData(ReadOnlyAddressBook newData);\n\n /** Returns the AddressBook */\n ReadOnlyAddressBook getAddressBook();\n\n //=========== Model support for property component =============================================================\n\n //@@author yunpengn\n /** Adds a new customize property */\n void addProperty(String shortName, String fullName, String message, String regex)\n throws DuplicatePropertyException, PatternSyntaxException;\n //@@author\n\n //=========== Model support for contact component =============================================================\n\n /** Adds the given person */\n void addPerson(ReadOnlyPerson person) throws DuplicatePersonException;\n\n /** Replaces the given person {@code target} with {@code editedPerson} */\n void updatePerson(ReadOnlyPerson target, ReadOnlyPerson editedPerson)\n throws DuplicatePersonException, PersonNotFoundException;\n\n /** Deletes the given person. */\n void deletePerson(ReadOnlyPerson target) throws PersonNotFoundException;\n\n /** Adds or updates the avatar of the selected person. */\n void setPersonAvatar(ReadOnlyPerson target, Avatar avatar);\n\n //@@author dennaloh\n /** Gets URL for google maps. */\n String getGMapUrl(ReadOnlyPerson target);\n\n /** Gets URL to search on facebook. */\n String getFbUrl (ReadOnlyPerson target);\n\n /** Opens URL in default browser. */\n void openUrl (String url);\n //@@author\n\n //=========== Model support for tag component =============================================================\n\n /** Removes the specific tag (from all persons with that tag) */\n void removeTag(Tag tags) throws DuplicatePersonException, PersonNotFoundException;\n\n /** Checks whether there exists a tag (with the same tagName) */\n boolean hasTag(Tag tag);\n\n //@@author yunpengn\n /** Changes the color of an existing tag (through TagColorManager) */\n void setTagColor(Tag tag, String color);\n\n //@@author\n\n\n\n //@@author junyango\n //=========== Model support for activity component =============================================================\n\n /** Adds an event */\n void addEvent(ReadOnlyEvent event) throws DuplicateEventException;\n\n /** Updates the given event */\n void updateEvent(ReadOnlyEvent target, ReadOnlyEvent editedEvent)\n throws DuplicateEventException, EventNotFoundException;\n /** Deletes the given event */\n void deleteEvent(ReadOnlyEvent target) throws EventNotFoundException;\n\n\n\n //@@author\n\n //@@author\n\n //=========== Filtered Person/Activity List support =============================================================\n\n /** Returns an unmodifiable view of the filtered person list */\n ObservableList<ReadOnlyPerson> getFilteredPersonList();\n\n /** Returns an unmodifiable view of the filtered event list */\n ObservableList<ReadOnlyEvent> getFilteredEventList();\n\n /** Updates the filter of the filtered person list to filter by the given {@code predicate}. */\n void updateFilteredPersonList(Predicate<ReadOnlyPerson> predicate);\n\n /** Updates the filter of the filtered event list to filter by the given {@code predicate}. */\n void updateFilteredEventsList(Predicate<ReadOnlyEvent> predicate);\n\n}", "TypedModel getModel();", "public interface ModelConverter {\n\n\tWorkingUnit convertFromDto(WorkingUnitDto workingUnitDto);\n\n\tWord convertFromDto(WordDto wordDto);\n\n\tWorkingUnitDto convertFromDomain(WorkingUnit workingUnit);\n\n\t// WordDto convertFromDomain (Word word);\n\tWordDtoImpl convertFromDomainImpl(Word word);\n\n\tPosAnnotation convertFromDto(PosAnnotationDto posDto);\n\n\tRectangleAnnotation convertFromDto(RectangleAnnotationDto raDto);\n\n\tFormAnnotation convertFromDto(FormAnnotationDto faDto);\n\n\tChapterRange convertFromDto(ChapterRangeDto crDto);\n\n\tLanguageRange convertFromDto(LanguageRangeDto lrDto);\n\n\tPosAnnotationDto convertFromDomain(PosAnnotation pos);\n\n}", "public InsulinType(){\n super();\n }", "public interface ModelData<A> {\n List<A> getPrimaryData();\n Map<String, String> getMetaData();\n}", "String getModelA();", "@ProviderType\npublic interface ItemShopBasketModel extends BaseModel<ItemShopBasket> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a item shop basket model instance should use the {@link ItemShopBasket} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this item shop basket.\n\t *\n\t * @return the primary key of this item shop basket\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this item shop basket.\n\t *\n\t * @param primaryKey the primary key of this item shop basket\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the item shop basket ID of this item shop basket.\n\t *\n\t * @return the item shop basket ID of this item shop basket\n\t */\n\tpublic long getItemShopBasketId();\n\n\t/**\n\t * Sets the item shop basket ID of this item shop basket.\n\t *\n\t * @param itemShopBasketId the item shop basket ID of this item shop basket\n\t */\n\tpublic void setItemShopBasketId(long itemShopBasketId);\n\n\t/**\n\t * Returns the shop basket ID of this item shop basket.\n\t *\n\t * @return the shop basket ID of this item shop basket\n\t */\n\tpublic long getShopBasketId();\n\n\t/**\n\t * Sets the shop basket ID of this item shop basket.\n\t *\n\t * @param shopBasketId the shop basket ID of this item shop basket\n\t */\n\tpublic void setShopBasketId(long shopBasketId);\n\n\t/**\n\t * Returns the name of this item shop basket.\n\t *\n\t * @return the name of this item shop basket\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this item shop basket.\n\t *\n\t * @param name the name of this item shop basket\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the imported of this item shop basket.\n\t *\n\t * @return the imported of this item shop basket\n\t */\n\tpublic boolean getImported();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is imported.\n\t *\n\t * @return <code>true</code> if this item shop basket is imported; <code>false</code> otherwise\n\t */\n\tpublic boolean isImported();\n\n\t/**\n\t * Sets whether this item shop basket is imported.\n\t *\n\t * @param imported the imported of this item shop basket\n\t */\n\tpublic void setImported(boolean imported);\n\n\t/**\n\t * Returns the exempt of this item shop basket.\n\t *\n\t * @return the exempt of this item shop basket\n\t */\n\tpublic boolean getExempt();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is exempt.\n\t *\n\t * @return <code>true</code> if this item shop basket is exempt; <code>false</code> otherwise\n\t */\n\tpublic boolean isExempt();\n\n\t/**\n\t * Sets whether this item shop basket is exempt.\n\t *\n\t * @param exempt the exempt of this item shop basket\n\t */\n\tpublic void setExempt(boolean exempt);\n\n\t/**\n\t * Returns the price of this item shop basket.\n\t *\n\t * @return the price of this item shop basket\n\t */\n\tpublic Double getPrice();\n\n\t/**\n\t * Sets the price of this item shop basket.\n\t *\n\t * @param price the price of this item shop basket\n\t */\n\tpublic void setPrice(Double price);\n\n\t/**\n\t * Returns the active of this item shop basket.\n\t *\n\t * @return the active of this item shop basket\n\t */\n\tpublic boolean getActive();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is active.\n\t *\n\t * @return <code>true</code> if this item shop basket is active; <code>false</code> otherwise\n\t */\n\tpublic boolean isActive();\n\n\t/**\n\t * Sets whether this item shop basket is active.\n\t *\n\t * @param active the active of this item shop basket\n\t */\n\tpublic void setActive(boolean active);\n\n\t/**\n\t * Returns the amount of this item shop basket.\n\t *\n\t * @return the amount of this item shop basket\n\t */\n\tpublic long getAmount();\n\n\t/**\n\t * Sets the amount of this item shop basket.\n\t *\n\t * @param amount the amount of this item shop basket\n\t */\n\tpublic void setAmount(long amount);\n\n\t/**\n\t * Returns the tax of this item shop basket.\n\t *\n\t * @return the tax of this item shop basket\n\t */\n\tpublic Double getTax();\n\n\t/**\n\t * Sets the tax of this item shop basket.\n\t *\n\t * @param tax the tax of this item shop basket\n\t */\n\tpublic void setTax(Double tax);\n\n\t/**\n\t * Returns the total of this item shop basket.\n\t *\n\t * @return the total of this item shop basket\n\t */\n\tpublic Double getTotal();\n\n\t/**\n\t * Sets the total of this item shop basket.\n\t *\n\t * @param total the total of this item shop basket\n\t */\n\tpublic void setTotal(Double total);\n\n}", "ZenModel createZenModel();", "@ProviderType\npublic interface PersonModel extends BaseModel<Person> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a person model instance should use the {@link Person} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this person.\n\t *\n\t * @return the primary key of this person\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this person.\n\t *\n\t * @param primaryKey the primary key of this person\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this person.\n\t *\n\t * @return the uuid of this person\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this person.\n\t *\n\t * @param uuid the uuid of this person\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the person ID of this person.\n\t *\n\t * @return the person ID of this person\n\t */\n\tpublic long getPersonId();\n\n\t/**\n\t * Sets the person ID of this person.\n\t *\n\t * @param personId the person ID of this person\n\t */\n\tpublic void setPersonId(long personId);\n\n\t/**\n\t * Returns the name of this person.\n\t *\n\t * @return the name of this person\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this person.\n\t *\n\t * @param name the name of this person\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the age of this person.\n\t *\n\t * @return the age of this person\n\t */\n\tpublic int getAge();\n\n\t/**\n\t * Sets the age of this person.\n\t *\n\t * @param age the age of this person\n\t */\n\tpublic void setAge(int age);\n\n\t/**\n\t * Returns the gender of this person.\n\t *\n\t * @return the gender of this person\n\t */\n\t@AutoEscape\n\tpublic String getGender();\n\n\t/**\n\t * Sets the gender of this person.\n\t *\n\t * @param gender the gender of this person\n\t */\n\tpublic void setGender(String gender);\n\n\t/**\n\t * Returns the email ID of this person.\n\t *\n\t * @return the email ID of this person\n\t */\n\t@AutoEscape\n\tpublic String getEmailId();\n\n\t/**\n\t * Sets the email ID of this person.\n\t *\n\t * @param emailId the email ID of this person\n\t */\n\tpublic void setEmailId(String emailId);\n\n\t/**\n\t * Returns the nationality of this person.\n\t *\n\t * @return the nationality of this person\n\t */\n\t@AutoEscape\n\tpublic String getNationality();\n\n\t/**\n\t * Sets the nationality of this person.\n\t *\n\t * @param nationality the nationality of this person\n\t */\n\tpublic void setNationality(String nationality);\n\n\t/**\n\t * Returns the occupation of this person.\n\t *\n\t * @return the occupation of this person\n\t */\n\t@AutoEscape\n\tpublic String getOccupation();\n\n\t/**\n\t * Sets the occupation of this person.\n\t *\n\t * @param occupation the occupation of this person\n\t */\n\tpublic void setOccupation(String occupation);\n\n}", "public interface EvolvingSIDiseaseModelLabelValue extends SILabelValue {\n}", "public interface UserModel {\n\n\n}", "public interface PlansUserSettingsModel extends BaseModel<PlansUserSettings> {\n public Long getPrimaryKey();\n\n public void setPrimaryKey(Long pk);\n\n public Long getPlanUserSettingsId();\n\n public void setPlanUserSettingsId(Long planUserSettingsId);\n\n public Long getUserId();\n\n public void setUserId(Long userId);\n\n public Long getPlanTypeId();\n\n public void setPlanTypeId(Long planTypeId);\n\n public String getSortColumn();\n\n public void setSortColumn(String sortColumn);\n\n public String getSortDirection();\n\n public void setSortDirection(String sortDirection);\n\n public Boolean getFilterEnabled();\n\n public void setFilterEnabled(Boolean filterEnabled);\n\n public Boolean getFilterPositionsAll();\n\n public void setFilterPositionsAll(Boolean filterPositionsAll);\n\n public PlansUserSettings toEscapedModel();\n}", "String getModelB();", "public interface SignReflection {\n /**\n * Reads an input packet of sign being updated\n *\n * @param packet The input packet of the sign being updated\n * @return The lines stored in the input packet\n */\n String[] readLines(Object packet);\n\n /**\n * Generates the sign editor packet\n *\n * @param location The location of the sign for the player's world or the game world\n * @return The output packet that includes the required information to open the sign editor\n */\n Object openSignEditor(Location location);\n\n /**\n * Update sign lines to the player\n *\n * @param player The player that you aim to update the sign for\n * @param location The location of the sign in the player's world\n * @param lines The new values of the lines of the sign\n */\n void updateSignToPlayer(Player player, Location location, String[] lines);\n\n /**\n * Send a block change that sets a certain block to be a sign.\n * Legacy and latest versions of Bukkit API includes different type of sign Material\n *\n * @param player The player to send the block change to\n * @param location The location of the block\n * @param data Raw data in bytes about the block\n */\n void sendSignChangeToPlayer(Player player, Location location, byte data);\n\n /**\n * Sends a packet to the player using NMS\n *\n * @param player The player that you are going to send the packet to\n * @param packet The object of the output packet\n */\n void sendPacketToPlayer(Player player, Object packet);\n}", "SolvableConflictModel createInstanceOfSolvableConflictModel();", "public void createModelFromAlloy(){\n\t\t// Get signatures list\n\t\tSafeList<Sig> sigs = module.getAllSigs();\n\t\t// Check if the list is empty\n\t\tif(sigs.isEmpty()) assertMessage(\"Error in create Model FromAlloy: no sig found!\");\n\t\t// Generate java class source file for one top-level sig at a time\n\t\tfor(int i = 0; i<sigs.size(); i++) {\n\t\t\tSig aSig = sigs.get(i);\n\t\t\tif (!aSig.isTopLevel()) continue;\n\t\t\tif(!aSig.builtin){ // User-defined sig\n\t\t\t\tif(aSig.isSubsig != null){\n\t\t\t\t\tPrimSig pSig = (PrimSig) aSig;\n\t\t\t\t\trecursiveGenerate(null, pSig);\t\n\t\t\t\t} else assertMessage(\"TODO: Dealt with subset sig\");\n\t\t\t}\n\t\t\telse assertMessage(\"TODO: Dealt with built-in sig\");\n\t\t}\n\t}", "public interface Profile extends Model {\n /**\n * The fields that represent the Profile object in json form. <p/> </p>\n */\n public static enum Field {\n /**\n * The json field for identityId.\n */\n IDENTITY_ID(\"identityId\"),\n\n /**\n * The json field for fullName.\n */\n FULL_NAME(\"fullName\"),\n\n /**\n * The json field for avatarUrl.\n */\n AVATAR_URL(\"avatarUrl\");\n\n /**\n * The json field that the instance represents.\n */\n private final String jsonString;\n\n /**\n * Creates a field base on the a json element.\n *\n * @param jsonString the name of the element\n */\n private Field(String jsonString) {\n this.jsonString = jsonString;\n }\n\n /**\n * Emits the field as a json element.\n *\n * @return the field name\n */\n @Override\n public String toString() {\n return jsonString;\n }\n }\n\n /**\n * Gets the identity id associated with this profile.\n *\n * @return the identity id\n */\n String getIdentityId();\n\n /**\n * Sets the identity id associated with this profile.\n *\n * @param identityId the identity id\n */\n void setIdentityId(String identityId);\n\n /**\n * Gets the full name of the associated identity.\n *\n * @return the full name\n */\n String getFullName();\n\n /**\n * Sets the full name of the associated identity.\n *\n * @param fullName the full name\n */\n void setFullName(String fullName);\n\n /**\n * Gets the avatar url of the associated identity.\n *\n * @return the avatar url\n */\n String getAvatarUrl();\n\n /**\n * Sets the avatar url of the associated identity.\n *\n * @param avatarUrl the avatar url\n */\n void setAvatarUrl(String avatarUrl);\n\n}", "@ProviderType\npublic interface RegisterModel\n\textends BaseModel<Register>, GroupedModel, ShardedModel, StagedAuditedModel,\n\t\t\tWorkflowedModel {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a register model instance should use the {@link Register} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this register.\n\t *\n\t * @return the primary key of this register\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this register.\n\t *\n\t * @param primaryKey the primary key of this register\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this register.\n\t *\n\t * @return the uuid of this register\n\t */\n\t@AutoEscape\n\t@Override\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this register.\n\t *\n\t * @param uuid the uuid of this register\n\t */\n\t@Override\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the register ID of this register.\n\t *\n\t * @return the register ID of this register\n\t */\n\tpublic long getRegisterId();\n\n\t/**\n\t * Sets the register ID of this register.\n\t *\n\t * @param registerId the register ID of this register\n\t */\n\tpublic void setRegisterId(long registerId);\n\n\t/**\n\t * Returns the group ID of this register.\n\t *\n\t * @return the group ID of this register\n\t */\n\t@Override\n\tpublic long getGroupId();\n\n\t/**\n\t * Sets the group ID of this register.\n\t *\n\t * @param groupId the group ID of this register\n\t */\n\t@Override\n\tpublic void setGroupId(long groupId);\n\n\t/**\n\t * Returns the company ID of this register.\n\t *\n\t * @return the company ID of this register\n\t */\n\t@Override\n\tpublic long getCompanyId();\n\n\t/**\n\t * Sets the company ID of this register.\n\t *\n\t * @param companyId the company ID of this register\n\t */\n\t@Override\n\tpublic void setCompanyId(long companyId);\n\n\t/**\n\t * Returns the user ID of this register.\n\t *\n\t * @return the user ID of this register\n\t */\n\t@Override\n\tpublic long getUserId();\n\n\t/**\n\t * Sets the user ID of this register.\n\t *\n\t * @param userId the user ID of this register\n\t */\n\t@Override\n\tpublic void setUserId(long userId);\n\n\t/**\n\t * Returns the user uuid of this register.\n\t *\n\t * @return the user uuid of this register\n\t */\n\t@Override\n\tpublic String getUserUuid();\n\n\t/**\n\t * Sets the user uuid of this register.\n\t *\n\t * @param userUuid the user uuid of this register\n\t */\n\t@Override\n\tpublic void setUserUuid(String userUuid);\n\n\t/**\n\t * Returns the user name of this register.\n\t *\n\t * @return the user name of this register\n\t */\n\t@AutoEscape\n\t@Override\n\tpublic String getUserName();\n\n\t/**\n\t * Sets the user name of this register.\n\t *\n\t * @param userName the user name of this register\n\t */\n\t@Override\n\tpublic void setUserName(String userName);\n\n\t/**\n\t * Returns the create date of this register.\n\t *\n\t * @return the create date of this register\n\t */\n\t@Override\n\tpublic Date getCreateDate();\n\n\t/**\n\t * Sets the create date of this register.\n\t *\n\t * @param createDate the create date of this register\n\t */\n\t@Override\n\tpublic void setCreateDate(Date createDate);\n\n\t/**\n\t * Returns the modified date of this register.\n\t *\n\t * @return the modified date of this register\n\t */\n\t@Override\n\tpublic Date getModifiedDate();\n\n\t/**\n\t * Sets the modified date of this register.\n\t *\n\t * @param modifiedDate the modified date of this register\n\t */\n\t@Override\n\tpublic void setModifiedDate(Date modifiedDate);\n\n\t/**\n\t * Returns the first_name of this register.\n\t *\n\t * @return the first_name of this register\n\t */\n\t@AutoEscape\n\tpublic String getFirst_name();\n\n\t/**\n\t * Sets the first_name of this register.\n\t *\n\t * @param first_name the first_name of this register\n\t */\n\tpublic void setFirst_name(String first_name);\n\n\t/**\n\t * Returns the last_name of this register.\n\t *\n\t * @return the last_name of this register\n\t */\n\t@AutoEscape\n\tpublic String getLast_name();\n\n\t/**\n\t * Sets the last_name of this register.\n\t *\n\t * @param last_name the last_name of this register\n\t */\n\tpublic void setLast_name(String last_name);\n\n\t/**\n\t * Returns the email_address of this register.\n\t *\n\t * @return the email_address of this register\n\t */\n\t@AutoEscape\n\tpublic String getEmail_address();\n\n\t/**\n\t * Sets the email_address of this register.\n\t *\n\t * @param email_address the email_address of this register\n\t */\n\tpublic void setEmail_address(String email_address);\n\n\t/**\n\t * Returns the user_name of this register.\n\t *\n\t * @return the user_name of this register\n\t */\n\t@AutoEscape\n\tpublic String getUser_name();\n\n\t/**\n\t * Sets the user_name of this register.\n\t *\n\t * @param user_name the user_name of this register\n\t */\n\tpublic void setUser_name(String user_name);\n\n\t/**\n\t * Returns the birthday of this register.\n\t *\n\t * @return the birthday of this register\n\t */\n\tpublic Date getBirthday();\n\n\t/**\n\t * Sets the birthday of this register.\n\t *\n\t * @param birthday the birthday of this register\n\t */\n\tpublic void setBirthday(Date birthday);\n\n\t/**\n\t * Returns the gender of this register.\n\t *\n\t * @return the gender of this register\n\t */\n\t@AutoEscape\n\tpublic String getGender();\n\n\t/**\n\t * Sets the gender of this register.\n\t *\n\t * @param gender the gender of this register\n\t */\n\tpublic void setGender(String gender);\n\n\t/**\n\t * Returns the password2 of this register.\n\t *\n\t * @return the password2 of this register\n\t */\n\t@AutoEscape\n\tpublic String getPassword2();\n\n\t/**\n\t * Sets the password2 of this register.\n\t *\n\t * @param password2 the password2 of this register\n\t */\n\tpublic void setPassword2(String password2);\n\n\t/**\n\t * Returns the home_phone of this register.\n\t *\n\t * @return the home_phone of this register\n\t */\n\tpublic Long getHome_phone();\n\n\t/**\n\t * Sets the home_phone of this register.\n\t *\n\t * @param home_phone the home_phone of this register\n\t */\n\tpublic void setHome_phone(Long home_phone);\n\n\t/**\n\t * Returns the mobile_phone of this register.\n\t *\n\t * @return the mobile_phone of this register\n\t */\n\tpublic Long getMobile_phone();\n\n\t/**\n\t * Sets the mobile_phone of this register.\n\t *\n\t * @param mobile_phone the mobile_phone of this register\n\t */\n\tpublic void setMobile_phone(Long mobile_phone);\n\n\t/**\n\t * Returns the address of this register.\n\t *\n\t * @return the address of this register\n\t */\n\t@AutoEscape\n\tpublic String getAddress();\n\n\t/**\n\t * Sets the address of this register.\n\t *\n\t * @param address the address of this register\n\t */\n\tpublic void setAddress(String address);\n\n\t/**\n\t * Returns the address2 of this register.\n\t *\n\t * @return the address2 of this register\n\t */\n\t@AutoEscape\n\tpublic String getAddress2();\n\n\t/**\n\t * Sets the address2 of this register.\n\t *\n\t * @param address2 the address2 of this register\n\t */\n\tpublic void setAddress2(String address2);\n\n\t/**\n\t * Returns the city of this register.\n\t *\n\t * @return the city of this register\n\t */\n\t@AutoEscape\n\tpublic String getCity();\n\n\t/**\n\t * Sets the city of this register.\n\t *\n\t * @param city the city of this register\n\t */\n\tpublic void setCity(String city);\n\n\t/**\n\t * Returns the state of this register.\n\t *\n\t * @return the state of this register\n\t */\n\t@AutoEscape\n\tpublic String getState();\n\n\t/**\n\t * Sets the state of this register.\n\t *\n\t * @param state the state of this register\n\t */\n\tpublic void setState(String state);\n\n\t/**\n\t * Returns the zip of this register.\n\t *\n\t * @return the zip of this register\n\t */\n\t@AutoEscape\n\tpublic String getZip();\n\n\t/**\n\t * Sets the zip of this register.\n\t *\n\t * @param zip the zip of this register\n\t */\n\tpublic void setZip(String zip);\n\n\t/**\n\t * Returns the security_question of this register.\n\t *\n\t * @return the security_question of this register\n\t */\n\t@AutoEscape\n\tpublic String getSecurity_question();\n\n\t/**\n\t * Sets the security_question of this register.\n\t *\n\t * @param security_question the security_question of this register\n\t */\n\tpublic void setSecurity_question(String security_question);\n\n\t/**\n\t * Returns the security_answer of this register.\n\t *\n\t * @return the security_answer of this register\n\t */\n\t@AutoEscape\n\tpublic String getSecurity_answer();\n\n\t/**\n\t * Sets the security_answer of this register.\n\t *\n\t * @param security_answer the security_answer of this register\n\t */\n\tpublic void setSecurity_answer(String security_answer);\n\n\t/**\n\t * Returns the accepted_tou of this register.\n\t *\n\t * @return the accepted_tou of this register\n\t */\n\tpublic boolean getAccepted_tou();\n\n\t/**\n\t * Returns <code>true</code> if this register is accepted_tou.\n\t *\n\t * @return <code>true</code> if this register is accepted_tou; <code>false</code> otherwise\n\t */\n\tpublic boolean isAccepted_tou();\n\n\t/**\n\t * Sets whether this register is accepted_tou.\n\t *\n\t * @param accepted_tou the accepted_tou of this register\n\t */\n\tpublic void setAccepted_tou(boolean accepted_tou);\n\n\t/**\n\t * Returns the status of this register.\n\t *\n\t * @return the status of this register\n\t */\n\t@Override\n\tpublic int getStatus();\n\n\t/**\n\t * Sets the status of this register.\n\t *\n\t * @param status the status of this register\n\t */\n\t@Override\n\tpublic void setStatus(int status);\n\n\t/**\n\t * Returns the status by user ID of this register.\n\t *\n\t * @return the status by user ID of this register\n\t */\n\t@Override\n\tpublic long getStatusByUserId();\n\n\t/**\n\t * Sets the status by user ID of this register.\n\t *\n\t * @param statusByUserId the status by user ID of this register\n\t */\n\t@Override\n\tpublic void setStatusByUserId(long statusByUserId);\n\n\t/**\n\t * Returns the status by user uuid of this register.\n\t *\n\t * @return the status by user uuid of this register\n\t */\n\t@Override\n\tpublic String getStatusByUserUuid();\n\n\t/**\n\t * Sets the status by user uuid of this register.\n\t *\n\t * @param statusByUserUuid the status by user uuid of this register\n\t */\n\t@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid);\n\n\t/**\n\t * Returns the status by user name of this register.\n\t *\n\t * @return the status by user name of this register\n\t */\n\t@AutoEscape\n\t@Override\n\tpublic String getStatusByUserName();\n\n\t/**\n\t * Sets the status by user name of this register.\n\t *\n\t * @param statusByUserName the status by user name of this register\n\t */\n\t@Override\n\tpublic void setStatusByUserName(String statusByUserName);\n\n\t/**\n\t * Returns the status date of this register.\n\t *\n\t * @return the status date of this register\n\t */\n\t@Override\n\tpublic Date getStatusDate();\n\n\t/**\n\t * Sets the status date of this register.\n\t *\n\t * @param statusDate the status date of this register\n\t */\n\t@Override\n\tpublic void setStatusDate(Date statusDate);\n\n\t/**\n\t * Returns <code>true</code> if this register is approved.\n\t *\n\t * @return <code>true</code> if this register is approved; <code>false</code> otherwise\n\t */\n\t@Override\n\tpublic boolean isApproved();\n\n\t/**\n\t * Returns <code>true</code> if this register is denied.\n\t *\n\t * @return <code>true</code> if this register is denied; <code>false</code> otherwise\n\t */\n\t@Override\n\tpublic boolean isDenied();\n\n\t/**\n\t * Returns <code>true</code> if this register is a draft.\n\t *\n\t * @return <code>true</code> if this register is a draft; <code>false</code> otherwise\n\t */\n\t@Override\n\tpublic boolean isDraft();\n\n\t/**\n\t * Returns <code>true</code> if this register is expired.\n\t *\n\t * @return <code>true</code> if this register is expired; <code>false</code> otherwise\n\t */\n\t@Override\n\tpublic boolean isExpired();\n\n\t/**\n\t * Returns <code>true</code> if this register is inactive.\n\t *\n\t * @return <code>true</code> if this register is inactive; <code>false</code> otherwise\n\t */\n\t@Override\n\tpublic boolean isInactive();\n\n\t/**\n\t * Returns <code>true</code> if this register is incomplete.\n\t *\n\t * @return <code>true</code> if this register is incomplete; <code>false</code> otherwise\n\t */\n\t@Override\n\tpublic boolean isIncomplete();\n\n\t/**\n\t * Returns <code>true</code> if this register is pending.\n\t *\n\t * @return <code>true</code> if this register is pending; <code>false</code> otherwise\n\t */\n\t@Override\n\tpublic boolean isPending();\n\n\t/**\n\t * Returns <code>true</code> if this register is scheduled.\n\t *\n\t * @return <code>true</code> if this register is scheduled; <code>false</code> otherwise\n\t */\n\t@Override\n\tpublic boolean isScheduled();\n\n}", "public interface VistaListacomprasnoclienteModel extends TemplateModel {\n // Add setters and getters for template properties here.\n }", "public interface PlaceTypeLinkModel extends BaseModel {\n\n /**\n * Get the {@code place_id} value.\n */\n long getPlaceId();\n\n /**\n * Get the {@code place_type_id} value.\n */\n long getPlaceTypeId();\n}", "ModelData getModel();", "java.lang.String getModel();", "public interface OrderShippingTotal extends Model {\n float getBaseShippingAmount();\n float getBaseShippingDiscountAmount();\n float getBaseShippingDiscountTaxCompensationAmnt();\n float getBaseShippingInclTax();\n float getBaseShippingInvoiced();\n float getBaseShippingTaxAmount();\n float getShippingAmount();\n float getShippingDiscountAmount();\n float getShippingDiscountTaxCompensationAmount();\n float getShippingInclTax();\n float getShippingInvoiced();\n float getShippingTaxAmount();\n}", "public abstract TypeSerializer<IN> getInputTypeSerializer();", "public interface BaseModel {\n\n String getName();\n}", "public interface IModelTamanho {\r\n\t\r\n\tpublic void setCodigo(String cCodigo);\r\n\tpublic void setDescricao(String cDescricao);\r\n\tpublic void setPeso(double nPeso);\r\n\tpublic void setAltura(double nAltura);\r\n\tpublic void setLargura (double nLargura);\r\n\tpublic void setComprimento (double nComprimento);\r\n\tpublic String getCodigo();\r\n\tpublic String getDescricao();\r\n\tpublic double getPeso();\r\n\tpublic double getAltura();\r\n\tpublic double getLargura();\r\n\tpublic double getComprimento();\r\n\tpublic String toString();\r\n\t\r\n}", "private String getType(){\r\n return type;\r\n }", "public interface StandardTypesLocalService {\n BigInteger getNewBigInteger(BigInteger bi);\n BigInteger[] getNewBigIntegerArray(BigInteger[] bia);\n \n BigDecimal getNewBigDecimal(BigDecimal bd);\n BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda);\n\n Calendar getNewCalendar(Calendar c);\n Calendar[] getNewCalendarArray(Calendar[] ca);\n \n Date getNewDate(Date d);\n Date[] getNewDateArray(Date[] da);\n\n QName getNewQName(QName qname);\n QName[] getNewQNameArray(QName[] qnames);\n \n URI getNewURI(URI uri);\n URI[] getNewURIArray(URI[] uris);\n \n XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal);\n XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcal);\n \n Duration getNewDuration(Duration d);\n Duration[] getNewDurationArray(Duration[] da);\n \n Object getNewObject(Object obj);\n Object[] getNewObjectArray(Object[] objs);\n \n Image getNewImage(Image img);\n Image[] getNewImageArray(Image[] imgs);\n \n DataHandler getNewDataHandler(DataHandler dh);\n DataHandler[] getNewDataHandlerArray(DataHandler[] dha);\n\n Source getNewSource(Source src);\n Source[] getNewSourceArray(Source[] srcs);\n \n UUID getNewUUID(UUID uuid);\n UUID[] getNewUUIDArray(UUID[] uuids);\n}", "protected abstract String getType();", "public interface TaslyOrderLineQuantityData extends OrderLineQuantityData, PropertyAware\n{\n\t/**<i>Generated managed object type code constant.</i>*/\n\tString _TYPECODE = \"TaslyOrderLineQuantityData\";\n\t\n\t/** <i>Generated constant</i> - Attribute key of <code>TaslyOrderLineQuantityData.express_code</code> attribute defined at extension <code>oms-tasly-ext-order</code>. */\n\tAttributeType<TaslyOrderLineQuantityData, String> EXPRESS_CODE = new AttributeType<>(\"express_code\");\n\t/** <i>Generated constant</i> - Attribute key of <code>TaslyOrderLineQuantityData.express_order_id</code> attribute defined at extension <code>oms-tasly-ext-order</code>. */\n\tAttributeType<TaslyOrderLineQuantityData, String> EXPRESS_ORDER_ID = new AttributeType<>(\"express_order_id\");\n\t/** <i>Generated constant</i> - Attribute key of <code>TaslyOrderLineQuantityData.refundstatus</code> attribute defined at extension <code>oms-tasly-ext-order</code>. */\n\tAttributeType<TaslyOrderLineQuantityData, String> REFUNDSTATUS = new AttributeType<>(\"refundstatus\");\n\n\t/** <i>Generated constant</i> - Index of <code>TaslyOrderLineQuantityData</code> type defined at extension <code>oms-tasly-ext-order</code>. */\n\tUniqueIndexSingle<TaslyOrderLineQuantityData, Long> UX_ORDERLINEQUANTITIES_OLQID = new UniqueIndexSingle<>(\"UX_orderLineQuantities_olqId\", TaslyOrderLineQuantityData.class);\n\n\t/**\n\t * <i>Generated method</i> - Getter of the <code>TaslyOrderLineQuantityData.express_order_id</code> attribute defined at extension <code>oms-tasly-ext-order</code>.\n\t * <p/>\n\t * 快递运单号.\n\t * \n\t * @return the express_order_id\n\t */\n\[email protected](max=64)\n\tjava.lang.String getExpress_order_id();\n\t\n\t/**\n\t * <i>Generated method</i> - Getter of the <code>TaslyOrderLineQuantityData.express_code</code> attribute defined at extension <code>oms-tasly-ext-order</code>.\n\t * <p/>\n\t * 快递公司代码.\n\t * \n\t * @return the express_code\n\t */\n\[email protected](max=10)\n\tjava.lang.String getExpress_code();\n\t\n\t/**\n\t * <i>Generated method</i> - Getter of the <code>TaslyOrderLineQuantityData.refundstatus</code> attribute defined at extension <code>oms-tasly-ext-order</code>.\n\t * <p/>\n\t * 退款、退货状态.\n\t * \n\t * @return the refundstatus\n\t */\n\[email protected](max=128)\n\tjava.lang.String getRefundstatus();\n\t\n\n\t/**\n\t * <i>Generated method</i> - Setter of <code>TaslyOrderLineQuantityData.express_order_id</code> attribute defined at extension <code>oms-tasly-ext-order</code>. \n\t * <p/>\n\t * 快递运单号.\n\t *\n\t * @param value the express_order_id\n\t */\n\tvoid setExpress_order_id(final java.lang.String value);\n\t\n\t/**\n\t * <i>Generated method</i> - Setter of <code>TaslyOrderLineQuantityData.express_code</code> attribute defined at extension <code>oms-tasly-ext-order</code>. \n\t * <p/>\n\t * 快递公司代码.\n\t *\n\t * @param value the express_code\n\t */\n\tvoid setExpress_code(final java.lang.String value);\n\t\n\t/**\n\t * <i>Generated method</i> - Setter of <code>TaslyOrderLineQuantityData.refundstatus</code> attribute defined at extension <code>oms-tasly-ext-order</code>. \n\t * <p/>\n\t * 退款、退货状态.\n\t *\n\t * @param value the refundstatus\n\t */\n\tvoid setRefundstatus(final java.lang.String value);\n\t\n}", "private Model getThisModel(String name, Model model) {\n\t\t\t\n\t\t\t Model modret=ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\t\t\t String text=dbs.getModel(name);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"TEXT\"+text+\"TEXT!!!\");\n\t\t\t\t if(text==null){\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t\treturn modret;\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t //read model \n\t\t\t\t\t InputStream input = new ByteArrayInputStream(text.getBytes());\n\t \n\t\t\t\t\t modret.read(input, null,\"RDF/JSON\");\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t }\n\t\t\t\t return modret;\n\t \n\t\t }", "fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();", "com.google.cloud.tpu.v1.Symptom.SymptomType getSymptomType();", "protected String getStrainType()\n{\n\treturn \"Met E\";\n}", "DomainValuesType createDomainValuesType();", "public interface NegotiationTransmission {\n\n /**\n * The method <code>getTransmissionId</code> returns the transmission id of the negotiation transmission\n * @return an UUID the transmission id of the negotiation transmission\n */\n UUID getTransmissionId();\n\n /**\n * The method <code>getTransactionId</code> returns the transaction id of the negotiation transmission\n * @return an UUID the transaction id of the negotiation transmission\n */\n UUID getTransactionId();\n\n /**\n * The method <code>getNegotiationId</code> returns the negotiation id of the negotiation transmission\n * @return an UUID the negotiation id of the negotiation\n */\n UUID getNegotiationId();\n\n /**\n * The method <code>getNegotiationTransactionType</code> returns the transaction type of the negotiation transmission\n * @return an NegotiationTransactionType of the transaction type\n */\n NegotiationTransactionType getNegotiationTransactionType();\n\n /**\n * The method <code>getPublicKeyActorSend</code> returns the public key the actor send of the negotiation transaction\n * @return an String the public key of the actor send\n */\n String getPublicKeyActorSend();\n\n /**\n * The method <code>getActorSendType</code> returns the actor send type of the negotiation transmission\n * @return an PlatformComponentType of the actor send type\n */\n PlatformComponentType getActorSendType();\n\n /**\n * The method <code>getPublicKeyActorReceive</code> returns the public key the actor receive of the negotiation transmission\n * @return an String the public key of the actor receive\n */\n String getPublicKeyActorReceive();\n\n /**\n * The method <code>getActorReceiveType</code> returns the actor receive type of the negotiation transmission\n * @return an PlatformComponentType of the actor receive type\n */\n PlatformComponentType getActorReceiveType();\n\n /**\n * The method <code>getTransmissionType</code> returns the type of the negotiation transmission\n * @return an NegotiationTransmissionType of the negotiation type\n */\n NegotiationTransmissionType getTransmissionType();\n\n /**\n * The method <code>getTransmissionState</code> returns the state of the negotiation transmission\n * @return an NegotiationTransmissionStateof the negotiation state\n */\n NegotiationTransmissionState getTransmissionState();\n\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an NegotiationType the negotiation type of negotiation\n */\n NegotiationType getNegotiationType();\n\n void setNegotiationType(NegotiationType negotiationType);\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an String the xml of negotiation\n */\n String getNegotiationXML();\n\n /**\n * The method <code>getTimestamp</code> returns the time stamp of the negotiation transmission\n * @return an Long the time stamp of the negotiation transmission\n */\n long getTimestamp();\n\n /**\n * The method <code>isPendingToRead</code> returns if this pending to read the negotiation transmission\n * @return an boolean if this pending to read\n */\n boolean isPendingToRead();\n\n /**\n * The method <code>confirmRead</code> confirm the read of the negotiation trasmission\n */\n void confirmRead();\n\n /**\n * The method <code>setNegotiationTransactionType</code> set the negotiation transaction type\n */\n void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);\n\n /**\n * The method <code>setTransmissionType</code> set the Transmission Type\n */\n void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);\n\n /**\n * The method <code>setTransmissionState</code> set the Transmission State\n */\n void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);\n\n public boolean isFlagRead();\n\n public void setFlagRead(boolean flagRead);\n\n public int getSentCount();\n\n public void setSentCount(int sentCount);\n\n public UUID getResponseToNotificationId();\n\n public void setResponseToNotificationId(UUID responseToNotificationId);\n\n public boolean isPendingFlag();\n\n public void setPendingFlag(boolean pendingFlag);\n\n public String toJson();\n\n}", "com.google.protobuf.ByteString getModelBytes();", "public static String getToModelMappingFromType(Type type) {\n switch (type.getTypeName()) {\n case CLASS_STRING:\n return STRING_TO_MODEL;\n case CLASS_INTEGER:\n return INT_TO_MODEL;\n case CLASS_DOUBLE:\n return DOUBLE_TO_MODEL;\n case CLASS_LONG:\n return LONG_TO_MODEL;\n case CLASS_BYTE:\n return BYTE_TO_MODEL;\n case CLASS_BOOLEAN:\n return BOOL_TO_MODEL;\n case CLASS_FLOAT:\n return FLOAT_TO_MODEL;\n }\n String className = ((Class) type).getSimpleName();\n return className + MAPPER + DOT + TO_MODEL + className;\n }", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "@Test\n public void testConvertPhenotypeAssociation() {\n assertThat( searchService.loadValueObject( SearchResult.from( PhenotypeAssociation.class, phenotypeAssociation, 1.0, \"test object\" ) ) )\n .extracting( \"resultObject\" )\n .isSameAs( phenotypeAssociation );\n assertThat( searchService.loadValueObjects( Collections.singleton( SearchResult.from( PhenotypeAssociation.class, phenotypeAssociation, 1.0, \"test object\" ) ) ) )\n .extracting( \"resultObject\" )\n .containsExactly( phenotypeAssociation );\n }", "public interface Model {\n\n /**\n * @return - List\n */\n List<Client> retrieveAllClients();\n\n /**\n * @param client - Объект класса Client\n */\n void createClient(Client client);\n\n /**\n * Метод удаления\n */\n void deleteAllClients();\n\n /**\n * @param clientId - String UUID\n */\n void deleteClientById(String clientId);\n\n /**\n * @param updateClientId - String UUID\n * @param editedClient - Объект класса Client\n */\n void updateClient(String updateClientId, Client editedClient);\n\n /**\n * @param id - String UUID\n * @return - boolean\n */\n boolean checkClientForExistence(String id);\n\n /**\n * @param phoneNumber - String matches regex \"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\\\.[A-Z]{2,6}$\"\n * @return - List<Client>\n */\n List<Client> getClientByPhoneNumber(String phoneNumber);\n\n /**\n * @param id - String UUID\n * @return - Объект класса Client\n */\n Client getClientById(String id);\n}", "public static String getFromModelMappingFromType(Type type) {\n switch (type.getTypeName()) {\n case CLASS_STRING:\n return STRING_FROM_MODEL;\n case CLASS_INTEGER:\n return INT_FROM_MODEL;\n case CLASS_DOUBLE:\n return DOUBLE_FROM_MODEL;\n case CLASS_LONG:\n return LONG_FROM_MODEL;\n case CLASS_BYTE:\n return BYTE_FROM_MODEL;\n case CLASS_BOOLEAN:\n return BOOL_FROM_MODEL;\n case CLASS_FLOAT:\n return FLOAT_FROM_MODEL;\n }\n String className = ((Class) type).getSimpleName();\n return className + MAPPER + DOT + FROM_MODEL + className;\n }", "public interface ModelViewConstant {\n\n interface MODEL {\n String\n EXCEPTION = \"exception\",\n PAGE = \"page\",\n LOCALISED_PAGE = \"localisedPage\",\n LANGUAGE = \"language\";\n\n }\n\n interface VIEW {\n String\n ERROR = \"errors/error\",\n PAGE = \"page\",\n INDEX = \"index\";\n }\n\n interface PROJECTION {\n String\n WITH_LOCALISED_PAGES = \"with-localised-pages\";\n }\n\n}", "UserModel()\n {/*Used for Gson*/}", "TrustedIdProviderInner innerModel();", "public abstract <T extends BaseSlingModel> T getModel();", "public interface ManualQuote extends MutableBusinessModel\n{\n public static final String PROPERTY_PRODUCT_KEYS = \"PROPERTY_PRODUCT_KEYS\";\n public static final String PROPERTY_SIDE = \"PROPERTY_SIDE\";\n public static final String PROPERTY_PRICE = \"PROPERTY_PRICE\";\n public static final String PROPERTY_SIZE = \"PROPERTY_SIZE\";\n public static final String PROPERTY_OVERRIDE = \"PROPERTY_OVERRIDE\";\n\n // helper methods to struct attributes\n public String getSessionName();\n public ProductKeys getProductKeys();\n public char getSide();\n public Price getPrice();\n public int getSize();\n public boolean isOverrideIndicator();\n public ManualQuoteDetail getManualQuoteDetail();\n public KeyValueStruct[] getExtensions();\n public SessionProduct getSessionProduct();\n public SessionReportingClass getSessionReportingClass();\n public SessionProductClass getSessionProductClass();\n\n public void setSessionProduct(SessionProduct sessionProduct);\n public void setSessionReportingClass(SessionReportingClass sessionReportingClass);\n public void setSessionProductClass(SessionProductClass sessionProductClass);\n public void setSide(char side);\n public void setPrice(Price price);\n public void setSize(int size);\n public void setOverrideIndicator(boolean override);\n public void setManualQuoteDetail(ManualQuoteDetail manualQuoteDetail);\n public void setExtensions(KeyValueStruct[] keyValues);\n\n public ManualQuoteStruct getStruct();\n}", "public interface BaseModel {\n\n}", "public interface ResourceSku {\n /**\n * Gets the resourceType property: The type of resource the SKU applies to.\n *\n * @return the resourceType value.\n */\n String resourceType();\n\n /**\n * Gets the name property: The name of SKU.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the tier property: Specifies the tier of DMS in a scale set.\n *\n * @return the tier value.\n */\n String tier();\n\n /**\n * Gets the size property: The Size of the SKU.\n *\n * @return the size value.\n */\n String size();\n\n /**\n * Gets the family property: The Family of this particular SKU.\n *\n * @return the family value.\n */\n String family();\n\n /**\n * Gets the kind property: The Kind of resources that are supported in this SKU.\n *\n * @return the kind value.\n */\n String kind();\n\n /**\n * Gets the capacity property: Not used.\n *\n * @return the capacity value.\n */\n ResourceSkuCapacity capacity();\n\n /**\n * Gets the locations property: The set of locations that the SKU is available.\n *\n * @return the locations value.\n */\n List<String> locations();\n\n /**\n * Gets the apiVersions property: The api versions that support this SKU.\n *\n * @return the apiVersions value.\n */\n List<String> apiVersions();\n\n /**\n * Gets the costs property: Metadata for retrieving price info.\n *\n * @return the costs value.\n */\n List<ResourceSkuCosts> costs();\n\n /**\n * Gets the capabilities property: A name value pair to describe the capability.\n *\n * @return the capabilities value.\n */\n List<ResourceSkuCapabilities> capabilities();\n\n /**\n * Gets the restrictions property: The restrictions because of which SKU cannot be used. This is empty if there are\n * no restrictions.\n *\n * @return the restrictions value.\n */\n List<ResourceSkuRestrictions> restrictions();\n\n /**\n * Gets the inner com.azure.resourcemanager.datamigration.fluent.models.ResourceSkuInner object.\n *\n * @return the inner object.\n */\n ResourceSkuInner innerModel();\n}", "@Test\n public void testGetType()\n {\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.STRING);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)String.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.LONG);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Long.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Integer.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.SHORT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Short.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.CHARACTER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Character.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BYTE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Byte.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.DOUBLE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Double.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.FLOAT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Float.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Boolean.class));\n }", "public SignType getSignType();", "private Object makeModel(HttpServletRequest request, String languageCode)\n {\n Map<String, String> model = Maps.newHashMap();\n model.put(\"lang\", languageCode);\n return model;\n }", "public interface BaseModel {\n}", "public interface BaseModel {\n}", "public String entityType();", "public ModelObjectType getType() {\n return type;\n }", "private void setTypeAndTag(Model model) {\n\t\tmodel.addAttribute(\"types\", typeService.listType());\n\t\tmodel.addAttribute(\"tags\", tagService.listTag());\n\t}", "private String createModelTypeForRequiredInterface(\n\t\t\tRequiredInterface requiredInterface) {\n\t\tString answer = \"modeltype \" + requiredInterface.getName() + \"{\\n\";\n\t\tanswer += \" syntax \\\"platform:/resource\" + requiredInterface.getEcoreRelativePath() + \"\\\"\\n}\\n\";\n\t\treturn answer;\n\t}", "@NotNull\n @Generated\n @Selector(\"localizedModel\")\n public native String localizedModel();", "private void fixType(NameInfo name1Info, NameInfo name2Info) {\n\t\tString type1 = name1Info.getType();\n\t\tString type2 = name2Info.getType();\n//\t\tString name1 = name1Info.getName();\n//\t\tString name2 = name2Info.getName();\n\t\t\n\t\tif (!name1Info.isEnforced() && !name2Info.isEnforced()) {\n\t\t\tfixLoc(name1Info);\n\t\t\tfixLoc(name2Info);\n\t\t\tfixOrg(name1Info);\n\t\t\tfixOrg(name2Info);\n\t\t\tfixPeople(name1Info);\n\t\t\tfixPeople(name2Info);\n\t\t\tString longName = \"\";\n\t\t\tString shortName = \"\";\n\t\t\tif ((name1Info.getName()).length() >= (name2Info.getName()).length()) {\n\t\t\t\tlongName = name1Info.getName();\n\t\t\t\tshortName = name2Info.getName();\n\t\t\t} else {\n\t\t\t\tlongName = name2Info.getName();\n\t\t\t\tshortName = name1Info.getName();\n\t\t\t}\n\t\t\tif (acroMan.isAcronymFirstLetters(shortName, longName)) {\n\t\t\t\tname1Info.setType(\"ORG\");\n\t\t\t\tname2Info.setType(\"ORG\");\n\t\t\t}\n\t\t}\n\t\t\n\t\ttype1 = name1Info.getType();\n\t\ttype2 = name2Info.getType();\n\t\t\n\t\tif (!type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(type2)){\n\t\t\tscoreShingle = 0.0f;\n\t\t\tscore = 0.0f;\n\t\t\treason = \"Types \" + type1 + \" and \" + type2 + \" cannot be compared\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype1 = type2;\n\t\t\tname1Info.setType(type1);\n\t\t} else if (type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype2 = type1;\n\t\t\tname2Info.setType(type2);\n\t\t}\n\t}", "public interface VistaDetallemensajeModel extends TemplateModel {\n // Add setters and getters for template properties here.\n }", "@Override abstract public String type();", "@Override\r\n\tpublic ModelType getModelType() {\r\n\t\treturn EntityModel.ModelType.SLUG;\r\n\t}", "com.demo.springprotobuff.Demoproto.Student.PhoneType getType();", "UniqueType createUniqueType();", "public PsicoderToGo() {\n translate_types.put(\"entero\", new ArrayList(Arrays.asList(\"int\", \"d\", \"0\")));\n translate_types.put(\"real\", new ArrayList(Arrays.asList(\"float64\", \"f\", \"0.0\")));\n translate_types.put(\"caracter\", new ArrayList(Arrays.asList(\"byte\", \"s\", \"\\\"\\\"\")));\n translate_types.put(\"booleano\", new ArrayList(Arrays.asList(\"bool\", \"b\", \"false\")));\n translate_types.put(\"cadena\", new ArrayList(Arrays.asList(\"string\", \"s\", \"\\\"\\\"\")));\n }", "Model createModel();" ]
[ "0.5822156", "0.5484212", "0.54234064", "0.54111373", "0.5273645", "0.52729976", "0.52450526", "0.52322215", "0.52191854", "0.5213905", "0.52050775", "0.5203702", "0.5168074", "0.51376146", "0.51178217", "0.5107337", "0.50923824", "0.5079053", "0.50770456", "0.50746226", "0.50495034", "0.5048222", "0.50039077", "0.49957633", "0.4995692", "0.49810144", "0.49786624", "0.4976213", "0.4976184", "0.497458", "0.49506065", "0.49454153", "0.49425808", "0.4939384", "0.49292544", "0.49217516", "0.49204138", "0.49162346", "0.49151", "0.48909688", "0.48898372", "0.488676", "0.48803565", "0.48755124", "0.48626807", "0.48556066", "0.48476195", "0.48457977", "0.48393694", "0.4834959", "0.48332438", "0.48322144", "0.48214862", "0.4818385", "0.4813589", "0.47996533", "0.4798138", "0.4797854", "0.4789481", "0.47762352", "0.47761554", "0.47724876", "0.47665823", "0.4763101", "0.47593886", "0.4757106", "0.47557828", "0.4755096", "0.4746384", "0.47462225", "0.4734062", "0.4725144", "0.47220936", "0.47168204", "0.47106054", "0.47099146", "0.47096473", "0.4706046", "0.47060207", "0.47002196", "0.46983948", "0.4696203", "0.4691578", "0.46911854", "0.4689173", "0.4685743", "0.46853802", "0.46853802", "0.46795285", "0.46774507", "0.46708807", "0.4669295", "0.46687993", "0.46639004", "0.46579543", "0.4656879", "0.4651346", "0.46452567", "0.4644155", "0.4643061", "0.4642505" ]
0.0
-1
Only one element type is different, in the second pool.
@Test void twoPools () throws XPathExpressionException, ParserConfigurationException, SAXException, IOException { Model base = new Model("./tests/TestModels/TravelAgency" + "/TwoPools" + ".bpmn.xml"); //the model against which all others will be tested. Model onlyTypesAreDifferent = new Model("./tests/TestModels" + "/TravelAgency/TwoPoolsOneDifferent.bpmn.xml"); assertTrue(TravelAgency.modelsAreDifferent(base, onlyTypesAreDifferent)); //The type of the models matters: as such it is a different model // from the original. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean areEqual(Element element1, Element element2, HashMap<String, Integer> lengthMap, GUIState state, GUIState currentState) throws MultipleListOrGridException {\n if (!isAttributeEqual(element1, element2)) {\n return false;\n }\n\n for (int i = 0; i < max(element1.elements().size(), element2.elements().size()); i++) {\n if (i == ((Element) element1).elements().size() || i == ((Element) element2).elements().size())\n return false;\n if (element1.attributeValue(NodeAttribute.Class) != null && element2.attributeValue(NodeAttribute.Class) != null &&\n (element1.attributeValue(NodeAttribute.Class).equals(NodeAttribute.ListView) && element2.attributeValue(NodeAttribute.Class).equals(NodeAttribute.ListView)\n || element1.attributeValue(NodeAttribute.Class).equals(NodeAttribute.GridView) && element2.attributeValue(NodeAttribute.Class).equals(NodeAttribute.GridView))) {\n\n if (state.getListSize() != currentState.getListSize() && state.getGridSize() != currentState.getGridSize()) {\n currentState.setIsDynamicListAndGrid(true);\n }\n if (currentState.isDynamicListAndGrid()) {\n if (lengthMap.get(getCurrentXpath(element1, getStringList(element1))) == null)\n lengthMap.put(getCurrentXpath(element1, getStringList(element1)), 0);\n\n if (!areEqual((Element) element1.elements().get(i), (Element) element2.elements().get(i), lengthMap, state, currentState)) {\n return false;\n } else {\n int lengthValue = lengthMap.get(getCurrentXpath(element1, getStringList(element1))) + 1;\n lengthMap.put(getCurrentXpath(element1, getStringList(element1)), lengthValue);\n if (lengthMap.get(getCurrentXpath(element1, getStringList(element1))) >= maxListGridSizeThreshold) {\n this.totalListGridEquivalentStateCount++;\n state.setIsEquivalentState(true);\n if (!state.getImagelist().contains(currentState.getImagelist().get(0)))\n state.addImage(currentState.getImagelist().get(0));\n state.increaseEquivalentStateCount();\n state.setIsListAndGrid(true);\n return true;\n }\n }\n } else {\n return false;\n }\n\n } else {\n if (!areEqual((Element) element1.elements().get(i), (Element) element2.elements().get(i), lengthMap, state, currentState)) {\n return false;\n }\n }\n }\n return true;\n }", "private boolean compatibleNodeTypes(AxiomTreeNode t1, AxiomTreeNode t2) {\n if (!t1.getNodeType().equals(t2.getNodeType())) {\n return false;\n }\n \n switch (t1.getNodeType()) {\n case CARD:\n int label1 = (Integer) t1.getLabel();\n int label2 = (Integer) t2.getLabel();\n return (label1 == label2);\n \t\n case OWLOBJECT:\n OWLObject o1 = (OWLObject) t1.getLabel();\n OWLObject o2 = (OWLObject) t2.getLabel();\n //System.out.println(o1.getClass());\n //System.out.println(o2.getClass());\n //Check for datatypes - then check datatype to see match. Else, return true if compatible.\n if(o1.getClass() == o2.getClass())\n {\n \tif(!o1.getDatatypesInSignature().isEmpty())\n \t{\n \t\t//Need to check if built in first. First check is convenience, datatypes should match\n \t\t//If one is built in, so should other. If neither is built in, this is also a viable match\n \t\t//If not equal and at least one is built in, its not a match.\n \t\tOWLDatatype dt1 = (OWLDatatype) o1.getDatatypesInSignature().toArray()[0];\n \t\t\tOWLDatatype dt2 = (OWLDatatype) o2.getDatatypesInSignature().toArray()[0];\n \t\t\t//System.out.println(\"DT1: \" + dt1);\n \t\t\t//System.out.println(\"DT2: \" + dt2);\n \t\tif(dt1.equals(dt2) && dt1.isBuiltIn())\n \t\t{\t\n \t\t\t//System.out.println(\"Standard state\");\n \t\t\t//System.out.println(o1.equals(o2));\n \t\t\treturn o1.equals(o2);\n \t\t}\n \t\telse if(!dt1.isBuiltIn() && !dt2.isBuiltIn())\n \t\t{\n \t\t\t//System.out.println(\"Unique state\");\n \t\t\treturn true;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//System.out.println(\"Rejection state\");\n \t\t\treturn false;\n \t\t}\n \n \t}\n \telse\n \t{\n \t\treturn true;\n \t}\n }\n else\n {\n \treturn false;\n }\n }\n return false;\n }", "@Test\n public void testSerializerDuplication() throws Exception {\n // we need a serializer that actually duplicates for testing (a stateful one)\n // we use Kryo here, because it meets these conditions\n TypeSerializer<String> statefulSerializer =\n new KryoSerializer<>(String.class, new ExecutionConfig());\n\n TestStateDescriptor<String> descr = new TestStateDescriptor<>(\"foobar\", statefulSerializer);\n\n TypeSerializer<String> serializerA = descr.getSerializer();\n TypeSerializer<String> serializerB = descr.getSerializer();\n\n // check that the retrieved serializers are not the same\n assertNotSame(serializerA, serializerB);\n }", "@Test\n\tpublic void addSameValueTwice() {\n\t\tXSet xset = new XSet(3);\n\t\txset.add(1);\n\t\txset.add(1);\n\t\tassertTrue(xset.getSize() == 1);\n\t}", "public boolean compareElements(Object element1, Object element2, AbstractSession session) {\n if (element1.getClass() != element2.getClass()) {\n return false;\n }\n return this.getObjectBuilder(element1, session).compareObjects(element1, element2, session);\n }", "public boolean equivalent(Explanation<OWLAxiom> e1, Explanation<OWLAxiom> e2) throws OWLOntologyCreationException {\n if (e1.equals(e2)) {\n return true;\n }\n\n // check if they have the same size, same entailment types, same numbers of axiom types\n IsoUtil pre = new IsoUtil();\n if (!pre.passesPretest(e1, e2)) {\n \t//System.out.println(\"NOT THE SAME!\");\n return false;\n }\n \n //check the current datatypes used in the justifications. If they don't match, reject this.\n HashSet<OWLDatatype> dataTypes1 = new HashSet<OWLDatatype>();\n HashSet<OWLDatatype> dataTypes2 = new HashSet<OWLDatatype>();\n \n for(OWLAxiom ax:e1.getAxioms())\n {\n \t for(OWLDatatype dt:ax.getDatatypesInSignature())\n {\n \tif(dt.isBuiltIn())\n \t{\n \t\tdataTypes1.add(dt);\n \t}\n }\n }\n for(OWLAxiom ax:e2.getAxioms())\n {\n \t for(OWLDatatype dt:ax.getDatatypesInSignature())\n {\n \tif(dt.isBuiltIn())\n \t{\n \t\tdataTypes2.add(dt);\n \t}\n }\n } \n \n if(!dataTypes1.equals(dataTypes2))\n {\n \treturn false;\n }\n \n //check to see if both justifications are both real or fake w.r.t. reasoner\n /**\n OWLOntologyManager ontoman = OWLManager.createOWLOntologyManager();\n Boolean E1ENT = null;\n OWLReasoner j1 = rf.createReasoner(ontoman.createOntology(e1.getAxioms()));\n\t\tE1ENT = j1.isEntailed(e1.getEntailment());\n\t\tj1.flush();\n\t\tOWLReasoner j2;\n\t Boolean E2ENT = null;\n\t j2 = rf.createReasoner(ontoman.createOntology(e2.getAxioms()));\n\t\tE2ENT = j2.isEntailed(e2.getEntailment());\n\t\tj2.flush();\n\t\tSystem.out.println(e1.getEntailment().toString() + \": \" + E1ENT + \" \" + e2.getEntailment().toString() + \": \" + E2ENT);\n\t\tSystem.out.println(!((E1ENT && E2ENT) || (!E1ENT && !E2ENT)));\n\t\tif(!((E1ENT && E2ENT) || (!E1ENT && !E2ENT))) {\n\t\tSystem.out.println(\"Entailment check failed\");\n\t return false;\t\n\t\t}\n\t\t**/\n\t\t// otherwise do the full check\t\n AxiomTreeBuilder atb = new AxiomTreeBuilder();\n\n AxiomTreeNode et1 = atb.generateAxiomTree(e1.getEntailment());\n AxiomTreeNode et2 = atb.generateAxiomTree(e2.getEntailment());\n AxiomTreeNode jt1 = atb.generateExplanationTree(e1);\n AxiomTreeNode jt2 = atb.generateExplanationTree(e2);\n \n //for(AxiomTreeMapping atm:getMappingCandidates(et1,et2))\n //{\n \t//atm.printMapping();\n //}\n \n List<AxiomTreeMapping> candidates = getMappingCandidates(jt1, jt2);\n //System.out.println(candidates.size());\n /**\n for(AxiomTreeMapping c : candidates) {\n \t System.out.println(c.getVarsForTarget());\n \t System.out.println(c.getVarsForSource());\n \t System.out.println(isCorrectMapping(e1, et1, jt1, c.getVarsForSource(), e2, et2, jt2, c.getVarsForTarget()));\n }\n **/\n \n \n for (AxiomTreeMapping c : candidates) {\n //System.out.println(\"\\n--------------- MAPPING ---------------\\n\");\n if (isCorrectMapping(e1, et1, jt1, c.getVarsForSource(), e2, et2, jt2, c.getVarsForTarget())) {\n //c.printMapping();\n //System.out.println(\"TRUE MAPPING:\");\n //System.out.println(c.getVarsForTarget());\n //System.out.println(c.getVarsForSource());\n \t return true;\n }\n }\n \n //for(AxiomTreeMapping atm:candidates)\n //{\n \t//atm.printMapping();\n //}\n return false;\n }", "@Test\n public void testTwoBssids() throws Exception {\n // Make a duplicate of the first config\n mConfig2 = new WifiConfiguration(mConfig1);\n // Make a second scan result, same network, different BSSID.\n mScanResult2.SSID = mScanResult1.SSID;\n mScanResult2.BSSID = mScanResult1.BSSID.replace('1', '2');\n // Add both\n mWifiCandidates.add(mScanDetail1, mConfig1, 2, 0.0, false, 100);\n mWifiCandidates.add(mScanDetail2, mConfig2, 2, 0.0, false, 100);\n // We expect them both to be there\n assertEquals(2, mWifiCandidates.size());\n // But just one group\n assertEquals(1, mWifiCandidates.getGroupedCandidates().size());\n // Now remove them one at a time\n WifiCandidates.Candidate c1, c2;\n c1 = mWifiCandidates.getGroupedCandidates().iterator().next().iterator().next();\n assertTrue(mWifiCandidates.remove(c1));\n assertEquals(1, mWifiCandidates.size());\n assertEquals(1, mWifiCandidates.getGroupedCandidates().size());\n // Should not be able to remove the one that isn't there\n assertFalse(mWifiCandidates.remove(c1));\n // Remove the other one, too\n c2 = mWifiCandidates.getGroupedCandidates().iterator().next().iterator().next();\n assertTrue(mWifiCandidates.remove(c2));\n assertFalse(mWifiCandidates.remove(c2));\n assertEquals(0, mWifiCandidates.size());\n assertEquals(0, mWifiCandidates.getGroupedCandidates().size());\n }", "@Test(expected = IllegalArgumentException.class)\n public void testParseDOMWidgetElemsSameNameFails()\n {\n parser.parse(DefaultConfigurationParserMockDOMs.createDOMWidgetElemsSameName());\n fail(\"Should have thrown an IllegalArgumentException\");\n }", "private Comparison compareImages(SimpleNode first, SimpleNode second) {\n if (first instanceof JexlNode) {\n String firstImage = ((JexlNode) first).image;\n String secondImage = ((JexlNode) second).image;\n if (!Objects.equals(firstImage, secondImage)) {\n return Comparison.notEqual(\"Node images differ: \" + firstImage + \" vs \" + secondImage);\n }\n }\n return Comparison.IS_EQUAL;\n }", "private void checkTypes(Variable first, Variable second) throws OutmatchingParameterType {\n VariableVerifier.VerifiedTypes firstType = first.getType();\n VariableVerifier.VerifiedTypes secondType = second.getType();\n\n if (!firstType.equals(secondType)) {\n throw new OutmatchingParameterType();\n }\n }", "@Test\n public void cache_diff_type() {\n ClassData a = ValueSerDeGenerator.generate(context(), typeOf(MockDataModel.class));\n ClassData b = ValueSerDeGenerator.generate(context(), typeOf(MockKeyValueModel.class));\n assertThat(b, is(not(cacheOf(a))));\n }", "private Boolean equalWebItemImages(WebItemImage webItemImageOne, WebItemImage webItemImageTwo) {\n\t\tif (webItemImageOne==null && webItemImageTwo==null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tif (webItemImageOne==null || webItemImageTwo==null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (webItemImageOne.getSourceURL() == webItemImageTwo.getSourceURL()) {\r\n\t\t\treturn true;\r\n\t\t } else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test(description = \"update interface with one type for non existing interface\")\n public void updateTwoTypes4NonExisting()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final TypeData type1 = data.getType(\"TestType1\");\n final TypeData type2 = data.getType(\"TestType2\");\n data.create();\n\n final InterfaceData inter = data.getInterface(\"TestInterface\")\n .addType(type1)\n .addType(type2);\n this.update(inter);\n\n final Set<String> result = new HashSet<String>();\n result.add(type1.getName());\n result.add(type2.getName());\n Assert.assertEquals(this.mqlAsSet(\"print interface '\" + inter.getName() + \"' select type dump '\\n'\"),\n result,\n \"check that all types are defined\");\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "private boolean notEqualFeatures(Instance inst1, Instance inst2) {\n\n for(int i = 0; i < m_Train.numAttributes(); i++){\n if(i == m_Train.classIndex())\n\tcontinue;\n if(inst1.value(i) != inst2.value(i))\n\treturn true;\n }\n return false;\n }", "private Comparison checkEquality(SimpleNode node1, SimpleNode node2) {\n // Compare the classes.\n Comparison comparison = compareClasses(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the values.\n comparison = compareValues(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the images.\n comparison = compareImages(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the children.\n return compareChildren(node1, node2);\n }", "private boolean sameElements(List firstList, List secondList)\r\n\t{\r\n\t\t\r\n\t\t// The size hould be the same, otherwise stop.\r\n\t\tif (firstList.size() != secondList.size())\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Iterate over the elements of the first list.\r\n\t\tfor (int index = 0; index < firstList.size(); index++)\r\n\t\t{\r\n\t\t\t// Check if the element is also in the second list.\r\n\t\t\tif (!secondList.contains(firstList.get(index)))\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// They heve the same elements.\r\n\t\treturn true;\r\n\t}", "@Test\n\tpublic void isChildOrSameTest3()\n\t{\n\t\tNodeList n1=xmlDocument.getElementsByTagName(\"b\");\n\t\tNodeList n2=xmlDocument.getElementsByTagName(\"p\");\n\t\tassertEquals(false,Manipulator.isChildOrSame(n1.item(0),n2.item(0)));\n\t}", "@Test\n public void testUnion2IdenticalDataSets() throws Exception {\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n DataSet<Tuple3<Integer, Long, String>> ds = CollectionDataSets.get3TupleDataSet(env);\n DataSet<Tuple3<Integer, Long, String>> unionDs =\n ds.union(CollectionDataSets.get3TupleDataSet(env));\n\n List<Tuple3<Integer, Long, String>> result = unionDs.collect();\n\n String expected = FULL_TUPLE_3_STRING + FULL_TUPLE_3_STRING;\n\n compareResultAsTuples(result, expected);\n }", "@Test\n public void testUnionOnSchemaDiffNumType() throws Exception {\n PigServer pig = new PigServer(Util.getLocalTestMode());\n String query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (i : int, j : double);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (i : long, j : float);\"\n + \"u = union onschema l1, l2;\"\n ; \n Util.registerMultiLineQuery(pig, query);\n Iterator<Tuple> it = pig.openIterator(\"u\");\n \n List<Tuple> expectedRes = \n Util.getTuplesFromConstantTupleStrings(\n new String[] {\n \"(1L,2.0)\",\n \"(5L,3.0)\",\n \"(1L,2.0)\",\n \"(5L,3.0)\"\n });\n Util.checkQueryOutputsAfterSort(it, expectedRes);\n\n }", "private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}", "public abstract int numOfSameTypeNeighbourToReproduce();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tpairdiff<String, String> p=new pairdiff<String,String>(\"ab\",\"cd\");\r\n\t\tp.setFirst(\"def\");\r\n\t\tString s=p.getFirst();\r\n\t\t//pair<int> p1=new pair<int>(1,2);//this is prrematative datatype so not allowed\r\n\t\tpairdiff<Integer,String> p1=new pairdiff<Integer,String>(1,\"temp\");\r\n\t\tpairdiff<Character,Character> p2=new pairdiff<>('a','b');\r\n\t\r\n\t\tint a=10;\r\n\t\tint b=12;\r\n\t\tint c=23;\r\n\t\tpairdiff<Integer,Integer> ip=new pairdiff<>(a,b);\r\n\t\t\r\n\t\t\r\n\tpairdiff<pairdiff<Integer,Integer>,Integer> p3=new pairdiff<>(ip,c);\t\r\n\t\r\n\tSystem.out.println(p3.getSecond());\r\n\tSystem.out.println(p3.getFirst().getFirst());\r\n\tSystem.out.println(p3.getFirst().getFirst());\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private static Unit<? extends Quantity> getInstance(Element[] leftElems,\n Element[] rightElems) {\n\n // Merges left elements with right elements.\n Element[] result = new Element[leftElems.length + rightElems.length];\n int resultIndex = 0;\n for (int i = 0; i < leftElems.length; i++) {\n Unit unit = leftElems[i]._unit;\n int p1 = leftElems[i]._pow;\n int r1 = leftElems[i]._root;\n int p2 = 0;\n int r2 = 1;\n for (int j = 0; j < rightElems.length; j++) {\n if (unit.equals(rightElems[j]._unit)) {\n p2 = rightElems[j]._pow;\n r2 = rightElems[j]._root;\n break; // No duplicate.\n }\n }\n int pow = (p1 * r2) + (p2 * r1);\n int root = r1 * r2;\n if (pow != 0) {\n int gcd = gcd(Math.abs(pow), root);\n result[resultIndex++] = new Element(unit, pow / gcd, root / gcd);\n }\n }\n\n // Appends remaining right elements not merged.\n for (int i = 0; i < rightElems.length; i++) {\n Unit unit = rightElems[i]._unit;\n boolean hasBeenMerged = false;\n for (int j = 0; j < leftElems.length; j++) {\n if (unit.equals(leftElems[j]._unit)) {\n hasBeenMerged = true;\n break;\n }\n }\n if (!hasBeenMerged)\n result[resultIndex++] = rightElems[i];\n }\n\n // Returns or creates instance.\n if (resultIndex == 0)\n return ONE;\n else if ((resultIndex == 1) && (result[0]._pow == result[0]._root))\n return result[0]._unit;\n else {\n Element[] elems = new Element[resultIndex];\n for (int i = 0; i < resultIndex; i++) {\n elems[i] = result[i];\n }\n return new ProductUnit<Quantity>(elems);\n }\n }", "public void testTypedCollection()\r\n\t{\r\n broker.beginTransaction();\r\n for (int i = 1; i < 4; i++)\r\n {\r\n ProductGroupWithTypedCollection example = new ProductGroupWithTypedCollection();\r\n example.setId(i);\r\n ProductGroupWithTypedCollection group =\r\n (ProductGroupWithTypedCollection) broker.getObjectByQuery(\r\n new QueryByIdentity(example));\r\n assertEquals(\"should be equal\", i, group.getId());\r\n //System.out.println(group + \"\\n\\n\");\r\n\r\n broker.delete(group);\r\n broker.store(group);\r\n }\r\n broker.commitTransaction();\r\n\t}", "protected boolean allowsDuplicates(Class type) {\n return !Set.class.isAssignableFrom(type);\n }", "public boolean cmp_new(Type other){\n if (this.dimension < other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "@Test\n public void testUnionOnSchemaUdfTypeEvolution2() throws Exception {\n PigServer pig = new PigServer(Util.getLocalTestMode());\n String query_prefix =\n \" l1 = load '\" + INP_FILE_2NUM_1CHAR_1BAG + \"' as \" \n + \" (i : int, c : chararray, j : int \" \n + \", b : bag { t : tuple (c1 : int, c2 : chararray)}\" \n + \", t : tuple (tc1 : int, tc2 : chararray) );\"\n + \" l2 = load '\" + INP_FILE_2NUM_1CHAR_1BAG + \"' as \" \n + \" (i : int, c : chararray, j : int \" \n + \", b : bag { t : tuple (c1 : int, c2 : chararray)}\" \n + \", t : tuple (tc1 : int, tc2 : chararray) );\"\n + \"f1 = foreach l1 generate i, MAX(b.c1) as mx;\"\n + \"f11 = foreach f1 generate i, mx;\"\n + \"f2 = foreach l2 generate i, COUNT(b.c1) as mx;\"\n + \"f22 = foreach f2 generate i, mx;\"\n\n ; \n String query = query_prefix + \"u = union onschema f11, f22;\";\n Util.registerMultiLineQuery(pig, query);\n Schema sch = pig.dumpSchema(\"u\");\n Schema expectedSch = \n Utils.getSchemaFromString(\"i: int, mx: long\");\n assertEquals(\"Checking expected schema\",sch, expectedSch);\n \n // verify schema for reverse order of relations as well\n query = query_prefix + \"u = union onschema f22, f11;\";\n Util.registerMultiLineQuery(pig, query);\n sch = pig.dumpSchema(\"u\");\n expectedSch = \n Utils.getSchemaFromString(\"i: int, mx: long\");\n assertEquals(\"Checking expected schema\",sch, expectedSch);\n \n \n Iterator<Tuple> it = pig.openIterator(\"u\");\n \n List<Tuple> expectedRes = \n Util.getTuplesFromConstantTupleStrings(\n new String[] {\n \"(1,1L)\",\n \"(5,2L)\",\n \"(1,2L)\",\n \"(5,2L)\"\n });\n Util.checkQueryOutputsAfterSort(it, expectedRes);\n }", "@Test\n public void testUnionOnSchemaCastOnByteArray() throws Exception {\n PigServer pig = new PigServer(Util.getLocalTestMode());\n String query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (i, j);\"\n + \" f1 = foreach l1 generate (int)i, (int)j;\"\n + \"u = union onschema f1, l1;\"\n ; \n Util.registerMultiLineQuery(pig, query);\n Iterator<Tuple> it = pig.openIterator(\"u\");\n \n List<Tuple> expectedRes = \n Util.getTuplesFromConstantTupleStrings(\n new String[] {\n \"(1,2)\",\n \"(5,3)\",\n \"(1,2)\",\n \"(5,3)\"\n });\n Util.checkQueryOutputsAfterSort(it, expectedRes);\n\n }", "private static boolean sizeEqual(final I_GameState state1, final I_GameState state2) {\n //if a state is null there surely must be a mistake somewhere\n if (state1 == null || state2 == null) throw new NullPointerException(\"A state cannot be null when comparing\");\n\n // make a stream with a data structure containing both states\n return Stream.of(new SimpleEntry<>(state1, state2))\n .flatMap( // transform the elements by making a new stream with the transformation to be used\n pair -> Arrays.stream(E_PileID.values()) // stream the pileIDs\n // make new pair of the elements of that pile from each state\n .map(pileID -> new SimpleEntry<>(\n pair.getKey().get(pileID),\n pair.getValue().get(pileID)\n )\n )\n )\n .map(I_GameHistory::replaceNulls)\n .allMatch(pair -> pair.getKey().size() == pair.getValue().size()); // check they have equal sizes\n }", "private static boolean isErased(Types types, AnnotatedTypeMirror t1, AnnotatedTypeMirror t2) {\n return types.isSameType(\n types.erasure(t1.getUnderlyingType()), t2.getUnderlyingType());\n }", "@Test\n public void testDifferentClassEquality() {\n }", "private static <F> /*@ pure @*/ boolean elem_equals(F item1,\n F item2) {\n return (item1 != null && item1.equals(item2))\n\t || (item1 == null && item2 == null);\n }", "private void duplicateTags(Topology topology) {\n // This one pass implementation is dependent on Edges being\n // topologically sorted - ancestor Edges appear before their descendants.\n for (Edge e : topology.graph().getEdges()) {\n Object o = e.getTarget().getInstance();\n if (o instanceof Peek || o instanceof FanOut) {\n duplicateTags(e);\n }\n }\n }", "void compare(BufferedImage bi0, BufferedImage bi1, int biType, Color c) {\n for (int x=0; x<wid; x++) {\n for (int y=0; y<hgt; y++) {\n int rgb0 = bi0.getRGB(x, y);\n int rgb1 = bi1.getRGB(x, y);\n if (rgb0 == rgb1) continue;\n int r0 = (rgb0 & 0xff0000) >> 16;\n int r1 = (rgb1 & 0xff0000) >> 16;\n int rdiff = r0-r1; if (rdiff<0) rdiff = -rdiff;\n int g0 = (rgb0 & 0x00ff00) >> 8;\n int g1 = (rgb1 & 0x00ff00) >> 8;\n int gdiff = g0-g1; if (gdiff<0) gdiff = -gdiff;\n int b0 = (rgb0 & 0x0000ff);\n int b1 = (rgb1 & 0x0000ff);\n int bdiff = b0-b1; if (bdiff<0) bdiff = -bdiff;\n if (rdiff > 1 || gdiff > 1 || bdiff > 1) {\n throw new RuntimeException(\n \"Images differ for type \"+biType + \" col=\"+c +\n \" at x=\" + x + \" y=\"+ y + \" \" +\n Integer.toHexString(rgb0) + \" vs \" +\n Integer.toHexString(rgb1));\n }\n }\n }\n\n }", "@Test(expected = ParserException.class)\n public void processDuplicateContainerAndList() throws IOException, ParserException {\n\n YangNode node = manager.getDataModel(\"src/test/resources/DuplicateContainerAndList.yang\");\n }", "@Test\n public void testUnionOnSchemaByteArrayConversions() throws Exception {\n PigServer pig = new PigServer(Util.getLocalTestMode());\n String query =\n \" l1 = load '\" + INP_FILE_2NUM_1CHAR_1BAG + \"' as \" \n + \" (i : bytearray, x : bytearray, j : bytearray \" \n + \", b : bytearray); \"\n + \"l2 = load '\" + INP_FILE_2NUM_1CHAR_1BAG + \"' as \" \n + \" (i : long, c : chararray, j : int \" \n + \", b : bag { t : tuple (c1 : int, c2 : chararray)} ); \"\n + \"u = union onSchema l1, l2;\"\n ; \n Util.registerMultiLineQuery(pig, query);\n pig.explain(\"u\", System.out);\n\n Iterator<Tuple> it = pig.openIterator(\"u\");\n \n List<Tuple> expectedRes = \n Util.getTuplesFromConstantTupleStrings(\n new String[] {\n \"(1L,null,2,{(1,'a'),(1,'b')},'abc')\",\n \"(1L,'abc',2,{(1,'a'),(1,'b')},null)\",\n \"(5L,null,3,{(2,'a'),(2,'b')},'def')\",\n \"(5L,'def',3,{(2,'a'),(2,'b')},null)\", \n });\n //update expectedRes to use bytearray instead of chararray in 2nd field\n for(Tuple t : expectedRes){\n if(t.get(1) != null){\n t.set(1, new DataByteArray(t.get(1).toString()));\n }\n }\n Util.checkQueryOutputsAfterSort(it, expectedRes);\n }", "@org.junit.Test\n public void k2ComputeConElem12() {\n final XQuery query = new XQuery(\n \"declare construction strip; element e {\\\"content\\\"} instance of element(b, xs:untyped)\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "@Test\n public void testUnionOnSchemaUdfTypeEvolution() throws Exception {\n PigServer pig = new PigServer(Util.getLocalTestMode());\n String query_prefix =\n \" l1 = load '\" + INP_FILE_2NUM_1CHAR_1BAG + \"' as \" \n + \" (i : int, c : chararray, j : int \" \n + \", b : bag { t : tuple (c1 : int, c2 : chararray)}\" \n + \", t : tuple (tc1 : int, tc2 : chararray) );\"\n + \" l2 = load '\" + INP_FILE_2NUM_1CHAR_1BAG + \"' as \" \n + \" (i : int, c : chararray, j : int \" \n + \", b : bag { t : tuple (c1 : int, c2 : chararray)}\" \n + \", t : tuple (tc1 : int, tc2 : chararray) );\"\n + \"f1 = foreach l1 generate i, MAX(b.c1) as mx;\"\n + \"f2 = foreach l2 generate i, COUNT(b.c1) as mx;\"\n\n ; \n String query = query_prefix + \"u = union onschema f1, f2;\";\n Util.registerMultiLineQuery(pig, query);\n Schema sch = pig.dumpSchema(\"u\");\n Schema expectedSch = \n Utils.getSchemaFromString(\"i: int, mx: long\");\n assertEquals(\"Checking expected schema\",sch, expectedSch);\n \n // verify schema for reverse order of relations as well\n query = query_prefix + \"u = union onschema f2, f1;\";\n Util.registerMultiLineQuery(pig, query);\n sch = pig.dumpSchema(\"u\");\n expectedSch = \n Utils.getSchemaFromString(\"i: int, mx: long\");\n assertEquals(\"Checking expected schema\",sch, expectedSch);\n \n \n Iterator<Tuple> it = pig.openIterator(\"u\");\n \n List<Tuple> expectedRes = \n Util.getTuplesFromConstantTupleStrings(\n new String[] {\n \"(1,1L)\",\n \"(5,2L)\",\n \"(1,2L)\",\n \"(5,2L)\"\n });\n Util.checkQueryOutputsAfterSort(it, expectedRes);\n }", "protected boolean isDuplicate(ELesxUseCase useCase) {\n return false;\n }", "private void assertEquivalentPair(Set<Pair> result, String s1, String s2) {\n\t\tPair resultPair = filterResult(result, s1, s2);\n\t\tassertFalse(resultPair.isMarked());\n\t}", "public void testCastNewSingleThreadExecutor() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n try {\n ThreadPoolExecutor tpe = (ThreadPoolExecutor)e;\n shouldThrow();\n } catch (ClassCastException success) {}\n }\n }", "public boolean cmp(Type other){\n if (this.dimension != other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "@Override\n protected void checkElementNameUnique(Element element)\n {\n }", "@Test\n\tpublic void isChildOrSameTest1()\n\t{\n\t\tNodeList n1=xmlDocument.getElementsByTagName(\"b\");\n\t\tNodeList n2=xmlDocument.getElementsByTagName(\"p\");\n\t\tassertEquals(true,Manipulator.isChildOrSame(n2.item(0),n1.item(0)));\n\t}", "@Test(description = \"update interface with one type for non existing interface\")\n public void updateOneType4NonExisting()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final TypeData type = data.getType(\"TestType\");\n data.create();\n\n final InterfaceData inter = data.getInterface(\"TestInterface\").addType(type);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select type dump\"),\n type.getName(),\n \"check that only one type is defined\");\n }", "@Test\n\tpublic void testAddLinkOkMultNtoNArrayListSameLinkTwice() {\n\t\t// create 2 ClosingPeriods and 2 Locations\n\t\tTypePropertyCollection proptypeCpLocations = (TypePropertyCollection) TypeRapidBean\n\t\t\t\t.forName(ClosingPeriod.class.getName()).getPropertyType(\"locations\");\n\t\tTypePropertyCollection proptypeLocClosedons = (TypePropertyCollection) TypeRapidBean\n\t\t\t\t.forName(Location.class.getName()).getPropertyType(\"closedons\");\n\t\tClass<?> colClassCpLocationsBefore = proptypeCpLocations.getCollectionClass();\n\t\tClass<?> colClassLocClosedonsBefore = proptypeLocClosedons.getCollectionClass();\n\t\tproptypeCpLocations.setCollectionClass(ArrayList.class);\n\t\tproptypeLocClosedons.setCollectionClass(ArrayList.class);\n\t\tClosingPeriod cp1 = new ClosingPeriod(new String[] { \"20051225\", \"XMas Holidays\", \"20060101\" });\n\t\tLocation loc1 = new Location(new String[] { \"Location A\" });\n\t\ttry {\n\t\t\tcp1.addLocation(loc1);\n\t\t\tcp1.addLocation(loc1);\n\t\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\t\tClosingPeriod cp11Inverse = loc1.getClosedons().iterator().next();\n\t\t\tAssert.assertSame(cp1, cp11Inverse);\n\t\t\tAssert.assertEquals(2, loc1.getClosedons().size());\n\t\t\tcp1.removeLocation(loc1);\n\t\t\tAssert.assertEquals(1, cp1.getLocations().size());\n\t\t\tcp1.removeLocation(loc1);\n\t\t\tAssert.assertEquals(0, cp1.getLocations().size());\n\t\t} finally {\n\t\t\tproptypeCpLocations.setCollectionClass(colClassCpLocationsBefore);\n\t\t\tproptypeLocClosedons.setCollectionClass(colClassLocClosedonsBefore);\n\t\t}\n\t}", "@Override\n public boolean areContentsTheSame(Item one,\n Item two) {\n return one.equals(two);\n }", "void testNAN (Tester t){\n\n ANode<Integer> s1 = new Sentinel<Integer>();\n ANode<Integer> s2 = new Sentinel<Integer>();\n\n ANode<Integer> n1 = new Node<Integer>(1); \n ANode<Integer> n2 = new Node<Integer>(2, n1, s1);\n\n t.checkExpect(n1.getData(), 1);\n t.checkExpect(n2.getData(), 2);\n\n t.checkExpect(n2.size(n2), 2); \n\n }", "public void testEquals() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n r1.setBlockHeight(2.0);\n r2.setBlockHeight(2.0);\n r1.setBlockWidth(2.0);\n r2.setBlockWidth(2.0);\n r1.setPaintScale(new GrayPaintScale(0.0, 1.0));\n r2.setPaintScale(new GrayPaintScale(0.0, 1.0));\n }", "@Override\n protected List<StoragePool> matchStoragePoolsWithAttributeOn(\n List<StoragePool> allPools, Map<String, Object> attributeMap,\n StringBuffer errorMessage) {\n boolean checkIP = false;\n boolean checkFC = false;\n // If not a block vpool, then everything matches.\n if (false == attributeMap.get(Attributes.vpool_type.toString())\n .equals(VirtualPool.Type.block.name())) {\n return allPools;\n }\n // If Vplex high availability is used, then do not filter on maxPaths because\n // the VPlex itself contains no pools, and the underlying array pools should match\n // regardless of the maxPath settings.\n Object highAvailabilityType = attributeMap.get(Attributes.high_availability_type.toString());\n if (highAvailabilityType != null\n && NullColumnValueGetter.isNotNullValue(highAvailabilityType.toString())) {\n return allPools;\n }\n // If protocols is not specified, can't determine which type of ports to check.\n Set<String> protocols = (Set<String>) attributeMap.get(Attributes.protocols.toString());\n Set<String> vArrays = (Set<String>) attributeMap.get(Attributes.varrays.toString());\n if (protocols != null && protocols.contains(Block.FC.name())) {\n checkFC = true;\n }\n if (protocols != null && protocols.contains(Block.iSCSI.name())) {\n checkIP = true;\n }\n Integer maxPaths = (Integer) attributeMap.get(Attributes.max_paths.toString());\n Map<URI, Integer> cachedUsableFCPorts = new HashMap<URI, Integer>();\n Map<URI, Integer> cachedUsableIPPorts = new HashMap<URI, Integer>();\n Map<URI, Integer> cachedUsableFCHADomains = new HashMap<URI, Integer>();\n Map<URI, Integer> cachedUsableIPHADomains = new HashMap<URI, Integer>();\n List<StoragePool> matchedPools = new ArrayList<StoragePool>();\n Map<URI, StorageSystem> storageSystemMap = new HashMap<URI, StorageSystem>();\n for (StoragePool pool : allPools) {\n URI dev = pool.getStorageDevice();\n StorageSystem system = getStorageSystem(storageSystemMap, pool);\n if (checkFC) {\n if (numberOfUsablePorts(dev, Transport.FC, vArrays, cachedUsableFCPorts, cachedUsableFCHADomains)\n < maxPaths) {\n _logger.info(\"NumPathsMatcher disqualified pool: \" + pool.getNativeGuid()\n + \" max_paths: \" + maxPaths\n + \" because insufficient FC ports\");\n continue;\n }\n // If we need two or more paths, must have at least two HA Domains\n if (!system.getIsDriverManaged()\n && !system.getSystemType().equals(DiscoveredSystemObject.Type.scaleio.name())\n && !system.getSystemType().equals(DiscoveredSystemObject.Type.xtremio.name())\n && !system.getSystemType().equals(DiscoveredSystemObject.Type.ceph.name())) {\n if (maxPaths >= 2 && cachedUsableFCHADomains.get(dev) < 2) {\n _logger.info(\"NumPathsMatcher disqualified pool: \" + pool.getNativeGuid() + \" max_paths: \" + maxPaths\n + \" because insufficient FC cpus (StorageHADomains)\");\n continue;\n }\n }\n }\n if (checkIP) {\n if (numberOfUsablePorts(dev, Transport.IP, vArrays, cachedUsableIPPorts, cachedUsableIPHADomains)\n < maxPaths) {\n _logger.info(\"NumPathsMatcher disqualified pool: \" + pool.getNativeGuid()\n + \" max_paths: \" + maxPaths\n + \" because insufficient IP ports\");\n continue;\n }\n\n StorageDriverManager storageDriverManager = (StorageDriverManager) StorageDriverManager.getApplicationContext().getBean(\n StorageDriverManager.STORAGE_DRIVER_MANAGER);\n // If we need two or more paths, must have at least two HA Domains\n if (!storageDriverManager.isDriverManaged(system.getSystemType())\n && !system.getSystemType().equals(DiscoveredSystemObject.Type.scaleio.name())\n && !system.getSystemType().equals(DiscoveredSystemObject.Type.xtremio.name())\n && !system.getSystemType().equals(DiscoveredSystemObject.Type.ceph.name())) {\n if (maxPaths >= 2 && cachedUsableIPHADomains.get(dev) < 2) {\n _logger.info(\"NumPathsMatcher disqualified pool: \" + pool.getNativeGuid() + \" max_paths: \" + maxPaths\n + \" because insufficient IP cpus (StorageHADomains)\");\n continue;\n }\n }\n }\n matchedPools.add(pool);\n }\n if (CollectionUtils.isEmpty(matchedPools)) {\n errorMessage.append(String.format(\"No storage pool is matching with the VPool maximum path parameter %d. \", maxPaths));\n _logger.error(errorMessage.toString());\n }\n _logger.info(\"NumPathsMatcher maxPaths: \" + maxPaths + \" passed \" + matchedPools.size() + \" pools\");\n return matchedPools;\n }", "@Override\n\tpublic int cardinality() {\n\t\treturn 2;\n\t}", "private void checkInstanceOf(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n if (d instanceof AbstractDefinitionStmt) {\n AbstractDefinitionStmt def = (AbstractDefinitionStmt) d;\n Value leftSide = def.getLeftOp();\n Value rightSide = def.getRightOp();\n if(leftSide instanceof Local && rightSide instanceof AbstractInstanceOfExpr) {\n AbstractInstanceOfExpr expr = (AbstractInstanceOfExpr) rightSide;\n FlowAbstraction taint = isInTaintedSet(expr.getOp(), in);\n if(taint != null) {\n \t\n taint(leftSide, d, out);\n \n }\n }\n }\n }", "@Test(priority = 6)\n public void elementsOnDifferentElementsPageTest() {\n List<WebElement> checkboxesList = driver.findElements(By.className(\"label-checkbox\"));\n assertEquals(checkboxesList.size(), 4);\n List<WebElement> radioList = driver.findElements(By.className(\"label-radio\"));\n assertEquals(radioList.size(), 4);\n assertTrue(driver.findElement(By.className(\"colors\")).isDisplayed());\n assertTrue(driver.findElement(By.cssSelector(\"button[name='Default Button']\"))\n .isDisplayed());\n assertTrue(driver.findElement(By.cssSelector(\"input[value='Button']\"))\n .isDisplayed());\n }", "public boolean checkDif2Level(GroupSP g1, GroupSP g2) {\n\t\tfor (Node n1 : g1.lstSP) {\n\t\t\tfor (Node n2 : g2.lstSP) {\n\t\t\t\tif (!StringUtil.isNullOrEmpty(n1.productCode) && !StringUtil.isNullOrEmpty(n2.productCode) && n1.productCode.equals(n2.productCode)) {\n\t\t\t\t\treturn false;\n\t\t\t\t} else if (StringUtil.isNullOrEmpty(n1.productCode) && StringUtil.isNullOrEmpty(n2.productCode)) {//type\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void testTwoUnions() throws Exception {\n PigServer pig = new PigServer(Util.getLocalTestMode());\n String query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (i : int, j : int);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (i : long, j : int);\"\n + \"u1 = union onschema l1, l2;\"\n + \"l3 = load '\" + INP_FILE_2NUMS + \"' as (i : long, j : double);\"\n + \"u2 = union onschema u1, l3;\"\n ; \n Util.registerMultiLineQuery(pig, query);\n Iterator<Tuple> it = pig.openIterator(\"u2\");\n \n List<Tuple> expectedRes = \n Util.getTuplesFromConstantTupleStrings(\n new String[] {\n \"(1L,2.0)\",\n \"(5L,3.0)\",\n \"(1L,2.0)\",\n \"(5L,3.0)\",\n \"(1L,2.0)\",\n \"(5L,3.0)\"\n });\n Util.checkQueryOutputsAfterSort(it, expectedRes);\n\n }", "@Test\n public void testUnionOnSchemaSameSchema() throws Exception {\n PigServer pig = new PigServer(Util.getLocalTestMode());\n String query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (i : int, j : int);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (i : int, j : int);\"\n + \"u = union onschema l1, l2;\"\n ; \n Util.registerMultiLineQuery(pig, query);\n Schema expectedSch = Utils.getSchemaFromString(\"i: int, j: int\");\n Schema sch = pig.dumpSchema(\"u\");\n assertEquals(\"Checking expected schema\",sch, expectedSch);\n Iterator<Tuple> it = pig.openIterator(\"u\");\n \n List<Tuple> expectedRes = \n Util.getTuplesFromConstantTupleStrings(\n new String[] {\n \"(1,2)\",\n \"(5,3)\",\n \"(1,2)\",\n \"(5,3)\"\n });\n Util.checkQueryOutputsAfterSort(it, expectedRes);\n\n }", "@org.junit.Test\n public void k2ComputeConElem2() {\n final XQuery query = new XQuery(\n \"<elem>{\\\"\\\", \\\"\\\", <e/>, <b></b>}</elem>\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertSerialization(\"<elem> <e/><b/></elem>\", false)\n );\n }", "@Test\n public void sharedFilterEnsuresUniqueResults() {\n Filter filter = new Filter(\"test-filter\");\n final Dataset dataset1 = new Dataset(\"TEST1\", \"sql\", filter);\n final Dataset dataset2 = new Dataset(\"TEST2\", \"sql2\", filter); // shared same filter\n\n List<String> entry1 = new ArrayList<>();\n entry1.add(\"001\");\n entry1.add(\"aaa\");\n\n List<String> entry2 = new ArrayList<>();\n entry2.add(\"002\");\n entry2.add(\"bbb\");\n\n List<String> entry3 = new ArrayList<>();\n entry3.add(\"003\");\n entry3.add(\"ccc\");\n\n List<String> entry4 = new ArrayList<>();\n entry4.add(\"004\");\n entry4.add(\"ddd\");\n\n List<List<String>> queryResults1 = new ArrayList<>();\n queryResults1.add(entry1);\n queryResults1.add(entry2);\n queryResults1.add(entry3);\n queryResults1.add(entry4);\n\n List<String> entry5 = new ArrayList<>();\n entry5.add(\"005\"); // different\n entry5.add(\"eee\");\n\n List<String> entry6 = new ArrayList<>();\n entry6.add(\"002\"); // same\n entry6.add(\"bbb\");\n\n List<String> entry7 = new ArrayList<>();\n entry7.add(\"007\"); // different\n entry7.add(\"fff\");\n\n List<String> entry8 = new ArrayList<>();\n entry8.add(\"004\"); // same\n entry8.add(\"ddd\");\n\n List<List<String>> queryResults2 = new ArrayList<>();\n queryResults2.add(entry5);\n queryResults2.add(entry6);\n queryResults2.add(entry7);\n queryResults2.add(entry8);\n\n // given\n dataset1.populateCache(queryResults1, 200L);\n dataset2.populateCache(queryResults2, 300L);\n\n // when\n final List<String> result1 = dataset1.getCachedResult();\n final List<String> result2 = dataset1.getCachedResult();\n final List<String> result3 = dataset1.getCachedResult();\n final List<String> result4 = dataset1.getCachedResult();\n final List<String> result5 = dataset2.getCachedResult();\n final List<String> result6 = dataset2.getCachedResult();\n\n // then\n assertEquals(\"Wrong result 1\", entry1, result1); // first datset is as-is\n assertEquals(\"Wrong result 2\", entry2, result2); // first datset is as-is\n assertEquals(\"Wrong result 3\", entry3, result3); // first datset is as-is\n assertEquals(\"Wrong result 4\", entry4, result4); // first datset is as-is\n assertEquals(\"Wrong result 3\", entry5, result5); // second datset, not filtered out\n assertEquals(\"Wrong result 3\", entry7, result6); // second dataset, entry6 is filtered out\n\n // and\n try {\n dataset1.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST1\", ex.getMessage());\n }\n\n try {\n // entry7 should be filtered out, resulting in no more data\n dataset2.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST2\", ex.getMessage());\n }\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset1.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(200L), dataset1.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(5), dataset1.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.empty(), dataset1.getMetrics().getFilteredOut());\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset2.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(300L), dataset2.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(3), dataset2.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.of(2), dataset2.getMetrics().getFilteredOut());\n }", "public static void compareTs(TypeSystem t1, TypeSystem t2) {\n TypeSystemImpl ts1 = (TypeSystemImpl) t1;\n TypeSystemImpl ts2 = (TypeSystemImpl) t2;\n if (ts1.types.size() != ts2.types.size()) {\n System.out.format(\"ts1 size: %,d ts2 size: %d%n\", ts1.types.size(), ts2.types.size());\n }\n\n for (int i = 1; i < ts1.types.size(); i++) {\n if (ts1.types.get(i).hashCode() != ts2.types.get(i).hashCode()) {\n System.out.format(\"ts1 type: %s%n%nts2 type: %s%n\", ts1.types.get(i), ts2.types.get(i));\n }\n }\n System.out.println(\"done\");\n }", "private TBMFocalElement extendOld(TBMFocalElement focalElement, TBMVarDomain domain) {\n\n TBMFocalElement result = this.createFocalElement();\n\n result.setMass(focalElement.getMass());\n result.setDomain(domain);\n // Get from domain the variables that are not in focalElement \n Set<Resource> diff = domain.listVariables().filterDrop(r -> focalElement.getDomain().hasVariable(r)).toSet();\n\n if (diff.isEmpty()) { //there are no differences, clone the focalElement and it's configurations\n // Clone focal element\n Set<TBMConfiguration> iterConfs = focalElement.listAllConfigurations().toSet();\n for (TBMConfiguration conf : iterConfs) {\n //Create empty conf\n TBMConfiguration newConfig = this.createConfiguration();\n //Add variables of config\n //configuration.listAllElements().forEachRemaining(res -> newConfig.addElement(res)); \n conf.listAllElements().toSet().forEach(elem -> newConfig.addElement(elem));\n //newConfig.addElement(iterElements.next());\n\n //Add config to result\n result.addConfiguration(newConfig);\n }\n } else { //there are differences\n\n Set<TBMConfiguration> resultConfigurations = new HashSet<>();\n\n ExtendedIterator<TBMConfiguration> origConfigurations = focalElement.listAllConfigurations();\n while (origConfigurations.hasNext()) {\n resultConfigurations.add(origConfigurations.next());\n }\n\n // For each of the different variables\n for (Resource var : diff) {\n\n Set<TBMConfiguration> newConfigurations = new HashSet<>();\n\n // For each of the instances of the variable\n Set<Resource> instance = this.listSubjectsWithProperty(RDF.type, var).toSet();\n for (Resource newVar : instance) {\n\n for (TBMConfiguration resultConfiguration : resultConfigurations) {\n //Create empty conf\n TBMConfiguration currentConfig = this.createConfiguration();\n //Add variables of current config\n for (Resource res : resultConfiguration.listAllElements().toSet()) {\n currentConfig.addElement(res);\n }\n //resultConfiguration.listAllElements().forEachRemaining(res -> currentConfig.addElement(res));\n //Add new variable\n currentConfig.addElement(newVar);\n //Add result to current congig\n newConfigurations.add(currentConfig);\n }\n }\n //replace old configs with new configs\n resultConfigurations = newConfigurations;\n }\n\n //add resulting configs to result FE\n resultConfigurations.forEach(conf -> result.addConfiguration(conf));\n\n }\n return result;\n\n }", "protected int getElementSize () {\n return 1;\n }", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "@Test\n public void testRepeatStageType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(NoOpSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "org.apache.xmlbeans.XmlInt xgetPoolNumber();", "public void testIsMergeableElement() throws Exception {\n assertFalse(cfg.isMergeableElement(\"font\"));\n cfg.addMergeableElement(\"font\");\n assertTrue(cfg.isMergeableElement(\"font\"));\n\n cfg.addMergeableElement(\"mergeable\");\n assertTrue(cfg.isMergeableElement(\"font\"));\n assertTrue(cfg.isMergeableElement(\"mergeable\"));\n }", "@Test(timeout = 4000)\n public void test0() throws Throwable {\n int int0 = 855;\n short short0 = (short)63;\n MULTIANEWARRAY mULTIANEWARRAY0 = new MULTIANEWARRAY(int0, short0);\n ConstantPoolGen constantPoolGen0 = new ConstantPoolGen();\n // Undeclared exception!\n try { \n mULTIANEWARRAY0.getLoadClassType(constantPoolGen0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Invalid constant pool reference: 855. Constant pool size is: 256\n //\n }\n }", "@Test\n public void testLimitPool() {\n List<Pool> subscribedTo = new ArrayList<Pool>();\n Consumer guestConsumer = TestUtil.createConsumer(systemType, owner);\n guestConsumer.setFact(\"virt.is_guest\", \"true\");\n \n consumerCurator.create(guestConsumer);\n Pool parentPool = null;\n \n assertTrue(limitPools != null && limitPools.size() == 2);\n for (Pool p : limitPools) {\n // bonus pools have the attribute pool_derived\n if (null != p.getAttributeValue(\"pool_derived\")) {\n // consume 2 times so one can get revoked later.\n consumerResource.bind(guestConsumer.getUuid(), p.getId(), null,\n 10, null, null, false, null);\n consumerResource.bind(guestConsumer.getUuid(), p.getId(), null,\n 10, null, null, false, null);\n // ensure the correct # consumed from the bonus pool\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 100);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 100);\n // keep this list so we don't need to search again\n subscribedTo.add(p);\n }\n else {\n parentPool = p;\n }\n }\n // manifest consume from the physical pool and then check bonus pool quantities\n consumerResource.bind(manifestConsumer.getUuid(), parentPool.getId(), null, 7, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 30);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 30);\n }\n // manifest consume from the physical pool and then check bonus pool quantities.\n // Should result in a revocation of one of the 10 count entitlements.\n consumerResource.bind(manifestConsumer.getUuid(), parentPool.getId(), null, 2, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n }\n // system consume from the physical pool and then check bonus pool quantities.\n // Should result in no change in the entitlements for the guest.\n consumerResource.bind(systemConsumer.getUuid(), parentPool.getId(), null, 1, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n }\n }", "private Stack<String> pickLongerStack(Stack<String> first, Stack<String> second)\n {\n\treturn first.size() > second.size() ? first : second;\n }", "@Test\n\tpublic void testMultipleAddConsistency() {\n\n\t\tcontroller.addNewNodes(2);\n\t\tSignalNode first = controller.getNodesToTest().getFirst();\n\t\tSignalNode last = controller.getNodesToTest().getLast();\n\n\t\tcontroller.addSignalsToNode(first, 10000);\n\n\t\ttry {\n\t\t\tSignal sig = src.next();\n\t\t\tResult r1 = first.findSimilarTo(sig);\n\t\t\tResult r2 = last.findSimilarTo(sig);\n\t\t\tAssert.assertEquals(r1, r2);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Test\n public void testUnionOnSchemaIncompatibleTypes() throws Exception {\n String query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : float);\"\n + \"u = union onschema l1, l2;\";\n\n checkSchemaEx(query, \"Cannot cast from chararray to bytearray\");\n\n //without \"onschema\"\n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : float);\"\n + \"u = union l1, l2;\";\n\n checkSchemaEx(query, \"Cannot cast from chararray to bytearray\");\n\n\n \n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : map[ ], y : chararray);\"\n + \"u = union onschema l1, l2;\"\n ; \n checkSchemaEx(query, \"Cannot cast from long to bytearray\");\n \n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : map[ ], y : chararray);\"\n + \"u = union l1, l2;\"\n ;\n checkSchemaEx(query, \"Cannot cast from long to bytearray\");\n\n // bag column with different internal column types\n query =\n \" l1 = load '\" + INP_FILE_2NUMS \n + \"' as (x : long, b : bag { t : tuple (c1 : int, c2 : chararray)} );\"\n \n + \"l2 = load '\" + INP_FILE_2NUMS \n + \"' as (x : long, b : bag { t : tuple (c1 : long, c2 : chararray)} );\"\n + \"u = union onschema l1, l2;\"\n ; \n Schema sch = new Schema();\n sch.add(new FieldSchema(\"x\", DataType.LONG));\n Schema bagInnerSchema = new Schema();\n bagInnerSchema.add(new FieldSchema(null, new Schema(), DataType.TUPLE));\n sch.add(new FieldSchema(\"b\", bagInnerSchema, DataType.BAG));\n checkSchemaEquals(query, sch);\n \n // tuple column with different internal column types\n query =\n \" l1 = load '\" + INP_FILE_2NUMS \n + \"' as (t : tuple (c1 : int, c2 : chararray) );\"\n \n + \"l2 = load '\" + INP_FILE_2NUMS \n + \"' as (t : tuple (c1 : long, c2 : chararray) );\"\n + \"u = union onschema l1, l2;\"\n ; \n sch = new Schema();\n sch.add(new FieldSchema(\"t\", new Schema(), DataType.TUPLE));\n checkSchemaEquals(query, sch);\n }", "public boolean notEquals(XObject obj2)\n throws javax.xml.transform.TransformerException{\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.notEquals(this);\n return !equals(obj2);\n }", "@Test\n\tpublic void testAddLinkInvalidSameLinkTwiceArrayList() {\n\t\tAddress adr = new Address();\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tTypePropertyCollection proptype = (TypePropertyCollection) adr.getProperty(\"inhabitants\").getType();\n\t\tClass<?> colClassBefore = proptype.getCollectionClass();\n\t\ttry {\n\t\t\tproptype.setCollectionClass(ArrayList.class);\n\t\t\tAssert.assertSame(ArrayList.class, proptype.getCollectionClass());\n\t\t\tAssert.assertNull(adr.getInhabitants());\n\t\t\tAssert.assertNull(martin.getAddress());\n\n\t\t\t// add the same Person to the Address as inhabitant twice\n\t\t\tadr.addInhabitant(martin);\n\t\t\ttry {\n\t\t\t\t// should Assert.fail because of the association end with\n\t\t\t\t// multiplicity\n\t\t\t\t// 1\n\t\t\t\tadr.addInhabitant(martin);\n\t\t\t\tAssert.fail(\"expected ValidationException exception\");\n\t\t\t} catch (ValidationException e) {\n\t\t\t\tAssert.assertTrue(true);\n\t\t\t}\n\t\t} finally {\n\t\t\tproptype.setCollectionClass(colClassBefore);\n\t\t}\n\t}", "@Test(expected = ParserException.class)\n public void processListDuplicateContainer() throws IOException, ParserException {\n\n YangNode node = manager.getDataModel(\"src/test/resources/ListDuplicateContainer.yang\");\n }", "@Test(expected = IllegalArgumentException.class)\n public void testAnotherInvalidMatch() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.add(Object.class);\n typeList.add(Object.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "private void compareSecondPass() {\n final int arraySize = this.oldFileNoMatch.size()\r\n + this.newFileNoMatch.size();\r\n this.compareArray = new SubsetElement[arraySize][2];\r\n final Iterator<String> oldIter = this.oldFileNoMatch.keySet()\r\n .iterator();\r\n int i = 0;\r\n while (oldIter.hasNext()) {\r\n final String key = oldIter.next();\r\n final SubsetElement oldElement = this.oldFileNoMatch.get(key);\r\n SubsetElement newElement = null;\r\n if (this.newFileNoMatch.containsKey(key)) {\r\n newElement = this.newFileNoMatch.get(key);\r\n }\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n // now go through the new elements and check for any that have no match.\r\n // these will be new elements with no corresponding old element\r\n final SubsetElement oldElement = null;\r\n final Iterator<String> newIter = this.newFileNoMatch.keySet()\r\n .iterator();\r\n while (newIter.hasNext()) {\r\n final String key = newIter.next();\r\n if (!this.oldFileNoMatch.containsKey(key)) {\r\n final SubsetElement newElement = this.newFileNoMatch.get(key);\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n\r\n }\r\n\r\n }", "public void testNewFixedThreadPool2() {\n final ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "private void swapElement ( int p1, int p2 )\n\t{\n\t}", "public ArrBag<T> difference( ArrBag<T> other )\n {\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE DIFF\n ArrBag<T> diffResult = new ArrBag<T>(this.size() + other.size());\n int differenceCount = 0;\n\n for(int i =0; i<this.size(); i++)\n {\n if(!other.contains(this.get(i)) && !diffResult.contains(this.get(i)))\n {\n diffResult.add(this.get(i));\n }\n // change the 0 to the right value for diff\n }\n return diffResult; \n }", "public void testAddRejectReasons_RejectReasonsContainsDuplicateElementsAccuracy() {\r\n ExpenseEntryRejectReason[] rejectReasons = new ExpenseEntryRejectReason[4];\r\n rejectReasons[0] = new ExpenseEntryRejectReason(1);\r\n rejectReasons[1] = new ExpenseEntryRejectReason(1);\r\n rejectReasons[2] = new ExpenseEntryRejectReason(2);\r\n rejectReasons[3] = new ExpenseEntryRejectReason(1);\r\n\r\n ExpenseEntryRejectReason[] duplicate = entry.addRejectReasons(rejectReasons);\r\n\r\n // check nothing is added into the rejectReasons map\r\n Map rejectReasonsMap = (Map) V1Dot1TestHelper.getPrivateField(entry.getClass(), entry, \"rejectReasons\");\r\n assertEquals(\"The reject reasons should not be added.\", 0, rejectReasonsMap.size());\r\n\r\n // check the duplicate result\r\n assertNotNull(\"The duplicate result should be correct.\", duplicate);\r\n V1Dot1TestHelper.assertEquals(\"The duplicate result should be correct.\",\r\n new ExpenseEntryRejectReason[] {rejectReasons[0], rejectReasons[1], rejectReasons[3]}, duplicate);\r\n }", "public void testEquals()\r\n\t{\r\n\t\tIrClassType irClassType1 = new IrClassType();\r\n\t\tirClassType1.setName(\"irClassTypeName\");\r\n\t\tirClassType1.setDescription(\"irClassTypeDescription\");\r\n\t\tirClassType1.setId(55l);\r\n\t\tirClassType1.setVersion(33);\r\n\t\t\r\n\t\tIrClassType irClassType2 = new IrClassType();\r\n\t\tirClassType2.setName(\"irClassTypeName2\");\r\n\t\tirClassType2.setDescription(\"irClassTypeDescription2\");\r\n\t\tirClassType2.setId(55l);\r\n\t\tirClassType2.setVersion(33);\r\n\r\n\t\t\r\n\t\tIrClassType irClassType3 = new IrClassType();\r\n\t\tirClassType3.setName(\"irClassTypeName\");\r\n\t\tirClassType3.setDescription(\"irClassTypeDescription\");\r\n\t\tirClassType3.setId(55l);\r\n\t\tirClassType3.setVersion(33);\r\n\t\t\r\n\t\tassert irClassType1.equals(irClassType3) : \"Classes should be equal\";\r\n\t\tassert !irClassType1.equals(irClassType2) : \"Classes should not be equal\";\r\n\t\t\r\n\t\tassert irClassType1.hashCode() == irClassType3.hashCode() : \"Hash codes should be the same\";\r\n\t\tassert irClassType2.hashCode() != irClassType3.hashCode() : \"Hash codes should not be the same\";\r\n\t}", "@Test\n public void noEqualsID() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType2.setId(\"ID2\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", \"Pic\", 5, 1);\n courseTypeNull.setId(null);\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "@Test\n public void noEqualsPicture() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic2\", 5, 1);\n courseType2.setId(\"ID\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", null, 5, 1);\n courseTypeNull.setId(\"ID\");\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "private static boolean identityEqual(final I_GameState state1, final I_GameState state2) {\n if (state1 == state2)\n return true;\n\n return Stream.of(new SimpleEntry<>(state1, state2))\n .flatMap( // transform the elements by making a new stream with the transformation to be used\n pair -> Arrays.stream(E_PileID.values()) // stream the pileIDs\n // make new pair of the elements of that pile from each state\n .map(pileID -> new SimpleEntry<>(\n pair.getKey().get(pileID),\n pair.getValue().get(pileID)\n )\n )\n )\n .allMatch(pair -> pair.getKey() == pair.getValue());\n }", "protected abstract Type loadDefaultElement();", "static Unit<? extends Quantity> getProductInstance(Unit<?> left,\n Unit<?> right) {\n Element[] leftElems;\n if (left instanceof ProductUnit<?>)\n leftElems = ((ProductUnit<?>) left)._elements;\n else\n leftElems = new Element[]{new Element(left, 1, 1)};\n Element[] rightElems;\n if (right instanceof ProductUnit<?>)\n rightElems = ((ProductUnit<?>) right)._elements;\n else\n rightElems = new Element[]{new Element(right, 1, 1)};\n return getInstance(leftElems, rightElems);\n }", "@Test\n\tpublic void testAddLinkInvalidSameLinkTwiceHashSet() {\n\t\tAddress adr = new Address();\n\t\tTypePropertyCollection proptype = (TypePropertyCollection) adr.getProperty(\"inhabitants\").getType();\n\t\tAssert.assertSame(LinkedHashSet.class, proptype.getCollectionClass());\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tAssert.assertNull(adr.getInhabitants());\n\t\tAssert.assertNull(martin.getAddress());\n\n\t\t// add the same Person to the Address as inhabitant twice\n\t\tadr.addInhabitant(martin);\n\t\ttry {\n\t\t\tadr.addInhabitant(martin);\n\t\t\tAssert.fail(\"expected exception\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}", "public boolean isIdentical(FeRangeElement other) {\n\tDean.shouldImplement();\n\treturn false;\n/*\nudanax-top.st:20673:FeVirtualDataHolder methodsFor: 'accessing'!\n{BooleanVar} isIdentical: other {FeRangeElement}\n\t\"This can do a version comparison (which seems a bit extreme).\"\n\tDean shouldImplement.\n\t^false \"fodder\"!\n*/\n}", "public void testAddRejectReasons_RejectReasonsContainsManyDuplicateElementsAccuracy() {\r\n ExpenseEntryRejectReason[] rejectReasons = new ExpenseEntryRejectReason[4];\r\n rejectReasons[0] = new ExpenseEntryRejectReason(1);\r\n rejectReasons[1] = new ExpenseEntryRejectReason(3);\r\n rejectReasons[2] = new ExpenseEntryRejectReason(3);\r\n rejectReasons[3] = new ExpenseEntryRejectReason(2);\r\n entry.addRejectReason(new ExpenseEntryRejectReason(1));\r\n\r\n ExpenseEntryRejectReason[] duplicate = entry.addRejectReasons(rejectReasons);\r\n\r\n // check nothing is added into the rejectReasons map\r\n Map rejectReasonsMap = (Map) V1Dot1TestHelper.getPrivateField(entry.getClass(), entry, \"rejectReasons\");\r\n assertEquals(\"The reject reasons should not be added.\", 1, rejectReasonsMap.size());\r\n\r\n // check the duplicate result\r\n assertNotNull(\"The duplicate result should be correct.\", duplicate);\r\n V1Dot1TestHelper.assertEquals(\"The duplicate result should be correct.\",\r\n new ExpenseEntryRejectReason[] {rejectReasons[0], rejectReasons[1], rejectReasons[2]}, duplicate);\r\n }", "public boolean compareType(Node n1, Node n2)\n {\n boolean compare= false;\n if (n1 instanceof Ipv4 && n2 instanceof Ipv4)\n {\n if (((Ipv4) n1).getType().equals(((Ipv4) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv4 && n2 instanceof Ipv6)\n {\n if (((Ipv4) n1).getType().equals(((Ipv6) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv6 && n2 instanceof Ipv4)\n {\n if (((Ipv6) n1).getType().equals(((Ipv4) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv6 && n2 instanceof Ipv6)\n {\n if (((Ipv6) n1).getType().equals(((Ipv6) n2).getType()))\n compare= true;\n }\n return compare;\n }", "@Override\n protected DataSet<GraphHead> computeNewGraphHeads() {\n return firstCollection.getGraphHeads()\n .union(secondCollection.getGraphHeads())\n .groupBy(new Id<GraphHead>())\n .reduceGroup(new GroupCountEquals<GraphHead>(2));\n }", "private <T> void assertDeduped(List<T> array, Comparator<T> cmp, int expectedLength) {\n List<List<T>> types = List.of(new ArrayList<T>(array), new LinkedList<>(array));\n for (List<T> clone : types) {\n // dedup the list\n CollectionUtils.sortAndDedup(clone, cmp);\n // verify unique elements\n for (int i = 0; i < clone.size() - 1; ++i) {\n assertNotEquals(cmp.compare(clone.get(i), clone.get(i + 1)), 0);\n }\n assertEquals(expectedLength, clone.size());\n }\n }", "@Override\n public int compare( PlanNode o1,\n PlanNode o2 ) {\n if (o1.getType() == type) {\n if (o2.getType() == type) {\n return comparator.compare(o1, o2);\n }\n return -1;\n }\n return o2.getType() == type ? 1 : 0;\n }", "ElementSetNameType createElementSetNameType();", "void compareDataStructures();", "@Test\n public void testSupertypeOutputTypes() throws Exception {\n // InterfaceContract source = new MockContract(\"FooContract\");\n // DataType sourceOutputType = new DataTypeImpl<Type>(Object.class,\n // Object.class);\n // Operation opSource1 = newOperationImpl(\"op1\", null,\n // sourceOutputType, null, false, null);\n // Map<String, Operation> sourceOperations = new HashMap<String,\n // Operation>();\n // sourceOperations.put(\"op1\", opSource1);\n // source.getInterface().getOperations().addAll(sourceOperations.values());\n //\n // InterfaceContract target = new MockContract(\"FooContract\");\n // DataType targetOutputType = new DataTypeImpl<Type>(String.class,\n // String.class);\n // Operation opTarget = newOperationImpl(\"op1\", null, targetOutputType,\n // null, false, null);\n // Map<String, Operation> targetOperations = new HashMap<String,\n // Operation>();\n // targetOperations.put(\"op1\", opTarget);\n // target.getInterface().getOperations().addAll(targetOperations.values());\n // wireService.checkCompatibility(source, target, false);\n }", "@Test\n public void testUnionOnSchemaInnerSchema() throws Exception {\n PigServer pig = new PigServer(Util.getLocalTestMode());\n String query =\n \" l1 = load '\" + INP_FILE_2NUM_1CHAR_1BAG + \"' as \"\n + \" (i : long, c : chararray, j : int \"\n + \", b : bag { t : tuple (c1 : int, c2 : chararray)} ); \"\n + \"l2 = load '\" + INP_FILE_2NUM_1CHAR_1BAG + \"' as \"\n + \" (i : long, c : chararray, j : int \"\n + \", b : bag { t : tuple (c1 : int, c2 : chararray)} ); \"\n + \"u = union onschema l1, l2; \"\n // The addition in the inner foreach will fail if the inner schema's uids\n // are all set to -1, since the code that finds the inner load's schema will\n // match the last item in b's schema, which is a chararray\n + \"p = foreach u { x = foreach b GENERATE c1 + 5 as c3; GENERATE i, c, x; }\";\n\n Util.registerMultiLineQuery(pig, query);\n pig.explain(\"p\", System.out);\n\n Iterator<Tuple> it = pig.openIterator(\"p\");\n\n List<Tuple> expectedRes =\n Util.getTuplesFromConstantTupleStrings(\n new String[] {\n \"(1L,'abc',{(6),(6)})\",\n \"(5L,'def',{(7),(7)})\",\n \"(1L,'abc',{(6),(6)})\",\n \"(5L,'def',{(7),(7)})\"\n });\n Util.checkQueryOutputsAfterSort(it, expectedRes);\n }", "@Test\r\n public void NegativeTestSize1() {\r\n Assert.assertNotEquals(1, set1.size());\r\n }", "private boolean compare(ValueType first, ValueType second) {\r\n // TODO\r\n return false;\r\n }", "private ImmutableSetMultimap<TypeElement, Element> validElements(RoundEnvironment roundEnv) {\n ImmutableSet<ElementName> prevDeferredElementNames = ImmutableSet.copyOf(deferredElementNames);\n deferredElementNames.clear();\n\n ImmutableSetMultimap.Builder<TypeElement, Element> deferredElementsByAnnotationBuilder =\n ImmutableSetMultimap.builder();\n for (ElementName deferredElementName : prevDeferredElementNames) {\n Optional<? extends Element> deferredElement = deferredElementName.getElement(elements);\n if (deferredElement.isPresent()) {\n findAnnotatedElements(\n deferredElement.get(),\n getSupportedAnnotationTypeElements(),\n deferredElementsByAnnotationBuilder);\n } else {\n deferredElementNames.add(deferredElementName);\n }\n }\n\n ImmutableSetMultimap<TypeElement, Element> deferredElementsByAnnotation =\n deferredElementsByAnnotationBuilder.build();\n\n ImmutableSetMultimap.Builder<TypeElement, Element> validElements =\n ImmutableSetMultimap.builder();\n\n Set<ElementName> validElementNames = new LinkedHashSet<>();\n\n // Look at the elements we've found and the new elements from this round and validate them.\n for (TypeElement annotationType : getSupportedAnnotationTypeElements()) {\n Set<? extends Element> roundElements = roundEnv.getElementsAnnotatedWith(annotationType);\n ImmutableSet<Element> prevRoundElements = deferredElementsByAnnotation.get(annotationType);\n for (Element element : Sets.union(roundElements, prevRoundElements)) {\n ElementName elementName = ElementName.forAnnotatedElement(element);\n boolean isValidElement =\n validElementNames.contains(elementName)\n || (!deferredElementNames.contains(elementName)\n && validateElement(\n element.getKind().equals(PACKAGE) ? element : getEnclosingType(element)));\n if (isValidElement) {\n validElements.put(annotationType, element);\n validElementNames.add(elementName);\n } else {\n deferredElementNames.add(elementName);\n }\n }\n }\n\n return validElements.build();\n }" ]
[ "0.54815245", "0.53346574", "0.5245602", "0.49695712", "0.49635178", "0.4938609", "0.49249282", "0.4866258", "0.48508543", "0.4823402", "0.48194894", "0.4818599", "0.47971088", "0.47880647", "0.47812667", "0.4765915", "0.47541448", "0.47469106", "0.47084153", "0.4698717", "0.4696502", "0.46885514", "0.467423", "0.46693003", "0.46674976", "0.4660495", "0.46504733", "0.46446037", "0.46331206", "0.46314374", "0.46294373", "0.46192124", "0.46016517", "0.4601451", "0.45958114", "0.45941433", "0.45915028", "0.4588107", "0.45779994", "0.4574498", "0.45712566", "0.45712253", "0.45698488", "0.45627213", "0.45609412", "0.45569256", "0.45471108", "0.45399556", "0.45310593", "0.45298418", "0.45265865", "0.45219612", "0.45073488", "0.4506939", "0.44978246", "0.4487083", "0.44614083", "0.44605863", "0.44567072", "0.4452414", "0.44509804", "0.44485363", "0.44465095", "0.44427657", "0.44420284", "0.44405338", "0.44376588", "0.44347423", "0.4433575", "0.44333187", "0.44331297", "0.44244757", "0.4420912", "0.4420426", "0.441954", "0.4419157", "0.44167197", "0.4415874", "0.44134486", "0.44064954", "0.44030035", "0.43915233", "0.43888465", "0.43854827", "0.43844804", "0.43795186", "0.43795127", "0.43766287", "0.4374567", "0.43722275", "0.4372082", "0.43713683", "0.4369691", "0.436885", "0.4367836", "0.436508", "0.43645012", "0.43643668", "0.43616915", "0.4357947" ]
0.5669081
0
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { // configure orders table orderID_column.setCellValueFactory(new PropertyValueFactory<>("order_id")); brandName_column.setCellValueFactory(new PropertyValueFactory<>("brand_name")); price_column.setCellValueFactory(new PropertyValueFactory<>("total_price")); date_column.setCellValueFactory(new PropertyValueFactory<>("order_date")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Controller()\n\t{\n\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public Controller() {\n\t\tthis(null);\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}", "protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "protected CityController() {\r\n\t}", "public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }", "public ClientController() {\n }", "public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}", "public ListaSEController() {\n }", "boolean InitController();", "public MenuController() {\r\n\t \r\n\t }", "@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}", "public CustomerController() {\n\t\tsuper();\n\n\t}", "public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "public PlantillaController() {\n }", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public IfController()\n\t{\n\n\t}", "public TournamentController()\n\t{\n\t\tinitMap();\n\t}", "public GeneralListVueController() {\n\n\t}", "private ClientController() {\n }", "public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "public LogMessageController() {\n\t}", "public LoginPageController() {\n\t}", "public ControllerEnfermaria() {\n }", "public ProvisioningEngineerController() {\n super();\n }", "private StoreController(){}", "public GenericController() {\n }", "@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}", "public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}", "public MapController() {\r\n\t}", "@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}", "private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }", "public WfController()\n {\n }", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "private ClientController(){\n\n }", "public LoginController() {\r\n }", "public PersonasController() {\r\n }", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "public StoreController() {\n }", "public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}", "public LoginController() {\r\n\r\n }", "public final void init(final MainController mainController) {\n this.mainController = mainController;\n }", "public SMPFXController() {\n\n }", "public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }", "public GUIController() {\n\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "public ControllerTest()\r\n {\r\n }", "public SearchedRecipeController() {\n }", "public FilmOverviewController() {\n }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public RootLayoutController() {\n }", "public MehController() {\n updateView(null);\n }", "public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}", "public WorkerController(){\r\n\t}", "public TipoInformazioniController() {\n\n\t}", "private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }", "public ProductOverviewController() {\n }", "public ProduktController() {\r\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }", "public PersonLoginController() {\n }", "public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}", "public TaxiInformationController() {\n }", "public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }", "public CreateDocumentController() {\n }", "public ControllerRol() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "public void init() {\n \n }", "public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}", "public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}", "public SessionController() {\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public MainFrameController() {\n }", "public LicenciaController() {\n }", "public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }", "public MotorController() {\n\t\tresetTachometers();\n\t}", "public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "public HomeController() {\n }", "public HomeController() {\n }" ]
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.6912564", "0.688884", "0.6881247", "0.68776786", "0.68723065", "0.6868163", "0.68672407", "0.6851157", "0.6846883", "0.6840198", "0.68382674", "0.68338853", "0.6795918", "0.67823315", "0.6766882", "0.67650586", "0.6750353", "0.6749068", "0.6745654", "0.6743223", "0.67401046", "0.6727867", "0.6723379", "0.6695514", "0.6689967", "0.66892517", "0.66791916", "0.6677345", "0.66644365", "0.6664202", "0.66616154", "0.66532296", "0.66481894", "0.6644939", "0.6639398", "0.6633576", "0.66312426", "0.662608", "0.66258574", "0.66105217", "0.6606984", "0.66024727", "0.6597095", "0.6580141", "0.65786153", "0.65752715", "0.6574144", "0.6551536", "0.655142", "0.6547574", "0.6545647", "0.6541474", "0.6529243", "0.65284246", "0.6525593", "0.6523344", "0.6519832", "0.65134746", "0.65079254", "0.6497635", "0.64952356", "0.6493943", "0.6492926", "0.6483847", "0.6483173", "0.648183", "0.6479119", "0.64789915", "0.6476928", "0.64734083", "0.6465272", "0.64616114", "0.6444024", "0.64379543", "0.6431962", "0.64292705", "0.6425357", "0.6417148", "0.6416786", "0.64161026", "0.64161026" ]
0.0
-1
get Customer Information from waitingCustomer scene
public void initData(Customer customer) throws SQLException{ this.selectedCustomer = customer ; this.fullnameLabel.setText(selectedCustomer.getFullname()); this.username.setText(selectedCustomer.getUsername()); this.phone.setText(selectedCustomer.getPhone()); this.email.setText(selectedCustomer.getEmail()); this.address.setText(selectedCustomer.getAddress()); this.customer_id.setText(Integer.toString(selectedCustomer.getCustomer_id())); this.tableView.setItems(getOrders()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getCustomer() {\n final LoginGet loginget = new LoginGet();\n loginget.setLoginGetListener(new LoginGetListener() {\n\n @Override\n public void getMember(ArrayList<Customer> list) {\n\n }\n\n @Override\n public void getCustomer(ArrayList<Customer> list) {\n customerList = new ArrayList<Customer>();\n customerList.addAll(list);\n if (customerList.size() > 0) {\n defaultPage.setVisibility(View.GONE);\n ll.setVisibility(View.VISIBLE);\n myNewCustomersAdapter = new MyNewCustomersAdapter(\n NewFriendsActivity.this, customerList);\n listView.setAdapter(myNewCustomersAdapter);\n } else {\n tv2.setText(\"You haven't friends for a long time\");\n }\n\n }\n });\n loginget.CustomerRequest(NewFriendsActivity.this);\n\n }", "public String getCustomer() {\n return customer;\n }", "public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }", "@Override\n public String getCustomer() {\n return this.customerName;\n }", "public String getName()\n {\n return customer;\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public GFRecordDataModel getCustomerLocalCustomerInformation()\n\t{\n\t\treturn getCustomerLocalCustomerInformation(system, unit, customerNumber);\n\t}", "public String getCustomerName() \n {\n return customerName;\n }", "@Override\n public void showCustomerDetails() {\n System.out.println(customerLoggedIn);\n }", "public Customer getCustomer() {\n return this.customer;\n }", "public void msgImReadyToOrder(CustomerAgent customer){\n\t//print(\"received msgImReadyToOrder from:\"+customer);\n\tfor(int i=0; i < customers.size(); i++){\n\t //if(customers.get(i).cmr.equals(customer)){\n\t if (customers.get(i).cmr == customer){\n\t\tcustomers.get(i).state = CustomerState.READY_TO_ORDER;\n\t\tstateChanged();\n\t\treturn;\n\t }\n\t}\n\tSystem.out.println(\"msgImReadyToOrder in WaiterAgent, didn't find him?\");\n }", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "public String getCustomerName()\n {\n return customerName;\n }", "public Customer getCustomer() {\r\n return customer;\r\n }", "public Customer getCustomer() {\n\t\treturn customer;\n\t}", "public CustomerDataObject getJob_Customer() {\r\n return job_Customer;\r\n }", "@Override\n\tpublic void gatherRetailCustomerInfo(RetailCustomer retailCustomer) {\n\t\tretailCustomerUserBill = new Billing();\n\t\tthis.retailCustomer = retailCustomer;\n\t}", "public String getCustomerName(){\n return customerName;\n }", "public Customer getCustomer() {\n return customer;\n }", "public Customer getCustomer()\n {\n return this.customer;\n }", "Customer getCustomer() {\n\t\treturn customer;\n\t}", "private void getCustomerData() {\r\n\t\t// get next customer data : from file or random number generator\r\n\t\t// set anyNewArrival and transactionTime\r\n\t\t// see readme file for more info\r\n\r\n\t\tif (dataSource == 1) { // file\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0/1 random or file input\r\n\t\t\t\t\tif (dataFile.hasNextInt()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checks for a line of information\r\n\t\t\t\t\t\tint data1 = dataFile.nextInt();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// every line has 2 numbers of info\r\n\t\t\t\t\t\tint data2 = dataFile.nextInt();\r\n\t\t\t\t\t\tanyNewArrival \t= (((data1%100)+1)<= chancesOfArrival);\t\t// computes anyNewArrival boolean\r\n\t\t\t\t transactionTime = (data2%maxTransactionTime)+1;\t\t\t\t\t// computes transactionTime integer\r\n\t\t\t\t\t}\r\n\t\t} else { // random\r\n\t\t\tdataRandom = new Random();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// generates random boolean and int\r\n\t\t\tanyNewArrival \t= ((dataRandom.nextInt(100) + 1) <= chancesOfArrival);\r\n\t\t\ttransactionTime = dataRandom.nextInt(maxTransactionTime) + 1;\r\n\t\t}\r\n\t}", "public String getCustomersName()\r\n {\r\n return customersName;\r\n }", "private void showCustomerInfoDialog(Customer customer) {\n\t\ttry {\n\t\t\t// set up the root for the customer information dialog\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(C195Application.class.getResource(\"view/AddCustomer.fxml\"));\n\t\t\tloader.setResources(lang);\n\t\t\tAnchorPane customerInfoRoot = (AnchorPane) loader.load();\n\n\t\t\t// set up the stage for the customer information dialog\n\t\t\tStage customerInfoStage = new Stage();\n\t\t\tcustomerInfoStage.setTitle(\"\");\n\t\t\tcustomerInfoStage.initModality(Modality.WINDOW_MODAL);\n\t\t\tcustomerInfoStage.initOwner(stage);\n\n\t\t\t// add a new scene with the root to the stage\n\t\t\tScene scene = new Scene(customerInfoRoot);\n\t\t\tcustomerInfoStage.setScene(scene);\n\n\t\t\t// get the controller for the dialog and pass a reference \n\t\t\t// the customer info dialog stage, and a customer, if one was selected\n\t\t\tAddCustomerController controller = loader.getController();\n\t\t\tcontroller.setupDialog(customerInfoStage, customer);\n\n\t\t\t// show the customer information dialog\n\t\t\tcustomerInfoStage.showAndWait();\n\n\t\t\t// refresh the customer list after an update\n\t\t\tCustomer newCustomer = controller.getNewCustomer();\n\t\t\tif (newCustomer == null) return;\n\n\t\t\tif(customer == null) {\n\t\t\t\tcustomers.add(newCustomer);\n\t\t\t} else {\n\t\t\t\tcustomers.set(customers.indexOf(customer), newCustomer);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String getCustomerName() {\n return customerName;\n }", "public String getCustomerName() {\n return customerName;\n }", "public Customer getCustomer()\n {\n return customer;\n }", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}", "public String getCustomer_Name() {\n return customer_Name;\n }", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public String getCustomerReference() {\n return customerReference;\n }", "public void readCustomerDetails()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tScanner reader = new Scanner(new FileReader(\"customersWhoPurchased.txt\"));\r\n\t\t\twhile (reader.hasNext())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(reader.nextLine());\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"FileNotFoundException\");\r\n\t\t}\r\n\t}", "public static ArrayList<CustomerInfoBean> getCutomers_onWait() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=0;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}", "Customer getCustomer();", "public String getCustomer(String custId);", "public Customer getCustomer()\n {\n return customer;\n }", "public com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer getCustomer() {\r\n return customer;\r\n }", "public String getCustomerName()\n\t{\n\t\treturn name;\n\t}", "private void updateScreenCustomerDetails(Customer c) {\n // - update main title with customers full name\n tvCustomerMainTitle.setText(customer.toString());\n\n // - update screen with customer ID\n textViewID.setText(customer.getCustomerID());\n\n // - update screen with customer email\n tvCustomerEmail.setText(customer.getEmail());\n\n // - update screen with customer VIP status\n tvCustomerVipStatus.setText(customer.vipStatusToString());\n\n // - update avctive game and lane fields\n }", "public void printCustomerDetails()\r\n {\r\n System.out.println(title + \" \" + firstName + \" \" \r\n + lastName + \"\\n\" +getAddress() \r\n + \"\\nCard Number: \" + cardNumber \r\n + \"\\nPoints available: \" + points);\r\n }", "public Map<String, Customer> getCustomer(){\r\n\t\treturn treeData;\r\n\t}", "public static void setCustomerData()\n\t{\n\t\tString sURL = PropertyManager.getInstance().getProperty(\"REST_PATH\") + \"measurements?state=WAIT_FOR_CONFIG\";\n\t\tmCollect = new MeasurementCollection();\n\t\tmCollect.setList(sURL);\n\n\t\tfor (int i = 0; i < mCollect.getList().size(); i++)\n\t\t{\n\t\t\tmObject = mCollect.getList().get(i);\n\t\t\tString mID = mObject.getId();\n\t\t\taData = new AddressData(mID);\n\t\t\tif (mObject.getPriority().equals(\"HIGH\"))\n\t\t\t{\n\t\t\t\tcustomerList.add(\"+ \" + aData.guiAddressData());\n\t\t\t}\n\t\t\telse if (mObject.getPriority().equals(\"MEDIUM\"))\n\t\t\t{\n\t\t\t\tcustomerList.add(\"- \" + aData.guiAddressData());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcustomerList.add(\"o \" + aData.guiAddressData());\n\t\t\t}\n\n\t\t}\n\t\tcustomerText.setText(aData.getCustomerData());\n\t\tmeasureText.setText(mObject.getMeasurementData());\n\n\t}", "private void printCustomerDetails(CustomerService customerService) \n\t\t\t\t\t\tthrows DBOperationException\n\t{\n\t\tCustomer customer = customerService.getCustomerDetails();\n\t\tif(customer == null)\n\t\t{\n\t\t\tSystem.out.print(customerService.getClientMsg());\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(customer);\n\t}", "public static void viewCustomerInfo() {\n\t\tSystem.out.println(\"Please enter customer name\");\n\t\tString firstName=scan.nextLine();\n\t\tCustomer c=Bank.findCustomerByName(firstName);\n\t\tFind find=new Find();\n\t\tfind.viewCustomerDetails(c);\n\n\t\tSystem.out.println(\"Customer: \" + c.getFirstName() + \" \" + c.getLastName() + \" \"+ c.getUserName() + \" \"+ c.getPassword() \n\t\t+ \" \" + c.getDriverLicense() + \" \" + c.getAccountType() + \" \"+ c.getInitialDeposit() + \" \" + \"was viewed\");\n\t\tLogThis.LogIt(\"info\", c.getFirstName() + \" \" + c.getLastName()+ \" was viewed!\");\n\n\t\tSystem.out.println(\"Would you like to find another customer?\");\n\n\t\tSystem.out.println(\"\\t[y]es\");\n\t\tSystem.out.println(\"\\t[n]o\");\n\t\tSystem.out.println(\"\\t[l]og Out\");\n\n\n\t\tString option = scan.nextLine();\n\t\tswitch(option.toLowerCase()) {\n\t\tcase \"y\":\n\t\t\tviewCustomerInfo();\n\t\t\tbreak;\n\t\tcase \"n\":\n\t\t\tstartMenu();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Invalid input. Redirecting to main menu\");\n\t\t\tstartMenu();\n\n\t\t}\n\t}", "public Integer getCustomer() {\n return customer;\n }", "private static CreditRequest getRequestDataFromCustomer() {\n\t\treturn new CreditRequest(0, new Vector<Warrantor>(), null, null, null, null);\n\t}", "public String getCustomerName() {\r\n return name.getName();\r\n }", "public String queryCustomerInfo(int id, int customerID)\n throws RemoteException, DeadlockException;", "public List<CustomerRequest> getCurrentRequests();", "private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }", "public void showCustomers() {\r\n List<String> customerList = new ArrayList<>();\r\n for (int i = 0; i < customersTable.getItems().size(); i++) {\r\n Customer customer = customersTable.getItems().get(i);\r\n LocalDate date = LocalDate.parse(customer.getDate());\r\n if (date.plusMonths(1).isBefore(LocalDate.now())) {\r\n customerList.add(customer.getFirstName() + \" \" + customer.getLastName());\r\n }\r\n }\r\n String message = \"\";\r\n for (String customer : customerList) {\r\n message += customer + \"\\n\";\r\n }\r\n if (message.equals(\"\")) {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"The following customers need to be contacted this week\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\"No customers to be contacted today\");\r\n alert.showAndWait();\r\n } else {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"The following customers need to be contacted this week\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(message);\r\n alert.showAndWait();\r\n }\r\n }", "@Override\n public ExtensionResult getCustomerInfo(ExtensionRequest extensionRequest) {\n String account = getEasyMapValueByName(extensionRequest, \"account\");\n String name = getEasyMapValueByName(extensionRequest, \"name\");\n Map<String, String> output = new HashMap<>();\n StringBuilder respBuilder = new StringBuilder();\n if (account.substring(0, 1).equals(\"1\")) {\n respBuilder.append(\"Ticket Number : \" + extensionRequest.getIntent().getTicket().getTicketNumber() + \"\\n\");\n respBuilder.append(\" Data Customer Account \" + account + \"\\n\");\n respBuilder.append(\"Nama: \" + name + \"\\n\");\n respBuilder.append(\"Setoran tiap bulan : Rp. 500,000\\n\");\n respBuilder.append(\"Jatuh tempo berikutnya : 15 Agustus 2018\");\n } else {\n respBuilder.append(\"Ticket Number : \" + extensionRequest.getIntent().getTicket().getTicketNumber() + \"\\n\");\n respBuilder.append(appProperties.getFormId() + \" Data Customer Account \" + account + \"\\n\");\n respBuilder.append(\"Nama: \" + name + \"\\n\");\n respBuilder.append(\"Setoran tiap bulan : Rp. 1,000,000\\n\");\n respBuilder.append(\"Jatuh tempo berikutnya : 27 Agustus 2018\");\n }\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n\n output.put(OUTPUT, respBuilder.toString());\n extensionResult.setValue(output);\n return extensionResult;\n }", "@Override\n\tpublic String getName(){\n\t\treturn customer.getName();\n\t}", "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn customerName;\n\t}", "public String getCustomerName() {\n\t\treturn customerName;\n\t}", "public String getCustomerName() {\n\t\treturn customerName;\n\t}", "protected Optional<Customer> getCustomer() {\n return customer.getOptional();\n }", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}", "public void updateCustomerInfo(){\n nameLabel.setText(customer.getName());\n productWantedLabel.setText(customer.getWantedItem());\n serviceManager.getTotalPrice().updateNode();\n }", "String getCustomerName(String bookingRef);", "public CustomerProfile getCustomerProfile();", "public static WSCreateCustomerResponse getCustomer(RESTActions restActions) throws Throwable {\n LOG.info(\"##### Creating GET request headers\");\n\t\tHashtable<String,String> headerTable = BackOfficeUtils.createRESTHeader(RESTConstants.APPLICATION_JSON);\t\t\t\n\t\t\n\t\tString uniqueID = UUID.randomUUID().toString();\n\t\tString username = uniqueID + \"@test.com\";\n\t\tString password = \"Pas5word!\";\n\t\t\n\t\tLOG.info(\"##### Call the Prevalidate API\");\n\t\tprevalidate(restActions, headerTable, username, password);\n\t\t\n\t\tLOG.info(\"##### Get a Security Question\");\n\t\tString securityQuestion = securityQuestion(restActions, headerTable);\n\t\t\n\t\tLOG.info(\"##### Call the Create Customer API\");\n\t\tWSCreateCustomerResponse customerResponse = createCustomer(restActions, headerTable, username, password, securityQuestion);\n\t\tString expectedCustomerId = customerResponse.getCustomerId();\t\t\n\t\t\n\t\tLOG.info(\"##### Call the Complete Registration API\");\n\t\tcompleteRegistration(restActions, headerTable, expectedCustomerId);\t\t\n\t\t\n\t\treturn customerResponse;\n\t}", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "static String serve(Customer customer) {\r\n\t\tString serviceReport = String.format(\r\n\t\t\t\"%d: %s %s arrived at %s to %s $%.2f and spoke to teller %d. Current balance: $%.2f\",\r\n\t\t\tcustomer.customerId,\r\n\t\t\tcustomer.firstName,\r\n\t\t\tcustomer.lastName,\r\n\t\t\tCustomerFunctions.getTime(customer.arrivalTime),\r\n\t\t\tCustomerFunctions.transactionTypeString(customer.transactionType),\r\n\t\t\tcustomer.transactionAmount,\r\n\t\t\tcustomer.tellerNo,\r\n\t\t\tcustomer.balance\r\n\t\t\t);\r\n\r\n\t\t// Perform deposit / withdrawl on customer account\r\n\t\tif (customer.transactionType == 'D') customer.balance += customer.transactionAmount;\r\n\t\telse customer.balance -= customer.transactionAmount;\r\n\r\n\t\tserviceReport += String.format(\r\n\t\t\t\", New balance: $%.2f, Wait time: %d minutes%n%n\",\r\n\t\t\tcustomer.balance,\r\n\t\t\tcustomer.serviceTime\r\n\t\t\t);\r\n\r\n\t\t// Add to teller totals\r\n\t\ttellerCount[customer.tellerNo - 1] += 1;\r\n\t\tif (customer.transactionType == 'D') tellerDeposits[customer.tellerNo - 1] += customer.transactionAmount;\r\n\t\telse tellerWithdrawls[customer.tellerNo-1] += customer.transactionAmount;\r\n\r\n\t\treturn serviceReport;\r\n\t}", "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "public String getCustName() \r\n\t{\r\n\t\t\r\n\t\treturn custName;\r\n\t\t\r\n\t}", "public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }", "@Override\n\tpublic void receiveCustomers() {\n\t\tfor(int i=interactionCounter; i<customers.size()&&customers.get(i).getArrival()<=currentTurn; i++){\n\t\t\tcustomersInLine.add(customers.get(i));\n\t\t\tcustomersInRestaurant++;\n\t\t\tinteractionCounter++;\t\n\t\t}\t\n\t}", "public Object getCustomerContactActivityRecord() {\n return customerContactActivityRecord;\n }", "public String getCustomerid() {\n return customerid;\n }", "@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }", "public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}", "String getName() {\n\t\treturn customer.getName();\n\t}", "public CustomerTO getCustomerDetails(CustomerTO customerTo) throws Exception\r\n\t{\r\n\t\treturn new CustomerService().getCustomerDetails(customerTo);\r\n\t}", "public com.commercetools.api.models.customer.CustomerReference getCustomer() {\n return this.customer;\n }", "public Object getCustomerContactRecord() {\n return customerContactRecord;\n }", "@Override\n public String toString() {\n return super.toString() + String.format(\": Customer %d arrives\",\n this.customer.getId());\n }", "public String getCustomerName() {\n\t\treturn this.customer.getCustomerName();\n\t}", "CustomerDTO getCustomerDetails(Long customerId,String userName) throws EOTException;", "public void displayCustomerDetails(){\n\t\tStringBuffer fullname = new StringBuffer();//Creates new string buffer\n\t\tStringBuffer fulladdress = new StringBuffer();//Creates new string buffer\n\t\tfullname.append(\"Full Name: \" + fname + \" \" + lname);\n\t\tfulladdress.append(\"Full Address: \" + address1 + \", \" + address2 + \", \" + postcode);\n\t\tSystem.out.println(fullname);\n\t\tSystem.out.println(fulladdress);\n\t\tSystem.out.println(\"Account No: \" + linkedacc);\n\t\tSystem.out.println(\"Customer Ref: \" + custref);\n\t}", "public Customer getCurrentCustomer() {\n\t\treturn currentCustomer;\n\t}", "public Customer getCurrentCustomer() {\n\t\treturn currentCustomer;\n\t}", "public void run()\n\t{\n\t\t// print which customer was created\n\t\tSystem.out.println(\"Customer \" + customerNumber + \" created\");\n\t\t\n\t\t// try to enter the post office and print when succesful\n\t\ttry {\n\t\t\tProject2.max_capacity.acquire();\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\tSystem.out.println(\"Customer \" + customerNumber + \" enters post office\");\n\t\t\n\t\t// try to be attended by a postal worker\n\t\ttry {\n\t\t\tProject2.worker_ready.acquire();\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t\n\t\t// add customer to the serving customer queue by locking mutex\n\t\ttry {\n\t\t\tProject2.servingCustomerMutex.acquire();\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t\n\t\t// adding this customer to the serving customer queue\n\t\tProject2.servingCustomer.add(this);\n\t\t// signal that this customer is ready to be served\n\t\tProject2.cust_ready.release();\n\n\t\t// unlock serving customer mutex\n\t\tProject2.servingCustomerMutex.release();\n\t\t\t\t\n\t\t// keep track of whether the customer is finished to move on\n\t\ttry {\n\t\t\tProject2.customers_finished[customerNumber].acquire();\n\t\t} catch (InterruptedException e)\n\t\t{\t\n\t\t}\n\t\t\n\t\t// print that customer leaves post office\n\t\tSystem.out.println(\"Customer \" + customerNumber + \" leaves post office\");\n\t\t// signify that another customer can enter the post office now\n\t\tProject2.max_capacity.release();\n\t}", "void requestTicket(String customerName)\n {\n\ttc.customerName = customerName;\n\ttc.run(); // Sells ticket. Prints ticket to console.\n }", "public Customer displayCustomer(int cid);", "public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n if (customerBuilder_ == null) {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n } else {\n return customerBuilder_.getMessage();\n }\n }", "String getCustomerID();", "@Override\r\n\tpublic UserDTO getNSCustomerDetails(int nsCustomerID){\r\n\t\treturn jobPostDelegate.getNSCustomerDetails(nsCustomerID);\r\n\t}", "public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}", "public String getCustName() {\n\t\treturn custName;\n\t}", "public String getCustName() {\n\t\treturn custName;\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public Customer getCustomerDetails() throws Exception {\n\t\treturn customersDBDAO.getOneCustomer(customerId);\n\t}", "@Then(\"^user enters customer details$\")\n\tpublic void user_enters_customer_details(DataTable customer) {\n\t\tfor(Map<String, String> data :customer.asMaps())\n\t\t{\n\t\t\t \tdriver.findElement(By.name(\"name\")).sendKeys(data.get(\"customer\"));\n\t\t\t driver.findElement(By.xpath(\"//input[@type='radio'][@value='m']\")).click();\n\t\t\t driver.findElement(By.xpath(\"//input[@type='date']\")).sendKeys(data.get(\"DOB\"));\n//\t\t\t driver.findElement(By.name(\"addr\")).sendKeys(data.get(\"add\"));\n\t\t\t driver.findElement(By.name(\"city\")).sendKeys(data.get(\"city\"));\n\t\t\t driver.findElement(By.name(\"state\")).sendKeys(data.get(\"state\"));\n\t\t\t driver.findElement(By.name(\"pinno\")).sendKeys(data.get(\"pin\"));\n\t\t\t driver.findElement(By.name(\"telephoneno\")).sendKeys(data.get(\"mobile\"));\n\t\t\t driver.findElement(By.name(\"emailid\")).sendKeys(data.get(\"emailid\"));\n\t\t\t driver.findElement(By.name(\"password\")).sendKeys(data.get(\"password\"));\n\t\t\t \n\t\t}\n\t \n\t \n\t}" ]
[ "0.65148777", "0.64383847", "0.6332182", "0.63138485", "0.6164114", "0.6159675", "0.6135262", "0.6127739", "0.6127739", "0.6123475", "0.61202383", "0.61183345", "0.60973686", "0.6094477", "0.608623", "0.6081957", "0.6077083", "0.6055366", "0.60077953", "0.59884816", "0.5982511", "0.59824854", "0.59792024", "0.5976757", "0.5973114", "0.5969329", "0.59683776", "0.59500694", "0.59500694", "0.59343785", "0.59212285", "0.59208715", "0.5907392", "0.5862878", "0.5859694", "0.5858367", "0.5854426", "0.5840788", "0.5821766", "0.5815449", "0.5811301", "0.58096445", "0.58034503", "0.5801711", "0.57946897", "0.5787608", "0.57816327", "0.57736427", "0.57580996", "0.574693", "0.57458586", "0.573312", "0.5729239", "0.57002085", "0.5686137", "0.5659695", "0.5655565", "0.56325537", "0.56315666", "0.56315666", "0.56309116", "0.5626339", "0.5623946", "0.5622524", "0.5619299", "0.56173503", "0.560433", "0.5604211", "0.5600764", "0.5590193", "0.5580109", "0.55800873", "0.5578343", "0.5576144", "0.557463", "0.5571875", "0.5571708", "0.55698687", "0.55694115", "0.5568429", "0.5539217", "0.5537991", "0.5530467", "0.5524947", "0.55177057", "0.5512714", "0.5512714", "0.5504751", "0.54991174", "0.54846084", "0.5472036", "0.5460171", "0.5454252", "0.54542404", "0.54519564", "0.54508674", "0.54508674", "0.5450278", "0.5450278", "0.54492724", "0.54476553" ]
0.0
-1