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
This method was generated by MyBatis Generator. This method corresponds to the database table order
int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}", "OrderByColumnFull createOrderByColumnFull();", "public ArrayList<Table> getTableOrder() {\n \tArrayList<Table> fetchedTables = new ArrayList<Table>();\n \tfetchedTables = getTable(tableOrder);\n \treturn fetchedTables;\n }", "protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n DatabaseMeta databaseMeta, String locale, Map<LogicalTable, String> tableAliases, Map<String, String> columnsMap,\n Map<String, Object> parameters, boolean genAsPreparedStatement ) {\n if ( orderBy != null ) {\n for ( Order orderItem : orderBy ) {\n LogicalColumn businessColumn = orderItem.getSelection().getLogicalColumn();\n String alias = null;\n if ( columnsMap != null ) {\n // The column map is a unique mapping of Column alias to the column ID\n // Here we have the column ID and we need the alias.\n // We need to do the order by on the alias, not the column name itself.\n // For most databases, it can be both, but the alias is more standard.\n //\n // Using the column name and not the alias caused an issue on Apache Derby.\n //\n for ( String key : columnsMap.keySet() ) {\n String value = columnsMap.get( key );\n if ( value.equals( businessColumn.getId() ) ) {\n // Found it: the alias is the key\n alias = key;\n break;\n }\n }\n }\n SqlAndTables sqlAndTables =\n getBusinessColumnSQL( model, orderItem.getSelection(), tableAliases, parameters, genAsPreparedStatement,\n databaseMeta, locale );\n query.addOrderBy( sqlAndTables.getSql(), databaseMeta.quoteField( alias ), orderItem.getType() != Type.ASC\n ? OrderType.DESCENDING : null );\n }\n }\n }", "protected void setTableOrder(int num)\n\t\t{\n\t\t\tOrder = num ;\n\t\t}", "Orderall selectByPrimaryKey(String orderid);", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public StatementBuilder order(OrderSql orderSql) {\n if (this.orderSql == null) {\n setOrder(orderSql);\n } else {\n this.orderSql.add(orderSql);\n }\n return this;\n }", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "public static void setOrderBy (String columnList){\n fetchAllOrderBy=columnList;\n }", "@VTID(10)\r\n int getOrder();", "public Integer getOrder();", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "public StatementBuilder setOrder(OrderSql orderSql) {\n this.orderSql = orderSql;\n return this;\n }", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "@Override\n public int getOrder() {\n return 0;\n }", "public void orderById() {\n Collections.sort(customers, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n return ((Customer)o1).getId().compareTo(((Customer)o2).getId());\n }\n });\n\n //avisa que a tabela foi alterada\n fireTableDataChanged();\n }", "public String sort() throws DatabaseException {\n //doesn't do anything\n return this.tableName;\n\n }", "public int getOrder();", "@Override\n public int getOrder() {\n return 4;\n }", "public int getOrder() {\n\t\treturn 0;\n\t}", "@Override\r\n public int getOrder() {\r\n return this.order;\r\n }", "List selectByExample(OrderPreferentialExample example) throws SQLException;", "@Override\n\tpublic String getOrder() {\n\t\treturn \"zjlxdm,asc\";\n\t}", "default int getOrder() {\n\treturn 0;\n }", "int getOrder(){\r\n\t\t\treturn this.order;\r\n\t\t}", "OrOrderByColumn createOrOrderByColumn();", "@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }", "OrderByClause createOrderByClause();", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void PopulatePoseOrderTable(int Difficulty) { \n \ttry {\n \t\t\n\t\t\tString sql = \"insert into poseorder select null, _id from yogaposes\";\n\t\t\tsql += \" \" + formatSqlStatement(Difficulty);\n\t\t\tsql += \" order by Random()\";\n\t\t\tLog.d(\"Database Call\", sql);\n\t\t\tthis.openDataBase();\n\t\t\tmyDataBase.execSQL(sql);\n\t\t\tthis.close();\n\t\t} // TODO Auto-generated catch block\n\t\t\tcatch (SQLException e) {\n\t\t\tLog.d(\"SQL Exception\", \"PopulatePoseOrderTable \" + e.toString());\n\t\t}\n \t catch (Exception e) {\n\t\t\tLog.d(\"Exception\", \"PopulatePoseOrderTable \" + e.toString());\n\t\t}\n \t\n }", "R_order selectByPrimaryKey(Integer oId);", "protected SqlExpression getOrderSqlExpression() {\n\t\tif (this.orderSqlExpr != null) {\n\t\t\treturn this.orderSqlExpr;\n\t\t}\n\t\t\n\t\tif (this.orderExpr == null) {\n\t\t\treturn null;\n\t\t}\n\t\tStandardCompExprToSqlExprBuilder builder = new StandardCompExprToSqlExprBuilder();\n\t\tbuilder.setMapper(createExpressionBuilderResolver());\n\t\tthis.orderSqlExpr = builder.buildSqlExpression(this.orderExpr);\n\t\treturn this.orderSqlExpr;\n\t}", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "public Order viewOrders() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\t//Order nextOrder = \r\n\t\treturn nextOrder;\r\n\t}", "private String getOrderByQuery(List<SQLiteColumn> list, boolean orderByPk) {\r\n StringBuilder builder = new StringBuilder();\r\n String separator = SQL_COLUMN_SEPARATOR;\r\n for (SQLiteColumn column : list) {\r\n if (!(orderByPk ^ column.isPrimaryKey())) {\r\n builder.append(column.getColumnName()).append(separator);\r\n }\r\n }\r\n String result = \"\";\r\n if (builder.length() > 1) {\r\n builder.delete(builder.length() - separator.length(),\r\n builder.length());\r\n result = \" ORDER BY \" + builder.toString();\r\n }\r\n return result;\r\n }", "@Override\r\n\tpublic List<Order> ListOrder() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<mOrders> getListOrderByBatchCode(String batchCode) {\n\t\ttry{\n\t\t\tbegin();\n\t\t\tCriteria criteria = getSession().createCriteria(mOrders.class);\n\t\t\tcriteria.add(Restrictions.eq(\"O_BatchCode\", batchCode));\n\t\n\t\t\tList<mOrders> o= criteria.list();\n\t\t\tcommit();\n//\t\t\tfor(int i=0; i<o.size(); i++){\n//\t\t\t\tSystem.out.println(name()+\"::getListOrderByDueDate--\"+o.get(i).toString());\n//\t\t\t}\n\t\t\treturn o;\n\t\t} catch (HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally {\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "@Override\n\tpublic String queryOrderByOrderNo(String orderno) {\n\treturn null;\n\t}", "public static void main(String[] args) {\n String originalTableName = \"data_statistics\";\n String targetTableName = \"preprocessing_column_order_test1\";\n\n List<ColumnOrder> columnList = new ArrayList<>();\n ColumnOrder columnOrder1 = new ColumnOrder();\n columnOrder1.setColumnName(\"id\");\n columnOrder1.setOrderType(\"升序排序\");\n\n ColumnOrder columnOrder2 = new ColumnOrder();\n columnOrder2.setColumnName(\"var1\");\n columnOrder2.setOrderType(\"降序排序\");\n\n columnList.add(columnOrder1);\n columnList.add(columnOrder2);\n\n\n DataOrder dataOrder = new DataOrder();\n dataOrder.processingData(originalTableName, columnList, targetTableName);\n\n\n }", "public int getOrder() {\n return order;\n }", "public int getOrder() {\n return order;\n }", "@Select(\"select * from website_cooperativeuser order by `order` asc\")\r\n List<WebsiteCooperativeuser> selectAll();", "public void setOrder(Integer order) {\n this.order = order;\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public void createSourceOrderItemTable() throws SQLException {\n sourceExecuteWithLog(extraSQLCommand.getCreateTableOrderItem());\n }", "@Override\r\n\tpublic OrderVO getOrderByID(Integer ono) throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getOneOrderByOrderID\",ono);\r\n\t}", "@Override\n\tprotected String getDefaultOrderBy() {\n\t\treturn \"date asc\";\n\t}", "public int getOrder() {\r\n\t\treturn order;\r\n\t}", "public Integer getOrder() {\n return order;\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic String getNextOrderNumber() {\n\t\t// TODO Auto-generated method stub\n\t\treturn \"ORD\"+sequenceNumberDao.findNextSequenceType(ESequenceType.ORDER);\n\t}", "public void changeSortOrder();", "public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public Integer getOrder() {\n return order;\n }", "public Integer getOrder() {\n return order;\n }", "java.lang.String getOrderBy();", "static Map<String, Integer> primaryKeyOrder(Session session, String keyspace, String table) {\n HashMap<String, Integer> returnValue = new HashMap<>();\n Statement select = primarykeyCQL(keyspace, table);\n ResultSet rs = session.execute(select.toString());\n\n TreeMap<String, String> sortedMap = new TreeMap<>();\n for (Row row : rs) {\n String columnName = row.get(COLUMN_NAME_COLUMN, String.class);\n String kind = row.get(KIND_COLUMN, String.class);\n String position = row.get(POSITION_COLUMN, Integer.class).toString();\n if (kind.equals(\"clustering\")) {\n sortedMap.put(\"clustering_\" + position, columnName);\n } else {\n sortedMap.put(position, columnName);\n }\n }\n\n List<String> sortedKeyset = new ArrayList<>(sortedMap.keySet());\n for (int i = 0; i < sortedKeyset.size(); i++) {\n returnValue.put(sortedMap.get(sortedKeyset.get(i)), i);\n }\n\n return returnValue;\n }", "public String getOrder() {\n return this.Order;\n }", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "private void constructExecuteSql() {\n getMetaData();\n // Validate that the primary keys are present in the underlying SQL\n StringBuilder orderBySql = new StringBuilder(super.getExecuteSql()).append(\"\\n order by \");\n switch (metaData.getDbType()) {\n case ORACLE:\n orderBySql.append(createOracleOrderedByClause ());\n break;\n case SQL_SERVER:\n orderBySql.append(createSqlServerOrderedByClause());\n break;\n case UNKNOWN:\n default:\n orderBySql.append(createUnknownDBOrderedByClause());\n }\n this.executeSql = orderBySql.toString();\n }", "public int getOrder() {\n\t\treturn order;\n\t}", "public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }", "@Mapper\n@Repository\npublic interface OrderDAO {\n\n @Insert(\"insert into order_one values(#{order.id},#{order.number},#{order.name})\")\n int insert(@Param(\"order\") Order order);\n\n}", "public Timestamp getDateOrdered();", "public int getOrder() {\n \treturn ord;\n }", "public List getDatabaseOrderParams() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? Arrays.asList(expr.getValues()) : new ArrayList();\n\t}", "@Override\r\n\tpublic String getTableName(String[] sql) {\n\t\treturn sql[2];\r\n\t}", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "public int getOrder() {\n return mOrder;\n }", "@Insert({\n \"insert into order (id, orderid, \",\n \"name, price, userid)\",\n \"values (#{id,jdbcType=BIGINT}, #{orderid,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{userid,jdbcType=VARCHAR})\"\n })\n int insert(Order record);", "@Column(name = \"order_id\", precision = 10)\n @GeneratedValue\n @Id\n public Integer getOrderId() {\n return orderId;\n }", "public MOrder( Properties ctx,ResultSet rs,String trxName ) {\n super( ctx,rs,trxName );\n }", "public Integer getOrder() {\n\t\treturn order;\n\t}", "public void incrementOrder() {\n mOrder++;\n }", "List<Employee> sort(Sorting selectedSortColoumn) throws SQLException;", "public interface TabOrderCustomerMapper {\n List<TabOrder> listOrderByUids(List<Integer> uidList);\n\n List<TabOrder> getTurnover();\n\n List<TabOrder> listOrderAll();\n}", "@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}", "BusnessOrder selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<WxOrder> queryOrderByExpressList() {\n\t\treturn orderMapper.queryOrderByExpressList();\n\t}", "@Override\n\tpublic String selectTableList(int top) {\n\t\treturn \"select sqltext,pointid,type from history_table_view where rownum <= \"+top+\" order by id desc\";\n\t}" ]
[ "0.7150102", "0.70747644", "0.5989495", "0.59714025", "0.5948854", "0.5912307", "0.59027433", "0.5847214", "0.58451104", "0.58348256", "0.57856953", "0.5757909", "0.57493114", "0.57219756", "0.5711273", "0.5709492", "0.5708551", "0.5699694", "0.56765527", "0.5645061", "0.56384665", "0.56232613", "0.56202763", "0.560212", "0.55871063", "0.5580853", "0.5560033", "0.55279106", "0.5523447", "0.5510792", "0.55003756", "0.54999304", "0.549587", "0.54957664", "0.54866844", "0.5434429", "0.54332227", "0.54241717", "0.54103774", "0.5392277", "0.53917444", "0.53879", "0.5363785", "0.5361385", "0.5354121", "0.5354121", "0.5336799", "0.53357667", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.5319757", "0.53182095", "0.5317494", "0.5316947", "0.53139293", "0.53103966", "0.5308754", "0.5308754", "0.53036827", "0.5300663", "0.5292088", "0.5287123", "0.5270449", "0.5270449", "0.5268545", "0.5268545", "0.5266193", "0.5247408", "0.5245421", "0.5223717", "0.5217845", "0.521576", "0.52134806", "0.5212015", "0.52058125", "0.5199896", "0.5198819", "0.5195326", "0.51953137", "0.5185567", "0.5178438", "0.51781225", "0.51691175", "0.5162964", "0.51444465", "0.51438177", "0.5142963", "0.51417726", "0.5141091", "0.51371473", "0.51360214", "0.513602" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table order
int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}", "OrderByColumnFull createOrderByColumnFull();", "public ArrayList<Table> getTableOrder() {\n \tArrayList<Table> fetchedTables = new ArrayList<Table>();\n \tfetchedTables = getTable(tableOrder);\n \treturn fetchedTables;\n }", "protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n DatabaseMeta databaseMeta, String locale, Map<LogicalTable, String> tableAliases, Map<String, String> columnsMap,\n Map<String, Object> parameters, boolean genAsPreparedStatement ) {\n if ( orderBy != null ) {\n for ( Order orderItem : orderBy ) {\n LogicalColumn businessColumn = orderItem.getSelection().getLogicalColumn();\n String alias = null;\n if ( columnsMap != null ) {\n // The column map is a unique mapping of Column alias to the column ID\n // Here we have the column ID and we need the alias.\n // We need to do the order by on the alias, not the column name itself.\n // For most databases, it can be both, but the alias is more standard.\n //\n // Using the column name and not the alias caused an issue on Apache Derby.\n //\n for ( String key : columnsMap.keySet() ) {\n String value = columnsMap.get( key );\n if ( value.equals( businessColumn.getId() ) ) {\n // Found it: the alias is the key\n alias = key;\n break;\n }\n }\n }\n SqlAndTables sqlAndTables =\n getBusinessColumnSQL( model, orderItem.getSelection(), tableAliases, parameters, genAsPreparedStatement,\n databaseMeta, locale );\n query.addOrderBy( sqlAndTables.getSql(), databaseMeta.quoteField( alias ), orderItem.getType() != Type.ASC\n ? OrderType.DESCENDING : null );\n }\n }\n }", "protected void setTableOrder(int num)\n\t\t{\n\t\t\tOrder = num ;\n\t\t}", "Orderall selectByPrimaryKey(String orderid);", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public StatementBuilder order(OrderSql orderSql) {\n if (this.orderSql == null) {\n setOrder(orderSql);\n } else {\n this.orderSql.add(orderSql);\n }\n return this;\n }", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "public static void setOrderBy (String columnList){\n fetchAllOrderBy=columnList;\n }", "@VTID(10)\r\n int getOrder();", "public Integer getOrder();", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "public StatementBuilder setOrder(OrderSql orderSql) {\n this.orderSql = orderSql;\n return this;\n }", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "@Override\n public int getOrder() {\n return 0;\n }", "public void orderById() {\n Collections.sort(customers, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n return ((Customer)o1).getId().compareTo(((Customer)o2).getId());\n }\n });\n\n //avisa que a tabela foi alterada\n fireTableDataChanged();\n }", "public String sort() throws DatabaseException {\n //doesn't do anything\n return this.tableName;\n\n }", "public int getOrder();", "@Override\n public int getOrder() {\n return 4;\n }", "public int getOrder() {\n\t\treturn 0;\n\t}", "@Override\r\n public int getOrder() {\r\n return this.order;\r\n }", "List selectByExample(OrderPreferentialExample example) throws SQLException;", "@Override\n\tpublic String getOrder() {\n\t\treturn \"zjlxdm,asc\";\n\t}", "default int getOrder() {\n\treturn 0;\n }", "int getOrder(){\r\n\t\t\treturn this.order;\r\n\t\t}", "OrOrderByColumn createOrOrderByColumn();", "@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }", "OrderByClause createOrderByClause();", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void PopulatePoseOrderTable(int Difficulty) { \n \ttry {\n \t\t\n\t\t\tString sql = \"insert into poseorder select null, _id from yogaposes\";\n\t\t\tsql += \" \" + formatSqlStatement(Difficulty);\n\t\t\tsql += \" order by Random()\";\n\t\t\tLog.d(\"Database Call\", sql);\n\t\t\tthis.openDataBase();\n\t\t\tmyDataBase.execSQL(sql);\n\t\t\tthis.close();\n\t\t} // TODO Auto-generated catch block\n\t\t\tcatch (SQLException e) {\n\t\t\tLog.d(\"SQL Exception\", \"PopulatePoseOrderTable \" + e.toString());\n\t\t}\n \t catch (Exception e) {\n\t\t\tLog.d(\"Exception\", \"PopulatePoseOrderTable \" + e.toString());\n\t\t}\n \t\n }", "R_order selectByPrimaryKey(Integer oId);", "protected SqlExpression getOrderSqlExpression() {\n\t\tif (this.orderSqlExpr != null) {\n\t\t\treturn this.orderSqlExpr;\n\t\t}\n\t\t\n\t\tif (this.orderExpr == null) {\n\t\t\treturn null;\n\t\t}\n\t\tStandardCompExprToSqlExprBuilder builder = new StandardCompExprToSqlExprBuilder();\n\t\tbuilder.setMapper(createExpressionBuilderResolver());\n\t\tthis.orderSqlExpr = builder.buildSqlExpression(this.orderExpr);\n\t\treturn this.orderSqlExpr;\n\t}", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "public Order viewOrders() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\t//Order nextOrder = \r\n\t\treturn nextOrder;\r\n\t}", "private String getOrderByQuery(List<SQLiteColumn> list, boolean orderByPk) {\r\n StringBuilder builder = new StringBuilder();\r\n String separator = SQL_COLUMN_SEPARATOR;\r\n for (SQLiteColumn column : list) {\r\n if (!(orderByPk ^ column.isPrimaryKey())) {\r\n builder.append(column.getColumnName()).append(separator);\r\n }\r\n }\r\n String result = \"\";\r\n if (builder.length() > 1) {\r\n builder.delete(builder.length() - separator.length(),\r\n builder.length());\r\n result = \" ORDER BY \" + builder.toString();\r\n }\r\n return result;\r\n }", "@Override\r\n\tpublic List<Order> ListOrder() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<mOrders> getListOrderByBatchCode(String batchCode) {\n\t\ttry{\n\t\t\tbegin();\n\t\t\tCriteria criteria = getSession().createCriteria(mOrders.class);\n\t\t\tcriteria.add(Restrictions.eq(\"O_BatchCode\", batchCode));\n\t\n\t\t\tList<mOrders> o= criteria.list();\n\t\t\tcommit();\n//\t\t\tfor(int i=0; i<o.size(); i++){\n//\t\t\t\tSystem.out.println(name()+\"::getListOrderByDueDate--\"+o.get(i).toString());\n//\t\t\t}\n\t\t\treturn o;\n\t\t} catch (HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally {\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "@Override\n\tpublic String queryOrderByOrderNo(String orderno) {\n\treturn null;\n\t}", "public static void main(String[] args) {\n String originalTableName = \"data_statistics\";\n String targetTableName = \"preprocessing_column_order_test1\";\n\n List<ColumnOrder> columnList = new ArrayList<>();\n ColumnOrder columnOrder1 = new ColumnOrder();\n columnOrder1.setColumnName(\"id\");\n columnOrder1.setOrderType(\"升序排序\");\n\n ColumnOrder columnOrder2 = new ColumnOrder();\n columnOrder2.setColumnName(\"var1\");\n columnOrder2.setOrderType(\"降序排序\");\n\n columnList.add(columnOrder1);\n columnList.add(columnOrder2);\n\n\n DataOrder dataOrder = new DataOrder();\n dataOrder.processingData(originalTableName, columnList, targetTableName);\n\n\n }", "public int getOrder() {\n return order;\n }", "public int getOrder() {\n return order;\n }", "@Select(\"select * from website_cooperativeuser order by `order` asc\")\r\n List<WebsiteCooperativeuser> selectAll();", "public void setOrder(Integer order) {\n this.order = order;\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public void createSourceOrderItemTable() throws SQLException {\n sourceExecuteWithLog(extraSQLCommand.getCreateTableOrderItem());\n }", "@Override\r\n\tpublic OrderVO getOrderByID(Integer ono) throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getOneOrderByOrderID\",ono);\r\n\t}", "@Override\n\tprotected String getDefaultOrderBy() {\n\t\treturn \"date asc\";\n\t}", "public int getOrder() {\r\n\t\treturn order;\r\n\t}", "public Integer getOrder() {\n return order;\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic String getNextOrderNumber() {\n\t\t// TODO Auto-generated method stub\n\t\treturn \"ORD\"+sequenceNumberDao.findNextSequenceType(ESequenceType.ORDER);\n\t}", "public void changeSortOrder();", "public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public Integer getOrder() {\n return order;\n }", "public Integer getOrder() {\n return order;\n }", "java.lang.String getOrderBy();", "static Map<String, Integer> primaryKeyOrder(Session session, String keyspace, String table) {\n HashMap<String, Integer> returnValue = new HashMap<>();\n Statement select = primarykeyCQL(keyspace, table);\n ResultSet rs = session.execute(select.toString());\n\n TreeMap<String, String> sortedMap = new TreeMap<>();\n for (Row row : rs) {\n String columnName = row.get(COLUMN_NAME_COLUMN, String.class);\n String kind = row.get(KIND_COLUMN, String.class);\n String position = row.get(POSITION_COLUMN, Integer.class).toString();\n if (kind.equals(\"clustering\")) {\n sortedMap.put(\"clustering_\" + position, columnName);\n } else {\n sortedMap.put(position, columnName);\n }\n }\n\n List<String> sortedKeyset = new ArrayList<>(sortedMap.keySet());\n for (int i = 0; i < sortedKeyset.size(); i++) {\n returnValue.put(sortedMap.get(sortedKeyset.get(i)), i);\n }\n\n return returnValue;\n }", "public String getOrder() {\n return this.Order;\n }", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "private void constructExecuteSql() {\n getMetaData();\n // Validate that the primary keys are present in the underlying SQL\n StringBuilder orderBySql = new StringBuilder(super.getExecuteSql()).append(\"\\n order by \");\n switch (metaData.getDbType()) {\n case ORACLE:\n orderBySql.append(createOracleOrderedByClause ());\n break;\n case SQL_SERVER:\n orderBySql.append(createSqlServerOrderedByClause());\n break;\n case UNKNOWN:\n default:\n orderBySql.append(createUnknownDBOrderedByClause());\n }\n this.executeSql = orderBySql.toString();\n }", "public int getOrder() {\n\t\treturn order;\n\t}", "public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }", "@Mapper\n@Repository\npublic interface OrderDAO {\n\n @Insert(\"insert into order_one values(#{order.id},#{order.number},#{order.name})\")\n int insert(@Param(\"order\") Order order);\n\n}", "public Timestamp getDateOrdered();", "public int getOrder() {\n \treturn ord;\n }", "public List getDatabaseOrderParams() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? Arrays.asList(expr.getValues()) : new ArrayList();\n\t}", "@Override\r\n\tpublic String getTableName(String[] sql) {\n\t\treturn sql[2];\r\n\t}", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "public int getOrder() {\n return mOrder;\n }", "@Insert({\n \"insert into order (id, orderid, \",\n \"name, price, userid)\",\n \"values (#{id,jdbcType=BIGINT}, #{orderid,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{userid,jdbcType=VARCHAR})\"\n })\n int insert(Order record);", "@Column(name = \"order_id\", precision = 10)\n @GeneratedValue\n @Id\n public Integer getOrderId() {\n return orderId;\n }", "public MOrder( Properties ctx,ResultSet rs,String trxName ) {\n super( ctx,rs,trxName );\n }", "public Integer getOrder() {\n\t\treturn order;\n\t}", "public void incrementOrder() {\n mOrder++;\n }", "List<Employee> sort(Sorting selectedSortColoumn) throws SQLException;", "public interface TabOrderCustomerMapper {\n List<TabOrder> listOrderByUids(List<Integer> uidList);\n\n List<TabOrder> getTurnover();\n\n List<TabOrder> listOrderAll();\n}", "@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}", "BusnessOrder selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<WxOrder> queryOrderByExpressList() {\n\t\treturn orderMapper.queryOrderByExpressList();\n\t}", "@Override\n\tpublic String selectTableList(int top) {\n\t\treturn \"select sqltext,pointid,type from history_table_view where rownum <= \"+top+\" order by id desc\";\n\t}" ]
[ "0.7150102", "0.70747644", "0.5989495", "0.59714025", "0.5948854", "0.5912307", "0.59027433", "0.5847214", "0.58451104", "0.58348256", "0.57856953", "0.5757909", "0.57493114", "0.57219756", "0.5711273", "0.5709492", "0.5708551", "0.5699694", "0.56765527", "0.5645061", "0.56384665", "0.56232613", "0.56202763", "0.560212", "0.55871063", "0.5580853", "0.5560033", "0.55279106", "0.5523447", "0.5510792", "0.55003756", "0.54999304", "0.549587", "0.54957664", "0.54866844", "0.5434429", "0.54332227", "0.54241717", "0.54103774", "0.5392277", "0.53917444", "0.53879", "0.5363785", "0.5361385", "0.5354121", "0.5354121", "0.5336799", "0.53357667", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.53205675", "0.5319757", "0.53182095", "0.5317494", "0.5316947", "0.53139293", "0.53103966", "0.5308754", "0.5308754", "0.53036827", "0.5300663", "0.5292088", "0.5287123", "0.5270449", "0.5270449", "0.5268545", "0.5268545", "0.5266193", "0.5247408", "0.5245421", "0.5223717", "0.5217845", "0.521576", "0.52134806", "0.5212015", "0.52058125", "0.5199896", "0.5198819", "0.5195326", "0.51953137", "0.5185567", "0.5178438", "0.51781225", "0.51691175", "0.5162964", "0.51444465", "0.51438177", "0.5142963", "0.51417726", "0.5141091", "0.51371473", "0.51360214", "0.513602" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table order
int updateByPrimaryKeySelective(Order record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}", "OrderByColumnFull createOrderByColumnFull();", "public ArrayList<Table> getTableOrder() {\n \tArrayList<Table> fetchedTables = new ArrayList<Table>();\n \tfetchedTables = getTable(tableOrder);\n \treturn fetchedTables;\n }", "protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n DatabaseMeta databaseMeta, String locale, Map<LogicalTable, String> tableAliases, Map<String, String> columnsMap,\n Map<String, Object> parameters, boolean genAsPreparedStatement ) {\n if ( orderBy != null ) {\n for ( Order orderItem : orderBy ) {\n LogicalColumn businessColumn = orderItem.getSelection().getLogicalColumn();\n String alias = null;\n if ( columnsMap != null ) {\n // The column map is a unique mapping of Column alias to the column ID\n // Here we have the column ID and we need the alias.\n // We need to do the order by on the alias, not the column name itself.\n // For most databases, it can be both, but the alias is more standard.\n //\n // Using the column name and not the alias caused an issue on Apache Derby.\n //\n for ( String key : columnsMap.keySet() ) {\n String value = columnsMap.get( key );\n if ( value.equals( businessColumn.getId() ) ) {\n // Found it: the alias is the key\n alias = key;\n break;\n }\n }\n }\n SqlAndTables sqlAndTables =\n getBusinessColumnSQL( model, orderItem.getSelection(), tableAliases, parameters, genAsPreparedStatement,\n databaseMeta, locale );\n query.addOrderBy( sqlAndTables.getSql(), databaseMeta.quoteField( alias ), orderItem.getType() != Type.ASC\n ? OrderType.DESCENDING : null );\n }\n }\n }", "protected void setTableOrder(int num)\n\t\t{\n\t\t\tOrder = num ;\n\t\t}", "Orderall selectByPrimaryKey(String orderid);", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public StatementBuilder order(OrderSql orderSql) {\n if (this.orderSql == null) {\n setOrder(orderSql);\n } else {\n this.orderSql.add(orderSql);\n }\n return this;\n }", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "public static void setOrderBy (String columnList){\n fetchAllOrderBy=columnList;\n }", "@VTID(10)\r\n int getOrder();", "public Integer getOrder();", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "public StatementBuilder setOrder(OrderSql orderSql) {\n this.orderSql = orderSql;\n return this;\n }", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "@Override\n public int getOrder() {\n return 0;\n }", "public void orderById() {\n Collections.sort(customers, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n return ((Customer)o1).getId().compareTo(((Customer)o2).getId());\n }\n });\n\n //avisa que a tabela foi alterada\n fireTableDataChanged();\n }", "public String sort() throws DatabaseException {\n //doesn't do anything\n return this.tableName;\n\n }", "public int getOrder();", "@Override\n public int getOrder() {\n return 4;\n }", "public int getOrder() {\n\t\treturn 0;\n\t}", "@Override\r\n public int getOrder() {\r\n return this.order;\r\n }", "List selectByExample(OrderPreferentialExample example) throws SQLException;", "@Override\n\tpublic String getOrder() {\n\t\treturn \"zjlxdm,asc\";\n\t}", "default int getOrder() {\n\treturn 0;\n }", "int getOrder(){\r\n\t\t\treturn this.order;\r\n\t\t}", "OrOrderByColumn createOrOrderByColumn();", "@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }", "OrderByClause createOrderByClause();", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "public void PopulatePoseOrderTable(int Difficulty) { \n \ttry {\n \t\t\n\t\t\tString sql = \"insert into poseorder select null, _id from yogaposes\";\n\t\t\tsql += \" \" + formatSqlStatement(Difficulty);\n\t\t\tsql += \" order by Random()\";\n\t\t\tLog.d(\"Database Call\", sql);\n\t\t\tthis.openDataBase();\n\t\t\tmyDataBase.execSQL(sql);\n\t\t\tthis.close();\n\t\t} // TODO Auto-generated catch block\n\t\t\tcatch (SQLException e) {\n\t\t\tLog.d(\"SQL Exception\", \"PopulatePoseOrderTable \" + e.toString());\n\t\t}\n \t catch (Exception e) {\n\t\t\tLog.d(\"Exception\", \"PopulatePoseOrderTable \" + e.toString());\n\t\t}\n \t\n }", "R_order selectByPrimaryKey(Integer oId);", "protected SqlExpression getOrderSqlExpression() {\n\t\tif (this.orderSqlExpr != null) {\n\t\t\treturn this.orderSqlExpr;\n\t\t}\n\t\t\n\t\tif (this.orderExpr == null) {\n\t\t\treturn null;\n\t\t}\n\t\tStandardCompExprToSqlExprBuilder builder = new StandardCompExprToSqlExprBuilder();\n\t\tbuilder.setMapper(createExpressionBuilderResolver());\n\t\tthis.orderSqlExpr = builder.buildSqlExpression(this.orderExpr);\n\t\treturn this.orderSqlExpr;\n\t}", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "public Order viewOrders() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\t//Order nextOrder = \r\n\t\treturn nextOrder;\r\n\t}", "private String getOrderByQuery(List<SQLiteColumn> list, boolean orderByPk) {\r\n StringBuilder builder = new StringBuilder();\r\n String separator = SQL_COLUMN_SEPARATOR;\r\n for (SQLiteColumn column : list) {\r\n if (!(orderByPk ^ column.isPrimaryKey())) {\r\n builder.append(column.getColumnName()).append(separator);\r\n }\r\n }\r\n String result = \"\";\r\n if (builder.length() > 1) {\r\n builder.delete(builder.length() - separator.length(),\r\n builder.length());\r\n result = \" ORDER BY \" + builder.toString();\r\n }\r\n return result;\r\n }", "@Override\r\n\tpublic List<Order> ListOrder() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<mOrders> getListOrderByBatchCode(String batchCode) {\n\t\ttry{\n\t\t\tbegin();\n\t\t\tCriteria criteria = getSession().createCriteria(mOrders.class);\n\t\t\tcriteria.add(Restrictions.eq(\"O_BatchCode\", batchCode));\n\t\n\t\t\tList<mOrders> o= criteria.list();\n\t\t\tcommit();\n//\t\t\tfor(int i=0; i<o.size(); i++){\n//\t\t\t\tSystem.out.println(name()+\"::getListOrderByDueDate--\"+o.get(i).toString());\n//\t\t\t}\n\t\t\treturn o;\n\t\t} catch (HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally {\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "@Override\n\tpublic String queryOrderByOrderNo(String orderno) {\n\treturn null;\n\t}", "public static void main(String[] args) {\n String originalTableName = \"data_statistics\";\n String targetTableName = \"preprocessing_column_order_test1\";\n\n List<ColumnOrder> columnList = new ArrayList<>();\n ColumnOrder columnOrder1 = new ColumnOrder();\n columnOrder1.setColumnName(\"id\");\n columnOrder1.setOrderType(\"升序排序\");\n\n ColumnOrder columnOrder2 = new ColumnOrder();\n columnOrder2.setColumnName(\"var1\");\n columnOrder2.setOrderType(\"降序排序\");\n\n columnList.add(columnOrder1);\n columnList.add(columnOrder2);\n\n\n DataOrder dataOrder = new DataOrder();\n dataOrder.processingData(originalTableName, columnList, targetTableName);\n\n\n }", "public int getOrder() {\n return order;\n }", "public int getOrder() {\n return order;\n }", "@Select(\"select * from website_cooperativeuser order by `order` asc\")\r\n List<WebsiteCooperativeuser> selectAll();", "public void setOrder(Integer order) {\n this.order = order;\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public void createSourceOrderItemTable() throws SQLException {\n sourceExecuteWithLog(extraSQLCommand.getCreateTableOrderItem());\n }", "@Override\n\tprotected String getDefaultOrderBy() {\n\t\treturn \"date asc\";\n\t}", "@Override\r\n\tpublic OrderVO getOrderByID(Integer ono) throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getOneOrderByOrderID\",ono);\r\n\t}", "public int getOrder() {\r\n\t\treturn order;\r\n\t}", "public Integer getOrder() {\n return order;\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic String getNextOrderNumber() {\n\t\t// TODO Auto-generated method stub\n\t\treturn \"ORD\"+sequenceNumberDao.findNextSequenceType(ESequenceType.ORDER);\n\t}", "public void changeSortOrder();", "public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public Integer getOrder() {\n return order;\n }", "public Integer getOrder() {\n return order;\n }", "java.lang.String getOrderBy();", "static Map<String, Integer> primaryKeyOrder(Session session, String keyspace, String table) {\n HashMap<String, Integer> returnValue = new HashMap<>();\n Statement select = primarykeyCQL(keyspace, table);\n ResultSet rs = session.execute(select.toString());\n\n TreeMap<String, String> sortedMap = new TreeMap<>();\n for (Row row : rs) {\n String columnName = row.get(COLUMN_NAME_COLUMN, String.class);\n String kind = row.get(KIND_COLUMN, String.class);\n String position = row.get(POSITION_COLUMN, Integer.class).toString();\n if (kind.equals(\"clustering\")) {\n sortedMap.put(\"clustering_\" + position, columnName);\n } else {\n sortedMap.put(position, columnName);\n }\n }\n\n List<String> sortedKeyset = new ArrayList<>(sortedMap.keySet());\n for (int i = 0; i < sortedKeyset.size(); i++) {\n returnValue.put(sortedMap.get(sortedKeyset.get(i)), i);\n }\n\n return returnValue;\n }", "public String getOrder() {\n return this.Order;\n }", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "private void constructExecuteSql() {\n getMetaData();\n // Validate that the primary keys are present in the underlying SQL\n StringBuilder orderBySql = new StringBuilder(super.getExecuteSql()).append(\"\\n order by \");\n switch (metaData.getDbType()) {\n case ORACLE:\n orderBySql.append(createOracleOrderedByClause ());\n break;\n case SQL_SERVER:\n orderBySql.append(createSqlServerOrderedByClause());\n break;\n case UNKNOWN:\n default:\n orderBySql.append(createUnknownDBOrderedByClause());\n }\n this.executeSql = orderBySql.toString();\n }", "public int getOrder() {\n\t\treturn order;\n\t}", "public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }", "@Mapper\n@Repository\npublic interface OrderDAO {\n\n @Insert(\"insert into order_one values(#{order.id},#{order.number},#{order.name})\")\n int insert(@Param(\"order\") Order order);\n\n}", "public Timestamp getDateOrdered();", "public int getOrder() {\n \treturn ord;\n }", "public List getDatabaseOrderParams() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? Arrays.asList(expr.getValues()) : new ArrayList();\n\t}", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "@Override\r\n\tpublic String getTableName(String[] sql) {\n\t\treturn sql[2];\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "public int getOrder() {\n return mOrder;\n }", "@Insert({\n \"insert into order (id, orderid, \",\n \"name, price, userid)\",\n \"values (#{id,jdbcType=BIGINT}, #{orderid,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{userid,jdbcType=VARCHAR})\"\n })\n int insert(Order record);", "@Column(name = \"order_id\", precision = 10)\n @GeneratedValue\n @Id\n public Integer getOrderId() {\n return orderId;\n }", "public MOrder( Properties ctx,ResultSet rs,String trxName ) {\n super( ctx,rs,trxName );\n }", "public Integer getOrder() {\n\t\treturn order;\n\t}", "List<Employee> sort(Sorting selectedSortColoumn) throws SQLException;", "public void incrementOrder() {\n mOrder++;\n }", "public interface TabOrderCustomerMapper {\n List<TabOrder> listOrderByUids(List<Integer> uidList);\n\n List<TabOrder> getTurnover();\n\n List<TabOrder> listOrderAll();\n}", "@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}", "BusnessOrder selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<WxOrder> queryOrderByExpressList() {\n\t\treturn orderMapper.queryOrderByExpressList();\n\t}", "@Override\n\tpublic String selectTableList(int top) {\n\t\treturn \"select sqltext,pointid,type from history_table_view where rownum <= \"+top+\" order by id desc\";\n\t}" ]
[ "0.7150395", "0.70756245", "0.598947", "0.59722084", "0.59503245", "0.5913322", "0.5903205", "0.5847804", "0.5845008", "0.58349603", "0.57852846", "0.5758361", "0.57513916", "0.5722208", "0.57122165", "0.5709362", "0.5707884", "0.5698927", "0.5676392", "0.56462383", "0.5639354", "0.56244737", "0.5620233", "0.56024635", "0.5587284", "0.55812037", "0.5561272", "0.55287474", "0.5524142", "0.5510639", "0.5501053", "0.5500819", "0.54970056", "0.54957753", "0.5488054", "0.5434172", "0.5432576", "0.54246265", "0.54112417", "0.53933185", "0.5391951", "0.53886294", "0.5364343", "0.53618085", "0.5354959", "0.5354959", "0.5338094", "0.5335548", "0.5321068", "0.5321068", "0.5321068", "0.5321068", "0.5321068", "0.5321068", "0.5321068", "0.5321068", "0.5321068", "0.5321068", "0.5321068", "0.5318526", "0.5318239", "0.5318151", "0.53174263", "0.53145677", "0.5310361", "0.53084266", "0.53084266", "0.5303659", "0.53005385", "0.52923626", "0.52891266", "0.52702457", "0.52702457", "0.5269236", "0.5269236", "0.52678496", "0.52481455", "0.5245544", "0.52241355", "0.52180463", "0.52162325", "0.52129614", "0.52121", "0.52059335", "0.5200514", "0.51996034", "0.51953924", "0.5194722", "0.5185729", "0.5179006", "0.5177983", "0.5169569", "0.5162991", "0.5144863", "0.51442015", "0.51440233", "0.51423", "0.5141494", "0.5137097", "0.51369274", "0.5136621" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table order
@Update({ "update order", "set orderid = #{orderid,jdbcType=VARCHAR},", "name = #{name,jdbcType=VARCHAR},", "price = #{price,jdbcType=BIGINT},", "userid = #{userid,jdbcType=VARCHAR}", "where id = #{id,jdbcType=BIGINT}" }) int updateByPrimaryKey(Order record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "public String getDatabaseOrder() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}", "OrderByColumnFull createOrderByColumnFull();", "public ArrayList<Table> getTableOrder() {\n \tArrayList<Table> fetchedTables = new ArrayList<Table>();\n \tfetchedTables = getTable(tableOrder);\n \treturn fetchedTables;\n }", "protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n DatabaseMeta databaseMeta, String locale, Map<LogicalTable, String> tableAliases, Map<String, String> columnsMap,\n Map<String, Object> parameters, boolean genAsPreparedStatement ) {\n if ( orderBy != null ) {\n for ( Order orderItem : orderBy ) {\n LogicalColumn businessColumn = orderItem.getSelection().getLogicalColumn();\n String alias = null;\n if ( columnsMap != null ) {\n // The column map is a unique mapping of Column alias to the column ID\n // Here we have the column ID and we need the alias.\n // We need to do the order by on the alias, not the column name itself.\n // For most databases, it can be both, but the alias is more standard.\n //\n // Using the column name and not the alias caused an issue on Apache Derby.\n //\n for ( String key : columnsMap.keySet() ) {\n String value = columnsMap.get( key );\n if ( value.equals( businessColumn.getId() ) ) {\n // Found it: the alias is the key\n alias = key;\n break;\n }\n }\n }\n SqlAndTables sqlAndTables =\n getBusinessColumnSQL( model, orderItem.getSelection(), tableAliases, parameters, genAsPreparedStatement,\n databaseMeta, locale );\n query.addOrderBy( sqlAndTables.getSql(), databaseMeta.quoteField( alias ), orderItem.getType() != Type.ASC\n ? OrderType.DESCENDING : null );\n }\n }\n }", "protected void setTableOrder(int num)\n\t\t{\n\t\t\tOrder = num ;\n\t\t}", "Orderall selectByPrimaryKey(String orderid);", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public StatementBuilder order(OrderSql orderSql) {\n if (this.orderSql == null) {\n setOrder(orderSql);\n } else {\n this.orderSql.add(orderSql);\n }\n return this;\n }", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "public static void setOrderBy (String columnList){\n fetchAllOrderBy=columnList;\n }", "@VTID(10)\r\n int getOrder();", "public Integer getOrder();", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "public StatementBuilder setOrder(OrderSql orderSql) {\n this.orderSql = orderSql;\n return this;\n }", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "@Override\n public int getOrder() {\n return 0;\n }", "public void orderById() {\n Collections.sort(customers, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n return ((Customer)o1).getId().compareTo(((Customer)o2).getId());\n }\n });\n\n //avisa que a tabela foi alterada\n fireTableDataChanged();\n }", "public String sort() throws DatabaseException {\n //doesn't do anything\n return this.tableName;\n\n }", "public int getOrder();", "@Override\n public int getOrder() {\n return 4;\n }", "public int getOrder() {\n\t\treturn 0;\n\t}", "@Override\r\n public int getOrder() {\r\n return this.order;\r\n }", "List selectByExample(OrderPreferentialExample example) throws SQLException;", "@Override\n\tpublic String getOrder() {\n\t\treturn \"zjlxdm,asc\";\n\t}", "default int getOrder() {\n\treturn 0;\n }", "int getOrder(){\r\n\t\t\treturn this.order;\r\n\t\t}", "OrOrderByColumn createOrOrderByColumn();", "@Override\n protected List<String> getFieldOrder() {\n ArrayList<String> FieldOrder= new ArrayList<String>();\n FieldOrder.add(\"dsapiVersionNo\");\n FieldOrder.add(\"sessionId\");\n FieldOrder.add(\"valueMark\");\n FieldOrder.add(\"fieldMark\");\n return FieldOrder;\n }", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "OrderByClause createOrderByClause();", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void PopulatePoseOrderTable(int Difficulty) { \n \ttry {\n \t\t\n\t\t\tString sql = \"insert into poseorder select null, _id from yogaposes\";\n\t\t\tsql += \" \" + formatSqlStatement(Difficulty);\n\t\t\tsql += \" order by Random()\";\n\t\t\tLog.d(\"Database Call\", sql);\n\t\t\tthis.openDataBase();\n\t\t\tmyDataBase.execSQL(sql);\n\t\t\tthis.close();\n\t\t} // TODO Auto-generated catch block\n\t\t\tcatch (SQLException e) {\n\t\t\tLog.d(\"SQL Exception\", \"PopulatePoseOrderTable \" + e.toString());\n\t\t}\n \t catch (Exception e) {\n\t\t\tLog.d(\"Exception\", \"PopulatePoseOrderTable \" + e.toString());\n\t\t}\n \t\n }", "R_order selectByPrimaryKey(Integer oId);", "protected SqlExpression getOrderSqlExpression() {\n\t\tif (this.orderSqlExpr != null) {\n\t\t\treturn this.orderSqlExpr;\n\t\t}\n\t\t\n\t\tif (this.orderExpr == null) {\n\t\t\treturn null;\n\t\t}\n\t\tStandardCompExprToSqlExprBuilder builder = new StandardCompExprToSqlExprBuilder();\n\t\tbuilder.setMapper(createExpressionBuilderResolver());\n\t\tthis.orderSqlExpr = builder.buildSqlExpression(this.orderExpr);\n\t\treturn this.orderSqlExpr;\n\t}", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "public Order viewOrders() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\t//Order nextOrder = \r\n\t\treturn nextOrder;\r\n\t}", "@Override\r\n\tpublic List<Order> ListOrder() {\n\t\treturn null;\r\n\t}", "private String getOrderByQuery(List<SQLiteColumn> list, boolean orderByPk) {\r\n StringBuilder builder = new StringBuilder();\r\n String separator = SQL_COLUMN_SEPARATOR;\r\n for (SQLiteColumn column : list) {\r\n if (!(orderByPk ^ column.isPrimaryKey())) {\r\n builder.append(column.getColumnName()).append(separator);\r\n }\r\n }\r\n String result = \"\";\r\n if (builder.length() > 1) {\r\n builder.delete(builder.length() - separator.length(),\r\n builder.length());\r\n result = \" ORDER BY \" + builder.toString();\r\n }\r\n return result;\r\n }", "@Override\n\tpublic List<mOrders> getListOrderByBatchCode(String batchCode) {\n\t\ttry{\n\t\t\tbegin();\n\t\t\tCriteria criteria = getSession().createCriteria(mOrders.class);\n\t\t\tcriteria.add(Restrictions.eq(\"O_BatchCode\", batchCode));\n\t\n\t\t\tList<mOrders> o= criteria.list();\n\t\t\tcommit();\n//\t\t\tfor(int i=0; i<o.size(); i++){\n//\t\t\t\tSystem.out.println(name()+\"::getListOrderByDueDate--\"+o.get(i).toString());\n//\t\t\t}\n\t\t\treturn o;\n\t\t} catch (HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally {\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "@Override\n\tpublic String queryOrderByOrderNo(String orderno) {\n\treturn null;\n\t}", "public static void main(String[] args) {\n String originalTableName = \"data_statistics\";\n String targetTableName = \"preprocessing_column_order_test1\";\n\n List<ColumnOrder> columnList = new ArrayList<>();\n ColumnOrder columnOrder1 = new ColumnOrder();\n columnOrder1.setColumnName(\"id\");\n columnOrder1.setOrderType(\"升序排序\");\n\n ColumnOrder columnOrder2 = new ColumnOrder();\n columnOrder2.setColumnName(\"var1\");\n columnOrder2.setOrderType(\"降序排序\");\n\n columnList.add(columnOrder1);\n columnList.add(columnOrder2);\n\n\n DataOrder dataOrder = new DataOrder();\n dataOrder.processingData(originalTableName, columnList, targetTableName);\n\n\n }", "public int getOrder() {\n return order;\n }", "public int getOrder() {\n return order;\n }", "@Select(\"select * from website_cooperativeuser order by `order` asc\")\r\n List<WebsiteCooperativeuser> selectAll();", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void createSourceOrderItemTable() throws SQLException {\n sourceExecuteWithLog(extraSQLCommand.getCreateTableOrderItem());\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }", "@Override\r\n\tpublic OrderVO getOrderByID(Integer ono) throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getOneOrderByOrderID\",ono);\r\n\t}", "@Override\n\tprotected String getDefaultOrderBy() {\n\t\treturn \"date asc\";\n\t}", "public int getOrder() {\r\n\t\treturn order;\r\n\t}", "public Integer getOrder() {\n return order;\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@Override\n\tpublic String getNextOrderNumber() {\n\t\t// TODO Auto-generated method stub\n\t\treturn \"ORD\"+sequenceNumberDao.findNextSequenceType(ESequenceType.ORDER);\n\t}", "public void changeSortOrder();", "public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public Integer getOrder() {\n return order;\n }", "public Integer getOrder() {\n return order;\n }", "java.lang.String getOrderBy();", "static Map<String, Integer> primaryKeyOrder(Session session, String keyspace, String table) {\n HashMap<String, Integer> returnValue = new HashMap<>();\n Statement select = primarykeyCQL(keyspace, table);\n ResultSet rs = session.execute(select.toString());\n\n TreeMap<String, String> sortedMap = new TreeMap<>();\n for (Row row : rs) {\n String columnName = row.get(COLUMN_NAME_COLUMN, String.class);\n String kind = row.get(KIND_COLUMN, String.class);\n String position = row.get(POSITION_COLUMN, Integer.class).toString();\n if (kind.equals(\"clustering\")) {\n sortedMap.put(\"clustering_\" + position, columnName);\n } else {\n sortedMap.put(position, columnName);\n }\n }\n\n List<String> sortedKeyset = new ArrayList<>(sortedMap.keySet());\n for (int i = 0; i < sortedKeyset.size(); i++) {\n returnValue.put(sortedMap.get(sortedKeyset.get(i)), i);\n }\n\n return returnValue;\n }", "public String getOrder() {\n return this.Order;\n }", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "private void constructExecuteSql() {\n getMetaData();\n // Validate that the primary keys are present in the underlying SQL\n StringBuilder orderBySql = new StringBuilder(super.getExecuteSql()).append(\"\\n order by \");\n switch (metaData.getDbType()) {\n case ORACLE:\n orderBySql.append(createOracleOrderedByClause ());\n break;\n case SQL_SERVER:\n orderBySql.append(createSqlServerOrderedByClause());\n break;\n case UNKNOWN:\n default:\n orderBySql.append(createUnknownDBOrderedByClause());\n }\n this.executeSql = orderBySql.toString();\n }", "public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }", "@Mapper\n@Repository\npublic interface OrderDAO {\n\n @Insert(\"insert into order_one values(#{order.id},#{order.number},#{order.name})\")\n int insert(@Param(\"order\") Order order);\n\n}", "public int getOrder() {\n\t\treturn order;\n\t}", "public Timestamp getDateOrdered();", "@Override\r\n\tpublic String getTableName(String[] sql) {\n\t\treturn sql[2];\r\n\t}", "public int getOrder() {\n \treturn ord;\n }", "public List getDatabaseOrderParams() {\n\t\tSqlExpression expr = this.getOrderSqlExpression();\n\t\treturn expr != null ? Arrays.asList(expr.getValues()) : new ArrayList();\n\t}", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Insert({\n \"insert into order (id, orderid, \",\n \"name, price, userid)\",\n \"values (#{id,jdbcType=BIGINT}, #{orderid,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{userid,jdbcType=VARCHAR})\"\n })\n int insert(Order record);", "public int getOrder() {\n return mOrder;\n }", "@Column(name = \"order_id\", precision = 10)\n @GeneratedValue\n @Id\n public Integer getOrderId() {\n return orderId;\n }", "public MOrder( Properties ctx,ResultSet rs,String trxName ) {\n super( ctx,rs,trxName );\n }", "List<Employee> sort(Sorting selectedSortColoumn) throws SQLException;", "public interface TabOrderCustomerMapper {\n List<TabOrder> listOrderByUids(List<Integer> uidList);\n\n List<TabOrder> getTurnover();\n\n List<TabOrder> listOrderAll();\n}", "public void incrementOrder() {\n mOrder++;\n }", "public Integer getOrder() {\n\t\treturn order;\n\t}", "@Override\n\tprotected List<String> getFieldOrder() {\n\t\treturn Arrays.asList(\n\t\t\t\"nType\", \n\t\t\t\"szUnitID\", \n\t\t\t\"szCurID\", \n\t\t\t\"nValues\", \n\t\t\t\"nCount\", \n\t\t\t\"nStatus\" \n\t\t);\n\t}", "@Override\n\tpublic String selectTableList(int top) {\n\t\treturn \"select sqltext,pointid,type from history_table_view where rownum <= \"+top+\" order by id desc\";\n\t}", "BusnessOrder selectByPrimaryKey(Integer id);", "@Override\n\tpublic List<WxOrder> queryOrderByExpressList() {\n\t\treturn orderMapper.queryOrderByExpressList();\n\t}" ]
[ "0.71494067", "0.7074074", "0.59868467", "0.59690744", "0.59484506", "0.59095633", "0.59027445", "0.5846221", "0.584277", "0.58352035", "0.578317", "0.57546306", "0.574843", "0.5720651", "0.5709069", "0.57073045", "0.57066065", "0.5701518", "0.5674727", "0.56443137", "0.56385934", "0.5621584", "0.561791", "0.55998456", "0.55850327", "0.5581342", "0.5556632", "0.5526541", "0.5522006", "0.5508508", "0.5498993", "0.5497875", "0.54970807", "0.54916674", "0.5487882", "0.5431566", "0.54295987", "0.54246134", "0.54104304", "0.5389542", "0.5389358", "0.5386579", "0.53617644", "0.53613585", "0.5352078", "0.5352078", "0.53383857", "0.53347045", "0.5321296", "0.5318237", "0.5318237", "0.5318237", "0.5318237", "0.5318237", "0.5318237", "0.5318237", "0.5318237", "0.5318237", "0.5318237", "0.5318237", "0.5316916", "0.5315267", "0.5314594", "0.53116935", "0.53097105", "0.53076005", "0.53076005", "0.5305519", "0.5298684", "0.5290083", "0.5287099", "0.52694297", "0.52694297", "0.5266213", "0.5266213", "0.52626765", "0.52447367", "0.52427804", "0.5225535", "0.5216895", "0.5215632", "0.5215214", "0.5213291", "0.5204079", "0.5198237", "0.51974535", "0.5196402", "0.5193718", "0.51881754", "0.5180401", "0.51759875", "0.51704675", "0.51626277", "0.51433414", "0.5142329", "0.5142037", "0.5141762", "0.51387393", "0.5137526", "0.51361865", "0.5134058" ]
0.0
-1
Use a simple regex to extract the vertices
public void parseInstruction(String instruction) { String regex = "Step ([A-Z]) must be finished before step ([A-Z]) can begin\\."; Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE); Matcher matcher = pattern.matcher(instruction); matcher.find(); String vertex1 = matcher.group(1); String vertex2 = matcher.group(2); // Create vertices and edges in the DAG if (!steps.containsVertex(vertex1)) { steps.addVertex(vertex1); } if (!steps.containsVertex(vertex2)) { steps.addVertex(vertex2); } DefaultEdge edge = new DefaultEdge(); if (!steps.containsEdge(vertex1, vertex2)) { steps.addEdge(vertex1, vertex2); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseVertex(String line) {\n\n String first_float = line.substring(2);\n first_float = first_float.trim();\n int second_space_index = first_float.indexOf(' ') + 1;\n String second_float = first_float.substring(second_space_index);\n second_float = second_float.trim();\n int third_space_index = second_float.indexOf(' ') + 1;\n String third_float = second_float.substring(third_space_index);\n third_float = third_float.trim();\n\n float vx = parseFloat(first_float.substring(0, second_space_index - 1));\n float vy = parseFloat(second_float.substring(0, third_space_index - 1));\n float vz = parseFloat(third_float);\n\n mMaxX = Math.max(mMaxX, vx);\n mMaxY = Math.max(mMaxY, vy);\n mMaxZ = Math.max(mMaxZ, vz);\n\n mMinX = Math.min(mMinX, vx);\n mMinY = Math.min(mMinY, vy);\n mMinZ = Math.min(mMinZ, vz);\n\n mVertices.add(vx);\n mVertices.add(vy);\n mVertices.add(vz);\n mLastVertexNumber++;\n\n if (mHaveMaterialColor) {\n mColors.add(mMaterialColor[0]);\n mColors.add(mMaterialColor[1]);\n mColors.add(mMaterialColor[2]);\n }\n }", "public ArrayList<ArrayList<Double>> parseVertices() {\n\t\tArrayList<ArrayList<Double>> ret = new ArrayList<ArrayList<Double>>();\n\t\tString file = getFilepath();\n\t\ttry {\n\t\t\tFile myObj = new File(file);\n\t\t\tScanner myReader = new Scanner(myObj);\n\t\t\twhile (myReader.hasNextLine()) {\n\t\t\t\tString data = myReader.nextLine();\n\t\t\t\tif (data.length() > 2 && data.substring(0,2).equals(\"v \")) {\n\t\t\t\t\tString[] s = data.split(\" \");\n\t\t\t\t\tArrayList<Double> v = new ArrayList<Double>();\n\t\t\t\t\tv.add(Double.parseDouble(s[1]));\n\t\t\t\t\tv.add(Double.parseDouble(s[2]));\n\t\t\t\t\tv.add(Double.parseDouble(s[3]));\n\t\t\t\t\tret.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmyReader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"An error occurred.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn ret;\n\n\t}", "private static int detectarVertices(String linea)\r\n\t\t\tthrows IllegalArgumentException\r\n\t{\r\n linea = linea.substring(3); // Elimina los espacios innecesarios\r\n String[] lista = linea.split(\" \");\r\n \r\n return lista.length;\r\n\t}", "public static String bboxVertices(){\n \treturn \"0.5 0.5 0.5 0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 -0.5 -0.5 0.5 0.5 -0.5 0.5 -0.5 -0.5 -0.5 0.5 -0.5 -0.5 -0.5\";\n }", "public java.util.List<V> getVertices();", "private void parseTriplet(String item) {\n int vertex;\n\n int first_slash = item.indexOf('/');\n if (first_slash == -1) {\n vertex = parseInteger(item);\n if (vertex < 0) {\n vertex += mLastVertexNumber;\n }\n mIndices.add(vertex);\n return;\n }\n // wait wait there are more indices in this line\n vertex = parseInteger(item.substring(0, first_slash));\n if (vertex < 0) {\n vertex += mLastVertexNumber;\n }\n mIndices.add(vertex);\n String leftover = item.substring(first_slash + 1, item.length());\n int second_slash = leftover.indexOf('/');\n if (second_slash == -1) {\n mTextureIndex.add(parseInteger(leftover));\n return;\n }\n if (second_slash == 0) {\n mNormalIndex.add(parseInteger(leftover.substring(1, leftover.length())));\n }\n }", "public Collection<V> getOtherVertices(V v);", "List<V> getVertexList();", "Set<Vertex> getVertices();", "public E[] verticesView ()\n {\n E[] allVertices = (E[]) new Object[lastIndex + 1];\n for (int index = 0; index < allVertices.length; index++)\n allVertices[index] = this.vertices[index];\n\n return allVertices;\n }", "private String vertexNamesAndCoordsToString() {\n \n //make empty string\n String s = \"\";\n \n //add # of vertices & line break\n s += N + \"\\n\";\n \n //for loop to add names/coords to it\n for (int i = 0; i < arrayOfVertices.length; i++) {\n \n //add vertex name, xcoord, & ycoord separated by spaces \n s += arrayOfVertices[i].getName() + \" \" \n + arrayOfVertices[i].getX() + \" \" \n + arrayOfVertices[i].getY() + \"\\n\"; \n \n }\n \n //return the string\n return s;\n \n }", "String getMatchingSegments(Integer pointId);", "@SuppressWarnings(\"null\")\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(Paths.get(\"C:\\\\Users\\\\RIZERO\\\\Desktop\\\\text.txt\"),\"UTF-8\");\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tString s = \"[a-z]*\", word1 = \"\", word2 = \"\";\n\t\tPattern pattern = Pattern.compile(s);\n\t\tMatcher ma;\n\t\tString str;\n\t\tboolean flag1 = true, flag2 = true;\n\t\t\n\t\tList<Vertex> verList = new LinkedList<Graph.Vertex>();\n\n\t\tMap<String, List<Edge>> ve_Map = new HashMap<String, List<Edge>>();\n\n\t\t\n\t\tVertex vertex = null;\n\n\t\twhile(sc.hasNext()) \n\t\t{\n\t str = sc.next().toLowerCase();\n\t ma = pattern.matcher(str);\n\t\t\twhile(ma.find()) \n\t\t\t\tif(!ma.group().equals(\"\"))\n\t\t\t\t list.add(ma.group());\n\t\t}\n\t\t\tfor(String word : list) {\n\t\t\t\tword1 = word2;\n\t\t\t\tword2 = word;\n\t\t\t\tflag1 = true;\n\t\t\t\tflag2 = true;\n\t\t\t\tvertex = new Vertex(word1);\n\t\t\t\tfor(Vertex ver : verList) {\n\t\t\t\t\tif (word1.equals(ver.getName())|| word1.equals(\"\")) {\n\t\t\t\t\t\tflag1 = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n if(flag1) {\n \tvertex = new Vertex(word1);\n\t\t\t\t\tverList.add(vertex);\n\t\t\t\t\tve_Map.put(vertex.getName(), new LinkedList<Graph.Edge>());\n\t\t\t\t}\n \n for(Edge edge : ve_Map.get(word1)) {\n\t\t\t\t\tif (word2.equals(edge.getEnd().getName())) {\n\t\n\t\t\t\t\t\tedge.upWeight();\n\t\t\t\t\t\tflag2 = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n if(flag2 && !(word1.equals(\"\"))) {\n \tvertex = new Vertex(word2);\n \tve_Map.get(word1).add(new Edge(vertex, 1));\n }\t\n\t\t\t}\n\t\t\n\t\tfor(Vertex ver : verList) {\n\t\t\tfor(Edge edge : ve_Map.get(ver.getName())) {\n\t\t\t\tSystem.out.println(ver.getName()+\"->\"+edge.getEnd().getName()+\" = \"+edge.getWeight());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(list);\n\t\tSystem.out.println(new Date());\n\t\tsc.close();\n\t}", "public Collection<GJPoint2D> vertices() {\n\t\tArrayList<GJPoint2D> vertices = new ArrayList<GJPoint2D>(this.segments.size());\n\t\t\n\t\t// iterate on segments, and add the control points of each segment\n\t\tfor (Segment seg : this.segments) {\n\t\t\tfor (GJPoint2D p : seg.controlPoints()) {\n\t\t\t\tvertices.add(p);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// return the set of vertices\n\t\treturn vertices;\n\t}", "public String toString(){\r\n String result = \"[ \";\r\n result = result + vertex + \" ]\";\r\n return result;\r\n }", "private void readVertex(String curLine, Indexer id, int num_vertices) throws IOException\n {\n Vertex v;\n String[] parts = null;\n int coord_idx = -1; // index of first coordinate in parts; -1 indicates no coordinates found\n String index;\n String label = null;\n // if there are quote marks on this line, split on them; label is surrounded by them\n if (curLine.indexOf('\"') != -1)\n {\n String[] initial_split = curLine.trim().split(\"\\\"\");\n // if there are any quote marks, there should be exactly 2\n if (initial_split.length < 2 || initial_split.length > 3)\n throw new IllegalArgumentException(\"Unbalanced (or too many) quote marks in \" + curLine);\n index = initial_split[0].trim();\n label = initial_split[1].trim();\n if (initial_split.length == 3)\n parts = initial_split[2].trim().split(\"\\\\s+\", -1);\n coord_idx = 0;\n }\n else // no quote marks, but are there coordinates?\n {\n parts = curLine.trim().split(\"\\\\s+\", -1);\n index = parts[0];\n switch (parts.length)\n {\n case 1: // just the ID; nothing to do, continue\n break; \n case 2: // just the ID and a label\n label = parts[1];\n break;\n case 3: // ID, no label, coordinates\n coord_idx = 1;\n break;\n case 4: // ID, label, (x,y) coordinates\n coord_idx = 2;\n break;\n }\n }\n int v_id = Integer.parseInt(index) - 1; // go from 1-based to 0-based index\n if (v_id >= num_vertices || v_id < 0)\n throw new IllegalArgumentException(\"Vertex number \" + v_id +\n \"is not in the range [1,\" + num_vertices + \"]\");\n v = (Vertex) id.getVertex(v_id);\n // only attach the label if there's one to attach\n if (label != null && label.length() > 0)\n attachLabel(v, label);\n // parse the rest of the line\n if (get_locations)\n {\n if (coord_idx == -1 || parts == null || parts.length < coord_idx+2)\n throw new IllegalArgumentException(\"Coordinates requested, but\" +\n curLine + \" does not include coordinates\");\n double x = Double.parseDouble(parts[coord_idx]);\n double y = Double.parseDouble(parts[coord_idx+1]);\n// if (x < 0 || x > 1 || y < 0 || y > 1)\n// throw new IllegalArgumentException(\"Coordinates in line \" + \n// curLine + \" are not all in the range [0,1]\");\n \n v_locations.setLocation(v, new Point2D.Double(x,y));\n }\n }", "private E3DTexturedVertex getVertexA(){\r\n\t\treturn vertices[0];\r\n\t}", "public Set<V> getVertices();", "public Set<V> getVertices();", "List<V> getAdjacentVertexList(V v);", "public abstract Vector2[] getVertices();", "public Collection<V> getVertices();", "int getVertices();", "public Collection<V> getOtherVertices(Collection<V> vs);", "public Enumeration vertices();", "public static void main(String[] args) {\n\t\tUtil.isGeom(\"(1 1,2 2,2 1,1 1)\", \"5\");\r\n//\t\tString aString = \"(a)_(b)\";\r\n//\t\taString.split(\")\");\r\n\t}", "public String vertexName();", "protected void processVertex(Vertex w){\n\t}", "public Pattern getVertPattern() {\n\t\treturn vertPattern;\n\t}", "public PosicionVertice[] getVertices(PosicionVertice rpv[]) {\n \n // inicializacion\n rpv = (rpv == null) ? new PosicionVertice[2] : rpv;\n for (int i=0; i<rpv.length; i++) {\n rpv[i] = (rpv[i] == null) ? new PosicionVertice() : rpv[i];\n }\n normaliza();\n \n switch(getOrientacion()) {\n case Este:\n rpv[0].setPos(getX(), getY()-1);\n rpv[0].setOrientacion(OrientacionVertice.Sur);\n rpv[1].setPos(getX()+1, getY());\n rpv[1].setOrientacion(OrientacionVertice.Norte);\n break;\n case NorEste:\n rpv[0].setPos(getX(), getY());\n rpv[0].setOrientacion(OrientacionVertice.Norte);\n rpv[1].setPos(getX(), getY()-1);\n rpv[1].setOrientacion(OrientacionVertice.Sur);\n break; \n case NorOeste:\n rpv[0].setPos(getX(), getY());\n rpv[0].setOrientacion(OrientacionVertice.Norte);\n rpv[1].setPos(getX()-1, getY());\n rpv[1].setOrientacion(OrientacionVertice.Sur);\n break; \n }\n return rpv;\n }", "@Override public Set<L> vertices() {\r\n return new HashSet<L>(vertices);//防御式拷贝\r\n }", "private ArrayList<Vertex> getProjectedVertices4(){\n\t\t\n\t\tArrayList<Vertex> projectedVertices = new ArrayList<>(); // To store the projection of each vertex\n\t\t\n\t\t// Transform each vertex from world coordinates to eye coordinates\n\t\tfor(Vertex v : vertices){\n\t\t\tprojectedVertices.add(v.transform4());\n\t\t}\n\t\t\n\t\tfor(Vertex v : projectedVertices){\n\n\t\t\t// Get perspective projection onto 3D region\n\t\t\tVertex projection = v.perspectiveProjection4();\n\t\t\tv.setX(projection.getX());\n\t\t\tv.setY(projection.getY());\n\t\t\tv.setZ(projection.getZ());\n\t\t\t\n\t\t\t// Map to viewbox\n\t\t\tprojection = v.mapToViewbox();\n\t\t\tv.setX(projection.getX());\n\t\t\tv.setY(projection.getY());\n\t\t\tv.setZ(projection.getZ());\n\t\t}\n\t\t\n\t\treturn projectedVertices;\n\t}", "public abstract Set<? extends EE> edgesOf(VV vertex);", "@Override\r\n\tpublic ArrayList<E> getVertices() {\r\n\t\tArrayList<E> verts = new ArrayList<>();\r\n\t\tvertices.forEach((E t, Vertex<E> u) -> {\r\n\t\t\tverts.add(t);\r\n\t\t});\r\n\t\treturn verts;\r\n\t}", "Vertex getVertex();", "@Test\n\tpublic void verticesTest() {\n\t\tgraph.addVertex(A);\n\t\tgraph.addVertex(B);\n\t\tgraph.addVertex(C);\n\t\tgraph.addVertex(D);\n\t\tassertEquals(4, graph.vertices().size());\n\t\tassertTrue(graph.vertices().contains(A));\n\t\tassertTrue(graph.vertices().contains(D));\n\t}", "public float[] getVertices() {\n/* 793 */ COSBase base = getCOSObject().getDictionaryObject(COSName.VERTICES);\n/* 794 */ if (base instanceof COSArray)\n/* */ {\n/* 796 */ return ((COSArray)base).toFloatArray();\n/* */ }\n/* 798 */ return null;\n/* */ }", "public static float[] getMeshVertices(GVRMesh mesh) {\n GVRVertexBuffer vertexBuffer = mesh.getVertexBuffer();\n FloatBuffer floatBuffer = vertexBuffer.getFloatVec(\"a_position\");\n int count = floatBuffer.remaining();\n float[] vertices = new float[count];\n floatBuffer.get(vertices);\n // For 3.3 this still works\n// float[] vertices = mesh.getVertices(); // Throws UnsupportedOperationException in 4.0\n return vertices;\n }", "public String getVertex() {\n\t\treturn vertices.get(0);\n\t}", "public float[] getVertices() {\r\n\t\treturn vertices;\r\n\t}", "public Set<String> getVertices() {\n\t\treturn vertices;\n\t}", "boolean hasIsVertexOf();", "public static Vec2[] verticesOfPath2D(Path2D.Float p, int n) {\n Vec2[] result = new Vec2[n];\n float[] values = new float[6];\n PathIterator pi = p.getPathIterator(null);\n int i = 0;\n while (!pi.isDone() && i < n) {\n int type = pi.currentSegment(values);\n if (type == PathIterator.SEG_LINETO) {\n result[i++] = new Vec2(values[0], values[1]);\n }\n pi.next();\n }\n return result;\n }", "private String regex(Edge e) {\n return EdgeWriter.toRegex(e, false /* use dot match */);\n }", "public Vector3f[] getVertices() {\n return vertices;\n }", "private List<Integer> vertices(int num) {\n List<Integer> list = new LinkedList<>();\n for (int i = 0; i < num; i++) {\n list.add(i);\n }\n return list;\n }", "protected ArrayList<MRVertex> verticesFromInputValue(Text value, Configuration config) {\n\t\t\tArrayList<MRVertex> result = new ArrayList<MRVertex>();\n\t\t\tresult.add(new MRVertex(value, config));\n\t\t\treturn result;\n\t\t}", "String getEdges();", "Stream<BaseVertex> vertices(String datasource);", "public List<Vertex> vertices() {\n return Collections.unmodifiableList(this.vertices);\n }", "public static void main(String[] args) throws Exception {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter w = new PrintWriter(System.out);\n\n String[] inputs = r.readLine().split(\" \");\n \n int start = Integer.parseInt(inputs[0]);\n int end = Integer.parseInt(inputs[1]); \n //today you learned that the distance between the eyes from years 10 to 15 expands from about 62 to 64mm.\n \n inputs = r.readLine().split(\" \");\n \n int n = Integer.parseInt(inputs[0]); //number of junktions\n int m = Integer.parseInt(inputs[1]); //number of rodes\n \n Vertex[] vertices = new Vertex[n + 1];\n for (int i = 0; i < n; i++) {\n inputs = r.readLine().split(\" \");\n boolean blue = inputs[0].equals(\"B\");\n vertices[i + 1] = new Vertex(i + 1, blue, Integer.parseInt(inputs[0]), Integer.parseInt(inputs[1]), Integer.parseInt(inputs[2]));\n }\n \n for (int i = 0; i < m; i++) {\n inputs = r.readLine().split(\" \");\n int a = Integer.parseInt(inputs[0]);\n int b = Integer.parseInt(inputs[1]);\n int c = Integer.parseInt(inputs[2]);\n vertices[a].addPath(b, c);\n vertices[b].addPath(a, c);\n }\n \n \n \n \n }", "public Vertice[] getSelectedVertices(){\n\t\tVertice selectedVertice;\n\t\tVertice[] vertices = new Vertice[getSelectedModelVerticeCount()];\n\t\tint index = 0;\n\t\tfor(int i = 0; i < getModelVerticesCount(); i++){\n\t\t\tselectedVertice = getModelVertice(i);\n\t\t\tif(selectedVertice.isSelected)\n\t\t\t\tvertices[index++] = selectedVertice;\n\t\t}\n\t\treturn vertices;\n\t}", "public String toString() {\n StringBuilder s = new StringBuilder();\n String NEWLINE = System.getProperty(\"line.separator\");\n s.append(vertices + \" \" + NEWLINE);\n for (int v = 0; v < vertices; v++) {\n s.append(String.format(\"%d: \", v));\n for (Map.Entry<Integer, Integer> e : adjacent(v).entrySet()) {\n s.append(String.format(\"%d (%d) \", e.getKey(), e.getValue()));\n }\n s.append(NEWLINE);\n }\n return s.toString();\n }", "public List<wVertex> getVertices(){\r\n return vertices;\r\n }", "public E3DTexturedVertex getVertex(int index){\r\n if(index >= 0 && index < 3)\r\n return vertices[index];\r\n else\r\n return null;\r\n }", "public ArrayList<Triangle> getOccluderVertexData();", "public int[] getVertices() {\n long cPtr = RecastJNI.rcContour_verts_get(swigCPtr, this);\n if (cPtr == 0) {\n return null;\n }\n return Converter.convertToInts(cPtr, getNumberOfVertices() * 4);\n }", "public static void main(String args[]) {\n\n\t\tBufferedReader objFileBR;\n\t\tString line, tempstr;\n\t\tStringTokenizer st;\n\n\t\tString objfName = args[0]; // get the object file name from first command line parameter\n\n\t\tfinal int MAX_VERTICES = 400;\n\t\tfinal int MAX_POLYS = 200;\n\t\tfinal int MAX_EDGES = 7;\n\n\t\tv = new Vertex[MAX_VERTICES];\n\t\t/* index is the vertex number,\n\t\t and the Vertex is (x, y, z, 1) coordinates of a vertex of the object */\n\n\t\tpolyColor= new double[MAX_POLYS][3];\n\t\t/* first index is the polygon number, the next index goes from 0 to 2\n\t\t representing the RGB values of that polygon */\n\n\t\tpolygon = new int[MAX_POLYS][MAX_EDGES + 1];\n\t\t/* polygon[i][0] stores the number of vertices that describes \n\t\t the polygon i.\n\t\t polygon[i][1] through polygon[i][polygon[i][0]] store the \n\t\t vertex numbers in counter clockwise order\n\t\t */\n\n\t\tnumVs = 0;\n\t\tnumPolys = 0;\n\n\t\ttry {\n\t\t\tobjFileBR = new BufferedReader(new FileReader(objfName));\n\n\t\t\tline = objFileBR.readLine(); // should be the VERTICES line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"VERTICES\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tnumVs = Integer.parseInt(tempstr);\n\t\t\t} else {\n\t\t\t\tnumVs = 0;\n\t\t\t\tSystem.out.println(\"Expecting VERTICES line in file \"\n\t\t\t\t\t\t+ objfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = objFileBR.readLine(); // should be the POLYGONS line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"POLYGONS\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tnumPolys = Integer.parseInt(tempstr);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting POLYGONS line in file \"\n\t\t\t\t\t\t+ objfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = objFileBR.readLine(); // should be the VERTEX LIST line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"VERTEX\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tif (!tempstr.equals(\"LIST\")) {\n\t\t\t\t\tSystem.out.println(\"Expecting VERTEX LIST line in file \"\n\t\t\t\t\t\t\t+ objfName);\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting VERTEX LIST line in file \"\n\t\t\t\t\t\t+ objfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t// if we get here we successfully processed the VERTEX LIST line\n\n\t\t\t// reads each of the vertex coordinates and creates a Vertex object for each one \n\t\t\tfor (int i = 0; i < numVs; i++) {\n\t\t\t\tline = objFileBR.readLine();\n\t\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\t\tdouble x1=0, y1=0, z1=0;\t\t\t\t\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tx1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\ty1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tz1 = Double.parseDouble(tempstr);\n\t\t\t\tv[i] = new Vertex(x1,y1,z1,1.0);\n\t\t\t}\n\n\t\t\tline = objFileBR.readLine(); // should be the POLYGON LIST line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"POLYGON\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tif (!tempstr.equals(\"LIST\")) {\n\t\t\t\t\tSystem.out.println(\"Expecting POLYGON LIST line in file \"\n\t\t\t\t\t\t\t+ objfName);\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting POLYGON LIST line in file \"\n\t\t\t\t\t\t+ objfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t// if we get here we successfully processed the POLYGON LIST line\n\n\t\t\tfor (int i = 0; i < numPolys; i++) {\n\t\t\t\tline = objFileBR.readLine();\n\t\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\t\tst.nextToken(); // ignore the string COUNT \n\t\t\t\ttempstr = st.nextToken(); // this is the value of count (number of vertices for this poly)\n\t\t\t\tint numVsForThisPoly = Integer.parseInt(tempstr);\n\t\t\t\tpolygon[i][0] = numVsForThisPoly;\n\t\t\t\tst.nextToken(); // ignore the string VERTICES \n\n\t\t\t\t//example line: COUNT 5 VERTICES 5 4 3 2 1 COLOR .4 .2 .4\n\n\t\t\t\tfor (int j = 1; j <=numVsForThisPoly; j++) {\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tpolygon[i][j] = Integer.parseInt(tempstr) - 1;\n\t\t\t\t}\n\n\t\t\t\tst.nextToken(); // ignore the string COLOR\n\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tpolyColor[i][j] = Double.parseDouble(tempstr);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tobjFileBR.close();\n\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"couldn't read from file\");\n\t\t}\n\n\t\t// loops to print out the information just read ...\n\t\t// ******************************************************\n // ******************************************************\n // remove this printing before you submit the program\n // ******************************************************\n // ******************************************************\n\t\t\n\t\t// write code here to print out the vertices \n\n\t\tfor (int i = 0; i < numPolys; i++) {\n\t\t\tSystem.out.print(\"Polygon number \" + i + \" vertices:\");\n\t\t\tfor (int j = 1; j <= polygon[i][0]; j++)\n\t\t\t\tSystem.out.print(\" \" + polygon[i][j]);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tfor (int i = 0; i < numPolys; i++) {\n\t\t\tSystem.out.print(\"Polygon number \" + i + \" RGB:\");\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tSystem.out.print(\" \" + polyColor[i][j]);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t// ================================================================\n\t\t// ------READ VIEWING PARAMETER FILE \n\t\t// ================================================================\n\n\t\tString viewfName = args[1]; // second command line arg\n\t\tBufferedReader viewFileBR;\n\t\t/* Viewing parameters */\n\t\n\n\t\ttry {\n\t\t\tviewFileBR = new BufferedReader(new FileReader(viewfName));\n\n\t\t\tline = viewFileBR.readLine(); // should be the VRP line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"VRP\")) {\n\t\t\t\tdouble x1=0, y1=0, z1=0;\t\t\t\t\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tx1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\ty1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tz1 = Double.parseDouble(tempstr);\n\t\t\t\tvrp = new Vertex(x1,y1,z1,1.0);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting VRP line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = viewFileBR.readLine(); // should be the VPN line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"VPN\")) {\n\t\t\t\tdouble x1=0, y1=0, z1=0;\t\t\t\t\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tx1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\ty1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tz1 = Double.parseDouble(tempstr);\n\t\t\t\tvpn = new Vector(x1,y1,z1);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting VPN line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = viewFileBR.readLine(); // should be the VUP line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"VUP\")) {\n\t\t\t\tdouble x1=0, y1=0, z1=0;\t\t\t\t\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tx1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\ty1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tz1 = Double.parseDouble(tempstr);\n\t\t\t\tvup = new Vector(x1,y1,z1);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting VUP line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = viewFileBR.readLine(); // should be the PRP line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"PRP\")) {\n\t\t\t\tdouble x1=0, y1=0, z1=0;\t\t\t\t\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tx1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\ty1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tz1 = Double.parseDouble(tempstr);\n\t\t\t\tprp = new Vertex(x1,y1,z1,1.0);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting PRP line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tline = viewFileBR.readLine(); // should be the WINDOW line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"WINDOW\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tumin = Double.parseDouble(tempstr);\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tumax = Double.parseDouble(tempstr);\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tvmin = Double.parseDouble(tempstr);\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tvmax = Double.parseDouble(tempstr);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting WINDOW line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = viewFileBR.readLine(); // should be the FRONT line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"FRONT\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tfrontClip = Double.parseDouble(tempstr);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting FRONT line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tline = viewFileBR.readLine(); // should be the BACK line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"BACK\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tbackClip = Double.parseDouble(tempstr);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting BACK line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tviewFileBR.close();\n\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"couldn't read from file\");\n\t\t}\n\n\n\t\t// write code here to print out the VRP, PRP, VUP and VPN\n\t\t\n\t\tSystem.out.print(\"WINDOW =\");\n\t\tSystem.out.println(\" \" + umin + \" \" + umax + \" \" + vmin + \" \" + vmax);\n\n\t\tSystem.out.print(\"FRONT =\");\n\t\tSystem.out.println(\" \" + frontClip);\n\n\t\tSystem.out.print(\"BACK =\");\n\t\tSystem.out.println(\" \" + backClip);\n\n\t}", "public Vertex[] getVertices() {\n return arrayOfVertices;\n }", "public Vertex[] getVertices() {\n\t\treturn this._vertices.toArray(new Vertex[0]);\n\t}", "public void setVertices(){\n\t\tvertices = new ArrayList<V>();\n\t\tfor (E e : edges){\n\t\t\tV v1 = e.getOrigin();\n\t\t\tV v2 = e.getDestination();\n\t\t\tif (!vertices.contains(v1))\n\t\t\t\tvertices.add(v1);\n\t\t\tif (!vertices.contains(v2))\n\t\t\t\tvertices.add(v2);\n\t\t}\n\t}", "public void getVertices (float[] vertices) {\r\n \t\tif (vertices.length < getNumVertices() * getVertexSize() / 4)\r\n \t\t\tthrow new IllegalArgumentException(\"not enough room in vertices array, has \" + vertices.length + \" floats, needs \"\r\n \t\t\t\t+ getNumVertices() * getVertexSize() / 4);\r\n \t\tint pos = getVerticesBuffer().position();\r\n \t\tgetVerticesBuffer().position(0);\r\n \t\tgetVerticesBuffer().get(vertices, 0, getNumVertices() * getVertexSize() / 4);\r\n \t\tgetVerticesBuffer().position(pos);\r\n \t}", "public V getVertex(int index);", "public Position[] getVertexPosition() {\n Position[] positions = new Position[4];\n positions[0] = position;\n positions[1] = new Position(position.getX(), position.getY()+sizeL);\n positions[2] = new Position(position.getX()+sizeL, position.getY()+sizeL);\n positions[3] = new Position(position.getX()+sizeL, position.getY());\n\n return positions;\n }", "public DynamicModelPart.DynamicVertex[] buildVertexs(float x, float y, float z, float f,\n float g, float h) {\n DynamicModelPart.DynamicVertex vertex0 =\n new DynamicModelPart.DynamicVertex(x, y, z, 0.0F, 0.0F);\n DynamicModelPart.DynamicVertex vertex1 =\n new DynamicModelPart.DynamicVertex(f, y, z, 0.0F, 8.0F);\n DynamicModelPart.DynamicVertex vertex2 =\n new DynamicModelPart.DynamicVertex(f, g, z, 8.0F, 8.0F);\n DynamicModelPart.DynamicVertex vertex3 =\n new DynamicModelPart.DynamicVertex(x, g, z, 8.0F, 0.0F);\n DynamicModelPart.DynamicVertex vertex4 =\n new DynamicModelPart.DynamicVertex(x, y, h, 0.0F, 0.0F);\n DynamicModelPart.DynamicVertex vertex5 =\n new DynamicModelPart.DynamicVertex(f, y, h, 0.0F, 8.0F);\n DynamicModelPart.DynamicVertex vertex6 =\n new DynamicModelPart.DynamicVertex(f, g, h, 8.0F, 8.0F);\n DynamicModelPart.DynamicVertex vertex7 =\n new DynamicModelPart.DynamicVertex(x, g, h, 8.0F, 0.0F);\n return new DynamicModelPart.DynamicVertex[] {vertex0, vertex1, vertex2, vertex3,\n vertex4, vertex5, vertex6, vertex7};\n }", "private void parseTriangle(String line) {\n String first_integer = line.substring(2);\n first_integer = first_integer.trim();\n int second_space_index = first_integer.indexOf(' ') + 1;\n String second_integer = first_integer.substring(second_space_index);\n second_integer = second_integer.trim();\n int third_space_index = second_integer.indexOf(' ') + 1;\n String third_integer = second_integer.substring(third_space_index);\n third_integer = third_integer.trim();\n\n parseTriplet(first_integer.substring(0, second_space_index - 1));\n parseTriplet(second_integer.substring(0, third_space_index - 1));\n parseTriplet(third_integer);\n }", "@Test\n public void testVertices() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n Vertex v4id = new Vertex (4, \"E\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 5);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 7);\n Edge<Vertex> e3 = new Edge<>(v1, v4, 9);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n assertFalse(g.addVertex(v4id));\n\n Set<Vertex> expectedVertices = new HashSet<>();\n expectedVertices.add(v1);\n expectedVertices.add(v2);\n expectedVertices.add(v3);\n expectedVertices.add(v4);\n\n assertEquals(expectedVertices, g.allVertices());\n\n Assert.assertTrue(g.remove(v1));\n\n }", "@Test\n public void getVertexes() {\n\n for (int i = 0; i < 6; i++) {\n\n Vertex temp = new Vertex(i + \"\", \"Location number \" + i);\n assertTrue(temp.equals(testGraph.getVertices ().get(i)));\n\n }\n }", "Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n return world.keySet();\n }", "Vertex(){}", "int getNumberOfVertexes();", "Vertex getVertex(int index);", "@Override\n public Traversal<Vertex, Long> get_pattern_16_test() {\n return g.V().match(\n __.as(\"a\").out(\"KNOWS\").out(\"KNOWS\").as(\"c\"),\n __.as(\"a\").out(\"KNOWS\").as(\"c\"))\n .select(\"a\", \"c\")\n .by(\"firstName\")\n .by(\"firstName\")\n .count();\n }", "public Vector2f[] generatePatch(){\n\t\tVector2f[] vertices = new Vector2f[16];\n\t\t\n\t\tint index = 0;\n\t\t\n\t\tvertices[index++] = new Vector2f(0,0);\n\t\tvertices[index++] = new Vector2f(0.333f,0);\n\t\tvertices[index++] = new Vector2f(0.666f,0);\n\t\tvertices[index++] = new Vector2f(1,0);\n\t\t\n\t\tvertices[index++] = new Vector2f(0,0.333f);\n\t\tvertices[index++] = new Vector2f(0.333f,0.333f);\n\t\tvertices[index++] = new Vector2f(0.666f,0.333f);\n\t\tvertices[index++] = new Vector2f(1,0.333f);\n\t\t\n\t\tvertices[index++] = new Vector2f(0,0.666f);\n\t\tvertices[index++] = new Vector2f(0.333f,0.666f);\n\t\tvertices[index++] = new Vector2f(0.666f,0.666f);\n\t\tvertices[index++] = new Vector2f(1,0.666f);\n\t\n\t\tvertices[index++] = new Vector2f(0,1);\n\t\tvertices[index++] = new Vector2f(0.333f,1);\n\t\tvertices[index++] = new Vector2f(0.666f,1);\n\t\tvertices[index++] = new Vector2f(1,1);\n\t\t\n\t\treturn vertices;\n\t}", "public int getColor(Vertex v);", "public Enumeration outAdjacentVertices(Position vp) throws InvalidPositionException;", "protected final void parseV() {\n current = read();\n skipSpaces();\n\n for (;;) {\n switch (current) {\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n float y = parseNumber();\n smoothQCenterX = currentX;\n smoothCCenterX = currentX;\n\n currentY = y;\n smoothQCenterY = y;\n smoothCCenterY = y;\n p.lineTo(smoothCCenterX, smoothCCenterY);\n break;\n default:\n return;\n }\n skipCommaSpaces();\n }\n }", "private String edgesLeavingVertexToString() {\n \n //make empty string\n String s = \"\";\n \n //for loop to go through all vertices; \n for (int j = 0; j < arrayOfVertices.length; j++) {\n \n //if it has any edges...\n if (arrayOfVertices[j].getDegree() > 0) {\n \n //go through its edges\n for (int k = 0; k < arrayOfVertices[j].getDegree(); k++) {\n \n //declare an array list\n ArrayList<Vertex> newArrayList = \n arrayOfVertices[j].getAdjacent();\n \n //add to string: the vertex itself + space + edge + line break\n s += j + \" \" + newArrayList.get(k).getID() + \"\\n\"; \n \n } \n } \n }\n \n //add -1, -1 after all the edges\n s += \"-1 -1\";\n \n return s; \n }", "public Set<V> getNeighbours(V vertex);", "@Override\r\n\tpublic vec4 get4(String ponits) {\n\t\treturn null;\r\n\t}", "public String toString(){\n\t\treturn vertex.toString();\n\t}", "public abstract String getVertexSymbol(int vertexIndex);", "public Polygon(List<Point> vertices) {\n\t\tthis.vertices = vertices;\n\t\tthis.segments = new ArrayList<LineSegment>(vertices.size());\n\n\t\tPoint first = vertices.get(0);\n\t\tPoint current = first;\n\t\tfor (int i = 1; i < vertices.size(); i++) {\n\t\t\tPoint next = vertices.get(i);\n\t\t\tsegments.add(new LineSegment(current, next));\n\t\t\tcurrent = next;\n\t\t}\n\t\tsegments.add(new LineSegment(current, first));\n\t\tvertices.add(first);\n\t}", "public int numVertices() { return numV; }", "ArrayList<Edge> getEdges(ArrayList<ArrayList<Vertex>> v) {\n ArrayList<Edge> all = new ArrayList<Edge>();\n for (ArrayList<Vertex> verts : v) {\n for (Vertex vt : verts) {\n for (Edge ed : vt.outEdges) {\n all.add(ed);\n }\n }\n }\n return all;\n }", "private Polygon2D getTriByVertex(Point2D vertex) {\n \t\tPolygon2D tri = new Polygon2D();\n \t\tdouble y = vertex.getY();\n \t\ttri.append(vertex);\n \t\ttri.append(250+y*Math.sqrt(3)/2, 250*Math.sqrt(3)-y/2);\n \t\ttri.append(750-y*Math.sqrt(3)/2, 250*Math.sqrt(3)-y/2);\n \t\treturn tri;\n }", "public Vertex[] getVertices() {\n return new Vertex[]{v1, v2};\n }", "private static Edge parseToEdge(String s) {\n\t\ts = s.trim();\n\t\tString[] results = s.split(\"[(),]+\");\n\t\tif(results.length == 8 && results[0].equals(\"[\") && results[7].equals(\"]\")) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tint i1 = Integer.parseInt(results[1]);\n\t\t\t\tint i2 = Integer.parseInt(results[2]);\n\t\t\t\tint i3 = Integer.parseInt(results[3]);\n\t\t\t\tint j1 = Integer.parseInt(results[4]);\n\t\t\t\tint j2 = Integer.parseInt(results[5]);\n\t\t\t\tint j3 = Integer.parseInt(results[6]);\n\t\t\t\treturn new Edge(new Point(i1,i2,i3),new Point(j1,j2,j3));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"Number parse Error\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Format parse Error\");\n\t\tSystem.out.println(\"string: \" + s);\n\t\tSystem.out.println(\"tokens: \" + results.length);\n\t\treturn null;\n\t}", "public Collection< VDataT > vertexData();", "static ConscellNode parse_re(int level) throws IOException {\n if(level == 0) {\n cout.printf(\"%nProcessing Expression: \\\"%s\\\"%n\", curr_line);\n }\n ConscellNode root = new ConscellNode(parse_simple_re(level + 1), \"RE\", level);\n ConscellNode last = root;\n\n while (curr_type == TokenType.VERT) {\n match(TokenType.VERT);\n last.setNext(new ConscellNode(parse_simple_re(level + 1), \"VERT\", level + 1));\n last = last.getNext();\n }\n return root;\n }", "public static ArrayList<LatLng> parseOverviewPolyLine(String json){\n ArrayList<LatLng> points = new ArrayList<LatLng>();\n try {\n //Read points from JSON\n JSONObject root = new JSONObject(json);\n JSONArray routesArray = root.getJSONArray(\"routes\");\n JSONObject route = routesArray.getJSONObject(0);\n JSONObject overviewPolyLine = route.getJSONObject(\"overview_polyline\");\n String encodedPoints = overviewPolyLine.getString(\"points\");\n\n points = decodePoly(encodedPoints);\n\n return points;\n\n } catch (JSONException e){\n e.printStackTrace();\n }\n\n return points;\n }", "@Override\r\n public Iterable<V> vertices() {\r\n LinkedList<V> list = new LinkedList<>();\r\n for(V v : map.keySet())\r\n list.add(v);\r\n return list;\r\n }", "private static List<Query> readPolygonQueries(String fileName) throws IOException {\n CharsetDecoder decoder = StandardCharsets.UTF_8.newDecoder()\n .onMalformedInput(CodingErrorAction.REPORT)\n .onUnmappableCharacter(CodingErrorAction.REPORT);\n int BUFFER_SIZE = 1 << 16; // 64K\n InputStream is = Files.newInputStream(Paths.get(fileName));\n BufferedReader reader = new BufferedReader(new InputStreamReader(is, decoder), BUFFER_SIZE);\n List<Query> result = new ArrayList<>();\n while (true) {\n String line = reader.readLine(); \n if (line == null) {\n break;\n }\n if (line.startsWith(\"count=\") == false) {\n throw new AssertionError();\n }\n // Count is the number of polygons the query has:\n int count = Integer.parseInt(line.substring(6, line.indexOf(' ')));\n List<Polygon> polys = new ArrayList<>();\n for(int i=0;i<count;i++) {\n line = reader.readLine(); \n // How many polygons (if this is > 1, the first poly is the real one, and\n // all others are hole-polys that are subtracted):\n if (line.startsWith(\" poly count=\") == false) {\n throw new AssertionError();\n }\n int polyCount = Integer.parseInt(line.substring(13));\n List<Polygon> polyPlusHoles = new ArrayList<>();\n for(int j=0;j<polyCount;j++) {\n line = reader.readLine(); \n if (line.startsWith(\" vertex count=\") == false) {\n System.out.println(\"GOT: \" + line);\n throw new AssertionError();\n }\n \n int vertexCount = Integer.parseInt(line.substring(17));\n double[] lats = new double[vertexCount];\n double[] lons = new double[vertexCount];\n line = reader.readLine(); \n if (line.startsWith(\" lats \") == false) {\n throw new AssertionError();\n }\n String[] parts = line.substring(11).split(\" \");\n if (parts.length != vertexCount) {\n throw new AssertionError();\n }\n for(int k=0;k<vertexCount;k++) {\n lats[k] = Double.parseDouble(parts[k]);\n }\n \n line = reader.readLine(); \n if (line.startsWith(\" lons \") == false) {\n throw new AssertionError();\n }\n parts = line.substring(11).split(\" \");\n if (parts.length != vertexCount) {\n throw new AssertionError();\n }\n for(int k=0;k<vertexCount;k++) {\n lons[k] = Double.parseDouble(parts[k]);\n }\n polyPlusHoles.add(new Polygon(lats, lons));\n }\n Polygon firstPoly = polyPlusHoles.get(0);\n Polygon[] holes = polyPlusHoles.subList(1, polyPlusHoles.size()).toArray(new Polygon[polyPlusHoles.size()-1]);\n polys.add(new Polygon(firstPoly.getPolyLats(), firstPoly.getPolyLons(), holes));\n }\n Query q;\n if (useLatLonPoint) {\n q = LatLonPoint.newPolygonQuery(\"point\", polys.toArray(new Polygon[polys.size()]));\n } else if (useGeoPoint) {\n q = new GeoPointInPolygonQuery(\"point\", polys.toArray(new Polygon[polys.size()]));\n } else {\n throw new AssertionError();\n }\n result.add(q);\n }\n\n return result;\n }", "public Polygon4D(ArrayList<Vertex> vertices){\n\t\t\n\t\tthis.vertices = vertices;\n\t\tsetFaces();\n\t}", "public Set<String> getVertices()\r\n\t{\r\n\t\treturn this.dataMap.keySet();\r\n\t}", "@Override\n public Set<Vertex> getVertices() {\n Set<Vertex> vertices = new HashSet<Vertex>();\n vertices.add(sourceVertex);\n vertices.add(targetVertex);\n return vertices;\n }", "public Vertex<VV> getFrom()\r\n { return from; }", "public int getVertices() {\n return verticesNumber;\n }", "public static void main(String[] args) {\n\t\tString str = \"32+5*2-40/3\";\r\n\t\t/*\r\n\t\tPattern p = Pattern.compile(\"(([0-9]+)(\\\\+\\\\-\\\\*\\\\/)?)+\");\r\n\t\tMatcher m = p.matcher(str);\r\n\t\tSystem.out.println(m.find());\r\n\t\tSystem.out.println(m.groupCount());\r\n\t\tSystem.out.println(m.group(1));\r\n\t\tSystem.out.println(m.group(2));\r\n\t\tSystem.out.println(m.group(3));\r\n\t\t*/\r\n\t\tString[] sub = str.split(\"\\\\+|\\\\-|\\\\*|\\\\/\");\r\n\t\tfor(String s : sub) {\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}", "public V getVertex()\r\n/* */ {\r\n/* 198 */ return (V)this.vertex;\r\n/* */ }", "public void removeVertex();" ]
[ "0.62069875", "0.5918337", "0.5765421", "0.5498267", "0.5409038", "0.5367795", "0.53335565", "0.5330689", "0.5290166", "0.5288609", "0.52747244", "0.52731943", "0.52229184", "0.5157108", "0.51471794", "0.5138403", "0.5116292", "0.5111083", "0.5111083", "0.5102109", "0.5064885", "0.50474054", "0.5041398", "0.504111", "0.5035591", "0.50207615", "0.49732158", "0.4923721", "0.490716", "0.48927948", "0.48898777", "0.48894355", "0.48619547", "0.48595598", "0.48485193", "0.48443925", "0.48378238", "0.4832909", "0.48206127", "0.4816375", "0.48130733", "0.48093757", "0.48074114", "0.48047626", "0.47986096", "0.47912884", "0.47776383", "0.47691423", "0.47605348", "0.4759104", "0.4736841", "0.47321725", "0.4722061", "0.4714946", "0.4700645", "0.46984228", "0.469522", "0.4687865", "0.46798214", "0.46765295", "0.46630147", "0.46517476", "0.46494085", "0.46441403", "0.46431038", "0.46403614", "0.46333322", "0.46294475", "0.4628211", "0.46265677", "0.46241075", "0.4617112", "0.46163923", "0.4613912", "0.46123967", "0.46057886", "0.4604502", "0.46018955", "0.459441", "0.4583554", "0.4572457", "0.45691228", "0.45689562", "0.45619974", "0.45606726", "0.45577723", "0.45337322", "0.4532279", "0.45309412", "0.45236638", "0.4522528", "0.45223308", "0.45188388", "0.45123005", "0.45116788", "0.45057067", "0.4504979", "0.45010853", "0.44876692", "0.44875926", "0.4487164" ]
0.0
-1
Use a TopologicalOrderIterator to traverse the DAG in order In case of a tie, use a standard string comparator
public String getOutput() { TopologicalOrderIterator<String, DefaultEdge> iterator = new TopologicalOrderIterator<>(steps, Comparator.comparing((String x) -> x)); // Traverse the DAG and store each vertex to a StringBuilder // to output once traversal is completed StringBuilder sb = new StringBuilder(); while (iterator.hasNext()) { sb.append(iterator.next()); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String alienOrder(String[] words) {\n int[] indegree = new int[26];\n //adj list--hashmap\n HashMap<Character, Set<Character>> adjList = new HashMap();\n // 2 major steps\n // buildGraph(words,indegree,adjList );\n \n // initialise the adj list graph with all charac ters in all words\n for(String word:words ){\n for(char c: word.toCharArray()){\n adjList.putIfAbsent(c, new HashSet());\n }\n }// once u fill with init, then u eatblish relationships\n \n // wrt and er \n for(int i=1; i<words.length;i++){\n String first = words[i-1];\n String second = words[i];\n \n // important edge case\n if(first.length()> second.length() && first.startsWith(second))\n return \"\";\n // now compare each char in thos words\n for(int j=0; j< Math.min(first.length(),second.length());j++){\n if(first.charAt(j) != second.charAt(j)){\n // a->b here out=a, in=b\n char out = first.charAt(j);\n char in = second.charAt(j);\n // a->b , so in adj list. we need to insert the valiue if not present\n // if the graph does not contains dependecny, which is in set, u add it else u dont add// since hashset, we can check usinhg contains i guess\n if(! adjList.get(out).contains(in)){\n adjList.get(out).add(in);\n //also increase the indegree if u find the dependency\n indegree[in -'a']++;\n }\n // once it is found , u can break out th e loop\n break;\n \n }// if eqaual we mmove to next char and do the process\n }\n }\n \n \n \n \n \n \n// return topologicalSortDfs(indegree,adjList );\n \n \n \n // we ll use stringbuilder to update the characters instead of string\n // we ll insert all elements into queue who has indegree==0 initially, which means they dont have any dependency so they can come at any time//\n // so insert all indgree==0 into queu and do a stanmdard queue template\n StringBuilder sb = new StringBuilder();\n Queue<Character> q = new LinkedList();\n int totalChars = adjList.size(); // to check at end if all are present\n \n \n // loop thru all keys in graph and check the indegree of that character in indegree if its has zero , if so then add to queue initially\n // initial push to queue\n for(char c: adjList.keySet()){\n if(indegree[c-'a'] == 0){\n \n sb.append(c);\n q.offer(c);// so u need to add all orphan nodes to sb , since it contains results\n }\n \n } \n // now we need to find nodes which has dependency, take it out and reduce the indegree and check if indegreeis zero then add tio queue\n \n // stand ard queue template\n while(!q.isEmpty()){\n // take the elemnt \n char curr = q.poll();\n \n if(adjList.get(curr) == null || adjList.get(curr).size()==0 ){\n // we shud not do antthing, and pick the next nodes in the queue\n continue;\n }\n // if we have some elements in the adj list which means we have a dependency\n // So what do we do here:??\n // i think we can take it and reduce the indgree ??\n // Since we are. removing this particular current element, so we need to reduce all its neighbour indegree becios we removed aos we need to update the indegree of all its neiughbours\n for(char neighbour : adjList.get(curr)){\n indegree[neighbour-'a']--;\n //also check if it becomes zero after update we need to push to queu and sb\n if(indegree[neighbour-'a'] == 0){\n //add to q and sb\n q.offer(neighbour);\n sb.append(neighbour);\n \n }\n }\n \n }\n \n // once we are out of queue, which means we processed all nodes\n // if total chars is sb length, which means we got all chars /nodes so we can return else \"\"\n return sb.length() == totalChars ? sb.toString() : \"\";\n }", "private String traverseForToString() {\n\t\tif (this.root != null)\n\t\t\tpreorderTraverseForToString(this.root);\n\n\t\treturn this.order;\n\t}", "private String topologicalSortDfs(int indegree[], HashMap<Character, Set<Character>> adjList){\n \n // we ll use stringbuilder to update the characters instead of string\n // we ll insert all elements into queue who has indegree==0 initially, which means they dont have any dependency so they can come at any time//\n // so insert all indgree==0 into queu and do a stanmdard queue template\n StringBuilder sb = new StringBuilder();\n Queue<Character> q = new LinkedList();\n int totalChars = adjList.size(); // to check at end if all are present\n \n \n // loop thru all keys in graph and check the indegree of that character in indegree if its has zero , if so then add to queue initially\n // initial push to queue\n for(char c: adjList.keySet()){\n if(indegree[c-'a'] == 0){\n \n sb.append(c);\n q.offer(c);// so u need to add all orphan nodes to sb , since it contains results\n }\n \n } \n // now we need to find nodes which has dependency, take it out and reduce the indegree and check if indegreeis zero then add tio queue\n \n // stand ard queue template\n while(!q.isEmpty()){\n // take the elemnt \n char curr = q.poll();\n \n if(adjList.get(curr) == null || adjList.get(curr).size()==0 ){\n // we shud not do antthing, and pick the next nodes in the queue\n continue;\n }\n // if we have some elements in the adj list which means we have a dependency\n // So what do we do here:??\n // i think we can take it and reduce the indgree ??\n // Since we are. removing this particular current element, so we need to reduce all its neighbour indegree becios we removed aos we need to update the indegree of all its neiughbours\n for(char neighbour : adjList.get(curr)){\n indegree[neighbour-'a']--;\n //also check if it becomes zero after update we need to push to queu and sb\n if(indegree[neighbour-'a'] == 0){\n //add to q and sb\n q.offer(neighbour);\n sb.append(neighbour);\n \n }\n }\n \n }\n \n // once we are out of queue, which means we processed all nodes\n // if total chars is sb length, which means we got all chars /nodes so we can return else \"\"\n return sb.length() == totalChars ? sb.toString() : \"\";\n }", "public String topSort(Map<Character, Set<Character>> graph_hm) {\n\n StringBuilder sb = new StringBuilder();\n\n // count initial inDegree for every char vertex\n Map<Character, Integer> indegree = new HashMap<>();\n for (char c : graph_hm.keySet()) {\n for (char a : graph_hm.get(c)) {\n int count = indegree.containsKey(a) ? indegree.get(a) + 1 : 1;\n indegree.put(a, count);\n }\n }\n\n // find inDegree==0, initialize the queue\n Queue<Character> q = new LinkedList<>();\n for (char c : graph_hm.keySet()) {\n if (!indegree.containsKey(c)) {\n q.offer(c);\n }\n }\n\n // topological shellSort\n while (!q.isEmpty()) {\n char c = q.poll();\n sb.append(c);\n for (char a : graph_hm.get(c)) {\n indegree.put(a, indegree.get(a) - 1);\n if (indegree.get(a) == 0) {\n q.offer(a);\n }\n }\n }\n\n for (int a : indegree.values()) { // if there is any non sorted, this is not a DAG, return false\n if (a != 0) return \"\";\n }\n return sb.toString();\n }", "public static void main(String[] args) {\n TreeSet<String> ts = new TreeSet<>(new MyComp().reversed());\n\n ts.add(\"C\");\n ts.add(\"B\");\n ts.add(\"A\");\n ts.add(\"G\");\n ts.add(\"Z\");\n ts.add(\"Q\");\n\n for (String element : ts){\n System.out.print(element);\n }\n }", "@Test (priority = 1)\n public void sortAlphabetical(){\n\n for (int i = 0; i < allDepartments.getOptions().size()-1; i++) {\n String current = allDepartments.getOptions().get(i).getText();\n String next = allDepartments.getOptions().get(i+1).getText();\n\n System.out.println(\"comparing: \" + current + \" with \"+ next);\n\n Assert.assertTrue(current.compareTo(next)<=0);\n\n }\n }", "public static <V, I> Iterator<V> topologicalSort(final DAG<V, I> dag) {\n final List<V> list = new LinkedList<>();\n final DAG<V, I> newDAG = new AdjacentListDAG<>();\n copy(dag, newDAG);\n\n while (true) {\n final Set<V> rootVertices = new HashSet<>(newDAG.getRootVertices());\n if (rootVertices.size() == 0) {\n break;\n }\n\n for (final V rootVertex : rootVertices) {\n if (!newDAG.removeVertex(rootVertex)) {\n throw new RuntimeException(\"Removing root vertex should be true.\");\n } else {\n list.add(rootVertex);\n }\n }\n }\n return list.iterator();\n }", "public static void main(String[] args)\n throws Exception\n {\n PrintWriter pen = new PrintWriter(System.out, true);\n BST<String, String> dict =\n new BST<String, String>((left, right) -> left.compareTo(right));\n\n String[] values =\n new String[] { \"gorilla\", \"dingo\", \"chimp\", \"emu\", \"elephant\", \"beta\",\n \"aardvark\", \"chinchilla\", \"yeti\", \"gibbon\", \"horse\",\n \"elephant\", \"duck\", \"emu\" };\n String[] moreValues =\n new String[] { \"gnu\", \"dingo\", \"flying squirrel\", \"iguana\", \"squirrel\",\n \"red squirrel\", \"moose\" };\n\n // Add each element and make sure that it's there.\n for (String value : values)\n {\n addString(pen, dict, value);\n } // for\n\n // A quick printout for fun\n pen.println(\"After setting the first set of values\");\n iterate(pen, dict.iterator());\n\n // Another quick printout for fun\n for (String value : values)\n {\n addString(pen, dict, value);\n } // for\n pen.println(\"After setting the second set of values\");\n iterate(pen, dict.iterator());\n\n // Build iterators that traverse in different ways\n Iterable<String> df_pre_lr =\n dict.values(Traversal.DEPTH_FIRST_PREORDER_LEFT_TO_RIGHT);\n Iterable<String> df_in_lr =\n dict.values(Traversal.DEPTH_FIRST_INORDER_LEFT_TO_RIGHT);\n Iterable<String> df_in_rl =\n dict.values(Traversal.DEPTH_FIRST_INORDER_RIGHT_TO_LEFT);\n Iterable<String> bf_pre_rl =\n dict.values(Traversal.BREADTH_FIRST_PREORDER_RIGHT_TO_LEFT);\n\n // Iterate!\n pen.println(\"Iterating depth-first, preorder, left-to-right\");\n pen.print(\" \");\n iterate(pen, df_pre_lr);\n \n pen.println(\"Iterating depth-first, inorder, left-to-right\");\n pen.print(\" \");\n iterate(pen, df_in_lr);\n \n pen.println(\"Iterating depth-first, inorder, right-to-left\");\n pen.print(\" \");\n iterate(pen, df_in_rl);\n \n pen.println(\"Iterating breadth-first, preorder, right-to-left\");\n pen.print(\" \");\n iterate(pen, bf_pre_rl);\n\n // And we're done\n pen.close();\n }", "public String topologicalSort() {\n\t\t\n\t\tboolean[] visited = new boolean[V];\n\t\tStack<Integer> stack = new Stack<Integer>();\n\t\t\n\t\tfor(int i=0;i< V;i++) {\n\t\t\tif(!visited[i]) {\t\t\t\n\t\t\t\ttopologicalSortRec(list, list.get(i), stack, visited, i);\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tString result = \"\";\n\t\twhile(!stack.isEmpty()) {\n\t\t\tresult = result + (char)(stack.pop() + 'a');\n\t\t}\n//\t\tSystem.out.println(result);\n\t\treturn result;\n\t}", "@Override\n\tpublic Tuple next(){\n\t\t//Delete the lines below and add your code here\n\t\tTuple temp;\n\t\tTuple t = child.next();\n\t\tint s = -1;\n\t\tString s1;\n\t\tString s2;\n\t\tif(sorted==false){\n\t\t\tif(t!=null){\n\t\t\t\tfor(s=0; s<t.attributeList.size(); s++){\n\t\t\t\t\tif(t.attributeList.get(s).attributeName.equals(orderPredicate)){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile(t!=null){\n\t\t\t\ttuplesResult.add(t);\n\t\t\t\tt = child.next();\n\t\t\t}\n\t\t\tfor(int i=0; i<tuplesResult.size(); i++){\n\t\t\t\ts1 = tuplesResult.get(i).attributeList.get(s).attributeValue.toString();\n\t\t\t\tfor(int j=i+1; j<tuplesResult.size(); j++){\n\t\t\t\t\ts2 = tuplesResult.get(j).attributeList.get(s).attributeValue.toString();\n\t\t\t\t\tif(s1.compareTo(s2) > 0){\n\t\t\t\t\t\ttemp=tuplesResult.get(i);\n\t\t\t\t\t\ttuplesResult.set(i, tuplesResult.get(j));\n\t\t\t\t\t\ttuplesResult.set(j, temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsorted=true;\n\t\t}\n\t\tif(tuplesResult.size()>0){\n\t\t\treturn tuplesResult.remove(0);\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "public interface StartTreeNodeComparator\n{\n public boolean compare (StartTreeNode node);\n}", "void topologicalSort() {\n\n\t\tfor (SimpleVertex vertice : allvertices) {\n\n\t\t\tif (vertice.isVisited == false) {\n\t\t\t\tlistset.add(vertice.Vertexname);\n\t\t\t\ttopologicalSortUtil(vertice);\n\n\t\t\t}\n\t\t}\n\n\t}", "public String alienOrder(String[] words) {\n HashMap<Character, Integer> degrees = new HashMap<Character, Integer>();\n //in BFS, we will create result forward, so we need use \"decides\" relation\n //To avoid add same relationship multiple times, we use HashSet to store nodes\n //Ex: za zb ca cb, both shows relationship a decides b, we don't want have 2 b after a in relations\n HashMap<Character, Set<Character>> hs = new HashMap<Character, Set<Character>>();\n \n String prev = \"\";//prev word\n //fill prerequisites table and degree table\n for(String word : words){\n //we put degree table here to include each char in dict\n for(char c : word.toCharArray()){\n if(!degrees.containsKey(c)) degrees.put(c, 0);\n } \n //then search for the the first char after common part\n for(int i = 0; i < Math.min(prev.length(), word.length()); i++){\n char a = prev.charAt(i), b = word.charAt(i);\n if(a != b){\n //we use \"decides\" relation, so a is key while b is a value in related value set\n //we may not necessary to have prerequisites for each char, so we put it here and \n //no need to include all chars in dict, if some words do not have dependency\n if(!hs.containsKey(a)) hs.put(a, new HashSet<Character>());\n hs.get(a).add(b);\n //then we update incoming edge table (degrees table)\n degrees.put(b, degrees.get(b) + 1);\n \n break;//we only care about first char, so break now\n }\n }\n prev = word;//update prev word\n }\n \n //**second part, use BFS to topologically visit the graph **\n Queue<Character> que = new LinkedList<Character>();\n \n for(Character c : degrees.keySet()){\n //add first series of nodes that do not have incoming edges\n if(degrees.get(c) == 0){\n que.offer(c);\n }\n }\n \n StringBuilder sb = new StringBuilder();\n \n while(!que.isEmpty()){\n Character curr = que.poll();\n sb.append(curr);\n \n //since we may not necessary include all nodes in prerequisites table, we need do boundary check first\n if(!hs.containsKey(curr)) continue;\n //remove outgoing edges from c, add new nodes if all their incoming edges have been removed\n for(Character c : hs.get(curr)){\n degrees.put(c, degrees.get(c) - 1);\n if(degrees.get(c) == 0){\n que.offer(c);\n }\n }\n }\n \n //check the result length with supposed length from keySize()\n //if not same, then there must be some nodes in cycle and did not included to our queue\n return sb.length() == degrees.size()? sb.toString() : \"\";\n }", "private void preorderTraverseForToString(Node node) {\n\t\tif (node == null)\n\t\t\treturn;\n\n\t\tthis.order += node + \"\\n\";\n\n\t\t// walk trough left sub-tree\n\t\tpreorderTraverseForToString(node.left);\n\t\t// walk trough right sub-tree\n\t\tpreorderTraverseForToString(node.right);\n\t}", "private static void helperTSort(DiGraph graph){\n Integer[] sortedList;\n try {\n sortedList = graph.topSort();\n System.out.print(\"The topologically sorted sequence of vertices: \");\n\n for(int i = 0; i < sortedList.length; i++){\n if( i == 0)\n System.out.print(sortedList[i]);\n else{\n System.out.print(\", \" + sortedList[i]);\n }\n }\n System.out.println();\n } catch (IllegalArgumentException e) {\n System.out.println(e);\n }\n }", "private static Comparator<String> arbitraryStringComparator(String... stringsInOrder) {\n var arbitraryComparator = comparing((String s) -> ImmutableList.copyOf(stringsInOrder).reverse().indexOf(s));\n return arbitraryComparator.reversed().thenComparing(naturalOrder());\n }", "public String findOrder(String [] words, int N, int K)\n {\n Graph g = new Graph(K);\n\t\t \n\t\t for(int i=0;i < words.length && i+1 < words.length;i++) {\n\t\t\t\tString w1 = words[i];\n\t\t\t\tString w2 = words[i+1];\n\t\t\t\tcompare(g,w1,w2);\t\n\t\t\t}\n\t\t \n\t\t return g.topologicalSort(); \n \n }", "private Comparator parseString(final String val) {\n\t\tComparator ret = null;\n\t\tfor (Comparator comp : Comparator.values()) {\n\t\t\tif (comp.toParseString().equals(val)) {\n\t\t\t\tret = comp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public static String alienOrder(String[] words) {\n if(words.length==0){\n return \"\";\n }\n else if(words.length==1){\n return words[0];\n }\n else{\n HashMap<Character,HashSet<Character>> graph = new HashMap<Character,HashSet<Character>>();\n //Use this array to denote each node's indegree\n int[] indegree = new int[26];\n Arrays.fill(indegree,-1);\n //****Initialize indegree array, '0' means exits****\n for(String x : words){\n for(char c : x.toCharArray()){\n indegree[c-'a'] = 0;\n }\n }\n int first = 0;\n int second = 1;\n //****Build the graph****\n while(second<words.length){\n int minLen = Math.min(words[first].length(),words[second].length());\n for(int i = 0; i<minLen; i++){\n char f = words[first].charAt(i);\n char s = words[second].charAt(i);\n if(f!=s){\n if(graph.containsKey(s)==true){\n HashSet<Character> hs = graph.get(s);\n if(hs.contains(f)==false){\n indegree[f-'a']++;\n hs.add(f);\n graph.replace(s,hs);\n }\n }\n else{\n HashSet<Character> hs = new HashSet<Character>();\n hs.add(f);\n graph.put(s,hs);\n indegree[f-'a']++;\n }\n break;\n }\n }\n first++;\n second++;\n }\n StringBuilder result = new StringBuilder();\n Queue<Character> topo = new LinkedList<Character>();\n int numOfChar = 0;\n for(int i = 0; i<26; i++){\n if(indegree[i]>=0){\n numOfChar++;\n if(indegree[i]==0){\n topo.offer((char)('a'+i));\n } \n }\n }\n if(topo.size()==0){\n return \"\";\n //Means circle exits\n }\n while(topo.size()>0){\n char c = topo.poll();\n result.append(c);\n if(graph.containsKey(c)==false){\n \tcontinue;\n }\n HashSet<Character> hs = graph.get(c);\n for(char x : hs){\n indegree[x-'a']--;\n if(indegree[x-'a']<0){\n return \"\";\n }\n else if(indegree[x-'a']==0){\n topo.offer(x);\n }\n }\n }\n return result.reverse().toString();\n //return result.length()==numOfChar?result.reverse().toString():\"HAHA\";\n }\n }", "@Test\r\n\tpublic void givenTreeMap_whenOrdersEntriesNaturally_thenCorrect2() {\r\n\t\tTreeMap<String, String> map = new TreeMap<>();\r\n\t\tmap.put(\"c\", \"val\");\r\n\t\tmap.put(\"b\", \"val\");\r\n\t\tmap.put(\"a\", \"val\");\r\n\t\tmap.put(\"e\", \"val\");\r\n\t\tmap.put(\"d\", \"val\");\r\n\r\n\t\tassertEquals(\"[a, b, c, d, e]\", map.keySet().toString());\r\n\t}", "public void inOrderTraverseIterative();", "@Test\n public void shouldGetTheLevelsInSortedOrder() {\n String currentPipeline = \"P1\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d1\", \"d1\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d2\", \"d2\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d3\", \"d3\"), null, \"d1\");\n graph.addUpstreamNode(new PipelineDependencyNode(\"d3\", \"d3\"), null, \"d2\");\n\n List<List<Node>> nodesAtEachLevel = graph.presentationModel().getNodesAtEachLevel();\n\n assertThat(nodesAtEachLevel.size(), is(3));\n assertThat(nodesAtEachLevel.get(0).get(0).getName(), is(\"d3\"));\n assertThat(nodesAtEachLevel.get(1).get(0).getName(), is(\"d1\"));\n assertThat(nodesAtEachLevel.get(1).get(1).getName(), is(\"d2\"));\n assertThat(nodesAtEachLevel.get(2).get(0).getName(), is(currentPipeline));\n }", "public void testIterator01() {\r\n\t\tBTree<String, Integer> bt = new BTree<String, Integer>(4);\r\n\t\tList<String> words = TestUtils.randomWords(256, 3);\r\n\r\n\t\tfor (int i = 0; i < words.size(); i++) {\r\n\t\t\tbt.set(words.get(i), i);\r\n\t\t}\r\n\r\n\t\tCollections.sort(words);\r\n\t\tStringBuilder expected = new StringBuilder();\r\n\t\tfor (int i = 0; i < words.size(); i++) {\r\n\t\t\texpected.append(words.get(i)).append(',');\r\n\t\t}\r\n\r\n\t\tStringBuilder actual = new StringBuilder();\r\n\t\tfor (Entry<String, Integer> e : bt) {\r\n\t\t\tactual.append(e.getKey()).append(',');\r\n\t\t}\r\n\r\n\t\tassertEquals(actual.toString(), expected.toString());\r\n\t}", "public int compareTo(XMLString anotherString) {\n/* 242 */ return this.m_str.compareTo(anotherString.toString());\n/* */ }", "public static void main(String[] args) {\n\t\tTreeSet<String> ts = new TreeSet<String>();\n\t\t\n\t\tts.add(\"\");\n\t\t//System.out.println(ts);\n\n\t\tts.add(\"Red\");\n\t\tts.add(\"Green\");\n\t\tts.add(\"Blue\");\n\t\tts.add(\"White\");\n\t\tts.add(\"Orange\");\n\t\tts.add(\"\");\n\n\t\tSystem.out.println(ts);\n\t\tSystem.out.println(ts.size());\n\n\t\t// List<String> li = new ArrayList<String>(ts);\n\n\t\tTreeSet<String> ts1 = new TreeSet<String>();\n\n\t\tts1.add(\"Red\");\n\t\tts1.add(\"Green\");\n\t\tts1.add(\"Blue\");\n\t\tts1.add(\"WWhite\");\n\t\tts1.add(\"OOrange\");\n\n\t\tfor (String tss : ts) {\n\t\t\tSystem.out.println(ts1.contains(tss) ? \"YES\" : \"NO\");\n\t\t}\n\n\t\tTreeSet<Integer> ts2 = new TreeSet<Integer>();\n\n\t\tts2.add(1);\n\t\tts2.add(2);\n\t\tts2.add(3);\n\t\tts2.add(5);\n\t\tts2.add(9);\n\n\t\tIterator<Integer> itr = ts2.headSet(3).iterator();\n\n\t\twhile (itr.hasNext()) {\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\n\t\tSystem.out.println(\"======\");\n\n\t\tIterator<Integer> itr2 = ts2.tailSet(3).iterator();\n\n\t\twhile (itr2.hasNext()) {\n\t\t\tSystem.out.println(itr2.next());\n\t\t}\n\n\t\tSystem.out.println(\"======\");\n\n\t\tSystem.out.println(ts2.ceiling(11));\n\t\tSystem.out.println(ts2.floor(3));\n\n\t\tSystem.out.println(\"======\");\n\n\t\tSystem.out.println(ts2.lower(3));\n\t\tSystem.out.println(ts2.higher(3));\n\t\t\n\t\tSystem.out.println(\"======\");\n\t\t\n\t\tTreeSet t = new TreeSet();\n\t\t\n\t\tt.add(new StringBuffer(\"AA\"));\n\t\tt.add(new StringBuffer(\"BB\"));\n\t\tSystem.out.println(t);\n\t\t\n\n\t\t// ts1.addAll(ts);\n\t\t// System.out.println(ts1);\n\n\t\t/*\n\t\t * System.out.println(\"Treeset to ArrayList: \" + li); Collections.reverse(li);\n\t\t * System.out.println(\"After Reversing: \" + li);\n\t\t */\n\n\t\t/*\n\t\t * Iterator<String> itr = ts.iterator();\n\t\t * \n\t\t * while (itr.hasNext()) { System.out.println(itr.next()); }\n\t\t */\n\t}", "@Override\r\n\tpublic int compare(GraphNode<T> o1, GraphNode<T> o2) {\n\t\treturn o1.getName().compareTo(o2.getName());\r\n\t}", "public String alienOrder(String[] words) {\n if (words == null) return null;\n\n\n Map<Character, Set<Character>> graph_hm = new HashMap<>();\n\n // build the graph\n for (int i = 0; i < words.length; i++) {\n for (int j = 0; j < words[i].length(); j++) {\n char c = words[i].charAt(j);\n if (!graph_hm.containsKey(c)) {\n // create a new Set for each vertex\n graph_hm.put(c, new HashSet<>());\n }\n }\n if (i > 0) {\n // order every two words, they must follow lexi order\n // DAG dependencies are built here\n getOrder(words[i - 1], words[i], graph_hm);\n }\n }\n\n // shellSort the graph\n return topSort(graph_hm);\n\n }", "static public java.lang.String genComparisons (org.apache.spark.sql.catalyst.expressions.codegen.CodegenContext ctx, scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.SortOrder> ordering) { throw new RuntimeException(); }", "private void topologicalSort(final Operation operation, final Deque<Operation> stack, final Set<Operation>\n visited) {\n\n LOG.trace(\"Topologically sorting operation: {} with stack: {} and visited: {}\", operation, stack, visited);\n\n visited.add(operation);\n\n //DFS active edges & add to stack\n if (operation.hasActiveEdges()) {\n\n for (final Edge activeEdge : operation.getActiveEdges()) {\n\n final Operation childOperation = activeEdge.getOperationTo();\n if (visited.contains(childOperation)) {\n continue;\n }\n\n topologicalSort(childOperation, stack, visited);\n }\n }\n stack.offerFirst(operation);\n }", "public void topologicalSort() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\t\tStack<Vertex> stack = new Stack<Vertex>();\r\n\r\n\t\t// Call the helper function starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\ttopologicalSort(this.vertices[i], visited, stack);\r\n\r\n\t\twhile (!stack.isEmpty()) {\r\n\t\t\tSystem.out.print(stack.pop() + \" \");\r\n\t\t}\r\n\t}", "private void validOrderResult() {\n TreeNode currentTreeNode = treeLeaf;\n TreeNode orderTreeNode = null;\n while (!(currentTreeNode instanceof SourceTreeNode)) {\n if (currentTreeNode instanceof OrderGlobalTreeNode) {\n orderTreeNode = currentTreeNode;\n break;\n } else {\n currentTreeNode = UnaryTreeNode.class.cast(currentTreeNode).getInputNode();\n }\n }\n if (null != orderTreeNode) {\n OrderGlobalTreeNode orderGlobalTreeNode = OrderGlobalTreeNode.class.cast(orderTreeNode);\n TreeNode aggTreeNode = orderTreeNode.getOutputNode();\n while (aggTreeNode != null && aggTreeNode.getNodeType() != NodeType.AGGREGATE) {\n aggTreeNode = aggTreeNode.getOutputNode();\n }\n if (null != aggTreeNode) {\n if (aggTreeNode instanceof FoldTreeNode) {\n TreeNode inputTreeNode = UnaryTreeNode.class.cast(aggTreeNode).getInputNode();\n if (inputTreeNode == orderTreeNode) {\n return;\n }\n UnaryTreeNode inputUnaryTreeNode = UnaryTreeNode.class.cast(inputTreeNode);\n if (inputUnaryTreeNode.getInputNode() == orderTreeNode &&\n (inputUnaryTreeNode instanceof EdgeVertexTreeNode &&\n EdgeVertexTreeNode.class.cast(inputUnaryTreeNode).getDirection() != Direction.BOTH)) {\n return;\n }\n String orderLabel = orderGlobalTreeNode.enableOrderFlag(labelManager);\n SelectOneTreeNode selectOneTreeNode = new SelectOneTreeNode(new SourceDelegateNode(inputUnaryTreeNode, schema), orderLabel, Pop.last, Lists.newArrayList(), schema);\n selectOneTreeNode.setConstantValueType(new ValueValueType(Message.VariantType.VT_INTEGER));\n OrderGlobalTreeNode addOrderTreeNode = new OrderGlobalTreeNode(inputUnaryTreeNode, schema,\n Lists.newArrayList(Pair.of(selectOneTreeNode, Order.incr)));\n UnaryTreeNode.class.cast(aggTreeNode).setInputNode(addOrderTreeNode);\n }\n } else {\n if (treeLeaf instanceof OrderGlobalTreeNode) {\n return;\n }\n TreeNode currTreeNode = orderTreeNode.getOutputNode();\n boolean hasSimpleShuffle = false;\n while (currTreeNode != null) {\n if (currTreeNode.getNodeType() == NodeType.FLATMAP\n || (currTreeNode instanceof PropertyNode &&\n !(UnaryTreeNode.class.cast(currTreeNode).getInputNode().getOutputValueType() instanceof EdgeValueType))) {\n hasSimpleShuffle = true;\n break;\n }\n currTreeNode = currTreeNode.getOutputNode();\n }\n if (!hasSimpleShuffle) {\n return;\n }\n\n UnaryTreeNode outputTreeNode = UnaryTreeNode.class.cast(treeLeaf);\n if (outputTreeNode.getInputNode() == orderTreeNode) {\n if (outputTreeNode instanceof EdgeVertexTreeNode &&\n EdgeVertexTreeNode.class.cast(outputTreeNode).getDirection() != Direction.BOTH) {\n return;\n }\n if (orderTreeNode.getOutputValueType() instanceof EdgeValueType && outputTreeNode instanceof PropertyNode) {\n return;\n }\n }\n String orderLabel = orderGlobalTreeNode.enableOrderFlag(labelManager);\n SelectOneTreeNode selectOneTreeNode = new SelectOneTreeNode(new SourceDelegateNode(treeLeaf, schema), orderLabel, Pop.last, Lists.newArrayList(), schema);\n selectOneTreeNode.setConstantValueType(new ValueValueType(Message.VariantType.VT_INTEGER));\n treeLeaf = new OrderGlobalTreeNode(treeLeaf, schema,\n Lists.newArrayList(Pair.of(selectOneTreeNode, Order.incr)));\n }\n }\n }", "public interface Lexicon extends Comparator<String>{\r\n\r\n\t\r\n\r\n\t/** (non-Javadoc)\r\n\t * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)\r\n\t */\r\n\tint compare(String a, String b);\r\n\r\n\t/**\r\n\t * Uses binary search to find the order of key.\r\n\t * @param key\r\n\t * @return ordering value for key or -1 if key is an invalid character.\r\n\t */\r\n\tint getCharacterOrdering(char key);\r\n\r\n\t/**\r\n\t * Returns whether or not word is valid.\r\n\t * @param word word to be checked.\r\n\t * @return\r\n\t */\r\n\tboolean isValid(String word);\r\n\t\r\n}", "@Test public void testPublic14() {\n Graph<String> graph= TestGraphs.testGraph2();\n List<String> shortestPath= new ArrayList<String>();\n\n assertEquals(1, graph.Dijkstra(\"apple\", \"banana\", shortestPath));\n assertEquals(\"apple banana\", TestGraphs.listToString(shortestPath));\n\n assertEquals(2, graph.Dijkstra(\"apple\", \"cherry\", shortestPath));\n assertEquals(\"apple banana cherry\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(3, graph.Dijkstra(\"apple\", \"date\", shortestPath));\n assertEquals(\"apple banana cherry date\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(4, graph.Dijkstra(\"apple\", \"elderberry\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(5, graph.Dijkstra(\"apple\", \"fig\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry fig\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(6, graph.Dijkstra(\"apple\", \"guava\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry fig guava\",\n TestGraphs.listToString(shortestPath));\n }", "@Test\n public void treeGraphsTest() throws Exception {\n // Construct a tree, rooted at INITIAL, with two \"a\" children, both of\n // which have different \"b\" and \"c\" children.\n String traceStr = \"1,0 a\\n\" + \"2,0 b\\n\" + \"1,1 c\\n\" + \"--\\n\"\n + \"1,0 a\\n\" + \"2,0 b\\n\" + \"1,1 c\\n\";\n TraceParser parser = genParser();\n ArrayList<EventNode> parsedEvents = parser.parseTraceString(traceStr,\n getTestName().getMethodName(), -1);\n DAGsTraceGraph inputGraph = parser\n .generateDirectPORelation(parsedEvents);\n exportTestGraph(inputGraph, 0);\n\n // This returns a set with one node -- INITIAL. It will have two\n // children -- the two \"a\" nodes, which should be k-equivalent for all\n // k.\n EventNode initNode = inputGraph.getDummyInitialNode();\n\n List<Transition<EventNode>> initNodeTransitions = initNode\n .getAllTransitions();\n EventNode firstA = initNodeTransitions.get(0).getTarget();\n EventNode secondA = initNodeTransitions.get(1).getTarget();\n for (int k = 1; k < 4; k++) {\n testKEqual(firstA, secondA, k);\n }\n\n // In this tree the firstA and secondA should _not_ be 1-equivalent (one\n // has children {b,c}, while the other has children {b,d}), but\n // they are still 0-equivalent.\n traceStr = \"1,0 a\\n\" + \"2,0 b\\n\" + \"1,1 c\\n\" + \"--\\n\" + \"1,0 a\\n\"\n + \"2,0 b\\n\" + \"1,1 d\\n\";\n parser = genParser();\n parsedEvents = parser.parseTraceString(traceStr, getTestName()\n .getMethodName(), -1);\n inputGraph = parser.generateDirectPORelation(parsedEvents);\n exportTestGraph(inputGraph, 1);\n\n initNode = inputGraph.getDummyInitialNode();\n initNodeTransitions = initNode.getAllTransitions();\n firstA = initNodeTransitions.get(0).getTarget();\n secondA = initNodeTransitions.get(1).getTarget();\n testKEqual(firstA, secondA, 1);\n testNotKEqual(firstA, secondA, 2);\n }", "void orderEdges(Comparator<E> comparator);", "@Override\n public int compare(String lhs, String rhs) {\n return lhs.compareTo(rhs);\n }", "private void testPreorderTemplate(OrderTraversal orderTraversal) {\n System.out.println(\"Testing against \" + orderTraversal.getClass().getSimpleName());\n testOne(\"1,2,3,4,5\", Lists.newArrayList(1, 2, 4, 5, 3), orderTraversal);\n testOne(\"1\", Lists.newArrayList(1), orderTraversal);\n testOne(\"4,2,7,1,3,6,9\", Lists.newArrayList(4, 2, 1, 3, 7, 6, 9), orderTraversal);\n testOne(\"4,2,7,1,#,6,9,8,10,#,5\", Lists.newArrayList(4, 2, 1, 8, 10, 7, 6, 5, 9), orderTraversal);\n System.out.println(StringUtils.repeat(\"-\", 30));\n }", "public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }", "@Test\r\n\tpublic void givenTreeMap_whenOrdersEntriesNaturally_thenCorrect() {\r\n\t\tTreeMap<Integer, String> map = new TreeMap<>();\r\n\t\tmap.put(3, \"val\");\r\n\t\tmap.put(2, \"val\");\r\n\t\tmap.put(1, \"val\");\r\n\t\tmap.put(5, \"val\");\r\n\t\tmap.put(4, \"val\");\r\n\r\n\t\tassertEquals(\"[1, 2, 3, 4, 5]\", map.keySet().toString());\r\n\t}", "public String alienOrder(String[] words) {\n String order = \"\";\n\n if (words.length == 0 || words == null) {\n return order;\n }\n\n int size = words.length;\n\n Map<Character, Integer> inDegree = new HashMap<>();\n Map<Character, Set<Character>> graph = new HashMap<>();\n\n // at first, initialize inDegree, all characters' inDegree is 0\n for (String word : words) {\n for (int i = 0; i < word.length(); i++) {\n inDegree.put(word.charAt(i), 0);\n }\n }\n\n // graph\n for (int i = 0; i < size - 1; i++) {\n String curr = words[i];\n String next = words[i + 1];\n\n int minLen = Math.min(curr.length(), next.length());\n\n for (int j = 0; j < minLen; j++) {\n char a = curr.charAt(j);\n char b = next.charAt(j);\n\n if (a != b) {\n // update graph\n Set<Character> hs = graph.computeIfAbsent(a, x -> new HashSet<>());\n // update inDegree, 但是不要加 重 \n if (!hs.contains(b)) {\n inDegree.put(b, inDegree.getOrDefault(b, 0) + 1);\n }\n hs.add(b);\n\n break;\n }\n }\n }\n\n Queue<Character> queue = new LinkedList<>();\n\n for (Map.Entry<Character, Integer> entry : inDegree.entrySet()) {\n char c = entry.getKey();\n int val = entry.getValue();\n\n if (val == 0) {\n queue.add(c);\n }\n }\n\n while (!queue.isEmpty()) {\n char c = queue.poll();\n\n order += c;\n\n Set<Character> subsequentChars = graph.get(c);\n // c is parent to subsequentChars\n // now, remove 1 indegree for all subsequentChars\n if (subsequentChars != null) {\n for (char subsequent : subsequentChars) {\n inDegree.put(subsequent, inDegree.get(subsequent) - 1);\n\n if (inDegree.get(subsequent) == 0) {\n queue.add(subsequent);\n }\n }\n }\n }\n\n if (order.length() != inDegree.size()) {\n return \"\";\n }\n\n return order;\n }", "Comparator<String> getPatternComparator(String path);", "protected List topologicalSort() {\r\n LinkedList order = new LinkedList();\r\n HashSet knownNodes = new HashSet();\r\n LinkedList nextNodes = new LinkedList();\r\n\r\n for (Iterator i = graph.getNodes().iterator(); i.hasNext(); ) {\r\n BBNNode node = (BBNNode) i.next();\r\n if (node.getChildren().size() == 0) {\r\n nextNodes.addAll(node.getParents());\r\n knownNodes.add(node);\r\n order.addFirst(node);\r\n }\r\n }\r\n\r\n while (nextNodes.size() > 0) {\r\n BBNNode node = (BBNNode) nextNodes.removeFirst();\r\n if (knownNodes.contains(node)) continue;\r\n\r\n List children = node.getChildren();\r\n if (knownNodes.containsAll(children)) {\r\n order.addFirst(node);\r\n nextNodes.addAll(node.getParents());\r\n knownNodes.add(node);\r\n }\r\n }\r\n return order;\r\n }", "public void sortKnowledgeBase()\n {\n int i;\n Random random;\n String aPredicate;\n StringTokenizer tokenizer;\n //------------\n random = new Random();\n i = 0;\n while (i < knowledgeBase.size())\n {\n aPredicate = knowledgeBase.get(i).commitments.get(0).predicate;\n tokenizer = new StringTokenizer(aPredicate,\"(), \");\n if(tokenizer.nextToken().equals(\"secuencia\"))\n knowledgeBase.get(i).priority = random.nextInt(100);\n //end if\n else\n knowledgeBase.get(i).priority = random.nextInt(10000);\n //end else\n i = i + 1;\n }//end while\n Collections.sort(knowledgeBase);\n }", "abstract String getSortKey();", "public Object getXPathComparable(boolean ordered, StringCollator collator, XPathContext context) {\r\n return collator.getCollationKey(value.toString());\r\n }", "public void ucs (String input)\r\n\t{\r\n\t\tNode root_ucs = new Node (input);\r\n\t\tNode current = new Node(root_ucs.getState());\r\n\t\t\r\n\t\tNodeComparator ucs_comparator = new NodeComparator();\r\n\t\tPriorityQueue<Node> queue_ucs = new PriorityQueue<Node>(12, ucs_comparator);\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint pqueue_max_size = 0;\r\n\t\tint pq_size = 0;\r\n\t\t\r\n\t\tcurrent.cost = 0;\r\n\t\tcurrent.setTotalCost(0);\r\n\t\t\r\n\t\tgoal_ucs = isGoal(current.getState());\r\n\t\t\r\n\t\twhile(!goal_ucs)\r\n\t\t{\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Setting total cost used for the priority queue\r\n\t\t\t\t\tnino.setTotalCost(nino.parent.getTotalCost() + nino.cost);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!queue_ucs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_ucs.add(nino);\r\n\t\t\t\t\t\tpq_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Repeated State checking. Removing the same node from PQ if the path cost is less then the current one \r\n\t\t\t\t\telse if (queue_ucs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (Node original : queue_ucs)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (original.equals(nino))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tNode copy = original;\r\n\t\t\t\t\t\t\t\tif (nino.getTotalCost() < copy.getTotalCost())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tqueue_ucs.remove(copy);\r\n\t\t\t\t\t\t\t\t\tqueue_ucs.add(nino);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = queue_ucs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\tif (pq_size > pqueue_max_size)\r\n\t\t\t{\r\n\t\t\t\tpqueue_max_size = pq_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpq_size--;\r\n\t\t\tgoal_ucs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgoal_ucs = false;\r\n\t\tSystem.out.println(\"UCS Solved!!\");\r\n\t\tSolution.performSolution(current, root_ucs, nodes_popped, pqueue_max_size);\r\n\t}", "public static void isInAlphabeticalOrder(String...a) {\n\t\t\r\n\t\tSystem.out.println(\"In which alphabetical order?\");\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString order = scan.nextLine();\r\n\t\t\r\n\t\tboolean isFinished = false; //detects an early exit from inner loop\r\n\t\t\r\n\t\t// FIXME: compare characters in same position, but in subsequent strings.\r\n\t\t// may input strings with different lengths.\r\n\t\t// It will most likely throw an out of index exception, need to catch it / handle it\r\n\t\t// or make a custom exception\r\n\t\t// will probably need to check for a null value early.\r\n\t\t// might apply this fix by changing the outer loop to a regular loop, since it will only \r\n\t\t// iterate length() - 1 times.\r\n\t\t\r\n\t\tSystem.out.println(a.length);\r\n\t\t\r\n\t\t//check order\r\n\t\tswitch (order) {\r\n\t\t\tcase \"forward\":\t\t\t// the length method in the next line is for an array.\r\n\t\t\t\tfor (int i = 0; i < a.length -1; i++) { //iterates through all the string pairs provided\r\n\t\t\t\t\tfor (int j = 0; j < a[i].length(); j++) { //iterates through characters in the current string\r\n\t\t\t\t\t\t// if the 2 strings differ in length\r\n\t\t\t\t\t\t// i.e. if the next string is shorter than the current one\r\n\t\t\t\t\t\t// might throw an exception\r\n\t\t\t\t\t\t// NOTE: continue moves to the next iteration of a loop.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// the inner loop breaks if it doesn't find anything out of order.\r\n\t\t\t\t\t\t// it should only iterate through the entire string if the \r\n\t\t\t\t\t\t// characters are identical.\r\n\r\n\t\t\t\t\t\tif (a[i].charAt(j) < a[i + 1].charAt(j)) {\r\n\t\t\t\t\t\t\tbreak; // in order; moves on to next pair of strings\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif (a[i].charAt(j) > a[i + 1].charAt(j)) { // out of order\r\n\t\t\t\t\t\t\tisFinished = true;\r\n\t\t\t\t\t\t\tSystem.out.println(false);\r\n\t\t\t\t\t\t\tbreak; // exit the loop\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (j + 1 == a[i+1].length()) { // check for the end of next string\r\n\t\t\t\t\t\t\t// to avoid an out of bounds exception\r\n\t\t\t\t\t\t\tbreak; // move to the next iteration of the outer loop.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isFinished) { //checks for an early exit in the inner loop\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (!isFinished) {\r\n\t\t\t\t\tSystem.out.println(true); //will only occur if an early exit does not occur\r\n\t\t\t\t}\r\n\t\t\t\tscan.close();\r\n\t\t\t\tbreak; //close scanner and exit the loop\r\n\t\t\t\r\n\t\t\tcase \"reverse\":\r\n\t\t\t\tfor (int i = 0; i < a.length -1; i++) { //iterates through all the string pairs provided\r\n\t\t\t\t\tfor (int j = 0; j < a[i].length(); j++) { //iterates through characters in the current string\r\n\t\t\t\t\t\t// if the 2 strings differ in length\r\n\t\t\t\t\t\t// i.e. if the next string is shorter than the current one\r\n\t\t\t\t\t\t// might throw an exception\r\n\t\t\t\t\t\t// NOTE: continue moves to the next iteration of a loop.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// the inner breaks if it doesn't find anything out of order.\r\n\t\t\t\t\t\t// it should only iterate through the entire string if the \r\n\t\t\t\t\t\t// characters are identical.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//FIXME: hitting a[2] when it should not be happening.\r\n\t\t\t\t\t\tif (a[i].charAt(j) > a[i + 1].charAt(j)) {\r\n\t\t\t\t\t\t\tbreak; // in order; moves on to next pair of strings\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif (a[i].charAt(j) < a[i + 1].charAt(j)) { // out of order\r\n\t\t\t\t\t\t\tisFinished = true;\r\n\t\t\t\t\t\t\tSystem.out.println(false);\r\n\t\t\t\t\t\t\tbreak; // exit the loop\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (j + 1 == a[i+1].length()) { // check for the end of next string\r\n\t\t\t\t\t\t\t// to avoid an out of bounds exception\r\n\t\t\t\t\t\t\tbreak; // move to the next iteration of the outer loop.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isFinished) { //checks for an early exit in the inner loop\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (!isFinished) {\r\n\t\t\t\t\tSystem.out.println(true); //will only occur if an early exit does not occur\r\n\t\t\t\t}\r\n\t\t\t\tscan.close();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"That's not a good input.\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "public int compareToIgnoreCase(XMLString str) {\n/* 265 */ return this.m_str.compareToIgnoreCase(str.toString());\n/* */ }", "public static void main(String[] args) {\r\n String s;\r\n Trie t = new Trie();\r\n\r\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n String orderString = in.readLine();\r\n if (orderString == null) {\r\n throw new IllegalArgumentException(\"bad\");\r\n }\r\n TreeSet<Character> test = new TreeSet<>();\r\n ArrayList<Character> order = new ArrayList<>();\r\n for (int i = 0; i < orderString.length(); i++) {\r\n order.add(orderString.charAt(i));\r\n test.add(orderString.charAt(i));\r\n }\r\n\r\n if (test.size() != order.size()) {\r\n throw new IllegalArgumentException(\"bad\");\r\n }\r\n\r\n s = in.readLine();\r\n if (s == null) {\r\n throw new IllegalArgumentException(\"bad\");\r\n }\r\n while (s != null) {\r\n t.insert(s);\r\n s = in.readLine();\r\n }\r\n t.sortedPrint(order);\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }", "public void topologicalSort() {\n HashMap<Integer, Integer> inDegrees = new HashMap<>();\n Queue<Integer> queue = new LinkedList<>();\n int numTotalNodes = 0;\n\n // Build the inDegree HashMap\n for (Entry<Integer, LinkedList<Edge<Integer>>> entry : g.adj.entrySet()) {\n LinkedList<Edge<Integer>> vList = entry.getValue();\n int currentVertex = entry.getKey();\n\n inDegrees.put(currentVertex, inDegrees.getOrDefault(currentVertex, 0));\n for (Edge<Integer> e : vList) {\n inDegrees.put(e.dest, inDegrees.getOrDefault(e.dest, 0) + 1);\n numTotalNodes++;\n }\n }\n\n // Add Elements with inDegree zero toe the queue\n for (int v : inDegrees.keySet()) {\n if (inDegrees.get(v) > 0)\n continue;\n queue.add(v);\n }\n\n int visitedNodes = 0;\n\n while (!queue.isEmpty()) {\n int v = queue.remove();\n System.out.print(v + \" \");\n for (int u : g.getNeighbors(v)) {\n int inDeg = inDegrees.get(u) - 1;\n if (inDeg == 0)\n queue.add(u);\n inDegrees.put(u, inDeg);\n }\n visitedNodes++;\n }\n\n if (visitedNodes != numTotalNodes) {\n System.out.println(\"Graph is not a DAG\");\n }\n }", "void topologicalSort() {\n Stack stack = new Stack();\n\n // Mark all the vertices as not visited\n Boolean visited[] = new Boolean[V];\n for (int i = 0; i < V; i++)\n visited [i] = false;\n\n // Call the recursive helper function to store Topological\n // Sort starting from all vertices one by one\n for (int i = 0; i < V; i++)\n if (visited [i] == false)\n topologicalSortUtil(i, visited, stack);\n\n // Print contents of stack\n while (stack.empty() == false)\n System.out.print(stack.pop() + \" \");\n }", "public static void main(String[] args) {\n TreeSet<Employee> treeEmp = new TreeSet<>();\n \n for(int i =0; i<100 ; i++){\n treeEmp.add(new Employee(\"Pera\"+i, (int)(Math.random()*100+1)));\n } \n \n \n Iterator<Employee> iteratorEmp = treeEmp.iterator();\n while (iteratorEmp.hasNext()) { \n Employee ite = iteratorEmp.next();\n System.out.println(\"Empployee name: \"+ite.name+\" id: \"+ite.id);\n }\n \n System.out.println(treeEmp.first());\n System.out.println(treeEmp.last());\n \n Employee e = new Employee(\"Perica499\");\n e.id = \"50\";\n treeEmp.add(e);\n Iterator<Employee> headSetIterator = treeEmp.headSet(e).iterator();\n while (headSetIterator.hasNext()) { \n System.out.println(\"object Id \"+headSetIterator.next().id);\n }\n \n System.out.println(\"*****************************\");\n \n TreeSet<Employee> emps = new TreeSet<>(new CustomComparator());\n \n \n }", "public CarPriorityQueue getPQ(String name){\n\t\tif (root == null) {\t\t// If root is null, DLB is empty\n\t\t\treturn null;\n\t\t}\n\t\tStringCharacterIterator i = new StringCharacterIterator(name);\t// New iterator for make and model string\n\t\tNode cur = root;\n\t\twhile (i.getIndex() < i.getEndIndex()) { \t// Iterate through the make and model string\n\t\t\tif (cur == null) { \t\t// If null, make and model is not in the DLB\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\twhile (i.current() != cur.getVal()) { \t// Go through the siblings to see if there's a match\n\t\t\t\tif (cur.getSibling() == null) {\n\t\t\t\t\treturn null; \t\t\t\t\t// There is no sibling so make and model is not in the DLB\n\t\t\t\t}\n\t\t\t\tcur = cur.getSibling();\t\t\t// Otherwise, get the sibling, if theres a match\n\t\t\t}\n\t\t\tcur = cur.getChild();\t\t// Get next child\n\t\t\ti.next();\n\t\t}\n\t\tif (cur == null) { \t// If null after iterating the make and model string, the make and model is not the DLB\n\t\t\treturn null;\n\t\t}\n\t\telse if (cur.getVal() == '^') { // After iterating, check if we're at a terminal node\n\t\t\treturn cur.getPQ();\t\t\t // If so, get the PQ stored at the node\n\t\t}\n\t\twhile (cur.getSibling() != null) { // Go through siblings to see if there is a terminal node there\n\t\t\tif (cur.getVal() == '^') {\t // After iterating, check if we're at a terminal node\n\t\t\t\treturn cur.getPQ();\t\t // If so, get the PQ stored at the node\n\t\t\t}\n\t\t\tcur = cur.getSibling();\t // If not, keep looping until null\n\t\t}\n\t\treturn cur.getPQ();\n\t}", "public String alienOrder(String[] words) {\n int[] indegree = new int[26];\n //adj list--hashmap\n HashMap<Character, Set<Character>> adjList = new HashMap();\n // 2 major steps\n buildGraph(words,indegree,adjList );\n return topologicalSortDfs(indegree,adjList );\n \n }", "@Override\n public int compare(String left, String right) {\n return left.compareTo(right);\n }", "@Test\r\n public void testOrderByGroup() throws Exception{\r\n \ttmpFile = File.createTempFile(\"test\", \"txt\");\r\n \tPrintStream ps = new PrintStream(new FileOutputStream(tmpFile));\r\n \tfor(int i = 0; i < 100; i++) {\r\n \t\tps.println(i);\r\n \t}\r\n \tps.close();\r\n \r\n \tpig.registerQuery(\"a = load 'file:\" + tmpFile +\"' as (f1:int);\");\r\n \tpig.registerQuery(\"b = group a by $0;\");\r\n \tpig.registerQuery(\"c = order b by group;\");\r\n \tIterator<Tuple> iter = pig.openIterator(\"c\");\r\n \tint count = 0;\r\n \twhile(iter.hasNext()){\r\n \t\tTuple tuple=iter.next();\r\n \t\tassertEquals(count, tuple.get(0));\r\n \t\tcount++;\r\n \t}\r\n \tassertEquals(count, 100);\r\n }", "public static void main(String[] args) {\n\t\tTreeSet<String> list = new TreeSet<>();\n\t\tlist.add(\"Hello\");\n\t\tlist.add(\"To\");\n\t\tlist.add(\"Java\");\n\t\tlist.add(\"Batch\");\n\t\tlist.add(\"Batch\");\n\t\tlist.add(\"7\");\n\t\tIterator<String> it = list.iterator();\n\t\twhile (it.hasNext()) \n\t\t{\n\t\t\t\n\t\t\tString element = it.next();\n\t\t\tSystem.out.println(element);\n\t\t}\n\t}", "public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "public static void main(String[] args) {\nDGraph g=new DGraph();\r\nDirectedDFS d=new DirectedDFS(g);\r\nfor(Iterator<Integer> i=d.preorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();\r\nfor(Iterator<Integer> i=d.postorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();\r\n\r\n/*for(Iterator i=d.topologicalorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();*/\r\n\r\n\r\n\tfor(int w:d.reversepost())\r\n\t\tSystem.out.print(w+\" \");\r\n\t//System.out.println(d.topologicalorder.pop());\r\n\t}", "public TopologicalSort(DirectedGraph graph) {\r\n visited = new boolean[graph.numOfVertices()];\r\n inRecursionStack = new boolean[graph.numOfVertices()];\r\n reversePostOrder = new Stack<Integer>();\r\n topologicalOrder = new ArrayList<Integer>();\r\n \r\n // Perform DFS, adding vertices to stack\r\n for(int vertex = 0; vertex < graph.numOfVertices(); vertex++) {\r\n if(!visited[vertex]) {\r\n depthFirstSearch(graph, vertex);\r\n }\r\n }\r\n \r\n // Pop the stack\r\n while(!reversePostOrder.empty()) {\r\n topologicalOrder.add(reversePostOrder.pop());\r\n }\r\n }", "public static void main(String[] args) {\n\t\tTreeSet<String> al=new TreeSet<>();\r\n\t\tal.add(\"Sunday\");\r\n\t\tal.add(\"Monday\");\r\n\t\tal.add(\"Tuesday\");\r\n\t\tal.add(\"Wednesday\");\r\n\t\tal.add(\"Thursday\");\r\n\t\tal.add(\"Friday\");\r\n\t\tal.add(\"Saturday\");\r\n\t\tal.add(\"Sunday\");\r\n\t\tSystem.out.println(\"First element : \"+al.first());\r\n\t\tSystem.out.println(\"Weekedays contains friday :\"+al.contains(\"Friday\"));\r\n\t\tSystem.out.println(\"Empty or not : \"+al.isEmpty());\r\n\t\tSystem.out.println(\"first element in treeset : \"+al.first());\r\n\t\tSystem.out.println(al.size());\r\n\t\tSystem.out.println(al.lower(\"Ssturday\"));\r\n\t/*\tIterator<String> itr=al.iterator();\r\n\t\t\t\t{\r\n\t\t\twhile (itr.hasNext()) {\r\n\t\t\t\tString weekdays = (String) itr.next();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"weekdays : \"+al);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t*/\r\n\t\t//al.forEach(weekdays->System.out.println(weekdays));\r\n\t\tal.forEach(System.out::println);\r\n\t/*\r\n\t \r\n\t \tfor(String weekdays : al)\r\n\t\t{\t\r\n\t\t\tSystem.out.println(al);\r\n\t}\r\n\t\r\n\t*/\r\n\t}", "private void topologicalSort(Vertex start, Set<Vertex> visited, Stack<Vertex> stack) {\n\t\tvisited.add(start);\r\n\r\n\t\tSet<Vertex> neighbors = start.getNeighbors();\r\n\r\n\t\t// Get all adjacent vertices of the vertex s and recurse\r\n\t\tneighbors.forEach(n -> {\r\n\t\t\tif (!visited.contains(n))\r\n\t\t\t\ttopologicalSort(n, visited, stack);\r\n\t\t});\r\n\r\n\t\tstack.push(start);\r\n\t}", "public static void main(String[] args) {\n Set<String> list = new TreeSet<>();\n list.add(\"Song\");\n list.add(\"Album\");\n list.add(\"Artist\");\n list.add(\"Year\");\n list.add(\"Genre\");\n list.add(\"Song\");\n list.add(\"Song\");\n\n System.out.println();\n for(String x : list){\n System.out.println(x);\n }\n\n //NO REPITTED VALUES AND ASCENDED ORDER WHIT COMPARABLE, HASHCODE AND EQUALS\n Set<Persona> list2 = new TreeSet<>();\n list2.add(new Persona(1, \"Rayman\"));\n list2.add(new Persona(2, \"Castlevania\"));\n list2.add(new Persona(3, \"Silent Hill\"));\n list2.add(new Persona(4, \"Silent Hill\"));\n list2.add(new Persona(1, \"Rayman\"));\n\n System.out.println();\n for(Persona x : list2){\n System.out.println(x.getId() + \" - \" + x.getName());\n }\n }", "private void inOrderTraversal(StringBuilder sb) {\n if (left != null) {\n left.inOrderTraversal(sb);\n }\n\n sb.append(data + \" \");\n\n\n if (right != null) {\n right.inOrderTraversal(sb);\n }\n }", "java.lang.String getOrderBy();", "void topologicalSort(){ \n Stack<Integer> stack = new Stack<Integer>(); \n \n // Mark all the vertices as not visited \n boolean visited[] = new boolean[V]; \n for (int i = 0; i < V; i++) \n visited[i] = false; \n \n // Call the recursive helper function to store Topological Sort starting from all vertices one by one \n for (int i = 0; i < V; i++) \n if (visited[i] == false) \n topologicalSortUtil(i, visited, stack); \n \n // Print contents of stack \n while (stack.empty()==false) \n System.out.print(stack.pop() + \" \"); \n }", "public static void main (String[] args) {\n \tTopologicalOrderingInfoWorksProblem<Integer> graph = new TopologicalOrderingInfoWorksProblem<Integer>();\n graph.add(0, 1);\n graph.add(0, 2);\n graph.add(0, 3);\n graph.add(1, 2);\n graph.add(1, 3);\n graph.add(2, 3);\n graph.add(2, 4);\n// System.out.println(\"current graph: \" + graph);\n graph.printVertexOrder();\n System.out.println(\"check order 1,2 \" + graph.checkIfInOrder(1, 2));\n graph.add(4, 1); // Create a cycle\n// System.out.println(\"current graph: \" + graph);\n System.out.println(\"check order 4,1 \" + graph.checkIfInOrder(4, 1));\n graph.add(4, 5); \n graph.printVertexOrder();\n System.out.println(\"check order 1,5 \" + graph.checkIfInOrder(1, 5));\n }", "public List topologicalSort( Vertex startat ){\r\n return this.topologicalsorting.traverse( startat );\r\n }", "public static void main(String[] args) {\n\t\tlist.add(new Node13(1));\n\t\tlist.add(new Node13(2));\n\t\tlist.add(new Node13(3));\n\t\tlist.add(new Node13(4));\n\t\tlist.add(new Node13(5));\n\t\tlist.add(new Node13(6));\n\t\tlist.add(new Node13(7));\n\t\tlist.add(new Node13(8));\n\t\taddEdge(1, 3);\n\t\taddEdge(2, 3);\n\t\taddEdge(2, 4);\n\t\taddEdge(3, 5);\n\t\taddEdge(4, 6);\n\t\taddEdge(5, 7);\n\t\taddEdge(5, 6);\n\t\taddEdge(6, 8);\n\t\tfor(Node13 n:list){\n\t\t\twhile(n!=null){\n\t\t\t\tSystem.out.print(n.c+\"-->\");\n\t\t\t\tn=n.next;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\ttopolSort();\n\t\tSystem.out.println(\"After Topological sort : \"+stack.size());\n\t\tfor(Node13 p:stack){\n\t\t\tSystem.out.print(p.c+\" \");\n\t\t}\n\t}", "public List topologicalSort( ){\r\n return this.topologicalsorting.traverse();\r\n }", "private static List<SentenceForm> getTopologicalOrdering(\n\t\t\tSet<SentenceForm> forms,\n\t\t\tMultimap<SentenceForm, SentenceForm> dependencyGraph, boolean usingBase, boolean usingInput) throws InterruptedException {\n\t\t//We want each form as a key of the dependency graph to\n\t\t//follow all the forms in the dependency graph, except maybe itself\n\t\tQueue<SentenceForm> queue = new LinkedList<SentenceForm>(forms);\n\t\tList<SentenceForm> ordering = new ArrayList<SentenceForm>(forms.size());\n\t\tSet<SentenceForm> alreadyOrdered = new HashSet<SentenceForm>();\n\t\twhile(!queue.isEmpty()) {\n\t\t\tSentenceForm curForm = queue.remove();\n\t\t\tboolean readyToAdd = true;\n\t\t\t//Don't add if there are dependencies\n\t\t\tfor(SentenceForm dependency : dependencyGraph.get(curForm)) {\n\t\t\t\tif(!dependency.equals(curForm) && !alreadyOrdered.contains(dependency)) {\n\t\t\t\t\treadyToAdd = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Don't add if it's true/next/legal/does and we're waiting for base/input\n\t\t\tif(usingBase && (curForm.getName().equals(TRUE) || curForm.getName().equals(NEXT) || curForm.getName().equals(INIT))) {\n\t\t\t\t//Have we added the corresponding base sf yet?\n\t\t\t\tSentenceForm baseForm = curForm.withName(BASE);\n\t\t\t\tif(!alreadyOrdered.contains(baseForm)) {\n\t\t\t\t\treadyToAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(usingInput && (curForm.getName().equals(DOES) || curForm.getName().equals(LEGAL))) {\n\t\t\t\tSentenceForm inputForm = curForm.withName(INPUT);\n\t\t\t\tif(!alreadyOrdered.contains(inputForm)) {\n\t\t\t\t\treadyToAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Add it\n\t\t\tif(readyToAdd) {\n\t\t\t\tordering.add(curForm);\n\t\t\t\talreadyOrdered.add(curForm);\n\t\t\t} else {\n\t\t\t\tqueue.add(curForm);\n\t\t\t}\n\t\t\t//TODO: Add check for an infinite loop here, or stratify loops\n\n\t\t\tConcurrencyUtils.checkForInterruption();\n\t\t}\n\t\treturn ordering;\n\t}", "public void insertionStringSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && AL.get(possibleIndex - 1).toString().compareTo(temp.toString())>0)\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }", "private static Order.OrderType nextNodeAsOrderType(Iterator<JsonNode> iterator) {\n if (iterator == null || !iterator.hasNext()) {\n return null;\n }\n return KrakenAdapters.adaptOrderType(KrakenType.fromString(iterator.next().textValue()));\n }", "public String alienOrder(String[] words) {\n String order = \"\";\n \n if (words.length == 0 || words == null) {\n return order;\n }\n \n Map<Character, Set<Character>> graph = new HashMap<>();\n Map<Character, Integer> indegree = new HashMap<>();\n \n int size = words.length;\n \n for (String word : words) {\n for (int i = 0; i < word.length(); i++) {\n indegree.put(word.charAt(i), 0);\n }\n }\n \n for (int i = 0; i < size - 1; i++) {\n String curr = words[i];\n String next = words[i + 1];\n \n int minLen = Math.min(curr.length(), next.length());\n \n for (int j = 0; j < minLen; j++) {\n char a = curr.charAt(j);\n char b = next.charAt(j);\n \n if (a != b) {\n Set<Character> hs = graph.computeIfAbsent(a, x -> new HashSet<>());\n if (!hs.contains(b)) {\n hs.add(b);\n indegree.put(b, indegree.getOrDefault(b, 0) + 1);\n }\n // 别忘了 break to save time\n break;\n }\n }\n }\n\n Queue<Character> queue = new LinkedList<>();\n\n for (Map.Entry<Character, Integer> entry : indegree.entrySet()) {\n char c = entry.getKey();\n int count = entry.getValue();\n \n if (count == 0) {\n queue.offer(c);\n }\n }\n \n while (!queue.isEmpty()) {\n char c = queue.poll();\n order += c;\n \n Set<Character> followings = graph.get(c);\n \n if (followings != null) {\n for (char follow : followings) {\n indegree.put(follow, indegree.get(follow) - 1);\n \n if (indegree.get(follow) == 0) {\n queue.offer(follow);\n }\n }\n }\n }\n \n if (order.length() != indegree.size()) {\n return \"\";\n }\n \n return order;\n }", "private TreeMap<FlworKey, List<FlworTuple>> mapExpressionsToOrderedPairs() {\n // tree map keeps the natural item order deduced from an implementation of Comparator\n // OrderByClauseSortClosure implements a comparator and provides the exact desired behavior for local execution as well\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = new TreeMap<>(new OrderByClauseSortClosure(_expressions, true));\n\n // assign current context as parent. re-use the same context object for efficiency\n DynamicContext tupleContext = new DynamicContext(_currentDynamicContext);\n while (_child.hasNext()) {\n FlworTuple inputTuple = _child.next();\n\n List<Item> results = new ArrayList<>(); // results from the expressions will become a key\n for (OrderByClauseSparkIteratorExpression orderByExpression : _expressions) {\n tupleContext.removeAllVariables(); // clear the previous variables\n tupleContext.setBindingsFromTuple(inputTuple); // assign new variables from new tuple\n\n boolean isFieldEmpty = true;\n RuntimeIterator expression = orderByExpression.getExpression();\n expression.open(tupleContext);\n while (expression.hasNext()) {\n Item resultItem = expression.next();\n if (resultItem != null && !resultItem.isAtomic())\n throw new NonAtomicKeyException(\"Order by keys must be atomics\",\n orderByExpression.getIteratorMetadata().getExpressionMetadata());\n isFieldEmpty = false;\n results.add(resultItem);\n }\n // if empty ordering field is found, add a Java null as placeholder\n if (isFieldEmpty) {\n results.add(null);\n }\n expression.close();\n }\n FlworKey key = new FlworKey(results);\n List<FlworTuple> values = keyValuePairs.get(key); // all values for a single matching key are held in a list\n if (values == null) {\n values = new ArrayList<>();\n keyValuePairs.put(key, values);\n }\n values.add(inputTuple);\n }\n return keyValuePairs;\n }", "public void printStringsInLexicoOrder() {\n\t\t// ***** method code to be added in this class *****\n\t\t// now we just have a dummy method that prints a message.\n\n\t\tTreeNode node = root;\n\t\t\n\t\tprintStringsInLexicoOrder(node);\n\t}", "@Override\r\n\t\tpublic int compare(String arg0, String arg1) {\n\t\t\treturn arg0.compareTo(arg1);\r\n\t\t}", "public void topologicalSort() {\n\t\tboolean[] visited = new boolean[edges.length];\n\n\t\tfor (int i = 0; i < visited.length; i++) {\n\t\t\tif (visited[i] == false) {\n\t\t\t\tdfs(i, visited);\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\n Map<Integer, Character> cows = new HashMap<Integer, Character>();\n List<Edge> tree = new ArrayList<Edge>();\n\n Scanner in = new Scanner(System.in);\n int n = in.nextInt(), m = in.nextInt();\n String cowsStr = in.next();\n for (int i = 1; i <= cowsStr.length(); i++)\n cows.put(i, cowsStr.charAt(i - 1));\n for (int i = 0; i < n - 1; i++)\n tree.add(new Edge(in.nextInt(), in.nextInt()));\n Collections.sort(tree);\n\n System.out.println(cows);\n System.out.println(tree);\n\n for (int i = 0; i < m; i++) {\n int start = in.nextInt(), end = in.nextInt();\n char cow = in.next().charAt(0);\n in.nextLine();\n System.out.println(start + \", \" + end + \", \" + cow);\n\n boolean allGood = false;\n\n if (start == end) {\n allGood = cows.get(start) == cow;\n System.out.println(allGood);\n continue;\n }\n\n int index = indexOfEnd(tree, end);\n while (tree.get(index).a != start) {\n if (cows.get(tree.get(index).a) == cow || cows.get(tree.get(index).b) == cow) {\n allGood = allGood || true;\n break;\n }\n\n index = indexOfEnd(tree, tree.get(index).a);\n if (index == -1)\n break;\n System.out.println(\"current edge: \" + tree.get(index));\n }\n System.out.println(allGood);\n }\n }", "void orderNodes(Comparator<N> comparator);", "private static void compare(Graph g, String word1, String word2) {\n\t\n\t\tint m =0; int n =0;\n\t\twhile(m < word1.length() && n < word2.length()) {\n\t\t\n\t\t\tif(word1.charAt(m) != word2.charAt(n)) {\n\t\t\n\t\t\t\t// Add edge from m to n\n\t\t\t\tif(!g.isConnected(word1.charAt(m)-'a', word2.charAt(n) -'a')) {\n\t\t\t\t\tg.addEdge(word1.charAt(m)-'a', word2.charAt(n) -'a');\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tm++;n++;\n\t\t}\n\t}", "public static void main(String args[])\n {\n boolean debug = false; \n\n Scanner sc = new Scanner(System.in); \n ArrayList<Integer> arraylist = new ArrayList<Integer>();\n while (sc.hasNextInt()) \n {\n arraylist.add(sc.nextInt());\n }\n\n Tree<Integer> tree = new Tree<>(arraylist, debug);\n List<Integer> it = tree.sort(); \n \n for (int i = 0; i < it.size(); i++)\n {\n System.out.println(it.get(i));\n }\n }", "private void preOrderTraverse(Node<String> node, int depth,StringBuilder sb) {\n\t\t\t\tif(node!=null){\n\t\t\t\t\t\tsb.append(\" \"+node.toString());\n\t\t\t\t\tpreOrderTraverse(node.left, depth + 1, sb);\n\t\t\t\t\n\t\t\t\t\tpreOrderTraverse(node.right, depth + 1, sb);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "private PriorityQueue<Edge> _getKruskalTree(boolean input)\n{\n PriorityQueue<Edge> completeTree = new PriorityQueue<Edge>();\n for (int loop = 0;\n loop < this.nVerts;\n loop++\n ) {\n for (int innerLoop = 0;\n innerLoop < this.adjMat[loop].length;\n innerLoop++\n ) {\n /*\n * Once we identify a weighted edge, we find its position in the\n * minimum priority queue.\n */\n int edgeDistance = this.adjMat[loop][innerLoop];\n if (INFINITY == edgeDistance) {\n continue;\n }\n completeTree.add(new Edge(loop, innerLoop, edgeDistance));\n }\n }\n if (true == input) {\n return completeTree;\n }\n /*\n * Once we have the queue, we can display the tree and see how much it\n * weighs.\n * Now we make a set of vertices for UnionFind{}. This will help us to find\n * cycles.\n */\n UnionFind union = new UnionFind(this.nVerts);\n PriorityQueue<Edge> output = new PriorityQueue<Edge>();\n while (0 != completeTree.size()) {\n /*\n * We know that the completeTree will include each edge twice, so we can\n * skip the next item. It will be the same edge.\n */\n Edge nextEdge = completeTree.remove();\n if (union.find(nextEdge.srcVert) == union.find(nextEdge.destVert)) {\n continue;\n }\n union.union(nextEdge.srcVert, nextEdge.destVert);\n output.add(nextEdge);\n }\n return output;\n}", "@Override\r\n\tpublic int compareTo(String o) {\n\t\treturn nomeP.compareTo(o);\r\n\t}", "@Test\n public void whenAddElementToTreeThenIteratorReturnsSorted() {\n final List<Integer> resultList = Arrays.asList(4, 3, 6);\n final List<Integer> testList = new LinkedList<>();\n this.tree.add(4);\n this.tree.add(6);\n this.tree.add(3);\n\n Iterator<Integer> iterator = this.tree.iterator();\n testList.add(iterator.next());\n testList.add(iterator.next());\n testList.add(iterator.next());\n\n assertThat(testList, is(resultList));\n }", "public interface SortingSentence {\n\n SentenceElement whoIsWho (String applicant, boolean isStartSent);\n}", "protected abstract Comparator<T> getFallbackComparator();", "public void visit(OrderBy obj) {\n for (int i = 0; i < obj.getVariableCount(); i++) {\n SingleElementSymbol element = obj.getVariable(i);\n String name = visitor.namingContext.getElementName(element, false);\n if (name != null) {\n \t boolean needsAlias = true;\n \t \n \t Expression expr = SymbolMap.getExpression(element);\n \t \n \t if (!(expr instanceof SingleElementSymbol)) {\n \t expr = new ExpressionSymbol(element.getShortName(), expr);\n \t } else if (expr instanceof ElementSymbol) {\n \t needsAlias = needsAlias(name, (ElementSymbol)expr);\n \t } \n \t \n \t if (needsAlias) {\n \t element = new AliasSymbol(element.getShortName(), (SingleElementSymbol)expr);\n \t obj.getOrderByItems().get(i).setSymbol(element);\n \t }\n \t element.setOutputName(name);\n }\n \n visitNode(element);\n \n if (name != null && element instanceof ElementSymbol) {\n \t\telement.setOutputName(SingleElementSymbol.getShortName(element.getOutputName()));\n \t}\n }\n }", "private boolean areCorrectlyOrdered( int i0, int i1 )\n {\n int n = commonLength( i0, i1 );\n \tif( text[i0+n] == STOP ){\n \t // The sortest string is first, this is as it should be.\n \t return true;\n \t}\n \tif( text[i1+n] == STOP ){\n \t // The sortest string is last, this is not good.\n \t return false;\n \t}\n \treturn (text[i0+n]<text[i1+n]);\n }", "@Test public void testCompareTo() {\r\n new LinkedHashMap<Entry<String, ComparisonResult>, Entry<Word, Word>>() {\r\n private static final long serialVersionUID = -114525477689441361L; {\r\n put(new SimpleEntry<>(\"test(Test)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w1, w2));\r\n put(new SimpleEntry<>(\"Test(test)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w2, w1));\r\n put(new SimpleEntry<>(\"Test(Te/t)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w2, w5));\r\n put(new SimpleEntry<>(\"Te/t(Test)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w5, w2));\r\n put(new SimpleEntry<>(\"Text(Te/t)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w7, w5));\r\n put(new SimpleEntry<>(\"Te/t(Text)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w5, w7));\r\n put(new SimpleEntry<>(\"testing(test'ing)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w3, w4));\r\n put(new SimpleEntry<>(\"test'ing(testing)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w4, w3));\r\n put(new SimpleEntry<>(\"test(testing)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w1, w3));\r\n put(new SimpleEntry<>(\"testing(test)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w3, w1));\r\n put(new SimpleEntry<>(\"test(test)\", ComparisonResult.EQUAL_TO), new SimpleEntry<>(w1, w6));\r\n }}.forEach((k, v) -> {\r\n assertTrue(String.format(\"%1$s should be %2$s\", k.getKey(), k.getValue().toString()),\r\n v.getKey().compareTo(v.getValue()) == k.getValue());\r\n });\r\n }", "@Test\n\tvoid tesPreorder() {\n\t\tHeap<Integer, Integer> treap = createTreeHeap();\n\t\t//root, left, right\n\t\tassertEquals(\"[5, 4, 2, 1, 3]\", treap.preOrder());\n\t}", "@Override\n\t\t\t\t\tpublic int compare(Entry<Integer, String> o1, Entry<Integer, String> o2) {\n\t\t\t\t\t\treturn o1.getValue().compareTo(o2.getValue());\n\t\t\t\t\t}", "public String inOrderTraverse(){\r\n\r\n\t\t//Stack that keeps track of where we go\r\n\t\tStack<BinarySearchTree> traverseStack = new Stack<BinarySearchTree>();\r\n\t\t\r\n\t\t//This is where we want to start\r\n\t\tBinarySearchTree curr = this;\r\n\t\t\r\n\t\t//When true, the string is returned\r\n\t\tBoolean done = false;\r\n\t\t\r\n\t\t//The string to return\r\n\t\tString treeAsString = \"\";\r\n\t\t\r\n\t\t//INORDER: LEFT > ROOT > RIGHT\r\n\r\n\t\twhile(!done){\r\n\t\t\tif(curr != null){\r\n\t\t\t\t\r\n\t\t\t\t//We need to get left first push it onto the stack\r\n\t\t\t\ttraverseStack.push(curr);\r\n\r\n\t\t\t\t//Getting the left first\r\n\t\t\t\tcurr = curr.getLeftChild();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t//curr is null. We checked left.\r\n\t\t\t\tif(!traverseStack.isEmpty()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//pop the stack to get the item\r\n\t\t\t\t\tcurr = traverseStack.pop();\r\n\r\n\t\t\t\t\t//append the item\r\n\t\t\t\t\ttreeAsString += curr.toString() + \" \";\r\n\r\n\t\t\t\t\t//Check the right\r\n\t\t\t\t\tcurr = curr.getRightChild();\r\n\t\t\t\t}\r\n\t\t\t\t//curr was null, the stack was empty, we visited all\r\n\t\t\t\t//of the 'nodes'\r\n\t\t\t\telse{\r\n\t\t\t\t\tdone = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn treeAsString;\r\n\t}", "@Override\r\n \t\t\t\t\tpublic int compare(Token t1, Token t2) {\n \t\t\t\t\t\tif (t1.type == TokenType.SEG_END && t2.type == TokenType.TP) {\r\n \t\t\t\t\t\t\treturn -1;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\t// If a text part (from trailing plain text) appears after seg start, move it backwards before seg start\r\n \t\t\t\t\t\telse if (t1.type == TokenType.SEG_START && t2.type == TokenType.TP) {\r\n \t\t\t\t\t\t\treturn 1;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\t// Otherwise text parts and other type combinations are sorted by start position\r\n \t\t\t\t\t\telse {\r\n \t\t\t\t\t\t\tif (t1.textRange.start < t2.textRange.start) \r\n \t\t\t\t\t\t\t\treturn -1;\r\n \t\t\t\t\t\t\telse if (t1.textRange.start > t2.textRange.start) \r\n \t\t\t\t\t\t\t\treturn 1;\r\n \t\t\t\t\t\t\telse\r\n \t\t\t\t\t\t\t\treturn 0;\r\n \t\t\t\t\t\t}\t\t\t\t\r\n \t\t\t\t\t}", "@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}", "@Override\n\t\tpublic int compare(String o1, String o2) {\n\t\t\treturn o1.compareTo(o2);\n\t\t}", "public LinkedList ascendingOrder(){\r\n\r\n\t\t//Stack that keeps track of where we go\r\n\t\tStack<BinarySearchTree> traverseStack = new Stack<BinarySearchTree>();\r\n\t\t\r\n\t\t//This is where we want to start\r\n\t\tBinarySearchTree curr = this;\r\n\t\t\r\n\t\t//When true, the string is returned\r\n\t\tBoolean done = false;\r\n\t\t\r\n\t\t//The string to return\r\n\t\tLinkedList treeAsList = new LinkedList();\r\n\t\t\r\n\t\t//INORDER: LEFT > ROOT > RIGHT\r\n\r\n\t\twhile(!done){\r\n\t\t\tif(curr != null){\r\n\t\t\t\t\r\n\t\t\t\t//We need to get left first push it onto the stack\r\n\t\t\t\ttraverseStack.push(curr);\r\n\r\n\t\t\t\t//Getting the left first\r\n\t\t\t\tcurr = curr.getLeftChild();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t//curr is null. We checked left.\r\n\t\t\t\tif(!traverseStack.isEmpty()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//pop the stack to get the item\r\n\t\t\t\t\tcurr = traverseStack.pop();\r\n\r\n\t\t\t\t\t//append the item\r\n\t\t\t\t\ttreeAsList.add(curr);\r\n\r\n\t\t\t\t\t//Check the right\r\n\t\t\t\t\tcurr = curr.getRightChild();\r\n\t\t\t\t}\r\n\t\t\t\t//curr was null, the stack was empty, we visited all\r\n\t\t\t\t//of the 'nodes'\r\n\t\t\t\telse{\r\n\t\t\t\t\tdone = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn treeAsList;\r\n\t}", "public void levelOrder(){\n Iterator iter = iterator();\n while(iter.hasNext() == true) {\n System.out.println(iter.next());\n }\n }", "public void overrideCompareTo(String otherName){\n \n stringBuffer.append(TEXT_865);\n \n if (columns !=null) {\n for (IMetadataColumn column: columns) {\n \n stringBuffer.append(TEXT_866);\n stringBuffer.append(column.getLabel());\n stringBuffer.append(TEXT_867);\n stringBuffer.append(otherName);\n stringBuffer.append(TEXT_868);\n stringBuffer.append(column.getLabel());\n stringBuffer.append(TEXT_869);\n \n }\n }\n \n stringBuffer.append(TEXT_870);\n \n }" ]
[ "0.59149766", "0.56399024", "0.55688906", "0.54560167", "0.5412725", "0.5392336", "0.53653705", "0.53067994", "0.5305667", "0.5229914", "0.51821136", "0.51725096", "0.5136785", "0.5129733", "0.5127908", "0.5124719", "0.50744164", "0.5067785", "0.5051706", "0.5012421", "0.49907565", "0.49852413", "0.4959001", "0.49586007", "0.4951687", "0.49505144", "0.4944491", "0.49324092", "0.4922256", "0.49205527", "0.49159065", "0.490417", "0.48900634", "0.4881794", "0.48688036", "0.48539227", "0.48515812", "0.48495048", "0.4842186", "0.48339546", "0.4828336", "0.48249128", "0.48004442", "0.47927368", "0.47911555", "0.47877172", "0.47864416", "0.47863346", "0.47788516", "0.47753036", "0.4764363", "0.47484145", "0.4742386", "0.47396156", "0.47047475", "0.46969673", "0.46948874", "0.4694087", "0.46934864", "0.46915373", "0.46886748", "0.46880847", "0.46840855", "0.46821707", "0.46784598", "0.46776056", "0.46772838", "0.4676657", "0.4676339", "0.46753687", "0.46646023", "0.46615285", "0.46516833", "0.46455568", "0.4638998", "0.46387765", "0.46352643", "0.46351594", "0.46314102", "0.4630535", "0.46194196", "0.46105024", "0.46027172", "0.46025896", "0.45873904", "0.4586587", "0.4580237", "0.45800078", "0.457776", "0.45633805", "0.45515108", "0.4544775", "0.45350012", "0.45300534", "0.4529696", "0.45259136", "0.45250568", "0.45230114", "0.45166135", "0.451567" ]
0.45218277
98
In the constructor we initialise the logger but most importantly the address of this server. Please see the comments.
public ClusterManager() throws UnknownHostException { // We give each server a unique name because there can be several servers // started on the same machine. For example several Tomcats each with a war. In // this case the ip addresses will overlap. Ikube can also be started as stand alone // just in a Jvm(which is the same as a Tomcat essentially) also they will have the // same ip address this.ip = InetAddress.getLocalHost().getHostAddress(); this.address = ip + "." + System.nanoTime(); this.servers = new HashMap<String, Server>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LogGPPServer()\n\t{\n\t\tarqConfig = ArqConfigGPPServer.getInstance();\n\t\t\n\t\t//Define o nome e a porta do servidor q serao utilizados no LOG\n\t\thostName = arqConfig.getHostGPP() + \":\" + arqConfig.getPortaGPP();\n\n\t\ttry\n\t\t{\n\t\t\t// Liga o log4j\n\t\t\tthis.ligaLog4j();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Não foi possível instanciar logger\");\n\t\t}\n\t}", "public ServerInfo() {\n this.logger = null;\n }", "public Server() {\n print_addr();\n follow_updates();\n }", "public ServerConnection()\n {\n //Initializing of the variables used in the constructor\n this.hostAddress = \"http://localhost\";\n this.port = 8882;\n }", "protected ServerBase(int port, int maxConnections, ActivityLogger logger) {\r\n l = logger;\r\n connections = new ArrayList<>();\r\n \r\n try {\r\n l.logI(\"Init server with port \" + port\r\n + \" with \" + maxConnections + \" connections\");\r\n this.server = new ServerSocket (port, maxConnections); \r\n } catch (IOException ex) {\r\n l.logE(ex.toString());\r\n }\r\n }", "public DNSLog() {}", "public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}", "protected ServerConnectionDebugger() {\n\n }", "public Server() {\n\t\tinit(new Config());\n\t}", "public ServerConnecter() {\r\n\r\n\t}", "protected Server() {\n super(\"Ublu Server\");\n }", "public Configuration(String serverAddress) {\r\n\t\tthis.serverAddress = serverAddress;\r\n\t\tthis.serverPort = \"2586\";\r\n\t}", "public Client() {\n _host_name = DEFAULT_SERVER;\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }", "public WebServer ()\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t{\r\n\t\tthis.shost = DEF_HOST; \t\t\t\t\t\t\t\t\r\n\t\tthis.sPort = DEF_PORT; \t\t\t\t\t\t\t\t\r\n\t}", "public Server(){\n\t\ttry {\n\t\t\t// initialize the server socket with the specified port\n\t\t\tsetServerSocket(new ServerSocket(PORT));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO Exception while creating a server\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setupLoggingEndpoint() {\n HttpHandler handler = (httpExchange) -> {\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, serverLogsArray.toJSONString().length());\n OutputStream out = httpExchange.getResponseBody();\n out.write(serverLogsArray.toJSONString().getBytes());\n out.close();\n };\n this.endpointMap.put(this.loggingApiEndpoint, this.server.createContext(this.loggingApiEndpoint));\n this.setHandler(this.getLoggingApiEndpoint(), handler);\n System.out.println(\"Set handler for logging\");\n this.endpointVisitFrequency.put(this.getLoggingApiEndpoint(), 0);\n }", "public Server(int port, mainViewController viewController, LogViewController consoleViewController){\n isRunningOnCLI = false;\n this.viewController = viewController;\n this.port = port;\n this.consoleViewController = consoleViewController;\n viewController.serverStarting();\n log = new LoggingSystem(this.getClass().getCanonicalName(),consoleViewController);\n log.infoMessage(\"New server instance.\");\n try{\n this.serverSocket = new ServerSocket(port);\n //this.http = new PersonServlet();\n log.infoMessage(\"main.Server successfully initialised.\");\n clients = Collections.synchronizedList(new ArrayList<>());\n ServerOn = true;\n log.infoMessage(\"Connecting to datastore...\");\n //mainStore = new DataStore();\n jettyServer = new org.eclipse.jetty.server.Server(8080);\n jettyContextHandler = new ServletContextHandler(jettyServer, \"/\");\n jettyContextHandler.addServlet(servlets.PersonServlet.class, \"/person/*\");\n jettyContextHandler.addServlet(servlets.LoginServlet.class, \"/login/*\");\n jettyContextHandler.addServlet(servlets.HomeServlet.class, \"/home/*\");\n jettyContextHandler.addServlet(servlets.DashboardServlet.class, \"/dashboard/*\");\n jettyContextHandler.addServlet(servlets.UserServlet.class, \"/user/*\");\n jettyContextHandler.addServlet(servlets.JobServlet.class, \"/job/*\");\n jettyContextHandler.addServlet(servlets.AssetServlet.class, \"/assets/*\");\n jettyContextHandler.addServlet(servlets.UtilityServlet.class, \"/utilities/*\");\n jettyContextHandler.addServlet(servlets.EventServlet.class, \"/events/*\");\n //this.run();\n } catch (IOException e) {\n viewController.showAlert(\"Error initialising server\", e.getMessage());\n viewController.serverStopped();\n log.errorMessage(e.getMessage());\n }\n }", "public Server() throws IOException {\n try {\n this.serverSocket = new ServerSocket(this.port,100, InetAddress.getByName(host));\n } catch (UnknownHostException e) {\n System.out.println(\"Erreur lors de la construction du serveur (Hôte inconnu) - Server Constructor Error\");\n e.printStackTrace();\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "public Server() {\n\t\t\n\t\ttry {\n\t\t\tss= new ServerSocket(PORT);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace(); // Default\n\t\t}\n\t}", "public ViewServer(Address address) {\n super(address);\n }", "public GenLogServerConfig() {\n }", "public Configuration(String serverAddress, String serverPort) {\r\n\t\tthis.serverAddress = serverAddress;\r\n\t\tthis.serverPort = serverPort;\r\n\t}", "public Server() {}", "public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }", "public Server(){\r\n \r\n this.m_Clients = new TeilnehmerListe();\r\n this.m_Port = 7575;\r\n }", "public WebServer (String sHost, int port)\t\t\t\t\t\t\t\r\n\t{\r\n\t\tthis.shost = sHost; \t\t\t\t\t\t\t\t\t\t\r\n\t\tthis.sPort = port; \t\t\t\t\t\t\t\t\t\t\r\n\t}", "public Server() throws IOException{\n\t\tsuper();\n\t\tthis.serversocket = new java.net.ServerSocket(DEFAULTPORT);\n\t\tif (DEBUG){\n\t\t\tSystem.out.println(\"Server socket created:\" + this.serversocket.getLocalPort());\n\t\t\tclient_list.add(String.valueOf(this.serversocket.getLocalPort()));\n\t\t}\n\t}", "private Server()\n\t{\n\t}", "public ServicioLogger() {\n }", "public static void set(ServerLoggingConfiguration config) {\r\n LogImplServer.config = config;\r\n }", "public Server() {\n\t\tsession = new WelcomeSession();\n\t\tmPort = DEFAULT_PORT;\n\t\texecutor = Executors.newCachedThreadPool();\n\t}", "public Server() throws IOException {\n System.out.println(\"\\t Server Started \\n\");\n }", "public LoggingServerEventHandler(final NHttpServerEventHandler handler) {\n super();\n if (handler == null) {\n throw new IllegalArgumentException(\"HTTP service handler must not be null\");\n }\n this.handler = handler;\n this.log = LogFactory.getLog(handler.getClass());\n }", "@Override\r\n \tpublic void initialize() {\n \t\tThreadRenamingRunnable.setThreadNameDeterminer(ThreadNameDeterminer.CURRENT);\r\n \r\n \t\tInetSocketAddress address;\r\n \r\n \t\tif (m_host == null) {\r\n \t\t\taddress = new InetSocketAddress(m_port);\r\n \t\t} else {\r\n \t\t\taddress = new InetSocketAddress(m_host, m_port);\r\n \t\t}\r\n \r\n \t\tm_queue = new LinkedBlockingQueue<ChannelBuffer>(m_queueSize);\r\n \r\n \t\tExecutorService bossExecutor = Threads.forPool().getCachedThreadPool(\"Cat-TcpSocketReceiver-Boss-\" + address);\r\n \t\tExecutorService workerExecutor = Threads.forPool().getCachedThreadPool(\"Cat-TcpSocketReceiver-Worker\");\r\n \t\tChannelFactory factory = new NioServerSocketChannelFactory(bossExecutor, workerExecutor);\r\n \t\tServerBootstrap bootstrap = new ServerBootstrap(factory);\r\n \r\n \t\tbootstrap.setPipelineFactory(new ChannelPipelineFactory() {\r\n \t\t\tpublic ChannelPipeline getPipeline() {\r\n \t\t\t\treturn Channels.pipeline(new MyDecoder(), new MyHandler());\r\n \t\t\t}\r\n \t\t});\r\n \r\n \t\tbootstrap.setOption(\"child.tcpNoDelay\", true);\r\n \t\tbootstrap.setOption(\"child.keepAlive\", true);\r\n \t\tbootstrap.bind(address);\r\n \r\n \t\tm_logger.info(\"CAT server started at \" + address);\r\n \t\tm_factory = factory;\r\n \t}", "public Server() {\n try {\n welcomeSocket = new ServerSocket(PORT);\n System.out.println(\"Server listening on \" + PORT);\n } catch (IOException e) {\n System.out.println(\"Error creating welcome socket. Is this socket available?\");\n }\n }", "public LoggerProxy(org.jboss.logging.Logger logger)\n/* */ {\n/* 23 */ this.logger = logger;\n/* */ }", "public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }", "public CAMPServer(String name) {\n\tsuper(name, true);\n\tlogger = LogManager.getLogger(\"CAMP\");\t\n }", "public WebServer (int port)\t\t\t\t\t\t\t\t\t\t\t\r\n\t{\r\n\t\tthis.shost = DEF_HOST; \t\t\t\t\t\t\t\t\r\n\t\tthis.sPort = port; \t\t\t\t\t\t\t\t\t\t\r\n\t}", "public InitialValuesConnectionCenter() \n\t{\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(PORT);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException ServerConnectionCenter.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}", "public KVServerHandler(int port, KVServer managerServer){\n this.port = port;\n master = managerServer;\n aliveinstancethreads = new Vector<Thread>();\n aliveInstances = new Vector<KVServerInstance>();\n isRunning = false;\n kv_out = managerServer.getLogger();\n }", "public Server(int port)\r\n\t\t{\r\n log(\"Initialising port \" + port);\r\n\r\n\t\t// Set the port\r\n\t\tthis.port = port;\r\n\r\n // Create the server socket\r\n createServerSocket();\r\n \t}", "public ServerA(){}", "public WebServer()\n {\n if (!Variables.exists(\"w_DebugLog\"))\n Variables.setVariable(\"w_DebugLog\", true);\n\n if (!Variables.exists(\"w_Port\"))\n Variables.setVariable(\"w_Port\", 80);\n\n if (!Variables.exists(\"w_NetworkBufferSize\"))\n Variables.setVariable(\"w_NetworkBufferSize\", 2048);\n\n PORT = Variables.getInt(\"w_Port\");\n DEBUG = Variables.getBoolean(\"w_DebugLog\");\n BUFFER_SIZE = Variables.getInt(\"w_NetworkBufferSize\");\n }", "public ServerService(){\n\t\tlogger.info(\"Initilizing the ServerService\");\n\t\tservers.put(1001, new Server(1001, \"Test Server1\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1002, new Server(1002, \"Test Server2\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1003, new Server(1003, \"Test Server3\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1004, new Server(1004, \"Test Server4\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tlogger.info(\"Initilizing the ServerService Done\");\n\t}", "protected void serverStarted()\n {\n // System.out.println\n // (\"Server listening for connections on port \" + getPort());\n }", "public Cinit(String server_ip) {\n this.server_ip=server_ip;\n start();\n }", "public ServerMain( int port )\r\n\t{\r\n\t\tthis.port = port;\r\n\t\tserver = new Server( this.port );\r\n\t}", "protected void serverStarted()\n {\n System.out.println(\"Server listening for connections on port \" + getPort());\n }", "public Server() throws Exception {\r\n\t}", "public ServerSide(Config config, InetAddress inetAddress, int port) {\n super(config);\n this.inetAddress = inetAddress;\n this.port = port;\n }", "public LogPoster() {\n\t\t\n\t}", "public Server() {\r\n this(0);\r\n hashtable = new Hashtable<String,String>();\r\n }", "public Server() throws IOException\n {\n socket = new ServerSocket(port);\n }", "@Override\n public void initialize(ServerConfiguration config) {\n }", "public Slf4jLogService() {\n this(System.getProperties());\n }", "public ServletLogChute()\r\n {\r\n }", "public Server(int port) {\r\n \r\n this.m_Port = port;\r\n this.m_Clients = new TeilnehmerListe();\r\n }", "private void initServer() throws IOException {\r\n \t\tLogger.logMessage(\"Binding Server to \" + this.serverIpAddress + \":\" + this.serverPort);\r\n \r\n \t\tthis.isAlive = true;\r\n \t\tthis.serverSocket = new ServerSocket(this.serverPort, this.backLog, this.serverIpAddress);\r\n \t\tthis.dataLayer = DataLayerFactory.getDataLayer();\r\n \r\n \t\t// Generate the grouplist\r\n \t\tCollection<String> dbGroupList = this.dataLayer.getGroups();\r\n \r\n \t\tfor (String group : dbGroupList) {\r\n \t\t\tthis.groupList.addGroup(group);\r\n \t\t}\r\n \r\n \t\tLogger.logMessage(\"Server successfuly bound!\");\r\n \t}", "public ServerWriter(ServerConnection connection) {\n super(connection);\n }", "public EmployeeServlet()\n {\n logger = Logger.getLogger(getClass().getName());\n }", "public Server(int port, IDBConnector dbConnector) \n {\n super(port);\n Server.dbConnector = dbConnector;\n }", "protected void serverStarted()\r\n {\r\n System.out.println\r\n (\"Server listening for connections on port \" + getPort());\r\n }", "public ConnectionManager() {\r\n\t\tthis(DEFAULT_PORT, true, true);\r\n\t}", "public LocalClient() {\n\t\tsuper(\"SERVER\", Arrays.asList(new String[] {\"*\"}), null, null);\n\t\tinputThread = new Thread(this);\n\t\tinputThread.start();\n\t}", "public Logger (){}", "protected ClassServer(int aPort) throws IOException{\n this(aPort, null);\n }", "public ChatServer() throws Exception {\n \n // Set port\n port = Integer.parseInt(config.getConfig(\"chatPort\"));\n \n System.out.println(\"Chat server running on port \" + port);\n \n }", "public IPConnection() {\n\t\tbrickd = new BrickDaemon(\"2\", this);\n\t}", "public Client(String h, int p) {\n\t\thost = h;\n\t\tport = p;\n\t}", "public ServerDef() {}", "@Override\n public void init() throws Exception {\n // allocate a new logger\n Logger logger = Logger.getLogger(\"processinfo\");\n\n // add some extra output channels, using mask bit 6\n try {\n outputStream = new FileOutputStream(filename);\n logger.addOutput(new PrintWriter(outputStream), new BitMask(MASK.APP));\n } catch (Exception e) {\n LoggerFactory.getLogger(TcpdumpReporter.class).error(e.getMessage());\n }\n\n }", "public ChatRoomServer(int portNumber){\n this.ClientPort = portNumber;\n }", "public synchronized void initListenInfo(@Nonnull String address, int port) {\n if (listenAddress != null) {\n throw new IllegalStateException(\"Already initialized\");\n }\n this.listenAddress = address;\n this.listenPort = port;\n }", "public ServerProxy(String host, int port) {\n\t\tthis.setHost(host);\n\t\tthis.setPort(port);\n\t\tthis.cookieManager = new java.net.CookieManager();\n\t}", "private ExtentLogger() {}", "public Logger() {\n map = new LinkedHashMap<>();\n }", "private ServerConnectionParser() {\n }", "@Override\n\tpublic void initLogger() {\n\t\t\n\t}", "void go(Server srv, Socket s, Logger logger) {\n this.srv = srv; \n this.s = s;\n this.logger = logger;\n logger.setClientIpAddress(s.getInetAddress().getHostAddress());\n \n synchronized (this) {\n notify();\n }\n }", "public OOXXServer(){\n\t\ttry\n\t\t{\n\t\t\tserver = new ServerSocket(port);\n\t\t\t\n\t\t}\n\t\tcatch(java.io.IOException e)\n\t\t{\n\t\t}\n\t}", "public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }", "public MyLogger () {}", "protected void initLogger() {\n initLogger(\"DEBUG\");\n }", "public MockServerClient(String host, int port) {\n this(host, port, \"\");\n }", "public Server(int port) throws IOException{\n\t\tsuper();\n\t\tthis.serversocket= new java.net.ServerSocket(port);\n\t\t\n\t\tif (DEBUG){\n\t\t\tSystem.out.println(\"Server socket created:\" + this.serversocket.getLocalPort());\n\t\t\tclient_list.add(String.valueOf(this.serversocket.getLocalPort()));\n\t\t}\n\t}", "@Override\n public void initialize() {\n\n try {\n /* Bring up the API server */\n logger.info(\"loading API server\");\n apiServer.start();\n logger.info(\"API server started. Say Hello!\");\n /* Bring up the Dashboard server */\n logger.info(\"Loading Dashboard Server\");\n if (dashboardServer.isStopped()) { // it may have been started when Flux is run in COMBINED mode\n dashboardServer.start();\n }\n logger.info(\"Dashboard server has started. Say Hello!\");\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public SayHelloServiceImpl() \n { \n try \n {\n this.hostname = InetAddress.getLocalHost().getHostName();\n } \n catch (UnknownHostException e) \n {\n this.hostname = \"Localhost\";\n }\n }", "public ClientRouter(String ipAddress, int port) {\n try {\n this.socket = new SocketWrapper(new Socket(ipAddress, port));\n this.parser = new JsonParser();\n this.totalHumanPlayers = 0;\n start();\n } catch (IOException e) {\n log.error(\"Could not obtain connection to host\", e);\n System.exit(-1);\n }\n }", "public void init(String pName) {\n logger = Logger.getLogger(pName);\n mConsoleHandler = new ConsoleHandler();\n mNameLogger = pName;\n File mLogDir = new File(\"./messagesLog\");\n if (!mLogDir.exists()) {\n mLogDir.mkdir();\n }\n LogManager.getLogManager().reset();\n }", "public Logger(File serverRoot, String errorLog)\n {\n this.errorLog = new File(serverRoot, errorLog);\n \n if(this.errorLog.exists() && this.errorLog.isDirectory())\n throw new RuntimeException(\"errorLog is invalid.\");\n }", "public Server() {\n initComponents();\n }", "public Server() {\n initComponents();\n }", "public static void initCommunicationServerThread(ProjectType project){\r\n try{\r\n serverSocket = new ServerSocket(Attributes.PROFILING_PORT, 2, InetAddress.getLocalHost());\r\n System.out.println(\"Server - ServerSocket created on port: \" + serverSocket.getLocalPort());\r\n }catch (UnknownHostException uhe){\r\n uhe.printStackTrace();\r\n //TODO - log this stuff properly\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log this stuff properly\r\n }\r\n new CommunicationServerThread(project);\r\n }", "public SocketServer() {\n \n super();\n start();\n\n }", "public EchoServlet()\n {\n super();\n\n // Create a logging instance\n this.log = Logger.getLogger(EchoServlet.class.getName());\n\n log.info(\"Constructed new EchoServlet\");\n }", "public ServerNMS() {\n\t\tclients = new LinkedList<PrintWriter>();\n\t}", "private UDPSender(final URI serverURI) {\n\t\tsuper(serverURI);\n\t\t\n\t\t\t\t\n\t\t//InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory());\n\t\tchannelStateListener.addChannelStateAware(this);\n\t\tloggingHandler = new LoggingHandler(InternalLogLevel.ERROR, true);\t\t\n\t\tchannelFactory = new NioDatagramChannelFactory(workerPool);\n\t\tbstrap = new ConnectionlessBootstrap(channelFactory);\n\t\tbstrap.setPipelineFactory(this);\n\t\tbstrap.setOption(\"broadcast\", true);\n\t\tbstrap.setOption(\"localAddress\", new InetSocketAddress(0));\n\t\tbstrap.setOption(\"remoteAddress\", new InetSocketAddress(serverURI.getHost(), serverURI.getPort()));\n\t\tbstrap.setOption(\"receiveBufferSizePredictorFactory\", new FixedReceiveBufferSizePredictorFactory(2048));\n\t\t\n\t\tlisteningSocketAddress = new InetSocketAddress(\"0.0.0.0\", 0);\n\t\t//listeningSocketAddress = new InetSocketAddress(\"127.0.0.1\", 0);\n\t\t\t\n\t\t//senderChannel = (NioDatagramChannel) channelFactory.newChannel(getPipeline());\n\t\tsenderChannel = bstrap.bind();\n\t\tcloseGroup.add(senderChannel);\n\t\tlog(\"Listening on [\" + senderChannel.getLocalAddress()+ \"]\");\t\t\t\t\t\n\t\t\n\t\t\n//\t\tsenderChannel.bind().addListener(new ChannelFutureListener() {\n//\t\t\tpublic void operationComplete(ChannelFuture f) throws Exception {\n//\t\t\t\tif(f.isSuccess()) {\n//\t\t\t\t\tlog(\"Listening on [\" + f.getChannel().getLocalAddress()+ \"]\");\t\t\t\t\t\n//\t\t\t\t} else {\n//\t\t\t\t\tlog(\"Failed to start listener. Stack trace follows\");\n//\t\t\t\t\tf.getCause().printStackTrace(System.err);\n//\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t});\n\t\tsenderChannel.getConfig().setBufferFactory(new DirectChannelBufferFactory());\n//\t\tsenderChannel.connect(socketAddress).addListener(new ChannelFutureListener() {\n//\t\t\t@Override\n//\t\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n//\t\t\t\tconnected.set(true);\t\n//\t\t\t\tsentryState.setState(SentryState.CALLBACK);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\t//socketAddress = new InetSocketAddress(\"239.192.74.66\", 25826);\n\t\tsendHello();\n\t}", "public GameServer(int portNum)\n\t{\n\t\tport = portNum;\n\t}", "Client(String host, int port) {\n super(host, port);\n }" ]
[ "0.6957622", "0.6915909", "0.6887854", "0.6885197", "0.650491", "0.6428421", "0.64266956", "0.6385103", "0.6382342", "0.631993", "0.62691844", "0.6249449", "0.6241781", "0.6169787", "0.61417186", "0.6120426", "0.61188936", "0.6085467", "0.60702395", "0.6062826", "0.605712", "0.6042021", "0.60142726", "0.5987187", "0.59870756", "0.59861296", "0.5979495", "0.5965949", "0.5957762", "0.59496343", "0.59393764", "0.5927751", "0.59153855", "0.58942455", "0.5893247", "0.5889617", "0.5871043", "0.5836223", "0.5825028", "0.5816548", "0.5808432", "0.5804893", "0.5804268", "0.57791454", "0.5774371", "0.5770335", "0.5767276", "0.57560873", "0.57299805", "0.57269424", "0.5723171", "0.57175523", "0.57151514", "0.5697232", "0.56810224", "0.5680806", "0.5679475", "0.56720644", "0.56720555", "0.5668329", "0.5660152", "0.56585073", "0.56584173", "0.5657732", "0.56558263", "0.5652457", "0.5650891", "0.5641069", "0.563616", "0.5635949", "0.56322795", "0.5623976", "0.5617677", "0.561765", "0.5613494", "0.5606709", "0.55939984", "0.55935234", "0.55767006", "0.55764395", "0.5573873", "0.556848", "0.5565182", "0.5564507", "0.5559228", "0.55567366", "0.55546904", "0.5553572", "0.5552578", "0.5525141", "0.552365", "0.5518127", "0.5514834", "0.5514834", "0.5513851", "0.55057436", "0.5490645", "0.54905224", "0.5486398", "0.5483408", "0.54717296" ]
0.0
-1
It is the complete flow of showing the navigations
@Test public void completDataTes() throws Exception{ mActivity.requestToNetwork(); Thread.sleep(1000); onView(withId(R.id.graph_menu)).perform(click()); onView(withId(R.id.graph_menu)).perform(click()); Thread.sleep(1000); onView(withIndex(withId(R.id.image_item_clicks), 2)).perform(click()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void navigation() {\n }", "@Override\r\n\tpublic void navigate() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void testRes_Navigation(){\n\t\tinnerFunction(childrenButton, childrenList.class);\t\t\n\t\tinnerFunction(locationButton, locationList.class);\n\t\t\n\t\tsolo.clickOnView(logOutButton);\n\t\tsolo.sleep(500);\n\t\tsolo.assertCurrentActivity(\"ERR - Could not jump to login screen.\", Login.class);\n\n\t}", "public void routetopage() {\n this.setVisible(true);\n }", "@Override\n\tpublic void onNaviViewLoaded() {\n\t\t\n\t}", "@Override protected void startup() {\n show(new FrontView());\n //show(new RestaurantManagementView(this));\n }", "protected String getPageNavigation()\n {\n return \"\";\n }", "private void initNavigation() {\n List<String> healthRoles = Arrays.asList(Roles.ROLE_USER.name(), Roles.ROLE_ADMIN.name());\n \n // static hack to speed up development for other places\n GNode<NavigationElement> root = \n new GNode<NavigationElement>(new NavigationElement(HomePage.class, \"Home.label\", EMPTY_LIST, ComponentPosition.LEFT))\n .addChild(new GNode<NavigationElement>(\n new NavigationElement(Lightbox2Page.class, \"WicketStuff.label\", EMPTY_LIST, ComponentPosition.LEFT), Arrays.asList(\n new GNode<NavigationElement>(new NavigationElement(Lightbox2Page.class, \"Lightbox2.label\", EMPTY_LIST, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(Gmap3Page.class, \"Gmap3.label\", EMPTY_LIST, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(InmethodGridPage.class, \"InmethodGrid.label\", EMPTY_LIST, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(EditableGridPage.class, \"EditableGrid.label\", EMPTY_LIST, ComponentPosition.LEFT))\n )\n )\n )\n .addChild(new GNode<NavigationElement>(\n new NavigationElement(ManageMeasurementsPage.class, \"Health.label\", healthRoles, ComponentPosition.LEFT), Arrays.asList(\n new GNode<NavigationElement>(new NavigationElement(PlotWeightPage.class, \"Wheight.label\", healthRoles, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(PlotFatPage.class, \"Fat.label\", healthRoles, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(PlotWaterPage.class, \"Water.label\", healthRoles, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(BmiWikiPage.class, \"BMI.label\", healthRoles, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(BackupRestorePage.class, \"Backup/Restore.label\", healthRoles, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(HealthSettingsPage.class, \"Settings.label\", Arrays.asList(Roles.ROLE_ADMIN.name()), ComponentPosition.LEFT))\n )\n )\n )\n .addChild(new GNode<NavigationElement>(\n new NavigationElement(AdminPage.class, \"Admin.label\", Arrays.asList(Roles.ROLE_ADMIN.name()), ComponentPosition.RIGHT), Arrays.asList(\n new GNode<NavigationElement>(new NavigationElement(ManageUsersPage.class, \"Users.label\", Arrays.asList(Roles.ROLE_ADMIN.name()), ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(ManageRolesPage.class, \"Roles.label\", Arrays.asList(Roles.ROLE_ADMIN.name()), ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(BackupPage.class, \"Backup.label\", Arrays.asList(Roles.ROLE_ADMIN.name()), ComponentPosition.LEFT))\n )\n )\n )\n .addChild(new GNode<NavigationElement>(new NavigationElement(UserSettingsPage.class, \"Settings.label\", Arrays.asList(Roles.ROLE_USER.name(), Roles.ROLE_ADMIN.name()), ComponentPosition.RIGHT))\n );\n tree = new GTree<NavigationElement>(root);\n }", "@Override\r\n\tpublic void navigate( UserFields fields ) {\n\t\t\r\n\t}", "@Override\n\tpublic void setNavigationMode(int mode) {\n\t\t\n\t}", "NavigationFlow createNavigationFlow();", "public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenListActivity::LoadPage ! Nothing to do anymore here :)\");\n\t}", "public void displayHome() {\n\t\tclearBackStack();\n\t\tselectItemById(KestrelWeatherDrawerFactory.MAP_OVERVIEW, getLeftDrawerList());\n\t}", "private String navigateAfterLoginAttemp()\r\n {\r\n Identity identity = this.getIdentity();\r\n\r\n if (identity == null) {\r\n return \"/\";\r\n }\r\n if (identity instanceof Pilot) {\r\n return \"/pilot/index.xhtml\";\r\n }\r\n if (identity instanceof General) {\r\n return \"/general/index.xhtml\";\r\n }\r\n if (identity instanceof SystemAdministrator) {\r\n return \"/admin/index.xhtml\";\r\n }\r\n throw new IllegalStateException(\"Identita \" + identity\r\n + \" nie je ziadneho z typov, pre ktory dokazem 'navigovat'!\");\r\n }", "private void buildLeftHandNavNar() {\n\t\tsetCurrentSelectedDefinitionObjId(null);\n\t\tsetCurrentSelectedParamerterObjId(null);\n\t\tsetCurrentSelectedFunctionObjId(null);\n\t\tgetFunctionArgumentList().clear();\n\t\tgetFunctionArgNameMap().clear();\n\t\trightHandNavPanel.clear();\n\t\tNavPills navPills = new NavPills();\n\t\tnavPills.setStacked(true);\n\t\t\n\t\tgeneralInformation = new AnchorListItem();\n\t\t//includeLibrary = new AnchorListItem();\n\t\tparameterLibrary = new AnchorListItem();\n\t\tdefinitionLibrary = new AnchorListItem();\n\t\tfunctionLibrary = new AnchorListItem();\n\t\tviewCQL = new AnchorListItem();\n\t\t\n\t\tgeneralInformation.setIcon(IconType.INFO);\n\t\tgeneralInformation.setText(\"General Information\");\n\t\tgeneralInformation.setTitle(\"General Information\");\n\t\tgeneralInformation.setActive(true);\n\t\t\n\t\t//includeLibrary.setIcon(IconType.INFO);\n\t\t//includeLibrary.setText(\"Inlude library\");\n\t\t//includeLibrary.setTitle(\"Inlude library\");\n\t\t//includeLibrary.setActive(true);\n\t\t\n\t\tparameterLibrary.setIcon(IconType.PENCIL);\n\t\tparameterLibrary.setTitle(\"Parameter\");\n\t\tparamBadge.setText(\"\" + viewParameterList.size());\n\t\tAnchor paramAnchor = (Anchor) (parameterLibrary.getWidget(0));\n\t\t// Double Click causing issues.So Event is not propogated\n\t\tparamAnchor.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t});\n\t\tparamLabel.setStyleName(\"transparentLabel\");\n\t\tparamAnchor.add(paramLabel);\n\t\tparamBadge.setPull(Pull.RIGHT);\n\t\t//paramBadge.setMarginLeft(45);\n\t\tparamAnchor.add(paramBadge);\n\t\tparamAnchor.setDataParent(\"#navGroup\");\n\t\tparamAnchor.setDataToggle(Toggle.COLLAPSE);\n\t\tparameterLibrary.setHref(\"#collapseParameter\");\n\t\t\n\t\tparameterLibrary.add(paramCollapse);\n\t\t\n\t\tdefinitionLibrary.setIcon(IconType.PENCIL);\n\t\tdefinitionLibrary.setTitle(\"Define\");\n\t\tdefineBadge.setText(\"\" + viewDefinitions.size());\n\t\tAnchor defineAnchor = (Anchor) (definitionLibrary.getWidget(0));\n\t\t// Double Click causing issues.So Event is not propogated\n\t\tdefineAnchor.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t});\n\t\tdefineLabel.setStyleName(\"transparentLabel\");\n\t\tdefineAnchor.add(defineLabel);\n\t\tdefineBadge.setPull(Pull.RIGHT);\n\t\t//defineBadge.setMarginLeft(52);\n\t\tdefineAnchor.add(defineBadge);\n\t\tdefineAnchor.setDataParent(\"#navGroup\");\n\t\tdefinitionLibrary.setDataToggle(Toggle.COLLAPSE);\n\t\tdefinitionLibrary.setHref(\"#collapseDefine\");\n\t\t\n\t\tdefinitionLibrary.add(defineCollapse);\n\t\t\n\t\tfunctionLibrary.setIcon(IconType.PENCIL);\n\t\t/* functionLibrary.setText(\"Functions\"); */\n\t\tfunctionLibrary.setTitle(\"Functions\");\n\t\t\n\t\tfunctionBadge.setText(\"\" + viewFunctions.size());\n\t\tAnchor funcAnchor = (Anchor) (functionLibrary.getWidget(0));\n\t\t// Double Click causing issues.So Event is not propogated\n\t\tfuncAnchor.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t});\n\t\tfunctionLibLabel.setStyleName(\"transparentLabel\");\n\t\tfuncAnchor.add(functionLibLabel);\n\t\tfunctionBadge.setPull(Pull.RIGHT);\n\t\t\n\t\t//functionBadge.setMarginLeft(57);\n\t\tfuncAnchor.add(functionBadge);\n\t\tfuncAnchor.setDataParent(\"#navGroup\");\n\t\tfunctionLibrary.setDataToggle(Toggle.COLLAPSE);\n\t\tfunctionLibrary.setHref(\"#collapseFunction\");\n\t\t\n\t\tfunctionLibrary.add(functionCollapse);\n\t\t\n\t\tviewCQL.setIcon(IconType.BOOK);\n\t\tviewCQL.setText(\"View CQL\");\n\t\tviewCQL.setTitle(\"View CQL\");\n\t\t\n\t\tnavPills.add(generalInformation);\n\t\t//snavPills.add(includeLibrary);\n\t\tnavPills.add(parameterLibrary);\n\t\t\n\t\tnavPills.add(definitionLibrary);\n\t\tnavPills.add(functionLibrary);\n\t\tnavPills.add(viewCQL);\n\t\t\n\t\tnavPills.setWidth(\"200px\");\n\t\t\n\t\tmessagePanel.add(successMessageAlert);\n\t\tmessagePanel.add(warningMessageAlert);\n\t\tmessagePanel.add(errorMessageAlert);\n\t\tmessagePanel.add(warningConfirmationMessageAlert);\n\t\tmessagePanel.add(globalWarningConfirmationMessageAlert);\n\t\tmessagePanel.add(deleteConfirmationMessgeAlert);\n\t\t\n\t\t// rightHandNavPanel.add(messagePanel);\n\t\trightHandNavPanel.add(navPills);\n\t}", "@FXML\n public void backPage() {\n LibrarySystem.setScene(new ReaderLogIn(readerlist, booklist));\n }", "public void forceNavigation(String destination)\r\n \t{\n \t\tif (!this.currentState.isAuthenticated())\r\n \t\t{\r\n \t\t\tdestination = ChooseCasePilot.generateNavigationId(ChooseCasePilot.PageId.login);\r\n \t\t}\r\n \r\n \t\tcurrentState.setCurrentView(destination);\r\n \r\n \t\tString view = this.findViewId(destination);\r\n \t\tString page = this.findPageId(destination);\r\n \r\n \t\t// Get the right pilot to get the right content to show next.\r\n \t\tPilot currentPilot = this.getPilot(view);\r\n \t\tif (currentPilot == null)\r\n \t\t{\r\n \t\t\tthis.swapContent(this.show404Error());\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\t// Set the current mode to determine whether the user has privelages to\r\n \t\t// access the page they want to go to.\r\n \t\tcurrentPilot.determineAccessRights(page, this.currentState);\r\n \r\n \t\tapplyCloseStepPolicy(currentPilot, view, page);\r\n \r\n \t}", "public void show() {\r\n\t\tshowMembers();\r\n\t\tshowFacilities();\r\n\t}", "public static void doNavigate ( RunData data )\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\tif (state.getAttribute (STATE_SELECT_ALL_FLAG)!=null && state.getAttribute (STATE_SELECT_ALL_FLAG).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\tstate.setAttribute (STATE_SELECT_ALL_FLAG, Boolean.FALSE.toString());\n\t\t}\n\n\t\tif (state.getAttribute (STATE_EXPAND_ALL_FLAG)!=null && state.getAttribute (STATE_EXPAND_ALL_FLAG).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\tstate.setAttribute (STATE_EXPAND_ALL_FLAG, Boolean.FALSE.toString());\n\t\t}\n\n\t\t// save the current selections\n\t\tSet selectedSet = new TreeSet();\n\t\tString[] selectedItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif(selectedItems != null)\n\t\t{\n\t\t\tselectedSet.addAll(Arrays.asList(selectedItems));\n\t\t}\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, selectedSet);\n\n\t\tString collectionId = data.getParameters().getString (\"collectionId\");\n\t\tString navRoot = data.getParameters().getString(\"navRoot\");\n\t\tstate.setAttribute(STATE_NAVIGATION_ROOT, navRoot);\n\n\t\t// the exception message\n\n\t\ttry\n\t\t{\n\t\t\tContentHostingService.checkCollection(collectionId);\n\t\t}\n\t\tcatch(PermissionException e)\n\t\t{\n\t\t\taddAlert(state, \" \" + rb.getString(\"notpermis3\") + \" \" );\n\t\t}\n\t\tcatch (IdUnusedException e)\n\t\t{\n\t\t\taddAlert(state, \" \" + rb.getString(\"notexist2\") + \" \");\n\t\t}\n\t\tcatch (TypeException e)\n\t\t{\n\t\t\taddAlert(state,\" \" + rb.getString(\"notexist2\") + \" \");\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tString oldCollectionId = (String) state.getAttribute(STATE_COLLECTION_ID);\n\t\t\t// update this folder id in the set to be event-observed\n\t\t\tremoveObservingPattern(oldCollectionId, state);\n\t\t\taddObservingPattern(collectionId, state);\n\n\t\t\tstate.setAttribute(STATE_COLLECTION_ID, collectionId);\n\t\t\tstate.setAttribute(STATE_EXPANDED_COLLECTIONS, new TreeSet());\n\t\t}\n\n\t}", "public void showMenu() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\t1. Show vertices\");\n\t\tSystem.out.println(\"\\t2. Show adjacent vertices\");\n\t\tSystem.out.println(\"\\t3. Get vertex count\");\n\t\tSystem.out.println(\"\\t4. Get edge count\");\n\t\tSystem.out.println(\"\\t5. Add vertex\");\n\t\tSystem.out.println(\"\\t6. Add edge\");\n\t\tSystem.out.println(\"\\t7. Remove vertex\");\n\t\tSystem.out.println(\"\\t8. Remove edge\");\n\t\tSystem.out.println(\"\\t9. Check connectivity\");\n\t\tSystem.out.println(\"\\t0. Check adjacency\");\n\t\tSystem.out.println(\"\\tTRAVERSAL ALGORITHMS\");\n\t\tSystem.out.println(\"\\t11. Depth-first traversal\");\n\t\tSystem.out.println(\"\\t12. Breadth-first traversal\");\n\t\t\n\t\tSystem.out.println(\"\\tINPUT -1 TO EXIT\");\n\t\tSystem.out.println();\n\t}", "@FXML private void transitionView(ActionEvent event) {\n\t\t// id button caller\n\t\tString btn = ((Button) event.getSource()).getId();\n\t\tNavigationController.PREVIOUS = NavigationController.STARTMENU;\n\t\t// send load request\n\t\tif (btn.equals(\"newgame\"))\n\t\t\tNavigationController.loadView(NavigationController.GAMECREATION);\n\t\tif (btn.equals(\"loadgame\"))\n\t\t\tNavigationController.loadView(NavigationController.SAVELOAD);\n\n\t\t// if this spot is reached: do nothing\n\t}", "@Override\n public void onInitNaviSuccess() {\n\n }", "@Override\n\tpublic void goToUiCobrador() {\n\t\tif(uiHomeCobrador!=null){\n\t\t\tuiHomeCobrador.getHeader().getLblTitulo().setText(constants.cobrador());\n\t\t\tuiHomeCobrador.getHeader().setVisibleBtnMenu(true);\n\t\t\tuiHomeCobrador.getContainer().showWidget(0);\n\t\t\t}\n\t}", "private void checkToMyDetail() {\n toolbar.setTitle(R.string.my_detail);\n MyDetailFragment myDetailFragment = new MyDetailFragment();\n displaySelectedFragment(myDetailFragment);\n }", "@FXML\r\n\tpublic void goToMain() {\r\n\t\tViewNavigator.loadScene(\"Welcome to WatchPlace\", ViewNavigator.HOME_SCENE);\r\n\t}", "Navigation getActiveNavigation();", "@Override\r\n\tpublic void onInitNaviSuccess() {\n\r\n\t}", "@Override\n public void navigationEntryCommitted(LoadCommittedDetails details) {\n hide();\n }", "public void avvia() {\n super.avvia();\n this.getNavigatore(CHIAVE_NAV).avvia();\n }", "public String navigator(){\n\t System.out.println(10/0);\n\t return \"anonymousView\";\n\t }", "private void main() {\n // # I DON'T HAVE A MAIN DASHBOARD YET. MACAYLA MIGHT WANT #\n // # TO DESIGN THAT PART. FOR NOW, I HAVE A \"FAUX\" RESULTS #\n // # PAGE SHOWING, JUST SO I CAN GET A LOOK AT HOW THE RESULTS PAGE #\n // # WILL LOOK. #\n // ######################################################################\n\n ResultsFragment fragment = new ResultsFragment();\n String tag = ResultsFragment.class.getCanonicalName();\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment_frame, fragment, tag).commit();\n }", "public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "@Override\n\tpublic int getNavigationMode() {\n\t\treturn 0;\n\t}", "@Test()\n\tpublic void ValidateNavgation() throws IOException\n\t{\n\t\tLandingPage lp=new LandingPage(driver);\n\t\t\n\t\tAssert.assertTrue(lp.getNavbar().isDisplayed());\n\t\tlog.info(\"Navigated bar is displayed\");\n\t\t\t\n\t\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void onClick(View v) {\n startNavigation();\n }", "public void showMainPage() {\r\n\t\tmainFrame.showPage(mainPage.getClass().getCanonicalName());\r\n\t}", "private void launchNavigation() {\n // get navigation settings object\n SKNavigationSettings navigationSettings = new SKNavigationSettings();\n // set the desired navigation settings\n navigationSettings.setNavigationType(SKNavigationSettings.NAVIGATION_TYPE_SIMULATION);\n navigationSettings.setPositionerVerticalAlignment(-0.25f);\n navigationSettings.setShowRealGPSPositions(false);\n // get the navigation manager object\n SKNavigationManager navigationManager = SKNavigationManager.getInstance();\n navigationManager.setMapView(mapView);\n // set listener for navigation events\n navigationManager.setNavigationListener(this);\n // start navigating using the settings\n navigationManager.startNavigation(navigationSettings);\n navigationInProgress = true;\n }", "public Navigator() {\n landmarks = new Landmarks();\n\n currentLocation = new Location(6, 0, 'D');\n home = new Location(6, 0, 'D');\n\n currentDestination = home;\n currentDestinationName = \"\";\n\n readLandmarks();\n readConfig();\n noteManager = new NoteManager();\n eventManager = new EventManager();\n\n }", "public void navNav() {\n container.getChildren().clear();\n Map<String, String> fxmlRoleRef = new HashMap<>();\n for (int j = 0; j < fxmlRef.length; j++) { fxmlRoleRef.put(roleRef[j], fxmlRef[j]);}\n Label lblWelcome = new Label(\"Velkommen \" + login.getUsername());\n Label lblLogout = new Label(\"Logg ut\");\n lblLogout.getStyleClass().add(\"underline\");\n lblLogout.setOnMouseClicked(event -> navLogin());\n AnchorPane topBar = new AnchorPane(lblWelcome, lblLogout);\n topBar.setLeftAnchor(lblWelcome, 0.0);\n topBar.setRightAnchor(lblLogout, 28.0);\n container.getChildren().add(topBar);\n List<String> roles = login.getRoles();\n for (int i = 0; i < roles.size(); i++) {\n if (fxmlRoleRef.containsKey(roles.get(i))) {\n final int ROLE_INDEX = i;\n Label lblRole = new Label(roles.get(i));\n lblRole.setOnMouseClicked(event -> {\n Stage stage = new Stage();\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"../fxml/\" + fxmlRoleRef.get(roles.get(ROLE_INDEX)) + \".fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (roles.get(ROLE_INDEX).equals(\"Tekniker\")) {\n Tec_Controller controller = fxmlLoader.<Tec_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n controller.init(Integer.parseInt(login.getPersonId()));\n } else if (roles.get(ROLE_INDEX).equals(\"Booking ansvarlig\")) {\n Bookres_Controller controller = fxmlLoader.<Bookres_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n } else if (roles.get(ROLE_INDEX).equals(\"Manager\")) {\n Man_Controller controller = fxmlLoader.<Man_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n controller.init(Integer.parseInt(login.getPersonId()));\n } else if (roles.get(ROLE_INDEX).equals(\"Arrangør\")) {\n Arr_Controller controller = fxmlLoader.<Arr_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n } else if (roles.get(ROLE_INDEX).equals(\"Booking sjef\")) {\n BoB_Controller controller = fxmlLoader.<BoB_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n } else if (roles.get(ROLE_INDEX).equals(\"PR manager\")) {\n PRres_Controller controller = fxmlLoader.<PRres_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n } else if (roles.get(ROLE_INDEX).equals(\"Servering\")) {\n BoB_Controller controller = fxmlLoader.<BoB_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n } else if (roles.get(ROLE_INDEX).equals(\"Admin\")) {\n Adm_Controller controller = fxmlLoader.<Adm_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n }\n stage.show();\n });\n lblRole.getStyleClass().add(\"btnNav\");\n lblRole.setAlignment(Pos.CENTER);\n container.getChildren().add(lblRole);\n }\n }\n }", "@Override\n\tpublic void shown() {\n\n\t}", "public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}", "public abstract void pageDisplayed();", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "private void goToMainPage() {\n mAppModel.getErrorBus().removePropertyChangeListener(this);\n mAppModel.removePropertyChangeListener(this);\n mNavigationHandler.goToMainPage();\n }", "@Override\n public void onClick(View v) {\n navController.navigate(R.id.two);\n }", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "@Override\n\tpublic void onInitNaviSuccess() {\n\n\t}", "private void CallHomePage() {\n\t\t\n\t\tfr = new FragmentCategories();\n\t\tFragmentManager fm = getFragmentManager();\n\t\tFragmentTransaction fragmentTransaction = fm.beginTransaction();\n\t\tfragmentTransaction.replace(R.id.fragment_place, fr);\n\t\tfragmentTransaction.addToBackStack(null);\n\t\tfragmentTransaction.commit();\n\n\t}", "@Override\n public void onStartNavi(int arg0) {\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\r\n @Override\r\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n final RelativeLayout linearCF = (RelativeLayout) findViewById(R.id.linear_cf);\r\n FragmentManager fragmentManager = getSupportFragmentManager();\r\n String title;\r\n final Context con = this;\r\n if (id == R.id.home) {\r\n final Handler handler = new Handler();\r\n handler.postDelayed(new Runnable() {\r\n @Override\r\n public void run() {\r\n linearCF.setVisibility(View.VISIBLE);\r\n Intent i = new Intent(con, MainActivity.class);\r\n startActivity(i);\r\n }\r\n }, 250);\r\n //finish();\r\n } else if (id == R.id.nav_laws) {\r\n linearCF.setVisibility(GONE);\r\n fragmentManager.beginTransaction()\r\n .replace(R.id.content_frame, new KnowMoreSection())\r\n .commit();\r\n title = \"VAW Laws\";\r\n getSupportActionBar().setTitle(title);\r\n } else if (id == R.id.nav_danger) {\r\n linearCF.setVisibility(GONE);\r\n Intent i = new Intent(MainActivity.this, SOSSection.class);\r\n startActivity(i);\r\n finish();\r\n }\r\n else if (id == R.id.nav_seekhelp) {\r\n linearCF.setVisibility(GONE);\r\n fragmentManager.beginTransaction()\r\n .replace(R.id.content_frame,new SeekHelpSection())\r\n .commit();\r\n title = \"Seek Help\";\r\n Toast.makeText(this, \"Seek Help\",\r\n Toast.LENGTH_LONG).show();\r\n }else if (id == R.id.nav_hospital) {\r\n startActivity(new Intent(this, MapActivity.class));\r\n }else if (id == R.id.nav_police) {\r\n startActivity(new Intent(this, MapPoliceActivity.class));\r\n } else if (id == R.id.Logout) {\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Log Out\");\r\n builder.setMessage(\"Are you sure?\");\r\n builder.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Do nothing but close the dialog\r\n final Realm realm = Realm.getDefaultInstance();\r\n realm.executeTransactionAsync(new Realm.Transaction() {\r\n @Override\r\n public void execute(Realm realm) {\r\n realm.deleteAll();\r\n }\r\n }, new Realm.Transaction.OnSuccess() {\r\n @Override\r\n public void onSuccess() {\r\n realm.close();\r\n // TODO: 12/4/2016 add flag to clear all task\r\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\r\n MainActivity.this.finish();\r\n }\r\n }, new Realm.Transaction.OnError() {\r\n @Override\r\n public void onError(Throwable error) {\r\n realm.close();\r\n Log.e(\"TAG\", \"onError: Error Logging out (deleting all data)\", error);\r\n }\r\n });\r\n finish();\r\n }\r\n });\r\n builder.setNegativeButton(\"NO\", new DialogInterface.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n\r\n // Do nothing\r\n dialog.dismiss();\r\n }\r\n });\r\n AlertDialog alert = builder.create();\r\n alert.show();\r\n\r\n }\r\n else if (id == R.id.Account) {\r\n startActivity(new Intent(this, ProfileActivity.class));\r\n }\r\n\r\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\r\n drawer.closeDrawer(GravityCompat.START);\r\n return true;\r\n }", "private void screenStartUpState() {\n isMainShown = true;\n setTitle(\"\");\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.rLayoutMain, fragmentList.get(0)).addToBackStack(null).commit();\n listView.setItemChecked(0, true);\n drawerLayout.closeDrawer(listView);\n }", "public void setup() {\n\n // configura il navigator in base alla MenuBar\n nav.configureFromMenubar(menuBar);\n\n // manda il navigatore alla prima view\n Collection<MenuBar.MenuItem> coll = mappaItem.values();\n MenuBar.MenuItem[] items = coll.toArray(new MenuBar.MenuItem[0]);\n if (items.length>0){\n MenuBar.MenuItem item = items[0];\n MenuCommand mcmd = (MenuCommand)item.getCommand();\n String addr = mcmd.getNavigatorAddress();\n nav.navigateTo(addr);\n }\n }", "private void navigateToDefaultView() {\n\t\tif (navigator!=null && \"\".equals(navigator.getState())) {\n\t\t\t// TODO: switch the view to the \"dashboard\" view\n\t\t}\n\t}", "public void showPage(){\n\t\tflexTable.setWidget(0, 0, lblNome);\n\t flexTable.setWidget(0, 1, nomePratoBox);\n\t flexTable.setWidget(0, 2, pesquisarButton);\n\t\t\n\t initWidget(flexTable);\n\t \n\t\tRootPanel formRootPanel = RootPanel.get(\"loginContainer\");\n\t\tformRootPanel.add(this);\n\t}", "@RequestMapping(\"/showForm\")\n\t\tpublic String displayDetails(){\n\t\t\treturn \"mngt-page\";\n\t\t}", "private void initNavigation() {\n\t\tuINavigationView = (MyUINavigationView) findViewById(R.id.action_bar);\n\t\tImageButton btnLeftText = uINavigationView.getBtn_left();\n\t\tButton btnRightText = uINavigationView.getBtn_right();\n\t\tbtnRightText.setVisibility(View.GONE);\n\t\tbtnLeftText.setOnClickListener(new 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\tfinish();\n\t\t\t}\n\t\t});\n//\t\tbtnRightText.setOnClickListener(new 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\tsetPersonalInfo();\n//\t\t\t}\n//\t\t});\n\t}", "public void navigateToRoot()\r\n\t{\r\n\t\tnavigateTo(m_rootInstance, false);\r\n\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_switch)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new Switches_Page()).addToBackStack(null).commit();\n }\n else if (id == R.id.nav_alarms)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new Alarms_Page()).addToBackStack(null).commit();\n }\n else if (id == R.id.nav_light)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new Lights_Page()).addToBackStack(null).commit();\n }\n else if (id == R.id.nav_logs)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new Logs_Page()).addToBackStack(null).commit();\n\n }\n else if (id == R.id.nav_logout)\n {\n Toast.makeText(getApplicationContext(), \"Logout\", Toast.LENGTH_LONG).show();\n finish();\n }\n else if (id == R.id.nav_change_password)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new Change_Password()).addToBackStack(null).commit();\n }\n else if (id == R.id.nav_about)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new About()).addToBackStack(null).commit();\n }\n\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}", "@Override\n public void gonearbypage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new NearbyFragment()).addToBackStack(\"Homepage\").commit();\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n Fragment fragment = null;\n\n if (id == R.id.nav_dashboard) {\n mRequestLocationUpdatesButton.setVisibility(View.VISIBLE);\n mRemoveLocationUpdatesButton.setVisibility(View.VISIBLE);\n // Handle the camera action\n// fragment = new DashboardActivity();\n// FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n// ft.replace(R.id.flContent, fragment);\n// ft.commit();\n Intent navigationIntent = new Intent(this, MainActivity.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n } else if (id == R.id.nav_add_candidate) {\n mRequestLocationUpdatesButton.setVisibility(View.GONE);\n mRemoveLocationUpdatesButton.setVisibility(View.GONE);\n// fragment = new AddCandidateFragment();\n// FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n// ft.replace(R.id.flContent, fragment);\n// ft.commit();\n Intent navigationIntent = new Intent(this, AddCandidateFragment.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n } else if (id == R.id.nav_center_information) {\n mRequestLocationUpdatesButton.setVisibility(View.GONE);\n mRemoveLocationUpdatesButton.setVisibility(View.GONE);\n// fragment = new CenterInfoActivity();\n// FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n// ft.replace(R.id.flContent, fragment);\n// ft.commit();\n Intent navigationIntent = new Intent(this, CenterInfoActivity.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n }\n /*else if (id == R.id.nav_batch_details) {\n fragment = new BatchDetailsFragment();\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.replace(R.id.flContent, fragment);\n ft.commit();\n }*/\n else if (id == R.id.nav_trade) {\n mRequestLocationUpdatesButton.setVisibility(View.GONE);\n mRemoveLocationUpdatesButton.setVisibility(View.GONE);\n// fragment = new TradeActivity();\n// FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n// ft.replace(R.id.flContent, fragment);\n// ft.commit();\n Intent navigationIntent = new Intent(this, TradeActivity.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n } else if (id == R.id.nav_task) {\n mRequestLocationUpdatesButton.setVisibility(View.GONE);\n mRemoveLocationUpdatesButton.setVisibility(View.GONE);\n// fragment = new TaskActivity();\n// FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n// ft.replace(R.id.flContent, fragment);\n// ft.commit();\n Intent navigationIntent = new Intent(this, MobiliserWorkTypeActivity.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n } else if (id == R.id.nav_sync) {\n mRequestLocationUpdatesButton.setVisibility(View.GONE);\n mRemoveLocationUpdatesButton.setVisibility(View.GONE);\n /*fragment = new SyncFragment();\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.replace(R.id.flContent, fragment);\n ft.commit();*/\n Intent navigationIntent = new Intent(this, SyncRecordsActivity.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n } else if (id == R.id.nav_footer_1) {\n mRequestLocationUpdatesButton.setVisibility(View.GONE);\n mRemoveLocationUpdatesButton.setVisibility(View.GONE);\n Intent navigationIntent = new Intent(this, ProfileActivity.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n } else if (id == R.id.nav_footer_2) {\n mRequestLocationUpdatesButton.setVisibility(View.GONE);\n mRemoveLocationUpdatesButton.setVisibility(View.GONE);\n// fragment = new ChangePasswordActivity();\n// FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n// ft.replace(R.id.flContent, fragment);\n// ft.commit();\n Intent navigationIntent = new Intent(this, AboutUsActivity.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n } else if (id == R.id.nav_change_password) {\n mRequestLocationUpdatesButton.setVisibility(View.GONE);\n mRemoveLocationUpdatesButton.setVisibility(View.GONE);\n// fragment = new ChangePasswordActivity();\n// FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n// ft.replace(R.id.flContent, fragment);\n// ft.commit();\n Intent navigationIntent = new Intent(this, ChangePasswordActivity.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n } else if (id == R.id.nav_logout) {\n android.app.AlertDialog.Builder alertDialogBuilder = new android.app.AlertDialog.Builder(this);\n alertDialogBuilder.setTitle(\"Logout\");\n alertDialogBuilder.setMessage(\"Do you really want to logout?\");\n alertDialogBuilder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n doLogout();\n }\n });\n alertDialogBuilder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialogBuilder.show();\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "@Override\n\tpublic void onCalculateRouteSuccess() {\n\t\tnaviActivity();\n\t}", "@Test(priority = 1)\n\tpublic void navigateToBulkUploadLandingPage() {\n\t\tlog.info(line);\n\t\tAssert.assertTrue(clickAllActionButton.navigateToBulkUploadLandingPage(),\n\t\t\t\t\"Bulk upload Landing page is displayed\");\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "private void checkToHome() {\n toolbar.setTitle(R.string.find_food);\n homeFragment = new HomeFragment();\n if (searchMenuItem != null) {\n searchMenuItem.setVisible(true);\n }\n displaySelectedFragment(homeFragment);\n }", "@Override\r\n public void show()\r\n {\r\n\r\n }", "@Override\r\n public void show()\r\n {\r\n\r\n }", "@Override\r\n\tpublic void onStartNavi(int arg0) {\n\r\n\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\r\n @Override\r\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n if (id == R.id.receipt) {\r\n Toast.makeText(getApplicationContext(),\"Clicked\",Toast.LENGTH_LONG).show();\r\n// Intent i=new Intent(MainActivity.this,Sample.class);\r\n// startActivity(i);\r\n newFragment = new Home();\r\n onBackPressed();\r\n } else if (id == R.id.cust_bal) {\r\n Toast.makeText(getApplicationContext(),\"Clicked\",Toast.LENGTH_LONG).show();\r\n// fragment = new Customerbal();\r\n onBackPressed();\r\n }\r\n else if (id == R.id.statement) {\r\n Toast.makeText(getApplicationContext(),\"Clicked\",Toast.LENGTH_LONG).show();\r\n// fragment = new StatementFrag();\r\n onBackPressed();\r\n// fragment = new Statement();\r\n }\r\n else if(id==R.id.home_page){\r\n newFragment=new Home();\r\n }\r\n// else if (id==R.id.new_col){\r\n// fragment=new NewCollection();\r\n// }\r\n else if (id == R.id.navigation_home) {\r\n Toast.makeText(getApplicationContext(),\"Clicked\",Toast.LENGTH_LONG).show();\r\n// fragment = new Receipt();\r\n\r\n }\r\n else if (id == R.id.navigation_dashboard) {\r\n// fragment = new Statement();\r\n// fragment = new StatementFrag();\r\n Toast.makeText(getApplicationContext(),\"Clicked\",Toast.LENGTH_LONG).show();\r\n\r\n }\r\n else if (id == R.id.navigation_notifications) {\r\n// fragment = new Customerbal();\r\n Toast.makeText(getApplicationContext(),\"Clicked\",Toast.LENGTH_LONG).show();\r\n }\r\n else if(id==R.id.navigation_profile){\r\n newFragment=new Home();\r\n }\r\n if (newFragment != null) {\r\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\r\n ft.replace(R.id.content_frame, newFragment);\r\n ft.commit();\r\n }\r\n\r\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\r\n drawer.closeDrawer(GravityCompat.START);\r\n return true;\r\n }", "public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}", "protected void showPreviousPage() {\n\t\tshowPage(currPageIndex - 1, Direction.BACKWARD);\n\n\t}", "private void navigationAdminScreen(UserInfo usn) {\n finish();\n }", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}" ]
[ "0.7336313", "0.7282867", "0.69961065", "0.6419933", "0.6318167", "0.6300856", "0.62605655", "0.6240726", "0.6202879", "0.61664885", "0.614535", "0.6106791", "0.60975474", "0.6085301", "0.607103", "0.60654867", "0.60393363", "0.59983516", "0.59908414", "0.5965178", "0.5946642", "0.59421426", "0.59323394", "0.5931722", "0.5916106", "0.59118384", "0.5903446", "0.59027666", "0.58991593", "0.5896284", "0.5884675", "0.5875368", "0.58710897", "0.58704", "0.58551705", "0.5854585", "0.5841234", "0.58398557", "0.58241177", "0.58141625", "0.58032364", "0.5792936", "0.5774667", "0.57703984", "0.57594687", "0.5755828", "0.5755828", "0.5755828", "0.57503045", "0.57467556", "0.57395", "0.5736876", "0.5734186", "0.57330155", "0.57204276", "0.5695355", "0.56942695", "0.56899786", "0.56884784", "0.56787676", "0.5674621", "0.56733817", "0.56703126", "0.5665884", "0.5659313", "0.5658613", "0.5658586", "0.56520236", "0.56504595", "0.5650153", "0.5650153", "0.5650153", "0.5650153", "0.5650153", "0.5650153", "0.5650153", "0.5650153", "0.5649323", "0.5648258", "0.5644191", "0.5644191", "0.5642827", "0.5640224", "0.56396645", "0.56362605", "0.5627956", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932", "0.5620932" ]
0.0
-1
Expect a result from activity 3
public void onStartThirdActivity(View view) { Intent getThirdActivity = new Intent(this, ThirdActivity.class); final int result = 1; startActivityForResult(getThirdActivity, result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onResult(int ret);", "public int getResult() {return resultCode;}", "public void invokeBehaviour() {\n\t\tIntent i = alertMe.createIntentFromSession();\n\t\ti.setClass(this, AlertMeBehaviour.class);\n startActivityForResult(i, AlertMeConstants.INVOKE_STATUS); \n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ACTIVITY_ONE_REQUEST && resultCode == RESULT_OK) {\n if (data.hasExtra(ACTIVITY_ONE_RESULT)) {\n String result = data.getExtras().getString(ACTIVITY_ONE_RESULT);\n Toast.makeText(MainActivity.this, result, Toast.LENGTH_SHORT).show();\n requestResult.setText(result);\n }\n }\n if (requestCode == ACTIVITY_TWO_REQUEST && resultCode == RESULT_OK) {\n /**\n * Possibly of returning two different results from Activity Two\n */\n if (data.hasExtra(ACTIVITY_TWO_RESULT)) {\n String result = data.getExtras().getString(ACTIVITY_TWO_RESULT);\n Toast.makeText(MainActivity.this, result, Toast.LENGTH_SHORT).show();\n requestResult.setText(result);\n }\n if (data.hasExtra(ACTIVITY_TWO_RESULT_DIFFERENT)) {\n String result = data.getExtras().getString(ACTIVITY_TWO_RESULT_DIFFERENT);\n Toast.makeText(MainActivity.this, result, Toast.LENGTH_SHORT).show();\n requestResult.setText(result);\n }\n }\n }", "public MatchOther processResult(ResultItems resultItems, Task task);", "private void goToResultActivity() {\n try {\n stopCountdown();\n if (isOnline()) {\n List<Contact> testDetails = db.getPracticeTestDetailByID(Integer.parseInt(mSchoolId), Integer.parseInt(mStudentId), Integer.parseInt(testId));\n ansString = \"\";\n extraParam = \"2 Date :: \" + currentDateandTimeTemp;\n if (testDetails != null && testDetails.size() > 0) {\n ansString = testDetails.get(0).getTestAnsString();\n testTicks = testDetails.get(0).getTestTicks();\n if (ansString == null || ansString.isEmpty()) {\n ansString = \"\";\n extraParam = \"-1\";\n }\n if (testTicks == null || testTicks.isEmpty()) {\n testTicks = \"\";\n }\n /* if (ansString != null && !ansString.isEmpty()) {*/\n Log.e(\"ansString\", ansString);\n frame_progress.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.VISIBLE);\n String mStudentId = Datastorage.GetStudentId(getApplicationContext());\n String mSchoolId = Datastorage.GetSchoolId(getApplicationContext());\n String mYearId = Datastorage.GetCurrentYearId(getApplicationContext());\n String deviceId = Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID);\n String mDeviceDetail = Build.DEVICE + \"|||\" + Build.MODEL + \"|||\" + Build.ID\n + \"|||\" + Build.PRODUCT + \"|||\" + Build.VERSION.SDK\n + \"|||\" + Build.VERSION.RELEASE + \"|||\" + Build.VERSION.INCREMENTAL;\n Call<AppService> call = ((MyApplication) getApplicationContext()).getmRetrofitInterfaceAppService()\n .SetPracticeTestAnsV3(mStudentId, mSchoolId, mYearId, testId, ansString, SchoolDetails.appname + \"\", Constants.CODEVERSION, Constants.PLATFORM, extraParam, testTicks, deviceId, mDeviceDetail);\n call.enqueue(new Callback<AppService>() {\n @Override\n public void onResponse(Call<AppService> call, Response<AppService> response) {\n try {\n progressBar.setVisibility(View.GONE);\n frame_progress.setVisibility(View.GONE);\n AppService tmps = response.body();\n if (tmps != null && tmps.getResponse() != null && !tmps.getResponse().isEmpty()\n && tmps.getResponse().equalsIgnoreCase(\"1\") && !tmps.getStrResult().isEmpty()) {\n db.deleteTestRecords(rowTestID);\n Intent i = new Intent(PracticeTestQAActivity.this, PracticeTestResultActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n i.putExtra(\"testId\", testId);\n i.putExtra(\"testName\", testName);\n i.putExtra(\"refereshflag\", \"1\");\n startActivity(i);\n PracticeTestQAActivity.this.finish();\n onClickAnimation();\n Toast.makeText(PracticeTestQAActivity.this, tmps.getStrResult(), Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(PracticeTestQAActivity.this, tmps.getStrResult(), Toast.LENGTH_SHORT).show();\n }\n } catch (Exception ex) {\n btn_next.setEnabled(true);\n progressBar.setVisibility(View.GONE);\n frame_progress.setVisibility(View.GONE);\n Constants.writelog(\"PracticeTestQAActivity\", \"setTestAns 2062:\" + ex.getMessage());\n } finally {\n ansString = \"\";\n }\n }\n\n @Override\n public void onFailure(Call<AppService> call, Throwable t) {\n progressBar.setVisibility(View.GONE);\n btn_next.setEnabled(true);\n frame_progress.setVisibility(View.GONE);\n Constants.writelog(\"PracticeTestQAActivity\", \"setTestAns 1589:\" + t.getMessage());\n }\n });\n /* }else {\n Intent i = new Intent(PracticeTestQAActivity.this, PracticeTestResultActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n i.putExtra(\"testId\", testId);\n i.putExtra(\"testName\", testName);\n i.putExtra(\"refereshflag\", \"1\");\n startActivity(i);\n PracticeTestQAActivity.this.finish();\n onClickAnimation();\n }*/\n } else {\n Intent i = new Intent(PracticeTestQAActivity.this, PracticeTestResultActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n i.putExtra(\"testId\", testId);\n i.putExtra(\"testName\", testName);\n i.putExtra(\"refereshflag\", \"1\");\n startActivity(i);\n PracticeTestQAActivity.this.finish();\n onClickAnimation();\n }\n } else {\n btn_next.setEnabled(true);\n progressBar.setVisibility(View.GONE);\n frame_progress.setVisibility(View.GONE);\n Toast.makeText(this, SchoolDetails.MsgNoInternet, Toast.LENGTH_SHORT).show();\n }\n } catch (Exception e) {\n btn_next.setEnabled(true);\n Constants.writelog(\"PracticeTestQAActivity\", \"goToResultActivity 1787:\" + e.getMessage());\n }\n }", "void onResult(AIResponse result);", "public void on_code_read(String result){\n Intent intent = new Intent(ScanActivity.this, TargetActivity.class);\n intent.putExtra(\"result\", result);\n startActivity(intent);\n }", "public abstract Intent constructResults();", "private void gotEnrollingResult_recreateActivityAndVerifyResultThenForward(\n int testActivityResult, @NonNull Bundle savedInstance) {\n buildActivity();\n mActivityController.setup(savedInstance);\n verifyNoSidecar();\n\n // onActivityResult from Enrolling activity shall be forward back\n Shadows.shadowOf(mActivity).receiveResult(\n new Intent(mActivity, FingerprintEnrollEnrolling.class),\n testActivityResult,\n null);\n assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(testActivityResult);\n assertThat(mActivity.isFinishing()).isEqualTo(true);\n\n // onStop shall not change last activity result\n mActivityController.pause().stop().destroy();\n assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(testActivityResult);\n }", "@Override\n\tpublic void resultActivityCall(int requestCode, int resultCode, Intent data) {\n\n\t}", "public void onTestSuccess(ITestResult result) {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\tif (result == 0) {\n\t\t\t\t\t\t\tgetApplyDialog();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToastUtil.showToast(context, \"无法获取游戏信息\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "@Override\n public void onResult(final AIResponse result) {\n DobbyLog.i(\"Action: \" + result.getResult().getAction());\n }", "public void doResult() throws Exception {\n\t\tJSONObject map=new JSONObject(getResult());\n\t\tif(!\"ok\".equalsIgnoreCase(map.getString(\"status\"))){\n\t\t\tdoFailureResult();\n\t\t\treturn;\n\t\t}\n\t\tif(getHandler()!=null){\n\t\t\tMessage hmsg=getHandler().obtainMessage();\n\t\t\thmsg.obj=map;\n\t\t\thmsg.arg1=1;\n\t\t\tgetHandler().sendMessage(hmsg);\n\t\t\tsetHandler(null);\n\t\t}\n\t}", "@Override\n public void onActivityResult(int var1_1, int var2_2, Intent var3_3) {\n super.onActivityResult(var1_1, var2_2, var3_3);\n this.presenter.ba0061a0061a0061a0061aa(this);\n if ((MbaSettingsActivity.b00730073ss00730073ss + MbaSettingsActivity.bsss007300730073ss) * MbaSettingsActivity.b00730073ss00730073ss % MbaSettingsActivity.bs00730073s00730073ss != MbaSettingsActivity.bss0073s00730073ss) {\n MbaSettingsActivity.b00730073ss00730073ss = 98;\n MbaSettingsActivity.bss0073s00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n }\n if (var2_2 == -1) {\n var4_4 = this.presenter;\n var5_5 = mqmmmm.qmmmmm.class.getMethod(uxxxxx.bbbb0062b0062b0062b0062(\"7\\u0004\\u0003\\t\\u0006ED}|\\u0003?xw}z:srxu5nmsp\", '\\u00d3', '\\u00d5', '\\u0000'), new Class[0]);\n var6_6 = new Object[]{};\n var5_5.invoke(var4_4, var6_6);\n switch (var1_1) lbl-1000: // 2 sources:\n {\n do {\n default: lbl-1000: // 2 sources:\n {\n do {\n return;\n break;\n } while (true);\n }\n break;\n } while (true);\n catch (InvocationTargetException var7_7) {\n throw var7_7.getCause();\n }\n case 31: \n case 32: {\n this.setResult(-1);\n var14_8 = this.presenter;\n var15_9 = mqmmmm.qmmmmm.class.getMethod(uxxxxx.bbbb0062b0062b0062b0062(\"\\\\)(.+ji#\\\"(%d\\u001e\\u001d# _\\u0019\\u0018\\u001e\\u001bZ\\u0014\\u0013\\u0019\\u0016\", '\\u00c6', '>', '\\u0000'), new Class[0]);\n var16_10 = new Object[]{};\n try {\n var15_9.invoke(var14_8, var16_10);\n var19_11 = MbaSettingsActivity.b00730073ss00730073ss;\n }\n catch (InvocationTargetException var17_12) {\n throw var17_12.getCause();\n }\n switch (var19_11 * (var19_11 + MbaSettingsActivity.bsss007300730073ss) % MbaSettingsActivity.bs00730073s00730073ss) {\n case 0: {\n ** continue;\n }\n }\n MbaSettingsActivity.b00730073ss00730073ss = 80;\n MbaSettingsActivity.bss0073s00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n return;\n }\n case 34: \n }\n this.setResult(-1);\n var9_13 = this.presenter;\n var10_14 = mqmmmm.qmmmmm.class.getMethod(uxxxxx.bb00620062bb0062b0062b0062(\"N\\u001d\\u001e&%!\\\"*)%&.-no+,43t0198y56>=\", '\\u00cd', '\\u0000'), new Class[0]);\n var11_15 = new Object[]{};\n try {\n var10_14.invoke(var9_13, var11_15);\n return;\n }\n catch (InvocationTargetException var12_16) {\n throw var12_16.getCause();\n }\n }\n ** while (var1_1 != 32)\nlbl46: // 1 sources:\n this.activationSwitch.setCheckedIgnoringListener(false);\n }\n\n @Override\n public void onCreate(Bundle bundle) {\n mqmmmm.qmmmmm qmmmmm2;\n Method method;\n Context context = this.getApplicationContext();\n Method method2 = puuuuu.class.getMethod(uxxxxx.bb00620062bb0062b0062b0062(\"7\\u0006\\u0007\\u000f\\u000bLM\\f\\r\\u0015\\u0011RSTUV\", '*', '\\u0001'), Context.class);\n Object[] arrobject = new Object[]{context};\n try {\n method2.invoke(null, arrobject);\n }\n catch (InvocationTargetException var5_15) {\n throw var5_15.getCause();\n }\n Context context2 = this.getApplicationContext();\n Method method3 = puppuu.class.getMethod(uxxxxx.bb00620062bb0062b0062b0062(\"\\u000f[Z`Z\\u001aVU[URQWQNMSMJIOIFEKE\\u0005\\u0004\", 'S', '\\u0003'), Context.class);\n Object[] arrobject2 = new Object[]{context2};\n try {\n method3.invoke(null, arrobject2);\n }\n catch (InvocationTargetException var10_14) {\n throw var10_14.getCause();\n }\n if ((b00730073ss00730073ss + MbaSettingsActivity.b0073s0073s00730073ss()) * b00730073ss00730073ss % bs00730073s00730073ss != bss0073s00730073ss) {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = 94;\n if ((MbaSettingsActivity.b007300730073s00730073ss() + bsss007300730073ss) * MbaSettingsActivity.b007300730073s00730073ss() % bs00730073s00730073ss != bss0073s00730073ss) {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = 33;\n }\n }\n uppupu.b0072r0072r00720072rr0072(this.getApplicationContext());\n super.onCreate(bundle);\n this.initDbToolbar();\n this.initViews();\n this.presenter.ba0061a0061a0061a0061aa(this);\n mqmmmm.qmmmmm qmmmmm3 = this.presenter;\n Method method4 = mqmmmm.qmmmmm.class.getMethod(uxxxxx.bb00620062bb0062b0062b0062(\"2\\u0001\\u0002\\n\\tJK\\u0007\\b\\u0010\\u000fP\\f\\r\\u0015\\u0014U\\u0011\\u0012\\u001a\\u0019Z\\u0016\\u0017\\u001f\\u001e\", '\\u00ce', '\\u0002'), new Class[0]);\n Object[] arrobject3 = new Object[]{};\n try {\n method4.invoke(qmmmmm3, arrobject3);\n qmmmmm2 = this.presenter;\n method = mqmmmm.qmmmmm.class.getMethod(uxxxxx.bb00620062bb0062b0062b0062(\"Oc\\u001f ('h$%-,m)*21r./76w34<;\", '6', '\\u0001'), new Class[0]);\n }\n catch (InvocationTargetException var15_17) {\n throw var15_17.getCause();\n }\n Object[] arrobject4 = new Object[]{};\n try {\n method.invoke(qmmmmm2, arrobject4);\n return;\n }\n catch (InvocationTargetException var20_16) {\n throw var20_16.getCause();\n }\n }\n\n @Override\n public void onEfiItemClicked(MbaFinancialOverviewData mbaFinancialOverviewData) {\n this.unregisterBroadcastReceivers();\n int n2 = b00730073ss00730073ss + bsss007300730073ss;\n int n3 = b00730073ss00730073ss;\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % bs00730073s00730073ss != bss0073s00730073ss) {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = 30;\n }\n if (n2 * n3 % bs00730073s00730073ss != MbaSettingsActivity.bs0073s007300730073ss()) {\n b00730073ss00730073ss = 70;\n bss0073s00730073ss = 16;\n }\n this.startActivityForResult(EfiDetailsActivity.makeIntent((Context)this, mbaFinancialOverviewData), 34);\n }\n\n @Override\n public void onResume() {\n block6 : {\n super.onResume();\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % bs00730073s00730073ss != bss0073s00730073ss) {\n b00730073ss00730073ss = 7;\n bss0073s00730073ss = 27;\n }\n mqmmmm.qmmmmm qmmmmm2 = this.presenter;\n Method method = mqmmmm.qmmmmm.class.getMethod(uxxxxx.bb00620062bb0062b0062b0062(\"t\\u0007\\u0006\\u0005>=C@98>;z4396u/.41\", 'm', '\\u0003'), new Class[0]);\n Object[] arrobject = new Object[]{};\n try {\n method.invoke(qmmmmm2, arrobject);\n if (this.mbaInstitutesAdapter == null) break block6;\n }\n catch (InvocationTargetException var4_5) {\n throw var4_5.getCause();\n }\n int n2 = MbaSettingsActivity.b007300730073s00730073ss();\n switch (n2 * (n2 + bsss007300730073ss) % bs00730073s00730073ss) {\n default: {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = 82;\n }\n case 0: \n }\n this.mbaInstitutesAdapter.notifyDataSetChanged();\n }\n }\n\n @Override\n public void onStart() {\n super.onStart();\n this.presenter.ba0061a0061a0061a0061aa(this);\n if ((MbaSettingsActivity.b007300730073s00730073ss() + bsss007300730073ss) * MbaSettingsActivity.b007300730073s00730073ss() % bs00730073s00730073ss != bss0073s00730073ss) {\n int n2 = b00730073ss00730073ss;\n switch (n2 * (n2 + bsss007300730073ss) % bs00730073s00730073ss) {\n default: {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n }\n case 0: \n }\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = 35;\n }\n }\n\n @Override\n public void onStop() {\n mqmmmm.qmmmmm qmmmmm2 = this.presenter;\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % MbaSettingsActivity.b0073ss007300730073ss() != bss0073s00730073ss) {\n int n2 = b00730073ss00730073ss;\n switch (n2 * (n2 + bsss007300730073ss) % bs00730073s00730073ss) {\n default: {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n }\n case 0: \n }\n b00730073ss00730073ss = 98;\n bss0073s00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n }\n qmmmmm2.ba006100610061a0061aa0061a();\n super.onStop();\n }\n\n /*\n * Enabled aggressive block sorting\n */\n @Override\n public void populateList(List<MbaFinancialOverviewData> list) {\n if (list.isEmpty()) {\n this.efiInstitutesListGroup.setVisibility(8);\n } else {\n this.efiInstitutesListGroup.setVisibility(0);\n }\n ListView listView = (ListView)this.findViewById(R.id.mba_menu_institute_list);\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % bs00730073s00730073ss != bss0073s00730073ss) {\n b00730073ss00730073ss = 93;\n int n2 = MbaSettingsActivity.b007300730073s00730073ss();\n int n3 = b00730073ss00730073ss;\n switch (n3 * (n3 + bsss007300730073ss) % bs00730073s00730073ss) {\n default: {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = 4;\n }\n case 0: \n }\n bss0073s00730073ss = n2;\n }\n this.mbaInstitutesAdapter = new qmqqmq(this, list);\n listView.setAdapter((ListAdapter)this.mbaInstitutesAdapter);\n }\n\n @Override\n public void registerReceiver(ModelUpdatedBroadcastReceiver modelUpdatedBroadcastReceiver, IntentFilter intentFilter) {\n int n2 = MbaSettingsActivity.b007300730073s00730073ss();\n switch (n2 * (n2 + bsss007300730073ss) % bs00730073s00730073ss) {\n default: {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % bs00730073s00730073ss == bss0073s00730073ss) break;\n b00730073ss00730073ss = 37;\n bss0073s00730073ss = 20;\n }\n case 0: \n }\n LocalBroadcastManager.getInstance((Context)this).registerReceiver(modelUpdatedBroadcastReceiver, intentFilter);\n }\n\n @Override\n public void setMbaSwitchState(boolean bl) {\n if (this.activationSwitch != null && this.activationSwitch.isChecked() != bl) {\n if ((b00730073ss00730073ss + MbaSettingsActivity.b0073s0073s00730073ss()) * b00730073ss00730073ss % bs00730073s00730073ss != bss0073s00730073ss) {\n b00730073ss00730073ss = 5;\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % bs00730073s00730073ss != bss0073s00730073ss) {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = 85;\n }\n bss0073s00730073ss = 52;\n }\n this.activationSwitch.setCheckedIgnoringListener(bl);\n }\n }\n\n /*\n * Enabled aggressive block sorting\n */\n @Override\n public void setupTermsAndConditions(boolean bl) {\n String string2;\n if (bl) {\n string2 = this.getString(R.string.mba_pgk_terms);\n } else {\n string2 = this.getString(R.string.mba_ag_terms);\n int n2 = MbaSettingsActivity.b007300730073s00730073ss();\n switch (n2 * (n2 + bsss007300730073ss) % bs00730073s00730073ss) {\n case 0: {\n break;\n }\n default: {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = 52;\n }\n }\n }\n int n3 = b00730073ss00730073ss;\n switch (n3 * (n3 + bsss007300730073ss) % bs00730073s00730073ss) {\n default: {\n b00730073ss00730073ss = 26;\n bss0073s00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n }\n case 0: \n }\n this.mbaDialogTermsUrl = string2;\n }\n\n /*\n * Enabled force condition propagation\n * Lifted jumps to return sites\n */\n @Override\n public void showLoadingIndicator(boolean bl) {\n if (bl) {\n this.showProgress(R.string.loading_data);\n do {\n return;\n break;\n } while (true);\n }\n this.hideProgress();\n int n2 = MbaSettingsActivity.b007300730073s00730073ss();\n switch (n2 * (n2 + bsss007300730073ss) % bs00730073s00730073ss) {\n case 0: {\n return;\n }\n }\n if ((b00730073ss00730073ss + MbaSettingsActivity.b0073s0073s00730073ss()) * b00730073ss00730073ss % bs00730073s00730073ss != bss0073s00730073ss) {\n b00730073ss00730073ss = 93;\n bss0073s00730073ss = 50;\n }\n b00730073ss00730073ss = 32;\n bss0073s00730073ss = 71;\n }\n\n @Override\n public void showProgress(int n2) {\n this.activationSwitch.setEnabled(false);\n int n3 = b00730073ss00730073ss;\n switch (n3 * (n3 + bsss007300730073ss) % bs00730073s00730073ss) {\n default: {\n b00730073ss00730073ss = 85;\n bss0073s00730073ss = 99;\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % bs00730073s00730073ss == bss0073s00730073ss) break;\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = 26;\n }\n case 0: \n }\n this.showProgress(this.getString(n2));\n }\n\n @Override\n public void startMbaConsentActivity(boolean bl, int n2) {\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % MbaSettingsActivity.b0073ss007300730073ss() != bss0073s00730073ss) {\n b00730073ss00730073ss = 94;\n bss0073s00730073ss = 59;\n }\n this.startActivity(MbaConsentActivity.makeIntent((Context)this));\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % bs00730073s00730073ss != bss0073s00730073ss) {\n b00730073ss00730073ss = 14;\n bss0073s00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n }\n }\n\n @Override\n public void unRegisterReceiver(ModelUpdatedBroadcastReceiver modelUpdatedBroadcastReceiver) {\n LocalBroadcastManager.getInstance((Context)this).unregisterReceiver(modelUpdatedBroadcastReceiver);\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % bs00730073s00730073ss != bss0073s00730073ss) {\n b00730073ss00730073ss = 50;\n bss0073s00730073ss = 15;\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % MbaSettingsActivity.b0073ss007300730073ss() != bss0073s00730073ss) {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n }\n }\n }\n\n /*\n * Enabled aggressive block sorting\n */\n @Override\n public void updateConsentFieldProperties(boolean bl, boolean bl2) {\n int n2;\n this.consentField.setChecked(bl2);\n SettingWithStatusItemView settingWithStatusItemView = this.consentField;\n if (bl) {\n n2 = 0;\n } else {\n n2 = 8;\n if ((b00730073ss00730073ss + bsss007300730073ss) * b00730073ss00730073ss % bs00730073s00730073ss != MbaSettingsActivity.bs0073s007300730073ss()) {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n }\n }\n int n3 = b00730073ss00730073ss;\n switch (n3 * (n3 + bsss007300730073ss) % bs00730073s00730073ss) {\n default: {\n b00730073ss00730073ss = MbaSettingsActivity.b007300730073s00730073ss();\n bss0073s00730073ss = 33;\n }\n case 0: \n }\n settingWithStatusItemView.setVisibility(n2);\n }\n\n}", "public void onActivityResult(int i, int i2, Intent intent) {\n C1846e eVar;\n Bundle extras = intent.getExtras();\n if (!CheckActivityResult(i, i2, intent)) {\n this._isCheck = extras.getBoolean(\"PantilterCheckRange\");\n String string = extras.getString(\"PantilterMode\");\n C2028e a = C2253z.m9680a((Context) null, false);\n if (a != null) {\n eVar = a.mo5285i();\n if (eVar != null && this._isCheck) {\n string = eVar.mo4656E();\n }\n } else {\n eVar = null;\n }\n if (string != null && !string.equalsIgnoreCase(\"\")) {\n if (string.equalsIgnoreCase(\"manual\")) {\n Intent intent2 = new Intent(this._context, LiveViewMoviePantilterManualMovieActivity.class);\n Activity activity = (Activity) this._context;\n activity.finish();\n activity.startActivity(intent2);\n activity.overridePendingTransition(0, 0);\n } else if (string.equalsIgnoreCase(\"preset\") || string.equalsIgnoreCase(\"presethome\") || string.equalsIgnoreCase(\"presetpausehome\")) {\n Intent intent3 = new Intent(this._context, LiveViewMoviePantilterPresetActivity.class);\n Activity activity2 = (Activity) this._context;\n activity2.finish();\n activity2.startActivity(intent3);\n activity2.overridePendingTransition(0, 0);\n } else if (string.equalsIgnoreCase(\"party\") || string.equalsIgnoreCase(\"partypause\") || string.equalsIgnoreCase(\"movingobj\") || string.equalsIgnoreCase(\"mvobj\") || string.equalsIgnoreCase(\"movingobjpause\")) {\n Intent intent4 = new Intent(this._context, LiveViewMoviePantilterAutoMovieActivity.class);\n Activity activity3 = (Activity) this._context;\n activity3.finish();\n activity3.startActivity(intent4);\n activity3.overridePendingTransition(0, 0);\n } else if (eVar == null || eVar.mo4656E().equalsIgnoreCase(\"\") || !eVar.mo4656E().equalsIgnoreCase(\"noconnect\")) {\n if (eVar != null && !eVar.mo4656E().equalsIgnoreCase(\"\") && eVar.mo4656E().equalsIgnoreCase(\"error\") && this._isCheck) {\n C2331d.m10114a((Activity) this, C2328a.ON_PANTILTER_ERROR, (Bundle) null);\n }\n } else if (this._isCheck) {\n C2331d.m10114a((Activity) this, C2328a.ON_PANTILTER_NO_CONNECT, (Bundle) null);\n }\n }\n if (this.f12125b != null) {\n this.f12125b.mo8864c(this._isPictureRecMode);\n }\n }\n }", "public void onTestSuccess(ITestResult result) {\n\t\t\n\t}", "@Override\n public void starryEyes(String result) {\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\",result);\n setResult(RESULT_OK,returnIntent);\n finish();\n }", "public void setResult() {\n }", "void onTestSuccess(ITestResult result);", "@Override\n public void onSucceed(Object valor) {\n }", "void onResult(T result);", "void onResult(T result);", "@Override\r\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif (result != null && (Boolean) result) {\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putString(MainActivity.TAG, \"1000\");\r\n\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\tintent.setAction(ReciverContents.PaySuccess);\r\n\t\t\t\tactivcty.sendBroadcast(intent);\r\n\t\t\t}\r\n\r\n\t\t}", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "@SmallTest\n public void testForActivity() {\n solo.assertCurrentActivity(\"Wrong activity\", WelcomeActivity.class);\n }", "protected abstract void startActivityForResult(final T androidComponent,\n final Intent intent,\n final int requestCode);", "public void test030301() {\n\t\tActivityMonitor activityMonitor = getInstrumentation().addMonitor(MainActivity.class.getName(), null, false);\n\t\t//User click \"Change User\"\n\t\tactivity.runOnUiThread(new Runnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tassertTrue(UserButton.performClick());\t\n\n\t\t\t\t// opening a dialog\n\t\t \t// access the alert dialog using the getDialog() method created in the activity\n\t\t\t\tAlertDialog d = (AlertDialog) activity.getDialog();\t\t\t\t\n\t\t\t}\t\n\t\t});\n\t\t\n\t\t// get current activity\t\t\t\n\t\tMainActivity myActivity = getActivity();\n\t\t// click \"Claimant\" button and start next activity\n\t\tmyActivity.runOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tActivityMonitor activityMonitor00 = getInstrumentation().addMonitor(ClaimantClaimListActivity.class.getName(), null, false);\n\t\t\t\t// click button and open next activity.\n\t\t\t\tClaimantButton.performClick();\n\t\t\t\tClaimantClaimListActivity nextActivity = (ClaimantClaimListActivity) getInstrumentation().waitForMonitorWithTimeout(activityMonitor00, 10000);\n\t\t\t\t// next activity is opened and captured.\n\t\t\t\tassertNotNull(nextActivity);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 1\n\t\t\t\t */\n\t\t\t\t// view which is expected to be present on the screen\t\t\t\n\t\t\t\tfinal View decorView1 = nextActivity.getWindow().getDecorView();\n\t\t\t\t// layout of claim list\n\t\t\t\tlistView = (ListView) nextActivity.findViewById(ca.ualberta.CMPUT301W15T06.R.id.claimListView);\n\t\t\t\t// check if it is on screen\n\t\t\t\tViewAsserts.assertOnScreen(decorView1, listView);\n\t\t\t\t// check whether the Button object's width and height attributes match the expected values\n\t\t\t\tfinal ViewGroup.LayoutParams layoutParams11 = listView.getLayoutParams();\n\t\t\t\tassertEquals(layoutParams11.width, WindowManager.LayoutParams.MATCH_PARENT);\n\t\t\t\tassertEquals(layoutParams11.height, WindowManager.LayoutParams.WRAP_CONTENT);\t\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 2,3\n\t\t\t\t */\n\t\t\t\t// Click the menu option\n\t\t\t\tint count_be = u.getClaimList().size();\n\t\t\t\tActivityMonitor am = getInstrumentation().addMonitor(ClaimantClaimListActivity.class.getName(), null, false);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 4\n\t\t\t\t */\n\t\t\t\tgetInstrumentation().invokeMenuActionSync(nextActivity,ca.ualberta.CMPUT301W15T06.R.id.filter, 1);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 5\n\t\t\t\t */\t\t\n\t\t\t\t// test alert dialog (contains saved tags)\n\t\t\t\tAlertDialog d = (AlertDialog) nextActivity.getDialog();\n\t\t\t\tassertNotNull(d);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 6a\n\t\t\t\t */\n\t\t\t\t//\"Filter Model\" button\n\t\t\t\tButton positiveButton = d.getButton(DialogInterface.BUTTON_POSITIVE);\n\t\t\t\tassertNotNull(positiveButton);\n\t\t\t\tpositiveButton.performClick();\n\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 6b\n\t\t\t\t */\n\t\t\t\t//\"show all model\" button\n\t\t\t\tButton negativeButton = d.getButton(DialogInterface.BUTTON_NEGATIVE);\n\t\t\t\tassertNotNull(negativeButton);\n\t\t\t\tnegativeButton.performClick();\n\t\t\t\t// all claims are shown\n\t\t\t\tint count_all = u.getClaimList().size();\n\t\t\t\tassertEquals(count_be, count_all);\n\n\t\t\t\t//finish activity\n\t\t\t\tnextActivity.finish();\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tactivity.finish();\n\t}", "public void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}", "@Test\n public void resultTest() {\n assertEquals(Integer.valueOf(1), authResponse.getResult());\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "public void receiveResultmain(\n ) {\n }", "public IStatus getResult();", "public void testRun() {\n\t\tsolo.waitForActivity(\"First_Activity\", 2000);\n //Take screenshot\n solo.takeScreenshot();\n //Sleep for 8158 milliseconds\n\t\tsolo.sleep(8158);\n //Click on click for second page\n\t\tsolo.clickOnView(solo.getView(\"button\"));\n //Wait for activity: 'sai.myfirstapp.com.sai.Second_Activity'\n\t\tassertTrue(\"Second_Activity is not found!\", solo.waitForActivity(\"Second_Activity\"));\n //Sleep for 1030 milliseconds\n\t\tsolo.sleep(1030);\n //Click on go back\n\t\tsolo.clickOnView(solo.getView(\"button2\"));\n //Sleep for 2902 milliseconds\n\t\tsolo.sleep(2902);\n //Click on click for second page\n\t\tsolo.clickOnView(solo.getView(\"button\"));\n //Take screenshot\n solo.takeScreenshot();\n //Wait for activity: 'sai.myfirstapp.com.sai.Second_Activity'\n\t\tassertTrue(\"Second_Activity is not found!\", solo.waitForActivity(\"Second_Activity\"));\n //Sleep for 2551 milliseconds\n\t\tsolo.sleep(2551);\n //Click on go back\n\t\tsolo.clickOnView(solo.getView(\"button2\"));\n //Sleep for 1157 milliseconds\n\t\tsolo.sleep(1157);\n //Click on click for second page\n\t\tsolo.clickOnView(solo.getView(\"button\"));\n //Wait for activity: 'sai.myfirstapp.com.sai.Second_Activity'\n\t\tassertTrue(\"Second_Activity is not found!\", solo.waitForActivity(\"Second_Activity\"));\n //Sleep for 1114 milliseconds\n\t\tsolo.sleep(1114);\n //Click on go back\n\t\tsolo.clickOnView(solo.getView(\"button2\"));\n //Sleep for 870 milliseconds\n\t\tsolo.sleep(870);\n //Click on click for second page\n\t\tsolo.clickOnView(solo.getView(\"button\"));\n //Wait for activity: 'sai.myfirstapp.com.sai.Second_Activity'\n\t\tassertTrue(\"Second_Activity is not found!\", solo.waitForActivity(\"Second_Activity\"));\n //Take screenshot\n solo.takeScreenshot();\n //Click on go back\n\t\tsolo.clickOnView(solo.getView(\"button2\"));\n\t}", "void mo24178a(ResultData resultdata);", "@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"TC on Test sucess\"+\" \"+result.getName());\t\r\n\t}", "protected void invokeResults() {\r\n\t\t// Create the intent.\r\n\t\tIntent plantResultsIntent = new Intent(this, PlantResultsActivity.class);\r\n\t\t\r\n\t\t// create a bundle to pass data to the results screen.\r\n\t\tBundle data = new Bundle();\r\n\t\tdata.putString(PLANT_SEARCH_TERM, actPlantName.getText().toString());\r\n\t\t// add the bundle to the intent\r\n\t\tplantResultsIntent.putExtras(data);\r\n\t\t// start the intent, and tell it we want results.\r\n\t\tstartActivityForResult(plantResultsIntent, \t1);\r\n\t}", "public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}", "public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}", "public boolean execActivityResult( int request, int result, Intent data ) {\n\t\tboolean ret = true;\n switch ( request) {\n\t\t\tcase REQUEST_DEVICE_CONNECT:\n\t\t\t\texecActivityResultDevice( result, data );\n \tbreak;\n \tcase REQUEST_ADAPTER_ENABLE:\n\t\t\t\tret = execActivityResultAdapter( result, data );\n \tbreak; \n \t}\n return ret;\n }", "public void testRun() {\n\t\tsolo.waitForActivity(\"StartActivity\", 2000);\n //Wait for activity: 'com.bitdubai.android_core.app.DesktopActivity'\n\t\tassertTrue(\"DesktopActivity is not found!\", solo.waitForActivity(\"DesktopActivity\"));\n //Set default small timeout to 66809 milliseconds\n\t\tTimeout.setSmallTimeout(66809);\n //Click on Next\n\t\tsolo.clickOnView(solo.getView(\"btn_got_it\"));\n //Click on Next\n\t\tsolo.clickOnView(solo.getView(\"btn_got_it\"));\n //Click on Next\n\t\tsolo.clickOnView(solo.getView(\"btn_got_it\"));\n //Click on Next\n\t\tsolo.clickOnView(solo.getView(\"btn_got_it\"));\n //Click on Got it\n\t\tsolo.clickOnView(solo.getView(\"btn_got_it\"));\n //Wait for activity: 'com.bitdubai.android_core.app.DesktopActivity'\n\t\tassertTrue(\"DesktopActivity is not found!\", solo.waitForActivity(\"DesktopActivity\"));\n //Click on ImageView\n\t\tsolo.clickOnView(solo.getView(\"image_view\", 26));\n //Wait for activity: 'com.bitdubai.android_core.app.DesktopActivity'\n\t\tassertTrue(\"DesktopActivity is not found!\", solo.waitForActivity(\"DesktopActivity\"));\n //Click on LinearLayout\n\t\tsolo.clickInRecyclerView(3, 0);\n //Wait for activity: 'com.bitdubai.android_core.app.AppActivity'\n\t\tassertTrue(\"AppActivity is not found!\", solo.waitForActivity(\"AppActivity\"));\n //Wait for dialog\n //Click on Be John Doe\n\t\ttry {\n\t\t\t//assertTrue(\"DesktopActivity is not found!\", solo.waitForDialogToOpen(5000));\n\t\t\tsolo.clickOnView(solo.getView(\"btn_left\"));\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tsolo.wait(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Click on ImageView\n\t\tsolo.clickOnView(solo.getView(android.widget.ImageButton.class, 0));\n\t}", "public void onTestSuccess(ITestResult result) {\n \tSystem.out.println(\"The test case is passed :\"+result.getName());\n }", "protected abstract void onCustomSuccess(T result);", "@Override\n\tpublic void result(ContactResult arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t}", "@Override\r\n\t\tprotected void onPostExecute(Integer result) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tsuper.onPostExecute(result);\r\n\r\n\t\t\tif (result == 1) {\r\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(\r\n\t\t\t\t\t\tgetActivity());\r\n\t\t\t\talert.setMessage(\"Load instruction performed\");\r\n\t\t\t\talert.setTitle(\"Success\");\r\n\t\t\t\talert.setPositiveButton(\"Okay\",\r\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\talert.show();\r\n\t\t\t} else if (result == 0) {\r\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(\r\n\t\t\t\t\t\tgetActivity());\r\n\t\t\t\talert.setMessage(\"Failed\");\r\n\t\t\t\talert.setTitle(\"try again\");\r\n\t\t\t\talert.show();\r\n\r\n\t\t\t}\r\n\r\n\t\t}", "public void mo5062c(Result result) {\n }", "public void informResult(Object content){\n\n\t\tif( isParticipant() && ( getState() == RequestProtocolState.SENDING_RESULT ) ){\n\t\t\tsendMessage(content, Performative.INFORM, getInitiator());\n\t\t\tsetFinalStep();\n\t\t}\n\t\telse if( isInitiator() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.16\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.17\")); //$NON-NLS-1$\n\t\t}\n\t}", "private void openNextActivity(Intent intent) {\n\n String message = intent.getStringExtra(\"phase\");\n\n Log.d(\"STATE\", \"Waiting activity, phase is -> \" + message );\n if(message != null) {\n if (message.equals(\"USER_JOINED\")) { //TODO: This should be for ready to vote.\n Log.d(\"STATE\", \"Waiting activity, USER JOINED\" );\n\n Intent i = new Intent(this, VoteActivity.class);\n startActivity(i);\n } else if (message.equals(\"result\")) { //TODO: Change this to the new \"phase\" value\n Log.d(\"STATE\", \"Waiting activity. Meadle is ready\" );\n //Notification has been received that alerts meadle is complete\n MeadleDataManager.setHasResult(this);\n\n Intent i = new Intent(this, ResultsActivity.class);\n startActivity(i);\n } else if(message.equals(\"VOTING_FINISHED\")){\n Log.d(\"Votiing Finished\",intent.getExtras().toString());\n Intent i = new Intent(this,MeetingPointActivity.class);\n i.putExtras(intent.getExtras());\n startActivity(i);\n }\n }\n }", "@Override\r\n\tpublic boolean results()\r\n\t{\r\n\t\treturn this.results(this.getRobot());\r\n\t}", "public static void resultMessage (int result) {\n System.out.println(\"The result of choosed operation is: \" + result);\n }", "@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\tpublic void onTestSuccess(ITestResult result) {\n\t\textentTest.get().pass(\"I successfully Pass: \" + result.getName());\n\t}", "void onComplete(ResultModel result);", "public void goTestActivity()\n\t {\n\t }", "void showResultActivity() {\n\n Intent intent = new Intent();\n intent.setClass(this, ScanResultActivity.class);\n startActivity(intent);\n finish();\n\n playEffect();\n }", "public static void handleSuccess(final RpcResponse resultData, final Activity activity, final LoginCallback loginCallback) {\n LoginReturnData returnValue = (LoginReturnData) resultData.returnValue;\n final int code = resultData.code;\n SDKLogger.d(TAG, \"asyncExecute code = \" + code);\n if (code == 3000) {\n Session session = null;\n try {\n if (resultData.returnValue != null) {\n SDKLogger.d(TAG, \"asyncExecute returnValue not null \");\n if (!TbAuthContext.needSession || TextUtils.equals(TbAuthContext.sSceneCode, \"10010\")) {\n session = SessionConvert.convertLoginDataToSeesion(returnValue);\n } else {\n ((SessionService) AliMemberSDK.getService(SessionService.class)).refreshWhenLogin(Site.TAOBAO, returnValue);\n session = ((SessionService) AliMemberSDK.getService(SessionService.class)).getSession();\n }\n }\n final Session finalSession = session;\n ((MemberExecutorService) AliMemberSDK.getService(MemberExecutorService.class)).postUITask(new Runnable() {\n public void run() {\n RpcPresenter.doWhenResultOk(activity, loginCallback, finalSession);\n }\n });\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (code == 13060) {\n String doubleCheckUrl = returnValue.h5Url;\n SDKLogger.d(TAG, \"asyncExecute doubleCheckUrl = \" + doubleCheckUrl);\n if (!TextUtils.isEmpty(doubleCheckUrl) && activity != null) {\n Activity startFrom = activity;\n CallbackContext.setActivity(startFrom);\n Intent intent = new Intent(startFrom, TbAuthWebViewActivity.class);\n intent.putExtra(\"url\", doubleCheckUrl);\n intent.putExtra(\"token\", returnValue.token);\n intent.putExtra(\"scene\", returnValue.scene);\n TbAuthWebViewActivity.token = returnValue.token;\n TbAuthWebViewActivity.scene = returnValue.scene;\n activity.startActivityForResult(intent, RequestCode.OPEN_DOUBLE_CHECK);\n }\n } else {\n ((MemberExecutorService) AliMemberSDK.getService(MemberExecutorService.class)).postUITask(new Runnable() {\n public void run() {\n SDKLogger.d(RpcPresenter.TAG, \"15 : \" + resultData.message);\n RpcPresenter.doWhenResultFail(activity, loginCallback, 15, \"login:code \" + code + \" \" + resultData.message);\n }\n });\n }\n }", "@Override\n public void OnSuccessfullResponse(String result) {\n String resultSet[] = result.split(\":\");\n switch (resultSet[0]){\n case \"topoffers\":\n GetPromotions promotionsTask = (GetPromotions) new GetPromotions(resultSet[1]);\n promotionsTask.setContext(this);\n promotionsTask.setListener(this);\n promotionsTask.execute();\n break;\n case \"aisle\":\n GetAisleRecommendationsTask aisleRecommendationsTask = (GetAisleRecommendationsTask) new GetAisleRecommendationsTask(resultSet[1]);\n aisleRecommendationsTask.setContext(this);\n aisleRecommendationsTask.setListener(this);\n aisleRecommendationsTask.execute();\n break;\n case \"thankyou\":\n default:\n Intent intent = new Intent(getApplicationContext(), ThankYouActivity.class);\n startActivity(intent);\n break;\n }\n\n }", "public ResultInterpreter(final Intent intent){\n mIntent = intent;\n }", "int getResult();", "private void result(String result) {\n\n Log.d(LOG_TAG, \"result method\");\n setInfo(result + \"\\n НОВАЯ ИГРА\" + \"\\n побед первого игрока =\" + winsOfPlayerOne + \"\\n побед второго игрока:\" + winsOfPlayerTwo);\n enableAllButtons(false);\n startNewGame();\n Toast.makeText(this, \"Игра окончена\", Toast.LENGTH_LONG).show();\n\n }", "public void receiveResultdivide3(\n loadbalance.LoadBalanceStub.Divide3Response result\n ) {\n }", "public void receiveResultthirdOrderSystem(\n com.xteam.tourismpay.PFTMXStub.ThirdOrderSystemResponse result) {\n }", "@Override\n public void onClick(View view) {\n Intent question3Intent = new Intent(Question4Activity.this, Question3Activity.class);\n question3Intent.putExtra (\"q1result\", resultQ1);\n question3Intent.putExtra (\"q2result\", resultQ2);\n startActivity(question3Intent);\n }", "public com.onedrive.sdk.extensions.AsyncOperationStatus generateResult(com.onedrive.sdk.http.IHttpRequest r2, com.onedrive.sdk.http.IConnection r3, com.onedrive.sdk.serializer.ISerializer r4, com.onedrive.sdk.logger.ILogger r5) throws java.lang.Exception {\n /*\n r1 = this;\n int r2 = r3.getResponseCode()\n r0 = 303(0x12f, float:4.25E-43)\n if (r2 != r0) goto L_0x001e\n java.lang.String r2 = \"Item copy job has completed.\"\n r5.logDebug(r2)\n java.util.Map r2 = r3.getHeaders()\n java.lang.String r3 = \"Location\"\n java.lang.Object r2 = r2.get(r3)\n java.lang.String r2 = (java.lang.String) r2\n com.onedrive.sdk.extensions.AsyncOperationStatus r2 = com.onedrive.sdk.extensions.AsyncOperationStatus.createdCompleted(r2)\n return r2\n L_0x001e:\n r2 = 0\n java.io.BufferedInputStream r5 = new java.io.BufferedInputStream // Catch:{ all -> 0x0048 }\n java.io.InputStream r0 = r3.getInputStream() // Catch:{ all -> 0x0048 }\n r5.<init>(r0) // Catch:{ all -> 0x0048 }\n java.lang.String r2 = com.onedrive.sdk.http.DefaultHttpProvider.streamToString(r5) // Catch:{ all -> 0x0046 }\n java.lang.Class<com.onedrive.sdk.extensions.AsyncOperationStatus> r0 = com.onedrive.sdk.extensions.AsyncOperationStatus.class\n java.lang.Object r2 = r4.deserializeObject(r2, r0) // Catch:{ all -> 0x0046 }\n com.onedrive.sdk.extensions.AsyncOperationStatus r2 = (com.onedrive.sdk.extensions.AsyncOperationStatus) r2 // Catch:{ all -> 0x0046 }\n java.util.Map r3 = r3.getHeaders() // Catch:{ all -> 0x0046 }\n java.lang.String r4 = \"Location\"\n java.lang.Object r3 = r3.get(r4) // Catch:{ all -> 0x0046 }\n java.lang.String r3 = (java.lang.String) r3 // Catch:{ all -> 0x0046 }\n r2.seeOther = r3 // Catch:{ all -> 0x0046 }\n r5.close()\n return r2\n L_0x0046:\n r2 = move-exception\n goto L_0x004b\n L_0x0048:\n r3 = move-exception\n r5 = r2\n r2 = r3\n L_0x004b:\n if (r5 == 0) goto L_0x0050\n r5.close()\n L_0x0050:\n throw r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onedrive.sdk.concurrency.AsyncMonitorResponseHandler.generateResult(com.onedrive.sdk.http.IHttpRequest, com.onedrive.sdk.http.IConnection, com.onedrive.sdk.serializer.ISerializer, com.onedrive.sdk.logger.ILogger):com.onedrive.sdk.extensions.AsyncOperationStatus\");\n }", "void finish(String result, int resultCode);", "private void finishTest() {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(FINAL_SCORE, score);\n setResult(RESULT_OK, resultIntent);\n// finish is to close the activity\n finish();\n }", "@Test\n public void test_rf_continue_button_opens_correct_activity() {\n //Click the positive button in the dialog\n onView(withText(\"I understand\")).perform(click());\n //Find the views and perform action\n onView(withId(R.id.redFlag_continue)).perform(click());\n //Check if action returns desired outcome\n intended(hasComponent(ObservableSignsActivity.class.getName()));\n }", "public void getResult(ITestResult result, String shotPath) throws IOException {\n if (result.getStatus() == ITestResult.FAILURE){\n test.log(Status.FAIL, result.getThrowable().getMessage());\n }\n\n }", "public void receiveResultexecute(\n loadbalance.LoadBalanceStub.ExecuteResponse result\n ) {\n }", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n switch (resultCode) {\n case 1:\n Log.d(TAG,\"yay running\");\n break;\n case 0:\n Log.d(TAG,\"yay finish\");\n break;\n case -1:\n Log.d(TAG,\"yay error\");\n break;\n }\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 }", "@Override\n public void onClick(View ve) {\n Intent intent = new Intent(MainActivity.this, MainActivity2.class);\n\n // añadimos un valor extra al intent, en este caso el texto que haya en el text view\n intent.putExtra(Values.CLAVE_INTENT, input.getText().toString());\n\n // intent.putExtra(Values.CLAVE_INTENT, getText(R.string.helloWorld));\n\n // cambiamos de activity esperando un resultado\n // deja la activity en pausa hasta que devuelva un resultCode esperado (un numero definido en la clase values)\n startActivityForResult(intent, Values.REQ_ACT_2);\n\n }", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t}", "Result getResult();", "public int getResult(){\r\n\t\t return result;\r\n\t }", "@Override\n public void run() {\n String scanNumText = result.getText();\n Toast.makeText(ItemScan.this, scanNumText, Toast.LENGTH_SHORT).show();\n Intent intent = getIntent();\n intent.putExtra(\"Barcode\", scanNumText);\n setResult(Activity.RESULT_OK, getIntent());\n finish();\n }", "private void setAnswerResult(boolean b){\n Intent i=new Intent();\n i.putExtra(Is_Cheated,b);\n setResult(RESULT_OK,i);\n\n }", "public void receiveResultextensionAmbito(\r\n es.mitc.redes.urbanismoenred.serviciosweb.v1_86.UrbrWSServiceStub.ExtensionAmbitoResponseE result\r\n ) {\r\n }", "protected boolean gotResult (SurveyQuestion result) {\n _cache.questionUpdated(_survey, _questionIndex, result);\n Link.replace(Pages.ADMINZ, \"survey\", \"e\", _survey.surveyId);\n return true;\n }", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\tLog.e(TAG,result);\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void result(String result) {\n\t\t\t\tLog.e(TAG,result);\t\n\t\t\t\t}", "@Test\n public void resultMessageTest() {\n assertEquals(\"System: Accepted Transaction\", authResponse.getResultMessage());\n }", "public void mo21803a(int i, int i2, Intent intent) {\n mo21834b(\"onActivityResult\", new Object[]{Integer.valueOf(i), Integer.valueOf(i2), intent});\n }", "public void recordMessage2(String result, String number) {\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"en-US\");\n\n startActivityForResult(intent, 2);\n }", "@Override\n public void onActivityResult (int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode)\n {\n case Values.REQ_ACT_2:\n {\n // si el resultado que viene del activity2 es OK\n if (resultCode == RESULT_OK)\n {\n // ponemos el texto que viene en el intent del activity2 en el edit text del activity1\n tvHello.setText(data.getStringExtra(Values.CLAVE_INTENT));\n\n // GUARDAR DATOS\n editor = sharedPref.edit();\n String valor = data.getStringExtra(Values.CLAVE_INTENT);\n editor.putString(getString(R.string.clave), valor);\n editor.apply();\n }\n break;\n }\n\n }\n\n\n }", "public void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"*********Test onTestSuccess :\"+result.getName());\r\n\t\t\r\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (result != null) {\n if (result.getContents() == null) {\n Toast.makeText(this, \"Result Not Found\", Toast.LENGTH_LONG).show();\n } else {\n partNumber = result.getContents();\n new BackgroundTaskScanQrCode().execute();\n }\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }", "public void receiveResultexecute(\n com.exacttarget.wsdl.partnerapi.ExecuteResponseMsgDocument result\n ) {\n }", "public abstract boolean mo66251a(Result<T> result);", "@Test\n public void intentTest(){\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //Recyclerview scroll to position\n onView(ViewMatchers.withId(R.id.recycler_recipe)).perform(RecyclerViewActions.scrollToPosition(4));\n\n //Perform Recyclerview click on item at position\n onView(withId(R.id.recycler_recipe)).perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n\n //Check if intent (RecipeActivity to StepDetailActivity) has RECIPE_INTENT_EXTRA\n intended(hasExtraWithKey(Constatns.STEPS_LIST));\n\n }", "@Test\n public void triggerIntentChange_v2(){\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(hasComponent(SecondActivity.class.getName())); /*that can be used also */\n }", "@Override\n public void onSuccess(@AttentionSuccessCodes int result, long timestamp) {\n if (!userState.mCurrentAttentionCheck.mIsFulfilled) {\n callbackInternal.onSuccess(result, timestamp);\n userState.mCurrentAttentionCheck.mIsFulfilled = true;\n }\n\n synchronized (mLock) {\n userState.mAttentionCheckCache = new AttentionCheckCache(\n SystemClock.uptimeMillis(), result,\n timestamp);\n }\n StatsLog.write(\n StatsLog.ATTENTION_MANAGER_SERVICE_RESULT_REPORTED,\n result);\n }", "public void onResultConsumed() {\n }", "@Override\n\t\t\t\t\t\tpublic void gotResult(int code, String arg1, Set<String> arg2) {\n\t\t\t\t\t\t\tSystem.out.println(\"code\"+code);\n\t\t\t\t\t\t\tLog.i(\"注册极光结果放回\", String.valueOf(code));\n\t//\t\t\t\t\t\tToast.makeText(RegisterAcountActivity.this, code, 0).show();\n\t\t\t\t\t\t}", "public Result b(Result result) {\n f.obtainMessage(1, new AsyncTaskResult(this, result)).sendToTarget();\n return result;\n }", "public void CheckFinalResult(){\n\n if(TempPassword.equals(PasswordHolder))\n {\n\n Toast.makeText(MainActivity.this,\"Login Successfully\",Toast.LENGTH_LONG).show();\n\n // Going to Dashboard activity after login success message.\n Intent intent = new Intent(MainActivity.this, ThirdActivity.class);\n\n // Sending Email to Dashboard Activity using intent.\n intent.putExtra(UserName, NameHolder);\n\n startActivity(intent);\n\n\n }\n else {\n\n Toast.makeText(MainActivity.this,\"UserName or Password is Wrong, Please Try Again.\",Toast.LENGTH_LONG).show();\n\n }\n TempPassword = \"NOT_FOUND\" ;\n\n }", "@Override\n public void onCheckButtonClick() {\n\n String result;\n try {\n int a = Integer.parseInt(view.getFirstNumberTextViewValue());\n int b = Integer.parseInt(view.getSecondNumberTextViewValue());\n result = model.checkNumbers(a,b);\n } catch (NumberFormatException e) {\n view.showToast(\"You gave wrong input!!!\");\n return;\n } catch (WrongParametersException e) {\n view.showToast(e.getMessage());\n return;\n }\n Intent intent = view.createNewIntent(SecondActivity.class);\n intent.putExtra(\"result\", result);\n view.startNewActivity(intent);\n }", "@Override\n public void handleResult(com.google.zxing.Result rawResult) {\n if (rawResult.getText().length() < 4) {\n mScannerView.resumeCameraPreview(SimpleScanner.this);\n Toast.makeText(this, \"Wrong QR Code\", Toast.LENGTH_SHORT).show();\n } else {\n Result = rawResult.getText().substring(0, 4);\n MachineID = rawResult.getText().substring(Result.length());\n if (Result.equals(Verification)) {\n Intent i = new Intent(SimpleScanner.this, DetailBreakdownPage2.class);\n String currentResponseDateFinish = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\", Locale.getDefault()).format(new Date());\n i.putExtra(\"MachineID\", MachineID);\n i.putExtra(\"ResponseDateFinish\", currentResponseDateFinish);\n i.putExtra(\"Line\", Line);\n i.putExtra(\"Station\", Station);\n i.putExtra(\"PIC\", PIC);\n startActivity(i);\n } else {\n mScannerView.resumeCameraPreview(SimpleScanner.this);\n Toast.makeText(this, \"Station tidak sesuai\", Toast.LENGTH_SHORT).show();\n }\n }\n }" ]
[ "0.61328334", "0.6093462", "0.6086866", "0.6029202", "0.58929074", "0.5841461", "0.57722354", "0.5751298", "0.57306117", "0.57206565", "0.5659083", "0.5637421", "0.5634546", "0.5614731", "0.5614089", "0.56066", "0.5605092", "0.55900127", "0.55822766", "0.5560943", "0.55179673", "0.551107", "0.547682", "0.547682", "0.54626524", "0.5462464", "0.5445011", "0.5443528", "0.543527", "0.54332364", "0.54299223", "0.54276574", "0.5424399", "0.5414954", "0.5410265", "0.54059476", "0.5402046", "0.5400075", "0.5392491", "0.5392491", "0.53695583", "0.53694826", "0.5365131", "0.5361749", "0.5361066", "0.53575546", "0.5356743", "0.53513664", "0.53450096", "0.5343485", "0.5340464", "0.5340372", "0.5335491", "0.5334358", "0.5331568", "0.5324472", "0.532207", "0.53158253", "0.5315364", "0.53132606", "0.5309138", "0.53002274", "0.5300076", "0.5292307", "0.5291012", "0.5290869", "0.5290768", "0.528775", "0.5286781", "0.5286628", "0.5280056", "0.52775353", "0.5272719", "0.5269723", "0.52671915", "0.52649355", "0.52628237", "0.52599937", "0.5253326", "0.525332", "0.5252557", "0.5251944", "0.5251944", "0.52483046", "0.5245692", "0.5240453", "0.5240363", "0.52388936", "0.52385855", "0.52317095", "0.52276486", "0.52246946", "0.522375", "0.52215415", "0.52128494", "0.52109575", "0.5210184", "0.5208768", "0.5208287", "0.5204342" ]
0.52984565
63
end::fieldsCtor[] Code snippet for initializing the GUI. This snippet will be executed in the graphic thread. It is an anonymous inner class. tag::initImplGraphic[]
void init ( String awtOrSwt) { this.gui.wdgInputText.setText("any text input"); this.gui.gralMng.createGraphic(awtOrSwt, 'E', this.log); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initAndShowGUI() {\n }", "private void initUI() {\n }", "@Override\n\tpublic void initGui() {\n\t\tfield_154330_a.init();\n\t\tsuper.initGui();\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "@Override\n public void initGUI() {\n\n }", "public GUI() {\n\t\tinitComponents();\n\t}", "public GUI() {\n initComponents();\n }", "public GUI() {\n initComponents();\n }", "private void initialize() {\n\ttry {\n\t\t// user code begin {1}\n\t\t// user code end\n\t\tsetName(\"PnlInterlisSyntax\");\n\t\tsetBorder(new javax.swing.border.EtchedBorder());\n\t\tsetLayout(new java.awt.BorderLayout());\n\t\tsetSize(382, 165);\n\t\tadd(getPnlEditor(), \"Center\");\n\t\tadd(getPnlDataSelector(), \"South\");\n\t\tadd(getPnlUsage(), \"North\");\n\t} catch (java.lang.Throwable ivjExc) {\n\t\thandleException(ivjExc);\n\t}\n\t// user code begin {2}\n\tgetPnlEditor().setToolTipText(getResourceString(\"PnlEditor_toolTipText\"));\n\tsetCurrentObject(null);\n\tgetPnlDataSelector().setListener(this);\n\tgetPnlUsage().setVisible(false);\n\t// user code end\n}", "public Gui() { \n preInitComponents(); \n initComponents();\n postInitComponents(); \n setVisible(true);\n appInitialization();\n }", "public void initGui()\n {\n Keyboard.enableRepeatEvents(true);\n field_50063_c = mc.ingameGUI.func_50013_c().size();\n field_50064_a = new GuiTextField(fontRenderer, 4, height - 12, width - 4, 12);\n field_50064_a.setMaxStringLength(100);\n field_50064_a.func_50027_a(false);\n field_50064_a.func_50033_b(true);\n field_50064_a.setText(field_50066_k);\n field_50064_a.func_50026_c(false);\n }", "public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tjavax.swing.SwingUtilities.invokeAndWait(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tcreateGUI();\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"createGUI didn't successfully complete: \"\n\t\t\t\t\t+ e.toString());\n\t\t}\n\t}", "public void initGui() {\r\n boolean var10000 = method_1147();\r\n this.buttonList.clear();\r\n this.field_985 = this.height / 4 - 52;\r\n boolean var1 = var10000;\r\n this.field_986 = this.height - 29;\r\n bcb var10001 = new bcb;\r\n var10001.method_748(1, this.width / 2 - 98, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2947));\r\n this.field_972 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(2, this.width / 2 + 102, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2946));\r\n this.field_973 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(3, this.width / 2 + 2, this.method_1143(2), 60, 20, String.valueOf(class_687.field_2948));\r\n this.field_974 = var10001;\r\n class_157 var4 = new class_157;\r\n int var10004 = this.width / 2 + 2;\r\n int var10005 = this.method_1143(3);\r\n String[] var3 = field_989;\r\n var4.method_833(50, var10004, var10005, 150, 20, \"X Pos: \", 1.0F, (float)(this.width - 25), (float)class_687.field_2949, true);\r\n this.field_979 = var4;\r\n var4 = new class_157;\r\n var4.method_833(60, this.width / 2 + 2, this.method_1143(4), 150, 20, \"Y Pos: \", 1.0F, (float)(this.height - 8), (float)class_687.field_2950, true);\r\n this.field_980 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(4, this.width / 2 + 2, this.method_1143(5), 60, 20, String.valueOf(class_687.field_2951));\r\n this.field_975 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(5, this.width / 2 + 2, this.method_1143(6), 60, 20, String.valueOf(class_687.field_2952));\r\n this.field_976 = var10001;\r\n var4 = new class_157;\r\n var4.method_833(70, this.width / 2 + 2, this.method_1143(7), 150, 20, \"x\", 0.0F, 10.0F, (float)class_687.field_2953, false);\r\n this.field_981 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(100, this.width / 2 - 155, this.field_986, 150, 20, \"Sauvegarder\");\r\n this.field_977 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(110, this.width / 2 + 5, this.field_986, 150, 20, \"Annuler\");\r\n this.field_978 = var10001;\r\n this.buttonList.add(this.field_972);\r\n this.buttonList.add(this.field_973);\r\n this.buttonList.add(this.field_974);\r\n this.buttonList.add(this.field_979);\r\n this.buttonList.add(this.field_980);\r\n this.buttonList.add(this.field_975);\r\n this.buttonList.add(this.field_976);\r\n this.buttonList.add(this.field_981);\r\n this.buttonList.add(this.field_977);\r\n this.buttonList.add(this.field_978);\r\n if(!var1) {\r\n int var2 = class_689.method_3977();\r\n ++var2;\r\n class_689.method_3975(var2);\r\n }\r\n\r\n }", "public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }", "public void init(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tbuildWindow();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"createGUI didn't complete successfully\");\r\n\t\t}\r\n\t}", "protected void initializeGUI() {\n\n\t}", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "void initUI();", "public void initComponents();", "public GUI() {\n initComponents();\n }", "public void init()\n {\n buildUI(getContentPane());\n }", "public void init() {\n fIconkit = new Iconkit(this);\n\n\t\tsetLayout(new BorderLayout());\n\n fView = createDrawingView();\n\n Panel attributes = createAttributesPanel();\n createAttributeChoices(attributes);\n add(\"North\", attributes);\n\n Panel toolPanel = createToolPalette();\n createTools(toolPanel);\n add(\"West\", toolPanel);\n\n add(\"Center\", fView);\n Panel buttonPalette = createButtonPanel();\n createButtons(buttonPalette);\n add(\"South\", buttonPalette);\n\n initDrawing();\n setBufferedDisplayUpdate();\n setupAttributes();\n }", "public TetrisGUI() {\r\n initializeFields();\r\n }", "public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }", "public orgGui() {\n initComponents();\n }", "public void init() {\n //Execute a job on the event-dispatching thread; creating this applet's GUI.\n setSize(500, 150);\n \ttry {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n createGUI();\n }\n });\n } catch (Exception e) { \n System.err.println(\"createGUI didn't complete successfully\");\n }\n \n }", "@Override\n public void initGui()\n {\n super.initGui();\n }", "public GraphicUI() {\n initComponents();\n jPanelAddr.setVisible(false);\n jButtonDBToAddr.setVisible(false);\n jFrameMap.setVisible(false);\n\n selectedFormat = 0;\n quickSearch = false;\n \ttextFieldDefaults = setFieldDefaults();\n \ttextFieldCurrents = setFieldDefaults();;\n\n }", "public void init() {\n initComponents();\n initData();\n }", "public abstract void initUiAndListener();", "private void init() {\n setText(\"Case Name\");\n createFieldsComp();\n GuiUtil.addSeparator(shell, SWT.HORIZONTAL);\n createBottomActionButtons();\n }", "public void init() {\n try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "private GUI()\n {\n makeGUI();\n }", "private void initialize() {\n\t\tjLabel3 = new JLabel();\n\t\tjLabel = new JLabel();\n\t\tthis.setLayout(null);\n\t\tthis.setBounds(new java.awt.Rectangle(0, 0, 486, 377));\n\t\tjLabel.setText(PluginServices.getText(this,\n\t\t\t\t\"Areas_de_influencia._Introduccion_de_datos\") + \":\");\n\t\tjLabel.setBounds(5, 20, 343, 21);\n\t\tjLabel3.setText(PluginServices.getText(this, \"Cobertura_de_entrada\")\n\t\t\t\t+ \":\");\n\t\tjLabel3.setBounds(6, 63, 190, 21);\n\t\tthis.add(jLabel, null);\n\t\tthis.add(jLabel3, null);\n\t\tthis.add(getLayersComboBox(), null);\n\t\tthis.add(getSelectedOnlyCheckBox(), null);\n\t\tthis.add(getMethodSelectionPanel(), null);\n\t\tthis.add(getResultSelectionPanel(), null);\n\t\tthis.add(getExtendedOptionsPanel(), null);\n\t\tconfButtonGroup();\n\t\tlayersComboBox.setSelectedIndex(0);\n\t\tinitSelectedItemsJCheckBox();\n\t\tdistanceBufferRadioButton.setSelected(true);\n\t\tlayerFieldsComboBox.setEnabled(false);\n\t\tverifyTypeBufferComboEnabled();\n\t}", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "public Gui() {\n initComponents();\n }", "private InstructGui() {\n }", "public UI() {\n initComponents();\n }", "public GUI() {\n }", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }", "public gui() {\n initComponents();\n }", "public gui() {\n initComponents();\n }", "private void initUI() {\r\n\t\tthis.form = new XdevGridLayout();\r\n\t\tthis.comboBoxState = new XdevComboBox<>();\r\n\t\tthis.lblSbxValidFrom = new XdevLabel();\r\n\t\tthis.dateSbxValidFrom = new XdevPopupDateField();\r\n\t\tthis.lblSbxAgeStartYear = new XdevLabel();\r\n\t\tthis.txtSbxAgeStartYear = new XdevTextField();\r\n\t\tthis.lblSbxCompany = new XdevLabel();\r\n\t\tthis.txtSbxCompany = new XdevTextField();\r\n\t\tthis.lblSbxWorker = new XdevLabel();\r\n\t\tthis.txtSbxWorker = new XdevTextField();\r\n\t\tthis.lblSbxState = new XdevLabel();\r\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\r\n\t\tthis.cmdSave = new XdevButton();\r\n\t\tthis.cmdClose = new XdevButton();\r\n\t\tthis.fieldGroup = new XdevFieldGroup<>(SalaryBvgBaseLine.class);\r\n\t\r\n\t\tthis.lblSbxValidFrom.setValue(\"Gültig ab\");\r\n\t\tthis.dateSbxValidFrom.setTabIndex(2);\r\n\t\tthis.lblSbxAgeStartYear.setValue(\"Alter ab\");\r\n\t\tthis.txtSbxAgeStartYear.setTabIndex(3);\r\n\t\tthis.lblSbxCompany.setValue(\"Arbeitgeber %\");\r\n\t\tthis.txtSbxCompany.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxCompany.setTabIndex(4);\r\n\t\tthis.lblSbxWorker.setValue(\"Arbeitnehmer %\");\r\n\t\tthis.txtSbxWorker.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxWorker.setTabIndex(5);\r\n\t\tthis.lblSbxState.setValue(\"Status\");\r\n\t\tthis.horizontalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.cmdSave.setIcon(FontAwesome.SAVE);\r\n\t\tthis.cmdSave.setCaption(\"Speichern\");\r\n\t\tthis.cmdSave.setTabIndex(8);\r\n\t\tthis.cmdSave.setClickShortcut(ShortcutAction.KeyCode.ENTER);\r\n\t\tthis.cmdClose.setIcon(FontAwesome.CLOSE);\r\n\t\tthis.cmdClose.setCaption(\"Schliessen\");\r\n\t\tthis.cmdClose.setClickShortcut(ShortcutAction.KeyCode.ESCAPE);\r\n\t\tthis.fieldGroup.bind(this.dateSbxValidFrom, SalaryBvgBaseLine_.sbxValidFrom.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxAgeStartYear, SalaryBvgBaseLine_.sbxAgeStartYear.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxCompany, SalaryBvgBaseLine_.sbxCompany.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxWorker, SalaryBvgBaseLine_.sbxWorker.getName());\r\n\t\tthis.fieldGroup.bind(this.comboBoxState, SalaryBvgBaseLine_.sbxState.getName());\r\n\t\r\n\t\tthis.cmdSave.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdSave);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdSave, Alignment.MIDDLE_LEFT);\r\n\t\tthis.cmdClose.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdClose);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdClose, Alignment.MIDDLE_LEFT);\r\n\t\tthis.form.setColumns(2);\r\n\t\tthis.form.setRows(7);\r\n\t\tthis.comboBoxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.comboBoxState, 1, 4);\r\n\t\tthis.lblSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxValidFrom, 0, 0);\r\n\t\tthis.dateSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.dateSbxValidFrom, 1, 0);\r\n\t\tthis.lblSbxAgeStartYear.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxAgeStartYear, 0, 1);\r\n\t\tthis.txtSbxAgeStartYear.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxAgeStartYear.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxAgeStartYear, 1, 1);\r\n\t\tthis.lblSbxCompany.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxCompany, 0, 2);\r\n\t\tthis.txtSbxCompany.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxCompany.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxCompany, 1, 2);\r\n\t\tthis.lblSbxWorker.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxWorker, 0, 3);\r\n\t\tthis.txtSbxWorker.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxWorker.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxWorker, 1, 3);\r\n\t\tthis.lblSbxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxState, 0, 4);\r\n\t\tthis.horizontalLayout.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.horizontalLayout, 0, 5, 1, 5);\r\n\t\tthis.form.setComponentAlignment(this.horizontalLayout, Alignment.TOP_CENTER);\r\n\t\tthis.form.setColumnExpandRatio(1, 100.0F);\r\n\t\tfinal CustomComponent form_vSpacer = new CustomComponent();\r\n\t\tform_vSpacer.setSizeFull();\r\n\t\tthis.form.addComponent(form_vSpacer, 0, 6, 1, 6);\r\n\t\tthis.form.setRowExpandRatio(6, 1.0F);\r\n\t\tthis.form.setSizeFull();\r\n\t\tthis.setContent(this.form);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.cmdSave.addClickListener(event -> this.cmdSave_buttonClick(event));\r\n\t\tthis.cmdClose.addClickListener(event -> this.cmdClose_buttonClick(event));\r\n\t}", "private void initialize() {\n\tif (setup == false) {\n\t elementList.add(new GUISlider());\n\t elementList.add(new GUIChart());\n\t elementList.add(new GUIStatsDisplay());\n\t elementList.add(new GUIPID());\n\t elementList.add(new GUITimer());\n\t elementList.add(new GUINumericUpDown());\n\t setup = true;\n\t}\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\tSystem.out.println(\"Initializing Tetris...\");\n\t //Execute a job on the event-dispatching thread\n\t try {\n\t SwingUtilities.invokeAndWait(new Runnable() {\n\t public void run() {\n\t createUI();\n\t }\n\t });\n\t } catch (Exception e) {\n\t System.err.println(\"Error creating UI\");\n\t \te.printStackTrace();\n\t }\n\t}", "public GUI_IntroDatos() {\n initComponents();\n }", "public Interface ()\n {\n initComponents ();\n }", "public AplicationGUI() {\n initComponents();\n }", "public GUI()\n {\n initComponents();\n setSize(xSize, ySize);\n figures = new PFigure[numFigs];\n }", "private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\n\t}", "public void initGUI(){\n\t\t\n\t\t//the layout is a new BorderLayout\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t//the label will be north\t\n\t\tadd(createHeroList(), BorderLayout.NORTH);\n\t\t\n\t\t//the questions will be displayed center\t\t\n\t\tadd(createQuestions(), BorderLayout.CENTER);\n\t\t//the button panel should be south\n\t\tadd(createAnswerButtonPanel(), BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t \n\t}", "public PhotoViewerGUI() {\r\n initComponents();\r\n }", "public RagaiGUI() {\n initComponents();\n \n }", "public void init() {\n super.init();\n\n setDefaultInputNodes(1);\n setMinimumInputNodes(1);\n setMaximumInputNodes(1);\n\n setDefaultOutputNodes(1);\n setMinimumOutputNodes(1);\n setMaximumOutputNodes(Integer.MAX_VALUE);\n\n String guilines = \"\";\n guilines += \"Input your text string in the following box $title value TextField\\n\";\n setGUIBuilderV2Info(guilines);\n\n }", "protected void initialize()\n {\n uiFactory.configureUIComponent(this, UI_PREFIX);\n\n initializeFields();\n initializeLabels();\n initLayout();\n }", "public soal2GUI() {\n initComponents();\n }", "public PropsGUI() {\n initComponents();\n }", "public mainUI() {\n initComponents();\n }", "private void initialize() {\n\ttry {\n\t\t// user code begin {1}\n\t\t// user code end\n\t\tsetName(\"PlatformInfoPanel\");\n\t\tsetLayout(null);\n\t\tsetSize(353, 240);\n\t\tadd(getPnlOS(), getPnlOS().getName());\n\t\tadd(getPnlJava(), getPnlJava().getName());\n\t} catch (java.lang.Throwable ivjExc) {\n\t\thandleException(ivjExc);\n\t}\n\t// user code begin {2}\n\tgetTxtOSName().setText(System.getProperty(\"os.name\"));\n\tgetTxtOSArchitecture().setText(System.getProperty(\"os.arch\"));\n\tgetTxtOSVersion().setText(System.getProperty(\"os.version\"));\n\tgetTxtOSLocale().setText(java.util.Locale.getDefault().toString());\n\tgetTxtJavaVersion().setText(System.getProperty(\"java.version\"));\n\tgetTxtJavaVMVersion().setText(System.getProperty(\"java.vm.version\"));\n\t// user code end\n}", "private void initIMR_GuiBean() {\n\n imrGuiBean = new IMR_GuiBean(this);\n imrGuiBean.getParameterEditor(imrGuiBean.IMR_PARAM_NAME).getParameter().addParameterChangeListener(this);\n // show this gui bean the JPanel\n imrPanel.add(this.imrGuiBean,new GridBagConstraints( 0, 0, 1, 1, 1.0, 1.0,\n GridBagConstraints.CENTER, GridBagConstraints.BOTH, defaultInsets, 0, 0 ));\n //sets the Intensity measure for the IMR\n imrGuiBean.getSelectedIMR_Instance().setIntensityMeasure(this.SA_NAME);\n //initialise the SA Peroid values for the IMR\n this.getSA_PeriodForIMR(imrGuiBean.getSelectedIMR_Instance());\n }", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void buildGui() {\n\t}", "private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }", "public GUIView() {\n initComponents();\n setMaxThreads();\n setCountOfElements(1);\n setCountOfThreads(1);\n this.isReadyForCalculation = false;\n }", "private void initComponents() {\n LOOGER.info(\"Get init components\");\n this.loadButton = new JButton(\"Load\");\n this.fillButton = new JButton(\"Fill\");\n this.deleteButton = new JButton(\"Delete\");\n this.setLayout(new FlowLayout());\n LOOGER.info(\"components exit\");\n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initGUI() {\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\t// This is the story we took from Wikipedia.\n\t\tString story = \"The Internet Foundation Classes (IFC) were a graphics \"\n\t\t\t\t+ \"library for Java originally developed by Netscape Communications \"\n\t\t\t\t+ \"Corporation and first released on December 16, 1996.\\n\\n\"\n\t\t\t\t+ \"On April 2, 1997, Sun Microsystems and Netscape Communications\"\n\t\t\t\t+ \" Corporation announced their intention to combine IFC with other\"\n\t\t\t\t+ \" technologies to form the Java Foundation Classes. In addition \"\n\t\t\t\t+ \"to the components originally provided by IFC, Swing introduced \"\n\t\t\t\t+ \"a mechanism that allowed the look and feel of every component \"\n\t\t\t\t+ \"in an application to be altered without making substantial \"\n\t\t\t\t+ \"changes to the application code. The introduction of support \"\n\t\t\t\t+ \"for a pluggable look and feel allowed Swing components to \"\n\t\t\t\t+ \"emulate the appearance of native components while still \"\n\t\t\t\t+ \"retaining the benefits of platform independence. This feature \"\n\t\t\t\t+ \"also makes it easy to have an individual application's appearance \"\n\t\t\t\t+ \"look very different from other native programs.\\n\\n\"\n\t\t\t\t+ \"Originally distributed as a separately downloadable library, \"\n\t\t\t\t+ \"Swing has been included as part of the Java Standard Edition \"\n\t\t\t\t+ \"since release 1.2. The Swing classes are contained in the \"\n\t\t\t\t+ \"javax.swing package hierarchy.\\n\\n\";\n\t\t// We create the TextArea and pass the story in as an argument.\n\t\tJTextArea storyArea = new JTextArea(story);\n\t\tstoryArea.setEditable(true);\n\t\tstoryArea.setWrapStyleWord(true);\n\t\t// We create the ScrollPane and instantiate it with the TextArea as an argument\n\t\tJScrollPane area = new JScrollPane(storyArea);\t\t\t\n\t\tmainPanel.add(area);\t\n\t\tthis.setContentPane(mainPanel);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setVisible(true);\n\t}", "public CaptureGUI() {\n initComponents();\n }", "public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }", "private void initializateGUI() {\n\t\t\n\t\t\n\t\tthis.menuBar = buildMenuBar();\n\t\t\n\t\tthis.toolBar = buildToolBar();\n\t\t\n\t\tthis.container = (JComponent) ContainerViewFactory.getInstance().getContainerView(null);\n\t\t\n\t\tthis.status = buildStatusBar();\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.getViewport().add(this.container);\n\t\t\n\t\ttextResources.getString(\"application.title\").ifPresent(super::setTitle);\n\n\t\tif (this.menuBar != null) {\n\t\t\tsuper.setJMenuBar(this.menuBar);\n\t\t}\n\t\tsuper.setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.setMinimumSize(MINIMUM_SIZE);\n\t\tsuper.setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\n\t\tsuper.getRootPane().setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.getRootPane().setMinimumSize(MINIMUM_SIZE);\t\t\n\t\tsuper.getRootPane().setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\t\t\n\t\tsuper.setLayout(new BorderLayout());\n\t\t\n\t\tsuper.add(toolBar, BorderLayout.NORTH);\n\t\tsuper.add(scrollPane, BorderLayout.CENTER);\n\t\tsuper.add(status, BorderLayout.SOUTH);\n\t\t\n\t\tsuper.addWindowListener(new WindowAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tinitializationDialog = buildInitializationAction();\n\t\t\t\tinitializationDialog.setVisible(true);\n\t\t\t\tinitializationDialog.toFront();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tconfirmExitAction();\n\t\t\t}\n\t\t});\n\t\tthis.handlerInitializateGUI();\n\t}", "private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelComp(shell, this, upperWheelTitle);\n // upperColorWheel.setColor(colorArray.get(0));\n upperColorWheel.setColor(initial);\n\n // Create the color bar object that is displayed\n // in the middle of the dialog.\n colorBar = new ColorBarViewer(shell, this, sliderText, cmapParams);\n\n // Create the lower color wheel for the display.\n lowerColorWheel = new ColorWheelComp(shell, this, lowerWheelTitle);\n // lowerColorWheel.setColor(colorArray.get(colorArray.size() - 1));\n lowerColorWheel.setColor(initial);\n\n // Create the bottom control buttons.\n createBottomButtons();\n }", "public Gui() {\n\t\tsuper();\n\t\tinitGUI();\n\t}", "public adivinaGUI() {\n initComponents();\n }", "public Designer() {\n initComponents();\n }", "private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }", "private void initialize() {\r\n this.setSize(new Dimension(800,600));\r\n this.setContentPane(getJPanel());\r\n\r\n List<String> title = new ArrayList<String>();\r\n title.add(\"Select\");\r\n title.add(\"Field Id\");\r\n title.add(\"Field Name\");\r\n title.add(\"Field Type\");\r\n title.add(\"Image\");\r\n\r\n List<JComponent> componentList = new ArrayList<JComponent>();\r\n componentList.add(checkInit);\r\n componentList.add(fieldIdInit);\r\n componentList.add(filedNameInit);\r\n componentList.add(fieldTypeInit);\r\n componentList.add(imageButton);\r\n\r\n String []arrColumn = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n String []arrTitle = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n // init grid\r\n grid = new GridUtils(pageSheet, title, componentList, arrColumn, preButton, afterButton, 5, arrTitle);\r\n // set title\r\n grid.setPageInfo(pageInfoLbl);\r\n \r\n searchDetailList();\r\n \r\n initComboBox();\r\n \r\n setTitle(\"Page Select page\");\r\n\t}", "public GuiMain02() {\r\n\t\tinitialize();\r\n\t}", "private void initGui(){\n // TODO: add code for GUI initialization for a given auction\n }", "private void initcomponent() {\n\r\n\t}", "public void init() {\n\t\t//initializing graphics area\n \tcanvas = new FacePamphletCanvas();\n \tadd(canvas);\n \t\n\t\taddInteractors();\n\t\taddActionListeners();\n }", "public HomePageGUI() {\n initComponents();\n }", "private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}", "public GUI() {\n initComponents();\n this.setVisible(true);\n }", "private void initUI() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\trenderer = new LWJGLRenderer();\n\t\t\tgui = new GUI(stateWidget, renderer);\n\t\t\tthemeManager = ThemeManager.createThemeManager(StateWidget.class.getResource(\"gameui.xml\"), renderer);\n\t\t\tgui.applyTheme(themeManager);\n\t\t\t\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "public Test_GUI() {\n initComponents();\n }", "@Override\n public void init() {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n getContentPane().setBackground(Color.BLUE);\n this.setSize(450, 350);\n\n /* Create and display the applet */\n /*try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n */\n run();\n }", "public guiProntuarioVirtual() {\n initComponents();\n \n }", "public AlgorithmDesign() {\n initComponents();\n }", "public MHTYGUI() {\n\t\t\tinitComponents();\n\t\t}", "private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}", "private void setupUI() \n\t{\n\t\t\n\t\tthis.setLayout( new FormLayout() );\n\t\tmyInterfaceContainer = new Composite( this, SWT.NONE );\n\t\tmyInterfaceContainer.setLayoutData( FormDataMaker.makeFullFormData());\n\t\t\n\t\tsetupInterfaceContainer();\n\t}", "private void initialize() {\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(Color.white);\n\t\tthis.setBounds(new Rectangle(0, 0, 943, 615));\n this.setPreferredSize(new Dimension(890,570));\n this.setMinimumSize(new Dimension(890,570));\n\n\t\tm_GraphControlGradient = new GraphControl();\n\t\tm_GraphControlGradient.setBounds(new Rectangle(4, 16, 461, 285));\n\t\tm_GraphControlGradient.setControlsEnabled(false);\n\n\t\tm_GraphControlFlowRate = new GraphControl();\n\t\tm_GraphControlFlowRate.setBounds(new Rectangle(3, 16, 462, 241));\n\t\tm_GraphControlFlowRate.setControlsEnabled(false);\n\n\t\tthis.add(getJbtnPreviousStep(), null);\n\t\tthis.add(getJpanelGradientProfile(), null);\n\t\tthis.add(getJpanelFlowProfile(), null);\n\t\tthis.setVisible(true);\n\t\tthis.add(getJbtnHelp(), null);\n\t\tthis.add(getJpanelStep5(), null);\n\t\t\n\t\tthis.tmOutputModel.addTableModelListener(this);\n\t\tthis.addComponentListener(this);\n\t}", "public DatabaseGUI() {\n initComponents();\n refreshDatabaseTables();\n\n }", "public ExecutantGui() {\n initComponents();\n }", "private void init() {\n\t\tinitDesign();\n\t\tinitHandlers();\n\t}", "public ClientGUI() {\n initComponents();\n }", "public ClientGUI() {\n initComponents();\n }" ]
[ "0.7231272", "0.70949745", "0.7016095", "0.6969738", "0.6969738", "0.6957574", "0.68849885", "0.68794686", "0.68794686", "0.6865031", "0.6862084", "0.6814031", "0.6793033", "0.6791902", "0.6787293", "0.6786769", "0.6783193", "0.6776265", "0.67674685", "0.67594457", "0.6748657", "0.67470855", "0.6740543", "0.67346334", "0.6725807", "0.6698748", "0.66661316", "0.66542685", "0.66502064", "0.6647664", "0.6647493", "0.66205627", "0.66126907", "0.6596348", "0.65962595", "0.657166", "0.654778", "0.6546577", "0.6534438", "0.6530678", "0.65294003", "0.6518031", "0.65066385", "0.65066385", "0.6500858", "0.64954394", "0.64599156", "0.64537185", "0.64450157", "0.64422935", "0.6436887", "0.64365125", "0.64342004", "0.64293706", "0.6428076", "0.6422364", "0.6418742", "0.6414911", "0.6414045", "0.640991", "0.6408635", "0.6403249", "0.6402716", "0.6402162", "0.6399859", "0.63977575", "0.63834894", "0.6378884", "0.63711935", "0.6369498", "0.63647944", "0.6363418", "0.6358671", "0.6355843", "0.6355265", "0.6352923", "0.6352416", "0.63485867", "0.6347502", "0.6346148", "0.63460994", "0.6344893", "0.6339946", "0.6334524", "0.63308305", "0.63307154", "0.6330704", "0.6328349", "0.6327407", "0.6327187", "0.6324125", "0.6318378", "0.63158804", "0.6313118", "0.6312317", "0.6302261", "0.6298662", "0.6297232", "0.62869215", "0.62812746", "0.62812746" ]
0.0
-1
end::initImplGraphic[] tag::execute[] execute routine for any other actions than the graphical actions. The application may do some things beside.
void execute ( ) { //Now do nothing because all actions are done in the graphic thread. //A more complex application can handle some actions in its main thread simultaneously and independent of the graphic thread. // while(this.gui.gralMng.isRunning()) { try { if(this.gui.wdgButton2.wasReleased()) { String textOfField = this.gui.wdgInputText.getText(); this.gui.widgOutput.append("Button2 " + (++this.ctKeyStroke2) + " time, text=" + textOfField + "\n"); throw new Exception("test"); } Thread.sleep(100); } catch(Exception exc){ CharSequence sText = org.vishia.util.ExcUtil.exceptionInfo("unexpected: ", exc, 1, 10); this.log.sendMsg(9999, sText); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void executeActionButton();", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "public abstract void executeRunButton();", "abstract public void performAction();", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public abstract void init_actions() throws Exception;", "@Override\n public void Execute() {\n\n }", "protected Action getInitialDrawActions(String everythingGroup, Visualization visualization, Dictionary parameters) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "public interface IUserActionsManaged\n{\n void startCurving(PointF point, float pressure);\n void curving(PointF point, float pressure);\n void completeCurving(PointF point, float pressure);\n void cancelCurving(PointF point, float pressure);\n\n void startResizing();\n void resizing(PointF[] points);\n void completeResizing();\n\n void startDragging(PointF point);\n void dragging(PointF point);\n void completeDragging(PointF point);\n\n void showMenu();\n}", "public void Execute() {\n\n }", "@Override\n protected void doAct() {\n }", "@Override\n protected void execute() {\n\n SwingUtils.invokeLaterEDT(new Runnable() {\n /**\n * Show the application frame using EDT\n */\n @Override\n public void run() {\n logger.debug(\"OImaging.execute() handler called.\");\n\n // reset IRModelManager to fire an IRMODEL changed event to all registered listeners:\n IRModelManager.getInstance().start();\n\n // headless mode:\n final JFrame appFrame = App.getExistingFrame();\n if (appFrame != null) {\n appFrame.setVisible(true);\n }\n }\n });\n }", "protected void execute() {\n\t\t\n\t}", "@Override\r\n\tpublic void initActions() {\n\t\t\r\n\t}", "protected void execute() {\n \t// literally still do nothing\n }", "public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\n if (displayable == CheckVehicule) {//GEN-BEGIN:|7-commandAction|1|34-preAction\n if (command == okCommand1) {//GEN-END:|7-commandAction|1|34-preAction\n this.checkVehicule(); \n//GEN-LINE:|7-commandAction|2|34-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|3|19-preAction\n } else if (displayable == LoginForm) {\n if (command == exitCommand) {//GEN-END:|7-commandAction|3|19-preAction\n // write pre-action user code here\n exitMIDlet();//GEN-LINE:|7-commandAction|4|19-postAction\n // write post-action user code here\n } else if (command == okCommand) {//GEN-LINE:|7-commandAction|5|25-preAction\n connexion();\n \n//GEN-LINE:|7-commandAction|6|25-postAction\n \n }//GEN-BEGIN:|7-commandAction|7|53-preAction\n } else if (displayable == MauvaisIdentifiants) {\n if (command == okCommand5) {//GEN-END:|7-commandAction|7|53-preAction\n // write pre-action user code here\n switchDisplayable(null, getLoginForm());//GEN-LINE:|7-commandAction|8|53-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|9|49-preAction\n } else if (displayable == PoliceCheckBegin) {\n if (command == okCommand4) {//GEN-END:|7-commandAction|9|49-preAction\n this.policeCheckBegin();\n//GEN-LINE:|7-commandAction|10|49-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|11|45-preAction\n } else if (displayable == RecordVehicule) {\n if (command == okCommand3) {//GEN-END:|7-commandAction|11|45-preAction\n this.recordVehicule();\n//GEN-LINE:|7-commandAction|12|45-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|13|41-preAction\n } else if (displayable == VehiculeRightPlace) {\n if (command == okCommand2) {//GEN-END:|7-commandAction|13|41-preAction\n this.vehiculeRightPlace();\n \n//GEN-LINE:|7-commandAction|14|41-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|15|7-postCommandAction\n }//GEN-END:|7-commandAction|15|7-postCommandAction\n // write post-action user code here\n }", "protected void doPostAlgorithmActions() {\r\n\r\n if (displayLoc == NEW) {\r\n AlgorithmParameters.storeImageInRunner(getResultImage());\r\n }\r\n }", "@Override\n\tpublic void action() {\n\n\t}", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "protected abstract void execute();", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "public void performAction();", "@Override\n\tpublic void execute() {\n\t\thhobj.display();\n\t}", "protected void execute()\n\t{\n\t}", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "@Override\n \tpublic void addActions() {\n \t\t\n \t}", "public abstract String initExecute() throws Exception;", "public void execute() {\n execute0();\n }", "protected void execute() {\n\t}", "protected void execute() {\r\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void execute(){\n\t\t\n\t}", "public void doAction(){}", "public void execute() {\r\n\t\r\n\t}", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "@Override\n\tpublic void execute() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.execute();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.execute();\n\t\t}\n\t}", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void execute() {\n setExecuted(true);\n }", "protected void execute() {\n\n\t}", "public abstract void executeBagButton();", "protected void onClick() {\n for(Runnable action : onClick) action.run();\n }", "public void doInitialAction(){}", "public void execute() {\n\t\t\n\t}", "public abstract void execute();", "public abstract void execute();", "public abstract void execute();", "public void action() {\n action.action();\n }", "protected void execute() {}", "public void createActions(IMenuManager manager)\r\n\t{\r\n\t\tEditPart ep = main.getViewer().findObjectAt(clickLocation);\r\n\r\n\t\tif (ep instanceof RootEditPart)\r\n\t\t{\r\n\t\t\t// GRAPH POPUP\r\n\r\n\t\t\tboolean sif = false;\r\n\t\t\tboolean tcgasif = false;\r\n\t\t\tboolean basicsif = false;\r\n\t\t\tObject o = ((ChsRootEditPart) ep.getChildren().get(0)).getModel();\r\n\t\t\tif (o instanceof BasicSIFGraph || o instanceof org.gvt.model.sifl3.SIFGraph)\r\n\t\t\t{\r\n\t\t\t\tsif = true;\r\n\t\t\t\tbasicsif = o instanceof BasicSIFGraph;\r\n\r\n\t\t\t\ttcgasif = TCGASIFAction.okToRun(main, false);\r\n\t\t\t}\r\n\r\n\t\t\tif (tcgasif)\r\n\t\t\t{\r\n\t\t\t\tmanager.add(new ShowMutexGroupsAction(main));\r\n\t\t\t\tmanager.add(new HighlightTCGACaseAction(main));\r\n\t\t\t\tmanager.add(new UpdateTCGASIFForACaseAction(main));\r\n\t\t\t\tmanager.add(new LoadTCGASpecificReactionsAction(main));\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tif (basicsif)\r\n\t\t\t{\r\n\t\t\t\tmanager.add(new ShowFormatSeriesAction(main));\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tif (sif)\r\n\t\t\t{\r\n\t\t\t\tmanager.add(new ShowDruggableAction(main));\r\n\t\t\t\tmanager.add(new HighlightCOSMICGenesActions(main));\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tClosePathwayAction action = new ClosePathwayAction(main);\r\n\t\t\tif (sif) action.setText(\"Close Graph\");\r\n\t\t\tmanager.add(action);\r\n\r\n\t\t\tif (!sif)\r\n\t\t\t{\r\n\t\t\t\tmanager.add(new DuplicatePathwayAction(main));\r\n\t\t\t\tmanager.add(new DeletePathwayAction(main));\r\n\t\t\t\tmanager.add(new UpdatePathwayAction(main, false));\r\n\t\t\t}\r\n\t\t\tmanager.add(new Separator());\r\n\r\n\t\t\tif (ChisioMain.cBioPortalAccessor != null)\r\n\t\t\t{\r\n\t\t\t\tmanager.add(new FetchFromCBioPortalAction(main,\r\n\t\t\t\t\tFetchFromCBioPortalAction.CURRENT_STUDY));\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tmanager.add(new ZoomAction(main, 1, null));//clickLocation));\r\n\t\t\tmanager.add(new ZoomAction(main, -1, null));//clickLocation));\r\n\t\t\tmanager.add(new Separator());\r\n\t\t\tmanager.add(new RemoveHighlightsAction(main));\r\n\t\t\tmanager.add(new InspectorAction(main, true));\r\n\t\t\tmanager.add(new Separator());\r\n\t\t\tmanager.add(new LayoutInspectorAction(main));\r\n\t\t\tmain.getViewer().select(ep);\r\n\t\t}\r\n\t\telse if (ep instanceof NodeEditPart)\r\n\t\t{\r\n\t\t\t// NODE-COMPOUND POPUP\r\n\r\n\t\t\tObject o = ep.getModel();\r\n\t\t\tif ((o instanceof BasicSIFGroup && !((BasicSIFGroup) o).getMediators().isEmpty()) ||\r\n\t\t\t\t(o instanceof SIFGroup && !((SIFGroup) o).getMediators().isEmpty()))\r\n\t\t\t{\r\n\t\t\t\tQueryPCGetAction query = new QueryPCGetAction(main, true, QueryPCAction.QueryLocation.PC_MECH);\r\n\t\t\t\tquery.setText(\"Detailed View\");\r\n\t\t\t\tmanager.add(query);\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tExperimentData data = DataLegendAction.getData((NodeModel) o, main);\r\n\t\t\tif (data != null)\r\n\t\t\t\tmanager.add(new DataLegendAction(main, data));\r\n\r\n\t\t\tmanager.add(new HighlightSelectedAction(main));\r\n\t\t\tmanager.add(new RemoveHighlightFromSelectedAction(main));\r\n\t\t\tmanager.add(new DeleteAction(main));\r\n\t\t\tmanager.add(new InspectorAction(main, false));\r\n\t\t\tmanager.add(new Separator());\r\n\r\n\t\t\tMenuManager localQueryMenu = new MenuManager(\"&Local Query\");\r\n\t\t\tlocalQueryMenu.add(new LocalNeighborhoodQueryAction(main, true));\r\n\t\t\tlocalQueryMenu.add(new LocalGoIQueryAction(main, true));\r\n\t\t\tlocalQueryMenu.add(new LocalCommonStreamQueryAction(main, true));\r\n\t\t\tmanager.add(localQueryMenu);\r\n\r\n\t\t\tMenuManager pcQueryMenu = new MenuManager(\"&Pathway Commons Query (Level 3)\");\r\n\t\t\tMenuManager neighMenu = new MenuManager(\"&Neighborhood\");\r\n\t\t\tneighMenu.add(new QueryPCNeighborsAction(main, false, true, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tneighMenu.add(new QueryPCNeighborsAction(main, true, false, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tneighMenu.add(new QueryPCNeighborsAction(main, true, true, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tpcQueryMenu.add(neighMenu);\r\n\t\t\tpcQueryMenu.add(new QueryPCPathsBetweenAction(main, true, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tMenuManager commStreamMenu = new MenuManager(\"&Common Stream\");\r\n\t\t\tcommStreamMenu.add(new QueryPCCommonStreamAction(main, true, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tcommStreamMenu.add(new QueryPCCommonStreamAction(main, false, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tpcQueryMenu.add(commStreamMenu);\r\n manager.add(pcQueryMenu);\r\n\r\n NodeEditPart nep = (NodeEditPart) ep;\r\n Object model = nep.getModel();\r\n CBioPortalAccessor portalAccessor = ChisioMain.cBioPortalAccessor;\r\n\r\n if( (model instanceof Actor || model instanceof BasicSIFNode || model instanceof SIFNode)\r\n && main.hasExperimentData(ExperimentData.CBIOPORTAL_ALTERATION_DATA)\r\n && portalAccessor != null\r\n && !portalAccessor.getCurrentGeneticProfiles().isEmpty() )\r\n {\r\n manager.add(new Separator());\r\n manager.add(new CBioPortalDataStatisticsAction(main));\r\n }\r\n }\r\n\t\telse if (ep instanceof ChsEdgeEditPart)\r\n\t\t{\r\n\t\t\t// EDGE POPUP\r\n\r\n\t\t\tObject o = ep.getModel();\r\n\t\t\tif (o instanceof BasicSIFEdge || o instanceof SIFEdge)\r\n\t\t\t{\r\n\t\t\t\tQueryPCGetAction query = new QueryPCGetAction(main, true, QueryPCAction.QueryLocation.PC_MECH);\r\n\t\t\t\tquery.setText(\"Detailed View\");\r\n\t\t\t\tmanager.add(query);\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tmanager.add(new HighlightSelectedAction(main));\r\n\t\t\tmanager.add(new RemoveHighlightFromSelectedAction(main));\r\n\t\t\tmanager.add(new DeleteAction(main));\r\n\t\t\tmanager.add(new InspectorAction(main, false));\r\n\t\t}\r\n\t}", "public abstract void executeFightButton();", "private void drawInteractions(Graphics2D g2d, RenderContext myrc) {\n Composite orig_comp = g2d.getComposite();\n // Draw the interaction\n switch (ui_inter) {\n case PANNING: g2d.setColor(RTColorManager.getColor(\"background\", \"default\")); g2d.fillRect(0,0,getWidth(),getHeight());\n\t g2d.drawImage(myrc.getBase(), m_x1 - m_x0, m_y1 - m_y0, null); \n g2d.setColor(RTColorManager.getColor(\"annotate\", \"cursor\")); int cx = getWidth()/2, cy = getHeight()/2; g2d.drawLine(cx-12,cy,cx+12,cy); g2d.drawLine(cx,cy-12,cx,cy+12);\n break;\n case GRID_LAYOUT:\n\tcase CIRCLE_LAYOUT:\n case SELECTING: int x0 = m_x0 < m_x1 ? m_x0 : m_x1, y0 = m_y0 < m_y1 ? m_y0 : m_y1,\n\t\t\t dx = (int) Math.abs(m_x1 - m_x0), dy = (int) Math.abs(m_y1 - m_y0);\n\t\t\t if (dx == 0) dx = 1; if (dy == 0) dy = 1;\n\t\t\t g2d.setColor(RTColorManager.getColor(\"select\", \"region\"));\n\t\t\t Shape shape;\n\t\t\t if (ui_inter == UI_INTERACTION.SELECTING || ui_inter == UI_INTERACTION.GRID_LAYOUT) {\n shape = new Rectangle2D.Double(x0,y0,dx,dy);\n\t\t\t } else {\n double radius = Math.sqrt(dx*dx+dy*dy);\n shape = new Ellipse2D.Double(m_x0-radius,m_y0-radius,2*radius,2*radius);\n }\n\t\t\t g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f));\n\t\t\t g2d.fill(shape);\n\t\t\t g2d.setComposite(orig_comp);\n\t\t\t if (ui_inter == UI_INTERACTION.SELECTING) {\n String str = \"Selecting...\"; if (last_shft_down && last_ctrl_down) str += \" (Intersect)\";\n\t\t\t else if (last_shft_down ) str += \" (Remove From)\";\n\t\t\t\t\t\t\t else if ( last_ctrl_down) str += \" (Add To)\";\n g2d.drawString(str, x0, y0); \n } else g2d.drawString(\"Layout...\", x0, y0);\n\t\t\t g2d.draw(shape);\n\t\t\t break;\n case MOVING: g2d.drawString(\"Moving...\", 5, getHeight()-5); \n\t Set<String> moving_set_dup = moving_set;\n if (moving_set_dup != null && moving_set_dup.size() > 0) {\n\t\t\t AffineTransform orig = g2d.getTransform(); g2d.setColor(RTColorManager.getColor(\"linknode\", \"movenodes\"));\n\t\t\t g2d.translate(m_x1 - m_x0, m_y1 - m_y0);\n Iterator<String> it = moving_set_dup.iterator();\n\t\t\t while (it.hasNext()) {\n\t\t\t String str = it.next(); shape = myrc.node_to_geom.get(entity_to_sxy.get(str));\n\t\t\t if (shape != null) { g2d.draw(shape); }\n\t\t\t }\n\t\t\t g2d.setTransform(orig);\n\t\t \t }\n break;\n\tcase LINE_LAYOUT: g2d.setColor(RTColorManager.getColor(\"linknode\", \"layout\"));\n\t g2d.drawLine(m_x0, m_y0, m_x1, m_y1);\n\t\t\t break;\n\tcase NONE:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\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 }", "protected void execute() {\n }", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "protected void createActions()\n {\n super.createActions();\n \n wireAction(\n new ContentAssistAction(\n PerlEditorMessages.getResourceBundle(),\n \"ContentAssistProposal.\",\n this),\n PerlEditorCommandIds.CONTENT_ASSIST,\n PerlEditorActionIds.CONTENT_ASSIST);\n \n // each marker clearing action gets its own wiring\n wireAction(new ClearMarkerAction.Critic(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_CRITIC_MARKERS);\n wireAction(new ClearMarkerAction.PodChecker(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_POD_MARKERS);\n wireAction(new ClearMarkerAction.AllMarkers(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_ALL_MARKERS);\n \n wireAction(new PodCheckerAction(this), PerlEditorCommandIds.POD_CHECKER,\n PerlEditorActionIds.POD_CHECKER);\n wireAction(new ToggleCommentAction(this), PerlEditorCommandIds.TOGGLE_COMMENT,\n PerlEditorActionIds.TOGGLE_COMMENT);\n wireAction(new PerlCriticAction(this), PerlEditorCommandIds.CRITIQUE_SOURCE,\n PerlEditorActionIds.PERL_CRITIC);\n wireAction(new FormatSourceAction(this), PerlEditorCommandIds.FORMAT_SOURCE,\n PerlEditorActionIds.FORMAT_SOURCE);\n wireAction(new Jump2BracketAction(this), PerlEditorCommandIds.MATCHING_BRACKET,\n PerlEditorActionIds.MATCHING_BRACKET);\n wireAction(new ExportHtmlSourceAction(this), PerlEditorCommandIds.HTML_EXPORT,\n PerlEditorActionIds.HTML_EXPORT);\n wireAction(new ValidateSourceAction(this), PerlEditorCommandIds.VALIDATE_SYNTAX,\n PerlEditorActionIds.VALIDATE_SYNTAX);\n wireAction(new OpenDeclarationAction(this), PerlEditorCommandIds.OPEN_DECLARATION,\n PerlEditorActionIds.OPEN_DECLARATION);\n wireAction(new PerlDocAction(this), PerlEditorCommandIds.PERL_DOC,\n PerlEditorActionIds.PERL_DOC);\n wireAction(new ExtractSubroutineAction(this), PerlEditorCommandIds.EXTRACT_SUBROUTINE,\n PerlEditorActionIds.EXTRACT_SUBROUTINE);\n }", "public void act() {\n\t}", "public void action() {\n }", "abstract protected void execute();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "protected void execute()\n {\n }", "abstract void exec();", "@Override\n protected boolean executeAction(SUT system, State state, Action action){\n // adding the action that is going to be executed into HTML report:\n htmlReport.addSelectedAction(state.get(Tags.ScreenshotPath), action);\n return super.executeAction(system, state, action);\n }", "@Override\n public void act() {\n }", "public void fireIntermediateEvents() {\n fireActionPerformed();\n }", "protected abstract void executeActionsIfError();", "public void dispatch();", "@Override\n\tprotected void compute() {\n\t\tSystem.out.println(\"This is an action\");\n\t}", "public void executeAction( String actionInfo );", "public interface MainMenuExecutor {\n\tpublic void clickExit();\n\t\n\tpublic void clickSetup();\n\t\n\tpublic void clickStart();\n\t\n\tpublic void clickStop();\n\t\n\tpublic void clickShow();\n}", "public void execute() {\n }", "public void execute() {\n\n\t}", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "private void drawActions() {\n\t\tif (state.getSelectedEntity() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tAction [] actions = state.isSelectedFront() ? state.getSelectedEntity().getActions() : state.getSelectedEntity().getSwapActions();\n\t\tfor (int i = 0; i < actions.length; i++) {\n\t\t\tactions[i].render(batch, 500 + 25 * i, 800);\n\n\t\t\t// Do we draw the cursor here?\n\t\t\tif (state.getActionCursorPos() == i) {\n\t\t\t\tcursor.setPosition(500 + 25 * i, 900);\n\t\t\t\tcursor.draw(batch);\n\t\t\t}\n\t\t}\n\t}", "public abstract void onAction();", "public abstract boolean execute(PlugInContext context) throws Exception;", "@Override\r\n public void run() {\n opsi_menu();\r\n\r\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}", "@Override\r\n\tpublic void run(IAction action) {\n\t\ttry {\r\n\t\t\twindow.getActivePage().showView(JFreeChartView.ID);\r\n\t\t} catch (PartInitException 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 execute(){\n\n }", "public void execute();", "public void execute();", "public void execute();" ]
[ "0.62021935", "0.6137629", "0.60787433", "0.60445476", "0.5991005", "0.5991005", "0.5991005", "0.59849286", "0.5929852", "0.59235305", "0.59126097", "0.5894244", "0.5892063", "0.5880213", "0.58786094", "0.58541834", "0.5848865", "0.5847201", "0.5839782", "0.5832835", "0.580569", "0.57962453", "0.5785495", "0.57843274", "0.57724226", "0.57679737", "0.57631075", "0.5762826", "0.5761576", "0.5758907", "0.57377064", "0.57297134", "0.5728875", "0.5714025", "0.5704012", "0.5693401", "0.56734014", "0.5664292", "0.5664292", "0.5664292", "0.5664292", "0.56626016", "0.5659914", "0.5655424", "0.56478393", "0.56434923", "0.5642481", "0.56399405", "0.56362385", "0.5632348", "0.5632348", "0.5632348", "0.5632008", "0.5631765", "0.5628144", "0.56270826", "0.5613254", "0.5609139", "0.5609139", "0.5609139", "0.5609139", "0.5609139", "0.5609139", "0.5609139", "0.5609139", "0.5609139", "0.5609139", "0.5609139", "0.5609139", "0.5584842", "0.55812776", "0.5580584", "0.5575844", "0.5572309", "0.55719495", "0.5561101", "0.555743", "0.5554643", "0.5549847", "0.5548513", "0.55453587", "0.55358297", "0.5535157", "0.553308", "0.552393", "0.55170214", "0.55123717", "0.55091536", "0.5496363", "0.5480227", "0.5479759", "0.5467428", "0.5465236", "0.5465236", "0.5465236", "0.54519707", "0.5447065", "0.5442883", "0.5442883", "0.5442883" ]
0.55284166
84
end::main[] tag::action[] Operation on button pressed, on the application level. It uses the known references to the GralWidget. Immediately access to implementation widgets is not necessary. This operation is executed in the Graphic thread. Be carefully, do not program longer or hanging stuff such as synchronized or sleep.
void actionButton ( ) throws IOException { String textOfField = this.gui.wdgInputText.getText(); this.gui.widgOutput.append("Button1 " + (++this.ctKeyStroke1) + " time, text=" + textOfField + "\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// \t\t\tclaw.open();\n// \t\t}else {\n// \t\t\tgrab=true;\n// \t\t\tclaw.close();\n// \t\t}\n// \t}else if(!button.get()) {\n// \t\ttoggle=true;//button has been released\n// \t}\n \tclaw.open();\n }", "void mainButtonPressed();", "public abstract void executeRunButton();", "private void devBtnActionPerformed(ActionEvent evt) {\n }", "public void buttonClicked();", "private void designBtnActionPerformed(ActionEvent evt) {\n }", "public void run(){ \n \t//sets up the GUI and performs operations based on ActionListeners\n \tpackageGUI();\n \toperate();\n }", "public void ipcallButtonPressed() {\n\t\tdialButtonPressed(true) ;\n\t}", "abstract void botonDemo_actionPerformed(ActionEvent e);", "@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}", "@Override\r\n\tvoid start() {\n\t\tButton btnPayed = new Button(\"Paid\");\r\n\t\tButton btnCanceled = new Button(\"Canceled\");\r\n\t\t// Set button action events to the event methods of this class\r\n\t\tsetControlButton(btnPayed, \"Paid\");\r\n\t\tsetControlButton(btnCanceled, \"Canceled\");\r\n\r\n\t\ttextLabelDisplayed = new Label(\"\");\r\n\t\ttextLabelDisplayed.setPrefWidth(120);\r\n\r\n\t\tGridPane gridPaneAll = new GridPane();\r\n\t\tgridPaneAll.setVgap(10);\r\n\t\tGridPane gridPaneOrder = new GridPane();\r\n\t\tgridPaneOrder.setHgap(10);\r\n\t\tgridPaneOrder.add(btnPayed, 0, 0);\r\n\t\tgridPaneOrder.add(btnCanceled, 1, 0);\r\n\t\tgridPaneAll.add(gridPaneOrder, 0, 0);\r\n\t\tgridPaneAll.add(textLabelDisplayed, 0, 1);\r\n\r\n\t\twindow.addNodesAsChildrenToRoot(gridPaneAll);\r\n\r\n\t\t// Put the final touches and display the window.\r\n\t\twindow.start();\r\n\r\n\t\trefreshDisplay();\r\n\t}", "@Override\n public void onClick(View view) {\n if(buttonHandler != null)\n {\n //we send out to our button handler\n buttonHandler.handleEvolve(wid);\n }\n Toast.makeText(getContext(), \"Evolve please!\", Toast.LENGTH_SHORT).show();\n\n }", "public void onButtonAPressed();", "public static void setButton(String nameOfButton,int x,int y,int width,int heigth, JFrame frame) {\r\n //tozi metod suzdava butonut s negovite parametri - ime,koordinati,razmeri,frame\r\n\t JButton Button = new JButton(nameOfButton);\r\n\t Button.setBounds(x, y, width, heigth);\r\n\t colorOfButton(153,204,255,Button); //izpolzvam metodite ot po-gore\r\n\t colorOfTextInButton(60,0,150,Button);\r\n\t frame.getContentPane().add(Button);\r\n Button.addActionListener(new ActionListener(){ \r\n \tpublic void actionPerformed(ActionEvent e){ \r\n\t frame.setVisible(false);\r\n\t if(nameOfButton == \"Action\") { //kogato imeto na butona suvpada sus Stringa \"Action\",to tova e nashiqt janr\r\n\t \t Genre action = new Genre(\"Action\", //chrez klasa Genre zadavam vseki buton kakuv nov prozorec shte otvori\r\n\t \t\t\t \"Black Panther (2018)\", //kakvi filmi shte sudurja vseki janr \r\n\t \t\t\t \"Avengers: Endgame (2019)\",\r\n\t \t\t\t \" Mission: Impossible - Fallout (2018)\",\r\n\t \t\t\t \"Mad Max: Fury Road (2015)\",\r\n\t \t\t\t \"Spider-Man: Into the Spider-Verse (2018)\", \"MoviesWindow.png\" //kakvo fonovo izobrajenie shte ima\r\n);\r\n\t\t \t\r\n\t\t \taction.displayWindow(); \r\n//chrez metoda showWindow(); ,koito vseki obekt ot klasa Genre ima, otvarqme sledvashtiq(posleden) prozorec\r\n\t\t \t\r\n\t\t \t\r\n\t }else if (nameOfButton == \"Comedy\") { //i taka za vsichki filmovi janri\r\n\t \t Genre comedy = new Genre(\"Comedy\",\r\n\t \t\t\t \"The General (1926)\",\r\n\t \t\t\t \"It Happened One Night (1934)\",\r\n\t \t\t\t \"Bridesmaids (2011)\",\r\n\t \t\t\t \"Eighth Grade (2018)\",\r\n\t \t\t\t \"We're the Millers (2013)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \tcomedy.displayWindow();\r\n\t }else if (nameOfButton == \"Drama\") {\r\n\t \t Genre drama2 = new Genre(\"Drama\",\r\n\t \t\t\t \"Parasite (Gisaengchung) (2019)\",\r\n\t\t \t\t\t \" Moonlight (2016)\",\r\n\t\t \t\t\t \" A Star Is Born (2018)\",\r\n\t\t \t\t\t \" The Shape of Water (2017)\",\r\n\t\t \t\t\t \" Marriage Story (2019)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \tdrama2.displayWindow();\r\n\t }else if (nameOfButton == \"Fantasy\") {\r\n\t \t Genre fantasy2 = new Genre(\"Fantasy\",\r\n\t \t\t\t \"The Lord of the Rings Trilogy\",\r\n\t \t\t\t \"Metropolis (2016)\",\r\n\t \t\t\t \"Gravity (2013)\",\r\n\t \t\t\t \" Pan's Labyrinth (2006)\",\r\n\t \t\t\t \"The Shape of Water (2017)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \tfantasy2.displayWindow();\r\n\t }else if (nameOfButton == \"Horror\") {\r\n\t \t Genre horror = new Genre(\"Horror\",\r\n\t \t\t\t \" Host (2020)\",\r\n\t \t\t\t \" Saw (2004)\",\r\n\t \t\t\t \" The Birds (1963)\",\r\n\t \t\t\t \" Dawn of the Dead (1978)\",\r\n\t \t\t\t \" Shaun of the Dead (2004)\",\"MoviesWindow.png\");\r\n\t\t \t\r\n\t\t \thorror.displayWindow();\r\n\t }else if (nameOfButton == \"Romance\") {\r\n\t \tGenre romance2 = new Genre(\"Romance\",\r\n\t \t\t\t\"Titanic (1997)\",\r\n\t \t\t\t\"La La Land(2016)\",\r\n\t \t\t\t\"The Vow (2012)\",\r\n\t \t\t\t\"The Notebook (2004)\",\r\n\t \t\t\t\"Carol (2015)\",\"MoviesWindow.png\");\r\n\t \t\r\n\t \tromance2.displayWindow();\r\n\t \t\r\n\t \t\r\n\t \t\r\n\t }else if (nameOfButton == \"Mystery\") {\r\n\t \t Genre mystery = new Genre(\"Mystery\",\r\n\t \t\t\t \" Knives Out (2019)\",\r\n\t \t\t\t \" The Girl With the Dragon Tattoo (2011)\",\r\n\t \t\t\t \" Before I Go to Sleep (2014)\",\r\n\t \t\t\t \" Kiss the Girls (1997)\",\r\n\t \t\t\t \" The Girl on the Train (2016)\",\"MoviesWindow.png\"\r\n\t \t\t\t );\r\n\t\t \t\r\n\t\t \tmystery.displayWindow();\r\n\t }\r\n\r\n \t}\r\n });\r\n\t}", "void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }", "public abstract void buttonPressed();", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}", "private HBox setButtons() {\r\n\r\n\t\tButton btnNewBuild = new Button(\"First Building\"); //button to select the first building\r\n\t\tbtnNewBuild.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding = new Building(buildingString());\r\n\r\n\t\t\t\tdrawBuilding(); // then redraw the building\r\n\t\t\t}\r\n\t\t});\r\n\t\tButton btnNewBuild2 = new Button(\"Second Building\"); //Button to select the second building\r\n\t\tbtnNewBuild2.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding = new Building(buildingString2());\r\n\r\n\t\t\t\tdrawBuilding(); // then redraw the building\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnStart = new Button(\"Start\"); //button to start the animation \r\n\t\tbtnStart.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttimer.start(); // whose action is to start the timer\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnStop = new Button(\"Pause\"); //button to pause the animation\r\n\t\tbtnStop.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttimer.stop(); // and its action to stop the timer\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnRestart = new Button(\"RstBuilding1\"); // new button for restarting the first building\r\n\t\tbtnRestart.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding = new Building(buildingString()); //calling the first building\r\n\t\t\t\ttimer.stop();\t\t\t\t\t\t\t\t\t//setting the animation to stop\r\n\t\t\t\tdrawBuilding();\t\t\t\t\t\t\t\t\t//redrawing the building\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnRestart2 = new Button(\"RstBuilding2\"); // new button for restarting building 2\r\n\t\tbtnRestart2.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding = new Building(buildingString2()); //calling the second building\r\n\t\t\t\ttimer.stop();\t\t\t\t\t\t\t\t\t//setting the animation time to stop\r\n\t\t\t\tdrawBuilding();\t\t\t\t\t\t\t\t\t//redrawing the building\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnAdd = new Button(\"Another Person\"); // new button for adding person\r\n\t\tbtnAdd.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding.addPerson(); // and its action to stop the timer\r\n\t\t\t\tdrawBuilding();\t\t\t//re drawing the building \r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnRemove = new Button(\"Remove A Person\"); // new button for removing person\r\n\t\tbtnRemove.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding.removePerson(); // and its action to stop the timer\r\n\t\t\t\tdrawBuilding(); // redrawing the buildinf\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// now add these buttons + labels to a HBox\r\n\t\tHBox hbox = new HBox(new Label(\"Config: \"), btnNewBuild, btnNewBuild2, new Label(\"Run: \"), btnStart, btnStop,\r\n\t\t\t\tnew Label(\"Person: \"), btnAdd, btnRemove, new Label(\"RstBuildings: \"), btnRestart, btnRestart2);\r\n\t\treturn hbox;\r\n\t}", "public void Refresh_button() {\n\t\tthis.defaultSetup();\n\t}", "public void makeGetRPButton() {\r\n JButton getRP = new JButton(\"Check if a champion can be purchased with Riot Points\");\r\n new Button(getRP, main);\r\n// getRP.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// getRP.setPreferredSize(new Dimension(2500, 100));\r\n// getRP.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n getRP.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n getRiotPointsBalanceDifference();\r\n }\r\n });\r\n// main.add(getRP);\r\n }", "@Override\n\tprotected void buildButton() {\n\t\t\n\t}", "public App() {\n\t\tContainer pane = getContentPane();\n\t\t\n\t\ttetapan = new JButton(\"Tetapan\");\n\t\tpane.add(tetapan);\n\t\ttetapan.setBounds(10, 20, 80, 30);\n\t\t// tetapan.addActionListener(arg0);\n\t\tcarian = new JTextField(\"Cari...\");\n\t\tpane.add(carian);\n\t\tcarian.setBounds(260, 20, 150, 30);\n\t\tcari = new JButton(\"Cari\");\n\t\tpane.add(cari);\n\t\tcari.setBounds(410, 20, 60, 30);\n\t\t// cari.addActionListener(arg0);\n\t}", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "public void buttonFunctions(){\n runSim.addActionListener((ActionEvent q) -> {\n simulation = new Secretary();\n setNewValues();\n simulation.runSim();\n showDetails.setEnabled(true);\n showResults(); \n });\n showDetails.addActionListener((ActionEvent e) -> {\n resultDisplay.setText(simulation.getResults());\n resultFrame.setVisible(true); \n });\n changeSimProp.addActionListener((ActionEvent ch) ->{\n changeFrame.setVisible(true);\n });\n okay.addActionListener((ActionEvent ok) ->{ \n changeFrame.setVisible(false);\n });\n programDescription.addActionListener((ActionEvent d)->{\n descriptionDisplay.setText(programD());\n dFrame.setVisible(true);\n });\n }", "public void sButton() {\n\n\n\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t\tObject o = arg0.getSource();\n\t\t\n\t\tif(o.equals(go))\n\t\t{\n\t\t\tif(all.isSelected()==true)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//System.exit(0);\n\t\t\t\tView_FragMain x=new View_FragMain();\n\t\t\t}\n\t\t\tif(bud.isSelected())\n\t\t\t{\n\t\t\t\t// connect BUDDY SYSTEM here....\n\t\t\t\tBuddy1_1 b1 = new Buddy1_1();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public static String _butcolor_click() throws Exception{\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 101;BA.debugLine=\"butColor.Visible = False\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 103;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 104;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 105;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 107;BA.debugLine=\"panelPopUps_1.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_1.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 108;BA.debugLine=\"panelPopUps_1.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_1.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 110;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"A simple vista se ve\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"A simple vista se ve\"+anywheresoftware.b4a.keywords.Common.CRLF+\"de color negro intenso\"));\n //BA.debugLineNum = 111;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets,\\\"mosq\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_Color.png\").getObject()));\n //BA.debugLineNum = 112;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 113;BA.debugLine=\"Activity.AddView(panelPopUps_1, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_1.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 114;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "void viewButton_actionPerformed(ActionEvent e) {\n doView();\n }", "private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }", "void btnGenReport_actionPerformed(ActionEvent e) {\n JButtonQueryButtonAction(e);\r\n }", "@Override\n public void run() {\n nextButtonAction(); // invoking next button //\n }", "public void start() {\n\n /*\n Set up the button\n */\n\n //Instantiate button\n JButton button = new JButton();\n //set up the centroid and dimension of button\n button.setBounds(90, 65, 300, 300);\n //add button to the components for an action event\n button.addActionListener(this);\n //use lambda expression to print \"Hello User!\"\n button.addActionListener(e -> System.out.println(\"Hello User!\"));\n //set button's title to \"Click me\"\n button.setText(\"Click me\");\n //hide text focus on button\n button.setFocusable(false); //to hide border around the text in button\n //set up the font\n button.setFont(new Font(\"Comic Sans\", Font.BOLD, 45));\n\n /*\n Set up the frame\n */\n\n //add button into the frame\n this.add(button);\n //Instantiate icon\n ImageIcon icon = new ImageIcon(\"src/main/resources/gui/icon.png\");\n //add icon to frame\n this.setIconImage(icon.getImage());\n //set exit condition to the frame\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //set window's title\n this.setTitle(\"Click the button\");\n //set frame size (width 500, height 500)\n this.setSize(500, 500);\n //set frame layout (null)\n this.setLayout(null);\n //set window show up in the middle of screen\n this.setLocationRelativeTo(null);\n //set frame visibility (true)\n this.setVisible(true);\n\n }", "public void actionPerformed(ActionEvent evt) {\r\n\r\n if (evt.getSource() == cb1) { // if an item of menu Shape selected\r\n shapeOperation();\r\n }\r\n\r\n if (evt.getSource() == cb2) { // if an item of menu Color selected\r\n colorOperation();\r\n }\r\n\r\n if (evt.getSource() == cb3) { // if an item of menu Filled selected\r\n filledOperation();\r\n }\r\n\r\n if (evt.getSource() == bt[0]) { // if button \"Clear\" pressed\r\n System.out.println(\"button Clear is pressed.\");\r\n System.out.println(\"calling method clear().\");\r\n ge.clear(gra); // call method clear() of the Tool\r\n System.out.println(\"method clear() executed.\");\r\n repaint(); // repaint\r\n }\r\n\r\n if (evt.getSource() == bt[1]) { // if button \"Exit\" pressed\r\n System.out.println(\"button Exit is pressed.\");\r\n System.out.println(\"calling method terminate().\");\r\n ge.terminate(gra);\r\n // call method terminate() of the Tool\r\n System.out.println(\"method terminate() executed.\");\r\n dispose(); // dispose the frame\r\n System.exit(0); // exit\r\n }\r\n\r\n }", "public void onClick(Widget sender) {\n if(sender.equals(this.deleteButton)) {\n\t\t\tthis.removeObject();\n\t\t} else if(sender.equals(this.backButton)) {\n\t\t\tthis.backObject();\n\t\t} else if(sender.equals(this.frontButton)) {\n\t\t\tthis.frontObject();\n\t\t} else if(sender.equals(this.saveButton)) {\n\t\t\tthis.saver.saveDocument(this.canvas);\n }else if(sender.equals(this.selectButton)) {\n this.action.setAction(Action.SELECT);\n\t\t} else if(sender.equals(this.pencilButton)) {\n this.unSelect();\n this.action.setAction(Action.PENCIL);\n\t\t} else if(sender.equals(this.lineButton)) {\n this.unSelect();\n this.action.setAction(Action.LINE);\n\t\t} else if(sender.equals(this.rectButton)) {\n this.unSelect();\n this.action.setAction(Action.RECTANGLE);\n\t\t} else if(sender.equals(this.circleButton)) {\n this.unSelect();\n this.action.setAction(Action.CIRCLE);\n\t\t} else if(sender.equals(this.ellipseButton)) {\n this.unSelect();\n this.action.setAction(Action.ELLIPSE);\n\t\t} else if(sender.equals(this.polylineButton)) {\n this.unSelect();\n this.action.setAction(Action.POLYLINE);\n } else if(sender.equals(this.textButton)) {\n this.unSelect();\n this.action.setAction(Action.TEXTBOX);\n } else if(sender.equals(this.strokeButton)) {\n this.showPopUpStroke();\n\t\t} else if(sender.equals(this.fill)) {\n this.showPopupColorFill(true);\n } else if(sender.equals(this.stroke)) {\n this.showPopupColorFill(false);\n }\n\t\t\n\t}", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[0])){\n\t\t\tperformButton(0);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[1])){\n\t\t\tperformButton(1);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[2])){\n\t\t\tperformButton(2);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[3])){\n\t\t\tperformButton(3);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[4])){\n\t\t\tperformButton(4);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[5])){\n\t\t\tperformButton(5);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[6])){\n\t\t\tperformButton(6);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[7])){\n\t\t\tperformButton(7);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[8])){\n\t\t\tperformButton(8);\n\t\t}\n\t}", "public static String _butpatas_click() throws Exception{\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 85;BA.debugLine=\"butColor.Visible = False\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 87;BA.debugLine=\"lblFondo.Initialize(\\\"\\\")\";\nmostCurrent._lblfondo.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 88;BA.debugLine=\"lblFondo.Color = Colors.ARGB(30,255,94,94)\";\nmostCurrent._lblfondo.setColor(anywheresoftware.b4a.keywords.Common.Colors.ARGB((int) (30),(int) (255),(int) (94),(int) (94)));\n //BA.debugLineNum = 89;BA.debugLine=\"Activity.AddView(lblFondo,0,0,100%x,100%y)\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._lblfondo.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));\n //BA.debugLineNum = 91;BA.debugLine=\"panelPopUps_1.Initialize(\\\"\\\")\";\nmostCurrent._panelpopups_1.Initialize(mostCurrent.activityBA,\"\");\n //BA.debugLineNum = 92;BA.debugLine=\"panelPopUps_1.LoadLayout(\\\"lay_Mosquito_PopUps\\\")\";\nmostCurrent._panelpopups_1.LoadLayout(\"lay_Mosquito_PopUps\",mostCurrent.activityBA);\n //BA.debugLineNum = 94;BA.debugLine=\"lblPopUp_Descripcion.Text = \\\"Se pueden ver rayas\";\nmostCurrent._lblpopup_descripcion.setText(BA.ObjectToCharSequence(\"Se pueden ver rayas blancas en sus patas\"));\n //BA.debugLineNum = 95;BA.debugLine=\"imgPopUp.Bitmap = LoadBitmap(File.DirAssets,\\\"mosq\";\nmostCurrent._imgpopup.setBitmap((android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),\"mosquito_Grande.png\").getObject()));\n //BA.debugLineNum = 96;BA.debugLine=\"imgPopUp.Visible = True\";\nmostCurrent._imgpopup.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 97;BA.debugLine=\"Activity.AddView(panelPopUps_1, 15%x, 15%y, 70%x,\";\nmostCurrent._activity.AddView((android.view.View)(mostCurrent._panelpopups_1.getObject()),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (15),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (70),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (70),mostCurrent.activityBA));\n //BA.debugLineNum = 98;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void buildGui() {\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tRun();\n\t}", "abstract void botonJuegoRed_actionPerformed(ActionEvent e);", "public void makeObtainButton() {\r\n JButton obtain = new JButton(\"Obtain a new champion using Riot Points\");\r\n new Button(obtain, main);\r\n// obtain.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// obtain.setPreferredSize(new Dimension(2500, 100));\r\n// obtain.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n obtain.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n obtainChampionUsingRiotPoints();\r\n }\r\n });\r\n// main.add(obtain);\r\n }", "public void makeAcquireButton() {\r\n JButton acquire = new JButton(\"Acquire a new champion with Blue Essence\");\r\n new Button(acquire, main);\r\n// acquire.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// acquire.setPreferredSize(new Dimension(2500, 100));\r\n// acquire.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n acquire.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n acquireChampionUsingBlueEssence();\r\n }\r\n });\r\n// main.add(acquire);\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n Main.switchViews();\n }", "public abstract void executeActionButton();", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "private static void createAndShowGUI() {\n \n JFrame frame = new HandleActionEventsForJButton();\n \n //Display the window.\n \n frame.pack();\n \n frame.setVisible(true);\n \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }", "public void actionPerformed(ActionEvent evt)\n {\n BaseApplet applet = this.getBaseApplet();\n JComponent button = (JComponent)evt.getSource();\n String strButtonName = button.getName();\n if (SearchConstants.SEARCH_BUTTON.equals(strButtonName))\n {\n ImageIcon icon = null;\n if (button instanceof JToggleButton)\n icon = (ImageIcon)((JToggleButton)button).getIcon();\n else if (button instanceof JButton)\n icon = (ImageIcon)((JButton)button).getIcon();\n else if (button instanceof JLabel)\n icon = (ImageIcon)((JLabel)button).getIcon();\n String strDesc = icon.getDescription();\n BaseApplet.handleAction(BookingConstants.SEARCH, this.getTourGeekScreen(), null, 0); // Make sure we are on the search tab\n JDisplayPanel displayPanel = this.getTourGeekScreen().getDisplayPanel();\n displayPanel.switchScreens(applet, strDesc, Constants.DONT_PUSH_TO_BROWSER);\n }\n else\n super.actionPerformed(evt);\n }", "protected abstract void pressedOKButton( );", "private void startGameButton() {\n startGame = new JButton(\"Aloita peli!\");\n ActionListener startGameListener = new ActionListener() {\n public void actionPerformed(ActionEvent actionEvent) {\n controller.startGame();\n }\n };\n startGame.addActionListener(startGameListener);\n }", "protected void actionPerformed(GuiButton par1GuiButton)\n {\n if (par1GuiButton.id == 0)\n {\n this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));\n }\n\n if (par1GuiButton.id == 5)\n {\n this.mc.displayGuiScreen(new GuiLanguage(this, this.mc.gameSettings));\n }\n\n if (par1GuiButton.id == 1)\n {\n this.mc.displayGuiScreen(new GuiSelectWorld(this));\n }\n\n if (par1GuiButton.id == 2)\n {\n this.mc.displayGuiScreen(new GuiMultiplayer(this));\n }\n\n if (par1GuiButton.id == 3)\n {\n this.mc.displayGuiScreen(new GuiTexturePacks(this));\n }\n\n if (par1GuiButton.id == 4)\n {\n this.mc.shutdown();\n }\n }", "String handleButtonPress(Button button);", "private void buildGui() {\n nifty = screen.getNifty();\n nifty.setIgnoreKeyboardEvents(true);\n nifty.loadStyleFile(\"nifty-default-styles.xml\");\n nifty.loadControlFile(\"nifty-default-controls.xml\");\n nifty.addScreen(\"Option_Screen\", new ScreenBuilder(\"Options_Screen\") {\n {\n controller((ScreenController) app);\n layer(new LayerBuilder(\"background\") {\n {\n childLayoutCenter();;\n font(\"Interface/Fonts/zombie.fnt\");\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n childLayoutOverlay();\n font(\"Interface/Fonts/zombie.fnt\");\n\n panel(new PanelBuilder(\"Switch_Options\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n interactOnClick(\"goTo(Display_Settings)\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Graphics_Settings\", new ScreenBuilder(\"Graphics_Extension\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n panel(new PanelBuilder(\"Post_Water_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Post Water\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Post_Water_Button\") {\n {\n marginLeft(\"110%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Reflections_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Reflections\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Reflections_Button\") {\n {\n marginLeft(\"45%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Ripples_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Ripples\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Ripples_Button\") {\n {\n marginLeft(\"75%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Specular_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Specular\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Specular_Button\") {\n {\n marginLeft(\"59%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Foam_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Foam\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Foam_Button\") {\n {\n marginLeft(\"93%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Sky_Dome_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Sky Dome\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Sky_Dome_Button\") {\n {\n marginLeft(\"128%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Star_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Star Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Star_Motion_Button\") {\n {\n marginLeft(\"106%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Cloud_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Cloud Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Cloud_Motion_Button\") {\n {\n marginLeft(\"87%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Bloom_Light_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Bloom Lighting\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Bloom_Light_Button\") {\n {\n marginLeft(\"70%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Light_Scatter_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Light Scatter\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Light_Scatter_Button\") {\n {\n marginLeft(\"90%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutHorizontal();\n marginLeft(\"43%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"applySettings()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Display_Screen\", new ScreenBuilder(\"Display_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"Resolution_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Set Resolution\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ListBoxBuilder(\"Resolution_Opts\") {\n {\n marginLeft(\"4%\");\n marginBottom(\"10%\");\n displayItems(1);\n showVerticalScrollbar();\n hideHorizontalScrollbar();\n selectionModeSingle();\n width(\"10%\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"displayApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Sound Settings\", new ScreenBuilder(\"#Sound_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"#Master_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"35%\");\n control(new LabelBuilder(\"\", \"Master Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Master_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Ambient_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Ambient Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Ambient_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Combat_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Combat Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Combat_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Dialog_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Dialog Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Dialog_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Footsteps_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Footsteps Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Footsteps_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"#Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"soundApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n\n }\n }.build(nifty));\n }", "public void clickedRepGA(Button button) {\r\n textShape.setText(\"GA Case Fatality Ratios by Race\");\r\n this.updateRace(1);\r\n this.updateCFR(1);\r\n this.updateBar(1);\r\n }", "private JButton makePrgRunButton() {\r\n\t\tJButton tprgRunButton = new JButton();\r\n\t\ttprgRunButton.setBackground(new Color(250, 250, 250));\r\n\t\ttprgRunButton.setForeground(new Color(51, 51, 51));\r\n\t\ttprgRunButton.setIcon(new ImageIcon(getClass().getResource(\"/org/colombbus/tangara/control_play_blue.png\"))); //$NON-NLS-1$\r\n\t\ttprgRunButton.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 13)); //$NON-NLS-1$\r\n\t\ttprgRunButton.setPreferredSize(new Dimension(120, 30));\r\n\t\ttprgRunButton.setText(Messages.getString(\"EditorFrame.button.execute\")); //$NON-NLS-1$\r\n\t\ttprgRunButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tparentFrame.executeProgram(getCurrentPane().getText(), getSelectedIndex());\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\treturn tprgRunButton;\r\n\t}", "public static String _btnfrasco_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 126;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Ciclo\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Ciclo\",mostCurrent.activityBA);\n //BA.debugLineNum = 128;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 130;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void render(Graphics g){\r\n if(!goButtonAdded&&a2>250){\r\n buttons.add(new Button(game,g,0,null,\"START\",(int)(w*0.40),(int)(h*0.93),(int)(w*0.2),(int)(h*0.14),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),75,15,false,true));\r\n goButtonAdded = true;\r\n }\r\n if(!buttonsAdded){\r\n for(int i = 1; i < Missions.NUMBER_OF_MISSIONS+1;i++){\r\n if(data.missionCompletion[i-1]==-1){\r\n missionButtons.add(new Button(game,g,Assets.redExclamationPoint,wiresX[(i-1)*3]-50,wiresY[(i-1)*3]-110,100,220,false));\r\n }else if(data.missionCompletion[i-1]==0){\r\n missionButtons.add(new Button(game,g,Assets.exclamationPoint,wiresX[(i-1)*3]-50,wiresY[(i-1)*3]-110,100,220,false));\r\n }else if(data.missionCompletion[i-1]==1){\r\n missionButtons.add(new Button(game,g,Assets.checkMark,wiresX[(i-1)*3]-80,wiresY[(i-1)*3]-110,100,220,false));\r\n }else{\r\n missionButtons.add(new Button(game,g,Assets.stars.get(0),wiresX[(i-1)*3]-50,wiresY[(i-1)*3]-110,100,220,false));\r\n }\r\n }\r\n buttons.add(new Button(game,g,0,null,\"Log Out\",(int)(w*0.03),(int)(h*0.11),(int)(w*0.14),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),40,15,false,true));\r\n buttons.add(new Button(game,g,0,null,\">\",(int)(w*0.79),(int)(h*0.70),(int)(w*0.10),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),180,15,false,true));\r\n buttons.add(new Button(game,g,0,null,\"<\",(int)(w*0.11),(int)(h*0.70),(int)(w*0.10),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),180,15,false,true));\r\n buttonsAdded = true;\r\n }\r\n if(reAddButtons){\r\n buttons.add(new Button(game,g,0,null,\"Log Out\",(int)(w*0.03),(int)(h*0.11),(int)(w*0.14),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),40,15,false,true));\r\n buttons.add(new Button(game,g,0,null,\">\",(int)(w*0.79),(int)(h*0.70),(int)(w*0.10),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),180,15,false,true));\r\n buttons.add(new Button(game,g,0,null,\"<\",(int)(w*0.11),(int)(h*0.70),(int)(w*0.10),(int)(h*0.08),Colors.ColorAlpha(Colors.darkBlues,255),\r\n Colors.ColorAlpha(Colors.darkBlues,255),Colors.ColorAlpha(Colors.yellows,190),\r\n Colors.ColorAlpha(Colors.yellows,255),Colors.ColorAlpha(Colors.whites,190),\r\n Colors.ColorAlpha(Colors.whites,255),180,15,false,true));\r\n goButtonAdded = false;\r\n reAddButtons = false;\r\n }\r\n drawBackground(g);\r\n if(!moving){\r\n drawMissionBox(g);\r\n missionButtons.get(currentMission-1).drawButton(g,game,screenOffsetX,screenOffsetY);\r\n g.setColor(Colors.ColorAlpha(Colors.lightReds,a1));\r\n g.setFont(game.font60);\r\n g.drawString(\"Please Select a Mission\",Display.centerString\r\n (\"Please Select a Mission\",g,game.font60,game),(int)(h*0.12));\r\n Button.drawButtons(g,game,buttons,0,0);\r\n Button.drawButtonShine(g,game);\r\n g.setColor(Colors.ColorAlpha(Colors.lightReds,a1));\r\n g.setFont(game.font50);\r\n g.drawString(\"Mission \"+currentMission+\": \"+Missions.missions[currentMission-1].Type,Display.centerString\r\n (\"Mission \"+currentMission+\": \"+Missions.missions[currentMission-1].Type,g,game.font50,game),(int)(h*0.33));\r\n g.drawString(Missions.missions[currentMission-1].toString(),Display.centerString\r\n (Missions.missions[currentMission-1].toString(),g,game.font50,game),(int)(h*0.73));\r\n }else{\r\n Button.drawButtons(g,game,missionButtons,screenOffsetX,screenOffsetY);\r\n MouseManager.mousePressed = false;\r\n KeyboardManager.keyPressed = false;\r\n a2=0;\r\n }\r\n }", "public void actionButton(String text);", "private JButton getJButton1() {\r\n\t\tif (jButton1 == null) {\r\n\t\t\tjButton1 = new JButton();\r\n\t\t\tjButton1.setBounds(new Rectangle(71, 377, 106, 26));\r\n\t\t\tjButton1.setText(\"Run XMotifs\");\r\n\t\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tif(session!=null)\t\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tsession=session.getMainWindow().getActiveWorkDesktop().getSession();\r\n\t\t\t\t\t\tAnalysis b=session.getAnalysis();\r\n\t\t\t\t\t \r\n\t\t\t\t\t\tString fileName=\"\";\r\n\t\t\t\t\t\tif(resultsFile!=null)\t\t\t\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfileName=resultsFile.getPath().replace(\"\\\\\", \"/\");\r\n\t\t\t\t\t\t\tif(!fileName.contains(\".\")) \tfileName=fileName.concat(\".bic\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(getJCheckBox().isSelected())\tfileName=defaultPath;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t((JFrame)(getJPanel2().getTopLevelAncestor())).dispose();\r\n\t\t\t\t\t\tint[] filterOptions=null;\r\n\t\t\t\t\t\tif(getJCheckBox3().isSelected())\r\n\t\t\t\t\t\t \t{\r\n\t\t\t\t\t\t\tfilterOptions=new int[4];\r\n\t\t\t\t\t\t\tfilterOptions[0]=new Integer(getJTextField2211().getText()).intValue();\r\n\t\t\t\t\t\t\tfilterOptions[1]=new Integer(getJTextField2211111().getText()).intValue();\r\n\t\t\t\t\t\t\tfilterOptions[2]=new Integer(getJTextField221111().getText()).intValue();\r\n\t\t\t\t\t\t\tfilterOptions[3]=new Integer(getJTextField22111().getText()).intValue();\r\n\t\t\t\t\t\t \t}\r\n\t\t\t\t\t\tb.setFilterOptions(filterOptions);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tArrayList<Object> p=new ArrayList<Object>();\r\n\t\t\t\t\t\t p.add(new Integer(getJTextField221().getText()).intValue());\r\n\t\t\t\t\t\t p.add(new Boolean(getJCheckBox2().isSelected()?true:false));\r\n\t\t\t\t\t\t p.add(new Integer(getJTextField22().getText()).intValue());\r\n\t\t\t\t\t\t p.add(new Integer(getJTextField222().getText()).intValue());\r\n\t\t\t\t\t\t p.add(new Integer(getJTextField2221().getText()).intValue());\r\n\t\t\t\t\t\t p.add(new Float(getJTextField2222().getText()).floatValue());\r\n\t\t\t\t\t\t p.add(new Integer(getJTextField2223().getText()).intValue());\r\n\t\t\t\t\t\t p.add(fileName);\r\n\t\t\t\t\t\t p.add(getJTextField212().getText());\r\n\t\t\t\t\t\t AnalysisProgressMonitor apm=new AnalysisProgressMonitor(b, AnalysisProgressMonitor.AnalysisTask.XMOTIFS, p);\r\n\t\t\t\t\t\t apm.run();\r\n\t\t\t\t\t\t t=apm.getTask();\r\n\t\t\t\t\t\t Thread wt=new Thread() {\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\tString fileName=t.get();\r\n\t\t\t\t\t\t\t\t\t\tif (fileName == null)\r\n\t\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"No groups found\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\t\t\t\t\tsession.getMainWindow().getFileMenuManager().readGroups(new File(fileName).getAbsolutePath(), new File(fileName), session);\r\n\r\n\t\t\t\t\t\t\t\t\t\t/*if(fileName.indexOf(\"/\")>-1)\r\n\t\t\t\t\t\t\t\t\t\t\tsession.getReader().readBiclusterResults(fileName.substring(0, fileName.lastIndexOf(\"/\")),fileName.substring(fileName.lastIndexOf(\"/\")+1), fileName, session);\r\n\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\tsession.getReader().readBiclusterResults(\"\",fileName, fileName, session);*/\r\n\t\t\t\t\t\t\t\t\t\t}catch(Exception e){e.printStackTrace();}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\twt.start();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButton1;\r\n\t}", "public abstract void executeFightButton();", "public void actionPerformed(ActionEvent ae) {\n\n GUI_dialoog dialoog = new GUI_dialoog();\n dialoog.setVisible(true);\n\n }", "public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\r\n\t\t\t\tFirstWindow.main(null);\r\n\t\t\t}", "public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }", "void configureButtonListener();", "public void actionPerformed(ActionEvent e) {\r\n canvas.refresh();\r\n addNodeButton.setEnabled(true);\r\n rmvNodeButton.setEnabled(true);\r\n addEdgeButton.setEnabled(true);\r\n rmvEdgeButton.setEnabled(true);\r\n chgTextButton.setEnabled(true);\r\n chgDistButton.setEnabled(true);\r\n BFSButton.setEnabled(true);\r\n DFSButton.setEnabled(true);\r\n spButton.setEnabled(true);\r\n TPSButton.setEnabled(true);\r\n instr.setText(\"Try functions by clicking buttons.\");\r\n }", "void createButton(Button main){\n\t\tActions handler = new Actions();\r\n\t\tmain.setOnAction(handler);\r\n\t\tmain.setFont(font);\r\n\t\t//sets button preference dimensions and label \r\n\t\tmain.setPrefWidth(100);\r\n\t\tmain.setPrefHeight(60);\r\n\t\tmain.setText(\"Close\");\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.getAppointView().updateUI();\n\t\t\t\tcontroller.getAppointView().display(true);\n\t\t\t}", "private void ViewActionPerformed(ActionEvent e) {\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tJFrame frame = null;\r\n\t\tif (viewer.getMode() == \"self\") {\r\n\t\t\tSystem.out.println(\"Generate Antigen\");\r\n\t\t\tViewer viewer = new Viewer(10, \"antigen\", this.viewer.getCell());\r\n\t\t\tframe = viewer;\r\n\t\t\tframe.setTitle(\"Antigen - Detector Generator\");\r\n\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\tframe.pack();\r\n\t\t\tframe.setResizable(true);\r\n\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\tframe.setVisible(true);\r\n\t\t} else if (viewer.getMode() == \"antigen\"\r\n\t\t\t\t|| viewer.getMode() == \"antibody\") {\r\n\t\t\tif (!refreshBoard(viewer.getCell())) {\r\n\t\t\t\tif (timer.isRunning() == false) {\r\n\t\t\t\t\tviewer.getButton().setEnabled(false);\r\n\t\t\t\t\ttimer.start();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t\r\n\t\t\t\tif (viewer.getMode() == \"antigen\") {\r\n\t\t\t\t\tviewer.getButton().setLabel(\"Generate Antibody\");\r\n\t\t\t\t\tviewer.getButton().setEnabled(true);\r\n\t\t\t\t\tviewer.setMode(\"antigenOK\");\r\n\t\t\t\t} else if (viewer.getMode() == \"antibody\") {\r\n\t\t\t\t\tviewer.getButton().setLabel(\"Finish\");\r\n\t\t\t\t\tviewer.getButton().setEnabled(false);\r\n\t\t\t\t\tviewer.setMode(\"antibodyOK\");\r\n\t\t\t\t}\r\n\t\t\t\ttimer.stop();\r\n\t\t\t}\r\n\t\t} else if (viewer.getMode() == \"antigenOK\") {\r\n\t\t\tSystem.out.println(\"Generate Antibody\");\r\n\t\t\tframe = new Viewer(10, \"antibody\", this.viewer.getCell());\r\n//\t\t\tthis.viewer.getCell().printCell();\r\n\t\t\tframe.setTitle(\"Antibody - Detector Test\");\r\n\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\tframe.pack();\r\n\t\t\tframe.setResizable(true);\r\n\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\tframe.setVisible(true);\r\n\t\t} else {\r\n\r\n\t\t}\r\n\t}", "private void createJButtonActionPerformed( ActionEvent event )\r\n {\r\n \r\n }", "public void testing() {\n System.out.println(\"button pressed!\");\n }", "abstract void botonAyuda_actionPerformed(ActionEvent e);", "public crackerClicker() {\n initComponents();\n }", "private void createButton(){\n addButton();\n addStartButton();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tButtonPress();\n\t}", "public abstract void executeBagButton();", "private void buttonInitiation() {\n submit = new JButton(\"Submit\");\n submit.setBounds(105, 250, 90, 25);\n this.add(submit);\n goBack = new JButton(\"Return to Main Menu\");\n goBack.setBounds(205, 250, 200, 25);\n this.add(goBack);\n }", "protected void actionPerformed(GuiButton par1GuiButton)\n {\n for (int var2 = 0; var2 < this.options.keyBindings.length; ++var2)\n {\n ((GuiButton)this.controlList.get(var2)).displayString = this.options.getOptionDisplayString(var2);\n }\n\n if (par1GuiButton.id == 200)\n {\n this.mc.displayGuiScreen(this.parentScreen);\n }\n else\n {\n this.buttonId = par1GuiButton.id;\n par1GuiButton.displayString = \"> \" + this.options.getOptionDisplayString(par1GuiButton.id) + \" <\"; // what is this even for.. it gets overwritten in drawScreen\n }\n }", "void buttonPressed(ButtonType type);", "@Override\n\tpublic void widgetClick(View v) {\n\n\t}", "private void startButtonAction(){\n scoreboard.setStartAction(event->initControl());\n }", "public static void main(String[] args) {\n Calc bt = new Calc();\r\n bt.setVisible(true); \r\n}", "public void setupGui(){\n \t\n \t w1 = (RadioButton) guiView.findViewById(R.id.w1); \t\t \n \t w2 = (RadioButton) guiView.findViewById(R.id.w2);\n \t w3 = (RadioButton) guiView.findViewById(R.id.w3);\n \t w4 = (RadioButton) guiView.findViewById(R.id.w4);\n \t pb = (Button) guiView.findViewById(R.id.paint_button);\n \t plus = (Button) guiView.findViewById(R.id.plus_button);\n \t minus = (Button) guiView.findViewById(R.id.minus_button);\n \t \n \t \n \t //model select listener\n \t lis =new View.OnClickListener(){\n \t\t \n public void onClick(View v){\n \t RadioButton b = (RadioButton)v;\n \t String tmp=b.getHint().toString();\n \t int i = Integer.parseInt(tmp);\n \t setModel(i); \n }\n };\n w1.setOnClickListener(lis);\n w2.setOnClickListener(lis);\n w3.setOnClickListener(lis);\n w4.setOnClickListener(lis);\n \n w1.setHintTextColor(Color.TRANSPARENT);\n w2.setHintTextColor(Color.TRANSPARENT);\n w3.setHintTextColor(Color.TRANSPARENT);\n w4.setHintTextColor(Color.TRANSPARENT);\n \n w1.setChecked(true);\n \n //paint button listener\n pb.setOnClickListener(new View.OnClickListener(){\n public void onClick(View v){ \t \n \t paintWheel();\t \n }\n }); \n \n //plus button listener\n plus.setOnClickListener(new View.OnClickListener(){\n public void onClick(View v){ \t \n \t scaleUp();\t \n }\n }); \n \n //minus button listener\n minus.setOnClickListener(new View.OnClickListener(){\n public void onClick(View v){ \t \n \t scaleDown();\t \n }\n }); \n }", "public void mouseClicked(MouseEvent mEvent) \n {\n /* don't do anything while game running */\n if(GAME_RUNNING)\n return;\n\n /* only respond to button 1 */\n if(mEvent.getButton() != MouseEvent.BUTTON1)\n return;\n\n /* TODO: remove debug msg */\n\t\t//System.out.println(\"Mouse clicked on the \"+ mEvent.getComponent().getClass().getName() +\" @ \"+ mEvent.getX() + \", \" + mEvent.getY());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n Widget clickedWidget = timWorld.grabWidget(mEvent.getX(), mEvent.getY());\n switch(SELECT_MODE)\n {\n //=================\n case NONE:\n //if over a non-locked widget, make it new selection\n if(clickedWidget != null && clickedWidget.isLocked() == false)\n {\n selectedWidget = clickedWidget;\n SELECT_MODE = SelectMode.SELECTED;\n canvas.repaint();\n }\n break;\n //=================\n case SELECTED:\n if(clickedWidget == null || clickedWidget.isLocked() == true)\n {\n /* clicked on no widget, or on a locked widget \n -> deselect current widget */\n selectedWidget = null;\n SELECT_MODE = SelectMode.NONE;\n canvas.repaint();\n }\n else if(clickedWidget == selectedWidget)\n {\n /* clicked on currently selected widget\n -> pick it up and start dragging */\n \n // store click offset\n clickOffsetX = selectedWidget.getPosition().getX() - mEvent.getX();\n clickOffsetY = selectedWidget.getPosition().getY() - mEvent.getY();\n \n // start dragging mode, changing to move cursor\n SELECT_MODE = SelectMode.DRAGGING;\n DRAG_TYPE = DragType.CLICK;\n\n canvas.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n canvas.repaint();\n }\n else\n {\n /* clicked on an unlocked widget other than currently selected widget\n -> make this widget the new selection */\n selectedWidget = clickedWidget;\n canvas.repaint();\n }\n break;\n //=================\n case DRAGGING:\n //attempt to move widget, stop dragging if successful, keep widget selected\n if(timWorld.moveWidget(selectedWidget, mEvent.getX() + clickOffsetX, mEvent.getY() + clickOffsetY))\n {\n /* successfully moved to new loc, stop dragging but keep selected */\n SELECT_MODE = SelectMode.SELECTED;\n \n /* repaint canvas and play sound */\n canvas.repaint();\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t\tap.playGoodSound();\n \t\t\t }\n\n //TODO: remove debug msg\n // System.out.println(\"mouseReleased successfully moved \" + selectedWidget.getName() + \" to \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \", widget.getPosition returns \" + selectedWidget.getPosition());\n }\n else\n {\n /* new position no good, stop dragging */\n SELECT_MODE = SelectMode.SELECTED;\n \n /* repaint canvas and play sound */\n canvas.repaint();\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t\tap.playBadSound();\n \t\t\t }\n\n //TODO: remove debug msg\n \t //System.out.println(\"New position \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \" not valid for \" + selectedWidget.getName() + \", leaving it where it was\" + \".\");\n }\n \n //restore default cursor\n canvas.setCursor(Cursor.getDefaultCursor());\n break;\n //=================\n case ADDING:\n \t // try to move it\n \t \t if ( mEvent.getX()+clickOffsetX >= 0 && mEvent.getX()+clickOffsetX <= 780 && mEvent.getY() >= -434 &&\n \t \t timWorld.moveWidget(selectedWidget, mEvent.getX()+clickOffsetX, mEvent.getY()+clickOffsetY) )\n \t \t {\n \t // successfully moved to new position\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t ap.playGoodSound();\n \t\t\t }\n \n /* TODO: remove debug msg */\n \t \t\t //System.out.println(\"mouseReleased successfully moved \" + selectedWidget.getName() + \" to \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \", widget.getPosition returns \" + selectedWidget.getPosition());\n \t \n // decrement this in widget scroller\n \t ws.decreaseWidget(addedWidget);\n\n // change to selection mode\n SELECT_MODE = SelectMode.SELECTED;\n \t \t }\n \t \t else\n \t \t {\n \t // move to new pos unsuccessful\n \t\tif (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t{\n \t\t\tap.playBadSound();\n \t\t\t }\n /* TODO: remove debug msg */\n \t\t //System.out.println(\"New position \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \" not valid for \" + selectedWidget.getName() + \", returning it to widget scroller.\");\n\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n \t \t }\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* Click on widget scroller */\n switch(SELECT_MODE)\n {\n case NONE:\n case SELECTED:\n String clickedWidget = ws.getWidgetAt(pressX, pressY);\n if(clickedWidget != null)\n {\n /* clicked on an actual widget in scroller, create an instance of it and commence dragging */\n \n // TODO: check for nulls\n addedWidget = clickedWidget;\n selectedWidget = WidgetFactory.createWidget(clickedWidget);\n SELECT_MODE = SelectMode.ADDING;\n DRAG_TYPE = DragType.CLICK;\n \n /* set widget to 0,0 so its boundary will be drawn properly while dragging */\n selectedWidget.setPositionX(0.0f);\n selectedWidget.setPositionY(0.0f);\n \n clickOffsetX = 0;\n clickOffsetY = 0;\n\n canvas.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n \n /* TODO: remove debug msg */\n //System.out.println(\"Picked up \" + clickedWidget + \" from widgetscroller\");\n }\n break;\n case DRAGGING:\n /* click on widget scroller while dragging */\n //remove widget from world\n /* TODO: remove debug msg */\n //System.out.println(\"Returned \" + selectedWidget.getName() + \" to the widget scroller. (classname: \" + selectedWidget.getClass().getName() + \")\");\n\n String widgetType = selectedWidget.getClass().getName();\n ws.addWidget(widgetType.substring(widgetType.lastIndexOf(\".\")+1,widgetType.length()), 1);\n \n timWorld.removeWidget(selectedWidget);\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n\n break;\n \n case ADDING:\n /* click on widget scroller while adding */\n /* just deselect widget and go back to no selection */\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n break;\n }\n }\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tRunAll();\n\t}", "private void showButtonDemo(){\n Button submitButton = new Button(\"Submit\");\n\n Button cancelButton = new Button(\"Cancel\");\n\n submitButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n Question2Query ans = new Question2Query();\n String val= \"Sorry, we are unable to answer\";\n try {\n val = ans.ask(text.getText());\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n statusLabel.setText(\"\\n\"+val);\n }\n });\n\n cancelButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n statusLabel.setText(\"Cancel Button clicked.\");\n }\n });\n\n //controlPanel.add(okButton);\n controlPanel.add(submitButton);\n controlPanel.add(cancelButton);\n mainFrame.setVisible(true);\n }", "@Override\n public void onClick(View view) {\n if (!Constants.getActivateBottomNavigationWidgetButton().equals(\"Test Preparation\")) {\n disabledActivateBottomNavigationWidgetButton();\n\n testPreparationButton.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.ic_test_preparation, 0, 0);\n testPreparationButton.setTypeface(null, Typeface.BOLD);\n testPreparationButton.setTextColor(getResources().getColor(R.color.bottom_navigation_widget_button_enable_color));\n\n Utils.showLibrary(LibraryActivity.this, \"test_preparation, mock_test\");\n Utils.triggerGAEvent(LibraryActivity.this, \"BottomNavigation\", \"Test Preparation\", customerId);\n }\n }", "@Override\r\n\tpublic void buttonClick(ClickEvent event) {\r\n\t\tString buttonId = event.getButton().getId();\r\n\t\t\r\n\t\tswitch(buttonId) {\r\n\t\t\r\n\t\t//opens the mainView if the user clicks the gefühlslage button\r\n\t\tcase \"gefuehlslage\":\r\n\t\t\tmenuView.getUI().getNavigator().navigateTo(Views.MAIN_VIEW);\r\n\t\t break;\r\n\t\t \r\n\t\t//opens the diaryView if the user clicks the diary button \r\n\t\tcase \"diary\":\r\n\t\t\tmenuView.getUI().getNavigator().navigateTo(Views.DIARY_VIEW);\r\n\t\t break;\r\n\t\t \r\n\t\t//opens the reportView if the user clicks the report button \r\n\t\tcase \"report\":\r\n\t\t\tmenuView.getUI().getNavigator().navigateTo(Views.REPORT_VIEW);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t//opens the reminderView if the user clicks the reminder button\t\r\n\t\tcase \"reminder\":\r\n\t\t\tmenuView.getUI().getNavigator().navigateTo(Views.REMINDER_VIEW);\r\n\t\t break;\r\n\t\t \r\n\t\t//opens the medInfoView if the user clicks the medication information button \r\n\t\tcase \"medInfo\":\r\n\t\t\tmenuView.getUI().getNavigator().navigateTo(Views.MEDICATION_INFORMATION_VIEW);\r\n\t\t break;\r\n\t\t \r\n\t\t//opens the depErkView if the user clicks the definition depression button \r\n\t\tcase \"depErk\":\r\n\t\t\tmenuView.getUI().getNavigator().navigateTo(Views.DEFINITION_DEPRESSION_VIEW);\r\n\t\t break;\r\n\t\t \r\n\t\t//opens the settingsView if the user clicks the settings button \r\n\t\tcase \"settings\":\r\n\t\t\tmenuView.getUI().getNavigator().navigateTo(Views.SETTINGS_VIEW);\r\n\t\t break;\r\n\t\t \r\n\t\t//opens the sosView if the user clicks the sos button\r\n\t\tcase \"sos\":\r\n\t\t\tmenuView.getUI().getNavigator().navigateTo(Views.SOS_VIEW);\r\n\t\t break;\r\n\t\t \r\n\t\t//opens the chatView if the user clicks the chat button \r\n\t\tcase \"chat\":\r\n\t\t\tmenuView.getUI().getNavigator().navigateTo(Views.CHAT_VIEW);\r\n\t\t break;\r\n\t\t}\r\n\t}", "public void settingBtnClick() {\n\t}", "public void createEvents(){\r\n\t\tbtnCurrent.addActionListener((ActionEvent e) -> JLabelDialog.run());\r\n\t}", "@Override\n public void actionPerformed(ActionEvent arg) {\n\n String buttonName = arg.getActionCommand();\n final String device_IP = generalSet.getDevice_IP();\n final String host_IP = generalSet.getLocal_IP();\n\n if(\"重新选择测试设备\".equals(buttonName)){\n System.out.println(\"配侧设备IP:\"+generalSet.getAccompany_IP());\n MainJFrame.getInstance().switchWindow();\n }else if (\"一键测试\".equals(buttonName)) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n // TODO Auto-generated method stub\n //generalSet 在构造方法中初始化\n allTest(generalSet.getQrCode_Info());\n }\n }).start();\n } else {\n for (int i = 0; i < buttonTitle.length; i++) {\n if (buttonTitle[i].equals(buttonName)) {\n final int lastIndex = buttonTitle.length - 1;\n switch (i) {\n case 0: {// 信息设置\n new Thread(new Runnable() {\n @Override\n public void run() { // 启动线程执行后续操作\n powerLine.info_set(generalSet.getQrCode_Info());\n }\n }).start();\n break;\n }\n case 1: { //WAN和LAN口测试\n new Thread(new Runnable() {\n @Override\n public void run() { // 启动线程执行后续操作\n// setGatewayInfo(gateway_IP, host_IP);\n powerLine.wan_Lan_test();\n }\n }).start();\n break;\n }\n case 2: { //载波测试\n new Thread(new Runnable() {\n @Override\n public void run() {\n// carrier_Test(gateway_IP, buttonTitle[3]);\n powerLine.carrier_test();\n }\n }).start();\n break;\n }\n case 3: { //wifi测试\n new Thread(new Runnable() {\n @Override\n public void run() {\n //MainJFrame.showMssageln(buttonTitle[2]);\n// wifi_Test(gateway_IP, host_IP);\n powerLine.wifi_test();\n }\n }).start();\n break;\n }\n\n }\n break;\n }\n }\n }\n }", "public void run() {\r\n _btnPreviewStop.setText(\"Preview\"); // I18N\r\n }", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "private void basicUIButtonActionPerformed() {\n dbCopyFrame basicFrame = new dbCopyFrame(mainFrame, true);\n basicFrame.pack();\n basicFrame.setVisible(true);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontrolleur.executeFirstWindow();\n\t\t\t\tdispose();\n\t\t\t}", "Button getBtn();", "void btnLoadPlanning();", "@Override\r\n\tpublic void onButtonEvent(GlassUpEvent event, int contentId) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "void userPressConnectButton();", "@Override\r\n public void run() {\n opsi_menu();\r\n\r\n }" ]
[ "0.66298336", "0.65656596", "0.6492711", "0.64560896", "0.63256985", "0.6183007", "0.6162809", "0.61269194", "0.6114866", "0.60641414", "0.6061642", "0.6019588", "0.60045725", "0.59999925", "0.5998241", "0.5997925", "0.5987056", "0.5984726", "0.59772915", "0.59499425", "0.594167", "0.59246093", "0.59240067", "0.5892821", "0.5887015", "0.58849424", "0.5879146", "0.58764154", "0.5867912", "0.5862873", "0.5854626", "0.58470166", "0.58436865", "0.58422893", "0.58313024", "0.5828563", "0.5803475", "0.580186", "0.5798055", "0.5796407", "0.5789562", "0.57858056", "0.5767228", "0.5765415", "0.5754494", "0.57511973", "0.5750608", "0.5746744", "0.57389915", "0.57369334", "0.573426", "0.57301664", "0.5729396", "0.5723253", "0.57170653", "0.5715292", "0.5710024", "0.57014084", "0.57009333", "0.5697867", "0.5696904", "0.5690533", "0.5688872", "0.56858397", "0.5682332", "0.56773895", "0.5672184", "0.5666812", "0.5664257", "0.5662489", "0.5653026", "0.56520444", "0.5644126", "0.5643535", "0.5643313", "0.5626432", "0.5622205", "0.56213975", "0.5618369", "0.5607021", "0.56062424", "0.5601148", "0.56001145", "0.55993843", "0.55968195", "0.55938905", "0.55933696", "0.55860925", "0.557474", "0.55734074", "0.55700886", "0.55673224", "0.5566831", "0.5564952", "0.5561326", "0.5560704", "0.5557229", "0.5555097", "0.5553994", "0.55509186" ]
0.56291926
75
Methods / The constructor take a specific String formated word as input
public Word (String word) { // Call another constructor this(word.length()); // save the input word in this.theWord this.theWord = word.toCharArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Word (String word){\n this.word = word;\n count = 0;\n }", "public Word(String word) throws Exception{\n\t\tsuper();\n\t\tif(!isWordValid(word))\n\t\t\tthrow new Exception();\t\t\n\t\tkey = word;\n\t\tdefinition = \"\";\n\t}", "public Word(String text) {\n\t\tsuper();\n\t\tthis.text = text;\n\t}", "public Word(String text, String postag) {\n\t\tsuper();\n\t\tthis.text = text;\n\t\tthis.postag = postag;\n\t}", "public Word(String word, String meaning) throws Exception{\n\t\tsuper();\n\t\tif(!isWordValid(word))\n\t\t\tthrow new Exception();\n\t\tkey = word;\n\t\tdefinition = meaning;\n\t}", "private CommandWord(String commandString)\n {\n this.commandString = commandString;\n }", "private SpreedWord() {\n\n }", "public LyricSentence (String str) {\n this(str, 0);\n }", "public Word(final String word1, final String level1,\n final String hint11, final String hint21) {\n\n\n this.word = word1;\n this.level = level1;\n this.hint1 = hint11;\n this.hint2 = hint21;\n }", "public StringWordTokenizer(String s) {\n\t\tsuper(s);\n\t}", "private KeyWord(final String keyWord) {\n\t\tthis.keyWord = keyWord;\n\t}", "public StringNode(String word, URLLinkedList pagesContainingWord) {\n \n super();\n this.word = word;\n this.pagesContainingWord = new URLLinkedList();\n \n }", "public Word(Position position, CharSequence word) {\n this.position = position;\n this.word = word;\n }", "public Word(String str, ArrayList<Location> locations, ArrayList<Location> curlocations) {\n String curstr = \"\";\n for (Location loc : locations) {\n curstr += loc.getTile().getLetter();\n }\n this.str = curstr;\n this.locations = locations;\n this.curlocations = curlocations;\n }", "public abstract void fromString(String s, String context);", "public Verb(String word, String definition) {\n\t\tsuper(word, definition);\n\t}", "public Entry(String word){\n\t\tif (word == null){\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.word = word.toLowerCase();\n\t\tlineNumber = new ArrayList<Integer>();\n\t}", "private NameBuilderString(String text) {\r\n\t\t\tthis.text = Objects.requireNonNull(text);\r\n\t\t}", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }", "public TokenString(String s) {\n\tthis(new Tokenizer(s));\n}", "public NormalSwear(String word) {\n this.word = word;\n }", "public Term(String t) {\n this.t = t;\n \n RepCheck();\n }", "public Tag(String str) {\n\t}", "WordCounter(String inputText){\r\n \r\n wordSource = inputText;\r\n }", "public LitteralString() \n\t{\n\t\tthis(\"Chaine Litterale\");\n\t\t// TODO Auto-generated constructor stub\n\t}", "public WordsToGuess(String w)\n\t{\n\t\tword = w;\n\t}", "public abstract String construct();", "public Keyword(String word, int rank){\n this.keyword = word;\n this.rank = rank;\n this.decomplist = new ArrayList<Decomposition>();\n }", "public String newWord(String word) {\r\n\t\tthis.word = word;\r\n\t\twordLength = word.length();\r\n\t\ttries = word.length();\r\n\t\tunknownCharactersInWordState = word.length();\r\n\t\twordState = UNKNOWN.repeat(wordLength);\r\n\t\tstringBuilder = new StringBuilder(wordState);\r\n\t\tboolean lose = false;\r\n\t\treturn parseState(lose, false);\r\n\t}", "private ARXOrderedString(){\r\n this(\"Default\");\r\n }", "public Parse(String str)\r\n {\r\n super(str);\r\n }", "public Node(String wordIn) {\n MyLogger.writeMessage(\"Constructor called - \" + this.toString(), MyLogger.DebugLevel.CONSTRUCTOR);\n this.word = wordIn;\n this.wordCount = 1;\n this.left = null;\n this.right = null;\n }", "public WordNode(String word, ISentence restOfSentence) {\n this.word = word;\n this.restOfSentence = restOfSentence;\n }", "public InputParser(String sentence) {\n this.words = sentence.split(\" \");\n }", "public DoubleWord(){\n\t\tsuper();\n\t}", "public WordCount(String word, int count){\n this.word = word;\n this.count = count;\n }", "public StringWordTokenizer(WordFinder wf) {\n\t\tsuper(wf);\n\t}", "public MultilingualString(String s, String languageCode) {\n }", "public Word(String englishWord, String otherWord, int imageId, int audioId) {\n this.englishWord = englishWord;\n this.otherWord = otherWord;\n this.imageId = imageId;\n this.audioId = audioId;\n }", "public Data(String word, Point point)\r\n\t\t{\r\n\t\t\tlocations = new ArrayList<Point>();\r\n\t\t\tthis.word = word.toLowerCase();\r\n\t\t\tthis.locations.add(point);\r\n\t\t}", "public SpanishTranslator(String spanishWord)\n {\n this.spanishWord = spanishWord;\n }", "public Builder setWord(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n word_ = value;\n onChanged();\n return this;\n }", "public SentenceItem(String parse){\n\t\tString[] split = pattern.split(parse);\n\t\tthis.origWord = split[0];\n\t\tthis.word = split[1].replaceAll(\"[,.:]\", \"\");\n\t\tthis.POS = split[2];\n\t}", "public Specific(@NotNull String str) {\n super(str, null);\n Intrinsics.checkNotNullParameter(str, \"title\");\n }", "public Affettatore(String str) {\n this (str, \" \\t\\n\\r\\f\");\n }", "private Element encapsulateString(String sentence){\n return new MyElement(sentence);\n }", "public Phrase(String string) {\n this(Float.NaN, string, new Font());\n }", "abstract String makeAClue(String puzzleWord);", "public Slogan (String str)\n\t{\n\t\tpharse = str; //This can replace str \n\t\tcount++; //Don't forget iterate count variable here\n\t}", "public WordData(String word, int frequency) {\n\t\tif (word == null) {\n\t\t\tthrow new IllegalArgumentException(\"word should not be null\");\n\t\t}\n\t\tif (word.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"word should not be empty\");\n\t\t}\n\t\tif (frequency <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"frequency always should not be negative value\");\n\t\t}\n\t\tthis.data = word;\n\t\tthis.frequency = frequency;\n\t}", "void setWord(Word word);", "@Override\n\tpublic function initFromString(String s) {\n\t\treturn new Monom(s);\n\t}", "void createKeyword(String name);", "public Element(String s, int n)\n {\n symbol = s.toUpperCase();\n number = n;\n }", "private void constructTerm(String s) {\r\n int coefficient;\r\n int power;\r\n String regexPattern =\r\n \"([+-]?)([1-9]\\\\d*|0{1})([x]{1})(\\\\^{1})([1-9]\\\\d*|0{1})|([+-]?)([1-9]\\\\d*|0{1})\";\r\n Pattern p = Pattern.compile(regexPattern);\r\n Matcher m = p.matcher(s);\r\n if (!m.matches()) {\r\n throw new IllegalArgumentException(\"Illegal term, cannot be created\");\r\n }\r\n if (m.group(1) != null) {\r\n coefficient = Integer.parseInt(m.group(1).concat(m.group(2)));\r\n power = Integer.parseInt(m.group(5));\r\n addTerm(coefficient, power);\r\n } else if (m.group(6) != null) {\r\n coefficient = Integer.parseInt(m.group(6).concat(m.group(7)));\r\n power = 0;\r\n addTerm(coefficient, power);\r\n }\r\n }", "public Athlete()\r\n{\r\n this.def = \"An athlete is said to be running when he/she is accelerating in a certain direction during which his legs and the rest of his body are moving\";\r\n}", "public Keyword() {\n\t}", "public TextConstruct(String prefix, String name)\n\t{\n\t super(prefix, name); \n\t}", "CommandWord(final String pCommandString)\n {\n this.aCommandString = pCommandString;\n }", "public Token(String value, int lineNumber) {\n\t\tthis.value = value;\n\t\tthis.type = TokenType.WORD;\n\t\tthis.lineNumber = lineNumber;\n\t\tthis.numVal = 0;\n\t\tthis.wordVal = this.value.toUpperCase(Locale.ENGLISH);\n\t}", "public Point(String str) {\n String[] parsed = str.substring(1,-1).split(\" \");\n setName(parsed[0]);\n setX(Integer.parseInt(parsed[1]));\n setY(Integer.parseInt(parsed[2]));\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }", "public NgramAnalyser(String inp) \n {\n this(1,inp);\n }", "public StringInputSource(String s) {\n _index = 0;\n _input = s;\n }", "public IndexEntry(String word) {\r\n\t\tdata = word;\r\n\t\tpage = new GenericLinkedList<Integer>();\r\n\t}", "public Slogan(final String str) {\n phrase = str;\n count++;\n }", "@Override\n public Object construct(Object... args) {\n CharSequence stringData = (args.length > 0 ? ToString(realm(), args[0]) : \"\");\n ExoticString obj = new ExoticString(realm(), stringData);\n obj.setPrototype(realm().getIntrinsic(Intrinsics.StringPrototype));\n return obj;\n }", "public void setWord(String word){\n this.word = word; //Only used in testing.\n }", "public static void main(String[] args) {\n\t\tWordPattern mySol = new WordPattern();\n\t\tSystem.out.println(mySol.wordPattern(\"abba\", \"dog cat cat dog\"));\n\t\tSystem.out.println(mySol.wordPattern(\"abba\", \"dog cat cat fish\"));\n\t\tSystem.out.println(mySol.wordPattern(\"aaaa\", \"dog cat cat dog\"));\n\t\tSystem.out.println(mySol.wordPattern(\"abba\", \"dog dog dog dog\"));\n\t\t\n\t}", "public C7249w(String str) {\n super(str);\n C6888i.m12438e(str, \"value\");\n }", "public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }", "public Character(int x, int y, String s)\n\t{\n\t\txCoord = x;\n\t\tyCoord = y;\n\t\tappearance = s;\n\t}", "public AddWordAction(JTextComponent jText, String word, String label) {\r\n super(label);\r\n this.word = word;\r\n this.jText = jText;\r\n }", "public void construct(String s, String p, String o) {\n\tvariables.append(\" \").append(s != null ? s : \"?s\").append(\" \")\n\t\t.append(p != null ? p : \"?p\").append(\" \")\n\t\t.append(o != null ? o : \"?o\").append(\" . \");\n }", "public Lexer(String text) {\n\t\tif(text == null) {\n\t\t\tthrow new IllegalArgumentException(\"The argument must not be null!\");\n\t\t\t\n\t\t}\n\t\tdata = text.toCharArray();\n\t\tcurrentIndex = 0;\n\t}", "private void createWord() {\n\t\tString value = \"\";\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t}\n\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\tvalue += data[currentIndex++];\n\t\t\tvalue += data[currentIndex++];\n\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\treturn;\n\t\t}\n\t\t// no escaping!\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& !Character.isWhitespace(data[currentIndex])) {\n\t\t\tif (data[currentIndex] == '\\\\') {\n\t\t\t\tthrow new LexerException(\"No exceping alowed.\");\n\t\t\t}\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\t\ttoken = new Token(TokenType.WORD, value);\n\n\t}", "public Nawiasy(String str) {\r\n super(str);\r\n openBracket = str.equals(\"(\");\r\n }", "public VariableToken(String text) {\n super(text);\n }", "public Phrase(String string, Font font) {\n this(Float.NaN, string, font);\n this.font = font;\n }", "public Word(String s) throws FileNotFoundException, IOException, ParseException {\r\n\t\tword = s;\r\n\t\tjsonOsFile = downloadJSON(\"https://en.wikipedia.org/w/api.php?action=opensearch&format=json&search=\");\r\n\t\tjsonOsFile.deleteOnExit();\r\n\t\tjsonPageFile = downloadJSON(\"https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=\");\r\n\t\tjsonPageFile.deleteOnExit();\r\n\t\tjsonOsArray = (JSONArray)(new JSONParser().parse(new FileReader(\"JSON/\" + this.word + \"_opensearch.json\")));\r\n\t\tjsonPageObject = (JSONObject) (new JSONParser().parse(new FileReader(\"JSON/\" + this.word + \"_wikipage.json\")));\r\n\t\t\r\n\t\t//At this point, we have downloaded and saved our OpenSearch.json and Wikipage.json accordingly. \r\n\t\t\r\n\t\tjparse = new JParser();\r\n\t\trelPageStrings = jparse.getRelatedPages(jsonOsArray);\r\n\t\trelPageDesc = jparse.getRelatedPageDesc(jsonOsArray);\r\n\t\t\r\n\t\t//Retrieves all of the words on the wiki page. Still requires parsing into readable data. Pages are denoted by [[ ]] surrounding them.\r\n\t\twikipageArray = jparse.getPageContents(jsonPageObject);\r\n\t\t\r\n\t\tpageKeywords = jparse.getKeysOnPage(wikipageArray);\r\n\t\t\r\n\t}", "public CStyleLexer(String content) {\n this(content, false);\n }", "public StringSolrWord(String word) {\n this.word = word;\n if (StringUtils.startsWith(word, \"\\\"\")) {\n startByQuote = true;\n }\n if (StringUtils.endsWith(word, \"\\\"\")) {\n endByQuote = true;\n }\n if (StringUtils.equalsIgnoreCase(word, \"and\")) {\n and = true;\n }\n if (StringUtils.equalsIgnoreCase(word, \"or\")) {\n or = true;\n }\n }", "public TextConstruct(String name)\n\t{\n super(name);\n this.type = ContentType.TEXT;\n\t}", "public Thought(String word, int dimension) {\r\n\t\tthis.representation = word;\r\n\t\tthis.count = 0;\r\n\t\tenvironmental = VectorTools.newGaussian(dimension);\r\n\t\t//lexical = VectorTools.newGaussian(dimension);\r\n\t\tlexical = VectorTools.zero(dimension);\r\n\t}", "public Individual(String s){\n this.dna = s.toCharArray();\n }", "public C_Symbol(String symbol_str) {\n if(symbol_str.compareTo(String.valueOf((char)176)) == 0) {\n this.srch_Symbol = new C_Search_Symbol(symbol_str);\n this.nt = new C_NT();\n }\n else {\n this.nt = new C_NT(symbol_str);\n this.srch_Symbol = new C_Search_Symbol();\n }\n this.t = new C_T();\n this.epsilon = new C_Epsilon();\n \n }", "private Token makeOneToken(String word) {\n Tokenizer tokenizer = new Tokenizer(new StringReader(word), keywords);;\n return tokenizer.next();\n }", "public NGram(String string) {\n this(string, false, false);\n }", "public Formatter(Word word)\n\t{\n\t\tthis.word \t\t= word;\n\t\tthis.prefixes\t= word.getPrefixes();\n\t\tthis.suffixes\t= word.getSuffixes();\n\t\tthis.infixes \t= word.getInfixes();\n\t\tthis.rootWord \t= word.getRootWord();\n\t}", "public TextFlow(String s) {\n text = s;\n }", "public WordChain(String input_a) {\n\t\tint i;\n\t\tint start;\n\t\tint finish;\n\t\tString input;\n\n\t\t//Initialise\n\t\twc = new Vector();\n\t\tstart = 0;\n\t\tfinish = 0;\n\t\ti = 0;\n\n\t\t//Get rid of non-word characters\n\t\tinput = removePunctuation(input_a, false);\n\n\t\t//Each word chain has a \"_start_node_\" and an \"_end_node_\"\n\t\twc.add(\"_start_node_\");\n\n\t\t//Search for white space and grab characters from in between\n\t\twhile ((start < input.length()) && (finish < input.length())) {\n\t\t\twhile (((input.charAt(start) == ' ') || (input.charAt(start) == '\\t') || (input.charAt(start) == '\\n'))\n\t\t\t\t\t && (start < input.length() - 1)) {\n\t\t\t\tstart++;\n\t\t\t}\n\n\t\t\tfinish = start;\n\t\t\twhile (((input.charAt(finish) != ' ') && (input.charAt(finish) != '\\t') && (input.charAt(finish) != '\\n'))\n\t\t\t\t\t && (finish < input.length() - 1)) {\n\t\t\t\tfinish++;\n\t\t\t}\n\n\t\t\t//Add new word to chain\n\t\t\tif (start < finish) {\n\t\t\t\twc.add(input.substring(start, finish));\n\t\t\t}\n\t\t\tstart = finish + 1;\n\t\t}\n\n\t\t//add end node\n\t\twc.add(\"_end_node_\");\n\t}", "public PolynomialImpl(String s) {\r\n s = s.trim();\r\n if (s.equals(\"\")) {\r\n throw new IllegalArgumentException(\"Invalid String, Cannot create Polynomial\");\r\n }\r\n if (s.charAt(0) != '+' && s.charAt(0) != '-') {\r\n s = \"+\".concat(s);\r\n }\r\n if (s.charAt(s.length() - 1) != ' ') {\r\n s = s.concat(\" \");\r\n }\r\n String regexPattern =\r\n \"(([+-]{1})([1-9]\\\\d*|0{1})([x]{1})(\\\\^{1})([1-9]\\\\d*|0{1})([ ])|\" +\r\n \"([+-]{1})([1-9]\\\\d*|0{1})([ ]))+\";\r\n if (!s.matches(regexPattern)) {\r\n throw new IllegalArgumentException(\"Illegal String, Cannot create Polynomial\");\r\n }\r\n head = new PolynomialEmptyNode();\r\n String[] arrayOfString = s.split(\" \");\r\n for (String iter : arrayOfString) {\r\n constructTerm(iter);\r\n }\r\n }", "public Candidate(String w, int c) {\r\n\t\tword = w;\r\n\t\tconfidence = c; // confidence will be represented by the number of times a particular word has been entered\r\n\t\t// higher frequency of entries = higher confidence\r\n\t}", "void mo3768a(String str);", "<S> S fromStr(String s, Class<S> clazz);", "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}" ]
[ "0.7321902", "0.7243447", "0.71088755", "0.68482924", "0.6843969", "0.68228203", "0.66536206", "0.6624274", "0.64478016", "0.6410418", "0.63915724", "0.63681614", "0.63379127", "0.6323674", "0.6281762", "0.6231492", "0.62235004", "0.619026", "0.6185583", "0.61751014", "0.61691713", "0.6168692", "0.61615235", "0.6158639", "0.6156818", "0.61466056", "0.6128743", "0.612451", "0.611496", "0.60998416", "0.60795623", "0.60698336", "0.6042675", "0.60372543", "0.60275334", "0.6023293", "0.60150456", "0.6009751", "0.5989736", "0.5989402", "0.5980821", "0.59508914", "0.5938526", "0.59326357", "0.5915322", "0.5911616", "0.5891866", "0.5885397", "0.5870501", "0.5861851", "0.58541906", "0.58458173", "0.584523", "0.5836027", "0.5832015", "0.5823262", "0.58123386", "0.5808332", "0.57981896", "0.5782808", "0.57794553", "0.576254", "0.576254", "0.576254", "0.57571006", "0.57545435", "0.5737807", "0.57079744", "0.57023656", "0.57006264", "0.5694325", "0.5680612", "0.56731415", "0.56683844", "0.5665925", "0.56626177", "0.5648425", "0.56454533", "0.5640714", "0.5638475", "0.5637421", "0.5633687", "0.56219995", "0.56205636", "0.5620114", "0.5604402", "0.56032956", "0.560181", "0.5601264", "0.5596712", "0.559356", "0.5588019", "0.55872387", "0.5582644", "0.55821735", "0.55780077", "0.55759096", "0.55687964", "0.5568241", "0.5568241" ]
0.77533424
0
The constructor a more generalcased constructor which allows not initializing this.theWord
protected Word(int length) { // check if the length of is reasonable if(length > 0) { // initial the instance variables this.length = length; this.unrevealedSlots = this.length; this.mask = new boolean[this.length]; //each slots in the mask should be true (masked) by default for (int i = 0; i < this.length; i++) { this.mask[i] = true; } }else { // throw a exception if the length is not allowed throw new RuntimeException("Non-positive value is unacceptable."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Word (String word) {\n\t\t// Call another constructor\n\t\tthis(word.length());\n\t\t// save the input word in this.theWord\n\t\tthis.theWord = word.toCharArray();\n\t}", "public Word (String word){\n this.word = word;\n count = 0;\n }", "private SpreedWord() {\n\n }", "public DoubleWord(){\n\t\tsuper();\n\t}", "public Word(String word) throws Exception{\n\t\tsuper();\n\t\tif(!isWordValid(word))\n\t\t\tthrow new Exception();\t\t\n\t\tkey = word;\n\t\tdefinition = \"\";\n\t}", "public Word(String text) {\n\t\tsuper();\n\t\tthis.text = text;\n\t}", "public WordDictionary() {\n }", "public WordList() {\t\t//Default constructor\n\t}", "public WordDictionary() {\n\n }", "public WordDictionary() {\n\n }", "public WordDictionary() {\n\n }", "public WordDictionary() {\n\n }", "public WordDictionary() {\n \n \n }", "public Word(String word, String meaning) throws Exception{\n\t\tsuper();\n\t\tif(!isWordValid(word))\n\t\t\tthrow new Exception();\n\t\tkey = word;\n\t\tdefinition = meaning;\n\t}", "public Node(String wordIn) {\n MyLogger.writeMessage(\"Constructor called - \" + this.toString(), MyLogger.DebugLevel.CONSTRUCTOR);\n this.word = wordIn;\n this.wordCount = 1;\n this.left = null;\n this.right = null;\n }", "public TrieWithWord() {\n root = new TrieNodeWithWord();\n }", "public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }", "public Word(String text, String postag) {\n\t\tsuper();\n\t\tthis.text = text;\n\t\tthis.postag = postag;\n\t}", "private KeyWord(final String keyWord) {\n\t\tthis.keyWord = keyWord;\n\t}", "public Word(Position position, CharSequence word) {\n this.position = position;\n this.word = word;\n }", "public Dictionary () {\n\t\tsuper();\n\t\t//words = new ArrayList < String > () ;\n\t}", "public Dictionary() { //constructor\r\n try {\r\n createDictionary(); //create dictionary\r\n addCustomWords(); //add any user define words in it\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public WordNode(String word, ISentence restOfSentence) {\n this.word = word;\n this.restOfSentence = restOfSentence;\n }", "private WordCounting() {\r\n }", "protected Sentence() {/* intentionally empty block */}", "public Node (String newW ) {\n word = newW;\n left = null;\n right = null;\n freq = 0;\n }", "public IndexEntry(String word) {\r\n\t\tdata = word;\r\n\t\tpage = new GenericLinkedList<Integer>();\r\n\t}", "public WordList() {\n\t\twordList = new ArrayList<>();\n\t\t// TODO Add your code here\n\t}", "public WordCount() {\n }", "public WordDictionary() {\n root = new TrieNode(' ');\n maxLength = Integer.MIN_VALUE;\n }", "public Command()\r\n {\r\n this.aSecondWord = null;\r\n }", "public Verb(String word, String definition) {\n\t\tsuper(word, definition);\n\t}", "public NormalSwear(String word) {\n this.word = word;\n }", "private WordNet() {\n }", "public WordLinkedList() {\r\n\r\n head = new Node(null, null);\r\n listSize = 0;\r\n //constructor for a dummy node with nothing in the linked list\r\n\r\n }", "public DocumentWordPosition() {}", "public WordDictionary() {\n root = new TrieNode('#');\n }", "public WordDictionary() {\n root = new TrieNode();\n }", "public WordDictionary() {\n root = new TrieNode();\n }", "public WordDictionary() {\n root = new TrieNode();\n }", "public Formatter(Word word)\n\t{\n\t\tthis.word \t\t= word;\n\t\tthis.prefixes\t= word.getPrefixes();\n\t\tthis.suffixes\t= word.getSuffixes();\n\t\tthis.infixes \t= word.getInfixes();\n\t\tthis.rootWord \t= word.getRootWord();\n\t}", "public Keyword() {\n\t}", "public Word(final String word1, final String level1,\n final String hint11, final String hint21) {\n\n\n this.word = word1;\n this.level = level1;\n this.hint1 = hint11;\n this.hint2 = hint21;\n }", "public WordDictionary() {\n root=new TrieNode();\n }", "public WordDictionary()\n {\n root = new TrieNode1();\n\n }", "public Word(String englishWord, String otherWord, int imageId, int audioId) {\n this.englishWord = englishWord;\n this.otherWord = otherWord;\n this.imageId = imageId;\n this.audioId = audioId;\n }", "public WordDictionary() {\n letters = new WordDictionary[26];\n }", "public Node() {\n // set all values that indicate whether a word exists to false\n wordExists = new boolean[NUM_VALID_CHARS];\n for (boolean e : wordExists) {\n e = false;\n }\n\n // create the pointers to the next nodes\n nexts = new Node[NUM_VALID_CHARS];\n // set them all to null to avoid infinite recursion\n for (Node e : nexts) {\n e = null;\n }\n }", "private Tweet() {\n this(\"\", -1, \"\", false);\n }", "public WordDictionary() {\n \troot=new TrieNode(); \n \n }", "private LowercaseWordList() {\n\n }", "public Document()\n {\n index = 0;\n words = 0;\n sentences = 0;\n syllables = 0;\n }", "public WordData(String word, int frequency) {\n\t\tif (word == null) {\n\t\t\tthrow new IllegalArgumentException(\"word should not be null\");\n\t\t}\n\t\tif (word.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"word should not be empty\");\n\t\t}\n\t\tif (frequency <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"frequency always should not be negative value\");\n\t\t}\n\t\tthis.data = word;\n\t\tthis.frequency = frequency;\n\t}", "public Generation(){\n\t\twords = new ArrayList<String>();\n\t}", "public Keyword(String word, int rank){\n this.keyword = word;\n this.rank = rank;\n this.decomplist = new ArrayList<Decomposition>();\n }", "public Phrase() {\n this(16);\n }", "public Spell() {}", "private CommandWord(String commandString)\n {\n this.commandString = commandString;\n }", "public StringNode(String word, URLLinkedList pagesContainingWord) {\n \n super();\n this.word = word;\n this.pagesContainingWord = new URLLinkedList();\n \n }", "WordList(){\r\n\t\tm_words = new HashMap();\r\n\t}", "public Thought(String word, int dimension) {\r\n\t\tthis.representation = word;\r\n\t\tthis.count = 0;\r\n\t\tenvironmental = VectorTools.newGaussian(dimension);\r\n\t\t//lexical = VectorTools.newGaussian(dimension);\r\n\t\tlexical = VectorTools.zero(dimension);\r\n\t}", "public Sentence(){\n\t\tsentence = new ArrayList<TWord>();\n\t}", "public WordsToGuess(String w)\n\t{\n\t\tword = w;\n\t}", "public Character() {\n this(null, null, null);\n }", "public Kitten(String s, int a)\n {\n // initialise instance variables\n super(s, a);\n }", "public Entry(String word){\n\t\tif (word == null){\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.word = word.toLowerCase();\n\t\tlineNumber = new ArrayList<Integer>();\n\t}", "protected Demon(int str, int hp)\n {\n super(str, hp);\n }", "public Dog ()\n {\n super (\"Dog\", \"Hi! My name is Snoop Dawg\");\n this.x = \"A bone\";\n /*\n * This dog has many features to it\n * Do not provoke it or else it will bite!\n * Otherwise, It's a nice dog so have fun!\n */\n \n \n }", "public WordDictionary() {\n root = new TreeNode();\n }", "private ARXOrderedString(){\r\n this(\"Default\");\r\n }", "private TokenType(String spelling) {\n\t\t\tthis.spelling = spelling;\n\t\t}", "public WordCount()\n {\n //initializes common variables.\n lineNums = new CircularList();\n count = 1;\n }", "public String newWord(String word) {\r\n\t\tthis.word = word;\r\n\t\twordLength = word.length();\r\n\t\ttries = word.length();\r\n\t\tunknownCharactersInWordState = word.length();\r\n\t\twordState = UNKNOWN.repeat(wordLength);\r\n\t\tstringBuilder = new StringBuilder(wordState);\r\n\t\tboolean lose = false;\r\n\t\treturn parseState(lose, false);\r\n\t}", "public ThisKeyword(){\n this(1.0);\n }", "private Word copyWord(Word w1) {\n return new Word(w1.word, w1.subjectivity, w1.position, w1.stemmed, w1.polarity);\n }", "public LyricSentence (String str) {\n this(str, 0);\n }", "public Word(String defaultTranslation, String miwok, int musicid) {\n mDefaultTranslation = defaultTranslation;\n miwokTranslation = miwok;\n mmusic_id = musicid;\n }", "public StringWordTokenizer(String s) {\n\t\tsuper(s);\n\t}", "public StringWordTokenizer(WordFinder wf) {\n\t\tsuper(wf);\n\t}", "public Builder setWord(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n word_ = value;\n onChanged();\n return this;\n }", "private Phrase(boolean dummy) {\n }", "void setWord(Word word);", "public Builder clearWord() {\n bitField0_ = (bitField0_ & ~0x00000004);\n word_ = getDefaultInstance().getWord();\n onChanged();\n return this;\n }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public WordDictionary() {\n\t\tthis.checker = new SpellChecker();\n\n\t\t\ttry {\n\t\t\t\tReader reader = new InputStreamReader(WordDictionary.class.getResourceAsStream(\"/english.txt\"));\n\t\t\t\tthis.checker.initialize(reader);\n\t\t\t} catch (Exception exception) {\n\t\t\t\tSystem.err.println(\"Wrong path to dictionary file\");\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t}", "public Hacker() {\r\n \r\n }", "public CaseInsensitiveDictionary() {\n words = new HashSet<>();\n }", "public WordCount(String _word, int lnNum)\n {\n //initializes common variables \n count = 1;\n lineNums = new CircularList();\n //initializes specific passed variables\n word = _word;\n addLineNum(lnNum);\n }", "public MarkovWord(int myOrder){\n this.myOrder = myOrder; \n }", "public Word(String s) throws FileNotFoundException, IOException, ParseException {\r\n\t\tword = s;\r\n\t\tjsonOsFile = downloadJSON(\"https://en.wikipedia.org/w/api.php?action=opensearch&format=json&search=\");\r\n\t\tjsonOsFile.deleteOnExit();\r\n\t\tjsonPageFile = downloadJSON(\"https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=\");\r\n\t\tjsonPageFile.deleteOnExit();\r\n\t\tjsonOsArray = (JSONArray)(new JSONParser().parse(new FileReader(\"JSON/\" + this.word + \"_opensearch.json\")));\r\n\t\tjsonPageObject = (JSONObject) (new JSONParser().parse(new FileReader(\"JSON/\" + this.word + \"_wikipage.json\")));\r\n\t\t\r\n\t\t//At this point, we have downloaded and saved our OpenSearch.json and Wikipage.json accordingly. \r\n\t\t\r\n\t\tjparse = new JParser();\r\n\t\trelPageStrings = jparse.getRelatedPages(jsonOsArray);\r\n\t\trelPageDesc = jparse.getRelatedPageDesc(jsonOsArray);\r\n\t\t\r\n\t\t//Retrieves all of the words on the wiki page. Still requires parsing into readable data. Pages are denoted by [[ ]] surrounding them.\r\n\t\twikipageArray = jparse.getPageContents(jsonPageObject);\r\n\t\t\r\n\t\tpageKeywords = jparse.getKeysOnPage(wikipageArray);\r\n\t\t\r\n\t}", "public Term(String t) {\n this.t = t;\n \n RepCheck();\n }", "public sword ( )\r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tsuper();\r\n\t\tthis.setDamageBuff (3);\r\n\t\tthis.setDurability (15);\r\n\t\tthis.setWeaponName (\"Sword\");\r\n\t}", "public Candy() {\n\t\tthis(\"\");\n\t}", "public WordCount(String word, int count){\n this.word = word;\n this.count = count;\n }", "public Translation() {\n\n this(0, 0, 0);\n }", "public Dictionary ( ArrayList < String > listOfWords ) {\n\t\tsuper(listOfWords.get((listOfWords.size()-1)/2));\n\t\t\n\t\t//store words list as binary tree\n\t\t//starts with left side then with right\n\t\tint start = 0;\n\t\tint end = listOfWords.size()-1;\n\t\tint mid = (start+end)/2;\n\t\tmakeTree(listOfWords, start, mid-1);\n\t\tmakeTree(listOfWords, mid+1, end);\n\t\t\n\t\t\n\t\t/**old code written by Professor below\n\t\t * \n\t\t */\n\t\t//words = listOfWords;\n\t\t//if (null == words) {\n\t\t//\twords = new ArrayList <String> ();\n\t\t//}\n\t\t\n\n\t\t\n\t}", "public SearchTreeNode()\n\t{\n\t\tthis.word = \"\";\n\t\tthis.children = new HashSet<>();\n\t}", "public SearchFile(){\r\n filePath = \"Unknown\";\r\n wordSearched = \"Unknown\";\r\n wordLength = 0;\r\n occurrences = 0;\r\n }", "WordCounter(){\r\n }", "@Override\n public IWord clone() {\n IWord w = null;\n try {\n w = (IWord) super.clone();\n } catch (CloneNotSupportedException e) {\n e.printStackTrace();\n }\n\n return w;\n }" ]
[ "0.8413284", "0.7888346", "0.7730238", "0.7692205", "0.7476982", "0.7456652", "0.72897965", "0.72553796", "0.7212666", "0.7212666", "0.7212666", "0.71760315", "0.7112761", "0.7077101", "0.69598174", "0.693977", "0.68611896", "0.68381834", "0.6804849", "0.6797066", "0.6775056", "0.67734337", "0.6714055", "0.6702533", "0.6683477", "0.6651845", "0.6626793", "0.662552", "0.66116995", "0.66113496", "0.66062003", "0.65946543", "0.65938705", "0.65901786", "0.65818334", "0.6574892", "0.65703404", "0.65684646", "0.65684646", "0.65684646", "0.6527761", "0.65208745", "0.65183246", "0.65007645", "0.6499589", "0.64977574", "0.6433622", "0.64212406", "0.6411992", "0.63935065", "0.6379758", "0.63634497", "0.6341615", "0.6338258", "0.63374305", "0.63206697", "0.62965244", "0.6292206", "0.62871337", "0.6269237", "0.6256553", "0.62510896", "0.62485063", "0.622628", "0.6203059", "0.6199601", "0.6183879", "0.6183175", "0.61773133", "0.6171907", "0.6169981", "0.61465466", "0.6141549", "0.6131215", "0.6115594", "0.60844016", "0.6071204", "0.6069662", "0.6066399", "0.60602194", "0.60454893", "0.6039481", "0.6036197", "0.6013399", "0.6004186", "0.60004294", "0.59999174", "0.59929615", "0.599035", "0.5960374", "0.59492326", "0.5947838", "0.5947175", "0.59445286", "0.5935088", "0.5930536", "0.5921149", "0.5915944", "0.5909203", "0.59047526" ]
0.62131256
64
return the length of the word
protected int getLength() { return this.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWordLength();", "public static int getWordlenght() {\r\n\t\treturn lenght;\r\n\t}", "public int getWordSize(){\n\t\treturn word.length;\n\t}", "public int getLength() { return this.words.size(); }", "public int numWords(int length) {\r\n return 0;\r\n }", "public int lengthOfLongestWord(){\n int n=0;\n for(int i=0;i<size();i++)\n if(get(i).length()>n)n=get(i).length();\n return n;\n }", "public int numWordsOfLength(int len){\n int n=0;\n for(int i=0;i<size();i++)\n if(get(i).length()==len)n++;\n return n;\n }", "public int getWordLength(String word) {\n char[] notValidChars = {',', '-', '\"', '.', '\\''};\n int wordLength = 0;\n for(int i = 0, n = word.length(); i < n; i++) {\n char currentChar = word.charAt(i);\n boolean isCharFirstOrLast = word.indexOf(currentChar) == 0 || word.indexOf(currentChar) == n-1;\n boolean isNotChar = arrayContainsChar(notValidChars, currentChar);\n \n // if char is valid char, or an invalid char that's not the starting or ending of the word\n if(Character.isLetter(currentChar) || (isNotChar && !isCharFirstOrLast) ) {\n wordLength++;\n }\n }\n return wordLength;\n }", "int getTextLength();", "public int length() {\r\n\t\treturn text.length();\r\n\t}", "public int getSizeWord(){\r\n\t\tint size;\r\n\t\tif (wordSelected != null)\r\n\t\t\tsize = wordSelected.length();\t\t\r\n\t\telse\r\n\t\t\tsize = 0;\r\n\t\t\r\n\t\treturn size;\t\t\r\n\t}", "public int get_length();", "public int getLength() {\n\t\t\treturn this.text.length();\n\t}", "public int getTextLength();", "public int getWordCount(){\r\n\t\treturn wordCount;\r\n\t}", "public int my_length();", "public int length();", "public int length();", "public int length();", "public int length();", "public int length();", "public int count(String word);", "public int getWordCount()\n {\n return m_iWordCount;\n }", "public long getNumberOfWords() {\n return numberOfWords;\n }", "public int getWordCount() {\n return wordCount;\n }", "public int size(){\n return words.size();\n }", "public int getLongestWordLength(String word)\n\t{\n\t\t//checks to make sure the word is a word that starts with a lowercase letter, otherwise return 0\n\t\tif(word.charAt(0) >= 'a' && word.charAt(0) <= 'z')\n\t\t{\n\t\t\tchar letter = word.charAt(0);\n\t\t\t\n\t\t\treturn (myDictionaryArray[(int)letter - (int)'a'].getLongestWordLength());\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "public int size() {\n return this.wordNumber;\n }", "public int size(String word) {\n\t\treturn contains(word) ? invertedIndex.get(word).size() : 0;\n\t}", "public int getWordCount() {\n\t\treturn 10;\n\t}", "public int numWords(int length) {\r\n int numOfLength = 0;\r\n \r\n //Check amt. of words in this dictionary that are == to length input\r\n \tfor (int word = 0; word < dictionary.size(); word++) {\r\n \tif (dictionary.get(word).length() == length)\r\n \t\tnumOfLength++;\r\n }\r\n \treturn numOfLength;\r\n }", "@Override\n\tpublic int getLength() {\n\t\tint c = 0;\n\t\tfor (char c1 : theString.toCharArray()) {\n\t\t\tc++;\n\t\t}\n\t\treturn c;\n\t}", "int size() {\r\n\t\treturn m_words.size();\r\n\t}", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "public void findLength()\n\t{\n\t\tlength = name.length();\n\t}", "public int getLength();", "public int getLength();", "public int getLength();", "public int getStringWidth(String text);", "int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}", "public int length() {\n/* 103 */ return this.m_str.length();\n/* */ }", "public int getWordCount() {\n return totalWords;\n }", "public long getLength();", "public long getLength();", "public int numWords(int length) {\r\n \tint num = 0;\r\n \tfor (String s : words) {\r\n \t\tif (s.length() == length) {\r\n \t\t\tnum++;\r\n \t\t}\r\n \t}\r\n return num;\r\n }", "public String getlength()\n\t{\n\t\treturn length.getText();\n\t}", "@Override\r\n\tpublic int length() {\n\t\treturn chars.length;\r\n\t}", "public static int len (String input){\n\t\t\n\t\tString trim = input.trim();\n\t\tif (trim.isEmpty())\n\t\t return 0;\n\t\treturn trim.split(\"\\\\s+\").length; // separate string around spaces\n\t\t\n\t\t//return len;\n\t}", "public abstract int length();", "public abstract int length();", "public int getLength() {\n if (data instanceof String) {\n String string = (String) data;\n return string.length();\n } else if (data instanceof StringReference) {\n StringReference stref = (StringReference) data;\n return stref.getLength();\n } else if (data instanceof Value) {\n Value val = (Value) data;\n return val.getString().length();\n } else {\n return data.toString().length();\n }\n }", "public int length() {\n \t \n \t //return the length\n \t return(len);\n }", "int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "int len();", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public static int length(String s) {\n\treturn s.length();\n\t}", "@Override\n public String longestWord() {\n if (this.word.length() > this.restOfSentence.longestWord().length()) {\n return this.word;\n }\n return this.restOfSentence.longestWord();\n }", "public int length() {\n\treturn tokens.length;\n}", "public static int getPauseLength(final String word) {\n int numWord = 0;\n int wordCount = word.length();\n // this check to see if there are any semicolons or commas.\n for (int x = 0; x < wordCount; x++) {\n if (word.substring(x).equals(\",\")) {\n numWord++;\n wordCount = wordCount - 1;\n } else if (word.substring(x).equals(\".\")\n || word.substring(x).equals(\";\")) {\n numWord += 2;\n wordCount = wordCount - 1;\n\n }\n }\n // this to see how make character are in each word to get\n // the pause length\n if (wordCount <= 5) {\n numWord += 1;\n } else if (wordCount <= 10) {\n numWord += 2;\n } else if (wordCount <= 15) {\n numWord += 3;\n } else {\n numWord += 4;\n }\n\n return numWord;\n }", "private static int lengthOfLastWord(String s) {\n int count = 0;\n char[] arr = s.trim().toCharArray();\n\n for (int i = arr.length - 1; i >= 0; i--) {\n if (arr[i] == ' ') { break; }\n count++;\n }\n return count;\n }", "public final int termLength() {\n initTermBuffer();\n return termLength;\n }", "public int getLength()\n\t{\n\t\treturn mLength;\n\t}", "public int lengthOfLastWord(String s) {\n String[] words = s.split(\" \");\n return words.length==0?0:words[words.length-1].length();\n }", "private int length() {\n\t\treturn this.lenght;\n\t}", "static int size_of_lhld(String passed){\n\t\treturn 3;\n\t}", "public static void main(String[] args) {\n\t\tString s = \"Hello world\";\r\n\t\tint size = lengthOfLastWord(s);\r\n\t\tSystem.out.println(size);\r\n\r\n\t}", "public float getWidth() {\n\t\t\n\t\tfloat width= 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\twidth += font.getChar(text.charAt(i)).X_ADVANCE * size;\n\t\t}\n\t\t\n\t\treturn width;\n\t}", "int totalWords();", "public int length()\n\t{\n\t\treturn length;\n\t}", "public int getLength() {\r\n\t\treturn length;\r\n\t}", "public int numberOfCharacters(String senha){\n return senha.length();\n }", "public static int calculateLengthOfLongestWord(final List<String> lines)\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}", "private static int countSyllables(String word) {\r\n\t\tint count = 0;\r\n\t\tword = word.toLowerCase();\r\n\r\n\t\tif (word.length()>0 && word.charAt(word.length() - 1) == 'e') {\r\n\t\t\tif (silente(word)) {\r\n\t\t\t\tString newword = word.substring(0, word.length()-1);\r\n\t\t\t\tcount = count + countit(newword);\r\n\t\t\t} else {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcount = count + countit(word);\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int getLength()\n {\n\treturn length;\n }", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public double get_length() {\n\t\treturn _length;\n\t}", "public double getLength();" ]
[ "0.859207", "0.8357004", "0.7955007", "0.781396", "0.7586256", "0.7576015", "0.74353415", "0.7388972", "0.72372496", "0.71810734", "0.7143635", "0.7110763", "0.7102758", "0.7101043", "0.7066419", "0.7015262", "0.6983056", "0.6983056", "0.6983056", "0.6983056", "0.6983056", "0.697085", "0.696745", "0.69523335", "0.6922884", "0.69150484", "0.6904568", "0.6900858", "0.6897827", "0.6873311", "0.6847956", "0.6844285", "0.6838357", "0.68233955", "0.68233955", "0.68233955", "0.68233955", "0.68233955", "0.68233955", "0.68233955", "0.68233955", "0.68233955", "0.68233955", "0.6819311", "0.6794209", "0.6794209", "0.6794209", "0.67803305", "0.67705625", "0.67272395", "0.67021745", "0.67012167", "0.67012167", "0.6701043", "0.66785383", "0.6665463", "0.66521645", "0.663357", "0.663357", "0.66297805", "0.66251385", "0.6621772", "0.6621772", "0.6621772", "0.6621772", "0.6621772", "0.6621772", "0.6621772", "0.6599232", "0.65940756", "0.65940756", "0.65932286", "0.6592006", "0.6585295", "0.6580218", "0.65530145", "0.6551149", "0.6540439", "0.6539612", "0.6528745", "0.6519796", "0.6518838", "0.65122193", "0.65102136", "0.6505194", "0.6500262", "0.64977586", "0.64910084", "0.6483279", "0.6480566", "0.64803606", "0.64803606", "0.64803606", "0.64803606", "0.64803606", "0.64803606", "0.64743876", "0.64743876", "0.64743876", "0.64651287", "0.6459223" ]
0.0
-1
return the current mask of the word
protected boolean[] getMask() { return this.mask; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getMask() {\r\n\t\treturn this.mask;\r\n\t}", "public int letterMask(){\n\t\t\treturn letter_mask;\n\t\t}", "ICharacterMask getCharacterMask(int index);", "Long getResultMaskBoundary();", "public Boolean maskText();", "public BitSet getMask() {\r\n return mask;\r\n }", "public Function<Matcher, String> getApplyMaskFn() {\n return applyMaskFn;\n }", "static long getMask(int pos) {\n if(pos < W) {\n int mod = pos%W;\n if(H > 1 && W > 1 && mod == 0) {\n return CROSS >>> W-pos & ~(1L << W-1);\n } else if(H > 1 && W > 1 && mod == W-1) {\n return CROSS >>> W-pos & ~(1L << W);\n } else {\n return CROSS >>> W-pos;\n }\n } else {\n int mod = pos%W;\n if(H > 1 && W > 1 && mod == 0) {\n return CROSS << pos-W & ~(1L << W-1);\n } else if(H > 1 && W > 1 && mod == W-1) {\n return CROSS << pos-W & ~(1L << W);\n } else {\n return CROSS << pos-W;\n }\n }\n }", "public long getSourceMask()\r\n { return srcmask; }", "public int getTurnCode(){\n return mask;\n }", "public java.lang.String getMaskstatus() {\n return maskstatus;\n }", "public WavelengthMask getMask() {\r\n\t\treturn this.mask;\r\n\t}", "public BitSet getBitSetMask() {\r\n return newMask;\r\n }", "@Override\n\tpublic String toString() {\n\t\t// create the String to return\n\t\tString str = new String();\n\t\t// get the mask\n\t\tboolean[] mask = this.getMask();\n\t\t// the new char of the string\n\t\tchar oneChar;\n\t\t// for each character in the word\n\t\tfor (int i = 0; i < this.getLength(); i++) {\n\t\t\t// if it is masked, set the new char as \"_\"\n\t\t\tif (mask[i] == true) {\n\t\t\t\toneChar = '_';\n\t\t\t\t// if it is unmasked, set the new char as the true character\n\t\t\t}else {\n\t\t\t\toneChar = this.theWord[i];\n\t\t\t}\n\t\t\t// add the new char to the string\n\t\t\tstr += \" \" + oneChar;\n\t\t}\n\t\t// return the string\n\t\treturn str;\n\t}", "public long getKey()\r\n {\r\n return bitboard + mask;\r\n }", "public java.lang.String getMaskplan() {\n return maskplan;\n }", "byte[] networkMask();", "public short[] getShortMask() {\r\n return newShortMask;\r\n }", "String getIndexBits();", "private static synchronized int nextMask() {\n return (int) Math.pow(2, maskCount++);\n }", "public org.sirius.client.win32.core.types.Dword getFMask() {\n return fMask;\n }", "protected boolean getBit(long word, long position) {\n\t\treturn (word & (1L << position)) != 0;\n\t}", "int getWord( int pos){\n\t\treturn data[pos] + (data[pos+1] << 8);\n\t}", "MaskTree getProjectionMask();", "IntExpression implicitMask(Expression p) {\n\t\treturn p.join(mask).sum();\n\t}", "int createMaskWord(int num_mask, int word_len) {\r\n\t\tint a, b;\r\n\r\n\t\ta = 0;\r\n\t\tfor (int i = 0; i < num_mask; i++) {\r\n\t\t\tb = 1 << (word_len / 2);\r\n\t\t\t// b = 1 << (rand.nextInt()%word_len); //generate a random number\r\n\t\t\t// between 0 and the word_len\r\n\t\t\ta = a | b;\r\n\t\t}\r\n\t\treturn a;\r\n\t}", "public String getOperationMask() {\r\n\t\treturn operationMask;\r\n\t}", "public KeyMask getKeyMask() {\r\n\t\treturn fieldKeyMask;\r\n\t}", "public MaskMode mo23052a() {\n return this.f12739a;\n }", "public int getCoverMask()\r\n/* 192: */ {\r\n/* 193:150 */ return this.CoverSides;\r\n/* 194: */ }", "public Character getCurrentFlag() {\n return currentFlag;\n }", "private boolean marked(int w) {\n return marked[w];\r\n }", "public List<Mask> getMasks() {\n return Collections.unmodifiableList(masks);\n }", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public String getWord()\n\t{\n\t\treturn word.get(matcher());\n\t}", "public String applyMask( String stringToMask ) {\n Pattern p = Pattern.compile( getMatchRegex() );\n Matcher m = p.matcher( stringToMask );\n String maskedResult = applyMaskFn.apply( m );\n return maskedResult == null ? stringToMask : \n stringToMask.substring( 0, m.start( 1 ) )\n + maskedResult\n + stringToMask.substring( m.end() );\n }", "public String getCurrent_word(){\n\t\treturn current_word;\n\t}", "java.lang.String getWord();", "public long column_mask(int col) {\r\n return (((long)1 << height)-1) << col*(height+1);\r\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "protected int markIfNecessary(final String src, final int currentMask) {\n if (!isContainedBy(src)) {\n return currentMask;\n }\n return currentMask | mask;\n }", "private long getSleepMask()\n {\n return sleepMask;\n }", "public static int getMaskFor(final Target target, final ElementType...minus) {\n \tint m = 0;\n \tfor(ElementType et: target.value()) {\n \t\tm = m | ElementTypeMapping.valueOf(et.name()).mask;\n \t}\n \tfor(ElementType et: minus) {\n \t\tm = m & ~ElementTypeMapping.valueOf(et.name()).mask; \n \t}\n \treturn m;\n }", "private String wordToFind() {\n\t\t\n\t\t//It actually just gets the incomplete version of the word, with underscores.\n\t\t//By the point this method is called, the server will have created a thread for\n\t\t//this client and generated a random word for this client to aim for. \n\t\t//The underscore variant will be just as long as the real word, so it can be used\n\t\t//for array lengths and, since it'll be all underscores, even if a hacker went to\n\t\t//print out the value of temp, they wouldn't get anywhere.\n\t\tout.println(\"GetWord\");\n\t\tString temp = null;\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\ttemp = in.readLine();\n\t\t\t\tif(temp!=null) {\n\t\t\t\t\tcurrentWordLabel = new Label(temp);\n\t\t\t\t\treturn temp;\n\t\t\t\t}\n\t\t\t}catch(IOException ioe) {\n\t\t\t}\n\t\t}\n\t}", "public RMRect getBoundsMarked()\n{\n // Declare bounds marked rect\n RMRect boundsMarked = null;\n \n // If stroke, get stroke marked bounds\n if(getStroke()!=null)\n boundsMarked = getStroke().getBounds(this);\n \n // If fill, get fill marked bounds\n if(getFill()!=null) {\n RMRect b = getFill().getBounds(this);\n boundsMarked = boundsMarked==null? b : boundsMarked.unionRect(b);\n }\n \n // If effect, get effect marked bounds\n if(getEffect()!=null) {\n RMRect b = getEffect().getBounds(this);\n boundsMarked = boundsMarked==null? b : boundsMarked.unionRect(b);\n }\n \n // Return marked bounds\n return boundsMarked!=null? boundsMarked : getBoundsInside();\n}", "public String getEditMask() {\n\t\treturn editMask;\n\t}", "int[][]\n getVerticalMask();", "MaskTree getMetadataProjectionMask();", "public static int computeTemplateMask(final String src) {\n int currentMask = 0;\n for (TemplateElement templateElt : availableTemplateElements) {\n currentMask = templateElt.markIfNecessary(src, currentMask);\n }\n return currentMask;\n }", "java.lang.String getBiasPrefixMatch(int index);", "public InputFilter getPhoneMask() {\r\n\t\treturn new InputFilter() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) {\r\n\t\t\t\tSystem.out.println(\"source = \" + source + \", start = \" + start + \", end = \" + end + \", dest = \" + dest + \", dstart = \" + dstart + \", dend = \" + dend);\r\n\r\n\t\t\t\tif (source.length() > 0) {\r\n\r\n\t\t\t\t\tif (!Character.isDigit(source.charAt(0)))\r\n\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tif ((dstart == 3) || (dstart == 7))\r\n\t\t\t\t\t\t\treturn \"-\" + source;\r\n\t\t\t\t\t\telse if (dstart >= 12)\r\n\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t};\r\n\t}", "private static int _getMask(final int bitIndex) {\n return (1 << bitIndex);\n }", "public int getAnalysisBits();", "private Mask$MaskMode() {\n void var2_-1;\n void var1_-1;\n }", "public void getWord() {\n\t\t\n\t}", "protected long setBit(long word, boolean flag, long position) {\n\t\tif (!flag) {\n\t\t\treturn word & (~(1L << position));\n\t\t}\n\t\treturn word | (1L << position);\n\t}", "protected int getMaskValue(int i, int j, int band) {\r\n\t\treturn 1;\r\n\t}", "BinaryImage getWordMatrix(Rectangle wordBoundary);", "public int calWord() {\n for(int i = 0; i < newWord.length(); i++) {\n for (String c : keySetPoint) {\n if(String.valueOf(newWord.charAt(i)).equals(c)) {\n point += mapPoint.get(c);\n }\n }\n }\n\n return point;\n }", "public static long getVpnIdMaskForReg() {\n return METADATA_MASK_VRFID.toJava().shiftRight(1).longValue();\n }", "int getActionMask()\n {\n return m_eventTypeMask;\n }", "public int getWaveAplitude(){\n\t\tint ret = (command[4]&0x00FF);\n\t\treturn ret;\n\t}", "private Set<Glyph> retrieveFlags ()\r\n {\r\n Set<Glyph> foundFlags = new HashSet<>();\r\n\r\n for (Glyph glyph : getSystem().getInfo().getGlyphs()) {\r\n Shape shape = glyph.getShape();\r\n\r\n if (ShapeSet.Flags.contains(shape)) {\r\n if (glyph.getTranslations().contains(this)) {\r\n foundFlags.add(glyph);\r\n }\r\n }\r\n }\r\n\r\n return foundFlags;\r\n }", "private int getUseOfLetter(String word) {\n int result = 0;\n for (int i = 0; i < word.length(); i++) {\n result |= tables[word.charAt(i)];\n }\n return result;\n }", "public ShortProcessor distanceMap(ImageProcessor mask) {\n\n\t\t// size of image\n\t\twidth = mask.getWidth();\n\t\theight = mask.getHeight();\n\t\t\n\t\t// update mask\n\t\tthis.maskProc = mask;\n\n\t\t// create new empty image, and fill it with black\n\t\tbuffer = new ShortProcessor(width, height);\n\t\tbuffer.setValue(0);\n\t\tbuffer.fill();\n\t\t\n\t\t// initialize empty image with either 0 (background) or Inf (foreground)\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tint val = mask.get(i, j) & 0x00ff;\n\t\t\t\tbuffer.set(i, j, val == 0 ? 0 : backgroundValue);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Two iterations are enough to compute distance map to boundary\n\t\tforwardIteration();\n\t\tbackwardIteration();\n\n\t\t// Normalize values by the first weight\n\t\tif (this.normalizeMap) {\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\t\tif (maskProc.getPixel(i, j) != 0) {\n\t\t\t\t\t\tbuffer.set(i, j, buffer.get(i, j) / weights[0]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Compute max value within the mask\n\t\tshort maxVal = 0;\n\t\tfor (int i = 0; i < width; i++)\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tif (maskProc.getPixel(i, j) != 0)\n\t\t\t\t\tmaxVal = (short) Math.max(maxVal, buffer.get(i, j));\n\t\t\t}\n\n\t\t// calibrate min and max values of result imaeg processor\n\t\tbuffer.setMinAndMax(0, maxVal);\n\n\t\t// Forces the display to non-inverted LUT\n\t\tif (buffer.isInvertedLut())\n\t\t\tbuffer.invertLut();\n\t\t\n\t\treturn buffer;\n\t}", "public static long getElanMaskForReg() {\n return METADATA_MASK_SERVICE.toJava().shiftRight(24).longValue();\n }", "long getCollideBits();", "private static int maskToVC(int modifier) {\n if(modifier == ALT_DOWN_MASK) { return VK_ALT; }\n if(modifier == CTRL_DOWN_MASK) { return VK_CONTROL; }\n if(modifier == SHIFT_DOWN_MASK) { return VK_SHIFT; }\n return 0;\n }", "private long mask(int n) {\n\t\treturn 1L << n;\n\t}", "public static int getBit(byte input,int position){\n return (input >> position) & 1;\n }", "public static int getWithMask(final int source, final int mask) {\n int target = 0;\n for (int sourcePosition = 0; sourcePosition < BYTE_LENGTH; sourcePosition++) {\n if (bitIsSet(mask, Bits.getBit(sourcePosition))) {\n target = setFlag(target, Bits.getBit(sourcePosition), bitIsSet(source, Bits.getBit(sourcePosition)));\n }\n }\n return target;\n }", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "int getFlag();", "com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();", "static int modifiedCalcCircularRefElementOffset(long index, long mask) {\n/* 93 */ return (int)(index & mask) >> 1;\n/* */ }", "public Inet4Address getNetMask() {\n\t\t//TODO hardcoding it with assumption that it's 255.255.255.0\n\t\tbyte[] netmask = new byte[]{(byte) 255,(byte) 255,(byte) 255,0};\n\t\ttry {\n\t\t\treturn (Inet4Address) Inet4Address.getByAddress(netmask);\n\t\t} catch (UnknownHostException e) {\n\t\t\t//Weird shouldn't happen\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "int getBitAsInt(int index);", "private long bottom_mask(int col) {\r\n return (long)1 << col*(height+1);\r\n }", "public int getWordOffset() {\n\t\treturn wordOffset;\n\t}", "public Sword getCurrentSword() {\n return currentSword;\n\t}", "com.google.protobuf.FieldMask getUpdateMask();", "com.google.protobuf.FieldMask getUpdateMask();", "com.google.protobuf.FieldMask getUpdateMask();", "com.google.protobuf.FieldMask getUpdateMask();", "@NativeType(\"uint16_t\")\n public short scaling_list_present_mask() { return nscaling_list_present_mask(address()); }", "com.google.protobuf.FieldMask getFieldMask();", "private static int mask(int bit) {\n return MSB >>> bit;\n }", "public FBitSet getSelection() {\r\n\t\treturn selection;\r\n\t}", "public List<Mask> getDontCareMasks() {\n return Collections.unmodifiableList(dontCareMasks);\n }", "public int getPartsMask()\r\n/* 62: */ {\r\n/* 63: 52 */ return this.CoverSides | 0x20000000;\r\n/* 64: */ }", "public String asMaskedPan() {\n if (pan != null && pan.length() >= 12 && pan.length() <= 19) {\n int lastPos = pan.length() - 4;\n return new StringBuilder(pan).replace(6, lastPos, \"xxxxxxxxxxxxxxxxxxx\".substring(0, lastPos - 6)).toString();\n } else {\n return pan;\n }\n }", "public String getWord()\r\n\t\t{\r\n\t\t\treturn word;\r\n\t\t}", "private boolean checkKey(char k)\n {\n \tint index = word.indexOf(k);\n \tif (index == -1)\n \t{\n \t\t//k doesn't exist in word\n \t\tguess_number--;\n \t\treturn false;\n \t}\n \telse\n \t{\n \t\t//k exist in the word\n \t\twhile (index != -1)\n \t\t{\n \t\t\t//update mask\n \t\t\tmask = mask.substring(0, index)+k+mask.substring(index+1);\n \t\t\t//update index\n \t\t\tindex = word.indexOf(k, index + 1);\n \t\t}\n \t\treturn true;\n \t}\n \t\n }", "public interface WordAnalyser {\n\n /**\n * Gets the bounds of all words it encounters in the image\n * \n */\n List<Rectangle> getWordBoundaries();\n\n /**\n * Gets the partial binary pixel matrix of the given word.\n * \n * @param wordBoundary\n * The bounds of the word\n */\n BinaryImage getWordMatrix(Rectangle wordBoundary);\n\n}", "IntExpression explicitMask(Expression p) {\n\t\treturn ones.shl(implicitMask(p));\n\t}", "public int getMineClearingMode();", "private String keywordFound(){\r\n\t\tString rtn = \"\";\r\n\t\tString tmp = \"\";\r\n\t\tint carr_pos = getCaretPosition();\r\n\t\t//estract part of text for keyword search\r\n\t\ttry { \r\n\t\tif(carr_pos>50)\r\n\t\t\ttmp = doc.getText(carr_pos-50,50);\r\n\t\telse\r\n\t\t\ttmp = doc.getText(0,carr_pos);\r\n\t\t}catch(BadLocationException a){\r\n\t\t\tSystem.out.println(\"exception\");\r\n\t\t\treturn rtn;\r\n\t\t};\r\n\t\t//Start check\r\n\t\tint i = 0;\r\n\t\tif(tmp.length() >= 2)i = tmp.length()-2;\t\r\n\t\twhile(checkOperator(tmp.charAt(i)) && i > 0){\r\n\t\t\trtn += tmp.charAt(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t\tif(i == 0)rtn += tmp.charAt(i);\t\t\r\n\t\treturn mirrorString(rtn);\r\n\t}", "@Override\n public String getContig() {\n return feature.getContig();\n }", "public static String getWord() {\r\n\t\treturn Text;\r\n\t}", "private long top_mask(int col) {\r\n return (long)1 << height - 1 << col*(height+1);\r\n }" ]
[ "0.6589983", "0.63401693", "0.6330577", "0.6192664", "0.61695296", "0.6166126", "0.6090558", "0.5918397", "0.59010136", "0.58734155", "0.58663166", "0.58381206", "0.57866144", "0.57669383", "0.5762503", "0.5749264", "0.57079655", "0.569112", "0.5675752", "0.56386703", "0.559383", "0.55232334", "0.55043966", "0.5441482", "0.53627247", "0.5330446", "0.53142387", "0.5268165", "0.52602345", "0.5252957", "0.5245819", "0.52387667", "0.5234175", "0.5230918", "0.52282387", "0.5205678", "0.5194824", "0.5192918", "0.51477987", "0.51441675", "0.51362216", "0.5129013", "0.51209056", "0.50931734", "0.50753087", "0.5053942", "0.5047787", "0.5043286", "0.5035882", "0.50046396", "0.4977216", "0.49692667", "0.49682453", "0.49651954", "0.49569222", "0.49499384", "0.49378115", "0.4934319", "0.49310043", "0.49247608", "0.4923142", "0.48922843", "0.48859224", "0.48755074", "0.48751646", "0.48750663", "0.48732343", "0.48642674", "0.48630428", "0.48402655", "0.48263636", "0.4821267", "0.47985852", "0.47872132", "0.47870502", "0.47726783", "0.47713825", "0.4769841", "0.4766441", "0.47595698", "0.47541338", "0.47541338", "0.47541338", "0.47541338", "0.4746309", "0.474572", "0.4745053", "0.47386324", "0.4735455", "0.4733743", "0.4709166", "0.4702144", "0.4692581", "0.46606717", "0.4658515", "0.46563748", "0.46509424", "0.4649132", "0.46418846", "0.46400023" ]
0.6108353
6
unmask the corresponding position of the word decrement this.unrevealedSlots by 1
protected void unmaskSlot(int slot) { if (slot >= 0 && slot < this.length) { this.mask[slot] = false; this.unrevealedSlots--; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void not() {\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\tif (!i.hasNext())\n\t\t\treturn;\n\t\twhile (true) {\n\t\t\tfinal RunningLengthWord rlw1 = i.next();\n\t\t\tif (rlw1.getRunningLength() > 0)\n\t\t\t\trlw1.setRunningBit(!rlw1.getRunningBit());\n\t\t\tfor (int j = 0; j < rlw1.getNumberOfLiteralWords(); ++j) {\n\t\t\t\ti.buffer()[i.dirtyWords() + j] =\n\t\t\t\t\t\t~i.buffer()[i.dirtyWords() + j];\n\t\t\t}\n\t\t\tif (!i.hasNext()) {// must potentially adjust the last dirty word\n\t\t\t\tif (rlw1.getNumberOfLiteralWords() == 0)\n\t\t\t\t\treturn;\n\t\t\t\tint usedbitsinlast = this.sizeinbits % wordinbits;\n\t\t\t\tif (usedbitsinlast == 0)\n\t\t\t\t\treturn;\n\t\t\t\ti.buffer()[i.dirtyWords() + rlw1.getNumberOfLiteralWords() - 1] &=\n\t\t\t\t\t\t((oneMask) >>> (wordinbits - usedbitsinlast));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "void unsetRawOffset();", "void unsetOffset();", "public void removeSword() {\n \tthis.sword =null;\n \tthis.UIsword().set(false);\n \tdungeon.swordLeft().set(\"Sword Hits Left: 0\\n\");\n }", "public void punishment(){\n\t\tthis.cell = 0;\n\t}", "void unsetBeginPosition();", "public BufferSlot remove();", "void unsetStraight();", "void unsetBegin();", "private void _setUnshifted ()\r\n {\r\n m_bBase64mode = false;\r\n m_nBitsRead = 0;\r\n m_nTempChar = 0;\r\n }", "public void wipeSlot(int slot) {\n for (T obj : objToSums.keySet()) {\n resetSlotCountToZero(obj, slot);\n }\n }", "void uncap();", "void unsetSegmented();", "public void removeWord()\n {\n \tlastRow = -1;\n \tlastColumn = -1;\n \t\n \tguess = \"\";\n \tguessWordArea.setText( \"\" );\n \t\n \t//Reset the letters that have been used for a word\n \tused = new boolean[BOARD_SIZE][BOARD_SIZE];\n \t//Change the background colour of all of the buttons in the grid\n \tfor( int i = 0; i < BOARD_SIZE; i++ )\n \t{\n \t\tfor( int j = 0; j < BOARD_SIZE; j++ )\n \t\t{\n \t\t\tgridButtons[i][j].setBackground( restart.getBackground() ); //The restart button will always have the default background\n \t\t}\n \t}\n }", "public void resetSubtraction() {\n\t\tset((byte) (get() & ~(1 << 6)));\n\t}", "public void removeByRightShift(int pos) {\r\n if (pos > 0 || pos < size - 1) {\r\n int nshift = pos;\r\n int from = ((start + pos) - 1) % cir.length;\r\n int to = (from + 1) % cir.length;\r\n // int to=from--;\r\n for (int i = 0; i < nshift; i++) {\r\n cir[to % cir.length] = cir[from % cir.length];\r\n to = from;\r\n from--;\r\n if (from < 0) {\r\n from = cir.length - 1;\r\n }\r\n }\r\n cir[start] = \"null\";\r\n start++;\r\n size--;\r\n }\r\n }", "public void removePos(String word, IPosition pos) throws WordException;", "void clearOffset();", "public void clearFreeSlots() {\n AvailableSlots.clear();\n }", "public void unsetSwissprot()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(SWISSPROT$14, 0);\r\n }\r\n }", "public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }", "void unsetDirection();", "void unset() {\n size = min = pref = max = UNSET;\n }", "public void removeByLeftShift(int pos) {\r\n if (pos > 0 || pos < size - 1) {\r\n int nshift = size - pos - 1;\r\n int from = ((start + pos) + 1) % cir.length;\r\n int to = from - 1;\r\n if (to < 0) {\r\n to = cir.length - 1;\r\n }\r\n // int to=from--;\r\n for (int i = 0; i < nshift; i++) {\r\n cir[to % cir.length] = cir[from % cir.length];\r\n to = from;\r\n from++;\r\n }\r\n cir[(start + size - 1) % cir.length] = \"null\";\r\n // start++;\r\n size--;\r\n }\r\n }", "void positionCleared();", "void unsetControlPosition();", "public void unpin();", "public void unpin();", "private void recalculateWordsInUse(){\n int i;\n for(i=wordsInUse-1;i>=0;i--)\n if(words[i]!=0)\n break;\n wordsInUse=i+1; // The new logical size\n }", "public void removeByLeftShift(int pos){\n int nshift=size-(pos);\n int to=(start+pos)%cir.length;\n int from=(to+1)%cir.length;\n for(int i=0;i<nshift;i++){\n cir[to]=cir[from];\n to=from;\n from=(from+1)%cir.length;\n \n }\n int index=(start+size-1)%cir.length;\n cir[index]=null;\n size--;\n \n }", "void unsetCapitalInKind();", "void unsetBox();", "void unsetEndPosition();", "@SuppressWarnings(\"unused\")\n\tpublic void shift() {\n\t\tint totalItems = 0;\n\t\tint highestSlot = 0;\n\t\tfor (int i = 0; i < summonedFamiliar.storeCapacity; i++) {\n\t\t\tif (burdenedItems[i] != 0) {\n\t\t\t\ttotalItems++;\n\t\t\t\tif (highestSlot <= i) {\n\t\t\t\t\thighestSlot = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i <= highestSlot; i++) {\n\t\t\tif (burdenedItems[i] == 0) {\n\t\t\t\tboolean stop = false;\n\t\t\t\tfor (int k = i; k <= highestSlot; k++) {\n\t\t\t\t\tif (burdenedItems[k] != 0 && !stop) {\n\t\t\t\t\t\tint spots = k - i;\n\t\t\t\t\t\tfor (int j = k; j <= highestSlot; j++) {\n\t\t\t\t\t\t\tburdenedItems[j - spots] = burdenedItems[j];\n\t\t\t\t\t\t\tstop = true;\n\t\t\t\t\t\t\tburdenedItems[j] = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void unmarkedTile(int x, int y, boolean solving) {\n\t\tif(!solving) {\n\t\t\tzeroSolver(x,y);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tTile currTile = game.getTile(x, y);\n\t\tButton currBtn = btnArray[x][y];\n\t\trevealTile(currTile, currBtn);\n\t\tif(currTile instanceof BombTile) {\n\t\t\ttimer.cancel();\n\t\t\tgameOver(currBtn);\n\t\t\treturn;\n\t\t}\n\n\t\tif(game.isWon()) {\n\t\t\ttimer.cancel();\n\t\t\tSystem.out.println(\"You won!\");\n\t\t\tgameOver.setText(\"Congratulations - you won! Want to try again?\");\n\t\t\tgameOver.setVisible(true);\n\t\t}\n\t}", "void unsetLeading();", "public void unset(){\n\t\tcurrentInst = -1;\n\t}", "void unsetAnchorOffset();", "public void clear() {\n\t\tthis.sizeinbits = 0;\n\t\tthis.actualsizeinwords = 1;\n\t\tthis.rlw.position = 0;\n\t\t// buffer is not fully cleared but any new set operations should\n\t\t// overwrite stale data\n\t\tthis.buffer[0] = 0;\n\t}", "void unsetValueQuantity();", "void unsetUnordered();", "@Override\n\tpublic int vanish() {\n\t\treturn 1;\n\t}", "public void cleanUp(){\n\t\t//offset(-1*bounds.left, -1*bounds.top);\n\t}", "void clearPowertypeRanges();", "public void complement() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (char c : seq) {\n newSeq.add(complement(c));\n }\n seq = newSeq;\n }", "void removeNoPassingZone(int i);", "public void removeByRightShift(int pos){\n int nshift=pos+1;\n int from=(start+pos-1)%cir.length;\n int to=(from+1)%cir.length;\n for(int i=0;i<nshift;i++){\n cir[to]=cir[from];\n to=from;\n from--;\n if(from==-1){from=cir.length-1;}\n }\n start++;\n size--;\n }", "public void clearVariable(int offset);", "void unsetInterpretation();", "public void lowerHalf() {\n\t\t// TODO: Implement\n\t\tint sumOfSlotCounts = getSumOfSlotCount()-1;\n\t\tif(sumOfSlotCounts < 0) return;\n\t\t//if(getSlotCount() == 1 && getSumOfSlotCount() == 1) return;\n\t\tint slot = getSlotCount()-1;\n\t\tint beanNumber = getSlotBeanCount(slot)-1;\n\t\tint deleted=0;\n\t\t//System.out.println(\"sumOfCounts: \" + sumOfSlotCounts);\n\t\twhile(deleted < Math.floor(sumOfSlotCounts / 2) ){\n\t\t\t/*if (slotBean.get(slot).isEmpty()) {\n\t\t\t\tslot++;\n\t\t\t\tbeanNumber = 0;\n\t\t\t\tSystem.out.println(\"slot empty: slot: \" + slot + \" beanN: \" + beanNumber);\n\t\t\t}*/\n\t\t\t\n\t\t\t//System.out.println(\"i: \" + deleted + \" count: \" + getSlotBeanCount(slot)+\" beanNumber: \" + beanNumber);\n\t\t\tif(beanNumber < getSlotBeanCount(slot) && beanNumber >= 0 && getSlotBeanCount(slot) > 0 ) {\n\t\t\t\t//System.out.println(\"slot not empty: slot: \" + slot + \" beanN: \" + beanNumber);\n\t\t\t\tslotBean.get(slot).remove(beanNumber--);\n\t\t\t\tdeleted++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//System.out.println(\"slot empty: slot: \" + slot + \" beanN: \" + beanNumber);\n\t\t\t\tif(slot >= 0) slot--;\n\t\t\t\tif(getSlotBeanCount(slot) > 0) beanNumber = getSlotBeanCount(slot)-1;\n\t\t\t\telse beanNumber = 0;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public abstract void unblockNext();", "void unsetLegs();", "void unsetSpokes();", "void unbind(boolean shouldPlaceSpacer, boolean switchingStream);", "public final void setUnbounded() {_occ.setUnbounded();}", "ISlot remove(IStrongSlot target);", "private void clearPut() {\n if (patternCase_ == 3) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }", "void unsetQuick();", "public void andNot(BitSet set){\n for(int i=Math.min(wordsInUse,set.wordsInUse)-1;i>=0;i--)\n words[i]&=~set.words[i];\n recalculateWordsInUse();\n checkInvariants();\n }", "public void reset() {\n\t\tif (marker >= 0) {\n\t\t\tsetSize(marker);\n\t\t\tmarker = -1;\n\t\t}\n\t}", "public void removeHighlight() {\n if (highlightWord == null) {\r\n return;\r\n }\r\n \r\n for (int i = 0; i < highlightWord.length(); i++) {\r\n if (hightlightDir == Ranker.RIGHT) {\r\n cells[highlightX][highlightY + i].highlight((char) 0);\r\n } else {\r\n cells[highlightX + i][highlightY].highlight((char) 0);\r\n }\r\n }\r\n repaint();\r\n }", "public void unsetItalic()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ITALIC$6, 0);\n }\n }", "public void removeRemaining( int index )\n\t{\n\t\t_avTable.rm( ATTR_REMAINING , index ) ;\n\t}", "void unhighlight(SpellCheckWord word)\n\t{\n\t\tHighlighter highlighter = getHighlighter();\n\t\tHighlighter.Highlight[] highlights = highlighter.getHighlights();\n\n \tfor (int i = 0; i < highlights.length; i++) \n \t{\n \t\tif(highlights[i].getStartOffset() == word.startLocation) \n \t\t{\n highlighter.removeHighlight(highlights[i]);\n word.missingWord = false;\n \t\t}\n \t\t}\n\t}", "public boolean remove(Word x) {\n\t int currentPosition = findPos(x.getContent());\n\t if (isActive(array, currentPosition)) {\n\t array[currentPosition].isActive = false;\n\t theSize--;\n\t return true;\n\t }\n\t else\n\t return false;\n\t }", "public boolean unpoison() {\r\n\t\tstrength = STRENGTH;\r\n\t\treturn true;\r\n\t}", "public void discard(){\n for(int i = 1 ; i <= 110 ; i++) cardDeck.remove(i);\n }", "public void reset() {\n\tthis.contents = \"\";\n\tthis.isLegalMove = false;\n }", "public void mo37873b() {\n C13262e.this.f34200n.onReset(this.f34229f, this.f34230g);\n synchronized (C13262e.this) {\n C13262e.this.f34210x.remove(Integer.valueOf(this.f34229f));\n }\n }", "protected Object remObject(int position){\n \n }", "public void clear(){\r\n\t\tbeginMarker.next = endMarker;\r\n\t\tendMarker.prev = beginMarker;\r\n\t\tnumAdded=0;\r\n\t\tsize=0;\r\n \tmodCount++;\r\n\t}", "@Override\n public void updateSlots() {\n super.updateSlots();\n purgeAllOverflowEM_EM();\n }", "void unsetValueCodeableConcept();", "private void unscheduleSlice() {\n nextSliceRunTime = Double.MAX_VALUE;\n timer.cancel();\n }", "public void reset() {\n\t\tremoveAll();\n\t\twrongLetters = \"\";\n\t\taddScaffold(getWidth(),getHeight());\n\t}", "@Override\n public boolean removeSlot(int slot) {\n return availableSlots.add(slot);\n }", "public void clear(){\n\t\tfield.resize(0, 4);\n\t}", "protected void removeFlag(int x, int y) {\r\n \r\n if (flag[x][y]) {\r\n \t//System.out.println(\"Auto flag set at (\" + x + \",\" + y + \")\");\r\n \tflag[x][y] = false;\r\n flagsPlaced--;\r\n }\r\n\r\n }", "public void reset(){\n\t\tthis.currentIndex = 0;\n\t}", "public void reset() {\n setPrimaryDirection(-1);\n setSecondaryDirection(-1);\n flags.reset();\n setResetMovementQueue(false);\n setNeedsPlacement(false);\n }", "protected void clearAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.clearBitAt(i);\n } \t\n }", "public final void negate() {\n \n \tthis.m00 = -this.m00;\n \tthis.m01 = -this.m01;\n \tthis.m02 = -this.m02;\n this.m10 = -this.m10;\n this.m11 = -this.m11;\n this.m12 = -this.m12;\n this.m20 = -this.m20;\n this.m21 = -this.m21;\n this.m22 = -this.m22;\n }", "public void clear() {\n\t members = 0;\n\t dense[0] = -1;\n\t}", "public void removeWord () {\r\n int index = Components.wordList.getSelectedIndex ();\r\n if (index >= 0) {\r\n String word = (String) Components.wordList.getSelectedValue ();\r\n words.remove (word);\r\n Components.wordList.getContents ().remove (index);\r\n Components.wordList.setSelectedIndex ((index > 0) ? index - 1 : index);\r\n }\r\n }", "protected /*override*/ void RemoveItem(int index) \r\n {\r\n CheckSealed(); \r\n super.RemoveItem(index); \r\n }", "public void removeWord(int id);", "protected void discard(int tile, int pos) {\n\t\tif(active){\n\t\t\tif(tileadded) {\n\t\t\t\ttileadded = false;\n\t\t\t\tunhighlight(); }\n\t\t\tgui.setHumanDiscard(tile);\n\t\t\tgui.setHumanDiscardPosition(pos);\n\t\t\tactive=false; }\n\t}", "@Override\n public void unDraw() {\n index--;\n }", "public void unsetPart()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PART$2, 0);\n }\n }", "public synchronized void unpin(Buffer buff) {\n //=====================================CS4432-Project1=====================\n buff.unpin();\n if (!buff.isPinned()) {\n //if the buffer is now unpinned, we should re-add the buffer to the least recently\n //used linked list so that we can use it if need be\n if (replacementPolicy.equalsIgnoreCase(\"LRU\")){\n leastRecentlyUsedArray.add(buff.getFrameNumber());\n }\n //increment the number of available\n numAvailable++;\n }\n }", "void unsetDesc();", "public void unAssign(){\n\t\tthis.value = 0;\n\t}", "public void discard();", "public static void eraseKeyboard(){\n\t\tfor(int i=0;i<16;i++)\n\t\t\tfor(int j=0;j<16;j++){\n\t\t\t\tdisplay[i][j].setIcon(DEFAULT);\n\t\t\t\tdisplay[i][j].setSelectedIcon(SCANNED);\n\t\t\t}\n\t}", "private void back(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n if (iIndex==0) return;//if at start of message\r\n --iIndex;//move back one character\r\n \r\n }", "public CWE removeIndication(int rep) throws HL7Exception { \r\n return (CWE) super.removeRepetition(19, rep);\r\n }", "public void remove() {\r\n // rather than going through replace(), just reinitialize the StyledText,\r\n // letting the old data structures fall on the floor\r\n fCharBuffer = new CharBuffer();\r\n fStyleBuffer = new StyleBuffer(this, AttributeMap.EMPTY_ATTRIBUTE_MAP);\r\n fParagraphBuffer = new ParagraphBuffer(fCharBuffer);\r\n fTimeStamp += 1;\r\n fDamagedRange[0] = fDamagedRange[1] = 0;\r\n }", "public void clearStartAlphabet()\n\t\t\t{\n\t\t\t}", "public void clear(){\n\t\tfor (int i=1; i<linesAndStores.length; i++){\n\t\t\tfor(int j = 0; j<32; j++){\n\t\t\t\tsetWord(i, new Word(0));\n\t\t\t\tincrement();\n\t\t\t}\n\t\t}\n\t}", "public Builder clearWord() {\n bitField0_ = (bitField0_ & ~0x00000004);\n word_ = getDefaultInstance().getWord();\n onChanged();\n return this;\n }" ]
[ "0.6040588", "0.60117507", "0.59020764", "0.5813496", "0.571859", "0.5653694", "0.5599822", "0.5589694", "0.5537606", "0.55333865", "0.549718", "0.54965836", "0.54628354", "0.5447766", "0.54023737", "0.538988", "0.5363909", "0.5349067", "0.5335964", "0.5335639", "0.5307108", "0.5302088", "0.53001493", "0.5293268", "0.52759594", "0.5269027", "0.5239072", "0.5239072", "0.5226539", "0.52263963", "0.5220975", "0.5189816", "0.5180545", "0.51685715", "0.51667243", "0.5164231", "0.51635474", "0.5156045", "0.5147475", "0.51342154", "0.5133079", "0.5101089", "0.50999385", "0.5099827", "0.50770676", "0.5053047", "0.5039201", "0.50390774", "0.5023186", "0.5022753", "0.50219715", "0.5021213", "0.50104964", "0.5007863", "0.50012314", "0.4996861", "0.4991815", "0.4986841", "0.49859825", "0.49751973", "0.49723452", "0.4971598", "0.4968487", "0.49663487", "0.4954625", "0.49415672", "0.49413002", "0.4940479", "0.49396977", "0.49362034", "0.49300593", "0.49212027", "0.49159914", "0.4913868", "0.4910637", "0.49101114", "0.49034524", "0.49022037", "0.489413", "0.48932198", "0.48888376", "0.4887468", "0.48773", "0.48767412", "0.48721698", "0.48673305", "0.48671788", "0.48647648", "0.4863531", "0.48622367", "0.4860762", "0.48597294", "0.48594308", "0.48562863", "0.4855603", "0.4855461", "0.4854604", "0.48503715", "0.48498398", "0.48478076" ]
0.73639715
0
return if the word is fully guessed out
public boolean isFinished() { // the word is guessed out only when the unrevealedSlots is 0 if (this.unrevealedSlots == 0) { return true; }else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isWordFullyGuessed()\n {\n for(int i=0; i<showChar.length; i++)\n {\n if(!showChar[i]) return false;\n }\n\n return true;\n }", "boolean checkGuess(String guess) {\r\n if (currWord.contains(guess)) { // correct guess\r\n numToGuess--;\r\n if (numToGuess <= 0) { // the word was guessed\r\n if (currWord.equals(animal))\r\n animalGuessed = true;\r\n if (currWord.equals(country))\r\n countryGuessed = true;\r\n if (currWord.equals(superhero))\r\n superheroGuessed = true;\r\n wordsCorrect++;\r\n if (wordsCorrect >= 3) {\r\n gameOver = true;\r\n win = true;\r\n }\r\n }\r\n return true;\r\n }\r\n else { // wrong guess\r\n guessesLeft--;\r\n if (guessesLeft <= 0) { // round lost\r\n chancesLeft--;\r\n if (chancesLeft <= 0) {\r\n gameOver = true;\r\n win = false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public boolean guessWord (String gword) {\n \tif (lose || victory) return false;\n \t\n \tif ( gword.toLowerCase().equals(_word.toLowerCase()) ) {\n \t\tthis.victory = true;\n \t\t\n \t\tfor (int i = 0; i < _word.length(); i++) {\n \t\t\thint.setCharAt(2*i, _word.charAt(i));\n \t\t}\n \t\t\n \t\treturn true;\n \t}\n \t\n \treturn false;\n }", "public boolean hasWon() {\n\t\tfor (int i = 0; i < wordToGuess.length(); i++) {\n\t\t\tchar letter = wordToGuess.charAt(i);\n\t\t\tif (!guessesMade.contains(letter)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean isWordGuessed( String word )\n\t{\n\t\tfor( int i = 0; i < entry.getLinkedWords().size(); i++ )\n\t\t\tif( entry.getLinkedWords().elementAt(i).equals(word) )\n\t\t\t\t\treturn wordGuessed[i];\n\n\t\treturn false;\n\t}", "public boolean isWordGuessed() {\n\t for(Letter l : letters) {\n\t if(!l.getStatus())\n\t return false;\n\t }\n\t this.displayedWord.setStatus(true);\n\t return true;\n\t}", "boolean allWordsGuessed()\n\t{\n\t\tfor( int i = 0; i < entry.getLinkedWords().size(); i++ )\n\t\t\tif( ! wordGuessed[i] )\n\t\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "private boolean checkGuess(char c){\r\n boolean contains = false;\r\n for (int i = 0; i < wordArray.length; i++) {\r\n if (wordArray[i] == c) {\r\n contains = true;\r\n hidden[i] = c;\r\n }\r\n }\r\n if (!contains){\r\n guesses.add(c);\r\n }\r\n return contains;\r\n }", "public boolean takeGuess(char letter) {\n\t\t// reset default result as false\n\t\tboolean result = false;\n\t\t// iterate through the characters in the word\n\t\tfor (int i = 0; i < this.getLength(); i++) {\n\t\t\t// if the guess is correct\n\t\t\tif (this.theWord[i] == letter) {\n\t\t\t\t// unmask the slot, set the result as true\n\t\t\t\tthis.unmaskSlot(i);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\t//return the result\n\t\treturn result;\n\t}", "public abstract String guessedWord();", "boolean hasWord();", "public void GuessFullWordEvent() {\n\t\t\n\t\tString finalGuess = AnswerBox.getText();\n\t\tfinalGuess = finalGuess.toLowerCase(); // the answer is not case sensitive\n\n\t\t//if the final guess is the correct word or not\n\t\tif(finalGuess.equals(mysteryWord))\n\t\t\tGameWin();\n\t\telse\n\t\t\tGameOver();\n\t}", "private boolean gameOver()\n {\n \t//lose case\n \tif (guess_number == 0)\n \t{\n \t\twin = false;\n \t\treturn true;\n \t}\n \t//win case\n \tif (mask.compareTo(word) == 0)\n \t{\n \t\twin = true;\n \t\treturn true;\n \t}\n \t\n \treturn false;\n }", "public static boolean isCorrectGuess(char[] word, char[] blanks, char guess) {\n\t\tboolean correct = false;\n\t\tint message = 2;\n\t\tfor (int i = 0; i < word.length; i++) {\n\t\t\tif (word[i] == guess) {\n\t\t\t\tcorrect = true;\n\t\t\t\tif (blanks[i] == guess){\n\t\t\t\t\tmessage = 1;\n\t\t\t\t}\n\t\t\t\telse { \n\t\t\t\t\tblanks[i] = guess; // the actual letter is then displayed.\n\t\t\t\t\tmessage = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (message > 0){\n\t\t\tprint(message, guess); // Call print message for incorrect\n\t\t}\n\t\treturn correct;\n\t}", "public abstract boolean isGuessCorrect(String guess);", "public void checkWord(int largeTile) {\r\n String guess = \"\";\r\n int length = 0;\r\n// int score = 0;\r\n boolean correct = false; // flag for whether the word is valid\r\n\r\n // get word string based on which button was pressed\r\n switch(largeTile) {\r\n case 1:\r\n guess = tile1.toString();\r\n break;\r\n case 2:\r\n guess = tile2.toString();\r\n break;\r\n case 3:\r\n guess = tile3.toString();\r\n break;\r\n case 4:\r\n guess = tile4.toString();\r\n break;\r\n case 5:\r\n guess = tile5.toString();\r\n break;\r\n case 6:\r\n guess = tile6.toString();\r\n break;\r\n case 7:\r\n guess = tile7.toString();\r\n break;\r\n case 8:\r\n guess = tile8.toString();\r\n break;\r\n case 9:\r\n guess = tile9.toString();\r\n break;\r\n default:\r\n guess = \"\";\r\n }\r\n length = guess.length();\r\n\r\n // check if valid word\r\n if (length >= 3) { // check if the length of the word is >= 3\r\n if (dictionary.contains(guess.toLowerCase())) { // check if the dictionary contains the word\r\n correct = true; // true if found\r\n\r\n stringSubmitted[largeTile-1] = 1; // word has been submitted for this tile\r\n\r\n // set amount of points\r\n int bonus = 0;\r\n for (char c : guess.toCharArray()) {\r\n if (c == 'E' || c == 'A' || c == 'I' || c == 'O' || c == 'N' || c == 'R' || c == 'T' || c == 'L' || c == 'S') {\r\n bonus += 1;\r\n } else if (c == 'D' || c == 'G') {\r\n bonus += 2;\r\n } else if (c == 'B' || c == 'C' || c == 'M' || c == 'P') {\r\n bonus += 3;\r\n } else if (c == 'F' || c == 'H' || c == 'V' || c == 'W' || c == 'Y') {\r\n bonus += 4;\r\n } else if (c == 'K') {\r\n bonus += 5;\r\n } else if (c == 'J' || c == 'X') {\r\n bonus += 8;\r\n } else {\r\n bonus += 10;\r\n }\r\n }\r\n if (length == 9 && phase == 1) bonus += length; // bonus for 9 letter word during phase 1\r\n pointsScore += bonus; // calculate total score\r\n scoreBoard.setText(\"\"+pointsScore); // set scoreboard to total\r\n\r\n // save longest word information\r\n if (length > longestLength) {\r\n longestLength = length;\r\n longestWord = guess;\r\n longestWordScore = bonus;\r\n }\r\n\r\n // mark as submitted in tile tacker array\r\n submittedTracker[largeTile-1] = true;\r\n int done = 0;\r\n for (boolean b : submittedTracker) {\r\n if (b == true) done++;\r\n }\r\n// if (done == 9) {\r\n// timer.cancel();\r\n// gameOver();\r\n// }\r\n }\r\n } else {\r\n correct = false; // false if not found\r\n pointsScore -= 3; // penalize for submitting an incorrect word\r\n scoreBoard.setText(\"\"+pointsScore); // set scoreboard to total\r\n }\r\n\r\n // if word is in the dictionary\r\n if (correct) {\r\n mSoundPool.play(mSoundCorrect, mVolume, mVolume, 1, 0, 1f); // chime when correct\r\n adapter.add(guess); // add to list\r\n// Log.e(\"word\", String.valueOf(tile1));\r\n\r\n // set unused tiles to be blank\r\n for (int small = 0; small < 9; small++) { // go through entire list\r\n// Log.e(\"tile # \", Integer.toString(small));\r\n// Log.e(\"selected? \", allTilesInt[largeTile-1][small] == 0 ? \"no\" : \"yes\");\r\n if (allTilesInt[largeTile-1][small] == 0) { // if the tile was not selected\r\n buttonList[largeTile-1][small].setText(\"\"); // remove the letter from the button\r\n buttonList[largeTile-1][small].setClickable(false);\r\n }\r\n }\r\n\r\n // if word was not in the dictionary\r\n } else {\r\n mSoundPool.play(mSoundIncorrect, mVolume, mVolume, 1, 0, 1f); // quack when incorrect\r\n }\r\n }", "public boolean alreadyGuessed(char guess) {\r\n return false;\r\n }", "@Test\n public void testWordGuessCompletition() {\n Word word = new Word(\"Llama\", 10);\n\n // The guess array should be initialized to all '_' characters\n // but be of the same length as the number of letters in the word\n Assert.assertEquals(\"Llama\".length(), word.getGuesses().length);\n Assert.assertEquals('_', word.getGuesses()[0]);\n Assert.assertEquals('_', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // The word shouldn't be marked as 'completed' until all the letters are guessed.\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('l'));\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('a'));\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('m'));\n // Now that it is entirely guessed it should be complete\n Assert.assertTrue(word.getIsComplete());\n\n // If you reset the guesses, it shouldn't be complete anymore\n word.resetGuesses();\n Assert.assertFalse(word.getIsComplete());\n }", "private void challengeHandler() {\n String word = txtWord.getText().toString();\n String nextWord;\n if (word.length() >= 4 && dictionary.isWord(word)){\n endGame(true, word + \" is a valid word\");\n } else {\n nextWord = dictionary.getAnyWordStartingWith(word);\n if (nextWord != null){\n endGame(false, word + \" is a prefix of word \\\"\" + nextWord + \"\\\"\");\n } else {\n endGame(true, word + \" is not a prefix of any word\");\n }\n }\n }", "public boolean isDone() {\r\n\t\tint count = 0;\r\n\t\t//Checks the movieGuess array for '_' characters. If there are none we can safely assume the player has finished.\r\n\t\tfor(int x = 0; x < movieGuess.length; x++) {\r\n\t\t\tif(movieGuess[x] == '_')\t{\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//used a counter to avoid premature (i.e., before finishing the array traversal) true or false.\r\n\t\tif(count > 0)\r\n\t\t\treturn false;\t\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "public static boolean isFinished(char[] guessBoard, Hangman hangman) {\n // Life is 0\n if(hangman.done())\n {\n System.out.println(\"Game Over!\");\n return true;\n }\n\n // Check correct answer\n for(int i = 0; i < guessBoard.length; i++)\n if(guessBoard[i] == '_') return false;\n return true;\n }", "private boolean checkWord() {\n \tboolean bl = false;\n \tfor (int i = 0; i < word.length(); i++) {\n \t\tif (letter == word.charAt(i) && list[i] != true) {\n \t\t\tlist[i] = true;\n \t\t\tnumberOfSymbols++;\n \t\t\tbl = true;\n \t\t}\n \t}\n \treturn bl;\n }", "boolean hasIsHotwordTriggered();", "public static boolean printGuess(boolean[] letters, String word) {\n String displayWord = \"\";\n for(int index = 0; index < word.length(); index++) {\n if(letters[index]) { displayWord += word.charAt(index); }\n else { displayWord += '-'; }\n }\n System.out.println(displayWord);\n \n //check if there are still letters to guess\n for(int index = 0; index < letters.length; index++) {\n if(!letters[index]) { return true; }\n }\n \n //no more letters to guess!\n return false;\n }", "boolean hasFullHadith();", "boolean hasHadithText();", "protected boolean checkGuess(Hangman game, String input) {\n if ((input != null) && (input.length() > 0)) {\n input = input.trim();\n if (input.equals(Server.GAME_STOP)) {\n cleanUp();\n } else if (input.length() == 1) {\n char c = input.charAt(0);\n game.guess(c);\n return true;\n }\n }\n return false;\n }", "public boolean isAccepted2(String word) {\r\n\t return word.endsWith(\"baa\");\r\n \r\n }", "public abstract boolean guess(String guess);", "boolean hasCorrect();", "public static void guessWords(String guess) {\n String newEmptyString = \"\";\n for (int i = 0; i < CategorySelector.word.length(); i++) { // Grabbing word\n if (CategorySelector.word.charAt(i) == guess.charAt(0)) {\n newEmptyString += guess.charAt(0);\n } else if (emptyString.charAt(i) != '_') {\n newEmptyString += CategorySelector.word.charAt(i);\n } else {\n newEmptyString += \"_\";\n }\n }\n\n if (emptyString.equals(newEmptyString)) {\n count++;\n paintHangman();\n } else {\n emptyString = newEmptyString;\n }\n if (emptyString.equals(CategorySelector.word)) {\n System.out.println(\"Correct! You win! The word was \" + CategorySelector.word);\n }\n }", "public boolean isCorrect(String theguess){\n\t\treturn (correctA.contains(theguess));\n\t}", "private void matchletter(){\n\t\t/* Generate a Random Number and use that as a Index for selecting word from HangmanLexicon*/\n\t\tString incorrectwords = \"\";\n\t\tcanvas.reset();\n\t\tHangmanLexicon word= new HangmanLexicon(); // Get Word from Lexicon\n\t\tint index=rgen.nextInt(0, (word.getWordCount() - 1)); // Select the word Randomly\n\t\tString secretword=word.getWord(index);\n\t\tprintln(\"secretword: \"+secretword);\n\t\tint lengthofstring= secretword.length();\n\t\tString createword=concatNcopies(lengthofstring,\"-\"); // Create a blank word the user will guess\n\t\tcanvas.displayWord(createword); // Display the word on the Canvas\n\t\tprintln(\"The word now looks like this:\" +createword);\n\t\tprintln(\"You have \" +lengthofstring+ \" guesses left\");\n\t\tint counter =0;\n\t\tint guess= lengthofstring;\n\t\tint pos = createword.indexOf('-'); // Check for blank Words\n\t\t/* Ask user to input the letter*/\n\t\twhile(counter<lengthofstring && (pos !=-1 )){ \n\t\t\tint check=0;\n\t\t\tpos = createword.indexOf('-',pos); // Check to find Dashes in word\n\t\t\tString userletter= readLine(\"Your Guess:\");\n\t\t\tif(userletter.length() > 1){ // Check for two letters entered\n\t\t\t\tprintln(\"Enter letter Again\");\n\t\t\t}\n\t\t\tchar ch=userletter.charAt(0);\n\t\t\tif(Character.isLowerCase(ch)) { // Convert lower case to upper case\n\t\t\t\tch = Character.toUpperCase(ch);\n\t\t\t}\n\t\t\tfor (int i=0;i<lengthofstring;i++){ // Check for entire letter matching in the secretword\n\t\t\t\tif (ch==secretword.charAt(i) && ch!=createword.charAt(i)) { \n\t\t\t\t\tcreateword = createword.substring(0, i) + ch + createword.substring(i + 1);\n\t\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\t\tcheck++; // If user puts the correct letter again it is flagged as a error\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(check==0){\n\t\t\t\tprintln(\"There are no \"+ch+\"'s in the word\");\n\t\t\t\tguess=guess-1;\n\t\t\t\tincorrectwords = incorrectwords+ch;\n\t\t\t\tcanvas.noteIncorrectGuess(guess, incorrectwords);\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tprintln(\"The word now looks like this:\"+createword);\n\t\t\tprintln(\"You have \" +guess+ \" guesses left\");\n\n\t\t\tif(counter==lengthofstring){ // Checks for Fail condition- Game Over\n\t\t\t\tprintln(\"You are completely hung\");\n\t\t\t\tprintln(\"The word was: \"+secretword);\n\t\t\t\tcanvas.displayWord(secretword);\n\t\t\t\tprintln(\"You lose \");\n\t\t\t}\n\t\t\tpos = createword.indexOf('-');// Check for Win condition\n\t\t\tif(pos < 0){\n\t\t\t\tprintln(\"You saved Hangman\");\n\t\t\t\tprintln(\"You Win !!!\");\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tguess=123;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private boolean isWrong() {\n\t\treturn wrongMatches >= 5;\n\t}", "public boolean gameWon(){\n\t\tArrayList<Character> checkLetter = new ArrayList<Character>();\r\n\t\t\r\n\t\tfor(int i=0; i<correctList.size(); i++){\r\n\t\t\tfor(int j=0; j<gameLetter.length; j++){\r\n\t\t\t\tif(correctList.get(i)==gameLetter[j])\r\n\t\t\t\t\tcheckLetter.add(gameLetter[j]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(checkLetter.size()==gameLetter.length)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}", "public boolean alreadyGuessed(char guess) {\r\n \t//Convert guess to string, use contains method to check guessesMade ArrayList.\r\n if (guessesMade.contains(String.valueOf(guess))) {\r\n \treturn true;\r\n }\r\n \treturn false;\r\n }", "public static boolean checkWord(String guess, String solution) {\n\t\tif(guess.equals(solution)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void handleGuess(String s) {\n\n if (!word.contains(s)) {\n incorrectGuesses++;\n wrongList.add(s);\n if (incorrectGuesses == 8) {\n gameOver();\n }\n } else {\n correctList.add(s);\n updateWord(s.charAt(0));\n }\n }", "public static boolean append(String word){\n\t\tboolean x = false;\n\t\tboolean y = false;\n\t\tfor(int i = 33; i <= 126; i++){\n\t\t\tchar c = (char)i;\n\t\t\tx = guessPW(word.concat(Character.toString(c)));\n\t\t\ty = guessPW(Character.toString(c).concat(word));\n\t\t}\n\n\t\tif(x | y){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public Boolean categoryWithoutGuess(char guess) {\n CharSequence seqChar = new StringBuilder(1).append(guess);\n\n\n Boolean containsChar = false;\n for (Map.Entry<String, Set<String>> entry1 : wordsLeft.entrySet()) {\n String tester = entry1.getKey();\n\n if (!tester.contains(seqChar)) {\n containsChar = true;\n possibleCategoryWithoutGuess = tester;\n }\n }\n\n return containsChar;\n }", "private boolean fitsOnBoard(Anchor anchor, ArrayList<Tile> word){\n //check if word would cause spilling off the edge of the board\n int anchorPos = getAnchorPosition(anchor, word);\n int prefixLength = anchorPos;\n int postfixLength = word.size() - anchorPos - 1 ;\n\n if (anchor.prefixCap >= prefixLength && anchor.postfixCap >= postfixLength){\n return true;\n } else {\n return false;\n }\n }", "public boolean isAccepted1(String word) {\r\n\t return (tranzition_extended(word)==3) ;\r\n\r\n }", "boolean hasHangmogName();", "public boolean checkRightWord(EditText answerWord){\n \t\t return answerWord.getText().toString().equalsIgnoreCase(currentWord);\n \t }", "boolean hasHotwordPower();", "private void updateGameState(String guessedLetter) {\n\t\tif (guessedWord.contains(guessedLetter)) {\n\t\t\treturn;\n\t\t} else if (actualWord.contains(guessedLetter)) {\n\t\t\tprintln(\"That guess is correct.\");\n\t\t\tupdateGuessedWord(guessedLetter);\n\t\t\tcanvas.displayWord(guessedWord);\n\t\t} else {\n\t\t\tbadGuessCount++;\n\t\t\tcanvas.noteIncorrectGuess(guessedLetter.charAt(0));\n\t\t\tprintln(\"There is no \" + guessedLetter + \" in the word.\");\n\t\t\t//whatever other action that will happen for bad guesses can go here\n\t\t}\n\t}", "private boolean checkForBigGameWin(){\n boolean truth = false;\n if (checkGameWin(getLettersOfAllGames())){\n truth = true;\n }\n return truth;\n }", "public boolean alreadyGuessed(char guess) {\r\n return this.guesses.contains(guess);\r\n }", "public boolean pass(String word);", "private boolean checkKey(char k)\n {\n \tint index = word.indexOf(k);\n \tif (index == -1)\n \t{\n \t\t//k doesn't exist in word\n \t\tguess_number--;\n \t\treturn false;\n \t}\n \telse\n \t{\n \t\t//k exist in the word\n \t\twhile (index != -1)\n \t\t{\n \t\t\t//update mask\n \t\t\tmask = mask.substring(0, index)+k+mask.substring(index+1);\n \t\t\t//update index\n \t\t\tindex = word.indexOf(k, index + 1);\n \t\t}\n \t\treturn true;\n \t}\n \t\n }", "public boolean checkWord(String word) {\n if (word.length() < longestWordLength) {\n return false;\n } else if (word.length() > longestWordLength) {\n longestWordLength = word.length();\n longestWords = new HashSet<>();\n longestWords.add(word);\n// System.out.println(word);\n } else {\n longestWords.add(word);\n// System.out.println(word);\n }\n return true;\n }", "private void playGame() {\n \twhile (guessesLeft > 0) {\n \t\twhile (true) {\n \t\t\tstr = readLine(\"Your guess: \");\n \t\t\tif (str.length() != 1) {\n \t\t\t\tprintln(\"You can only enter one symbol!\");\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tboolean bl = false;\n \t\t\t\n \t\t\t// Change string and char to uppercase\n \t\t\tstr = str.toUpperCase();\n \t\t\tchar ch = str.charAt(0);\n \t\t\t\n \t\t\tfor (int i = 0; i < guesses.length(); i++) {\n \t\t\t\tif (ch == guesses.charAt(i)) {\n \t\t\t\t\tprintln(\"This letter has already written. Enter another one!\");\n \t\t\t\t\tbl = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (bl) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t// Change string and char to uppercase\n \t\tstr = str.toUpperCase();\n \t\tletter = str.charAt(0);\n\n \t\tguesses += letter;\n \t\t\n \t\t// Check if word contains entered letter\n \t\tif (checkWord()) {\n \t\t\tprintln(\"That guess is correct.\");\n \t\t}\n \t\telse {\n \t\t\tprintln(\"There are no \" + letter + \"'s in the word.\");\n \t\t\tincorrectLetters += letter;\n \t\t\tcanvas.noteIncorrectGuess(incorrectLetters);\n \t\t\tguessesLeft--;\n \t\t}\n \t\t\n \t\tif (numberOfSymbols < word.length()) {\n \t\t\tprint(\"The word now looks like this: \");\n \t\t\tfor (int i = 0; i < word.length(); i++) {\n \t\t\t\tif (list[i] == true) {\n \t\t\t\t\tprint(word.charAt(i));\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tprint(\"-\");\n \t\t\t\t}\n \t\t\t}\n \t\t\tprintln();\n \t\t\t\n \t\t\tif (guessesLeft == 1) {\n \t\t\t\tprintln(\"You have only one guess left.\");\n \t\t\t}\n \t\t\telse {\n \t\t\t\tprintln(\"You have \" + guessesLeft + \" guesses left.\");\n \t\t\t}\n \t\t}\n \t\telse {\n \t\t\tif (numberOfSymbols == word.length()) {\n \t\t\t\twin = true;\n \t\t\t\tprintln(\"You guessed the word: \" + word);\n \t\t\t\tprintln(\"You win.\");\n \t\t\t\tcanvas.displayWord(word);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n\t\t\t\t\n \t}\n \t\n \tif (win == false) {\n \t\tprintln(\"You're completely hung.\");\n \t\tprintln(\"The word was: \" + word);\n \t\tprintln(\"You loose.\");\n \t\tcanvas.displayWord(word);\n \t}\n \t\n \tstartNext();\n }", "public boolean guessChar (char c) throws IOException {\n if (lose || victory) return false;\n \t\n \tchar cLower = Character.toLowerCase(c);\n \tString wLower = _word.toLowerCase();\n \t\n int cIndex = wLower.indexOf(cLower);\t// Where is 'c'? \n if (cIndex == -1) { \t// No 'c' found ==> Wrong!\n this.lives--;\n this.attempts.add(cLower);\n \n lose = (lives <= 0) ? true : false; // Any chances left?\n \n return false;\n }\n else {\t\t// Correct\n \tfor (int i = 0; i < _word.length(); i++) {\n \t\tif ( wLower.charAt(i) == cLower ) {\n \t\t\thint.setCharAt(2*i, _word.charAt(i));\n \t\t}\n \t}\n \n // Got the whole word?\n if(this.hint.indexOf(\"_\") == -1) {\n this.victory = true;\n }\n \n return true; // Valid play\n }\n\n \n }", "boolean gameOver() {\n return piecesContiguous(BLACK) || piecesContiguous(WHITE);\n }", "Boolean getPartiallyCorrect();", "public boolean checkDictionary(String word) {\n Node current = root;\n String check = word.toLowerCase().trim();\n // parse through the String word\n for (int i = 0; i < check.length(); i++) {\n // get the index of the selected character in the node array\n int index = getIndex(check.charAt(i));\n if (index < 0) {\n return false;\n }\n \n // if the iteration is not at the last character\n if (i < check.length() - 1) {\n // get the next node\n Node next = current.nexts[index];\n // if there is a next node, move to it\n if (next != null) {\n current = next;\n }\n // otherwise, the word does not exist as its path is longer than where it went in the dictionary\n else return false;\n }\n // if the iteration is on the last character\n else {\n // return true if the value at the node index is true, false otherwise\n return current.wordExists(index);\n }\n }\n // somehow the loop exitted without a return statement in the middle of it and the word does not exist\n return false;\n }", "public static void main(String[] args) {\r\n // TODO code application logic here\r\n String finalWord = stringGen(0); // Generate Random String to find words in\r\n \r\n String correctGuesses[];\r\n correctGuesses = new String[50];\r\n Boolean running = true;\r\n \r\n System.out.println(finalWord); \r\n \r\n Scanner s = new Scanner(System.in); // sets up user input\r\n \r\n while (running){ // while user still wants to play...\r\n System.out.print(\"Enter a word found in this puzzle (or QUIT to quit): \");\r\n String input = s.nextLine(); // Gets user input\r\n if(quit(input)){\r\n break;\r\n }\r\n if (input.equals(\"yarrimapirate\")) {\r\n yarrimapirate();\r\n }\r\n if(!compare(correctGuesses, input)) { // guessed word isnt in prev list\r\n if(checkWord(finalWord, input)) { // guessed word is found in string\r\n correctGuesses[correctCounter] = input;\r\n System.out.println(\"Yes,\" + input + \" is in the puzzle.\");\r\n correctCounter++;\r\n }\r\n else { // exactly what next line says o.O\r\n System.out.println(input + \" is NOT in the puzzle.\");\r\n }\r\n }\r\n else {\r\n System.out.println(\"Sorry, you have already found that word.\");\r\n }\r\n }\r\n \r\n System.out.println(\"You found the following \" + correctCounter + \" words in the puzzle:\");\r\n \r\n for(int x=0; x<correctCounter; x++) { // lets print out all Correct guesses!\r\n System.out.println(correctGuesses[x]);\r\n }\r\n \r\n }", "public boolean isGoal() {\n return hamming() == 0; // Board is solved if hamming distance is 0\n }", "private void updateGuessedWord(String guessedLetter) {\n\t\tint guessIndex = 0;\n\t\tint indexOffset = 0;\n\t\t//we loop here because there can potentially be multiple instances of guessedLetter in actualWord\n\t\twhile (indexOffset < actualWord.length()) { //could be while true, but this protects against double letters at end of word\n\t\t\tguessIndex = actualWord.indexOf(guessedLetter, indexOffset);\n\t\t\tif (guessIndex < 0) return; //exits loop if no further instances of guessed letter are in actual word\n\t\t\telse {\n\t\t\t\tguessedWord = guessedWord.substring(0, guessIndex) + guessedLetter + guessedWord.substring(guessIndex + 1);\n\t\t\t\tindexOffset = guessIndex + 1;\n\t\t\t}\n\t\t}\n\t}", "public boolean guessIsRight(String secretWord, char guess){\n\t\tboolean isCorrect = false;\n\t\tfor (int i=0; i<secretWord.length(); i++){\n\t\t\tchar secretLetter = secretWord.charAt(i);\n\t\t\tif (secretLetter == guess){\n\t\t\t\t isCorrect = true;\n\t\t\t}\n\t\t}\n\t\treturn isCorrect;\n\t}", "public void process(String s)//check if the phrase guess equals the actual phrase\n {\n String phraseGuess = s.toUpperCase();\n String phraseUp = phrase.toUpperCase();\n //comparing guess and actual\n if (phraseGuess.equals(phraseUp))\n {\n System.out.println(\"You Guessed correctly!\");\n screen = phraseUp.toCharArray();\n GamePlay.letterInPhrase = true;\n showPhrase();\n// System.out.println(\"The phrase is: \"+phrase);\n }\n else\n {System.out.println(\"Incorrect Guess Next Player's turn\");\n GamePlay.letterInPhrase = false;\n }\n }", "private void checkAnswer() {\n this.convertAnswerString();\n\n StringBuilder answer = new StringBuilder(currentAnswer);\n\n if (answer.toString().equals(selectedWord)) {\n gameOver = true;\n Toast toast = Toast.makeText(getApplicationContext(), \"You Win!!!\", Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (currentAnswer.length() == this.selectedLength && !gameOver) {\n Toast toast = Toast.makeText(getApplicationContext(), \"Sorry! Wrong Answer!\", Toast.LENGTH_LONG);\n toast.show();\n }\n }", "public boolean guess(char letter)\n\t{\n\t\treturn false;\n\t}", "boolean gameOver() {\n return piecesContiguous(BP) || piecesContiguous(WP);\n }", "public void guessLetter(String letter) {\n \n if (this.word.contains(letter)) {\n if (!this.guessedLetters.contains(letter)) {\n this.guessedLetters += letter;\n } // if the letter has already been guessed, nothing happens\n }else {\n // it the word does not contains the guessed letter, number of faults increase\n if (!this.guessedLetters.contains(letter)) {\n this.guessedLetters += letter;\n this.numberOfFaults++;\n } \n }\n\n \n\n\n }", "public boolean checkAndUpdate(String word) {\n if (hashTable.contains(word)) {\n hashTable.put(word, hashTable.get(word) - 1);\n if (hashTable.get(word) == 0) {\n hashTable.delete(word);\n }\n return true;\n }\n return false;\n }", "public void checkWord(String word, PlayerHandler playerHandler) {\n\n StringInputScanner ask = new StringInputScanner();\n ask.setMessage(GFXGenerator.drawRope(score, teams[0], teams[1]) + word + \" = ?? \\n\");\n\n if (playerHandler.getPrompt().getUserInput(ask).equals(word)) {\n updateScore(playerHandler);\n }\n }", "public boolean isOneLetterOff(String word1, String word2){\n \tif(word1.equals(word2)){ //all letters same\n \t\treturn false;\n \t}\n \tif(word1.substring(1).equals(word2.substring(1))){\t//all letters same except 1st\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,1).equals(word2.substring(0, 1)) && word1.substring(2).equals(word2.substring(2))){ //all letters same except 2nd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,2).equals(word2.substring(0,2)) && word1.substring(3).equals(word2.substring(3))){\t//all letters same except 3rd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,3).equals(word2.substring(0,3)) && word1.substring(4).equals(word2.substring(4))){\t//all letters same except 4th\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,4).equals(word2.substring(0,4))){\t//all letters same except 5th\n\t\t\treturn true;\n\t\t}\n \treturn false;\n }", "public test(){\r\n while(true){\r\n int num = (int)(Math.random()*5); // this is hard coded, you should use words.length instead of 5\r\n String str = words[num];\r\n int n = Guess(str);\r\n System.out.println(\"The word is \"+ str +\".You missed \"+n+\"times.\\n\");\r\n System.out.println(\"Do you want to guess for another word? Entry y or n\");\r\n String s = input.next();\r\n if(s.equals(\"n\")){\r\n break;\r\n }\r\n System.out.println(\"Game over!\");\r\n }\r\n }", "boolean containsUtilize(String word)\n {\n return word.contains(\"utilize\");\n }", "public boolean accepts(String word) {\n List<Character> chars = word.chars().mapToObj(it -> (char) it).collect(Collectors.toList());\n return this.initialState.traverse(chars);\n }", "boolean getIsHotwordTriggered();", "private static boolean hasWord(char[][] board, int x, int y, String s) {\n if (x < 0 || x > 4 || y < 0 || y > 4) return false;\n if (s.length() == 0) return true;\n\n // If 1st char of s is different from char at (x, y),\n // hasWord cannot continue to search s.\n if (s.charAt(0) != board[y][x]) return false;\n\n for (int i = 0; i < diffX.length; i++) {\n int newX = x + diffX[i];\n int newY = y + diffY[i];\n if (hasWord(board, newX, newY, s.substring(1))) return true;\n }\n\n return false;\n }", "private boolean checkDict(String word, String[] dict){\n int a = 0;\n int b = dict.length-1;\n while (a<=b) {\n int m = (a+b)/2;\n if (word.compareTo(dict[m]) == 0) return true;\n else if (word.compareTo(dict[m])>0) a = m+1;\n else b = m-1;\n }\n return false;\n }", "private boolean isWord(String word) {\n\t\treturn dict.isWord(word);\n\t}", "public boolean isGoal(){\n\t\tboolean ok = true;\n\t\tfor (int i = 0; i < getRows() && ok; i++) {\n\t\t\tfor (int j = 0; j < getColumns() && ok; j++) {\n\t\t\t\tif (cells[i][j].getSand() != getK()) \n\t\t\t\t\tok = false;\n\t\t\t}\n\t\t} \n\t\treturn ok;\n\t}", "boolean hasFixedHotwordGain();", "public static void playGame(String word) {\n DrawingPanel canvas = new DrawingPanel(500, 500);\n Graphics pen = canvas.getGraphics();\n \n //define flag for while loop\n boolean gameOver = false;\n \n //create a boolean array with elements equal to the number of letters to guess\n boolean[] letters = new boolean[word.length()];\n \n //Create a string that stores all letters that have been guessed\n String guesses = \"\";\n \n //create an int variable that stores the number of wrong guesses\n int wrongGuesses = 0;\n \n //create a scanner object that reads in user guesses.\n Scanner console = new Scanner(System.in);\n \n //meat of the game\n while(!gameOver) {\n \n //prompt user for a guess\n System.out.print(\"Guess a letter: \");\n char guess = Character.toLowerCase(console.next().charAt(0));\n \n \n //check to see if the user has guessed this letter before\n boolean freshGuess = true;\n for(int index = 0; index < guesses.length(); index++) {\n System.out.println(\"Guesses[i] = \" + guesses.charAt(index) + \", Guess = \" + guess);\n if(guess == guesses.charAt(index)) { \n freshGuess = false;\n }\n }\n \n //if the guess is fresh, check if it is correct\n boolean correctGuess = false;\n if(freshGuess) {\n \n for(int index = 0; index < word.length(); index++) {\n if(guess == word.charAt(index)) { \n letters[index] = true;\n correctGuess = true;\n }\n }\n \n if(correctGuess) {\n System.out.println(\"Good guess! The word is:\");\n gameOver = !printGuess(letters, word);\n }\n \n else{\n System.out.println(\"Oops! Letter \" + guess + \" is not there. Adding to hangman... \");\n draw(wrongGuesses, pen);\n wrongGuesses++;\n if(wrongGuesses == 6) { gameOver = true; }\n }\n \n guesses += guess;\n }\n \n //report repeated guess\n else { \n System.out.println(\"You have already guessed \" + guess + \".\");\n }\n \n \n }\n \n //The game is over\n System.out.println(\"Game Over!\");\n \n }", "private boolean checkIfEligible(String word) {\n\t\tif (word != null && word.length() > 0) {\n\t\t\tchar otherChar = Character.MIN_VALUE;\n\t\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\tchar curChar = word.charAt(i);\n\t\t\t\tif (curChar != '\\'' && curChar != '\\\"' && ELIGIBLECHARSTRING.indexOf(curChar) < 0) {\n\t\t\t\t\tif (otherChar != Character.MIN_VALUE && curChar != otherChar) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telse if (otherChar == Character.MIN_VALUE ) {\n\t\t\t\t\t\totherChar = curChar;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public boolean hasSpecial(){\n return (alg.containSpecial(input.getText().toString()));\n }", "public void run() {\n \t canvas.reset();\n \t rg = RandomGenerator.getInstance();\n int index = rg.nextInt(0,9);\n hang = new HangmanLexicon();\n \n //word = hang.getWord(index);\n try{\n BufferedReader br = new BufferedReader(new FileReader(\"HangmanLexicon.txt\"));\n \n while(true){\n \t String line = br.readLine();\n \t if(line == null)\n \t\t continue;\n \t ArrayList<String> kt = new ArrayList<String>();\n \t \n \t \n \t \n }\n for(int k = 0; k < word.length();k++){\n \t t = t + \"-\";\n \t \n }\n \n \twhile(counter >=0){\n \t\n \tsetup();\n \t\n \t\n \t\n \t\n \t}\n \t\n\t}\n\n \n private void setup(){\n \t\n \t\n \t\n \t\n \n int k = word.length();\n \n int i = 65;\n int temp = rg.nextInt(0,25);\n \tchar c = (char)(i + temp);\n \tboolean presentcharacter = false;\n \n \tcanvas.displayWord(t);\n \tSystem.out.println(\"you have only \" + counter + \" cases left\");\n System.out.println(\"Your Guess \"+ c);\n for(int j = 0; j<word.length();j++){\n \t\t\n \t\tif(word.charAt(j) == c){\n \t\t\tpresentcharacter = true;\n \t\t\tk--;\n \t\t}\n \t}\n \t\n \t\n \n \tif(presentcharacter){\n \t\tfor(int num = 0; num<word.length();num++){\n \t\t\tif(word.charAt(num) == c){\n \t\t\t\tSystem.out.println(\"you guessed it right\");\n \t\t\t\tt = t.substring(0,num) +c +t.substring(num+1,t.length());\n \t\t\t \t\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t\t\n \t\t\n \t}\n \t\n \t\tcanvas.noteIncorrectGuess(c, counter);\n \t\t\n \t\t\n \t\n \tcounter--;\n \n \n \t if(k == 0){\n \t \t\n \t \tSystem.out.println(\"you have won this game\");\n \t \tSystem.out.println(\"Congratulations\");\n return; \t \t\n \t \t\n \t \t\n \t }\n \n }\n \n \n\n private String t = \"\" ;\n public String word;\npublic int counter = 8;\n private HangmanLexicon hang;\n private RandomGenerator rg;\n}", "boolean isByCorrect(int currentIndex, List<String> words);", "private boolean isValidWord(String word){\n if (trie.searchWord(word)){\n return true;\n } else {\n return false;\n }\n }", "public static boolean isWordFinish(char[] blanks) {\n\t\tfor (char e: blanks) {\n\t\t\tif (e == '*') {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean hasHasCharacter();", "boolean isWord(String potentialWord);", "boolean hasHangmogCode();", "public String spellcheck(String word) {\n // Check if the world is already in lcDictionary.\n String lcdictionaryLookup = lcDictionary.get(word.toLowerCase());\n if(lcdictionaryLookup != null) {\n return lcdictionaryLookup;\n }\n String reducedWord = reducedWord(word);\n String rwdictionaryLookup = rwDictionary.get(reducedWord);\n if(rwdictionaryLookup != null) {\n return rwdictionaryLookup;\n }\n return \"NO SUGGESTION\";\n }", "public boolean checkComplete(String i) {\n\t\tif((words.get(0)+\" \").equals(i)) {\t\t//For completeness\n\t\t\tlastWord = words.remove(0);\n\t\t\tupdate();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean contains (String word) {\n //boolean res = true ;\n\n if(word.length()>0){\n\n String lettre = Character.toString(word.charAt(0));\n if(this.fils.containsKey(lettre)){\n String ssChaine = word.substring(1);\n return this.fils.get(lettre).contains(ssChaine);\n\n }\n else{\n return false;\n }\n }\n else{\n return /*res &&*/ this.fin;\n }\n }", "public String getIsguess() {\r\n return isguess;\r\n }", "private static boolean checkWords(String line) {\n\t\tint count = 0;\n\t\tScanner reader = new Scanner(line);\n\t\twhile (reader.hasNext()) {\n\t\t\tcount++;\n\t\t\treader.next();\n\t\t}\n\t\treader.close();\n\t\tif (count >= 4) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "boolean isNotKeyWord(String word);", "public boolean hasFinished() {\n\n if(!matching) {\n boolean first = true;\n for(S left : slp.getAxioms()) {\n if(slp.length(left, first) == 1) {\n return true;\n }\n first = false;\n }\n }\n\n if(matching) {\n long patternLen = slp.length(patter, true);\n if(patternLen == 1) {\n return true;\n }\n }\n\n return false;\n }", "public boolean isFull(char[][] grid){\r\n\t\tboolean full = true;\r\n\t\tfor (int i=0;i<grid.length;i++){\r\n\t\t\tfor (int j=0;j<grid[i].length;j++){\r\n\t\t\t\tif (grid[i][j] == ' '){\r\n\t\t\t\t\tfull = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn full;\r\n\t}", "public boolean isCorrect(String str);", "public static boolean isDoubloon (String word) {\n\n // convert to lowercase, set flag:\n word = word.toLowerCase();\n boolean flag = true;\n\n // Check for double pairs:\n for(int i=0; i<word.length(); i++) {\n int count=0;\n for(int j=0; j<word.length(); j++) {\n if(word.charAt(i)==word.charAt(j)) {count++;}\n }\n if (count != 2) {flag = false; break;}\n }\n return flag;\n }", "public static boolean differByOne(String word, String ladderLast) {\n if (word.length() != ladderLast.length()) {\n return false;\n }\n int count = 0;\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) != ladderLast.charAt(i)) {\n count++;\n }\n }\n return (count == 1);\n }", "private boolean checkWord(String str)\n\t{\n\t\tfor (int i = 0; i < words.length(); i++)\n\t\t{\n\t\t\tif (equals(words.get(i), str))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "boolean isValid(String word);" ]
[ "0.77131", "0.7300475", "0.72181755", "0.7111815", "0.71031743", "0.70733064", "0.7003757", "0.6967787", "0.6806661", "0.6796438", "0.6780189", "0.6713629", "0.6707138", "0.6567718", "0.65416765", "0.6521339", "0.6472046", "0.6447961", "0.64444274", "0.64346814", "0.6428896", "0.6406138", "0.6313461", "0.6306928", "0.6292665", "0.6236462", "0.6227752", "0.6226573", "0.6222145", "0.62036115", "0.61905426", "0.6179722", "0.6178596", "0.61521804", "0.6144983", "0.6135125", "0.6125027", "0.60683084", "0.60521317", "0.6032297", "0.60209626", "0.6013917", "0.59932166", "0.5962497", "0.5954349", "0.595037", "0.59390247", "0.59323716", "0.59290755", "0.5919201", "0.5917143", "0.5911034", "0.58635443", "0.5862214", "0.584907", "0.5847461", "0.5844909", "0.5835946", "0.583455", "0.5814313", "0.5808066", "0.58013695", "0.5790183", "0.57891953", "0.5778651", "0.57785255", "0.5775938", "0.5768566", "0.57559407", "0.57345086", "0.5720047", "0.5710293", "0.5709196", "0.5704826", "0.5701618", "0.56994486", "0.5690417", "0.5686638", "0.5676423", "0.5673749", "0.56724817", "0.56628454", "0.566195", "0.56578714", "0.56575686", "0.564245", "0.56342685", "0.56282115", "0.56267875", "0.5618546", "0.56116915", "0.5598885", "0.5595337", "0.5593425", "0.5593175", "0.5590392", "0.5586772", "0.5585847", "0.5581637", "0.5570412" ]
0.61201984
37
take the letter to proceed the guess on the word return true if the guess is correct else return false
public boolean takeGuess(char letter) { // reset default result as false boolean result = false; // iterate through the characters in the word for (int i = 0; i < this.getLength(); i++) { // if the guess is correct if (this.theWord[i] == letter) { // unmask the slot, set the result as true this.unmaskSlot(i); result = true; } } //return the result return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean guess(char letter)\n\t{\n\t\treturn false;\n\t}", "private void matchletter(){\n\t\t/* Generate a Random Number and use that as a Index for selecting word from HangmanLexicon*/\n\t\tString incorrectwords = \"\";\n\t\tcanvas.reset();\n\t\tHangmanLexicon word= new HangmanLexicon(); // Get Word from Lexicon\n\t\tint index=rgen.nextInt(0, (word.getWordCount() - 1)); // Select the word Randomly\n\t\tString secretword=word.getWord(index);\n\t\tprintln(\"secretword: \"+secretword);\n\t\tint lengthofstring= secretword.length();\n\t\tString createword=concatNcopies(lengthofstring,\"-\"); // Create a blank word the user will guess\n\t\tcanvas.displayWord(createword); // Display the word on the Canvas\n\t\tprintln(\"The word now looks like this:\" +createword);\n\t\tprintln(\"You have \" +lengthofstring+ \" guesses left\");\n\t\tint counter =0;\n\t\tint guess= lengthofstring;\n\t\tint pos = createword.indexOf('-'); // Check for blank Words\n\t\t/* Ask user to input the letter*/\n\t\twhile(counter<lengthofstring && (pos !=-1 )){ \n\t\t\tint check=0;\n\t\t\tpos = createword.indexOf('-',pos); // Check to find Dashes in word\n\t\t\tString userletter= readLine(\"Your Guess:\");\n\t\t\tif(userletter.length() > 1){ // Check for two letters entered\n\t\t\t\tprintln(\"Enter letter Again\");\n\t\t\t}\n\t\t\tchar ch=userletter.charAt(0);\n\t\t\tif(Character.isLowerCase(ch)) { // Convert lower case to upper case\n\t\t\t\tch = Character.toUpperCase(ch);\n\t\t\t}\n\t\t\tfor (int i=0;i<lengthofstring;i++){ // Check for entire letter matching in the secretword\n\t\t\t\tif (ch==secretword.charAt(i) && ch!=createword.charAt(i)) { \n\t\t\t\t\tcreateword = createword.substring(0, i) + ch + createword.substring(i + 1);\n\t\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\t\tcheck++; // If user puts the correct letter again it is flagged as a error\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(check==0){\n\t\t\t\tprintln(\"There are no \"+ch+\"'s in the word\");\n\t\t\t\tguess=guess-1;\n\t\t\t\tincorrectwords = incorrectwords+ch;\n\t\t\t\tcanvas.noteIncorrectGuess(guess, incorrectwords);\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tprintln(\"The word now looks like this:\"+createword);\n\t\t\tprintln(\"You have \" +guess+ \" guesses left\");\n\n\t\t\tif(counter==lengthofstring){ // Checks for Fail condition- Game Over\n\t\t\t\tprintln(\"You are completely hung\");\n\t\t\t\tprintln(\"The word was: \"+secretword);\n\t\t\t\tcanvas.displayWord(secretword);\n\t\t\t\tprintln(\"You lose \");\n\t\t\t}\n\t\t\tpos = createword.indexOf('-');// Check for Win condition\n\t\t\tif(pos < 0){\n\t\t\t\tprintln(\"You saved Hangman\");\n\t\t\t\tprintln(\"You Win !!!\");\n\t\t\t\tcanvas.displayWord(createword);\n\t\t\t\tguess=123;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public abstract boolean isGuessCorrect(String guess);", "public abstract boolean guess(String guess);", "public boolean guessWord (String gword) {\n \tif (lose || victory) return false;\n \t\n \tif ( gword.toLowerCase().equals(_word.toLowerCase()) ) {\n \t\tthis.victory = true;\n \t\t\n \t\tfor (int i = 0; i < _word.length(); i++) {\n \t\t\thint.setCharAt(2*i, _word.charAt(i));\n \t\t}\n \t\t\n \t\treturn true;\n \t}\n \t\n \treturn false;\n }", "public void guessLetter(String letter) {\n \n if (this.word.contains(letter)) {\n if (!this.guessedLetters.contains(letter)) {\n this.guessedLetters += letter;\n } // if the letter has already been guessed, nothing happens\n }else {\n // it the word does not contains the guessed letter, number of faults increase\n if (!this.guessedLetters.contains(letter)) {\n this.guessedLetters += letter;\n this.numberOfFaults++;\n } \n }\n\n \n\n\n }", "boolean checkGuess(String guess) {\r\n if (currWord.contains(guess)) { // correct guess\r\n numToGuess--;\r\n if (numToGuess <= 0) { // the word was guessed\r\n if (currWord.equals(animal))\r\n animalGuessed = true;\r\n if (currWord.equals(country))\r\n countryGuessed = true;\r\n if (currWord.equals(superhero))\r\n superheroGuessed = true;\r\n wordsCorrect++;\r\n if (wordsCorrect >= 3) {\r\n gameOver = true;\r\n win = true;\r\n }\r\n }\r\n return true;\r\n }\r\n else { // wrong guess\r\n guessesLeft--;\r\n if (guessesLeft <= 0) { // round lost\r\n chancesLeft--;\r\n if (chancesLeft <= 0) {\r\n gameOver = true;\r\n win = false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public char handleGuess(){\n\t\t\r\n\t\tSystem.out.print(\"Please enter a letter: \");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString s = sc.next();\r\n\t\tchar letter = s.charAt(0);\r\n\r\n\t\taa:for(int i=0; i<gameLetter.length; i++){\r\n\t\t\tif(letter == gameLetter[i]){\r\n\t\t\t\tcorrectList.add(letter);\r\n\t\t\t\t\r\n\t\t\t\tif(ifWrongListContain(letter)==true){\r\n\t\t\t\t\tfor(int b=0, length=wrongList.size(); b<length; b++){\r\n\t\t\t\t\t\tif(wrongList.get(b)==letter)\r\n\t\t\t\t wrongList.remove(b);\r\n\t\t\t\t length--;\r\n\t\t\t\t b--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak aa;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(ifWrongListContain(letter)==true)\r\n\t\t\t\t\tcontinue aa;\r\n\t\t\t\telse\r\n\t\t\t\t wrongList.add(letter);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn letter;\t\t\r\n\t\t\t\t\r\n\t}", "public boolean guessChar (char c) throws IOException {\n if (lose || victory) return false;\n \t\n \tchar cLower = Character.toLowerCase(c);\n \tString wLower = _word.toLowerCase();\n \t\n int cIndex = wLower.indexOf(cLower);\t// Where is 'c'? \n if (cIndex == -1) { \t// No 'c' found ==> Wrong!\n this.lives--;\n this.attempts.add(cLower);\n \n lose = (lives <= 0) ? true : false; // Any chances left?\n \n return false;\n }\n else {\t\t// Correct\n \tfor (int i = 0; i < _word.length(); i++) {\n \t\tif ( wLower.charAt(i) == cLower ) {\n \t\t\thint.setCharAt(2*i, _word.charAt(i));\n \t\t}\n \t}\n \n // Got the whole word?\n if(this.hint.indexOf(\"_\") == -1) {\n this.victory = true;\n }\n \n return true; // Valid play\n }\n\n \n }", "private void tryGuess(char letter) {\n\t\tSystem.out.println(\"=============================\");\n\t\t// if the same guess has been done before, print corresponding information\n\t\tif (this.guessedLetters.contains(letter)){\n\t\t\tSystem.out.println(\"Letter already guessed, try another one.\");\n\t\t}else {\n\t\t\t// else, update the guessedLetters\n\t\t\tthis.guessedLetters.add(letter);\n\t\t\t// if the guess is correct\n\t\t\tif(this.word.takeGuess(letter)) {\n\t\t\t\t// print corresponding information\n\t\t\t\tSystem.out.println(\"Correct letter!\");\n\t\t\t}else {\n\t\t\t\t// else, add the letter to the wrongLetters list\n\t\t\t\tthis.wrongLetters.add(letter);\n\t\t\t\t// increase the count of wrong guesses\n\t\t\t\tthis.numOfWrongGuess ++;\n\t\t\t\t// print out the corresponding information\n\t\t\t\tSystem.out.println(\"Wrong letter, better luck next turn.\");\n\t\t\t}\n\t\t}\n\t}", "public void process(String s)//check if the phrase guess equals the actual phrase\n {\n String phraseGuess = s.toUpperCase();\n String phraseUp = phrase.toUpperCase();\n //comparing guess and actual\n if (phraseGuess.equals(phraseUp))\n {\n System.out.println(\"You Guessed correctly!\");\n screen = phraseUp.toCharArray();\n GamePlay.letterInPhrase = true;\n showPhrase();\n// System.out.println(\"The phrase is: \"+phrase);\n }\n else\n {System.out.println(\"Incorrect Guess Next Player's turn\");\n GamePlay.letterInPhrase = false;\n }\n }", "public static boolean isCorrectGuess(char[] word, char[] blanks, char guess) {\n\t\tboolean correct = false;\n\t\tint message = 2;\n\t\tfor (int i = 0; i < word.length; i++) {\n\t\t\tif (word[i] == guess) {\n\t\t\t\tcorrect = true;\n\t\t\t\tif (blanks[i] == guess){\n\t\t\t\t\tmessage = 1;\n\t\t\t\t}\n\t\t\t\telse { \n\t\t\t\t\tblanks[i] = guess; // the actual letter is then displayed.\n\t\t\t\t\tmessage = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (message > 0){\n\t\t\tprint(message, guess); // Call print message for incorrect\n\t\t}\n\t\treturn correct;\n\t}", "public static boolean printGuess(boolean[] letters, String word) {\n String displayWord = \"\";\n for(int index = 0; index < word.length(); index++) {\n if(letters[index]) { displayWord += word.charAt(index); }\n else { displayWord += '-'; }\n }\n System.out.println(displayWord);\n \n //check if there are still letters to guess\n for(int index = 0; index < letters.length; index++) {\n if(!letters[index]) { return true; }\n }\n \n //no more letters to guess!\n return false;\n }", "public void guessLetter()\n\t{\n\t\tSystem.out.println(\"The name is \" + length + \" letters long.\");\n\t\tSystem.out.println(\"Ok, now guess what letters are in the name.\");\n\t\t\n\t\t//This will guess the first letter.\n\t\tguessLetter1 = scan.nextLine();\n\t\tif(name.indexOf(guessLetter1) == -1)\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, that letter is not in the name, try again!\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tposition1 = name.indexOf(guessLetter1);\n\t\t\tSystem.out.println(\"You're correct, letter \" + guessLetter1 + \" is in position \" + position1);\n\t\t}\n\t\t\n\t\t//This will guess the second letter.\n\t\tguessLetter2 = scan.nextLine();\n\t\tif(name.indexOf(guessLetter2) == -1)\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, that letter is not in the name, try again!\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tposition2 = name.indexOf(guessLetter2);\n\t\t\tSystem.out.println(\"You're correct, letter \" + guessLetter2 + \" is in position \" + position2);\n\t\t}\n\t\t\n\t\t//This will guess the third letter.\n\t\tguessLetter3 = scan.nextLine();\n\t\tif(name.indexOf(guessLetter3) == -1)\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, that letter is not in the name.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tposition3 = name.indexOf(guessLetter3);\n\t\t\tSystem.out.println(\"You're correct, letter \" + guessLetter3 + \" is in position \" + position3);\n\t\t}\n\t}", "private boolean checkGuess(char c){\r\n boolean contains = false;\r\n for (int i = 0; i < wordArray.length; i++) {\r\n if (wordArray[i] == c) {\r\n contains = true;\r\n hidden[i] = c;\r\n }\r\n }\r\n if (!contains){\r\n guesses.add(c);\r\n }\r\n return contains;\r\n }", "public static boolean checkWord(String guess, String solution) {\n\t\tif(guess.equals(solution)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean alreadyGuessed(char guess) {\r\n return false;\r\n }", "private void playGame() {\n \twhile (guessesLeft > 0) {\n \t\twhile (true) {\n \t\t\tstr = readLine(\"Your guess: \");\n \t\t\tif (str.length() != 1) {\n \t\t\t\tprintln(\"You can only enter one symbol!\");\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tboolean bl = false;\n \t\t\t\n \t\t\t// Change string and char to uppercase\n \t\t\tstr = str.toUpperCase();\n \t\t\tchar ch = str.charAt(0);\n \t\t\t\n \t\t\tfor (int i = 0; i < guesses.length(); i++) {\n \t\t\t\tif (ch == guesses.charAt(i)) {\n \t\t\t\t\tprintln(\"This letter has already written. Enter another one!\");\n \t\t\t\t\tbl = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (bl) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t// Change string and char to uppercase\n \t\tstr = str.toUpperCase();\n \t\tletter = str.charAt(0);\n\n \t\tguesses += letter;\n \t\t\n \t\t// Check if word contains entered letter\n \t\tif (checkWord()) {\n \t\t\tprintln(\"That guess is correct.\");\n \t\t}\n \t\telse {\n \t\t\tprintln(\"There are no \" + letter + \"'s in the word.\");\n \t\t\tincorrectLetters += letter;\n \t\t\tcanvas.noteIncorrectGuess(incorrectLetters);\n \t\t\tguessesLeft--;\n \t\t}\n \t\t\n \t\tif (numberOfSymbols < word.length()) {\n \t\t\tprint(\"The word now looks like this: \");\n \t\t\tfor (int i = 0; i < word.length(); i++) {\n \t\t\t\tif (list[i] == true) {\n \t\t\t\t\tprint(word.charAt(i));\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tprint(\"-\");\n \t\t\t\t}\n \t\t\t}\n \t\t\tprintln();\n \t\t\t\n \t\t\tif (guessesLeft == 1) {\n \t\t\t\tprintln(\"You have only one guess left.\");\n \t\t\t}\n \t\t\telse {\n \t\t\t\tprintln(\"You have \" + guessesLeft + \" guesses left.\");\n \t\t\t}\n \t\t}\n \t\telse {\n \t\t\tif (numberOfSymbols == word.length()) {\n \t\t\t\twin = true;\n \t\t\t\tprintln(\"You guessed the word: \" + word);\n \t\t\t\tprintln(\"You win.\");\n \t\t\t\tcanvas.displayWord(word);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n\t\t\t\t\n \t}\n \t\n \tif (win == false) {\n \t\tprintln(\"You're completely hung.\");\n \t\tprintln(\"The word was: \" + word);\n \t\tprintln(\"You loose.\");\n \t\tcanvas.displayWord(word);\n \t}\n \t\n \tstartNext();\n }", "public boolean guessIsRight(String secretWord, char guess){\n\t\tboolean isCorrect = false;\n\t\tfor (int i=0; i<secretWord.length(); i++){\n\t\t\tchar secretLetter = secretWord.charAt(i);\n\t\t\tif (secretLetter == guess){\n\t\t\t\t isCorrect = true;\n\t\t\t}\n\t\t}\n\t\treturn isCorrect;\n\t}", "public boolean isCorrect(String theguess){\n\t\treturn (correctA.contains(theguess));\n\t}", "public static void playGame(String word) {\n DrawingPanel canvas = new DrawingPanel(500, 500);\n Graphics pen = canvas.getGraphics();\n \n //define flag for while loop\n boolean gameOver = false;\n \n //create a boolean array with elements equal to the number of letters to guess\n boolean[] letters = new boolean[word.length()];\n \n //Create a string that stores all letters that have been guessed\n String guesses = \"\";\n \n //create an int variable that stores the number of wrong guesses\n int wrongGuesses = 0;\n \n //create a scanner object that reads in user guesses.\n Scanner console = new Scanner(System.in);\n \n //meat of the game\n while(!gameOver) {\n \n //prompt user for a guess\n System.out.print(\"Guess a letter: \");\n char guess = Character.toLowerCase(console.next().charAt(0));\n \n \n //check to see if the user has guessed this letter before\n boolean freshGuess = true;\n for(int index = 0; index < guesses.length(); index++) {\n System.out.println(\"Guesses[i] = \" + guesses.charAt(index) + \", Guess = \" + guess);\n if(guess == guesses.charAt(index)) { \n freshGuess = false;\n }\n }\n \n //if the guess is fresh, check if it is correct\n boolean correctGuess = false;\n if(freshGuess) {\n \n for(int index = 0; index < word.length(); index++) {\n if(guess == word.charAt(index)) { \n letters[index] = true;\n correctGuess = true;\n }\n }\n \n if(correctGuess) {\n System.out.println(\"Good guess! The word is:\");\n gameOver = !printGuess(letters, word);\n }\n \n else{\n System.out.println(\"Oops! Letter \" + guess + \" is not there. Adding to hangman... \");\n draw(wrongGuesses, pen);\n wrongGuesses++;\n if(wrongGuesses == 6) { gameOver = true; }\n }\n \n guesses += guess;\n }\n \n //report repeated guess\n else { \n System.out.println(\"You have already guessed \" + guess + \".\");\n }\n \n \n }\n \n //The game is over\n System.out.println(\"Game Over!\");\n \n }", "public void makeGuess(char letter) {\n\t\tif (isGameOver() || hasGuessedAlready(letter)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tguessesMade.add(letter);\n\t\tif (wordToGuess.indexOf(letter) == -1) { // letter is not in wordToGuess\n\t\t\tnumIncorrectGuessesMade++;\n\t\t}\n\t}", "public abstract String guessedWord();", "private void updateGameState(String guessedLetter) {\n\t\tif (guessedWord.contains(guessedLetter)) {\n\t\t\treturn;\n\t\t} else if (actualWord.contains(guessedLetter)) {\n\t\t\tprintln(\"That guess is correct.\");\n\t\t\tupdateGuessedWord(guessedLetter);\n\t\t\tcanvas.displayWord(guessedWord);\n\t\t} else {\n\t\t\tbadGuessCount++;\n\t\t\tcanvas.noteIncorrectGuess(guessedLetter.charAt(0));\n\t\t\tprintln(\"There is no \" + guessedLetter + \" in the word.\");\n\t\t\t//whatever other action that will happen for bad guesses can go here\n\t\t}\n\t}", "public static boolean isFinished(char[] guessBoard, Hangman hangman) {\n // Life is 0\n if(hangman.done())\n {\n System.out.println(\"Game Over!\");\n return true;\n }\n\n // Check correct answer\n for(int i = 0; i < guessBoard.length; i++)\n if(guessBoard[i] == '_') return false;\n return true;\n }", "private char playerGuess(){\r\n System.out.println(\"\\nEnter your guess: \");\r\n guess = input.next();\r\n if (guess.matches(\"[a-zA-z]*$\") && guess.length() == 1){\r\n if(guesses.contains(guess.charAt(0))){\r\n System.out.println(\"You already guessed this character!\");\r\n playerGuess();\r\n }\r\n return Character.toLowerCase(guess.charAt(0));\r\n } else {\r\n System.out.println(\"Invalid guess! Try again!\");\r\n playerGuess();\r\n }\r\n return Character.toLowerCase(guess.charAt(0));\r\n }", "@Test\n public void testWordGuessCompletition() {\n Word word = new Word(\"Llama\", 10);\n\n // The guess array should be initialized to all '_' characters\n // but be of the same length as the number of letters in the word\n Assert.assertEquals(\"Llama\".length(), word.getGuesses().length);\n Assert.assertEquals('_', word.getGuesses()[0]);\n Assert.assertEquals('_', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // The word shouldn't be marked as 'completed' until all the letters are guessed.\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('l'));\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('a'));\n Assert.assertFalse(word.getIsComplete());\n Assert.assertTrue(word.guessLetter('m'));\n // Now that it is entirely guessed it should be complete\n Assert.assertTrue(word.getIsComplete());\n\n // If you reset the guesses, it shouldn't be complete anymore\n word.resetGuesses();\n Assert.assertFalse(word.getIsComplete());\n }", "protected boolean checkGuess(Hangman game, String input) {\n if ((input != null) && (input.length() > 0)) {\n input = input.trim();\n if (input.equals(Server.GAME_STOP)) {\n cleanUp();\n } else if (input.length() == 1) {\n char c = input.charAt(0);\n game.guess(c);\n return true;\n }\n }\n return false;\n }", "@Override\n\t\t\tpublic void handle(KeyEvent e) {\n\t\t\t\tif(e.getCode().isLetterKey()) {\n\t\t\t\t\t\n\t\t\t\t\t//The input is converted to a char variable and a boolean is created and set to false,\n\t\t\t\t\t//in preparation for later in this method.\n\t\t\t\t\tchar letter = e.getText().charAt(0);\n\t\t\t\t\tboolean same = false;\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < currentGuesses.length; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//If the letter that the user input is the same as the letter found\n\t\t\t\t\t\t//in the currentGuesses char array, the same boolean variable is set\n\t\t\t\t\t\t//to true and we break out of the loop.\n\t\t\t\t\t\tif(letter==currentGuesses[i]) {\n\t\t\t\t\t\t\tsame = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//Otherwise, if we reached a point in the array that has a value of\n\t\t\t\t\t\t//0, instead of a letter, we replace that 0 with the letter that the\n\t\t\t\t\t\t//user just input and break out of the loop, because we know everything\n\t\t\t\t\t\t//past this point are also blanks and don't want to replace them too.\n\t\t\t\t\t\t}else if(currentGuesses[i]==0) {\n\t\t\t\t\t\t\tcurrentGuesses[i] = letter;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If the letter isn't the same as one already guessed, this if statement happens.\n\t\t\t\t\tif(!same) {\n\t\t\t\t\t\t//A message is sent to the server, including the codename for the server to use\n\t\t\t\t\t\t//and the letter that the user input.\n\t\t\t\t\t\tout.println(\"LetterGuess \" + letter);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//A String array is created in preparation for the loop that happens \n\t\t\t\t\t\t//immediately afterwards.\n\t\t\t\t\t\tString[] receive = new String[3];\n\t\t\t\t\t\n\t\t\t\t\t\twhile(receive[0] == null) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//When the server responds, the String is split into the array, separating \n\t\t\t\t\t\t\t\t//one word from the next by looking for a space.\n\t\t\t\t\t\t\t\treceive = in.readLine().split(\" \");\n\t\t\t\t\t\t\t}catch(IOException ioe) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//The boolean success is set to the second element of the received String that is converted\n\t\t\t\t\t\t//to a boolean. The same is done with the third element and is saved to the finished boolean\n\t\t\t\t\t\t//that exists in the class scope.\n\t\t\t\t\t\tboolean success = Boolean.parseBoolean(receive[1]);\n\t\t\t\t\t\tfinished = Boolean.parseBoolean(receive[2]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Success only needs to exist within this method as it is used here to determine how\n\t\t\t\t\t\t//the statusMessageLabel should be updated.\n\t\t\t\t\t\tif(success) {\n\t\t\t\t\t\t\t//If the player made a successful guess, the status message is set accordingly.\n\t\t\t\t\t\t\tstatusMessageLabel = new Label(\"There is a '\" + letter + \"' in the word!\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t//However, if the player made an unsuccessful guess, the message is set differently,\n\t\t\t\t\t\t\t//the amount of remaining guesses the player has decrements and the drawnPieces\n\t\t\t\t\t\t\t//variable goes up by an amount determined by maths, thanks to the different difficulty\n\t\t\t\t\t\t\t//settings. Assuming easy difficulty, drawnPieces goes up by 1. Medium difficulty\n\t\t\t\t\t\t\t//makes it go up by 1.4 and hard difficulty makes it go up by 2.333. \n\t\t\t\t\t\t\tstatusMessageLabel = new Label(\"There was no '\" + letter + \"' in the word.\");\n\t\t\t\t\t\t\tremainingGuesses--;\n\t\t\t\t\t\t\tdrawnPieces += (7.0/difficultyGuesses);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//The currentWord label is now set to the value of the first element of the \n\t\t\t\t\t\t//String array.\n\t\t\t\t\t\tcurrentWordLabel = new Label(receive[0]);\n\t\t\t\t\t\t\n\t\t\t\t\t//If the letter is the same as one already guessed, we go here instead\n\t\t\t\t\t}else {\n\t\t\t\t\t\t//Inform the user that they already tried their letter\n\t\t\t\t\t\tstatusMessageLabel = new Label(\"The letter '\" + letter + \"' has already been used\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//The currentGuesses label is updated with the new values of the player's guessed letters.\n\t\t\t\t\t//It is converted from a char array to a String, so that it can be used for the label.\n\t\t\t\t\t//The attemptsRemaining label is also updated, as the value of the remainingGuesses int\n\t\t\t\t\t//may have changed, if the player guessed incorrectly. \n\t\t\t\t\tcurrentGuessesLabel = new Label(new String(currentGuesses));\n\t\t\t\t\tattemptsRemainingLabel = new Label(\"Attempts remaining: \" + remainingGuesses);\n\n\t\t\t\t\t//Since the labels have been updated, the finalLine HBox needs to be updated with the\n\t\t\t\t\t//new labels. \n\t\t\t\t\tfinalLine = new HBox(5,currentGuessesLabel,eh,attemptsRemainingLabel);\n\t\t\t\t\tHBox.setHgrow(eh,Priority.ALWAYS);\n\t\t\t\t\tfinalLine.setAlignment(Pos.CENTER_LEFT);\n\t\t\t\t\t\n\t\t\t\t\t//And since the HBox has been updated, so too does the VBox need to be updated.\n\t\t\t\t\tmassiveSpacing = new VBox(5,group,statusMessageLabel,currentWordLabel,finalLine);\n\t\t\t\t\tmassiveSpacing.setAlignment(Pos.CENTER);\n\t\t\t\t\t\n\t\t\t\t\t//And also, the second group. \n\t\t\t\t\tnewGroup = new Group(massiveSpacing,hangTheMan(Math.toIntExact(Math.round(drawnPieces))));\n\t\t\t\t\tscene = new Scene(newGroup,300,300,Color.LIGHTGREY);\n\t\t\t\t\tstage.setScene(scene);\n\t\t\t\t\t\n\t\t\t\t\t//This method call could be seen as recursive, as it adds the very event listener\n\t\t\t\t\t//that we're inside now to the stage once again.\n\t\t\t\t\tkeyRel(stage);\n\t\t\t\t\t\n\t\t\t\t\t//If the remaining guesses left for the player is 0, then it's game over for them.\n\t\t\t\t\t//The appropriate method is called.\n\t\t\t\t\tif(remainingGuesses==0) {\n\t\t\t\t\t\tgameOver(stage);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Finished will be true if the word has been successfully completed. \n\t\t\t\t\tif(finished) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//The completeTime long variable is the difference in values from the current time\n\t\t\t\t\t\t//in milliseconds and the value of epoch, which was the current time in milliseconds\n\t\t\t\t\t\t//when the game started.\n\t\t\t\t\t\tcompleteTime = (System.currentTimeMillis() - epoch);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//In case the player had already played a game before, the values of count and\n\t\t\t\t\t\t//the inputName char array are set to a default value. \n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tinputName[0] = '_';\n\t\t\t\t\t\tinputName[1] = '_';\n\t\t\t\t\t\tinputName[2] = '_';\n\t\t\t\t\t\t\n\t\t\t\t\t\t//The appropriate method is called to progress on from the game.\n\t\t\t\t\t\tgameVictory(stage);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//However, if the player did not click on a letter key and it was instead the escape button,\n\t\t\t\t//this if statement is used instead\n\t\t\t\t}else if(e.getCode()==KeyCode.ESCAPE) {\n\t\t\t\t\t\n\t\t\t\t\t//An Alert window is made, asking the player whether they're sure they want to quit\n\t\t\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\t\t\talert.setTitle(\"Quit game\");\n\t\t\t\t\talert.setHeaderText(null);\n\t\t\t\t\talert.setContentText(\"Are you sure you wish to quit the game?\\nYour progress will not be saved.\");\n\t\t\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\t\t\t\n\t\t\t\t\tif(result.get() == ButtonType.OK) {\n\t\t\t\t\t\t//If the player clicks on the OK button, an attempt to close the socket is made\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.close();\n\t\t\t\t\t\t}catch(IOException ioe) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//and the stage is closed, which also ends the client's side of the program.\n\t\t\t\t\t\tstage.close();\n\t\t\t\t\t}\t\n\t\t\t\t}\t\n\t\t\t}", "public void noteIncorrectGuess(char letter) {\n\t\taddToWrongLetters(letter);\n\t\tdisplayWrongLetters();\n\t\taddNextBodyPart(wrongLetters.length());\n\t\t\n\t}", "private void updateGuessedWord(String guessedLetter) {\n\t\tint guessIndex = 0;\n\t\tint indexOffset = 0;\n\t\t//we loop here because there can potentially be multiple instances of guessedLetter in actualWord\n\t\twhile (indexOffset < actualWord.length()) { //could be while true, but this protects against double letters at end of word\n\t\t\tguessIndex = actualWord.indexOf(guessedLetter, indexOffset);\n\t\t\tif (guessIndex < 0) return; //exits loop if no further instances of guessed letter are in actual word\n\t\t\telse {\n\t\t\t\tguessedWord = guessedWord.substring(0, guessIndex) + guessedLetter + guessedWord.substring(guessIndex + 1);\n\t\t\t\tindexOffset = guessIndex + 1;\n\t\t\t}\n\t\t}\n\t}", "public static boolean guessBoard(String keyword, char character, char[] guessBoard, char[] alphabetBoard) {\n boolean guess = false;\n try{\n if(alphabetBoard[character - 65] == ' ') { // // Duplicate input.\n System.out.println(\"The character you already entered!\");\n guess = false;\n correctInput = false;\n }\n else { // Correct input.\n alphabetBoard[character - 65] = ' ';\n for(int i = 0; i < guessBoard.length; i++) {\n if (keyword.charAt(i) == character) {\n guessBoard[i] = character;\n guess = true;\n }\n }\n correctInput = true;\n }\n }\n catch(IndexOutOfBoundsException e){\n System.out.println(\"Select alphabet\");\n correctInput = false;\n }\n return guess;\n }", "public static boolean isCorrectGuess( List<Character> selectedChars, \n \t char guess ) {\n boolean correctGuess = false;\n for( char c : selectedChars ) {\n if( guess == c ) {\n correctGuess = true;\n break;\n }\n }\n return correctGuess;\n }", "public void noteIncorrectGuess(char letter) {\n\t\tguesses += letter;\n\t\tguessesLabel.setLabel(guesses);\n\t\tguessesLabel.setLocation((getWidth() - guessesLabel.getWidth()) / 2, wordLabel.getY() + wordLabel.getHeight()\n\t\t\t\t+ WORD_SPACING);\n\t\tif (guesses.length() == 1)\n\t\t\tbody.add(buildHead());\n\t\tif (guesses.length() == 2)\n\t\t\tbody.add(buildTorso());\n\t\tif (guesses.length() == 3)\n\t\t\tbody.add(buildLeftArm());\n\t\tif (guesses.length() == 4)\n\t\t\tbody.add(buildRightArm());\n\t\tif (guesses.length() == 5)\n\t\t\tbody.add(buildLeftLeg());\n\t\tif (guesses.length() == 6)\n\t\t\tbody.add(buildRightLeg());\n\t\tif (guesses.length() == 7)\n\t\t\tbody.add(buildLeftFoot());\n\t\tif (guesses.length() == 8)\n\t\t\tbody.add(buildRightFoot());\n\t}", "public boolean alreadyGuessed(char guess) {\r\n \t//Convert guess to string, use contains method to check guessesMade ArrayList.\r\n if (guessesMade.contains(String.valueOf(guess))) {\r\n \treturn true;\r\n }\r\n \treturn false;\r\n }", "public boolean pass(String word);", "public void checkWord(int largeTile) {\r\n String guess = \"\";\r\n int length = 0;\r\n// int score = 0;\r\n boolean correct = false; // flag for whether the word is valid\r\n\r\n // get word string based on which button was pressed\r\n switch(largeTile) {\r\n case 1:\r\n guess = tile1.toString();\r\n break;\r\n case 2:\r\n guess = tile2.toString();\r\n break;\r\n case 3:\r\n guess = tile3.toString();\r\n break;\r\n case 4:\r\n guess = tile4.toString();\r\n break;\r\n case 5:\r\n guess = tile5.toString();\r\n break;\r\n case 6:\r\n guess = tile6.toString();\r\n break;\r\n case 7:\r\n guess = tile7.toString();\r\n break;\r\n case 8:\r\n guess = tile8.toString();\r\n break;\r\n case 9:\r\n guess = tile9.toString();\r\n break;\r\n default:\r\n guess = \"\";\r\n }\r\n length = guess.length();\r\n\r\n // check if valid word\r\n if (length >= 3) { // check if the length of the word is >= 3\r\n if (dictionary.contains(guess.toLowerCase())) { // check if the dictionary contains the word\r\n correct = true; // true if found\r\n\r\n stringSubmitted[largeTile-1] = 1; // word has been submitted for this tile\r\n\r\n // set amount of points\r\n int bonus = 0;\r\n for (char c : guess.toCharArray()) {\r\n if (c == 'E' || c == 'A' || c == 'I' || c == 'O' || c == 'N' || c == 'R' || c == 'T' || c == 'L' || c == 'S') {\r\n bonus += 1;\r\n } else if (c == 'D' || c == 'G') {\r\n bonus += 2;\r\n } else if (c == 'B' || c == 'C' || c == 'M' || c == 'P') {\r\n bonus += 3;\r\n } else if (c == 'F' || c == 'H' || c == 'V' || c == 'W' || c == 'Y') {\r\n bonus += 4;\r\n } else if (c == 'K') {\r\n bonus += 5;\r\n } else if (c == 'J' || c == 'X') {\r\n bonus += 8;\r\n } else {\r\n bonus += 10;\r\n }\r\n }\r\n if (length == 9 && phase == 1) bonus += length; // bonus for 9 letter word during phase 1\r\n pointsScore += bonus; // calculate total score\r\n scoreBoard.setText(\"\"+pointsScore); // set scoreboard to total\r\n\r\n // save longest word information\r\n if (length > longestLength) {\r\n longestLength = length;\r\n longestWord = guess;\r\n longestWordScore = bonus;\r\n }\r\n\r\n // mark as submitted in tile tacker array\r\n submittedTracker[largeTile-1] = true;\r\n int done = 0;\r\n for (boolean b : submittedTracker) {\r\n if (b == true) done++;\r\n }\r\n// if (done == 9) {\r\n// timer.cancel();\r\n// gameOver();\r\n// }\r\n }\r\n } else {\r\n correct = false; // false if not found\r\n pointsScore -= 3; // penalize for submitting an incorrect word\r\n scoreBoard.setText(\"\"+pointsScore); // set scoreboard to total\r\n }\r\n\r\n // if word is in the dictionary\r\n if (correct) {\r\n mSoundPool.play(mSoundCorrect, mVolume, mVolume, 1, 0, 1f); // chime when correct\r\n adapter.add(guess); // add to list\r\n// Log.e(\"word\", String.valueOf(tile1));\r\n\r\n // set unused tiles to be blank\r\n for (int small = 0; small < 9; small++) { // go through entire list\r\n// Log.e(\"tile # \", Integer.toString(small));\r\n// Log.e(\"selected? \", allTilesInt[largeTile-1][small] == 0 ? \"no\" : \"yes\");\r\n if (allTilesInt[largeTile-1][small] == 0) { // if the tile was not selected\r\n buttonList[largeTile-1][small].setText(\"\"); // remove the letter from the button\r\n buttonList[largeTile-1][small].setClickable(false);\r\n }\r\n }\r\n\r\n // if word was not in the dictionary\r\n } else {\r\n mSoundPool.play(mSoundIncorrect, mVolume, mVolume, 1, 0, 1f); // quack when incorrect\r\n }\r\n }", "public void guessSentence() {\n System.out.println(\"Please guess a letter in the secret word.\");\n }", "@Test\n public void testWordGuessArray() {\n\n // If I make a new word\n Word word = new Word(\"Llama\", 10);\n\n // The guess array should be initialized to all '_' characters\n // but be of the same length as the number of letters in the word\n Assert.assertEquals(\"Llama\".length(), word.getGuesses().length);\n Assert.assertEquals('_', word.getGuesses()[0]);\n Assert.assertEquals('_', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // If I guess the letter L (uppercase)\n // it should return true, because 'Llama' contains 2 Ls.\n Assert.assertTrue(word.guessLetter('L'));\n\n // It should update the 'guess' character array\n // to have all L's revealed regardless of casing\n // all other letters should stay hidden as '_'\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // If I guess an M, it should also be true\n Assert.assertTrue(word.guessLetter('M'));\n\n // and now the m should be revealed\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // And finally an A\n Assert.assertTrue(word.guessLetter('A'));\n\n // The whole word should be revealed\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('a', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('a', word.getGuesses()[4]);\n\n // If I guess a bunch of other letters, they should all return false\n // because the word has already been completed, and revealed\n Assert.assertFalse(word.guessLetter('l'));\n Assert.assertFalse(word.guessLetter('m'));\n Assert.assertFalse(word.guessLetter('a'));\n Assert.assertFalse(word.guessLetter('c'));\n Assert.assertFalse(word.guessLetter('v'));\n Assert.assertFalse(word.guessLetter('b'));\n\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('a', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('a', word.getGuesses()[4]);\n\n }", "public void noteIncorrectGuess(char letter) \n\t{ \n\t choosePart(i);\n\t i++;\n\t wrong+=letter;\n\t wrongLabel.setLabel(wrong);\n\t add(wrongLabel);\n\t}", "private char getGuessLetter(Scanner sc) {\n\n\t\t// the array format of the input\n\t\tchar[] ch;\n\t\twhile (true) {\n\t\t\t// ask for the input\n\t\t\tSystem.out.println(\"Please enter one letter to guess:\");\n\t\t\tSystem.out.print(\">>>\");\n\t\t\t// reading the input\n\t\t\tString input = sc.nextLine();\n\t\t\tch = input.toCharArray();\n\t\t\t// if the input is a allowed letter\n\t\t\tif(ch.length == 1\n\t\t\t\t&&(dr.isAllowed(ch[0]) || Character.isUpperCase(ch[0]))) {\n\t\t\t\t// break the loop\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Please enter an allowed letter.\");\n\t\t\t}\n\t\t}\n\t\t//return the lower-cased version of the letter\n\t\treturn Character.toLowerCase(ch[0]);\n\t}", "private void challengeHandler() {\n String word = txtWord.getText().toString();\n String nextWord;\n if (word.length() >= 4 && dictionary.isWord(word)){\n endGame(true, word + \" is a valid word\");\n } else {\n nextWord = dictionary.getAnyWordStartingWith(word);\n if (nextWord != null){\n endGame(false, word + \" is a prefix of word \\\"\" + nextWord + \"\\\"\");\n } else {\n endGame(true, word + \" is not a prefix of any word\");\n }\n }\n }", "public boolean checkRightWord(EditText answerWord){\n \t\t return answerWord.getText().toString().equalsIgnoreCase(currentWord);\n \t }", "private boolean checkKey(char k)\n {\n \tint index = word.indexOf(k);\n \tif (index == -1)\n \t{\n \t\t//k doesn't exist in word\n \t\tguess_number--;\n \t\treturn false;\n \t}\n \telse\n \t{\n \t\t//k exist in the word\n \t\twhile (index != -1)\n \t\t{\n \t\t\t//update mask\n \t\t\tmask = mask.substring(0, index)+k+mask.substring(index+1);\n \t\t\t//update index\n \t\t\tindex = word.indexOf(k, index + 1);\n \t\t}\n \t\treturn true;\n \t}\n \t\n }", "public boolean hasWon() {\n\t\tfor (int i = 0; i < wordToGuess.length(); i++) {\n\t\t\tchar letter = wordToGuess.charAt(i);\n\t\t\tif (!guessesMade.contains(letter)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private void checkAnswer() {\n this.convertAnswerString();\n\n StringBuilder answer = new StringBuilder(currentAnswer);\n\n if (answer.toString().equals(selectedWord)) {\n gameOver = true;\n Toast toast = Toast.makeText(getApplicationContext(), \"You Win!!!\", Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (currentAnswer.length() == this.selectedLength && !gameOver) {\n Toast toast = Toast.makeText(getApplicationContext(), \"Sorry! Wrong Answer!\", Toast.LENGTH_LONG);\n toast.show();\n }\n }", "public boolean gameWon(){\n\t\tArrayList<Character> checkLetter = new ArrayList<Character>();\r\n\t\t\r\n\t\tfor(int i=0; i<correctList.size(); i++){\r\n\t\t\tfor(int j=0; j<gameLetter.length; j++){\r\n\t\t\t\tif(correctList.get(i)==gameLetter[j])\r\n\t\t\t\t\tcheckLetter.add(gameLetter[j]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(checkLetter.size()==gameLetter.length)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}", "public char askForLetter() {\n\t\tchar guessLetter;\n\t\tboolean validInput = false;\n\t\twhile (validInput == false) {\n\t\t\tSystem.out.println(\"Enter a letter: \");\n\t\t\tString guessLine = keyboard.nextLine();\n\t\t\tif (guessLine.length() == 0 || guessLine.length() >= 2) {\n\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tguessLine = guessLine.toLowerCase();\n\t\t\t\tguessLetter = guessLine.charAt(0);\n\t\t\t\tif(guessLetter >= 'a' && guessLetter <= 'z') {\n\t\t\t\t\tSystem.out.println(\"You entered: \" + guessLetter);\n\t\t\t\t\tvalidInput = true;\n\t\t\t\t\treturn(guessLetter);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn(' ');\n\t\t\n\t\t\n\t}", "private String readGuess() {\n\t\tString unsafeGuess = readLine(\"Your Guess: \").trim().toUpperCase();\n\t\tif (!unsafeGuess.matches(\"[a-zA-z]\") || unsafeGuess.length() != 1) {\n\t\t\tprintln(\"Please enter a single letter.\");\n\t\t\treturn readGuess();\n\t\t} else {\n\t\t\treturn unsafeGuess.toUpperCase();\n\t\t}\n\t}", "public void noteIncorrectGuess(char letter) {\n\t\tupdateIncorrectList(letter);\n\t\tswitch (incorrectGuess.length()) {\n\t\t\tcase 1: \n\t\t\t\tdrawHead();\n\t\t\t\tbreak;\n\t\t\tcase 2: \n\t\t\t\tdrawBody();\n\t\t\t\tbreak;\t\n\t\t\tcase 3: \n\t\t\t\tdrawLeftArm();\n\t\t\t\tbreak;\t\n\t\t\tcase 4: \n\t\t\t\tdrawRightArm();\n\t\t\t\tbreak;\t\n\t\t\tcase 5: \n\t\t\t\tdrawLeftLeg();\n\t\t\t\tbreak;\t\n\t\t\tcase 6: \n\t\t\t\tdrawRightLeg();\n\t\t\t\tbreak;\t\n\t\t\tcase 7: \n\t\t\t\tdrawLeftFoot();\n\t\t\t\tbreak;\t\n\t\t\tcase 8: \n\t\t\t\tdrawRightFoot();\n\t\t\t\tbreak;\t\n\t\t\tdefault: throw new ErrorException(\"getWord: Illegal index\");\n\t\t}\n\t}", "protected boolean guessAnswer(String answer) {\n if (answer.equals(correctAnswer)) {\n currentScore++;\n nextQuestion();\n return true;\n } else {\n nextQuestion();\n return false;\n }\n }", "public void GuessFullWordEvent() {\n\t\t\n\t\tString finalGuess = AnswerBox.getText();\n\t\tfinalGuess = finalGuess.toLowerCase(); // the answer is not case sensitive\n\n\t\t//if the final guess is the correct word or not\n\t\tif(finalGuess.equals(mysteryWord))\n\t\t\tGameWin();\n\t\telse\n\t\t\tGameOver();\n\t}", "public boolean isWordFullyGuessed()\n {\n for(int i=0; i<showChar.length; i++)\n {\n if(!showChar[i]) return false;\n }\n\n return true;\n }", "public static boolean checkAnswer(String word, String answer) {\r\n\t\treturn word.equals(answer.toLowerCase());\r\n\t}", "public void onButtonClicked(){\n\t\t\n\t\t//Gets the guess from text box \n\t\tString guess = AnswerBox.getText();\n\t\t//converts string to lower case\n\t\tguess = guess.toLowerCase();\n\t\t//protects against empty textbox, long strings, and non alphabet characters\n\t\tif (guess != \"\" && guess.length() == 1 && guess.charAt(0) >='a' && guess.charAt(0) <= 'z')\n\t\t{\n\t\t\t//convert String to char\n\t\t\tchar myGuess = guess.charAt(0);\n\t\t\t//test to see if letter is in secretWord\n\t\t\tif(guessIsRight(mysteryWord,myGuess)){ \n\t\t\t\n\t\t\t\t//change _ to letter if player made correct guess\n\t\t\t\tupdateWordState(mysteryWord,myGuess); \n\n\t\t\t\tif (wordState.compareTo(mysteryWord)==0) {\n\t\t\t\t\tGameWin();} \n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//update hangman picture \n\t\t\t\t//make part of hangmanPicture visible if player made incorrect guess\n\t\t\t\t\n\t\t\t\t// add missed letters to incorrect letters bank\n\t\t\t\taddLettersGuessed(myGuess); \n\t\t\t\t\n\t\t\t\tnumGuesses--;\n\t\t\t\tmakeVisible(numGuesses);\n\t\t\t}\n\t\t\t\n\t\t\tAnswerBox.requestFocus(); // set focus on textbox \n\t\t}\n\t\telse\n\t\t{\n\t\t\t// print a message if the user didn't write a letter\n\t\t\tAnswerBox.setText(\"Your guess must be a single letter\");\n\t\t\tAnswerBox.requestFocus(); \n\t\t}\n\t}", "public void handleGuess(String s) {\n\n if (!word.contains(s)) {\n incorrectGuesses++;\n wrongList.add(s);\n if (incorrectGuesses == 8) {\n gameOver();\n }\n } else {\n correctList.add(s);\n updateWord(s.charAt(0));\n }\n }", "public void run() {\n \t canvas.reset();\n \t rg = RandomGenerator.getInstance();\n int index = rg.nextInt(0,9);\n hang = new HangmanLexicon();\n \n //word = hang.getWord(index);\n try{\n BufferedReader br = new BufferedReader(new FileReader(\"HangmanLexicon.txt\"));\n \n while(true){\n \t String line = br.readLine();\n \t if(line == null)\n \t\t continue;\n \t ArrayList<String> kt = new ArrayList<String>();\n \t \n \t \n \t \n }\n for(int k = 0; k < word.length();k++){\n \t t = t + \"-\";\n \t \n }\n \n \twhile(counter >=0){\n \t\n \tsetup();\n \t\n \t\n \t\n \t\n \t}\n \t\n\t}\n\n \n private void setup(){\n \t\n \t\n \t\n \t\n \n int k = word.length();\n \n int i = 65;\n int temp = rg.nextInt(0,25);\n \tchar c = (char)(i + temp);\n \tboolean presentcharacter = false;\n \n \tcanvas.displayWord(t);\n \tSystem.out.println(\"you have only \" + counter + \" cases left\");\n System.out.println(\"Your Guess \"+ c);\n for(int j = 0; j<word.length();j++){\n \t\t\n \t\tif(word.charAt(j) == c){\n \t\t\tpresentcharacter = true;\n \t\t\tk--;\n \t\t}\n \t}\n \t\n \t\n \n \tif(presentcharacter){\n \t\tfor(int num = 0; num<word.length();num++){\n \t\t\tif(word.charAt(num) == c){\n \t\t\t\tSystem.out.println(\"you guessed it right\");\n \t\t\t\tt = t.substring(0,num) +c +t.substring(num+1,t.length());\n \t\t\t \t\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t\t\n \t\t\n \t}\n \t\n \t\tcanvas.noteIncorrectGuess(c, counter);\n \t\t\n \t\t\n \t\n \tcounter--;\n \n \n \t if(k == 0){\n \t \t\n \t \tSystem.out.println(\"you have won this game\");\n \t \tSystem.out.println(\"Congratulations\");\n return; \t \t\n \t \t\n \t \t\n \t }\n \n }\n \n \n\n private String t = \"\" ;\n public String word;\npublic int counter = 8;\n private HangmanLexicon hang;\n private RandomGenerator rg;\n}", "public void correctGuess(String s){\n\t\t \tif(rightAnswer==s){\n\t\t \t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\tGamesCommon.displayEndGame(GameStatus.Won, this,p);\n\t\t\t\t\t \n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t \t}else{\n\t\t \t\ttry {\n\t\t \t\t\tGamesCommon.displayEndGame(GameStatus.Lost, this,p);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t \t}\n\t }", "private boolean gameOver()\n {\n \t//lose case\n \tif (guess_number == 0)\n \t{\n \t\twin = false;\n \t\treturn true;\n \t}\n \t//win case\n \tif (mask.compareTo(word) == 0)\n \t{\n \t\twin = true;\n \t\treturn true;\n \t}\n \t\n \treturn false;\n }", "public static void hangMan(Scanner input, Questions thisSession){\n hangMan1();\n Random rand=new Random();\n int randomNumber=rand.nextInt(thisSession.getLength());\n String userInput;\n byte lives=6,givenLetterscontrol=0;\n boolean letterIsInAnswer=false,playerWon=false;\n System.out.println(\"Welcome. Please type just one letter and press enter. You have 5 lives to guess the sentence. The questions is:\\n\"+\n thisSession.getQuestion(randomNumber));\n String answerSentence=(thisSession.getAnswer(randomNumber));\n String[] sentence=new String[answerSentence.length()];\n String [] lowDiagonal=new String[answerSentence.length()], givenLetter=new String[lives];\n sentence=answerSentence.split(\"\");\n for (int i=0;i<sentence.length;i++){\n if (sentence[i].equals(\" \")){\n lowDiagonal[i]=\" \";\n }else{ \n lowDiagonal[i]=\"_\";\n }\n System.out.print(lowDiagonal[i]+ \" \");\n }\n do{\n System.out.println(\"\\nWrite a letter and press enter to send the letter\");\n userInput=input.nextLine();\n userInput=userInput.toLowerCase();\n letterIsInAnswer=false;\n if (givenLetterscontrol>0){ //checks if user input has already been given.\n for (int i=0;i<6;i++){\n if (givenLetter[i].equals(userInput)){\n do{\n System.out.println(\"That letter has already been given. Please write another one.\");\n userInput=input.nextLine();\n }while (givenLetter[i].equals(userInput));\n }\n }\n }\n givenLetter[givenLetterscontrol]=userInput;\n for (int i=0;i<sentence.length;i++){ //checks if the letter is in the answer.\n if (sentence[i].equals(userInput)){\n letterIsInAnswer=true;\n lowDiagonal[i]=userInput;\n }\n }\n if (letterIsInAnswer==false){ //If letter was not in the answer, a life is lost.\n lives--;\n switch(lives){\n case 5:\n hangMan2();\n break;\n case 4:\n hangMan3();\n break;\n case 3:\n hangMan4();\n break; \n case 2:\n hangMan5();\n break;\n case 1:\n hangMan6();\n break;\n case 0:\n hangMan7();\n youLost();\n lives=-1;\n break;\n }\n System.out.println(\"That letter is not in the answer.\");\n }\n if (letterIsInAnswer){\n if (Arrays.equals(lowDiagonal,sentence)){\n playerWon=true;\n for (int i=0;i<sentence.length;i++){ \n System.out.print(lowDiagonal[i]+ \" \");\n } \n youWon();\n }else{\n for (int i=0;i<sentence.length;i++){ \n System.out.print(lowDiagonal[i]+ \" \");\n } \n }\n }\n\n }while (lives>=0 && playerWon==false);\n System.out.println(\"Thanks for playing! Returning to main menu...\");\n }", "public static int checkChar(char guessChar, String guessWord) {\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < guessWord.length(); i++) {\n\t\t\tif(guessWord.charAt(i) == guessChar) {\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\treturn sum;\n\t}", "public static void guessWords(String guess) {\n String newEmptyString = \"\";\n for (int i = 0; i < CategorySelector.word.length(); i++) { // Grabbing word\n if (CategorySelector.word.charAt(i) == guess.charAt(0)) {\n newEmptyString += guess.charAt(0);\n } else if (emptyString.charAt(i) != '_') {\n newEmptyString += CategorySelector.word.charAt(i);\n } else {\n newEmptyString += \"_\";\n }\n }\n\n if (emptyString.equals(newEmptyString)) {\n count++;\n paintHangman();\n } else {\n emptyString = newEmptyString;\n }\n if (emptyString.equals(CategorySelector.word)) {\n System.out.println(\"Correct! You win! The word was \" + CategorySelector.word);\n }\n }", "public boolean isCorrect(String str);", "@Override\n public boolean onKeyUp(int keyCode, KeyEvent event) {\n\n //if(afterCheck==false) {\n //get char pressed by user from keyboard\n char keyPressed = (char) event.getUnicodeChar();\n if(userTurn==true) {\n if (afterCheck == false) {\n //check whether character pressed is valid i.e between a to z\n if (Character.isLetter(keyPressed)) {\n currentWord = ghostT.getText().toString();\n currentWord += keyPressed;\n ghostT.setText(currentWord);\n\n status.setText(COMPUTER_TURN);\n //set Computer turn\n userTurn = false;\n // challenge.setEnabled(false);\n handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n //Do something after 2seconds\n //invoke computerturn\n computerTurn();\n }\n }, 2000);\n //invoke computerturn\n //computerTurn();\n\n //check validity for user input\n /**if (dictionary.isWord(currentWord)) {\n status.setText(\"VALID WORD\");\n } else\n status.setText(\"INVALID WORD\");\n return true;\n **/\n return true;\n\n } else {\n Toast.makeText(this, \"Invalid INPUT\", Toast.LENGTH_SHORT).show();\n return super.onKeyUp(keyCode, event);\n }\n }\n }\n\n return false;\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\r\n char ch, answer = 'K';\r\n System.out.println(\"I'm thinking of a letter between A and Z\");\r\n System.out.println(\"Can you guess it?\");\r\n \r\n ch = scan.next().charAt(0); //read a char from the keyboard\r\n \r\n //determine if they typed the same letter\r\n if (ch == answer){\r\n System.out.println(\"**Right!**\"); \r\n } else { \r\n //else they get the wrong message\r\n //use this if to see if they guessed to high or else too low\r\n if (ch < answer){\r\n System.out.println(\"Sorry, you're too high!\");\r\n } else {\r\n System.out.println(\"Sorry, you're too low!\");\r\n } //end of if/else block\r\n }// end of if/else block\r\n \r\n }", "public boolean isWordGuessed() {\n\t for(Letter l : letters) {\n\t if(!l.getStatus())\n\t return false;\n\t }\n\t this.displayedWord.setStatus(true);\n\t return true;\n\t}", "private static boolean letterDifferByOne(String word1, String word2) {\n if (word1.length() != word2.length()) {\n return false;\n }\n\n int differenceCount = 0;\n for (int i = 0; i < word1.length(); i++) {\n if (word1.charAt(i) != word2.charAt(i)) {\n differenceCount++;\n }\n }\n return (differenceCount == 1);\n }", "public static void main( String[] args) \r\n {\n Scanner scan; \r\n HangMan game; \r\n String userInput; \r\n String letter; \r\n int errorValue;\r\n boolean temp;\r\n \r\n //Initialize the variables (other variables will be given values as program proceeds) \r\n scan = new Scanner( System.in); \r\n temp = true; \r\n \r\n //Create the user-interface and play the game \r\n while( temp ) \r\n { \r\n game = new HangMan(); \r\n System.out.println( \"Welcome to Hang-man game\"); \r\n System.out.println( \"You have \" + 6 + \" tries\"); \r\n System.out.println( \"Enter any button except q to proceed, q to quit\"); \r\n userInput = scan.next(); \r\n \r\n //Outer loop for re-playing of the game\r\n if( !userInput.equals( \"q\")) \r\n { \r\n //Inner loop for the simulation of the game \r\n while( !game.isGameOver() && !game.hasLost()) \r\n { \r\n System.out.println( \"The word that you're looking for: \" + game.knownSoFar); \r\n System.out.println( \"Number of tries left : \" + (6 - game.numberOfIncorrectTries)); \r\n System.out.println( \"Letters in the english alphabet: \" + game.allLetters); \r\n System.out.println( \"Used letters: \" + game.usedLetters); \r\n System.out.println( \"Please enter a letter\");\r\n letter = scan.next(); \r\n errorValue = game.tryThis( letter.charAt(0) /* or just letter itself (depending on the implementation of the method)*/); \r\n \r\n if( errorValue == -1) // Invalid input \r\n {\r\n System.out.println( \"Please enter a valid letter\"); \r\n }\r\n else if( errorValue == -2) // Repeated letter \r\n {\r\n System.out.println( \"You entered this letter before, please enter a different letter\"); \r\n }\r\n else if( errorValue == 1) // Correct answer 1 repetition \r\n {\r\n System.out.println( \"The letter you entered is repeated 1 time\"); \r\n }\r\n else if( errorValue > 1) // Correct answer multiple representation\r\n {\r\n System.out.println( \"The letter you entered is repeated \" + errorValue + \" times\"); \r\n }\r\n else if( errorValue == 0) // Wrong answer \r\n {\r\n System.out.println( \"Unfortunately the letter you entered is not in the word\"); \r\n }\r\n else if( errorValue == -3) // Game Over \r\n {\r\n System.out.println( \"Game Over\"); \r\n }\r\n if( game.hasLost()) \r\n {\r\n System.out.println( \"Unfortunately, you lost\"); // Implementing a method showing the secret word would be nice \r\n }\r\n else if( game.isGameOver()) \r\n {\r\n System.out.println( \"You won, congratulations\"); \r\n }\r\n } \r\n } \r\n \r\n else \r\n { \r\n temp = false; \r\n System.out.println( \"Bye - bye, thanks for playing\"); \r\n } \r\n } \r\n }", "private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }", "private void computerTurn() {\n String text = txtWord.getText().toString();\n String nextWord;\n if (text.length() >= 4 && dictionary.isWord(text)){\n endGame(false, text + \" is a valid word\");\n return;\n } else {\n nextWord = dictionary.getGoodWordStartingWith(text);\n if (nextWord == null){\n endGame(false, text + \" is not a prefix of any word\");\n return;\n } else {\n addTextToGame(nextWord.charAt(text.length()));\n }\n }\n userTurn = true;\n txtLabel.setText(USER_TURN);\n }", "public void addLettersGuessed(char letter)\n\t {\n\t\t\n\t\t if (mysteryWord.indexOf(letter) == -1)\n\t\t {\n\t\t\t lettersGuessed += letter + \" \"; \n\t\t }\n\t\t \n\t\t missedLetters.setText(lettersGuessed);\n\t\t \n\t }", "public void rightGuess()\r\n\t{\r\n\t\tif(userWon())\r\n\t\t{\r\n\t\t\tSystem.out.println(PLAYER_WIN);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"good job! you've correctly guessed the panel \\n would you like to guess again? if so enter yes, if you would like to add your tile to your code, reply no\\n\\n\");\r\n\t\tString answer = sc.next();\r\n\t\tif(answer.compareTo(\"yes\") == 0 || answer.compareTo(\"Yes\") == 0)\r\n\t\t{\r\n\t\t\tuserTurn(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(userRanPan.getValue() == -1)\r\n\t\t\t\tnewGame.getUserHand().addDash(false,userRanPan);\r\n\t\t\telse\r\n\t\t\t\tnewGame.getUserHand().addPanel(userRanPan,false);\r\n\r\n\t\t\tuserGuess.clear();\r\n\t\t\tslide(previousGuess,userRanPan);\r\n\r\n\t\t\tif(userWon() == false)\r\n\t\t\t\tcompTurn(false);\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(PLAYER_WIN);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//foo.repaint();\r\n\t}", "public void updateGuessedWrongLetters(char inputLetter) {\n // variable to check if the guessed letter is entered before or not , if found in array inputLetters\n\n boolean isFound = false;\n int wrongLetters = this.getWrongLettersCount();//variable wrongLetters to keep updating wrong trials\n //loop in the array to check whether the new guessed letter is stored before.\n for (int i = 0; i <= wrongLetters; i++) {\n if (inputLetters[i] == inputLetter) {\n isFound = true;\n break; // break the loop id the new guessed letter found in the inputLe tters array\n }\n }\n\n if (!isFound) { //adding new guessed letter in inputLetters array\n inputLetters[wrongLetters] = inputLetter;\n wrongLetters++;\n this.setWrongLettersCount(wrongLetters); //updating the wrongLettersCount after counting the new wrong trial\n } else {\n //displaying message to warn the user in case he/she guessed wrong letter twice\n System.out.println(\"You have guessed \" + inputLetter + \" before try another letter!\");\n }\n\n }", "public test(){\r\n while(true){\r\n int num = (int)(Math.random()*5); // this is hard coded, you should use words.length instead of 5\r\n String str = words[num];\r\n int n = Guess(str);\r\n System.out.println(\"The word is \"+ str +\".You missed \"+n+\"times.\\n\");\r\n System.out.println(\"Do you want to guess for another word? Entry y or n\");\r\n String s = input.next();\r\n if(s.equals(\"n\")){\r\n break;\r\n }\r\n System.out.println(\"Game over!\");\r\n }\r\n }", "public void checkWord(String word, PlayerHandler playerHandler) {\n\n StringInputScanner ask = new StringInputScanner();\n ask.setMessage(GFXGenerator.drawRope(score, teams[0], teams[1]) + word + \" = ?? \\n\");\n\n if (playerHandler.getPrompt().getUserInput(ask).equals(word)) {\n updateScore(playerHandler);\n }\n }", "public void lPressed(View v) {\n //user has pressed a letter to guess\n\n String ltr=((TextView)v).getText().toString();\n char letterChar = ltr.charAt(0);\n\n v.setEnabled(false);\n // v.setBackgroundResource(R.drawable.l_down);\n\n int hang=0;\n int k=0;\n while(k!=currentWord.length()){\n if(currentWord.charAt(k)==letterChar){\n hang=1;\n numCorrect++;\n cViews[k].setTextColor(Color.RED); //change color to red.\n }\n k++;\n }\n\n String t=currentWord;\n if(hang==1){\n if(numCorrect==numChars){\n\n int numLetters = letters.getChildCount();\n for (int i = 0; i < numLetters; i++) {\n letters.getChildAt(i).setEnabled(false);\n }\n play();\n //dialog box that you won\n AlertDialog.Builder wins = new AlertDialog.Builder(this);\n wins.setTitle(\"CONGRATS !!!\");\n wins.setMessage(\"You win!\\n\\nThe answer was : \" + t);\n wins.setPositiveButton(\"Play Again\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n MainActivity.this.play();\n }\n });\n wins.setNegativeButton(\"Exit\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n MainActivity.this.finish();\n }\n });\n wins.show();\n }\n\n }\n else if (currentPart < numParts) {\n\n if(currentPart==1){ //adding hint 1\n\n switch(g) {\n case 0:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Have you heard of CrANBERRies?\", Toast.LENGTH_SHORT).show();\n break;\n case 1:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Also known as city of David\", Toast.LENGTH_SHORT).show();\n break;\n case 2:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Dalai Lama is bad (No offence) \", Toast.LENGTH_SHORT).show();\n break;\n case 3:\n Toast.makeText(getApplicationContext(), \"Hint 1 : WELL ! A makING TON\", Toast.LENGTH_SHORT).show();\n break;\n case 4:\n Toast.makeText(getApplicationContext(), \"Hint 1 : According to sources, Hamsters live near dam\", Toast.LENGTH_SHORT).show();\n break;\n case 5:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Student wish pumkin had fallen !!!\", Toast.LENGTH_SHORT).show();\n break;\n case 6:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Think this anwer relatively !!\", Toast.LENGTH_SHORT).show();\n break;\n case 7:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Nearnight is antonym of ...\", Toast.LENGTH_SHORT).show();\n break;\n case 8:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Eureka !!!\", Toast.LENGTH_SHORT).show();\n break;\n case 9:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Did you try pressing a button other than an alphabet !!!\", Toast.LENGTH_SHORT).show();\n break;\n case 10:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Windowless !!!\", Toast.LENGTH_SHORT).show();\n break;\n case 11:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Dora is fed up with Windows !!\", Toast.LENGTH_SHORT).show();\n break;\n case 12:\n Toast.makeText(getApplicationContext(), \"Hint 1 : DEBI is AN eclyomologocalysticalisyisac.\", Toast.LENGTH_SHORT).show();\n break;\n case 13:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Short form of 'generation too' !!!\", Toast.LENGTH_SHORT).show();\n break;\n case 14:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Answer also matches with a Hindu goddess.\", Toast.LENGTH_SHORT).show();\n break;\n case 15:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Beth bought a MAC !!\", Toast.LENGTH_SHORT).show();\n break;\n case 16:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Let hamburger be eaten by Prince of Denmark !!\", Toast.LENGTH_SHORT).show();\n break;\n case 17:\n Toast.makeText(getApplicationContext(), \"Hint 1 : King of vampires !!\", Toast.LENGTH_SHORT).show();\n break;\n case 18:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Oath should be made as Hello is made !!!\", Toast.LENGTH_SHORT).show();\n break;\n case 19:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Are you hungry. Then don't mock others !!!\", Toast.LENGTH_SHORT).show();\n break;\n case 20:\n Toast.makeText(getApplicationContext(), \"Hint 1 : He was assassinated\", Toast.LENGTH_SHORT).show();\n break;\n case 21:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Also known as Uncle Abe !!!\", Toast.LENGTH_SHORT).show();\n break;\n case 22:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Is your BeltLoose?\", Toast.LENGTH_SHORT).show();\n break;\n case 23:\n Toast.makeText(getApplicationContext(), \"Hint 1 : He was clever-and..he drank a lot of watel !!!\", Toast.LENGTH_SHORT).show();\n break;\n\n case 24:\n Toast.makeText(getApplicationContext(), \"Hint 1 : Also known as Barry !!!\", Toast.LENGTH_SHORT).show();\n break;\n\n\n }\n arr[currentPart].setVisibility(View.VISIBLE);\n currentPart++;\n }\n\n\n\n\n else if(currentPart==3){ //displaying hint 2\n if(g/5==0)\n {\n Toast.makeText(getApplicationContext(), \"Hint 2 : A capital city!\", Toast.LENGTH_SHORT).show();\n }\n else if(g/5==1)\n {\n Toast.makeText(getApplicationContext(), \"Hint 2 : A Scientist!\", Toast.LENGTH_SHORT).show();\n }\n else if(g/5==2)\n {\n Toast.makeText(getApplicationContext(), \"Hint 2 : A Linux system!\", Toast.LENGTH_SHORT).show();\n }\n else if(g/5==3)\n {\n Toast.makeText(getApplicationContext(), \"Hint 2 : A novel!\", Toast.LENGTH_SHORT).show();\n }\n else if(g/5==4)\n {\n Toast.makeText(getApplicationContext(), \"Hint 2 : An American president!\", Toast.LENGTH_SHORT).show();\n }\n arr[currentPart].setVisibility(View.VISIBLE);\n currentPart++;\n }\n else {\n arr[currentPart].setVisibility(View.VISIBLE);\n currentPart++;\n }\n }\n else{\n int numLetters = letters.getChildCount();\n for (int i = 0; i < numLetters; i++) {\n letters.getChildAt(i).setEnabled(false);\n }\n play();\n //dialog box displaying when u lose\n AlertDialog.Builder lose = new AlertDialog.Builder(this);\n lose.setTitle(\"TRY AGAIN\");\n lose.setMessage(\"You lose!\\n\\nThe answer was : \"+t);\n lose.setPositiveButton(\"Play Again\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n MainActivity.this.play();\n }});\n\n lose.setNegativeButton(\"Exit\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n MainActivity.this.finish();\n }});\n\n lose.show();\n }\n\n }", "abstract int nextTry(String guess);", "public boolean alreadyGuessed(char guess) {\r\n return this.guesses.contains(guess);\r\n }", "private boolean checkWord() {\n \tboolean bl = false;\n \tfor (int i = 0; i < word.length(); i++) {\n \t\tif (letter == word.charAt(i) && list[i] != true) {\n \t\t\tlist[i] = true;\n \t\t\tnumberOfSymbols++;\n \t\t\tbl = true;\n \t\t}\n \t}\n \treturn bl;\n }", "static boolean isValidWord(String word){\n\t\tword = word.toLowerCase();\n\t\tchar check;\n\t\tfor(int i=0; i<word.length(); i++){\n\t\t\tcheck = word.charAt(i);\n\t\t\tif((check<97 || check>122)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean isWordGuessed( String word )\n\t{\n\t\tfor( int i = 0; i < entry.getLinkedWords().size(); i++ )\n\t\t\tif( entry.getLinkedWords().elementAt(i).equals(word) )\n\t\t\t\t\treturn wordGuessed[i];\n\n\t\treturn false;\n\t}", "public boolean checkAnswer(String userInput) {\n\n\t\tList<String> possibleAnswers = getAnswersAsList();\n\n\t\t// check if the first word is a or the and remove it from their answer.\n\t\tString output = \"\";\n\t\tString[] data = userInput.split(\" \");\n\t\tint length = data.length;\n\t\tif (data[0].contentEquals(\"the\") || data[0].equals(\"a\")) {\n\t\t\tfor (int i = 1; i < length; i++) {\n\t\t\t\toutput = output + data[i];\n\t\t\t}\n\t\t} else {\n\t\t\toutput = userInput;\n\t\t}\n\n\t\tuserInput = output.toLowerCase().trim();\n\n\t\tfor (String answer : possibleAnswers) {\n\t\t\tif (userInput.equals(answer.toLowerCase().trim())) {\n\t\t\t\t_attempted = true;\n\t\t\t\t_result = true;\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t_attempted = true;\n\t\t_result = false;\n\t\treturn false;\n\t}", "public static boolean append(String word){\n\t\tboolean x = false;\n\t\tboolean y = false;\n\t\tfor(int i = 33; i <= 126; i++){\n\t\t\tchar c = (char)i;\n\t\t\tx = guessPW(word.concat(Character.toString(c)));\n\t\t\ty = guessPW(Character.toString(c).concat(word));\n\t\t}\n\n\t\tif(x | y){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public char getUserGuess(){\n char letter = '\\u0000';\n if(mGuessEditText.getText().toString().toLowerCase().length() != 0)\n letter = mGuessEditText.getText().toString().toLowerCase().charAt(0);\n return letter;\n }", "public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Welcome to Hangman! If you guess wrong 6 times, then I win\");\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t\r\n\t\tboolean wannaPlay = true;\r\n\t\t\r\n\t\twhile(wannaPlay){\r\n\t\t\t//keep playing\r\n\t\t\tSystem.out.println(\"Alright: Let's play!\");\r\n\t\t\t\r\n\t\t\tHangman game = new Hangman();\r\n\t//\t\tRandom ran = new Random();\r\n\t//\t\tint hintIndex = Math.abs(ran.nextInt() % game.mysteryWord.length());\r\n\t\t\tdo{\r\n\t\t\t\t//Draw the things...\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(game.drawPicture());\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(game.getFormalCurrentGuess());\r\n\t\t\t//\tSystem.out.println(\"hint is : \" + game.mysteryWord.charAt(hintIndex));\r\n\t\t\t\t\r\n\t\t\t\t// Get the guess\r\n\t\t\t\tSystem.out.println(\"Enter a character that in the word\");\r\n\t\t\t\tchar guess = (sc.next().toLowerCase().charAt(0));\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t\t\tif(game.isGuessAlready(guess)){\r\n\t\t\t\t\tSystem.out.println(\"Try again! you've already guessed that character.\");\r\n\t\t\t\t\tguess = sc.next().toLowerCase().charAt(0);\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(game.playGuess(guess)){\r\n\t\t\t\t\tSystem.out.println(\"Great guess. \\n\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"Unfortunately. \\n\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\twhile(!game.gameOver());\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Press 'Y' if you wanna play agian\");\r\n\t\t\tCharacter response = (sc.next().toUpperCase().charAt(0));\r\n\t\t\t\r\n\t\t\twannaPlay = (response == 'Y');\r\n\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "public boolean isPassword(String guess) {\n\t return password.equals(guess);\n }", "public static boolean abrevChecker(String abrv, String word) {\r\n \r\n //our 3rd word make by decrypting the given word\r\n String newWord = \"\";\r\n\r\n //splitting our two inputs into arrayLists and redefining them\r\n char[] firstWord = abrv.toCharArray();\r\n char[] secondWord = word.toCharArray();\r\n\r\n /*a for loop to check if each letter in word is inside the abbrevbation\r\n and creating a new word made of the commmon letters*/\r\n for (char letter : secondWord) {\r\n if (abrv.indexOf(letter) != -1) {\r\n newWord += letter;\r\n }\r\n }\r\n \r\n //check if the abrevation contains any forgein letters that word doesnt have\r\n for (char letter : firstWord) {\r\n if (word.indexOf(letter) == -1) {\r\n return false;\r\n\r\n /*if the abbrevation contains only letters found in word checks if\r\n the abbrevation is inside the new word*/\r\n } else if (word.indexOf(letter) != -1) {\r\n if (newWord.contains(abrv)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n }\r\n\t\treturn false;\r\n }", "public boolean isAccepted1(String word) {\r\n\t return (tranzition_extended(word)==3) ;\r\n\r\n }", "public void guess(char input) {\r\n\t\t\r\n\t\tBoolean correctGuess = false; //Checks for\r\n\t\t\r\n\t\tif(Character.isLowerCase(input)) {\r\n\t\t\tinput = Character.toUpperCase(input);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int x = 0; x < movieName.length; x++) {\r\n\t\t\tif(input == movieName[x]) {\r\n\t\t\t\tmovieGuess[x] = input;\r\n\t\t\t\tcorrectGuess = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(correctGuess == false) {\r\n\t\t\twrongGuess.add(input);\r\n\t\t\twrongAnswerCounter++;\r\n\t\t\tchancesRemaining--;\r\n\t\t\tSystem.out.println(\"Chances Remaining: \" + chancesRemaining);\r\n\t\t\tprintWrongGuess();\r\n\t\t}\r\n\t}", "public final void typedLetter(final char letter) {\n \t\t// currently not locked on to a word\n \t\tif (currWordIndex == -1) {\n \t\t\tfor (int i = 0; i < wordsDisplayed.length; i++) {\n \t\t\t\t// if any of the first character in wordsDisplayed matched letter\n \t\t\t\tif (wordsList[wordsDisplayed[i]].charAt(0) == letter) {\n \t\t\t\t\tcurrWordIndex = i;\n \t\t\t\t\tcurrLetterIndex = 1;\n \t\t\t\t\tsetChanged();\n \t\t\t\t\tnotifyObservers(States.update.HIGHLIGHT);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t}\n \t\t\t// locked on to a word being typed (letter == the index of current letter index in the word)\n \t\t} else if (wordsList[wordsDisplayed[currWordIndex]].charAt(currLetterIndex) == letter) {\n \n \t\t\t// store length of current word\n \t\t\tint wordLen = wordsList[wordsDisplayed[currWordIndex]].length();\n \n \t\t\t// word is completed after final letter is typed\n \t\t\tif ((currLetterIndex + 1) >= wordLen) {\n \t\t\t\tscore += wordLen;\n \t\t\t\tupdateWordsDisplayed();\n \t\t\t\tcurrLetterIndex = -1;\n \t\t\t\tcurrWordIndex = -1;\n \t\t\t} else {\n \t\t\t\tcurrLetterIndex += 1;\n \t\t\t\tsetChanged();\n \t\t\t\tnotifyObservers(States.update.HIGHLIGHT);\n \t\t\t}\n \t\t\treturn;\n \t\t}\n \n \t\t// wrong letter typed\n \t\tsetChanged();\n \t\tnotifyObservers(States.update.WRONG_LETTER);\n \t}", "public static boolean checkchar(String sentence){\n for (int i =0; i < sentence.length(); i++){ //just compare for the whole length \n if (Character.isLetter(sentence.charAt(i))==false){ //if it is not a letter\n return false; //return false\n }\n return true; //otherwise return true\n }\n return true;\n}", "public String displayWord(char letter){\n\t\tString printWord;\r\n\t\t\r\n\t\tif(correctList.contains(letter)){\r\n\t\t\tfor(int i=0; i<display.length; i++){\r\n\t\t\t\tif(gameLetter[i]==letter){\r\n\t\t\t\t\tdisplay[i] = String.valueOf(gameLetter[i]);}\r\n\t\t\t}\r\n\t\t\t StringBuffer sb = new StringBuffer();\r\n\t\t\t for(int i = 0; i < display.length; i++)\r\n\t\t\t { \r\n\t\t\t sb. append(display[i]);\r\n\t\t\t }\r\n\t\t\t printWord = sb.toString();\r\n \t\t}\r\n\t\telse{\r\n\t\t\t StringBuffer sb = new StringBuffer();\r\n\t\t\t for(int i = 0; i < display.length; i++)\r\n\t\t\t { \r\n\t\t\t sb. append(display[i]);\r\n\t\t\t }\r\n\t\t\t printWord = sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tprintHangman();\r\n\t\t\r\n\t\treturn printWord;\r\n\t}", "public boolean accepts(String word) {\n List<Character> chars = word.chars().mapToObj(it -> (char) it).collect(Collectors.toList());\n return this.initialState.traverse(chars);\n }", "private boolean isGrLetter(char ch) {\n /*if ( ( (ch >= 'á') && (ch <= 'ù')) || ( (ch >= 'Á') && (ch <= 'Ù')) ||\n (ch == 'Ü') || (ch == 'Ý') || (ch == 'Þ') || (ch == 'ß') ||\n (ch == 'ü') || (ch == 'ý') || (ch == 'þ') ||\n (ch == '¢') || (ch == '¸') || (ch == '¹') || (ch == 'º') ||\n (ch == '¼') || (ch == '¾') || (ch == '¿') ||\n (ch == 'ú') || (ch == 'û') || (ch == 'À') || (ch == 'à')) {*/\n if ( ( (ch >= '\\u03b1') && (ch <= '\\u03c9')) || ( (ch >= '\\u0391') && (ch <= '\\u03a9')) ||\n \t(ch == '\\u03ac') || (ch == '\\u03ad') || (ch == '\\u03ae') || (ch == '\\u03af') ||\n \t(ch == '\\u03cc') || (ch == '\\u03cd') || (ch == '\\u03ce') ||\n \t(ch == '\\u0386') || (ch == '\\u0388') || (ch == '\\u0389') || (ch == '\\u038a') ||\n \t(ch == '\\u038c') || (ch == '\\u038e') || (ch == '\\u038f') ||\n \t(ch == '\\u03ca') || (ch == '\\u03cb') || (ch == '\\u0390') || (ch == '\\u03b0')) {\n return true;\n } // if\n else {\n return false;\n } // else\n }", "public boolean isAccepted2(String word) {\r\n\t return word.endsWith(\"baa\");\r\n \r\n }", "public static boolean contains(String word, String letter){\n\t\tif (word.indexOf(letter) != -1){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public MyHangmanGame(String secretWord, int numGuesses, String LetterHistory){\n OriginSecretWord = secretWord;\n GuessRemainingNum = numGuesses;\n LetterLeftNum = secretWord.length();\n for(int i = 0; i < secretWord.length(); i++)\n {\n CurrentState += \"_ \";\n for(int j = i; j > 0; j--)\n {\n if(secretWord.charAt(i) == secretWord.charAt(j-1))\n {\n LetterLeftNum--;//If the letter appears many times in the secret word, it will be counted just once.\n break;\n }\n }\n }\n LetterGuessHistory = LetterHistory;\n }", "public static boolean containsString (char[] letters, String word){\n int numberOfSameLetters = 0;\n word.toCharArray();\n for(char charInWord : word.toCharArray()) {\n for (char letter : letters) {\n if(charInWord == letter){\n// System.out.println(\"letter \" + letter);\n numberOfSameLetters ++;\n break;\n }\n }\n }\n if(numberOfSameLetters == word.length()){\n// System.out.println(true);\n return true;\n }\n// System.out.println(\"false\");\n return false;\n }", "public static void main(String[] args) {\r\n // TODO code application logic here\r\n String finalWord = stringGen(0); // Generate Random String to find words in\r\n \r\n String correctGuesses[];\r\n correctGuesses = new String[50];\r\n Boolean running = true;\r\n \r\n System.out.println(finalWord); \r\n \r\n Scanner s = new Scanner(System.in); // sets up user input\r\n \r\n while (running){ // while user still wants to play...\r\n System.out.print(\"Enter a word found in this puzzle (or QUIT to quit): \");\r\n String input = s.nextLine(); // Gets user input\r\n if(quit(input)){\r\n break;\r\n }\r\n if (input.equals(\"yarrimapirate\")) {\r\n yarrimapirate();\r\n }\r\n if(!compare(correctGuesses, input)) { // guessed word isnt in prev list\r\n if(checkWord(finalWord, input)) { // guessed word is found in string\r\n correctGuesses[correctCounter] = input;\r\n System.out.println(\"Yes,\" + input + \" is in the puzzle.\");\r\n correctCounter++;\r\n }\r\n else { // exactly what next line says o.O\r\n System.out.println(input + \" is NOT in the puzzle.\");\r\n }\r\n }\r\n else {\r\n System.out.println(\"Sorry, you have already found that word.\");\r\n }\r\n }\r\n \r\n System.out.println(\"You found the following \" + correctCounter + \" words in the puzzle:\");\r\n \r\n for(int x=0; x<correctCounter; x++) { // lets print out all Correct guesses!\r\n System.out.println(correctGuesses[x]);\r\n }\r\n \r\n }", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\tchar input = e.getKeyChar();\n\t\tString newAnswer = \"\";\n\t\tboolean correct = false;\n\t\t//Text = answer;\n\t\tif(lives > 0) {\n\t\tfor(int a = 0; a < answer.length(); a++) {\n\t\t\tif(answer.charAt(a) == input) {\n\t\t\t\t//System.out.println(answer.toCharArray()[a]);\n\t\t\t\t//Text.toCharArray()[a] = answer.charAt(a);\n\t\t\t\tnewAnswer += input;\n\t\t\t\tcorrect = true;\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnewAnswer += Text.charAt(a);\n\t\t\t\t\n\t\t\t}\n\t\t\t if(Text.charAt(a) != '-') {\n\t\t\t\t correctCharacters++;\n\t\t\t\t System.out.println(correctCharacters + \" correct characters\");\n\t\t\t\t System.out.println(length.length());\n\t\t\t\t \tif(correctCharacters > length.length() + 2) {\n\t\t\t\t \tframe.dispose();\n\t\t\t\t\tstack.clear();\n\t\t\t\t\tint reset = JOptionPane.showConfirmDialog(null, \"Congratulations! You guessed all your words! Play again?\");\n\t\t\t\t\tif(reset == 0) {\n\t\t\t\t\t\tRun();\n\t\t\t\t\t\ttext.setText(Text);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \telse if (lives <= 0) {\n\t\t\t\t \t\tframe.dispose();\n\t\t\t\t\t\tstack.clear();\n\t\t\t\t\t\tint reset = JOptionPane.showConfirmDialog(null, \"Game Over! Play again?\");\n\t\t\t\t\t\tif(reset == 0) {\n\t\t\t\t\t\t\tRun();\n\t\t\t\t\t\t\ttext.setText(Text);\n\t\t\t\t\t\t}\n\t\t\t\t \t}\n\t\t\t }\n\t\t}\n\t\tif(correct == false) {\n\t\t\tlives--;\n\t\t}\n\t\tText = newAnswer;\n\t\ttext.setText(Text);\n\t\tlifeDisplay.setText(\"Lives: \" + lives);\n\t\tcorrect = false;\n\t\t\n\t}\n\t\t\n\t\telse {\n\t\t\tframe.dispose();\n\t\t\tstack.clear();\n\t\t\tint reset = JOptionPane.showConfirmDialog(null, \"Game Over! Play again?\");\n\t\t\tif(reset == 0) {\n\t\t\t\tRun();\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.7896811", "0.7795853", "0.77423286", "0.7692634", "0.76661515", "0.7495562", "0.74760664", "0.74361765", "0.7289343", "0.7285714", "0.71424675", "0.71154034", "0.7062191", "0.7029148", "0.7007614", "0.6999109", "0.6981781", "0.69595045", "0.69335157", "0.6868657", "0.6853391", "0.6834738", "0.6810056", "0.68047893", "0.6786894", "0.6780902", "0.6768142", "0.67418236", "0.6706442", "0.6692663", "0.66896266", "0.66442627", "0.66146636", "0.6600729", "0.65905625", "0.6582292", "0.65542483", "0.65533453", "0.6547124", "0.65339124", "0.6532211", "0.6530322", "0.65274817", "0.64924216", "0.6488362", "0.64714354", "0.6468415", "0.64649445", "0.646301", "0.6444751", "0.64409626", "0.64155346", "0.639336", "0.63932765", "0.638453", "0.6383014", "0.6365199", "0.6329984", "0.6288351", "0.6278704", "0.6224791", "0.62230647", "0.620582", "0.62017417", "0.618868", "0.6165198", "0.6146988", "0.6133155", "0.6129107", "0.6124058", "0.61216897", "0.6120451", "0.6101251", "0.60899544", "0.6082446", "0.6081622", "0.60805744", "0.60688984", "0.6060602", "0.6049562", "0.6045495", "0.60453445", "0.604456", "0.603693", "0.602879", "0.60218817", "0.60175616", "0.6014147", "0.6010009", "0.5987136", "0.59834194", "0.59723115", "0.5940363", "0.5923669", "0.5921646", "0.5917194", "0.5916895", "0.59102654", "0.5909425", "0.5894779" ]
0.82871675
0
return the String format presentation of the Word Separated by space, each position will be shown as the original letter if unmasked or be shown as "_" if masked
@Override public String toString() { // create the String to return String str = new String(); // get the mask boolean[] mask = this.getMask(); // the new char of the string char oneChar; // for each character in the word for (int i = 0; i < this.getLength(); i++) { // if it is masked, set the new char as "_" if (mask[i] == true) { oneChar = '_'; // if it is unmasked, set the new char as the true character }else { oneChar = this.theWord[i]; } // add the new char to the string str += " " + oneChar; } // return the string return str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String buildWord() {\n\t\tStringBuilder word = new StringBuilder();\n\t\t\n\t\tfor(int i = 0; i < letters.size(); i++) {\n\t\t\tLetter tempLetter = letters.get(i);\n\t\t\t\n\t\t\tif(!(letters.get(i).getLetter() >= 'A' && letters.get(i).getLetter() <= 'Z') || tempLetter.getStatus())\n\t\t\t\tif(letters.get(i).getLetter() != ' ')\n\t\t\t\t\tword.append(tempLetter.getLetter());\n\t\t\t\telse\n\t\t\t\t\tword.append(\" \");\n\t\t\telse\n\t\t\t\tif (i == letters.size()-1) word.append(\"_\");\n\t\t\t\telse word.append(\"_ \");\n\t\t}\n\t\treturn word.toString();\n\t}", "public static String formatText(String t) {\r\n if (t.length() > 0) {\r\n char chars[] = t.toCharArray();\r\n for (int index = 0; index < chars.length; index++)\r\n if (chars[index] == '_') {\r\n chars[index] = ' ';\r\n if (index + 1 < chars.length && chars[index + 1] >= 'a' && chars[index + 1] <= 'z')\r\n chars[index + 1] = (char) ((chars[index + 1] + 65) - 97);\r\n }\r\n\r\n if (chars[0] >= 'a' && chars[0] <= 'z')\r\n chars[0] = (char) ((chars[0] + 65) - 97);\r\n return new String(chars);\r\n } else {\r\n return t;\r\n }\r\n }", "private String formatLatex(String text){\r\n\r\n String output=text.replaceAll(\"_\",\"-\");\r\n\r\n return output;\r\n }", "public String format() {\n return \"Mood is sad :[\";\n }", "public static String formatSpaces(String s) {\n \tString temp = s;\n \tif(s.contains(\"underscores\")) temp = s.replace(\" \", \"_\");\n return temp;\n }", "public String hiddenWord() {\n int hiddenWordUnderscores = 0;\n String hiddenWord = \"\";\n StringBuilder newHiddenWord = new StringBuilder(\"\");\n \n for (int i = 0; i < this.word.length(); i++) {\n hiddenWord += \"_\";\n newHiddenWord.append(\"_\");\n }\n \n // GO THROUGH EACH CHARACTER IN THIS.WORD AND SEE IF IT MATCHES THE GUESS. \n // IF IT DOES, REPLACE THE UNDERSCORE AT THAT INDEX WITH THE GUESSED LETTER.\n for (int i = 0; i < this.word.length(); i++) {\n char currentChar = this.word.charAt(i);\n String currentLetter = \"\" + currentChar;\n \n // IF THE CURRENT LETTER IS IN THE WORD\n if (this.guessedLetters.contains(currentLetter)) {\n // GET THE CURRENT UNDERSCORE OF THE INDEX WE ARE IN, SET IT TO currentChar\n newHiddenWord.setCharAt(i, currentChar);\n }\n } \n hiddenWord = newHiddenWord.toString();\n\n return hiddenWord;\n \n }", "@Override\n\tpublic String decorate(String d) {\n\t\tString decorated = \"\";\n\t\tfor(int i = 0; i < d.length(); i++) {\n\t\t\tif(i == 4 || i == 8 || i == 12) {\n\t\t\t\tdecorated += \" \" + d.charAt(i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdecorated += d.charAt(i);\n\t\t\t}\n\t\t}\n\t\treturn decorated;\n\t}", "@Override\n\tpublic String format() {\n\t\treturn \"Mood is: Sad...\";\n\t}", "public String propergram(String word){\n // word.toLowerCase();\n String[] tempstr =word.split(\"_\");\n String tempstr2;\n\n for(int i=0;i<tempstr.length;i++){\n if((tempstr[i].charAt(0))>='A'&&(tempstr[i].charAt(0))<='Z') {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0)));\n }\n else {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0))).toUpperCase();\n }\n tempstr[i] = tempstr2.concat(tempstr[i].substring(1));\n if (i != 0) {\n word=word.concat(\" \").concat(tempstr[i]);\n } else {\n word = tempstr[i];\n }\n\n }\n return word;\n\n\n }", "public static String formatSpaces(String s) {\n\t\tif(s.contains(\"underscores\"))\n\t\treturn s.replaceAll(\" \", \"_\");\n\t\t\n\t\treturn s;\n\t}", "public String toString() {\n\t\tString s = \"\";\n\t\tif(hidden) {\t\t\t\t\t//if hidden, only show the next character\n\t\t\tif(chars<=words.get(0).toString().length()) {\n\t\t\t\ts += (words.get(0).toString()+\" \").substring(0,chars+1);\n\t\t\t}\n\t\t}\n\t\telse {\t\t\t\t\t\t\t\n\t\t\tfor(Word w: words) {\n\t\t\t\ts += w.toString() + \" \";\n\t\t\t}\t\n\t\t}\n\t\treturn s;\n\t}", "private String format(String text) {\n if(text != null && !text.isEmpty())\n return text.substring(0, 1).toUpperCase(Locale.ENGLISH) + text.substring(1);\n else\n return \"\";\n }", "public static String getAlignedWord(String word, int length) {\n SpreedWord pivot = new SpreedWord();// to get the pivot.\n String alignWord = \"<html>\"; // get the align word.\n double align; // get number of spaces\n double count = 0; // count the number of spaces\n double leftSpace; // geting left space\n double rightSpace = 0; // get right space\n int getPivot; // get pivot number\n // this check to see if the length is even add one\n if (length % 2 == 0) {\n length = length + 1;\n }\n // this checks for commas and semicolons and periods.\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) == '.') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ';') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ',') {\n word = word.substring(0, word.length() - 1);\n break;\n }\n }\n // this gets the pivot\n getPivot = pivot.getPivot(word);\n // takes half the length\n align = length / 2;\n // gets the numbers space before the pivot.\n char[] letters = word.toCharArray();\n for (int i = 0; i < word.length(); i++) {\n if (!Character.isLetter(letters[i])) {\n count++;\n } else {\n break;\n }\n }\n // get left spaces\n align = align - (getPivot + count);\n\n leftSpace = align;\n\n // adding the left spaces\n for (int i = 0; i < leftSpace; i++) {\n alignWord += \"&nbsp;\";\n }\n // add the word\n alignWord += word.substring(0, getPivot);\n alignWord += \"<font color=\\\"yellow\\\">\";\n alignWord += word.charAt(getPivot);\n alignWord += \"</font>\";\n for (int i = getPivot + 1; i < word.length(); i++)\n alignWord += word.charAt(i);\n //alignWord += word.substring(getPivot + 1, word.length() - getPivot + 1);\n // adding the right space or truncate\n if (alignWord.length() > length) {\n\n } else {\n rightSpace = length - alignWord.length();\n for (int j = 0; j < rightSpace; j++) {\n alignWord += \" \";\n }\n }\n\n alignWord += \"</html>\";\n System.out.println(alignWord);\n\n return alignWord;\n }", "private StringBuffer2D makeLettersHeader(){\n int actualWidth = getActualWidth();\n StringBuffer2D sb = new StringBuffer2D();\n //letters\n for(int y=0;y<board.getWidth();++y){\n sb.appendRow(0, \" \"+\"_\".repeat((int) Math.ceil(actualWidth/2)) +\n Color.GREEN_UNDERLINED.escape(getCharForNumber(y)) +\n \"_\".repeat((int) Math.ceil(actualWidth/2)));\n }\n return sb;\n }", "protected abstract String format();", "public static String formatSpaces(String s) {\n\t\t\n\t\tif(s.contains(\"underscores\")==true) {\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tif(s.charAt(i)==' ') {\n\t\t\t\t\tString t1=s.substring(0, i);\n\t\t\t\t\tString t2=s.substring(i+1, s.length());\n\t\t\ts=t1+\"_\"+t2;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\treturn s;\n\t}", "public String asMaskedPan() {\n if (pan != null && pan.length() >= 12 && pan.length() <= 19) {\n int lastPos = pan.length() - 4;\n return new StringBuilder(pan).replace(6, lastPos, \"xxxxxxxxxxxxxxxxxxx\".substring(0, lastPos - 6)).toString();\n } else {\n return pan;\n }\n }", "private char[] hideTheWord(int x){\r\n char[] c = new char[x];\r\n for (int i = 0; i < x; i++){\r\n c[i]= '_';\r\n }\r\n return c;\r\n }", "java.lang.String getPunctuationToAppend();", "public static String formatTitle(String title)\n {\n char[] temp = title.trim().toCharArray();\n int count = 0;\n for (char c : temp) {\n if (c == ' ') {\n temp[count] = '_';\n } else if (c == '_') {\n temp[count] = ' ';\n }\n count++;\n }\n \n return String.valueOf(temp);\n \n }", "@Override\n\tprotected String formatted(Walue _) {\n\t\treturn \"\";\n\t}", "private String getFormattedName(String bossName) {\r\n\t\tString[] startingLetters = { \"corporeal\", \"king black\", \"nomad\", \"tormented\", \"avatar\" };\r\n\t\tfor(int i = 0; i < startingLetters.length; i++)\r\n\t\t\tif(bossName.toLowerCase().contains(startingLetters[i].toLowerCase()))\r\n\t\t\t\treturn \"the \"+bossName;\r\n\t\treturn bossName;\r\n\t}", "public String abbreviatedCellText(){\n\t\tString abbreviatedText = \"\";\n\t\tif(userInput.length() < 10){\n\t\t\tif(userInput.contains(\"%\")){\n\t\t\t\tabbreviatedText = userInput.substring(0, userInput.indexOf(\".\")) + \"%\";\n\t\t\t\treturn (abbreviatedText + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(userInput.equals(\"0.0\")){\n\t\t\t\treturn (userInput + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(!userInput.contains(\".\") && !userInput.contains(\"(\") && !userInput.contains(\"%\")){\n\t\t\t\tabbreviatedText = userInput + \".0\";\n\t\t\t\treturn (abbreviatedText + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(!userInput.contains(\"(\")){\n\t\t\t\tfor(int i = userInput.length() - 1; i > 0; i--){\n\t\t\t\t\tif(userInput.charAt(userInput.length() - 1) == '0'){\n\t\t\t\t\t\tif(userInput.charAt(userInput.length() - 2) == '0'){\n\t\t\t\t\t\t\tuserInput = userInput.substring(0, userInput.length() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuserInput = userInput.substring(0, userInput.length() - 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(userInput.charAt(userInput.length() - 1) == '.'){\n\t\t\t\tuserInput += \"0\";\n\t\t\t}\n\t\t}else if(userInput.length() > 10){\n\t\t\treturn (userInput + \" \").substring(0, 10);\n\t\t}\n\t\treturn (userInput + \" \").substring(0, 10); \n\t}", "@Override\n public String toString() {\n return super.toString().replaceAll(\"_\", \" \");\n }", "@Override\n public String toString() {\n return super.toString().replaceAll(\"_\", \" \");\n }", "@Override\n public String toString() {\n String name = this.name().substring(0,1);\n if (this.name().length() > 1) {\n for (int i = 1; i < this.name().length(); i++) {\n String charAt = this.name().substring(i, i + 1);\n if (charAt.equals(\"_\"))\n charAt = \" \";\n name += charAt.toLowerCase();\n }\n }\n return name;\n }", "static private String formats(String target)\n\t{\n\t\tString tmp = target.trim();\n\t\tif (tmp.length() < 1) return \"NaName\";\n\t\treturn (Character.toString(tmp.charAt(0)).toUpperCase()) + tmp.substring(1,tmp.length()).toLowerCase();\n\t}", "private String getDisplayText(String[] text) {\n\t\tif (text.length > 2) {\n\t\t\tStringBuffer buffer = new StringBuffer();\n\t\t\tfor (int i = 2; i < text.length; i++) {\n\t\t\t\tbuffer.append(text[i]).append(\" \");\n\t\t\t}\n\t\t\tbuffer.deleteCharAt(buffer.length() - 1); // remove last space\n\t\t\treturn buffer.toString();\n\t\t}\n\n\t\tString symbolText = getUnvalidatedDisplayText(text);\n\t\tif (symbolText != null) {\n\t\t\tString programName = getProgramText(text);\n\t\t\treturn programName + \"@\" + symbolText;\n\t\t}\n\n\t\treturn text[1];\n\t}", "public String formatSpaceBetweenWords(String line) {\r\n line = line.replaceAll(\"\\\\s+\", \" \"); \r\n line = line.toLowerCase();\r\n line = oneSpaceSpecial(line, \".\");\r\n line = oneSpaceSpecial(line, \",\");\r\n line = oneSpaceSpecial(line, \":\");\r\n line = oneSpaceSpecial(line, \"\\\"\");\r\n return line.trim();\r\n }", "public static String formatString(String s) {\n char[] charArray = s.toCharArray();\n StringBuilder normalizedString = new StringBuilder();\n for (char character:charArray\n ) {\n if (character == 'd' || character == 'D'){\n normalizedString.append('d');\n continue;\n }\n normalizedString.append(Normalizer.normalize(String.valueOf(character), Normalizer.Form.NFD));\n }\n\n return normalizedString.toString().replaceAll(\"[^\\\\p{ASCII}]\", \"\");\n }", "private static void printLatinWord(String s) {\n\t\tif (s.length() < 2|| !s.matches(\"\\\\w*\")) {\n\t\t\tSystem.out.print(s+\" \");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.print(s.replaceAll(\"(\\\\w)(\\\\w*)\", \"$2$1ay \"));\n\t}", "public static String NormalizeText(String Word) {\n String EditText = Word.replaceAll(\"[^a-zA-Z]\", \"\");\r\n String Capstext = EditText.toUpperCase();\r\n System.out.println(Capstext);\r\n return Capstext;\r\n }", "public String generateDashedResult()\n\t{\n\t\tString result = \"\";\n\n\t\tfor( int i = 0; i < this.prefixes.size(); i++ )\n\t\t{\n\t\t\tresult = result + \"\" + this.prefixes.get(i).getAffixBrackets();\n\t\t\tif( this.prefixes.get(i).getAffixBrackets() == \"\" ) {\n\t\t\t\tprintln(\"it's null bruh\");\n\t\t\t}\n\t\t}\n\n\t\tresult = result + \"[\" + rootWord + \"]\";\n\n\t\tfor( int i = 0; i < this.suffixes.size(); i++ )\n\t\t{\n\t\t\tresult = result + \"\" + this.suffixes.get(i).getAffixBrackets();\n\t\t}\n\n\t\tthis.bracketedResult = result;\n\t\treturn result;\n\t}", "public static String prettyPrintFormatter(String target, int offset) {\n String result = \"\";\n String[] words = target.split(\" \");\n int lineLength = Ui.DASH_LINES.length();\n int usableLength = lineLength - offset;\n assert usableLength > 0 : \"Otherwise we cannot print anything.\";\n\n int currentLength = 0;\n for (String word : words) {\n // Handle the case where a word is too long to print on one line\n if (word.length() > usableLength) {\n // Find number of characters that can be printed on current line\n int remainLength = usableLength - currentLength;\n result += word.substring(0, remainLength);\n String leftover = word.substring(remainLength);\n // Separate the word into parts that can fit in a line\n while (leftover.length() > usableLength) {\n result += System.lineSeparator() + \" \".repeat(offset)\n + leftover.substring(0, usableLength);\n leftover = leftover.substring(usableLength);\n }\n // Place remainder of word into line and continue\n result += System.lineSeparator() + \" \".repeat(offset) + leftover + \" \";\n currentLength = leftover.length() + 1;\n continue;\n }\n currentLength += word.length();\n if (currentLength > usableLength) {\n // Repeat enough spaces so that text is aligned to usable area.\n result += System.lineSeparator() + \" \".repeat(offset) + word;\n currentLength = word.length();\n } else {\n result += word;\n }\n result += \" \";\n // Account for the \" \" after the word.\n ++currentLength;\n }\n return result.trim();\n }", "public String getGuessString() {\n\t\tStringBuilder sb = new StringBuilder(wordToGuess);\n\t\tfor (int i = 0; i < wordToGuess.length(); i++) {\n\t\t\tchar letter = wordToGuess.charAt(i);\n\t\t\tif (!guessesMade.contains(letter)) {\n\t\t\t\tsb.setCharAt(i, '-');\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "private String getCompletePossibleTitle(List<ContactPartAllocation> notAllocatedAndTitleParts, String separationCharacter) {\n StringBuilder titleCompletionBuilder = new StringBuilder();\n notAllocatedAndTitleParts.forEach(part -> titleCompletionBuilder.append(part.getContactPart().getSecondObject()).append(separationCharacter));\n String finalString = titleCompletionBuilder.toString();\n return finalString.substring(0, finalString.length()-1);\n }", "private String putUnderscore(String concept) {\n\t\tStringBuffer newConcept = new StringBuffer(\"\");\n\t\t// concept = concept.replace(\" \", \"_\");\n\t\tStringTokenizer token = new StringTokenizer(concept, \" \");\n\t\tboolean firstTest = true;\n\t\twhile (token.hasMoreTokens()) {\n\t\t\tif (!firstTest) {\n\t\t\t\tnewConcept.append(\"_\");\n\t\t\t}\n\t\t\tfirstTest = false;\n\t\t\tString str = (String) token.nextElement();\n\t\t\tnewConcept.append(str);\n\t\t}\n\n\t\tconcept = newConcept.toString();\n\n\t\treturn concept;\n\n\t}", "public static String formatEnumName(String name) {\n String[] words = name.replace('_', ' ').split(\"\\\\s\");\n StringBuilder formatted = new StringBuilder(name.length());\n for (String word : words) {\n formatted.append(word.substring(0, 1).toUpperCase());\n formatted.append(word.substring(1).toLowerCase());\n formatted.append(' ');\n }\n return formatted.toString().trim();\n }", "private String getFormatattedTxt(String inputTxt, int txtLength) {\n\t\tint fulllength = inputTxt.length(); // full length gives the length of IR number\n\t\tint rellength = txtLength + 4; //Inv Number + 'IRX' + '-'\n\t\tint temp = fulllength - rellength;\n\t\tString formattedTxt = \"\";\n\n\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: int temp \" + temp);\n\n\t\tinputTxt = inputTxt.substring(rellength, fulllength);\n\n\n\t\tformattedTxt = \"IRX-\" + inputTxt;\n\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: formattedTxt \" + formattedTxt);\n\t\treturn formattedTxt;\n\n\t\t}", "public static String textFormat(String s){\r\n s =s.toLowerCase();\r\n s = s.substring(0, 1).toUpperCase() + s.substring(1);\r\n return(s);\r\n }", "private String replaceSpaces(String value) {\r\n\t\treturn value.replace(\" \", \"_\");\r\n\t}", "public void setHangmanWord()\n {\n if(word == null || word == \"\") return;\n\n String hangmanWord = \"\";\n for(int i=0; i<word.length(); i++)\n {\n if(showChar[i])\n hangmanWord += word.substring(i, i+1)+\" \";\n else\n hangmanWord += \"_ \";\n }\n\n wordTextField.setText(hangmanWord.substring(0, hangmanWord.length()-1));\n }", "public static String leftAlignFormat() {\n String leftAlignFormat = \"\\n\\t\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(5) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(40) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(60) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\" //string\r\n + \"|\"\r\n + \" %-\" + Integer.toString(24) + \"s\" \r\n + \"|\\n\";\r\n return leftAlignFormat;\r\n }", "public String toString() {\n return String.join(\" \", words);\n }", "public static void Print02(){\n Scanner input = new Scanner(System.in);\n\n System.out.println(\"2. MASUKKAN KALIMAT/KATA : \");\n String inputString = input.nextLine();\n\n String[] inputArray = inputString.split( \" \");\n for(String text : inputArray)\n {\n char[] charArray = text.toCharArray();\n\n for (int i = 0; i < charArray.length; i++) {\n if(i == 0 || i == text.length() - 1 ) {\n System.out.print(charArray[i]);\n }\n else if (i == text.length() / 2) {\n System.out.print(\"***\");\n }\n else {\n System.out.print(\"\");\n }\n }\n System.out.print(\" \");\n }\n System.out.println();\n }", "public String getPrintableFormat() {\n String output = new String(\"Articoli del gruppo \" + groupName + \":\\n\");\n for (int i = 0; i < list.size(); i++) {\n Article article = list.get(i);\n output += String.format(\"%2d %s\\n\",i,article.getPrintableFormat());\n }\n return output;\n }", "public String displayWord(char letter){\n\t\tString printWord;\r\n\t\t\r\n\t\tif(correctList.contains(letter)){\r\n\t\t\tfor(int i=0; i<display.length; i++){\r\n\t\t\t\tif(gameLetter[i]==letter){\r\n\t\t\t\t\tdisplay[i] = String.valueOf(gameLetter[i]);}\r\n\t\t\t}\r\n\t\t\t StringBuffer sb = new StringBuffer();\r\n\t\t\t for(int i = 0; i < display.length; i++)\r\n\t\t\t { \r\n\t\t\t sb. append(display[i]);\r\n\t\t\t }\r\n\t\t\t printWord = sb.toString();\r\n \t\t}\r\n\t\telse{\r\n\t\t\t StringBuffer sb = new StringBuffer();\r\n\t\t\t for(int i = 0; i < display.length; i++)\r\n\t\t\t { \r\n\t\t\t sb. append(display[i]);\r\n\t\t\t }\r\n\t\t\t printWord = sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tprintHangman();\r\n\t\t\r\n\t\treturn printWord;\r\n\t}", "private static void printHangman() {\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tif (guessesResult[i]) {\n\t\t\t\tSystem.out.print(word.charAt(i));\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" _ \");\n\t\t\t}\n\t\t}\n\t}", "@VTID(8)\r\n java.lang.String format();", "private Spannable applyWordMarkup(String text) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n int languageCodeStart = 0;\n int untranslatedStart = 0;\n\n int textLength = text.length();\n for (int i = 0; i < textLength; i++) {\n char c = text.charAt(i);\n if (c == '.') {\n if (++i < textLength) {\n c = text.charAt(i);\n if (c == '.') {\n ssb.append(c);\n } else if (c == 'c') {\n languageCodeStart = ssb.length();\n } else if (c == 'C') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.language_code_tag),\n languageCodeStart, ssb.length(), 0);\n languageCodeStart = ssb.length();\n } else if (c == 'u') {\n untranslatedStart = ssb.length();\n } else if (c == 'U') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.untranslated_word),\n untranslatedStart, ssb.length(), 0);\n untranslatedStart = ssb.length();\n } else if (c == '0') {\n Resources res = getResources();\n ssb.append(res.getString(R.string.no_translations));\n }\n }\n } else\n ssb.append(c);\n }\n\n return ssb;\n }", "public static void Print04(){\n Scanner input = new Scanner(System.in);\n System.out.println(\" 4 . MASUKKAN KALIMAT/KATA : \");\n String inputString = input.nextLine();\n\n String[] inputArray = inputString.split( \" \");\n\n for (int i = 0; i < inputArray.length; i++) {\n char[] charArray = inputArray[i].toCharArray();\n if(i % 2 == 0 ){\n for (int j = 0; j < charArray.length; j++) {\n if( j % 2 == 0) {\n System.out.print(charArray[j]);\n }\n else {\n System.out.print(\"*\");\n }\n }\n }\n else {\n for (int j = 0; j < charArray.length; j++) {\n if(j % 2 == 0) {\n System.out.print(\"*\");\n }\n else {\n System.out.print(charArray[j]);\n }\n }\n }\n System.out.print(\" \");\n }\n System.out.println();\n }", "@Override\n public String toString()\n {\n return String.format(\"%-20s\\t\\t%-30s%-30s\",number, name, party);\n}", "protected String formatField() {\n \tif(!updated) return \"No record set.\";\n \t\n \tif(firstFieldP.getText() != null && lastFieldP.getText() != null) {\n\t \tfirstNameString = firstFieldP.getText();\n\t \tlastNameString = lastFieldP.getText();\n \t} else\t{\n \tfirstNameString = firstFieldC.getText();\n \tlastNameString = lastFieldC.getText();\n \ttribeString = tribeField.getText();\t\n \t}\n\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"<html><p align=center>\");\n \tsb.append(firstNameString);\n \tsb.append(\" \");\n \tsb.append(lastNameString);\n \tsb.append(\"<br>\");\n \tsb.append(tribeString);\n \tsb.append(\"</p></html>\");\n \t\n \treturn sb.toString(); \t\n }", "private String e19BuildStaffGageString(String s) {\n String tmp1 = null;\n if ((s != null) && (s.length() > 0)) {\n tmp1 = String.format(\"%c%s-%c\", SEP_CHAR, s, SEP_CHAR);\n } else {\n tmp1 = String.format(\"%c-----%c\", SEP_CHAR, SEP_CHAR);\n }\n\n return tmp1;\n }", "@NonNull\n @Override\n public String toString() {\n return word;\n }", "public String toAnticipatedString() {\n\t\treturn this.toMatchedString() + this.anticipatedSuffix;\n\t}", "public String toString(){\n String r = \"\";\n for(String cs : words){\n r += cs + \" \"; \n }\n r = r.substring(0, r.length()-1);\n return r;\n }", "static String calculateSpace(int startPosition, Document document) {\n String text = null;\n try {\n text = document.getText(document.getStartPosition().getOffset(), startPosition);\n } catch (BadLocationException ex) {\n ex.printStackTrace();\n return \"\";\n }\n int lastIndex = -1;\n if (text != null && text.length() > 1) {\n lastIndex = text.lastIndexOf(\"\\n\"); //NOI18N\n }\n int charNumber = -1;\n \n if (lastIndex > 0) {\n int varIndex = 0;\n String line = text.substring(lastIndex, startPosition);\n Pattern pattern = Pattern.compile(\"[a-z]\"); //NOI18N\n Matcher matcher = pattern.matcher(line);\n if (matcher.find()) {\n varIndex = matcher.start();\n charNumber = varIndex - 1;\n } else {\n charNumber = line.length();\n }\n \n }\n if (charNumber < 0) {\n return \"\"; //NOI18N\n }\n StringBuilder space = new StringBuilder(charNumber);\n for (int i = 0; i < charNumber - 1; i++) {\n space.append(\" \"); //NOI18M\n }\n return space.toString();\n }", "public String alternateWordSwap() {\n\t\tString output=\"\";\r\n\t\tString arr[]=this.str.split(\" \");\r\n\t\tfor(int i=0,j=1;i<arr.length;i+=2,j+=2){\r\n\t\t\tString temp=arr[i];\r\n\t\t\tarr[i]=arr[j];\r\n\t\t\tarr[j]=temp;\r\n\t\t}\r\n\t\t\r\n\t\tfor(String s:arr){\r\n\t\t\toutput+=s+\" \";\r\n\t\t}\r\n\t\treturn output.trim();\r\n\t}", "private String defaultFormat(double d) {\n\t\tString str = \"\" + d;\n\t\tint availableSpace = getSize().width - 2 * PIXEL_MARGIN;\n\t\tFontMetrics fm = getFontMetrics(getFont());\n\t\tif (fm.stringWidth(str) <= availableSpace) return str;\n\t\tint eIndex = str.indexOf(\"E\");\n\t\tString suffix = \"\";\n\t\tif (eIndex != -1) {\n\t\t\tsuffix = str.substring(eIndex);\n\t\t\tstr = str.substring(0, eIndex);\n\t\t\ttry {\n\t\t\t\td = parser.parse(str).doubleValue();\n\t\t\t} catch (ParseException ex) {\n\t\t\t\tthrow new ErrorException(ex);\n\t\t\t}\n\t\t}\n\t\tNumberFormat standard = NumberFormat.getNumberInstance(Locale.US);\n\t\tstandard.setGroupingUsed(false);\n\t\tString head = str.substring(0, str.indexOf('.') + 1);\n\t\tint fractionSpace = availableSpace - fm.stringWidth(head + suffix);\n\t\tif (fractionSpace > 0) {\n\t\t\tint fractionDigits = fractionSpace / fm.stringWidth(\"0\");\n\t\t\tstandard.setMaximumFractionDigits(fractionDigits);\n\t\t\treturn standard.format(d) + suffix;\n\t\t}\n\t\tstr = \"\";\n\t\twhile (fm.stringWidth(str + \"#\") <= availableSpace) {\n\t\t\tstr += \"#\";\n\t\t}\n\t\treturn str;\n\t}", "public static void Print03(){\n Scanner input = new Scanner(System.in);\n String resultt;\n\n System.out.println(\"3. MASUKKAN KALIMAT/KATA : \");\n String inputString = input.nextLine();\n\n String[] inputArray = inputString.split( \" \");\n for(String text : inputArray) {\n char[] charArray = text.toCharArray();\n //resultt = charArray[charArray.length - 1] + \"*\" + charArray[0];\n for (int i = 0; i < charArray.length ; i++) {\n if(i == 0){\n System.out.print(charArray[charArray.length - 1]);\n } else if (i == text.length() - 1) {\n System.out.print(charArray[0]);\n } else if (i == text.length() / 2){\n System.out.print(\"*\");\n } else {\n System.out.print(\"\");\n }\n }\n System.out.print(\" \");\n }\n System.out.println();\n }", "private void formatPhoneNum() {\n\t\tthis.phoneNum = \"(\" + this.phoneNum.substring(0, 3) + \") \" + this.phoneNum.substring(3, 6) + \" \"\n\t\t\t\t+ this.phoneNum.substring(6);\n\t}", "@Override\n\tpublic String abbreviatedCellText(){\n\t\tString realText = text;\n\t\tif(text.charAt(0) == '\\\"'){\n\t\t\trealText = text.substring(1, text.length() - 1);\n\t\t}\n\t\tif(realText.length() > 10){\t\t//if it contains more than 10 characters\n\t\t\trealText = text.substring(1, 11);\t//using substring to take the first 10\n\t\t\treturn realText;\n\t\t}else{\n\t\t\t//fills in the spaces\n\t\t\twhile(realText.length()<10){\t//if it contains less than 10 characters\t\n\t\t\t\trealText += \" \";\t\t//pad to ten\n\n\t\t\t}\n\t\t\treturn realText;\n\t\t}\n\t}", "ILetterView getLetterView(String username, String inLetterText, String dateText, boolean alignLeft);", "public void displayWord() {\n System.out.println(String.valueOf(display));\n }", "public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }", "private String mask(int length) {\n StringBuilder sb = new StringBuilder(length);\n for (int i = 0; i < length; i++) {\n sb.append('\\u25CF');\n }\n return new String(sb);\n }", "public String acronym(String phrase) {\n /*StringBuilder acronymFeed = new StringBuilder(\"\");\n String wordHolder = \"\";\n int spaceIndex;\n char firstLetter;\n do{\n spaceIndex = phrase.indexOf(\" \");\n wordHolder = phrase.substring(0,spaceIndex);\n acronymFeed.append(wordHolder.charAt(0));\n phrase = phrase.replaceFirst(wordHolder, \"\");\n } while (spaceIndex != -1 && wordHolder != \"\" && phrase != \"\");\n \n \n \n \n \n String acronymResult = acronymFeed.toString().toUpperCase();\n return acronymResult;\n */\n \n char[] letters = phrase.toCharArray();\n String firstLetters = \"\";\n firstLetters += String.valueOf(letters[0]);\n for (int i = 1; i < phrase.length();i++){\n if (letters[i-1] == ' '){\n firstLetters += String.valueOf(letters[i]);\n }\n }\n firstLetters = firstLetters.toUpperCase();\n return firstLetters;\n }", "public String wordListToSimpleString(List<Word> words) {\n StringBuilder stringBuilder = new StringBuilder();\n for (Word w : words) {\n //do not include things that the tokenizer eats anyway\n if (!tokenisationDelimiters.contains(w.getWord()) && !tokenisationDelimitersPOSTags.contains(w.getPosTag())) {\n stringBuilder.append(w.getWord().replaceAll(\" \", \"_\").replaceAll(tokenisationDelimitersRegex, \"\"));\n stringBuilder.append(\"_\");\n stringBuilder.append(w.getPosTag());\n stringBuilder.append(\" \");\n }\n }\n return stringBuilder.toString();\n }", "private String getConvertedWord(String word) {\r\n\t\tString newWord = \"\";\r\n\t\tif(word == null || word.length() == 0)\r\n\t\t\tnewWord = \"\";\r\n\t\telse if(word.length() < 3)\r\n\t\t\tnewWord = word;\r\n\t\telse \r\n\t\t\tnewWord = \"\"+word.charAt(0) + (word.length() - 2) + word.charAt(word.length() - 1);\r\n\t\t\t\r\n\t\tif(DEBUG)\r\n\t\t\tSystem.out.printf(\"Converted %s to %s\\n\", word, newWord);\r\n\t\treturn newWord;\r\n\r\n\t}", "@Override\n public final String toString() {\n return text.subSequence(lower, upper).toString();\n }", "String getPunctuation();", "public static String newFormat(String str) {\n\t\tString temp = Normalizer.normalize(str, Normalizer.Form.NFD);\n\t\tPattern pattern = Pattern.compile(\"\\\\p{InCombiningDiacriticalMarks}+\");\n\t\treturn pattern.matcher(temp).replaceAll(\"\");\n\t}", "public static String leftAlignFormatTitulo() {\n String leftAlignFormat = \"\\t\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(5) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(40) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(30) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(60) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\"\r\n + \"|\"\r\n + \" %-\" + Integer.toString(15) + \"s\" //string\r\n + \"|\"\r\n + \" %-\" + Integer.toString(24) + \"s\" \r\n + \"|\\n\";\r\n return leftAlignFormat;\r\n }", "public static void show() {\r\n\t\t int[] forword=new int[6];\r\n\t\t int[] temp;\r\n\t\t for(int i=1;i<7;i++){\r\n\t\t\t temp=Arrays.copyOf(forword, 6);\r\n\t\t\t for(int j=0;j<i;j++){\r\n\t\t\t\t if(j==0){\r\n\t\t\t\t\t forword[0]=i;\r\n\t\t\t\t\t System.out.print(forword[0]+\" \");\r\n\t\t\t\t }else{\r\n\t\t\t\t\t forword[j]=forword[j-1]+temp[j-1];\r\n\t\t\t\t\t System.out.print(forword[j]+\" \");\t\t \r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t System.out.println();\r\n\t\t }\r\n\t\t //0-9:48-57 ; A-Z:65-90 ; a-z:97-122 \r\n\t\t\r\n\t}", "private static String zzty(String string2) {\n StringBuffer stringBuffer = new StringBuffer();\n int n = 0;\n while (n < string2.length()) {\n char c = string2.charAt(n);\n if (n == 0) {\n stringBuffer.append(Character.toLowerCase(c));\n } else if (Character.isUpperCase(c)) {\n stringBuffer.append('_').append(Character.toLowerCase(c));\n } else {\n stringBuffer.append(c);\n }\n ++n;\n }\n return stringBuffer.toString();\n }", "private String pairsToWord(List<Pair> pairs){\n String result=\"\";\n for(Pair pair : pairs){\n result=result+pair.getLetter();\n }\n return result;\n }", "public String getFormatedLanguageCode() {\n String result = \"\";\n final String name = this.name();\n final String[] nameArray = name.split(\"_\");\n\n if (nameArray.length == 1) {\n result = nameArray[0].toLowerCase();\n } else if (nameArray.length == 2) {\n result = nameArray[0].toLowerCase() + \"-\" + nameArray[1].toUpperCase();\n }\n\n return result;\n }", "java.lang.String getWord();", "public String abbreviatedCellText() {\r\n\t\treturn \" \";\r\n\t}", "@Override\n\t\t\tprotected String formatValue(String text) {\n\t\t\t\treturn text.substring(0, text.lastIndexOf('.'));\n\t\t\t}", "String toLocalizedPattern() {\n return toPattern(true);\n }", "String getTransformedText();", "String getSpace();", "static String correctParagraph(String paragraph) {\n\n\t\t\tString newText = paragraph.replaceAll(\"\\\\s{2,}+\", \" \");\n\n\t\t\tnewText = newText.replaceAll(\"\\\\s+,\", \",\");\n\t\t\tnewText = newText.replaceAll(\"\\\\s+\\\\.\", \".\");\n\n\n\t\t\tString firstLetter = newText.substring(0, 1).toUpperCase();\n\t\t\tnewText = firstLetter + newText.substring(1);\n\n\t\t\tString[] sentences = newText.split(\"\\\\.\");\n\t\t\tfor(int i = 0; i < sentences.length; i++){\n\t\t\t\tString temp = sentences[i].trim();\n\t\t\t\tfirstLetter = temp.substring(0, 1).toUpperCase();\n\t\t\t\tsentences[i] = firstLetter + temp.substring(1);\n\t\t\t}\n\t\t\tStringBuilder newParagraph = new StringBuilder(sentences[0]);\n\t\t\tfor(int i = 1; i < sentences.length; i++){\n\t\t\t\tnewParagraph.append(\". \").append(sentences[i]);\n\t\t\t}\n\t\t\tnewText = newParagraph.append(\".\").toString();\n\n\t\t\treturn newText;\n\t\t}", "public static String preProcessWordsSpecialCharacters(String line){\n\n\t\tStringBuilder newLine = new StringBuilder();\n\t\t//System.out.println(\"Preprocess words with special characaters ...\");\n\t\tList<String> newLineList = new ArrayList<String>();\n\t\tString eachWord;\n\t\tString[] hyphenWordArray;\n\t\t//replace all forward slash in the string with whitespace\n\t\t//line = line.replaceAll(\"[/|:|?|..|adverb|noun]\", \" \");\n\t\t//System.out.println(\"Line before modification: \"+ line);\n\t\tline = line.replaceAll(\"(\\\\?)|(\\\\()|(\\\\))|(\\\\,)|(\\\\.)|(\\\\!)|(\\\\/)|(\\\\:)|(\\\\?)|(\\\\')|(\\\\])|(\\\\[)\", \" \");\n\t\t//System.out.println(\"Line after first modification: \"+ line);\n\t\tline = line.replaceAll(\"\\\\s+\", \" \");\n\n\t\tnewLineList = Arrays.asList(line.split(\"\\\\s+\"));\n\t\tIterator<String> iter = newLineList.iterator();\n\n\t\twhile(iter.hasNext()){\n\t\t\teachWord = (String)iter.next();\n\t\t\tnewLine.append(\" \").append(eachWord);\n\t\t\tif(eachWord.contains(\"-\")){ //if the word contains a hyphen\n\t\t\t\t//System.out.println(\"Word containing hyphen: \"+ eachWord);\n\t\t\t\thyphenWordArray = eachWord.split(\"\\\\-\");\n\t\t\t\t//adding aaabbccc for aaa-bb-ccc \n\t\t\t\tnewLine.append(\" \").append(eachWord.replaceAll(\"\\\\-\", \"\"));\n\t\t\t\tfor(int i = 0; i < hyphenWordArray.length; i++ )\n\t\t\t\t\t//adding aaa, bb, cc for aaa-bb-ccc \n\t\t\t\t\tnewLine.append(\" \").append(hyphenWordArray[i]);\n\t\t\t}/*else{ //if the word does not contain hyphen, add it as it is\n\t\t\t\tnewLine.append(\" \").append(eachWord);\n\t\t\t}*/\n\t\t}\n\t\t//System.out.println(\"Line after modification: \"+ newLine.toString());\n\t\treturn newLine.toString();\n\t}", "@Override\n public String toString() {\n StringJoiner sj = new StringJoiner(\", \", \"{\", \"}\\n\");\n wordMap.forEach((k, v) -> sj.add(String.format(\"%s -> %s\", k, v)));\n return sj.toString();\n }", "public String generateSentence() {\n // If our map is empty return the empty string\n if (model.size() == 0) {\n return \"\";\n }\n\n ArrayList<String> startWords = model.get(\"_begin\");\n ArrayList<String> endWords = model.get(\"_end\");\n\n // Retrieve a starting word to begin our sentence\n int rand = ThreadLocalRandom.current().nextInt(0, startWords.size());\n\n String currentWord = startWords.get(rand);\n StringBuilder sb = new StringBuilder();\n\n while (!endWords.contains(currentWord)) {\n sb.append(currentWord + \" \");\n ArrayList<String> nextStates = model.get(currentWord);\n\n if (nextStates == null) return sb.toString().trim() + \".\\n\";\n\n rand = ThreadLocalRandom.current().nextInt(0, nextStates.size());\n currentWord = nextStates.get(rand);\n }\n\n sb.append(currentWord);\n\n return sb.toString() + \"\\n\";\n\n\n }", "void format();", "void replaceSpaces(String strmain, int trueLen) {\n char[] str = strmain.toCharArray();\n int spaceCount = 0, index, i = 0;\n for (i = 0; i < trueLen; i++) {\n if(str[i]==' ')\n spaceCount++;\n }\n index = trueLen + spaceCount * 2; //length of the final string\n if (trueLen < str.length)\n str[trueLen] = '\\0';\n for (i = trueLen - 1; i >= 0; i--) {\n if (str[i] == ' ') {\n str[index - 1] = '0';\n str[index - 2] = '2';\n str[index - 3] = '%';\n index = index - 3;\n } else {\n str[index - 1] = str[i];\n index--;\n }\n }\n System.out.println(str);\n }", "private String generateString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\twhile (currentIndex < expression.length\r\n\t\t\t\t&& (Character.isLetterOrDigit(expression[currentIndex]) || expression[currentIndex] == '_')) {\r\n\t\t\tsb.append(expression[currentIndex]);\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\r\n\t\treturn sb.toString().toLowerCase();\r\n\t}", "public String abbreviatedCellText() {\r\n\t\treturn \" \";//returns 10 spaces because the cell has to be empty\r\n\t}", "private String[] formatEntry(String[] features) {\n if (this.format == DictionaryBuilder.DictionaryFormat.IPADIC) {\n return features;\n } else {\n String[] features2 = new String[13];\n features2[0] = features[0];\n features2[1] = features[1];\n features2[2] = features[2];\n features2[3] = features[3];\n features2[4] = features[4];\n features2[5] = features[5];\n features2[6] = features[6];\n features2[7] = features[7];\n features2[8] = features[8];\n features2[9] = features[9];\n features2[10] = features[11];\n\n // If the surface reading is non-existent, use surface form for reading and pronunciation.\n // This happens with punctuation in UniDic and there are possibly other cases as well\n if (features[13].length() == 0) {\n features2[11] = features[0];\n features2[12] = features[0];\n } else {\n features2[11] = features[13];\n features2[12] = features[13];\n }\n return features2;\n }\n }", "public static String formatLabel(String lbl){\n\t\t\n\t\t// XXX There is be a better way to do this...\n\t\tlbl = lbl.replaceAll(\",\", \"COMMA\");\n\t\tlbl = lbl.replaceAll(\"\\\\$\", \"DOL\");\n\t\tlbl = lbl.replaceAll(\"\\\\?\", \"QMARK\");\n\t\tlbl = lbl.replaceAll(\"\\\\!\", \"EXCMARK\");\n\t\tlbl = lbl.replaceAll(\"'\", \"\");\n\t\t\n\t\treturn lbl;\n\t}", "private String formatString(String s) {\n \t\tif (s.length() > 13) return s.substring(0,11) + \"...\"; \n \t\telse return s;\n \t}", "public InputFilter getPostalMask() {\r\n\t\treturn new InputFilter() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) {\r\n\r\n\t\t\t\tif (source.length() > 0) {\r\n\r\n\t\t\t\t\tif (!Character.isLetterOrDigit(source.charAt(0)))\r\n\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tswitch (dstart) {\r\n\t\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\t\tif (!Character.isLetter(source.charAt(0)))\r\n\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tsource = source.toString().toUpperCase();\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\tif (!Character.isDigit(source.charAt(0)))\r\n\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\tif (!Character.isLetter(source.charAt(0)))\r\n\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tsource = source.toString().toUpperCase();\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t\tif (!Character.isDigit(source.charAt(0)))\r\n\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\treturn \"-\" + source;\r\n\r\n\t\t\t\t\t\tcase 5:\r\n\t\t\t\t\t\t\tif (!Character.isLetter(source.charAt(0)))\r\n\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tsource = source.toString().toUpperCase();\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcase 6:\r\n\t\t\t\t\t\t\tif (!Character.isDigit(source.charAt(0)))\r\n\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public static String formatString(String str){\n String[] arr = str.split(\" \");\n String resultant = \"\";\n for(int i = 0; i < arr.length;i++){\n if(arr[i].length() == 1)\n arr[i] = arr[i].toUpperCase();\n else if(arr[i].length() == 0)\n continue;\n else{\n arr[i] = Character.toUpperCase(arr[i].charAt(0)) + arr[i].substring(1);\n }\n }\n for(String s : arr)\n resultant += s + \" \";\n return resultant.trim();\n }", "public String toString(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif(isFlag()==true){\n\t\t\t\tif(isDownBlock()==true){\n\t\t\t\t\tsb.append(\"g\"); //use G represent the goal\n\t\t\t\t\t\t\t\t\t\t// if down block is a block use small letter\n\t\t\t\t}\n\t\t\t\telse if(isRobot()==true){\n\t\t\t\t\tsb.append(\"V\"); //flag and robot on same position VICTORY!\n\t\t\t\t}\n\t\t\t\telse sb.append(\"G\"); \t\t\n\t\t\t}\n\t\telse if(isRobot()==true){\n\t\t\tif(isDownBlock()==true){\n\t\t\t\tsb.append(\"r\");//use R represent the Robot\n\t\t\t\t\t// if down move is a block use small letter\n\t\t\t}\n\t\t\telse sb.append(\"R\");\n\t\t}\n\t\telse{\n\t\t\tif(isDownBlock()==true){\n\t\t\t\tsb.append(\"_\"); \n\t\t\t\t//if down move is blocked then use underline\n\t\t\t}\n\t\t\telse sb.append(\"O\"); // use o represent the grid\n\t\t}\n\t\t\t\n\t\tif(isRightBlock()==true){\n\t\t\tsb.append(\"|\"); //best way to represent right block\n\t\t}\n\t\telse{\n\t\t\tsb.append(\" \"); // if no block just a space\n\t\t}\n\t\treturn sb.toString();\n\t}", "private void generate()\n {\n for (int i = 0; i < this.syllables; i++) {\n Word word = getNextWord();\n this.text += word.getWord();\n if (i < this.syllables - 1) {\n this.text += \" \";\n }\n }\n }", "private String formatOutput(String raw) {\r\n // Remove quotes\r\n String formatted = raw.replace(\"\\\"\", \"\");\r\n //Capitalize first letter\r\n formatted = formatted.substring(0,1).toUpperCase() + formatted.substring(1);\r\n \r\n return formatted;\r\n }" ]
[ "0.67276627", "0.65256244", "0.6346856", "0.61590725", "0.5981783", "0.5927492", "0.5907464", "0.5877733", "0.584137", "0.58225256", "0.578693", "0.57228035", "0.57041174", "0.5699797", "0.5680895", "0.5660503", "0.56564987", "0.5617688", "0.561339", "0.5585922", "0.55663306", "0.55449265", "0.55088204", "0.54434764", "0.54434764", "0.5431259", "0.53700197", "0.53672683", "0.5326623", "0.53249484", "0.53044987", "0.52870893", "0.5279277", "0.52790725", "0.5278332", "0.5234028", "0.5223542", "0.52219146", "0.5216953", "0.52126336", "0.520363", "0.51944035", "0.5186044", "0.51828915", "0.51807874", "0.51771474", "0.51719403", "0.5168871", "0.516472", "0.516139", "0.5154441", "0.51500905", "0.51458156", "0.5139596", "0.51363486", "0.5127129", "0.5126686", "0.5114418", "0.511414", "0.51107025", "0.5109715", "0.51084447", "0.5107093", "0.50952876", "0.5058602", "0.50568616", "0.5051755", "0.50461024", "0.50403166", "0.5040172", "0.503609", "0.5034109", "0.50165504", "0.5001175", "0.50010717", "0.49977812", "0.4996352", "0.49952623", "0.49832603", "0.49815047", "0.49809682", "0.49767187", "0.49704516", "0.496475", "0.49559468", "0.49559078", "0.49558955", "0.49551365", "0.49528047", "0.49517477", "0.49491352", "0.49242535", "0.49192747", "0.49188527", "0.49175242", "0.49161282", "0.49111545", "0.4908994", "0.49072534", "0.49042064" ]
0.7295629
0
TODO Autogenerated method stub
public void insertMemDts2(VngMem contact) { }
{ "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
/ GETTER AND SETTTER
public void setiExampleWs(IExampleWS iExampleWs) { this.iExampleWs = iExampleWs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "public void get() {\n }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public Student getStudent() { return student; }", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "Reserva Obtener();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "protected static void get() {\n\t\tstepsTable.get();\n\t\tstepsTable.getWeek();\n\t\tactive.get();\n\t\tmeals.get();\n\t\taccountInfo.get();\n\t\t\n\t}", "protected abstract void retrievedata();", "protected abstract Set method_1559();", "public Punto getCentro() {\r\n\treturn centro;\r\n}", "public CuentaContable getCuentaContable()\r\n/* 78: */ {\r\n/* 79: 99 */ return this.cuentaContable;\r\n/* 80: */ }", "@Override\n\tpublic void getDetail() {\n\t\t\n\t}", "private Get() {}", "private Get() {}", "public java.lang.String getObservacion(){\n return localObservacion;\n }", "public Book getBook() \t\t{ return this.myBook; }", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }", "@Override\n protected void getExras() {\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "@Override\n String get();", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public String getAuthor(){return author;}", "public Student getStudent() {\n return student; //XXX-CHANGE-XXX\n }", "public CuentaContable getCuentaContable()\r\n/* 299: */ {\r\n/* 300:367 */ return this.cuentaContable;\r\n/* 301: */ }", "public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\n\tpublic void getPrix() {\n\t\t\n\t}", "public CuentaContable getCuentaContableCierre()\r\n/* 98: */ {\r\n/* 99:115 */ return this.cuentaContableCierre;\r\n/* 100: */ }", "@Override\n\tprotected void getExras() {\n\n\t}", "public Enqueteur getEnqueteur()\r\n/* */ {\r\n/* 57 */ return this.enqueteur;\r\n/* */ }", "public Person getDoctor(){\n return doctor;\n }", "public void getCity(){\n }", "protected T getManusia(){\r\n return Manusia;\r\n }", "public int getProT() {\n/* 78 */ return this.proT;\n/* */ }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "Restaurant getRestaurant();", "public abstract String get();", "@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "public int getAge() {return age;}", "Objet getObjetAlloue();", "public Payment getTarjeta(){\n return cuenta;\n }", "@Override\r\n\tpublic void getRegimeAlimentaire() {\n\t\t\r\n\t}", "public String get();", "public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public int getTipoAtaque(){return tipoAtaque;}", "public ImmutableRetrieve() {\n super();\n }", "public PuntoDeVenta getPuntoDeVenta()\r\n/* 140: */ {\r\n/* 141:162 */ return this.puntoDeVenta;\r\n/* 142: */ }", "public String getEmployee()\r\n/* 38: */ {\r\n/* 39:43 */ return this.employee;\r\n/* 40: */ }", "public Ticket getCurrentTicket(){return this.currentTicket;}", "public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }", "public User getEditUser()\r\n/* */ {\r\n/* 172 */ return this.editUser;\r\n/* */ }", "interface Retrieve {}", "public\n Account\n getAccount()\n {\n return itsAccount;\n }", "public Author getAuthor() {\r\n return author;\r\n }", "public Address getAddress() { return address; }", "public Student getStudent() {\n return student;\n }", "protected Object doGetValue() {\n\t\treturn value;\n\t}", "public java.lang.String getGet() {\n return instance.getGet();\n }", "public Ejercicio getEjercicio()\r\n/* 145: */ {\r\n/* 146:183 */ return this.ejercicio;\r\n/* 147: */ }", "T getData() {\n return this.data;\n }", "public void getBookDetails() {\n\t}", "public Payment getTips(){\n return tips;\n }", "public double getPrice(){return price;}", "public boolean isGet();", "public abstract String getAuthor();", "@Override\n\tpublic T somme() {\n\t\treturn val;\n\t}", "public int getAge(){\n return age;\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public double getMontoSolicitado(){\n return localMontoSolicitado;\n }", "public Customer getCustomer()\n {\n return customer;\n }", "public void doGet( )\n {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "public Book getBook() {\n return book;\n }", "public String getStudentLastName(){\r\n return studentLastName.get();\r\n}", "public User getUser(){return this.user;}", "@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}", "public double getMontoDescuento(){\n return localMontoDescuento;\n }", "Object getValor();", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "@Test\r\n public void testGetterMethodSucess() throws Exception {\r\n Method m = GetterMethod.getGetter(Tumor.class, \"tumorId\");\r\n assertNotNull(m);\r\n assertEquals(\"getTumorId\", m.getName());\r\n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "public biz.belcorp.www.canonico.ffvv.vender.TEstadoPedido getEstado(){\n return localEstado;\n }", "public void actualiserAffichage();", "public ServicioCreditoTributario getServicioCreditoTributario()\r\n/* 91: */ {\r\n/* 92:113 */ return this.servicioCreditoTributario;\r\n/* 93: */ }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "String get();", "String get();", "public void getAssignment() {\n \n }", "public Method getGetter() {\n return this.getter;\n }", "T get();" ]
[ "0.67778563", "0.6611409", "0.65378225", "0.61919886", "0.6114965", "0.605731", "0.60508394", "0.60150766", "0.6006089", "0.59976023", "0.5962818", "0.59554064", "0.59329283", "0.5932162", "0.5930377", "0.5930377", "0.5914104", "0.59046274", "0.5904561", "0.58896315", "0.5888694", "0.58877504", "0.5856973", "0.5842629", "0.5841035", "0.58344936", "0.5826357", "0.5820578", "0.58186555", "0.5798266", "0.57923645", "0.5790319", "0.5783103", "0.5773304", "0.5768362", "0.5767309", "0.5758343", "0.5757695", "0.5752599", "0.5752599", "0.5735925", "0.57233745", "0.5722093", "0.57052004", "0.5693764", "0.56675816", "0.56653136", "0.56603605", "0.5660312", "0.56540465", "0.56536925", "0.5653557", "0.56447625", "0.5643339", "0.5643148", "0.5643014", "0.561248", "0.5606188", "0.5586792", "0.55804074", "0.5576103", "0.55760336", "0.55679184", "0.556161", "0.5557814", "0.55543786", "0.55388546", "0.55352247", "0.5533999", "0.55321467", "0.5528286", "0.5525027", "0.5520006", "0.55176383", "0.5516775", "0.55146134", "0.5513884", "0.55050987", "0.55039185", "0.54899627", "0.5489651", "0.5489173", "0.5484004", "0.5479084", "0.5478872", "0.54776454", "0.5477244", "0.5477123", "0.54736656", "0.5468184", "0.5462751", "0.54564035", "0.5454007", "0.5449546", "0.54491675", "0.54439986", "0.5437748", "0.5437748", "0.54375434", "0.54361343", "0.54338086" ]
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); String url = ERROR; try { String code = request.getParameter("txtNewCode"); String userID = request.getParameter("txtNewUserID"); String name = request.getParameter("txtNewName"); String valueStr = request.getParameter("txtNewValue"); String beginDateStr = request.getParameter("txtNewBeginDate"); String closeDateStr = request.getParameter("txtNewCloseDate"); int value = Integer.parseInt(valueStr); SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy"); java.util.Date dateBegin = sdf.parse(beginDateStr); java.util.Date dateClose = sdf.parse(closeDateStr); java.sql.Date beginDate = new Date(dateBegin.getTime()); java.sql.Date closeDate = new Date(dateClose.getTime()); VoucherDTO vou = new VoucherDTO(code, userID, name, value, beginDate, closeDate); VoucherDAO dao = new VoucherDAO(); boolean check = dao.insertVoucher(vou); if(check){ url = SUCCESS; request.setAttribute("CREATESUCCESS", "Create voucher successfull!"); } else { url = FAIL; request.setAttribute("CREATEFAIL", "Create voucher fail!"); } } catch (Exception e) { log("ERROR at CreateVoucherController: " + e.getMessage()); } finally { request.getRequestDispatcher(url).forward(request, response); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }" ]
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.639271", "0.63919044", "0.63919044", "0.63903785", "0.63903785", "0.63903785", "0.63903785", "0.63887113", "0.63887113", "0.6380285", "0.63783026", "0.63781637", "0.637677", "0.63761306", "0.6370491", "0.63626", "0.63626", "0.63614637", "0.6355308", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234", "0.6754993", "0.6754993", "0.67394847", "0.6719924", "0.6716244", "0.67054695", "0.67054695", "0.67012346", "0.6684415", "0.6676695", "0.6675696", "0.6675696", "0.66747975", "0.66747975", "0.6669016", "0.66621476", "0.66621476", "0.66476154", "0.66365504", "0.6615004", "0.66130257", "0.6604073", "0.6570195", "0.6551141", "0.65378064", "0.6536579", "0.65357745", "0.64957607", "0.64672184", "0.6453189", "0.6450501", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.64067316", "0.6395873", "0.6379907", "0.63737476", "0.636021", "0.6356937", "0.63410467", "0.6309468", "0.630619", "0.630263", "0.63014317", "0.6283933", "0.62738425", "0.62680805", "0.62585783", "0.62553537", "0.6249043", "0.62457556", "0.6239428", "0.6239428", "0.62376446", "0.62359244", "0.6215947", "0.62125194", "0.6207376", "0.62067443", "0.6204527", "0.6200444", "0.6199078", "0.61876005", "0.6182614", "0.61762017", "0.61755335", "0.61716276", "0.6170575", "0.6170397", "0.616901" ]
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\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 }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197", "0.6515622", "0.6513045", "0.6512626", "0.6492367", "0.64817846", "0.6477479", "0.64725804", "0.6472099", "0.6469389", "0.6456206", "0.6452577", "0.6452577", "0.6452577", "0.6450273", "0.6450273", "0.6438126", "0.6437522", "0.64339423", "0.64253825", "0.6422238", "0.6420897", "0.6420897", "0.6420897", "0.6407662", "0.64041835", "0.64041835", "0.639631", "0.6395677", "0.6354875", "0.63334197", "0.6324263", "0.62959254", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6280875", "0.6272104", "0.6272104", "0.62711537", "0.62616795", "0.62544584", "0.6251865", "0.62274224", "0.6214439", "0.62137586", "0.621211", "0.620854", "0.62023044", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61638993", "0.61603814", "0.6148914", "0.61465937", "0.61465937", "0.614548", "0.6141879", "0.6136717", "0.61313903", "0.61300284", "0.6124381", "0.6118381", "0.6118128", "0.61063534", "0.60992104", "0.6098801", "0.6096766" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", "0.85282224", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8516995", "0.8512296", "0.8511239", "0.8510324", "0.84964365" ]
0.0
-1
Created by andycheng on 2016/3/26.
public interface IBasePresenter { void subscribeCallbacks(); void unSubscribeCallbacks(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\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}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\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}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public final void mo51373a() {\n }", "private void poetries() {\n\n\t}", "public void mo38117a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void init() {}", "@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\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void initialize() { \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "Constructor() {\r\n\t\t \r\n\t }", "private void init() {\n\n\n\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo55254a() {\n }", "public void mo6081a() {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n public void function()\n {\n }" ]
[ "0.6169699", "0.6029506", "0.5983016", "0.5909017", "0.5909017", "0.58916485", "0.58569443", "0.582393", "0.5803783", "0.57937586", "0.57829154", "0.57368356", "0.57324016", "0.5707139", "0.5692479", "0.5688311", "0.568669", "0.568669", "0.568669", "0.568669", "0.568669", "0.56724286", "0.5661081", "0.56545633", "0.56373787", "0.5633685", "0.5632181", "0.56318337", "0.56256247", "0.561592", "0.5608014", "0.560166", "0.5598258", "0.55933464", "0.55933464", "0.5591242", "0.5586895", "0.5582777", "0.55726403", "0.55726403", "0.55726403", "0.55669457", "0.55669457", "0.55669457", "0.55630755", "0.55491245", "0.55491245", "0.55462587", "0.553911", "0.5537289", "0.5536558", "0.5536558", "0.5536558", "0.55268985", "0.5524403", "0.55185235", "0.55174494", "0.55174494", "0.5511899", "0.5511143", "0.5511143", "0.5511143", "0.5511143", "0.5511143", "0.5511143", "0.55103266", "0.5500993", "0.5498489", "0.54817545", "0.5478819", "0.5478744", "0.54729724", "0.5470692", "0.54612964", "0.54597664", "0.5457675", "0.5456798", "0.5456798", "0.5456798", "0.5456798", "0.5456798", "0.5456798", "0.5456798", "0.54429495", "0.5439805", "0.54162866", "0.54143864", "0.53974885", "0.53892654", "0.5384815", "0.5376225", "0.5375211", "0.5371373", "0.5371066", "0.53647685", "0.53606176", "0.5358097", "0.5351701", "0.53483707", "0.53382117", "0.53346556" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) { switch (arg2) { case 0: areaid = "07"; break; case 1: areaid = "23"; break; default: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onNothingSelected(AdapterView<?> arg0) { }
{ "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 onTouch(View v, MotionEvent event) { dpd_dob.show(); 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 onTouch(View v, MotionEvent event) { dpd_expireDate.show(); 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 onTouch(View v, MotionEvent event) { dpd_issueDate.show(); 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 void onCheckedChanged(RadioGroup group, int checkedId) { if (checkedId == addpass_male.getId()) { sex = addpass_male.getText().toString(); } else if (checkedId == addpass_female.getId()) { sex = addpass_female.getText().toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); Button actionbar_back_btn = (Button)getActivity().findViewById(R.id.actionbar_back_btn); actionbar_back_btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub /*YwblFragment ywbl = new YwblFragment(); getFragmentManager().beginTransaction().replace(R.id.content, ywbl).commit(); */ getFragmentManager().popBackStack(); } }); actionbar_back_btn.setVisibility(View.VISIBLE); TextView actionbar_title = (TextView)getActivity().findViewById(R.id.actionbar_title); actionbar_title.setText("添加证件"); }
{ "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 /YwblFragment ywbl = new YwblFragment(); getFragmentManager().beginTransaction().replace(R.id.content, ywbl).commit();
@Override public void onClick(View v) { getFragmentManager().popBackStack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onCreate(Bundle savedInstanceState) {\n setTheme(R.style.AppTheme);\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n writedb s=new writedb(this);\n s.wr(path);\n init();\n zhuye zhuye=new zhuye();\n FragmentManager f=getSupportFragmentManager();\n f.beginTransaction().replace(R.id.frame_content,zhuye).commit();\n\n\n }", "@Override \n public void onClick(View v) \n {\n \tShowFragmentXXH2 demoFragment = new ShowFragmentXXH2();\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction transaction =fragmentManager.beginTransaction();\n transaction.replace(R.id.fragment_container, demoFragment);\n transaction.commit();\n \n }", "@Override\n public void onClick(View v){\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.frame_layout,new final_confirmation());\n transaction.commit();\n }", "@Override\r\n public void changeFragment() {\r\n fm.beginTransaction()\r\n .replace(R.id.fragmentContainer, new ListWonderFragment())\r\n .commit();\r\n }", "@Override \n public void onClick(View v) \n {\n \tShowFragmentXXH1 demoFragment = new ShowFragmentXXH1();\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction transaction =fragmentManager.beginTransaction();\n transaction.replace(R.id.fragment_container, demoFragment);\n transaction.commit();\n \n }", "@Override\n public void onClick(View v) {\n android.app.Fragment onjF = null;\n onjF = new BlankFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.fragment,onjF).commit();\n }", "@Override\n public void onClick(View v) {\n CompteEnsg nextFrag = new CompteEnsg();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_work_history, container, false);\n addwork=view.findViewById(R.id.btnaddwork);\n nextdu=view.findViewById(R.id.nextedu);\n l12=view.findViewById(R.id.workexper2);\n nextdu.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n\n\n\n\n\n\n Fragment someFragment = new EducationFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.fragment_container, someFragment ); // give your fragment container id in first parameter\n transaction.addToBackStack(null); // if written, this transaction will be added to backstack\n transaction.commit();\n }\n });\n addwork.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addwork.setVisibility(View.INVISIBLE);\n l12.setVisibility(View.VISIBLE);\n }\n });\n return view;\n }", "private void toXW() {\n if (fragment_XW == null) {\n fragment_XW = new Fragment_XW();\n fragmenttransaction.add(R.id.frame_content, fragment_XW);\n } else {\n fragmenttransaction.show(fragment_XW);\n }\n }", "@AfterViews\n void syncViews() {\n\n setSupportActionBar(mToolbar);\n\n if (mFragmentNumber == REPOS_FRAGMENT_NUMBER) {\n currentFragment = RepoDataFragment_.instantiate(this, RepoDataFragment_.class.getName());\n }\n\n changeFrament(currentFragment);\n\n //mBottomBar = BottomBar.attachShy(mMainCoordinator, mNestedScrollView, getIntent().getExtras());\n\n mBottomBar = BottomBar.attach(this, getIntent().getExtras());\n\n mBottomBar.setItemsFromMenu(R.menu.main_bottom_menu, this);\n }", "private void refreshFragmentAfterdownloadedData() {\n Fragment fragmentToday = new FragmentToday();\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.replace(R.id.fragmentToday, fragmentToday, \"FragmentToday\");\n ft.commit();\n\n Fragment fragment5days = new Fragment5days();\n FragmentTransaction ft5days = getSupportFragmentManager().beginTransaction();\n ft5days.replace(R.id.fragment5days, fragment5days, \"Fragment5days\");\n ft5days.commit();\n }", "@Override\n public void gonearbypage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new NearbyFragment()).addToBackStack(\"Homepage\").commit();\n }", "private void fragmentChange(){\n HCFragment newFragment = new HCFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.hc_layout, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "@Override\n public void onClick(View v) {\n CompteEtudiant nextFrag = new CompteEtudiant();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\n }", "private void defaultFragment() {\n\n Fragment fragment = new Helpline();\n FragmentManager fm = getFragmentManager();\n //TODO: try this with add\n fm.beginTransaction().replace(R.id.content_frame,fragment).commit();\n }", "private void loadFragment(String name) {\n FragmentTransaction fragmentTransaction = MainActivity.fm.beginTransaction();\n // replace the FrameLayout with the new Fragment\n fragmentTransaction.replace(R.id.mainFrameLayout, MainActivity.currentFragment);\n fragmentTransaction.addToBackStack(name);\n fragmentTransaction.commit();\n }", "private void loadFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(com.limkee1.R.id.flContent, fragment);\n fragmentTransaction.commit();\n\n }", "private void toZB() {\n if (zhiBoFragment == null) {\n zhiBoFragment = new ZhiBoFragment();\n fragmenttransaction.add(R.id.frame_content, zhiBoFragment);\n } else {\n fragmenttransaction.show(zhiBoFragment);\n }\n }", "@Override\n public void onClick(View v){\n SignUpFragment fragment = new SignUpFragment();\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.fragmentHolder,fragment,\"Sign Up\").commit();\n }", "private void showHome(){\n fragment = new HomeFragment();\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.mainLayout, fragment, fragment.getTag()).commit();\n }", "private void setFragmentMovie(Fragment fragmentMovie){\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentMovie)\n .addToBackStack(null)\n .commit();\n }", "public void RitiroLibri()\r\n {\r\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Ritiro Libri\");\r\n FragmentManager fragmentManager = getFragmentManager();\r\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\r\n fragmentTransaction.replace(R.id.main_conteiner, new SistudiaFragmentRitiroLibri());\r\n fragmentTransaction.commit();\r\n }", "public void replaceFragment(int wordPosition){\n // access the fragment manager and begin transaction\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n\n // create word fragment and get the word from the recycler view fragment\n // word position is the list position of the word in the list of words\n WordFragment wordFragment = new WordFragment();\n Bundle args = new Bundle();\n args.putInt(WordFragment.WORD_INDEX, wordPosition);\n wordFragment.setArguments(args);\n // replace the word list with the word fragment\n ft.replace(R.id.fragment_container_top, wordFragment);\n ft.addToBackStack(null);\n\n ft.commit();\n }", "private void fillUpFragment() {\n try {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n sensorFragment = getSensorFragment();\n transaction.replace(R.id.sensor_frame, sensorFragment, getSensorName());\n transaction.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onClick(View view) {\n Fragment newCase=new TripNoteAddFragment();\n FragmentTransaction transaction=getFragmentManager().beginTransaction();\n transaction.replace(R.id.content_frames,newCase); // give your fragment container id in first parameter\n transaction.addToBackStack(null); // if written, this transaction will be added to backstack\n transaction.commit();\n }", "@Override\n public void onSwipeRight() {\n getFragmentManager().beginTransaction().remove(LongAddFragment.this).commit();\n super.onSwipeRight();\n }", "private void displayCareerFragment() {\n getSupportFragmentManager().beginTransaction().replace(R.id.container, UserProfileCareerFragment.getInstance()).commit();\n\n }", "@Override\n public void onClick(View v) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n Fragment fragment = new FavoriteFragment();\n ft.replace(R.id.layout_fragment, fragment, \"FavoriteFragment\");\n ft.commit();\n }", "private void changeFragment() {\n TeacherAddNotificationFragment fragment = new TeacherAddNotificationFragment();\n // Put classIds to bundle and set bundle to fragment\n Bundle bundle = new Bundle();\n bundle.putString(\"ListIDs\", classesIds);\n fragment.setArguments(bundle);\n\n // Replace fragment\n getFragmentManager().beginTransaction().replace(R.id.main, fragment)\n .addToBackStack(null)\n .commit();\n }", "private void switchFragment(int pos) {\n Fragment fragment=bottomBarList.get(pos);\n String backStateName = fragment.getClass().getName();\n String fragmentTag = backStateName;\n\n FragmentManager manager = getSupportFragmentManager();\n boolean fragmentPopped = manager.popBackStackImmediate (backStateName, 0);\n\n if (!fragmentPopped && manager.findFragmentByTag(fragmentTag) == null){ //fragment not in back stack, create it.\n FragmentTransaction ft = manager.beginTransaction();\n ft.replace(R.id.bottomNavFrameLayout, fragment, fragmentTag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n ft.addToBackStack(backStateName);\n ft.commit();\n }\n\n\n }", "@Override\n public void onClick(View v) {\n FragmentTransaction FT = getSupportFragmentManager().beginTransaction();\n FT.replace(R.id.Frame_Fragments, new simplefragment());\n FT.commit();\n\n button2.setVisibility(View.GONE);\n button.setVisibility(View.VISIBLE);\n }", "@Override\n public void onClick(View v) {\n previewLayout.setVisibility(View.GONE);\n\n //Search for the old fragment\n YouTubePlayerFragment fragment = (YouTubePlayerFragment) mActivity.getFragmentManager().findFragmentByTag(YOUTUBE_FRAGMENT_NAME);\n if (fragment != null) {\n //If it exists, then remove it first\n try {\n View parentView = (View) fragment.getView().getParent();\n View thumbnailViewLayout = parentView.findViewById(R.id.detailViewYoutubeThumbnailLayout);\n thumbnailViewLayout.setVisibility(View.VISIBLE);\n } catch (Exception e) {\n //log and ignore this since the view parent could be out of scope\n Log.d(Constants.TAG, \"Could not get parent of youtube fragment\");\n }\n\n FragmentTransaction transaction = mActivity.getFragmentManager().beginTransaction();\n transaction.remove(fragment);\n transaction.commit();\n mActivity.getFragmentManager().executePendingTransactions();\n } else {\n //Create it if this is the first time\n fragment = YouTubePlayerFragment.newInstance();\n }\n\n YouTubePlayer.OnInitializedListener listener = new YouTubePlayer.OnInitializedListener() {\n @Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer youTubePlayer, boolean wasRestored) {\n if (!wasRestored) {\n youTubePlayer.loadVideo(note.getYoutubeVideoTag());\n }\n }\n\n @Override\n public void onInitializationFailure(YouTubePlayer.Provider provider, YouTubeInitializationResult youTubeInitializationResult) {\n if (youTubeInitializationResult.isUserRecoverableError()) {\n youTubeInitializationResult.getErrorDialog(mActivity, YOUTUBE_RECOVERY_DIALOG_REQUEST_CODE).show();\n } else {\n String errorMessage = \"Could not initialize video player for the youtube video.\";\n Toast.makeText(mActivity, errorMessage, Toast.LENGTH_LONG).show();\n }\n }\n };\n\n FragmentTransaction transaction = mActivity.getFragmentManager().beginTransaction();\n transaction.add(framelayoutId, fragment, YOUTUBE_FRAGMENT_NAME);\n transaction.commit();\n fragment.initialize(Constants.GOOGLE_API_YOUTUBE, listener);\n }", "@Override\n public void handleOnBackPressed() {\n F4_Muell goBack = new F4_Muell();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n //altest Fragment in mainLayout wird ersetzt mit dem neuem Fragment\n transaction.replace(R.id.mainLayoutQuestionActivity, goBack);\n transaction.commit();\n }", "protected void replaceLoginFragment() {\n\n// fragmentManager\n// .beginTransaction()\n// .setCustomAnimations(R.anim.left_enter, R.anim.right_out)\n// .replace(R.id.frameContainer, new Login_Fragment(),\n// Utils.Login_Fragment).commit();\n }", "@Override\n public void onClick(View v) {\n Fragment f = new RecordingFragment();\n mng.beginTransaction().replace(R.id.content_frame, f).addToBackStack(null).commit();\n }", "private void openTeacherCheck() {\n FragmentTransaction fr1 = getFragmentManager().beginTransaction().addToBackStack(\"Tag\");\n fr1.replace(R.id.fragment_container, new Fragment_View_In_Out());\n fr1.commit();\n }", "private void setFragment(Fragment fragments) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.framelayout,fragments);\n fragmentTransaction.commit();\n }", "public void loadFragment(Fragment fragment) { Animation connectingAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.slide_up);\n//\n FragmentTransaction transaction = getActivity().getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.nowShowingFrame, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }", "public void replaceFragment(int id_content, Fragment fragment) {\r\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\r\n transaction.replace(id_content, fragment);\r\n transaction.commit();\r\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.main_frame, fragment);\n// fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }", "public void loadNewEdit(){\n fabAdd.hide();\n fabSave.show();\n\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragContainer1,new CourseEditFragment(),\"EDIT\")\n .addToBackStack(\"EDIT\")\n .commit();\n }", "private void setFragmentTv(Fragment fragmentTv) {\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentTv)\n .addToBackStack(null)\n .commit();\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, fragment);\n fragmentTransaction.commit();\n\n }", "private void placeNewFragment(Fragment f) {\r\n\t\tFragmentManager manager = getSupportFragmentManager();\r\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\r\n fragmentTransaction.replace(R.id.fragmentHolder, f);\r\n fragmentTransaction.addToBackStack(null);\r\n fragmentTransaction.commit();\r\n\t}", "private void toHQ() {\n if (hqFragment == null) {\n hqFragment = new HQFragment();\n fragmenttransaction.add(R.id.frame_content, hqFragment);\n } else {\n fragmenttransaction.show(hqFragment);\n }\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_layout, fragment);\n fragmentTransaction.commit();\n\n }", "protected void replaceLoginFragment() {\n\n\n }", "@Override\n public void gofavouritepage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new FavouriteFragment()).addToBackStack(\"Homepage\").commit();\n }", "public void switchToAddFragment() {\n FragmentManager manager = getSupportFragmentManager();\n manager.beginTransaction().replace(R.id.fragment_container, new AddActivity()).commit();\n }", "public void replaceFragment(Fragment destFragment)\n {\n FragmentManager fragmentManager = this.getSupportFragmentManager();\n\n // Begin Fragment transaction.\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n // Replace the layout holder with the required Fragment object.\n fragmentTransaction.replace(R.id.content_frame, destFragment);\n\n // Commit the Fragment replace action.\n fragmentTransaction.addToBackStack(null).commit();\n }", "@Override\n public void run() {\n confirmImage.setVisibility(View.GONE);\n activity.replaceFragment(new Fragment_Buyer_Orders());\n\n }", "private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashbord_, container, false);\n Button button = view.findViewById(R.id.next);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Fragment fragment = new RightDownFlow_Fragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.mainlayout, fragment ); // give your fragment container id in first parameter\n transaction.addToBackStack(null); // if written, this transaction will be added to backstack\n transaction.commit();\n\n }\n });\n return view;\n }", "@Override\n public void onClick(View view) {\n Fragment fragment = null;\n fragment = new CommentPeopleDetail();\n Bundle bundle = new Bundle();\n bundle.putString(\"queid\", details.getQueId());\n\n if (fragment != null) {\n fragment.setArguments(bundle);\n FragmentManager fm = ((FragmentActivity) context).getSupportFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n transaction.replace(R.id.frame_contain_layout, fragment);\n transaction.commit();\n }\n }", "public void onClick(View v) {\n\n ProductFragment itemListFragment = ((MainActivity)getActivity()).getItemListFragment();\n itemListFragment.subtractFromTotalWeight(quantity, weight); //subtracting old weight before adding new weight\n itemListFragment.subtractFromTotalPrice(quantity, price); //subtracting old price before adding new price\n\n Integer newQuantity = (Integer.parseInt((String) ((TextView) singleProductDescrView.findViewById(R.id.updatingQuantityDescr)).getText()));\n quantity = newQuantity;\n android.support.v4.app.FragmentManager fm = getFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n updateItemInList();\n ft.replace(R.id.container, ((MainActivity)getActivity()).getItemListFragment(), \"List\");\n ft.commit();\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ((HomePengajuan) getActivity()).setActionBarTitle(\"Menu\");\n View rootView = inflater.inflate(R.layout.fragment_volunteer_home, container, false);\n final FragmentTransaction ft = getFragmentManager().beginTransaction();\n\n mSampahku = rootView.findViewById(R.id.cv_sampahku);\n mMemasukan = rootView.findViewById(R.id.cv_memasukan);\n mBankSampah = rootView.findViewById(R.id.cv_bank_sampah);\n mLeaderboard=rootView.findViewById(R.id.cv_leaderboard);\n\n mSampahku.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ft.replace(R.id.container_volunteer, new LihatPengajuan()).commit();\n }\n });\n mMemasukan.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ft.replace(R.id.container_volunteer, new MemasukanPengajuan()).commit();\n }\n });\n mBankSampah.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ft.replace(R.id.container_volunteer, new LihatDaftarPakan()).commit();\n }\n });\n\n mLeaderboard.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ft.replace(R.id.container_volunteer, new Volunteer_leaderboard()).commit();\n }\n });\n\n\n return rootView;\n }", "public void switchToDescriptionPanel() {\n FragmentManager manager = getActivity().getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.replace(R.id.container, new DescriptionPanelFragment());\n transaction.commit();\n }", "public void onClick(View v) {\n android.support.v4.app.FragmentManager fm = getFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ProductFragment itemListFragment = ((MainActivity)getActivity()).getItemListFragment();\n ft.replace(R.id.container, itemListFragment, \"List\");\n ft.commit();\n }", "public static void Fragment_en_Framelayout(Activity act ,int framelayoutid,Fragment frag){\n }", "public static void replaceFragmentHistory(Fragment fragment, AppCompatActivity context) {\n /* if (isUsedBundle) {\n Bundle args = new Bundle();\n args.putInt(bundleParameterName, bundleValue);\n fragment.setArguments(args);\n }*/\n if (context != null) {\n try {\n FragmentTransaction transaction =\n context.getSupportFragmentManager().beginTransaction();\n transaction.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_in_right);\n\n transaction.replace(R.id.menuContainer, fragment);\n transaction.addToBackStack(null);\n transaction.commitAllowingStateLoss();\n\n } catch (IllegalStateException e) {\n e.printStackTrace();\n context.finish();\n }\n }\n }", "@Override\n public void onBoomButtonClick(int index) {\n fragment = null;\n fragmentClass = TvShowFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"TV Show\");\n ((AppCompatActivity)getActivity()).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#660099\")));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getActivity().getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.parseColor(\"#660099\"));\n }\n mNavigationView = (NavigationView)getActivity().findViewById(R.id.nvView);\n Menu nv = mNavigationView.getMenu();\n MenuItem item = nv.findItem(R.id.nav_horloge_atomique_fragment);\n item.setChecked(true);\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n }", "@Override\n public void onComplete(@NonNull Task<Void> task)\n {\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.fragment_container, new Fragment_VacatureOmschrijving()).addToBackStack(\"tag\").commit();\n Toast.makeText(getActivity(), \"Uw sollicitatie is succesvol verzonden\", Toast.LENGTH_LONG).show();\n }", "private void removeLessonFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\tFragment fragment = (Fragment) fm\n\t\t\t\t.findFragmentById(R.id.detailFragmentContainer);\n\t\tif (fragment != null) {\n\t\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\t\tft.remove(fragment);\n\t\t\tft.commit();\n\t\t}\n\t}", "private void loadBookPageFragment() {\n\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.addToBackStack(\"ListView\"); // enables to press \"return\" and go back to the list view\n transaction.replace(R.id.main_fragment_container, new BookPageFragment());\n transaction.commit();\n }", "private void loadFragment(Fragment fragment, String tag) {\n\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.frame_tut, fragment, tag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n ft.commit();\n }", "protected void switchContent(Fragment to) {\n if (mFragment != to) {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.activity_my_movie_content,to).commitAllowingStateLoss();\n mFragment = to;\n }\n }", "@Override\n public void onClick(View v) {\n\n Bundle bundle = new Bundle();\n bundle.putString(\"tglawal\",tglawal);\n bundle.putString(\"tglakhir\",tglakhir);\n\n\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n select_tanggal_report_akumulasi select_tanggal_report_akumulasi = new select_tanggal_report_akumulasi();\n select_tanggal_report_akumulasi.setArguments(bundle);\n\n fragmentTransaction.replace(R.id.layout, select_tanggal_report_akumulasi);\n getFragmentManager().popBackStackImmediate();\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n//\n }", "@Override\n public void onBoomButtonClick(int index) {\n fragment = null;\n fragmentClass = HorlogeAtomiqueFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Horloge\");\n ((AppCompatActivity)getActivity()).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#660099\")));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getActivity().getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.parseColor(\"#660099\"));\n }\n mNavigationView = (NavigationView)getActivity().findViewById(R.id.nvView);\n Menu nv = mNavigationView.getMenu();\n MenuItem item = nv.findItem(R.id.nav_horloge_atomique_fragment);\n item.setChecked(true);\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n }", "@Override\n public void onRegisterClick() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n if (fm.findFragmentByTag(TAG_FRG_REG_1) != null)\n ft.hide(fm.findFragmentByTag(TAG_FRG_REG_1));\n ft.add(site.getId(), new ControladorRegistro(),TAG_FRG_REG_12);\n ft.addToBackStack(TAG_FRG_REG_12);\n ft.commit();\n\n }", "@Override\n public void onOkclick() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n Fragment reg = fm.findFragmentByTag(TAG_FRG_REG_12);\n ft.remove(reg);\n ft.commit();\n\n }", "public void onUPP()\r\n {\r\n Fragment frag = getSupportFragmentManager().findFragmentById(R.id.fragmentSad);\r\n// //android.app.FragmentManager fm = getFragmentManager();\r\n// FragmentTransaction ft = getFragmentManager().beginTransaction();\r\n// ft.remove(frag);\r\n// ft.commit();\r\n//}\r\n\r\n FragmentManager fm = getSupportFragmentManager();\r\n fm.beginTransaction()\r\n .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)\r\n .show(frag)\r\n .commit();\r\n\r\n }", "@SuppressLint(\"ResourceType\")\n @Override\n public void onClick(View view) {\n\n FrameLayout fragmentLayout = new FrameLayout(context);\n fragmentLayout.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));\n fragmentLayout.setId(3);\n main.setContentView(fragmentLayout);\n main.getSupportFragmentManager()\n .beginTransaction().addToBackStack(null)\n .add(3, new DetailFragment(dataset.get(position).getNumber(),\n dataset.get(position).getName(), dataset.get(position).getHeight()))\n .commit();\n }", "@Override\n public void ChangeFragment(int id) {\n Fragment mFragment = null;\n if (id == 0) {\n mFragment = new RegisterFragment().newInstance();\n } else if (id == 1) {\n mFragment = new ForgotPasswordFragment().newInstance();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.first_frag_holder, mFragment)\n .commit();\n }", "private void updateFragment() {\n Fragment fragment = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT);\n if (fragment != null) {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.detach(fragment).attach(fragment).commit();\n }\n }", "@Override\n public void onClick(View view) {\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, new CadastrarFragments())\n .commitNow();\n }", "public void replaceFragment1(Fragment destFragment)\n {\n FragmentManager fragmentManager = this.getSupportFragmentManager();\n\n // Begin Fragment transaction.\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n // Replace the layout holder with the required Fragment object.\n fragmentTransaction.replace(R.id.UpcomingFrame, destFragment);\n\n // Commit the Fragment replace action.\n fragmentTransaction.commit();\n }", "private void replaceFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n android.support.v4.app.FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.addToBackStack(null);\n if (fragment == listFragment) {\n transaction.replace(R.id.fragment_content, fragment, LIST_FRAGMENT_TAG);\n } else if (fragment == supportMapFragment) {\n transaction.replace(R.id.fragment_content, fragment, SUPPORT_FRAGMENT_TAG);\n }\n transaction.commit();\n }", "private void loadFragment(Fragment fragment){\n FragmentTransaction trans = getSupportFragmentManager().beginTransaction();\n trans.replace(R.id.frame_event, fragment);\n trans.commit();\n\n appbar.setExpanded(true);\n }", "private void replaceFragment(int pos) {\n Fragment fragment = null;\n switch (pos) {\n case 0:\n //mis tarjetas\n fragment = new CardsActivity();\n break;\n case 1:\n //buscador online\n fragment = new CardsActivityOnline();\n break;\n case 2:\n //active camera\n Intent it = new Intent(this, com.google.zxing.client.android.CaptureActivity.class);\n startActivityForResult(it, 0);\n break;\n case 3:\n ParseUser.getCurrentUser().logOut();\n finish();\n onBackPressed();\n break;\n default:\n //fragment = new CardsActivity();\n break;\n }\n\n if(null!=fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.main_content, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n }", "@Override\n public void onClick(View v) {\n FragmentManager fragmentManager = ((AppCompatActivity) getContext()).getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.rel_main_parentAllView, new FragmentFavoritesApp());\n transaction.commit();\n }", "@Override\n public void onClick(View v) {\n FragmentTransaction FT = getSupportFragmentManager().beginTransaction();\n //FT.add(R.id.Frame_Fragments,new Another Fragment());\n if (simplefragment2.isAdded()){\n FT.show(simplefragment2);\n FT.remove(simplefragment);\n Toast.makeText(getApplicationContext(), \"Fragment di tambahkan sebelumnya\", Toast.LENGTH_SHORT).show();\n }\n else {\n FT.replace(R.id.Frame_Fragments,simplefragment2);\n }\n FT.addToBackStack(null);\n FT.commit();\n\n button2.setVisibility(View.VISIBLE);\n button.setVisibility(View.GONE);\n }", "public void changeFragment(Fragment nextFragment) {\n actualFragment = nextFragment;\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.mainActivityFrameLayout, nextFragment, nextFragment.getClass()\n .getSimpleName());\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void onViewSelected (int wordPosition) {\n // replace the fragment\n replaceFragment(wordPosition);\n }", "private void loadFragment(Fragment fragment)\n {\n if(fragment != null)\n {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.frameLayout, fragment);\n fragmentTransaction.addToBackStack(\"fragment\");\n fragmentTransaction.commit();\n }\n }", "public void openLivrosParaLer(){\n\n //fazendo a transição\n FragmentTransaction ft = fm.beginTransaction();\n\n //trocando um layout por outro\n ft.replace(R.id.frame_layout, new LerFragment());\n\n //mandando as alterações\n\n ft.commit();\n }", "public void replaceFragment(Fragment fragment, String TAG) {\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.popBackStack(TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n FragmentTransaction fragmentTransaction = fragmentManager .beginTransaction();\n fragmentTransaction .replace(R.id.content_restaurant_main_cl_fragment, fragment);\n fragmentTransaction .addToBackStack(TAG);\n fragmentTransaction .commit();\n//\n// getSupportFragmentManager()\n// .beginTransaction()\n// .disallowAddToBackStack()\n//// .setCustomAnimations(R.anim.slide_left, R.anim.slide_right)\n// .replace(R.id.content_restaurant_main_cl_fragment, fragment, TAG)\n// .commit();\n }", "public void replaceFragment(Fragment destFragment)\n {\n FragmentManager fragmentManager = this.getSupportFragmentManager();\n\n // Begin Fragment transaction.\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n // Replace the layout holder with the required Fragment object.\n fragmentTransaction.replace(R.id.MissedFrame, destFragment);\n\n // Commit the Fragment replace action.\n fragmentTransaction.commit();\n }", "@Override\n public void onSwap(String FragmentName, Bundle bundle) {\n\n Fragment fragmentToSwap = null;\n FragmentTransaction fragmentTransaction = FM.beginTransaction();\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n\n getSupportActionBar().setTitle(\"\");\n try {\n switch (FragmentName) {\n case \"Popular\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"TopRated\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"Upcoming\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"Detail\":\n fragmentToSwap = new DetailMovieFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n fragmentTransaction.addToBackStack(\"MoviesListFragment\");\n\n break;\n }\n fragmentTransaction.commit();\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "public void goToPortfolioFragment(){\n Fragment fragment = new PortfolioFragment();\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n transaction.replace(R.id.contentFragment, fragment);\n transaction.commit();\n }", "@Override\n public void onClick(View v) {\n Fragment newFragment = new NewMovimientoFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.frame_container, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.activity_list,container);\n Button button = (Button) rootView.findViewById(R.id.fragment_button);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n android.app.FragmentManager fragmentManager = getActivity().getFragmentManager();\n android.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n Bundle bundle = new Bundle();\n bundle.putString(\"main\", null);\n fragmentTransaction.replace(R.id.fragment_container_framelayout, null);\n fragmentTransaction.addToBackStack(\"next\");\n fragmentTransaction.commit();\n }\n });\n return rootView;\n }", "private void changeFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.flContainer, fragment);\n fragmentTransaction.commit();\n closeDrawer();\n }", "@Override\n public void onBoomButtonClick(int index) {\n if (isNetworkAvailable(getActivity().getApplicationContext())) {\n fragment = null;\n fragmentClass = EbayFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"ebay\");\n ((AppCompatActivity)getActivity()).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#660099\")));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getActivity().getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.parseColor(\"#660099\"));\n }\n mNavigationView = (NavigationView)getActivity().findViewById(R.id.nvView);\n Menu nv = mNavigationView.getMenu();\n MenuItem item = nv.findItem(R.id.nav_ebay_fragment);\n item.setChecked(true);\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n }else {\n Toast.makeText(getActivity().getApplicationContext(),\"Aucune connexion Internet\",Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v=inflater.inflate(R.layout.fragment_add_simple_dish, container, false);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(R.string.actionBar_addDish);\n data=sData.getdata();\n\n newDish=sData.getdata().getNewDish();\n name= (EditText)v.findViewById(R.id.nd_et_1);\n vegan=(CheckBox)v.findViewById(R.id.nd_ck_1);\n vegetarian=(CheckBox)v.findViewById(R.id.nd_ck_2);\n hot=(CheckBox)v.findViewById(R.id.nd_ck_3);\n glutenFree=(CheckBox)v.findViewById(R.id.nd_ck_4);\n\n TextView add_tags= (TextView) v.findViewById(R.id.editTags);\n add_tags.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Simple_menu_add_tags tags_frag=new Simple_menu_add_tags();\n getFragmentManager().beginTransaction().addToBackStack(null).replace(R.id.fragment_holder,tags_frag).commit();\n\n }\n });\n //showTags(v);\n Button add= (Button)v.findViewById(R.id.ad_add);\n add.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n newDish.setName(name.getText().toString());\n newDish.setVegan(vegan.isChecked());\n newDish.setGlutenFree(glutenFree.isChecked());\n newDish.setVegetarian(vegetarian.isChecked());\n newDish.setSpicy(hot.isChecked());\n\n FirebaseDatabase db=FirebaseDatabase.getInstance();\n DatabaseReference ref=db.getReference(\"course\");\n ref.child(newDish.getCid()).setValue(newDish.toMap()).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n getFragmentManager().popBackStack();\n }\n });\n\n\n\n\n\n }\n });\n Spinner cuisine = (Spinner) v.findViewById(R.id.nd_type);\n cuisine.setAdapter(new ArrayAdapter<String>(getContext(),android.R.layout.simple_spinner_dropdown_item,getResources().getStringArray(R.array.cuisine)));\n Spinner type = (Spinner) v.findViewById(R.id.nd_type_2);\n type.setAdapter(new ArrayAdapter<String>(getContext(),android.R.layout.simple_spinner_dropdown_item,getResources().getStringArray(R.array.type)));\n view=v;\n return v;\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "private void setupFragments() {\n FragmentManager fm = getSupportFragmentManager();\n sb_frag = (StatusBar)fm.findFragmentById(R.id.statusmarket);\n\n if(sb_frag == null)\n {\n sb_frag = new StatusBar();\n fm.beginTransaction().add(R.id.statusmarket, sb_frag).commit();\n }\n sb_frag.setupInitial(currentPlayer);\n\n ai_frag = (AreaInfo) fm.findFragmentById(R.id.overviewlayout);\n\n //try find the fragment, if it doesnt exist then create it\n if (ai_frag == null) {\n //create the fragment if not exist\n ai_frag = new AreaInfo();\n fm.beginTransaction().add(R.id.overviewlayout, ai_frag).commit();\n }\n\n ai_frag.setCurrentArea(null);\n\n\n\n\n }", "public void goAddFriends (View view){\n Fragment newFragment = new AddFriendsFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.fragment_container, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_category);\n getSupportFragmentManager().beginTransaction().\n replace(R.id.container, new HistoricalHeritageFragment())\n .commit();\n }", "private void initFragment(Fragment newsFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.fl_news, newsFragment);\n transaction.commit();\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_home, null);\n scheduleButton = (Button) view.findViewById(R.id.scheduleButton);\n postButton = (Button) view.findViewById(R.id.postButton);\n advertisementButton = (Button) view.findViewById(R.id.advertisementButton);\n\n scheduleButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n\n // ((MainActivity) getActivity()).replaceFragment(Plan.newInstance());\n\n }\n });\n\n postButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n\n // ((MainActivity) getActivity()).replaceFragment(CourseFragment.newInstance());\n }\n });\n\n// advertisementButton.setOnClickListener(new View.OnClickListener(){\n//\n// @Override\n// public void onClick(View view) {\n//\n// ((MainActivity)getActivity()).replaceFragment(NewFragment.newInstance());\n// }\n// });\n\n\n return view;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n getFragmentManager().beginTransaction().replace(android.R.id.content, new PreferenciasFragment()).commit();\n }" ]
[ "0.61488515", "0.60401726", "0.6002299", "0.5992794", "0.5970499", "0.583852", "0.58372456", "0.5786348", "0.5742841", "0.56921405", "0.56564844", "0.56393534", "0.5630582", "0.5625028", "0.5600964", "0.5576771", "0.55695033", "0.55683523", "0.5562156", "0.55451757", "0.5541117", "0.55261004", "0.5525518", "0.5514215", "0.55009055", "0.5497149", "0.5446806", "0.54289", "0.54035395", "0.5389518", "0.53684664", "0.53657806", "0.5357536", "0.53547215", "0.5345166", "0.53418404", "0.53301775", "0.53089833", "0.5305567", "0.52938604", "0.5271142", "0.5270126", "0.526791", "0.52383685", "0.5232557", "0.52319187", "0.5221484", "0.5208497", "0.51934403", "0.51913947", "0.51833725", "0.5156346", "0.51404834", "0.5139222", "0.5128268", "0.5125539", "0.51199013", "0.5111126", "0.509568", "0.5095474", "0.508964", "0.50859517", "0.50857615", "0.5084292", "0.50780576", "0.5074434", "0.5068837", "0.5068558", "0.50562394", "0.50551915", "0.50517356", "0.50513744", "0.50499666", "0.5048749", "0.50394416", "0.5037975", "0.50314397", "0.50304663", "0.5029592", "0.5029021", "0.5028881", "0.50278306", "0.5026864", "0.50241697", "0.5020722", "0.5017849", "0.5016926", "0.5011027", "0.50086063", "0.50065255", "0.50031334", "0.49984547", "0.49941665", "0.49907953", "0.49896887", "0.49864227", "0.49852505", "0.49804", "0.497844", "0.49775836", "0.4972582" ]
0.0
-1
TODO Autogenerated method stub
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { setHasOptionsMenu(true); return inflater.inflate(R.layout.activity_addpass, container, 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 void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); if (CheckNetwork.connected(this)){ init(); addpass_bundle_btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub if (addpass_passNumber.getText().toString().equals("")|| addpass_surName.getText().toString().equals("")|| addpass_givenName.getText().toString().equals("")|| addpass_dob.getText().toString().equals("")|| sex.equals("")||sex.equals(null)|| addpass_pob.getText().toString().equals("")|| addpass_expireDate.getText().toString().equals("")|| addpass_issueDate.getText().toString().equals("")|| addpass_issueArea.getText().toString().equals("")|| areaid.equals("")) { Toast.makeText(getActivity(), "请输入完整信息!", Toast.LENGTH_SHORT).show(); } else { new CustomAsynTask(getActivity()) { @Override protected Boolean doInBackground(Void... params) { String[] keys = new String[] { "username", "passNumber", "surName", "givenName", "dob", "sex", "pob", "expireDate", "issueDate", "issueArea", "area" }; String[] values = new String[] { sp.getString("username", ""), addpass_passNumber.getText().toString(), addpass_surName.getText().toString(), addpass_givenName.getText().toString(), addpass_dob.getText().toString(), sex, addpass_pob.getText().toString(), addpass_expireDate.getText().toString(), addpass_issueDate.getText().toString(), addpass_issueArea.getText().toString(), areaid }; PostJson postJson = new PostJson(); GetParamsMap = postJson.Post(keys, values, "addPass"); Boolean success = false; success = (Boolean) GetParamsMap.get("success"); return success; } protected void onPostExecute(Boolean result) { super.onPostExecute(result); if (GetParamsMap.get("msg").toString().length() > 50) { Toast.makeText( getActivity().getApplicationContext(), R.string.toast_flase_msg, Toast.LENGTH_LONG) .show(); } else { Toast.makeText( getActivity().getApplicationContext(), (String) GetParamsMap.get("msg"), Toast.LENGTH_LONG).show(); } if (result) { fragmentManager.popBackStack(); transaction.commit(); } }; }.execute(); } } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { if (addpass_passNumber.getText().toString().equals("")|| addpass_surName.getText().toString().equals("")|| addpass_givenName.getText().toString().equals("")|| addpass_dob.getText().toString().equals("")|| sex.equals("")||sex.equals(null)|| addpass_pob.getText().toString().equals("")|| addpass_expireDate.getText().toString().equals("")|| addpass_issueDate.getText().toString().equals("")|| addpass_issueArea.getText().toString().equals("")|| areaid.equals("")) { Toast.makeText(getActivity(), "请输入完整信息!", Toast.LENGTH_SHORT).show(); } else { new CustomAsynTask(getActivity()) { @Override protected Boolean doInBackground(Void... params) { String[] keys = new String[] { "username", "passNumber", "surName", "givenName", "dob", "sex", "pob", "expireDate", "issueDate", "issueArea", "area" }; String[] values = new String[] { sp.getString("username", ""), addpass_passNumber.getText().toString(), addpass_surName.getText().toString(), addpass_givenName.getText().toString(), addpass_dob.getText().toString(), sex, addpass_pob.getText().toString(), addpass_expireDate.getText().toString(), addpass_issueDate.getText().toString(), addpass_issueArea.getText().toString(), areaid }; PostJson postJson = new PostJson(); GetParamsMap = postJson.Post(keys, values, "addPass"); Boolean success = false; success = (Boolean) GetParamsMap.get("success"); return success; } protected void onPostExecute(Boolean result) { super.onPostExecute(result); if (GetParamsMap.get("msg").toString().length() > 50) { Toast.makeText( getActivity().getApplicationContext(), R.string.toast_flase_msg, Toast.LENGTH_LONG) .show(); } else { Toast.makeText( getActivity().getApplicationContext(), (String) GetParamsMap.get("msg"), Toast.LENGTH_LONG).show(); } if (result) { fragmentManager.popBackStack(); transaction.commit(); } }; }.execute(); } }
{ "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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_display_image, menu); 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 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 {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, 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\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\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 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 \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 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\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.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Create by guoxin on 2018/6/26
public interface TypeConvert<T> { /** * 1 byte = 8 bit */ int BIT = 8; static Class<?> getTypeClazz(Class<? extends TypeConvert> typeConvert){ return ClassUtils.getGenericsType(typeConvert); } static short getTypeIndex(Class<?> clazz) { return clazz.getAnnotation(Typed.class).index(); } static TypeCache getTypeCache(Class<? extends TypeConvert> typeConvert, int index) { Class<?> genericsType = ClassUtils.getGenericsType(typeConvert); TypeCache typeCache = TypeCache.builder().index(index).typeClass(genericsType).typeConvert(typeConvert).build(); return typeCache; } /** * 将{@code t}解码为字节流 * * @param t obj * @return 字节流 */ ByteBuf encode(T t); /** * 将字节流编码为{@link T} * * @param byteBuf 字节流 * @return obj */ T decode(ByteBuf byteBuf); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void create() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void create() {\n\t\t\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "private UsineJoueur() {}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\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 }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "Petunia() {\r\n\t\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "protected void mo6255a() {\n }", "public void mo6081a() {\n }", "private zza.zza()\n\t\t{\n\t\t}", "private TMCourse() {\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo12930a() {\n }", "@Override\n protected void getExras() {\n }", "public void mo1531a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo9848a() {\n }", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "CreationData creationData();", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "private Singletion3() {}", "protected FanisamBato(){\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void designBasement() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "private final zzgy zzgb() {\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "protected Doodler() {\n\t}", "@Override\n\tpublic void recreo() {\n\n\t}", "public Tbdtokhaihq3() {\n super();\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "private Aliyun() {\n\t\tsuper();\n\t}", "@Override\n protected void init() {\n }", "public Tbdcongvan36() {\n super();\n }", "protected Asignatura()\r\n\t{}", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private DittaAutonoleggio(){\n \n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\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 }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public Husdjurshotell(){}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void makerear() {\n\t\t\r\n\t}", "public final void mo91715d() {\n }", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}" ]
[ "0.6197794", "0.61113065", "0.6036594", "0.5972172", "0.59240645", "0.59181416", "0.5888121", "0.588733", "0.5840477", "0.582768", "0.5818668", "0.58184725", "0.5813727", "0.5813727", "0.58009267", "0.5797762", "0.57908", "0.57889855", "0.5786941", "0.5783087", "0.5778107", "0.57691675", "0.57673067", "0.57465845", "0.57393616", "0.5719198", "0.5716266", "0.57113874", "0.57113874", "0.57113874", "0.57113874", "0.57113874", "0.57113874", "0.57113874", "0.57089853", "0.56917864", "0.5688116", "0.5666654", "0.5642419", "0.56355464", "0.5622044", "0.56152844", "0.5609715", "0.55942434", "0.5590217", "0.557015", "0.557015", "0.5568664", "0.55675316", "0.5564941", "0.55399853", "0.5538852", "0.5534236", "0.55320615", "0.5522634", "0.55021954", "0.5481898", "0.54709876", "0.5464276", "0.5449054", "0.54381347", "0.5427472", "0.5413871", "0.54126257", "0.54105264", "0.54010814", "0.5395895", "0.5387156", "0.53828704", "0.53784597", "0.53751945", "0.537492", "0.53495157", "0.5344868", "0.53444123", "0.5339303", "0.53385466", "0.53246564", "0.5319463", "0.5317766", "0.5317101", "0.5317041", "0.53141266", "0.5311088", "0.5311088", "0.5311088", "0.5311088", "0.5311088", "0.5311088", "0.5307232", "0.53034866", "0.52997684", "0.5297458", "0.529457", "0.5293588", "0.5289366", "0.52827084", "0.5279394", "0.5279006", "0.527684", "0.5276263" ]
0.0
-1
Creates a new instance of ConfuseEffect
public ParalysisEffect() { m_lock = SPECIAL_EFFECT_LOCK; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AbilityEffect() {\n\t\tsuper();\n\t}", "Effect getEffect();", "@Override public Effect construct(ConfigurationSection section)\n {\n String type = section.getString(\"type\");\n if(type == null) return null; // If there is no type defined\n if(!TextUtil.toKey(type).equals(IDENTIFIER)) return null; // if the type is not the right type\n \n double max_distance = section.getDouble(\"max_distance\", DEFAULT_MAX_DISTANCE);\n double behind_distance = section.getDouble(\"behind_distance\", DEFAULT_BEHIND_DISTANCE);\n String teleport_sound = section.getString(\"teleport_sound\", DEFAULT_TELEPORT_SOUND);\n \n return new DanceEffect(max_distance, behind_distance, teleport_sound);\n }", "public static EffectRegistry getInstance(){\n if( instance == null ){\n instance = new EffectRegistry();\n AddEffect.loadBuilder();\n BonusEffect.loadBuilder();\n ChangeEffect.loadBuilder();\n ActionEffect.loadBuilder();\n PermanentEffect.loadBuilder();\n UniqueEffect.loadBuilder();\n PrivilegeEffect.loadBuilder();\n ExcomunicateEffect.loadBuilder();\n }\n return instance;\n }", "public Effect createEffect(Structure p_structure, String p_name) {\n\t\t// TODO Auto-generated method stub\n\t\tEffect effect = new Effect();\n\t\tint id = 0;\n\t\ttry\n\t\t{\n\t\t\tid = Integer.parseInt(p_name.substring(2));\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLogger.getLogger(this.getClass()).warn(\"Invalid id creating a new one\");\n\t\t\treturn createEffect(p_structure);\n\t\t}\n\t\teffect .setId(id);\n\t\treturn effect;\n\t}", "void applyEffects();", "@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static javafx.scene.effect.ColorInputBuilder<?> create() {\n return new javafx.scene.effect.ColorInputBuilder();\n }", "public static EchoEffectFragment newInstance()\n {\n EchoEffectFragment fragment = new EchoEffectFragment();\n return fragment;\n }", "public ResistDamageAlterationEffect(Context context) {\n this.delayManager = context.get(DelayManager.class);\n }", "public ClassificationWidgetEffect (final String rkBaseName)\r\n {\r\n SetPassQuantity(1);\r\n m_kVShader.set(0, new VertexShader(\"TextureV\"));\r\n m_kPShader.set(0, new PixelShader(\"ClassificationWidgetEffect\", true));\r\n\r\n m_kPShader.get(0).SetTextureQuantity(1);\r\n m_kPShader.get(0).SetImageName(0,rkBaseName);\r\n m_kWidgetState.UseWidget[0] = 1.0f;\r\n }", "Affectation createAffectation();", "private VibrationEffect getVibrationEffect() {\n return VibrationEffect.startComposition()\n .addPrimitive(VibrationEffect.Composition.PRIMITIVE_THUD, 1.0f, 50)\n .compose();\n }", "public PotionEffect(int paramInt1, int paramInt2, int paramInt3)\r\n/* 21: */ {\r\n/* 22: 32 */ this(paramInt1, paramInt2, paramInt3, false, true);\r\n/* 23: */ }", "public edu.pa.Rat.Builder setConvolution(float value) {\n validate(fields()[2], value);\n this.convolution = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public AbstractEffect start() {\n\t\tTask task;\n\t\tTask.Builder taskBuilder = effectData.getTaskBuilder();\n\t\ttask = taskBuilder.delayTicks(effectData.getDelay()).intervalTicks(effectData.getInterval()).execute(\n\t\t\t\tnew Runnable() {\n\t\t\t\t\tint c = 0;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tplay();\n\t\t\t\t\t\tc++;\n\t\t\t\t\t\tif (c >= effectData.getCancel() / effectData.getInterval())\n\t\t\t\t\t\t\tstop();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t).submit(Avatar.INSTANCE);\n\t\teffectData.setTask(task);\n\t\treturn this;\n\t}", "public PotionEffect(int id, int duration, int amplifier, boolean ambient, boolean showParticles)\r\n/* 26: */ {\r\n/* 27: 36 */ this.id = id;\r\n/* 28: 37 */ this.duration = duration;\r\n/* 29: 38 */ this.amplifier = amplifier;\r\n/* 30: 39 */ this.ambient = ambient;\r\n/* 31: 40 */ this.showParticles = showParticles;\r\n/* 32: */ }", "public ApplyEffect(SnagliModel model) {\n\t\tApplyEffect.model = model;\n\t}", "public static FilterBar instance() {\n\t\t\n\t\tif (filterBar == null) filterBar = new FilterBar();\n\t\t\n\t\treturn filterBar;\n\t\t\n\t}", "private String addEffect() {\n\t\t// One Parameter: EffectName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|effect:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}", "public Crate(){}", "public PotionEffect(int paramInt1, int paramInt2)\r\n/* 16: */ {\r\n/* 17: 28 */ this(paramInt1, paramInt2, 0);\r\n/* 18: */ }", "private void duotoneEffect(int firstC, int secC) {\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_DUOTONE);\n effect.setParameter(\"first_color\", firstC);\n effect.setParameter(\"second_color\", secC);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "int getEffect();", "@Override\n\tprotected void enterEffect() {\n\t\t\n\t}", "Fog createFog();", "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 }", "public DsEffect(int audioSessionId) throws IllegalArgumentException, UnsupportedOperationException, RuntimeException\n {\n // Create the OpenSL-ES effect.\n audioEffect = new AudioEffect(EFFECT_TYPE_NULL, EFFECT_DS, 0, audioSessionId);\n DsLog.log2 (LOG_TAG, \"Created DS AudioEffect successfully\");\n\n // Let's find the descriptor of what we created.\n AudioEffect.Descriptor e = audioEffect.getDescriptor();\n DsLog.log1 (LOG_TAG, \"CREATED EFFECT Implementor:\\\"\" + e.implementor + \"\\\"\\n\" +\n \" name:\\\"\" + e.name + \"\\\"\\n\" +\n \" connectMode:\\\"\" + e.connectMode + \"\\\"\\n\" +\n \" type:\\\"\" + e.type.toString() + \"\\\"\\n\" +\n \" uuid:\\\"\" + e.uuid.toString() + \"\\\"\\n\" +\n \" sessionID:\\\"\" + audioSessionId + \"\\\"\");\n\n audioSessionId_ = audioSessionId;\n // Send the override parameters to effect\n sendOverrides();\n }", "public PotionEffect(PotionEffect paramwq)\r\n/* 35: */ {\r\n/* 36: 44 */ this.id = paramwq.id;\r\n/* 37: 45 */ this.duration = paramwq.duration;\r\n/* 38: 46 */ this.amplifier = paramwq.amplifier;\r\n/* 39: 47 */ this.ambient = paramwq.ambient;\r\n/* 40: 48 */ this.showParticles = paramwq.showParticles;\r\n/* 41: */ }", "public InaccurateAttackEffect() {\n\t\tsuper(Effect.Target.OPPONENT, Effect.FLIP_COIN);\n\t\tthis.numberOfHits = 1;\n\t\tthis.hitsPerEnergy = Effect.BOOL_NOT_USED;\n\t\tthis.hitsIndefinitely = Effect.BOOL_NOT_USED;\n\t}", "public Filter() {\n }", "@Override\n public void effect() {\n\n }", "public Color4 getEffectColorAdd();", "public static FilterBuilder build() {\n return new FilterBuilder();\n }", "public IcecreamCone(){\n this.flavors = new ArrayList(Arrays.asList(\"chocolate\", \"vanilla\", \"strawberry\", \n \"cookies and cream\", \"rocky road\", \n \"cookie dough\", \"butter pecan\", \"coffee\", \n \"cotton candy\", \"peanutbutter cup\", \"moose tracks\",\n \"mint chocolate chip\", \"salted caramel\", \"rum raisin\",\n \"cake batter\", \"butterscotch\", \"bubblegum\", \n \"orange serbert\", \"rainbow\", \"tutti frutti\", \n \"cinnamon toast crunch\", \"cilantro lime\"));\n }", "@Override\n\tpublic void effectAdded(Effect effect) {\n\t}", "public HttpFilter() { }", "public ReorientImageFilter() {\n }", "Contender createContender();", "private void contrastEffect(int barra) {\n float val = barra / 40f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_CONTRAST);\n effect.setParameter(\"contrast\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "private void activeDrawEffects() {\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 }", "public Fish create(){\n\t\tMovementStyle style = new NoMovement();\n\t\treturn new Shark(style);\n\t}", "public Cake getCake(){\n return new Cake();\n }", "CompiledFilter() {\n }", "public LightShot(AbstractGame world) {\n super(world);\n innerColor = Color.WHITE;\n myCircle = new Circle(3);\n myCircle.setCenterX(0);\n myCircle.setCenterY(0);\n myCircle.setFill(innerColor);\n myShape = myCircle;\n speed = 10;\n GaussianBlur blur = new GaussianBlur();\n blur.setRadius(5);\n myShape.setEffect(blur);\n FadeTransition fadeOut = new FadeTransition(Duration.seconds(2), myShape);\n fadeOut.setFromValue(1);\n fadeOut.setToValue(0);\n fadeOut.playFromStart();\n // new AudioClipPlayer(AudioClipPlayer.HEARTBEAT).start();\n }", "public static EffectPane getEffectPane() {\n\t\tif (effectPane == null) {\n\t\t\tinitScene();\n\t\t}\n\t\treturn effectPane;\n\t}", "public static Construtor construtor() {\n return new Construtor();\n }", "public V1Toleration withEffect(String effect) {\n this.effect = effect;\n return this;\n }", "public void effect() {\n }", "Composite() {\n\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate Filter() {\n\n\t}", "private void redeyeEffect(float[] f) {\n float val = 0;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \");\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_REDEYE);\n effect.setParameter(\"centers\", f);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public IntentFilter createFilter()\n {\n IntentFilter filter = new IntentFilter();\n filter.addAction(UPDATE_TIME);\n\n return filter;\n }", "public T caseEffect(Effect object) {\r\n\t\treturn null;\r\n\t}", "public void createConeLight(RayHandler rayHandler) {\n Vector2 pos = getBody().getPosition();\n coneLight = new ConeLight(rayHandler, NUM_RAYS, Color.WHITE, lightRadius, pos.x, pos.y, getBody().getAngle(), lightAngle);\n coneLight.setContactFilter((short)0x0005, (short)-1, (short) 0xFFFF);\n coneLight.attachToBody(getBody());\n coneLight.setSoft(false);\n\n }", "private Cat() {\n\t\t\n\t}", "public Contato() {\n }", "public Effect getEffect(String effectCode, JsonValue payload){\n \treturn this.builderRegistry.get(effectCode).apply(payload);\n }", "public Filter () {\n\t\tsuper();\n\t}", "public Filters() {\n }", "public StatusEffect getEffect() {\n return effect;\n }", "Concierto createConcierto();", "PositionEffect getPositionEffect();", "private ParticleEffectFactory(final Node root) {\r\n explosions = new ArrayList<ParticleMesh>();\r\n asteroidTrails = new ArrayList<ParticleMesh>();\r\n missileTrails = new ArrayList<ParticleMesh>();\r\n \r\n rootNode = root;\r\n \r\n DisplaySystem display = DisplaySystem.getDisplaySystem();\r\n bs = display.getRenderer().createBlendState();\r\n bs = DisplaySystem.getDisplaySystem().getRenderer().createBlendState();\r\n bs.setBlendEnabled(true);\r\n bs.setSourceFunction(BlendState.SourceFunction.SourceAlpha);\r\n bs.setDestinationFunction(BlendState.DestinationFunction.One);\r\n bs.setTestEnabled(true);\r\n bs.setTestFunction(BlendState.TestFunction.GreaterThan);\r\n\r\n ts = display.getRenderer().createTextureState();\r\n ts.setTexture(TextureManager.loadTexture(\r\n ResourceLocatorTool.locateResource(ResourceLocatorTool.TYPE_TEXTURE,\r\n \"data/textures/flaresmall.jpg\"), \r\n Texture.MinificationFilter.BilinearNoMipMaps,\r\n Texture.MagnificationFilter.Bilinear));\r\n\r\n zs = display.getRenderer().createZBufferState();\r\n zs.setWritable(false);\r\n zs.setEnabled(true);\r\n\r\n for (int i = 0; i < 5; i++) {\r\n createExplosion();\r\n }\r\n \r\n for (int i = 0; i < 5; i++) {\r\n createMissileTrail();\r\n }\r\n }", "public void test_useCase_addEffect() throws UiObjectNotFoundException\n {\n executeTestCase(appPackageName, appLaunchIconText, \"addEffect\", 9, false);\n }", "A create(\n String name,\n AbilityType abilityType,\n int level,\n int manaCost,\n ExpandableCloud effectCloud,\n boolean canBeCloudBoosted,\n int castDist,\n List<Class<? extends Unit>> affectedUnitTypes,\n boolean appliesToAllied,\n boolean appliesToFoe,\n String description,\n List<AbilityEffect> effects);", "@Override\n\tpublic Effect getEffect() {\n\t\tthis.effect.setName(txtEffectName.getText());\n\t\tthis.effect.setValue(Integer.parseInt(txtEffectValue.getText()));\n\t\t((FeintActionEffect)this.effect).setDescription(txtaDescription.getText());\n\t\treturn this.effect;\n\t}", "public Glow() {}", "WithCreate withFilter(EventChannelFilter filter);", "public MyCone(int color, int id, float arg0, float arg1, Appearance arg2) {\n\t\tsuper(arg0, arg1, arg2);\n\t\tthis.color = color;\n\t\tthis.id = id;\n\t}", "public RMEffect getEffect() { return _effect; }", "public ClientAppFilter build() {\n\t\t\tClientAppFilter filter = new ClientAppFilter();\n\t\t\tfilter.setApplicationId(this.applicationId);\n\t\t\tfilter.setApplicationName(this.applicationName);\n\t\t\tfilter.setOrganization(this.organization);\n\t\t\tfilter.setState(this.state);\n\t\t\tfilter.setIncludeQuota(this.includeQuota);\n\t\t\tfilter.setIncludeCredentials(this.includeCredentials);\n\t\t\tfilter.setIncludeImage(this.includeImage);\n\t\t\tfilter.setIncludeAPIAccess(this.includeAPIAccess);\n\t\t\tfilter.setCredential(this.credential);\n\t\t\tfilter.setRedirectUrl(this.redirectUrl);\n\t\t\tfilter.setIncludeOauthResources(this.includeOauthResources);\n\t\t\tfilter.setCustomProperties(this.customProperties);\n\t\t\tfilter.setApiName(this.apiName);\n\t\t\treturn filter;\n\t\t}", "protected Fruit(Sprite sprite, int lifetime, int effectDuration) {\n\t\tthis.image = sprite;\n\t\tthis.lifetime = lifetime;\n\t\tthis.effectDuration = effectDuration;\n\t}", "public FilterSpec build() {\n return new FilterSpec(this);\n }", "@Test\n public void useEffect() {\n \t//should normally run useItem method, but for testing it is not needed here.\n \tHealthEffect bombEff = (HealthEffect) bomb.getEffect().get(0);\n \tbombEff.applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP - 700);\n \tSpecial heal = new Special(SpecialType.HEALTHBLESS);\n \theal.getEffect().get(0).applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP);\n }", "public MyCone(int color, int id, float arg0, float arg1, int arg2, Appearance arg3) {\n\t\tsuper(arg0, arg1, arg2, arg3);\n\t\tthis.color = color;\n\t\tthis.id = id;\n\t}", "AttackImpactFactory getAttackImpactFactory();", "public FilterManager( final FeatherContext context, final Handler handler, final String apiKey ) {\n\t\tlogger = LoggerFactory.getLogger( \"FilterManager\", LoggerType.ConsoleLoggerType );\n\t\tmContext = context;\n\t\tmHandler = handler;\n\t\tmApiKey = apiKey;\n\t\tmPluingsHandler = new PluginHandler( this );\n\t\tmServiceLoader = new ServiceLoader<EffectContextService>( this );\n\t\tinitServices( context );\n\n\t\tmConfiguration = new Configuration( ( (Context) context ).getResources().getConfiguration() );\n\n\t\tsetCurrentState( STATE.DISABLED );\n\t\tmChanged = false;\n\t}", "public interface ISubstanceEffect {\n\t\n\t/**\n\t * For an instant effect.\n\t * \n\t * @param world\n\t * @param dirt\n\t * @param rootPos \n\t * @return true for success. false otherwise\n\t */\n\tpublic boolean apply(World world, BlockPos rootPos);\n\t\n\t/**\n\t * For a continuously updating effect.\n\t * \n\t * @param world\n\t * @param dirt\n\t * @param rootPos\n\t * @param deltaTicks\n\t * @return true to stay alive. false to kill effector\n\t */\n\tpublic boolean update(World world, BlockPos rootPos, int deltaTicks);\n\t\n\t/**\n\t * Get the name of the effect. Used to compare existing effects in the environment.\n\t * \n\t * @return the name of the effect.\n\t */\n\tpublic String getName();\n\t\n\t/**\n\t * Determines if the effect is continuous or instant\n\t * \n\t * @return true if continuous, false if instant\n\t */\n\tpublic boolean isLingering();\n\t\n}", "public void setEffect(String effect){\n this.effect = effect;\n }", "public void registerEffect(IEnvironmentalEffect effect);", "public Function<Config, ConfigFilter> build() {\n return (c) -> new ValueResolvingFilter(failOnMissingReference);\n }", "@Override\n public void onDrawFrame(GL10 gl) {\n Log.i(\"kike\", \"onDrawFrame\");\n if (effectContext == null) {\n effectContext = EffectContext.createWithCurrentGlContext();\n }\n if (effect != null) {\n effect.release();\n }\n ////////////////////////////Efecte//////////////////////////\n //noEffect();\n //autofixEffect(fxValue); // ok\n //backdropperEffect(); // no probat\n //bitmapoverlayEffect(); // no probat\n //blackwhiteEffect(100, 150); // ok, ... :(\n brightnessEffect(fxValue); // ok\n //contrastEffect(fxValue); // ok\n //cropEffect(); // no probat\n //crossprocessEffect(); // ok\n //documentaryEffect(); // ok\n //duotoneEffect(); // no probat\n //filllightEffect(fxValue); // ok\n //fisheyeEffect(fxValue); // ok\n //flipEffect(false, false); // ok\n //grainEffect(fxValue); // l'efecte que fa no es massa bo\n //grayScaleEffect(); // ok\n //lomoishEffect(); // ok\n //negativeEffect(); // ok\n //posterizeEffect(); // ok\n //redeyeEffect(); // no probat\n //rotateEffect(fxValue); // error\n //saturateEffect(fxValue); // ok\n //sepiaEffect(); // ok\n //sharpenEffect(fxValue); // l'efecte que fa no es massa bo\n //straightenEffect(fxValue); // ok, retalla la imatge tambe\n //temperatureEffect(fxValue); // ok\n //tintEffect(); // no probat\n //vignetteEffect(fxValue); // nomes fa forma rodona i negra??\n ////////////////////////////Efecte//////////////////////////\n square.draw(textures[1]);\n }", "@Override\n public List<Effect> getEffect() {\n \treturn new ArrayList<Effect>(effects);\n }", "EffectLoader(InputStream inputStream) {\n /*Loading from file*/\n cardEffects = new Gson().fromJson(new InputStreamReader(inputStream),\n CardEffect[].class);\n\n /*Checking the cardEffects*/\n for (CardEffect effect : cardEffects)\n if (!effect.checkIntegrity())\n throw new WrongFileInputException(\"Card effects\",\n effect.getName());\n\n /*Adding the other effects*/\n otherEffects = new ArrayList<>();\n otherEffects.add(new MoveSelfEffect(\"cyberblade_shadowstep\", 1, new ArrayList<>()));\n otherEffects.add(new MoveSelfEffect(\"rocketLauncher_rocketJump\", 2, Collections.singletonList(AmmoCube.BLUE)));\n otherEffects.add(new MoveSelfEffect(\"plasmaGun_phaseGlide\", 2, new ArrayList<>()));\n otherEffects.add(new MoveSelfEffect(\"teleporter\", -1, new ArrayList<>()));\n otherEffects.add(new TagbackEffect(\"tagbackGrenade\"));\n }", "public Coche() {\n super();\n }", "@Inject\n\tpublic Filters(CORSFilter corsFilter) {\n\t\tsuper(corsFilter);\n\t}", "@Override\n\tpublic int effect() {\n\t\treturn 0 ;\n\t}", "public SoundEffect adjust(float volume, float pitch) {\n \t\treturn new SoundEffect(this, volume, pitch);\n \t}", "public static FilterController getInstance() {\n if (instance == null) {\n instance = new FilterController();\n }\n return instance;\n }", "public CreateKonceptWorker() {\n\t\tsuper();\n\t\tthis.koncept = new KoncepteParaula();\n\t}", "@ReceiveEvent\n public void onApplyEffect(ApplyEffectEvent event, EntityRef entity, DamageEffectorComponent component) {\n event.getTarget().send(new DamageEntityEvent(component.damage));\n }", "public ImplementedEffects getImplementationEffects(\r\n final IRNode flowUnit, final BindingContextAnalysis bca) {\r\n final EffectsVisitor visitor = new EffectsVisitor(\r\n flowUnit, bca.getExpressionObjectsQuery(flowUnit), CreateTransformer.YES);\r\n visitor.doAccept(flowUnit);\r\n return visitor.getResult();\r\n }", "public LogFilter() {}", "public Climber(){\n\t\tinst = this;\n\t}", "public static PotionEffect fromNBT(NBTTagCompound tag)\r\n/* 168: */ {\r\n/* 169:168 */ int id = tag.d(\"Id\");\r\n/* 170:169 */ if ((id < 0) || (id >= Potion.potionList.length) || (Potion.potionList[id] == null)) {\r\n/* 171:170 */ return null;\r\n/* 172: */ }\r\n/* 173:172 */ int amplifier = tag.d(\"Amplifier\");\r\n/* 174:173 */ int duration = tag.getInteger(\"Duration\");\r\n/* 175:174 */ boolean ambient = tag.getBoolean(\"Ambient\");\r\n/* 176:175 */ boolean showParticles = true;\r\n/* 177:176 */ if (tag.hasKey(\"ShowParticles\", 1)) {\r\n/* 178:177 */ showParticles = tag.getBoolean(\"ShowParticles\");\r\n/* 179: */ }\r\n/* 180:179 */ return new PotionEffect(id, duration, amplifier, ambient, showParticles);\r\n/* 181: */ }", "public WaveformRenderer( Context context )\n {\n super();\n mContext = context;\n\n mBrightPaint = new Paint();\n mBrightPaint.setStrokeWidth(6f);\n mBrightPaint.setAntiAlias(true);\n mBrightPaint.setColor(Color.argb(188, 255, 255, 255));\n\n paintBrightBlur = new Paint();\n paintBrightBlur.set(mBrightPaint);\n paintBrightBlur.setColor(Color.argb(165, 0, 0, 0));\n paintBrightBlur.setStrokeWidth(6f);\n paintBrightBlur.setMaskFilter(new BlurMaskFilter(5, BlurMaskFilter.Blur.NORMAL));\n \n mPaint = new Paint();\n mPaint.setStrokeWidth(2f);\n mPaint.setAntiAlias(true);\n mPaint.setColor(mContext.getResources().getColor(R.color.holo_blue_dark));\n \n\tpaintBlur = new Paint();\n\tpaintBlur.set(mPaint);\n\tpaintBlur.setColor(Color.argb(165, 0, 0, 0));\n\tpaintBlur.setStrokeWidth(2f);\n\tpaintBlur.setMaskFilter(new BlurMaskFilter(5, BlurMaskFilter.Blur.NORMAL));\n\n }", "private void addAdditionalEffects()\n {\n // make them fly so they do not fall from suspension\n FLYING flying = new FLYING(p, duration + 10, targetID);\n Ollivanders2API.getPlayers().playerEffects.addEffect(flying);\n additionalEffects.add(O2EffectType.FLYING);\n\n // add an immbolize effect with a duration slightly longer than this one so that they cannot move while suspended\n IMMOBILIZE immbobilize = new IMMOBILIZE(p, duration + 10, targetID);\n Ollivanders2API.getPlayers().playerEffects.addEffect(immbobilize);\n additionalEffects.add(O2EffectType.IMMOBILIZE);\n }", "public void addEffect(String e) {\n \t\tif (!e.isEmpty())\n \t\t\teffects.add(e);\n \t\t// TODO: process effects to make attributes\n \t}", "public IEffectDefinition resolveEffect(IClassDefinition classDefinition, String effectName)\n {\n IWorkspace w = getWorkspace();\n\n Iterator<IClassDefinition> classIterator = classDefinition.classIterator(this, true);\n while (classIterator.hasNext())\n {\n IClassDefinition c = classIterator.next();\n IEffectDefinition effectDefinition = c.getEffectDefinition(w, effectName);\n if (effectDefinition != null)\n return effectDefinition;\n }\n\n return null;\n }" ]
[ "0.5701022", "0.5623893", "0.5448415", "0.5289358", "0.5278343", "0.52548486", "0.5236053", "0.51849073", "0.50241065", "0.4953359", "0.4938956", "0.49285278", "0.49269104", "0.49115345", "0.49111748", "0.48797706", "0.48795676", "0.48699313", "0.48347673", "0.48072362", "0.47958413", "0.4794106", "0.47863668", "0.47591212", "0.47492173", "0.47436982", "0.47266978", "0.4716804", "0.4712987", "0.4697871", "0.46887875", "0.4684486", "0.4681009", "0.4676353", "0.46738756", "0.4670877", "0.46652097", "0.46511015", "0.4649023", "0.46297878", "0.46194807", "0.46002218", "0.4586902", "0.4578446", "0.45713723", "0.45712844", "0.456803", "0.45674872", "0.4561429", "0.4561242", "0.45536414", "0.45467195", "0.45436472", "0.45407405", "0.4527002", "0.45097163", "0.44984084", "0.4498049", "0.44790784", "0.44764233", "0.4462688", "0.4462654", "0.44519582", "0.44483945", "0.44464085", "0.44413102", "0.44392174", "0.44356272", "0.44298324", "0.44246656", "0.4417431", "0.4413607", "0.44080383", "0.44032106", "0.43988067", "0.43979073", "0.43968907", "0.43958288", "0.438924", "0.43821868", "0.43820497", "0.4373931", "0.43692884", "0.43667537", "0.43649563", "0.43626046", "0.43582156", "0.43537182", "0.43535635", "0.4344598", "0.43435594", "0.434197", "0.43408185", "0.43400705", "0.43380404", "0.43362525", "0.432227", "0.43208715", "0.4320126", "0.43198204" ]
0.49122566
13
Paralysis stays through switching out.
public boolean switchOut(Pokemon p) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void finishSwitching();", "@Override\n public void scanAborted() {\n this.mplLiveData.stopAll();\n this.mplLiveData.emptyPool(); // CKA April 25, 2014\n }", "public void stop() {\r\n _keepGoing = false;\r\n }", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\t//mNtApi.stop();\r\n\t\tmTest.lcmSwitchTo35();\r\n\t\tlcmState = 1;\r\n\t}", "@Override\n public void stop() {\n leftFrontDrive.setPower(0.0);\n rightFrontDrive.setPower(0.0);\n leftRearDrive.setPower(0.0);\n rightRearDrive.setPower(0.0);\n\n // Disable Tracking when we are done;\n targetsUltimateGoal.deactivate();\n\n //closes object detection to save system resouces\n if (tfod != null) {\n tfod.shutdown();\n }\n }", "public void unload() {\n releasePressureToReturn();\n releasePressureToShooter();\n latch(false);\n// reloaded = false;\n }", "public void flowAbrupted() {\n prevInstruction = null;\n }", "public void pauseApp() {\n myRefreshTask.cancel();\n myRefreshTask = null;\n // Release resources.\n myWorld = null;\n }", "protected void end() {\n\t\tcrossLine.cancel();\n\t\tapproachSwitch.cancel();\n\t\tdriveToSwitch.cancel();\n\t\tdriveToScale.cancel();\n\t\tapproachScale.cancel();\n\t\tturnTowardsSwitchOrScale.cancel();\n\t\t\n\t\tdrivetrain.stop();\n\t}", "protected void end() {\n \tSystem.out.println(\"pid Get\" + RobotMap.visionSensor.pidGet());\n\t\tRobotMap.visionSensor.stopProcessing();\n \tRobotMap.VisionDistanceRightPIDController.stop();\n\t\tRobotMap.VisionDistanceLeftPIDController.stop();\n\t\tRobot.driveTrain.setTalonsReversedState(false);\n \tRobot.driveTrain.resetTalonControlMode();\n\t\tSystem.out.println(\"Drived to traget\");\n\t}", "public void switchPhase() {\n\n\t\t/* Remove all events related to this virus */\n\t\tfor (int i = 0; i < Sim.events.size(); i++)\n\t\t\tif (Sim.events.elementAt(i).org.equals(this))\n\t\t\t\tSim.events.elementAt(i).delete = true;\n\n\t\t/* Remove this virus from lambda vector */\n\t\tfor (int i = 0; i < Sim.lps.size(); i++)\n\t\t\tif (Sim.lps.elementAt(i).equals(this)) {\n\t\t\t\tSim.lps.remove(i);\n\t\t\t\tSim.lps_sum_sr += this.prob_surface;\n\t\t\t\tSim.lps_sum_enz += this.prob_enzymes;\n\t\t\t}\n\n\t\t/* kill infected bacteria */\n\t\tthis.current_ba.death(); \n\n\t\t/* Create new virus progeny */\n\t\tfor (int i = 0; i < progeny; i++)\n\t\t\tSim.lps.add(new Lambda_phage(prob_surface, prob_enzymes));\n\n\t}", "public void stop()\r\n {\r\n breakoutAnimator = null;\r\n }", "public void stop() {\n\tanimator = null;\n\toffImage = null;\n\toffGraphics = null;\n }", "protected void end() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n }", "public void halt ( )\n\t{\n\t\tthis.running = false;\n\t}", "protected void finalAction(){\n Robot.stop();\n requestOpModeStop();\n }", "public void halt();", "public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }", "public void stop() {\n intake(0.0);\n }", "public synchronized void stop()\r\n/* 78: */ {\r\n/* 79:203 */ if (!this.monitorActive) {\r\n/* 80:204 */ return;\r\n/* 81: */ }\r\n/* 82:206 */ this.monitorActive = false;\r\n/* 83:207 */ resetAccounting(milliSecondFromNano());\r\n/* 84:208 */ if (this.trafficShapingHandler != null) {\r\n/* 85:209 */ this.trafficShapingHandler.doAccounting(this);\r\n/* 86: */ }\r\n/* 87:211 */ if (this.scheduledFuture != null) {\r\n/* 88:212 */ this.scheduledFuture.cancel(true);\r\n/* 89: */ }\r\n/* 90: */ }", "private void exit() {\n this.isRunning = false;\n }", "public void stop() {\n\t\tthis.stopper = true;\n\t}", "@Override\r\n\tprotected void processTakeout() {\n\r\n\t}", "@Override\r\n\tprotected void processTakeout() {\n\r\n\t}", "public void stopIntake(){\n\t\tintake.set(0);\n }", "@Override\n public void stop() {\n\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n armMotor.setPower(0);\n // extendingArm.setPower(0);\n\n telemetry.addData(\"Status\", \"Terminated Interative TeleOp Mode\");\n telemetry.update();\n\n\n }", "protected void end() {\n\t\tRobot.cubeCollector.setCubeCollector(ControlMode.PercentOutput, 0);\n\n\t}", "protected void pause(){}", "public void stop()\n\t{\n\t\tindex = 0;\n\t\tlastUpdate = -1;\n\t\tpause();\n\t}", "@Override\n\tprotected void end()\n\t{\n\t\tRobotMap.joshsPID.disable();\n\t\tRobotMap.TestingMotor.set(0.0);\n\t}", "private void pararCancion() {\n clip.stop();\n clip.close();\n clip = null;\n }", "@Override\n\t\tpublic void pause() {\n\t\t \n\t\t}", "void unpause();", "public void unPause()\n {\n paused = false;\n }", "private synchronized void stop(){\n this.go = false;\n }", "protected void end() {\n// \tSystem.out.println(\"In End \" + minElapsedTime + \" \" + maxElapsedTime);\n \tRobot.drive.setPower(0,0);\n \tnotifier.stop();\n \t//Robot.drive.setLeftOutput(ControlMode.PercentOutput, 0);\n \t//Robot.drive.setRightOutput(ControlMode.PercentOutput, 0);\n }", "static void stop(){\n stop=true;\n firstPass=true;\n }", "@Override\r\n\tpublic void leave() {\n\t\t\r\n\t}", "@Override\r\n public void turnOff() {\r\n isOn = false;\r\n Reporter.report(this, Reporter.Msg.SWITCHING_OFF);\r\n if (this.engaged()) {\r\n disengageLoads();\r\n }\r\n }", "private void pause() {\n\t\t// TODO\n\t}", "public void stop(){\n return;\n }", "protected synchronized void stop(int stateToTransitionTo) {\n if (writerThread != null) {\n writerThread.cancel();\n writerThread.interrupt();\n writerThread = null;\n }\n\n if (readerThread != null) {\n readerThread.cancel();\n readerThread.interrupt();\n readerThread = null;\n }\n\n if( (connectionSuccessful== null || connectionSuccessful == true ) //else, the connection was bad. Not closing the PFD helps recover\n && parcelFileDescriptor != null){\n try {\n parcelFileDescriptor.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n parcelFileDescriptor = null;\n\n System.gc();\n\n setState(stateToTransitionTo);\n }", "protected void end() {\n \tif (waitForMovement) Robot.intake.setHopperTracker(deploy ? Status.deployed : Status.stowed);\n }", "@Override\n public void stopMachine() {\n cleanOrExplode();\n\n for (GT_MetaTileEntity_Hatch_OutputData data : eOutputData) {\n data.q = null;\n }\n\n mOutputItems = null;\n mOutputFluids = null;\n mEfficiency = 0;\n mEfficiencyIncrease = 0;\n mProgresstime = 0;\n mMaxProgresstime = 0;\n eAvailableData = 0;\n hatchesStatusUpdate_EM();\n getBaseMetaTileEntity().disableWorking();\n }", "public void cleanup() {\n endtracking();\n\n //sends data to UI\n MainActivity.trackingservicerunning = false;\n MainActivity.servicestopped();\n\n //stops\n stopSelf();\n }", "private void stop_meter() {\n\t\t\t mEngin.stop_engine();\n\t\t\t\n\t\t}", "protected void end() {\n Robot.wedge.stop();\r\n Robot.driveTrain.stop();\r\n Robot.ballIntake.stop();\r\n }", "public void unpause() {\n\t\t// Move the real time clock up to now\n\t\tsynchronized (mSurfaceHolder) {\n\t\t\tmLastTime = System.currentTimeMillis() + 100;\n\t\t}\n\t\tsetState(GameState.RUNNING_LVL);\n\t}", "public void pleaseStop()\n {\n\t this.doorgaan_thread = false;\n\t this.doorgaan_wheel = true;\n draad = null; // waarom? \n }", "@Override\n\tpublic void pause() {\n\t\tstopTask();\n\t}", "@FXML\n private void setOut(){\n\n updateGUI();\n drivingTransition.play();\n Main.gang.setMoving(true);\n\n HealthClass.checkGameOver();\n\n if (Runtime.getRuntime().availableProcessors() + Main.main.startingThreads > Thread.activeCount()) TravelTask();\n }", "@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t\tSystem.out.println(\"Fragments_download_management onPause\");\n\t\talarmQueryRunnable.destroy();\n\t\tledrunnable.destroy();\n\t}", "protected void end() {\r\n\t \tRobotMap.armarm_talon.changeControlMode(CANTalon.ControlMode.PercentVbus);\r\n\t }", "protected void end() {\n \tRobot.driveTrain.setPower(0, 0);\n }", "private void stop() {\n System.out.println(\"Stopping on \"+ _currentFloor.floorName() +\" floor \" );\n _currentFloor.clearDestinationRequest();\n _passengersOnboard = _passengersOnboard - _currentFloor.queuedPassengers();\n _currentFloor.clearQueuedPassengers();\n System.out.println(this);\n\n }", "protected void end() {\n\t\tnotifier.stop();\n\n\t\tleftTalon.clearMotionProfileTrajectories();\n\t\trightTalon.clearMotionProfileTrajectories();\n\n\t\tleftTalon.set(ControlMode.MotionProfile, SetValueMotionProfile.Disable.value);\n\t\trightTalon.set(ControlMode.MotionProfile, SetValueMotionProfile.Disable.value);\n\n\t}", "public boolean unPause();", "public void exitRoutine() {\n\t\tboardController.saveSampleData();\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\n protected void end() {\n Robot.driveTrain.StopPolarXPID();\n Robot.driveTrain.StopPolarYPID();\n }", "@Override\r\n public void pause() {\r\n\r\n }", "@Override\r\n public void pause() {\r\n\r\n }", "public void stopping();", "@Override\n public void pause() {\n }", "@Override\r\n public void pause() {}", "public void endRoutine()\r\n\t{\r\n\t\ttimer.stop();\r\n\t\ttimer.reset();\r\n\t\ttimer.start();\r\n\t\tdrive.encReset();\r\n\t\tautoStep++;\r\n\t}", "public void pause() {\n running = false;\n }", "@Override\n protected void specificStop() {\n // Wait for piper process builder to end\n // Check out end status and close gobblers\n try {\n LOGGER.info(\"Waiting for finishing piper process\");\n int exitCode = piper.waitFor();\n if (NIOTracer.isActivated()) {\n NIOTracer.emitEvent(NIOTracer.EVENT_END, NIOTracer.getSyncType());\n }\n outputGobbler.join();\n errorGobbler.join();\n if (exitCode != 0) {\n ErrorManager.error(\"ExternalExecutor piper ended with \" + exitCode + \" status\");\n }\n } catch (InterruptedException e) {\n // No need to handle such exception\n } finally {\n if (piper != null) {\n if (piper.getInputStream() != null) {\n try {\n piper.getInputStream().close();\n } catch (IOException e) {\n // No need to handle such exception\n }\n }\n if (piper.getErrorStream() != null) {\n try {\n piper.getErrorStream().close();\n } catch (IOException e) {\n // No need to handle such exception\n }\n }\n }\n }\n\n // ---------------------------------------------------------------------------\n LOGGER.info(\"ExternalThreadPool finished\");\n }", "protected void end() {\n\t\tloadLeftBuffer.stop();\n\t\tresetTalon(rightTalon, ControlMode.PercentOutput, 0);\n\t\tresetTalon(leftTalon, ControlMode.PercentOutput, 0);\n\t}", "public void stopTurning() {\r\n turningPID.disable();\r\n tankDrive(0, 0);\r\n }", "protected void onPause() {\n super.onPause();\n sensorManager.unregisterListener(this);\n start = false;\n }", "public void continueRun() {\n pause = false;\n }", "private void loadingPhase() {\n try { Thread.sleep(10000); } catch(InterruptedException e) { return; }\n ClickObserver.getInstance().setTerrainFlag(\"\");\n }", "public void intakeStop()\n {\n intake_up.set(ControlMode.PercentOutput, 0.0f);\n intake_down.set(ControlMode.PercentOutput, 0.0f);\n }", "@Override public void stop() {\n\t\t_active = false;\n\t}", "void exitSession()\n\t{\n\t\t// clear out our watchpoint list and displays\n\t\t// keep breakpoints around so that we can try to reapply them if we reconnect\n\t\tm_displays.clear();\n\t\tm_watchpoints.clear();\n\n\t\tif (m_fileInfo != null)\n\t\t\tm_fileInfo.unbind();\n\n\t\tif (m_session != null)\n\t\t\tm_session.terminate();\n\n\t\tm_session = null;\n\t\tm_fileInfo = null;\n\t}", "void leave();", "void leave();", "void leave();", "protected void end() {\n \n this.getPIDController().disable();\n shooter.setShooterMotor(0.0);\n }", "int unpauseSample() {\n return 0;\n }", "public void arraiter() {\n \tthis.running = false;\n }", "void stop() {\n\t\texitTesting = true;\n\t}", "public void interrupted() {\n\t\taccumulatorController.systems.getAccumulatorMotors().setSpeed(0);\n\t\taccumulatorController.setState(AccumulatorState.IDLE);\n\t}", "public void releasePressureToReturn() {\n returnValve.set(false);\n }", "protected void end() {\n \n \tRobotMap.motorLeftOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorLeftTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n \tRobotMap.motorRightOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorRightTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n }", "public void forceStop() {\r\n\t\tchaseObj = false;\r\n\t}", "@Override\n\tprotected void end() {\n\t\tif(Robot.usePivot()) {\n\t\t\tRobot.acquisition.acquisitionMotor.set(ControlMode.PercentOutput, 0);\n\t\t}\n\t\tRobot.acquisition.rollerMotor.set(ControlMode.PercentOutput, 0);\n\t}", "@Override\n \tpublic void pause() {\n \t}", "private static void exit() {\n dvm.exit();\n stop = true;\n }", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }" ]
[ "0.6727282", "0.6507846", "0.6468306", "0.64656883", "0.646561", "0.6317693", "0.62531835", "0.6236009", "0.62328285", "0.6201276", "0.61858964", "0.61643726", "0.6158596", "0.6143859", "0.61278963", "0.61130905", "0.60923064", "0.6073257", "0.6073199", "0.6062846", "0.6060595", "0.6047515", "0.6040973", "0.6040973", "0.603827", "0.6031499", "0.60249823", "0.60249674", "0.60243803", "0.6018896", "0.60110295", "0.60037625", "0.6001686", "0.59994555", "0.599935", "0.5988136", "0.59839857", "0.5980204", "0.59752923", "0.59737927", "0.5973559", "0.59728575", "0.5968623", "0.59620464", "0.5958117", "0.5954227", "0.5949682", "0.5946784", "0.5943846", "0.59405106", "0.5940375", "0.5937166", "0.59330714", "0.59309655", "0.59293115", "0.5927905", "0.59278154", "0.5921406", "0.5920874", "0.5920874", "0.5920874", "0.5920874", "0.5920874", "0.5920874", "0.5920874", "0.5920874", "0.5920874", "0.59193546", "0.5918288", "0.5918288", "0.5910881", "0.59022075", "0.5898745", "0.5897303", "0.58875185", "0.58862215", "0.588601", "0.58814573", "0.58798903", "0.58790225", "0.58788276", "0.5873161", "0.58720976", "0.58690166", "0.5867512", "0.5867512", "0.5867512", "0.58669704", "0.58614665", "0.5857012", "0.5855584", "0.58550394", "0.5853262", "0.5849447", "0.5848651", "0.58485585", "0.58424747", "0.58388144", "0.5837018", "0.5837018" ]
0.6106492
16
Paralysis has a 25% chance of immobolising the afflicted pokemon.
public boolean immobilises(Pokemon poke) { BattleField field = poke.getField(); if (field.getRandom().nextDouble() <= 0.25) { field.showMessage(poke.getName() + " is paralysed! It can't move!"); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getMissChance();", "static boolean getMauled(){\n\t\t\tif (Person.player.inventory.contains(Item.repellent)) //if you have the goose repellent...\n\t\t\t\treturn (MainFile.getRandomNumber(240) == 12); //drastically lowers your chance of being mauled.\n\t\t\treturn (MainFile.getRandomNumber(20) == 12);//generates a random number for if you don't have it, and if it's 12 you get mauled\n\t\t}", "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }", "private void chance(Player currentPlayer) {\n Random rand = new Random();\n int randomNum = rand.nextInt((3 - 1) + 1) + 1;\n\n if(randomNum == 1){\n convertTextToSpeech(\"Advance to Bond Street\");\n currentPlayer.setCurrentPosition(34);\n }\n if(randomNum == 2){\n convertTextToSpeech(\"Unpaid charges. Go to jail\");\n setJail(currentPlayer);\n }\n if(randomNum == 3){\n convertTextToSpeech(\"Build a rooftop swimming pool on your apartment, pay 300\");\n if(m_manageFunds) {\n currentPlayer.subtractMoney(300);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n m_freeParking += 300;\n Log.d(\"chance subtract 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance free parking\", String.valueOf(m_freeParking));\n }\n }\n }", "public int attack()\n {\n int percent = Randomizer.nextInt(100) + 1;\n int baseDamage = super.attack();\n if(percent <= 5)\n {\n baseDamage *= 2;\n baseDamage += 50;\n }\n return baseDamage;\n }", "float genChance();", "public void roam(){\r\n Random rand = new Random();\r\n String aniName = this.getName();\r\n String aniType = this.getAniType();\r\n //Chance will be a number between 1 and 100\r\n int chance = rand.nextInt(100) + 1;\r\n //25% chance that the pachyderm will charge\r\n if (chance <= 25){\r\n System.out.println(aniName + \" the \" + aniType + \" charges.\");\r\n }\r\n //75% chance the method works as originally intended.\r\n else{\r\n System.out.println(aniName + \" the \" + aniType + \" roams.\");\r\n }\r\n }", "public void move1(Pokemon enemy){\n int randCrit = (int)(22 * Math.random()+1);\n boolean crit = false;\n boolean superEffective = false;\n boolean reduced = false;\n boolean moveHit = true;\n\n //CHANGE ATTACK TO FALSE IF MOVE DOES NO DAMAGE<<<<<<<<<<<<<\n boolean attack = true;\n //CHANGE TYPE TO TYPE OF MOVE POWER AND ACCURACY<<<<<<<<<<<<<\n String type = \"Dark\";\n int power = 70;\n int accuracy = 100;\n\n //DO NOT CHANGE BELOW THIS\n int damage = ((CONSTANT * power * ( getAtt() / enemy.getDef() )) /50);\n if(randCrit == CONSTANT){\n damage = damage * 2;\n crit = true;\n }\n if(checkSE(type,enemy.getType())){\n damage = damage * 2;\n superEffective = true;\n }\n if(checkNVE(type, enemy.getType())){\n damage = damage / 2;\n reduced = true;\n }\n if(attack && hit(accuracy)){\n enemy.lowerHp(damage);\n }\n else{\n if(hit(accuracy)){\n //DO STATUS EFFECT STUFF HERE (ill figure out later)\n }\n\n }\n lowerM1PP();\n }", "public void infect() {\n\n if (random.getRandom() <= getProbability()) {\n isInfected = true;\n isInfectedOnThisStep = true;\n }\n }", "public void move3(Pokemon enemy){\n boolean crit = false;\n boolean superEffective = false;\n boolean reduced = false;\n boolean moveHit = true;\n int randCrit = (int)(22 * Math.random()+1);\n\n //CHANGE ATTACK TO FALSE IF MOVE DOES NO DAMAGE<<<<<<<<<<<<<\n boolean attack = false;\n //CHANGE TYPE TO TYPE OF MOVE POWER AND ACCURACY<<<<<<<<<<<<<\n String type = \"Normal\";\n int power = 0;\n int accuracy = 100;\n\n //DO NOT CHANGE BELOW THIS\n int damage = ((CONSTANT * power * ( getAtt() / enemy.getDef() )) /50);\n if(randCrit == CONSTANT){\n damage = damage * 2;\n crit = true;\n }\n if(checkSE(type,enemy.getType())){\n damage = damage * 2;\n superEffective = true;\n }\n if(checkNVE(type, enemy.getType())){\n damage = damage / 2;\n reduced = true;\n }\n if(attack && hit(accuracy)){\n enemy.lowerHp(damage);\n }\n else{\n if(hit(accuracy)){\n //DO STATUS EFFECT STUFF HERE (ill figure out later)\n }\n }\n lowerM3PP();\n }", "@Test\n public void testDamage()\n {\n Pistol weap = new Pistol(10, 50, 10, 2, 10);\n\n assertEquals(8, weap.calculateDamage(20));\n }", "public void goAdventuring() {\n\n game.createRandomMonster(4);\n if(RandomClass.getRandomTenPercent() == 5) {\n System.out.println(\"Your are walking down the road... Everything looks peaceful and calm.. Hit enter to continue!\");\n sc.nextLine();\n\n } else {\n game.battle();\n p.checkXp();\n }\n }", "public float getSpawningChance()\n {\n return 0.1F;\n }", "public void attack(User p)\n\t{\n\t\tint damage = getAttack() - p.getDefense();\n\t\tint evade = 0;\n\t\tif(damage <= 0)\n\t\t{\n\t\t\tevade = p.getDefense() - getAttack();\n\t\t\tdamage = 1;\n\t\t}\n\t\t\n\t\tif(Math.random() * 100 < evade * 5)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"Miss\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tp.reduce(damage);\n JOptionPane.showMessageDialog(null,\"Enemy attacked you! User's health = \" + p.getHealth() + \"\\n\" + \"Damage dealt = \" + damage); \n\t}", "public float getChance()\n {\n return 1.0f;\n }", "private void hitP1(int attack) {\n game_PB_p1HP.setProgress(attack + game_PB_p1HP.getProgress());\n if (game_PB_p1HP.getProgress() > GameVariables.CRITICAL_HP)\n game_PB_p1HP.setProgressDrawable(ContextCompat.getDrawable(this, R.drawable.game_progressbar_low_hp));\n if (game_PB_p1HP.getProgress() >= GameVariables.MAX_HP)\n announceWinner(GameVariables.P2_WIN);\n\n }", "boolean checkPsychicEnergy(AbstractPsychicPokemon pokemon);", "public void healPokemon()\n\t{\n\t\tfor(Pokemon pokemon : getParty())\n\t\t\tif(pokemon != null)\n\t\t\t{\n\t\t\t\tpokemon.calculateStats(true);\n\t\t\t\tpokemon.reinitialise();\n\t\t\t\tpokemon.setIsFainted(false);\n\t\t\t\tfor(int i = 0; i < pokemon.getMoves().length; i++)\n\t\t\t\t\tif(pokemon.getMoves()[i] != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tPokemonMove move = pokemon.getMoves()[i].getMove();\n\t\t\t\t\t\tpokemon.setPp(i, move.getPp() * (5 + pokemon.getPpUpCount(i)) / 5);\n\t\t\t\t\t\tpokemon.setMaxPP(i, move.getPp() * (5 + pokemon.getPpUpCount(i)) / 5);\n\t\t\t\t\t}\n\t\t\t}\n\t\tServerMessage sendHeal = new ServerMessage(ClientPacket.POKES_HEALED);\n\t\tgetSession().Send(sendHeal);\n\t}", "public void move4(Pokemon enemy){\n boolean crit = false;\n boolean superEffective = false;\n boolean reduced = false;\n boolean moveHit = true;\n int randCrit = (int)(22 * Math.random()+1);\n\n //CHANGE ATTACK TO FALSE IF MOVE DOES NO DAMAGE<<<<<<<<<<<<<\n boolean attack = true;\n //CHANGE TYPE TO TYPE OF MOVE POWER AND ACCURACY<<<<<<<<<<<<<\n String type = \"Steel\";\n int power = 50;\n int accuracy = 95;\n\n //DO NOT CHANGE BELOW THIS\n int damage = ((CONSTANT * power * ( getAtt() / enemy.getDef() )) /50);\n if(randCrit == CONSTANT){\n damage = damage * 2;\n crit = true;\n }\n if(checkSE(type,enemy.getType())){\n damage = damage * 2;\n superEffective = true;\n }\n if(checkNVE(type, enemy.getType())){\n damage = damage / 2;\n reduced = true;\n }\n if(attack && hit(accuracy)){\n enemy.lowerHp(damage);\n }\n else{\n if(hit(accuracy)){\n //DO STATUS EFFECT STUFF HERE (ill figure out later)\n }\n }\n lowerM4PP();\n }", "void CalculateProbabilities()\n\t{\n\t int i;\n\t double maxfit;\n\t maxfit=fitness[0];\n\t for (i=1;i<FoodNumber;i++)\n\t {\n\t if (fitness[i]>maxfit)\n\t maxfit=fitness[i];\n\t }\n\n\t for (i=0;i<FoodNumber;i++)\n\t {\n\t prob[i]=(0.9*(fitness[i]/maxfit))+0.1;\n\t }\n\n\t}", "public void healPokemon() {\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tp.resetCurrentHP();\r\n\t\t}\r\n\t}", "int getMinigameDefenseChancesLeft();", "private void checkProbability(String mapName, WildEncounterInfo[] wildEncounters) {\n int totalProbability = 0;\n for (WildEncounterInfo wildEncounter : wildEncounters) {\n totalProbability += wildEncounter.getProbability();\n }\n\n Assert.assertEquals(mapName, 100, totalProbability);\n }", "public static void handleEffectChances() {\n for (int i=0 ; i<5 ; i++) {\n effectChances.set(i, effectChances.get(i)+((int) Math.ceil(((double)stageCount)/5))*2);\n }\n }", "private boolean learning()\r\n\t{\r\n\t\tint temp = (int) (Math.random() * 100);\t\t//generate a random int between 0-100\r\n\t\tif(temp<=intelligence)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "int accidentVelo()\r\n\t{\r\n\t\tdouble rand = Math.random()*100;\r\n\t\tSystem.out.println(rand);\r\n\t\tif ((double)rand <= 0.5) {\r\n\t\t\tSystem.out.println(\"Finalement vous auriez du y aller à pied. Vous vous vider de votre sang sur le bord du trottoir.\");\r\n\t\t\treturn 0.5;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public abstract int getRandomDamage();", "public void blame(int action) {\n if (action == 0) {\n this.eatable *= 0.75;\n this.playable *= 1.25;\n this.ignorable *= 1.25;\n } else if (action == 1) {\n this.eatable *= 1.25;\n this.playable *= 0.75;\n this.ignorable *= 1.25;\n } else {\n this.eatable *= 1.25;\n this.playable *= 1.25;\n this.ignorable *= 0.75;\n }\n }", "@Override\n public void attackedByPaladin(double attack) {\n this.attack += (2 * attack) / 3;\n damageCounter = Math.max(damageCounter - (2 * attack) / 3, 0);\n }", "private void mutate(float probability) {\r\n\r\n individual[] temp_pop = new individual[this.pop_size];\r\n\r\n for (int i = 0; i < this.pop_size; i++) {\r\n\r\n float temp_genes[] = this.offspring_population.getPopulation()[i].getGenes();\r\n\r\n // mutation can now mutate wild cards\r\n for (int j = 0; j < temp_genes.length; j++) {\r\n float k = new Random().nextFloat();\r\n\r\n if (k <= probability) {\r\n float temp = new Random().nextFloat();\r\n temp_genes[j] = temp; // add a float between 0-1 // just mutate a new float\r\n }\r\n }\r\n individual child = new individual(temp_genes, solutions, output);\r\n temp_pop[i] = child;\r\n }\r\n this.main_population.setPopulation(temp_pop);\r\n this.main_population.update_population();\r\n }", "double getCritChance();", "protected abstract float _getGrowthChance();", "public boolean throwPokeball(AbstractPokemon wildPokemon)\n {\n System.out.println(toString() + \" threw a \" + pokeball.toString() + \"!\");\n int ballFactor = pokeball.getFactor();\n if(pokeball instanceof Masterball)\n return true;\n int d = wildPokemon.getCatchRate() / ballFactor;\n if (d >= 256)\n return false;\n else\n {\n int pokemonsHP = wildPokemon.getHealth();\n if (pokemonsHP == 0)\n pokemonsHP = 4;\n int factor1 = (wildPokemon.getMaxHealth() * 255) / ballFactor;\n int factor2 = wildPokemon.getHealth() / 4;\n if (factor2 == 0)\n factor2 = 1;\n int factorTotal = factor1 / factor2;\n if (factorTotal > 255)\n factorTotal = 255;\n int probabilityOfCapture = (d * factorTotal) / 255;\n if (probabilityOfCapture > 70)\n return true;\n else\n return false;\n }\n }", "@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }", "void ponderhit();", "public void progressInfectionProbV2(int probability){\n int recoveryProb = 0;\n recoveryProb = daysInfected * probability;\n int recov = rand.nextInt(100);\n if (recov < recoveryProb) {\n //recover\n nextState = States.RecoveredVirus2;\n immuneV2 = true;\n } else daysInfected++;\n }", "private void triggerDropPotion(double percentage) {\n if (isDropped(percentage)) {\n loadItem(\"Potion\");\n }\n }", "public void attack(String spell, character opponent){\n Random rand = new Random();\n int prob;\n String attack;\n \n prob = rand.nextInt(2); //we need two random numbers to allow us to use the two attacks:\n if(prob==0){\n attack = \"punch\";\n opponent.setHealth(opponent.getHealth() - 10);\n System.out.println(getName() + \" has landed \" + attack);\n System.out.println(opponent.getName() + \" health now \" + opponent.getHealth());\n }\n \n else if(prob==1){\n attack = \"kick\";\n opponent.setHealth(opponent.getHealth() - 15);\n System.out.println(getName() + \" has landed \" + attack);\n System.out.println(opponent.getName() + \" health now \" + opponent.getHealth());\n }\n \n \n }", "public Critter1() {\r\n\t\tnumberSpawned = 0;\r\n\t\twhile (fearfullness < 50) {//at minimum fearfullness is 50%\r\n\t\t\tfearfullness = getRandomInt(100);\r\n\t\t}\r\n\t}", "public int performPokeAction() {\n\t\tAction action = pokemon.chooseAction();\n\t\tif (action == Action.ATTACK) {\n\t\t\ttrainer.takeDamage(pokemon.performAttack());\n\t\t}\n\t\treturn action.getValue();\n\t\t//return Action.ATTACK.getValue();\n\t}", "void spray(double percent)\n {\n roaches = (int) (roaches - (roaches * percent / 100));\n }", "public void action() {\n\t\tsuppressed = false;\r\n\t\tpilot.setLinearSpeed(8);\r\n\t\tpilot.setLinearAcceleration(4);\r\n\t\tColorThread.updatePos = false;\r\n\t\tColorThread.updateCritical = false;\r\n\t\t//create a array to save the map information\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\trobot.probability[a][b] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\tif (a == 0 || a == 7 || b == 0 || b == 7) {\r\n\t\t\t\t\trobot.probability[a][b] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 6; a++) {\r\n\t\t\tfor (int b = 0; b < 6; b++) {\r\n\t\t\t\tif (robot.map[a][b].getOccupied() == 1) {\r\n\t\t\t\t\trobot.probability[a + 1][b + 1] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Step1: use ArrayList to save all of the probability situation.\r\n\t\tfloat front, left, right, back;\r\n\t\tfront = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\tleft = USThread.disSample[0];\r\n\t\trobot.setmotorM(-180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tright = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\trobot.correctHeading(180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tback = USThread.disSample[0];\r\n\t\trobot.correctHeading(180);\r\n\t\tfor (int a = 1; a < 7; a++) {\r\n\t\t\tfor (int b = 1; b < 7; b++) {\r\n\t\t\t\tif (robot.probability[a][b] == -1) {\r\n\t\t\t\t\tif (((robot.probability[a][b + 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t//direction is north\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(0, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"0 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a + 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is east\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(1, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"1 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a][b - 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is sourth\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(2, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"2 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a - 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is west\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(3, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"3 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Step 2: use loop to take control of robot walk and check the location correction\r\n\t\tboolean needLoop = true;\r\n\t\tint loopRound = 0;\r\n\t\twhile (needLoop) {\r\n\t\t\t// One of way to leave the loop is at the hospital\r\n\t\t\tif ((ColorThread.leftColSample[0] >= 0.2 && ColorThread.leftColSample[1] < 0.2\r\n\t\t\t\t\t&& ColorThread.leftColSample[1] >= 0.14 && ColorThread.leftColSample[2] <= 0.8)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] >= 0.2 && ColorThread.rightColSample[1] < 0.2\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[1] >= 0.11 && ColorThread.rightColSample[2] <= 0.08)) {\r\n\t\t\t\trobot.updatePosition(0, 0);\r\n\t\t\t\tint numOfAtYellow = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtYellow++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtYellow == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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}else {\r\n\t\t\t\t\t//have two way to go to the yellow part\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//Another way to leave the loop is the robot arrive the green cell.\r\n\t\t\tif ((ColorThread.leftColSample[0] <= 0.09 && ColorThread.leftColSample[1] >= 0.17\r\n\t\t\t\t\t&& ColorThread.leftColSample[2] <= 0.09)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] <= 0.09 && ColorThread.rightColSample[1] >= 0.014\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[2] <= 0.11)) {\r\n\t\t\t\trobot.updatePosition(5, 0);\r\n\t\t\t\tint numOfAtGreen = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtGreen++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtGreen==1) {\r\n\t\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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}else {\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The third way of leave the loop is the robot have already know his position and direction.\r\n\t\t\tint maxStepNumber = 0;\r\n\t\t\tint numberOfMaxSteps = 0;\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() > maxStepNumber) {\r\n\t\t\t\t\tmaxStepNumber = robot.listOfPro.get(i).getSteps();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\tnumberOfMaxSteps++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (numberOfMaxSteps == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\t\trobot.updatePosition(robot.listOfPro.get(i).getNowX() - 1,\r\n\t\t\t\t\t\t\t\trobot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The below part are the loops.\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\t// move\r\n\t\t\t\r\n\t\t\tif (front > 0.25) {\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (left > 0.25) {\r\n\t\t\t\trobot.correctHeading(-90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (right > 0.25) {\r\n\t\t\t\trobot.correctHeading(90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// It time to check the around situation\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t//System.out.println(robot.listOfPro.get(i).getSteps());\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\tif (((front < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\tif (((left < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\tif (((back < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (((right < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\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\tloopRound++;\r\n\t\t}\r\n\t\t// if is out the while loop, it will find the heading and the position of robot right now.\r\n\t\t//Step 3: It is time to use wavefront to come back to the hospital\r\n\t\trobot.restoreDefault();\r\n\t\trobot.RunMode = 1;\r\n\t\tColorThread.updatePos = true;\r\n\t\tColorThread.updateCritical = true;\r\n\t}", "public void promote() {\r\n\t\tif (exp >= 20) {\r\n\t\t\tstage +=1;\r\n\t\t\texp = 0;\r\n\t\t\thp *= 2;\r\n\t\t\tenergy *= 2;\r\n\t\t\tattackPoint *= 2;\r\n\t\t\tresistancePoint *= 2;\r\n\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.printf(\"Pokemon has evolved!\\n\");\r\n\t}", "public void Hitting(Monsters opponent) throws Exception {\n\t\tassert (this != opponent);\n\t\tRandom rand = new Random();\n\t\tint hit = rand.nextInt(30);\n\t\tif(hit >= this.getHitpoints()) \n\t\t\thit = this.getHitpoints();\n\t\tif (hit >= opponent.getProtection()) {\n\t\t\tint power;\n\t\t\tif (this.getAnchor(1) == null)\n\t\t\t\tpower = this.getDamage() + (this.getStrength() - 5) / 3;\n\t\t\telse\n\t\t\t\tpower = this.getDamage() + (this.getStrength() - 5) / 3 + ((Weapons)this.getAnchor(1)).getDamage();\n\t\t\topponent.setHitpoints(opponent.getHitpoints() - power);\n\t\t\tSystem.out.println(this.getName() + \" Deals \" + power + \" damage over \" + opponent.getName());\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(this.getName() + \" attack failed!\");\n\t}", "public static void bullyAttack(){\n int punch = player.getHealth() - bullyHitPoints ;\n player.setHealth(punch);\n //Step 2: Conditional dialogue\n if(bullyHitPoints > 50) {\n System.out.println(textparser.getMassiveDamage() + bullyHitPoints + textparser.getToYou());\n }else if(bullyHitPoints > 25){\n System.out.println(textparser.getPunch() + bullyHitPoints + textparser.getToYou());\n }else{\n System.out.println(textparser.getDidntHurtMuch() + bullyHitPoints + textparser.getToYou());\n }\n }", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(500, 800);\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "public void prisonerUpdate(){\r\n\t\t//check if a enemy has been spotted\r\n\t\tif (checkSight()){\r\n\t\t\tseen = true;\r\n\t\t} if (seen) {\r\n\t\t\tcreature.setSpeed(1.5);\r\n\t\t\tchaseEnemy(seenEnemy, 5);\r\n\t\t\treturn; //if player has been spotted end method here\r\n\t\t}\r\n\t\t//if no enemy has been spotted\r\n\t\tcreature.setSpeed(1);\r\n\t\tcreature.setAttacking(false);\r\n\t\troamArea();\r\n\t\tif (!checkCollision(x, y)) {\r\n\t\tgoToLocation(x, y);\r\n\t\t}\r\n\t}", "float getBonusPercentHP();", "private int heavyAttack() {\n return attack(6, 2);\n }", "@Override\r\n\tpublic int costOfShooting() {\r\n\t\treturn 50;\r\n\t}", "@Override\r\n\tpublic void onThink() {\n\t\tint random = (shotsFired + 1) % 3 - 1;\r\n\t\tVacuumProjectile projectile = new VacuumProjectile(DAMAGE * this.owner.finalDamageOutputModifier, SPEED, this.owner.direction, Point.add(this.owner.gridLoc, new Point(0, random)), this.owner.teamID);\r\n\t\tthis.getMap().addGameElement(projectile);\r\n\t\tthis.shotsFired++;\r\n\t\tif(this.shotsFired >= NUM_SHOTS) {\r\n\t\t\tthis.finishSpell();\r\n\t\t}\r\n\t}", "public int shoot()\n {\n if(availableAmmo > 0)\n {\n System.out.println(\"Pew Pew\");\n availableAmmo--; \n damageCaused = randomDamageGenerator.nextInt(450);\n return damageCaused;\n }\n else return -1;\n }", "public Pokemon(){\r\n this.level = 1;\r\n this.hp = 100;\r\n // this.power = 100;\r\n // this.exp = 0;\r\n }", "public void setPotion(int p) {\n setStat(p, potion);\n }", "public int giveDamage();", "public double people(double precis,double plagiarism,double poster,double video,double presentation,double portfolio,double reflection,double examination,double killerRobot)\n {\n double a = ((4%100)*precis)/100;\n double b = ((8%100)*plagiarism)/100;\n double c = ((12%100)*poster)/100;\n double d = ((16%100)*video)/100;\n double e = ((12%100)*presentation)/100;\n double f = ((10%100)*portfolio)/100;\n double g = ((10%100)*reflection)/100;\n double h = ((16%100)*examination)/100;\n double i = ((12%100)*killerRobot)/100;\n double grade = ((a+b+c+d+e+f+g+h+i)/8);//*100;\n return grade;\n }", "public float getChance() {\n return chance;\n }", "private void evaluateProbabilities()\n\t{\n\t}", "@Test\n public void enemySustainMassiveDamage() {\n }", "public void cheat() {\r\n\t\t\t\tnourriture += population*10;\r\n\t\t\t\tarmee += population/2;\r\n\t\t\t\tpopulation += armee*tailleArmee;\r\n\t\t\t}", "public void NPSShot()\n\t{\n\t\t//can only occur if a friendly missile and \n\t\t//a NPS are spawned\n\t\tif(gameObj[2].size() > 0 && gameObj[4].size() > 0)\n\t\t{\n\t\t\tint nps = new Random().nextInt(gameObj[2].size());\n\t\t\tint mis = new Random().nextInt(gameObj[4].size());\n\t\t\tgameObj[2].remove(nps);\n\t\t\tgameObj[4].remove(mis);\n\t\t\tscore += 500;\n\t\t\tSystem.out.println(\"A player misile has struck a NPS! +500 points\");\n\t\t}else\n\t\t\tSystem.out.println(\"An NPS and a friendly missile are not spawned\");\n\t}", "protected void getProbabilitiesStayInJail() {\t\t\r\n\t\tboard().dice().forEachPossibleRoll((roll, size) -> {\t\t\t\r\n\t\t\t//if doubles, we're forced to leave jail (but our doubles are accounted for, we don't roll again)\r\n\t\t\tif (roll.isDoubles())\r\n\t\t\t\tboard().nextSpace(board().getSpace(justVisitingID), roll.getTotal()).updateProbAndRoll(1, (double) 1 / size, false);\r\n\t\t\telse\r\n\t\t\t\tboard().getSpace(this.ID() + 1).updateProbAndRoll(0, (double)1 / size, false);\r\n\t\t});\r\n\t}", "public void a(PotionEffect paramwq)\r\n/* 44: */ {\r\n/* 45: 52 */ if (this.id != paramwq.id) {\r\n/* 46: 53 */ a.warn(\"This method should only be called for matching effects!\");\r\n/* 47: */ }\r\n/* 48: 55 */ if (paramwq.amplifier > this.amplifier)\r\n/* 49: */ {\r\n/* 50: 56 */ this.amplifier = paramwq.amplifier;\r\n/* 51: 57 */ this.duration = paramwq.duration;\r\n/* 52: */ }\r\n/* 53: 58 */ else if ((paramwq.amplifier == this.amplifier) && (this.duration < paramwq.duration))\r\n/* 54: */ {\r\n/* 55: 59 */ this.duration = paramwq.duration;\r\n/* 56: */ }\r\n/* 57: 60 */ else if ((!paramwq.ambient) && (this.ambient))\r\n/* 58: */ {\r\n/* 59: 61 */ this.ambient = paramwq.ambient;\r\n/* 60: */ }\r\n/* 61: 63 */ this.showParticles = paramwq.showParticles;\r\n/* 62: */ }", "public void takeDamage(int damage);", "double getExtremeSpikeProbability();", "public void calculateProbabilities(){\n\t}", "@Test\n\tpublic void testPopulationMortality1() throws GameControlException {\n\t\tSystem.out.println(\"testPopulationMortality1\");\n\t\tint result = GameControl.populationMortality(1500, 100);\n\t\tassertEquals(25, result);\n\t\tSystem.out.println(result);\n\t}", "public void attemptAttack() {\r\n\t\tattackAttempts += 100;\r\n\t}", "@Override\r\n\tpublic int attack() {\r\n\t\treturn rnd.nextInt(MAX_MONSTER_ATTACK_DAMAGE);\r\n\t}", "@Override\n\tpublic void shoot(Plateau p) {\n\t\tif(!noMunition()) {\n\t\t\tuseMunition();\n\t\t\t//complete\n\t\t}\n\t\t\n\t}", "void setExtremeSpikeProbability(double p);", "public void catchPokemon(Pokemon p)\n\t{\n\t\tDate d = new Date();\n\t\tString date = new SimpleDateFormat(\"yyyy-MM-dd:HH-mm-ss\").format(d);\n\t\tp.setDateCaught(date);\n\t\tp.setOriginalTrainer(getName());\n\t\tp.setDatabaseID(-1);\n\t\taddPokemon(p);\n\t\taddTrainingExp(1000 / p.getRareness());\n\t\tif(!isPokemonCaught(p.getPokedexNumber()))\n\t\t\tsetPokemonCaught(p.getPokedexNumber());\n\t}", "public void move2(Pokemon enemy){\n boolean crit = false;\n boolean superEffective = false;\n boolean reduced = false;\n boolean moveHit = true;\n\n int randCrit = (int)(22 * Math.random()+1);\n\n //CHANGE ATTACK TO FALSE IF MOVE DOES NO DAMAGE<<<<<<<<<<<<<\n boolean attack = true;\n //CHANGE TYPE TO TYPE OF MOVE POWER AND ACCURACY<<<<<<<<<<<<<\n String type = \"Bug\";\n int power = 80;\n int accuracy = 100;\n\n //DO NOT CHANGE BELOW THIS\n int damage = ((CONSTANT * power * ( getAtt() / enemy.getDef() )) /50);\n if(randCrit == CONSTANT){\n damage = damage * 2;\n crit = true;\n }\n if(checkSE(type,enemy.getType())){\n damage = damage * 2;\n superEffective = true;\n }\n if(checkNVE(type, enemy.getType())){\n damage = damage / 2;\n reduced = true;\n }\n if(attack && hit(accuracy)){\n enemy.lowerHp(damage);\n }\n else{\n if(hit(accuracy)){\n //DO STATUS EFFECT STUFF HERE (ill figure out later)\n }\n }\n lowerM2PP();\n }", "float getSpecialProb();", "public void growLiving(){\n living += Math.round(Math.random());\n living -= Math.round(Math.random());\n \n if(living > 100){\n living = 100;\n }\n \n if(living < 0){\n living = 0;\n }\n }", "@Override\n public void doStrategy(final Pyromancer pyromancer) {\n int hpLoss = pyromancer.getHP() / Constants.PYROMANCER_STRATEGY_HP_LOSS;\n pyromancer.reduceHP(hpLoss);\n pyromancer.increaseRaceMod(Constants.DAMAGE_MOD_70);\n }", "protected void usePoison(double amount) {\n\t\tassert poison >= 0;\n\t\tthis.poison += amount;\n\t\tpoison = Math.min(1, Math.max(0, poison));\n\t}", "public void recover(){\n\tint hp = (int)((Math.random() * health)*.5);\n\n\thealth += hp;\n\t\t\n\tSystem.out.print(\"You catch your breath and pick yourself up. Recover : \");\n\tSystem.out.print(hp);\n\tSystem.out.println(\" health.\\n\"); \n }", "private void fortificationPhase(Player p) \n\t{\n\t\tp.fortify();\n\t}", "private void performPhysicalTask() {\r\n\t\tlong millis = (long) ((100 - getAveragePhysicalScore()) * 100.0);\r\n\r\n\t\ttry {\r\n\t\t\tMain.Log(\"Team \" + getName() + \" performing physical task for \" + millis + \" millis\");\r\n\t\t\tsleep(millis);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public boolean launch() {\n\t\treturn ( Math.random() > this.explodProb);\r\n\t\t \r\n\t}", "public double getAbandonmentProbability() {\n return Math.random();\n }", "public int attackPokemon(Pokemon pokemon1, Pokemon pokemon2, Player player);", "public static void damageStep () {\r\n // rough plan:\r\n // #1: flip defending monster, if face down -> see flipMonster(...);\r\n // #2: Ask CPU and player for possible effect negation! (For an attack negation it is too late!) -> see below in this method\r\n // #3: calculate damage, kill monsters, if needed\r\n // (consider also banishing and immunity, also copied passive effect of (Holy) Lance)\r\n // -> see makeDamageCalculation(...);\r\n // #4: decrease life points, if needed -> see isDealingBattleDamageAndContinuingGame(...);\r\n // #5: consider passive (also copied) trap monster effects -> see possibleSuicideEffect(...);\r\n // #6: display Win/Lose dialog and end match, if needed -> see Game.over(...);\r\n // #7: finally end the attack (consider the effects that happen afterwards), thus allowing the next attack -> endDamageStep(...);\r\n \r\n // about #1:\r\n if (Game.ActiveGuardingMonster.isFaceDown) {flipMonster(Game.ActiveGuardingMonster);}\r\n // about #2:\r\n if (Game.ActiveAttackingMonster.canBeNegated() || Game.ActiveGuardingMonster.canBeNegated()) {\r\n AIinterrupts.cpuIsUsingEffectNegateDuringBattlePhase(); // ask CPU to negate effects first\r\n // ask player to negate effect here\r\n boolean isCanceling = false;\r\n boolean hasEffectNegateHandTrap = Hand.lookForEffectNegateOnHand(true);\r\n boolean hasEffectNegateOnField = Hand.lookForEffectNegateOnField(true);\r\n if (hasEffectNegateHandTrap || hasEffectNegateOnField) {\r\n if (hasEffectNegateHandTrap && !hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (!hasEffectNegateHandTrap && hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n else {\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Do you want to negate effects on the field?\", \"You can negate passive effects.\", new String[]{\"yes, by discarding Neutraliser\", \"yes, by paying the cost worth 1 card\", \"no (default)\"}, \"no (default)\");\r\n if (intDialogResult==0) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (intDialogResult==1) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n }\r\n }\r\n if (!isCanceling) {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n }\r\n else {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n \r\n }", "void mining() {\n //COMPUTE ALL DATA HERE\n if (random.nextBoolean()) {\n black_toner = black_toner + random.nextInt(variation);\n black_drum = black_drum + random.nextInt(variation / 2);\n total_printed_black = total_printed_black + random.nextInt(variation);\n } else {\n black_toner = black_toner - random.nextInt(variation);\n black_drum = black_drum - random.nextInt(variation / 2);\n total_printed_black = total_printed_black - random.nextInt(variation);\n }\n\n if (black_toner <= 0) {\n black_toner = 100;\n }\n if (black_drum <= 0) {\n black_drum = 100;\n }\n if (total_printed_black <= 0) {\n total_printed_black = 100;\n }\n }", "int calcPlagiarismPercent() throws ParserException;", "public void attack(Player p){\n p.takeDamage(damage);\n }", "public Potion()\r\n\t{\r\n\t\tsuper(\"Potion\");\r\n\t\thealthRecovery = 30;\r\n\t}", "public void makeHero()\r\n { \r\n maxHealth = 100;\r\n health = maxHealth;\r\n }", "private void thinking(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "float shouldAggroOnHit(IGeneticMob geneticMob, EntityLiving attacker);", "private void useInventoryByAI() {\n\t\tChampion AI = currentTask.getCurrentChamp();\n\t\tArrayList<Collectible> inventory = ((Wizard)AI).getInventory();\n\t\tif(inventory.size()>0){\n\t\t\tint randomPotion = (int)(Math.random()*inventory.size());\n\t\t\tcurrentTask.usePotion((Potion)inventory.get(randomPotion));\n\t\t}\n\n\t\t\n\t}", "public void punch (int health)\n {\n\thealth -= 8;\n\thealth2 = health;\n }", "public boolean muerteInesperada() {\n r = new Random();\r\n return Float.compare(r.nextFloat(), probMuerte) <= 0;\r\n }", "boolean takeDamage(int dmg);", "@Test\n public void test_BoostOnDies() {\n addCard(Zone.HAND, playerA, \"Silumgar Scavenger\", 1); // {4}{B}\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 5);\n //\n addCard(Zone.BATTLEFIELD, playerA, \"Balduvian Bears\", 1);\n\n // cast and exploit\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Silumgar Scavenger\");\n setChoice(playerA, true); // yes, exploit\n addTarget(playerA, \"Balduvian Bears\");\n\n checkPermanentCounters(\"boost\", 1, PhaseStep.BEGIN_COMBAT, playerA, \"Silumgar Scavenger\", CounterType.P1P1, 1);\n checkAbility(\"boost\", 1, PhaseStep.BEGIN_COMBAT, playerA, \"Silumgar Scavenger\", HasteAbility.class, true);\n\n setStopAt(1, PhaseStep.END_TURN);\n setStrictChooseMode(true);\n execute();\n }", "private void enemyAttack() {\n\t\t\n\t\tRandom rand = new Random();\t\n\t\t\n\t\tint roll = rand.nextInt(101);\n\t\t\n\t\tint sroll = rand.nextInt(101);\n\t\t\n\t\tevents.appendText(e.getName() + \" attacks!\\n\");\n\t\t\n\t\tif(roll <= p.getEV()) { // Player evades\n\t\t\t\n\t\t\tevents.appendText(\"You evaded \"+e.getName()+\"\\'s Attack!\\n\");\n\t\t\t\n\t\t}else if(roll > p.getEV()) { // Player is hit and dies if HP is 0 or less\n\t\t\t\n\t\t\tp.setHP(p.getHP() - e.getDMG());\n\t\t\t\n\t\t\tString newHp = p.getHP()+\"/\"+p.getMaxHP();\n\t\t\t\n\t\t\tString effect = e.getSpecial(); // Stats are afflicted\n\t\t\t\n\t\t\tif(sroll < 51){\n\t\t\t\t\n\t\t\tif(effect == \"Bleed\") { // Bleed Special\n\t\t\t\t\n\t\t\t\tp.setHP(p.getHP() - 100);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You bleed profusely. - 100 HP\\n\");\n\t\t\t\t\n\t\t\t\tnewHp = String.valueOf(p.getHP()+\"/\"+p.getMaxHP());\n\t\t\t}\n\t\t\tif(effect == \"Break\") { // Break Special \n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You feel a bone break restricting movement. - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Fear\") { // Fear Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-40>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 40);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"A crippling fear rattles your resolve. - 40 DMG\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Rend\") { // Rend Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-30>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 30);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"Morthar unleashes a pillar of flame! - 30 DMG and - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\tif(p.getHP() <= 0) {\n\t\t\t\t\n\t\t\t\tp.setDead(true);\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(0+\"/\"+e.getMaxHP());\n\t\t\t\tplayerHPBar.setProgress((double)0);\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(newHp);\n\t\t\t\tplayerHPBar.setProgress((double)p.getHP()/p.getMaxHP());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(p.isDead()) { // Game over if player dies\n\t\t\t\n\t\t\ttry {\n\t\t\t\tLoadGO();\n\t\t\t} catch (IOException e1) {\n\t\t\t\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcombat = false;\n\t\t}\n\t}", "public void ExecuteAction()\n {\n ActionTarget oTarget = mVecTargets.get( 0 );\n\n // Check if attack lands: compute chance of hitting the target\n if ( RandomGenerator.GetInstance().GetRandom( 1, 100 ) <=\n mSourceUnit.GetHitChance( oTarget.mCell.GetUnit() ) )\n {\n // Get the attack information from the attacking unit\n double dFinalDamage = Math.max(\n 1,\n mSourceUnit.GetUnit().GetResultingAttributes().GetStrength() -\n oTarget.mCell.GetUnit().GetUnit().GetResultingAttributes().GetPhysicalDef() );\n\n // Check critical chance\n if ( RandomGenerator.GetInstance().GetRandom( 1, 100 ) <=\n mSourceUnit.GetCritChance() )\n {\n dFinalDamage *= 1.5;\n oTarget.mActionStatus = ActionStatus.STATUS_CRITICAL;\n }\n else\n {\n oTarget.mActionStatus = ActionStatus.STATUS_SUCCESS;\n }\n\n // Add random portion to damage (10% of base damage)\n dFinalDamage = RandomGenerator.GetInstance().GetRandom(\n dFinalDamage - ( dFinalDamage / 10 ),\n dFinalDamage + ( dFinalDamage / 10 ) );\n mDamage = oTarget.mCell.GetUnit().ApplyDamage( dFinalDamage );\n\n // Add Slow status to target\n oTarget.mCell.GetUnit().SetStatus( new UnitStatusSlow(\n SLOW_TURN_DURATION,\n oTarget.mCell.GetUnit(),\n SLOW_PERCENTAGE ) );\n\n }\n else\n {\n mDamage = 0;\n oTarget.mActionStatus = ActionStatus.STATUS_MISS;\n }\n\n NotifyActionUpdate();\n ResetAttackArray();\n mSourceUnit.SetActionPerformed();\n }", "@Override\n public String execute(Actor actor, GameMap map) {\n // Set the bound for use in generating a random integer within the range [0-bound)\n // There will be 5 possible integers\n int bound = 5;\n // Pick up fruit by chance\n // To yield 1 or 2 when there are 5 possible integers = 40% chance\n Random random = new Random();\n int number = random.nextInt(bound);\n if (number == 1 || number == 2) {\n String result = \"\\n- Your eco points increases from \" + ((Player) actor).getEcoPoints();\n // Increment eco points of Player\n ((Player) actor).setEcoPoints(((Player) actor).getEcoPoints() + 10);\n result += \" to \" + ((Player) actor).getEcoPoints();\n return super.execute(actor, map) + result;\n }\n return \"You search the tree or bush for fruit, but you can't find any ripe ones\";\n }", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }" ]
[ "0.63058376", "0.6300658", "0.6248813", "0.6187665", "0.6171698", "0.6118705", "0.60821813", "0.60508186", "0.6026366", "0.60181624", "0.5999898", "0.59505355", "0.5947099", "0.5941139", "0.5931328", "0.5907943", "0.5907197", "0.58852094", "0.58284926", "0.58211887", "0.5820695", "0.5820442", "0.5818623", "0.5810242", "0.58044237", "0.5799264", "0.5792694", "0.5790319", "0.5789703", "0.5773334", "0.5766653", "0.57633317", "0.57609755", "0.57604885", "0.57552683", "0.5752218", "0.57490313", "0.5748268", "0.57403105", "0.57287294", "0.5715576", "0.571009", "0.5679592", "0.5675464", "0.5667445", "0.5641721", "0.5626021", "0.56182396", "0.56143445", "0.5604274", "0.5597385", "0.5597203", "0.5592935", "0.5592144", "0.5587706", "0.5583171", "0.5581323", "0.5577673", "0.557568", "0.5573945", "0.5564928", "0.5562704", "0.5558391", "0.5557132", "0.5555132", "0.5546838", "0.55443484", "0.55427104", "0.5530128", "0.55250645", "0.5524385", "0.5522501", "0.5522089", "0.5521171", "0.5520613", "0.55167615", "0.5507085", "0.5502881", "0.54992104", "0.54974264", "0.54968125", "0.54966486", "0.54918325", "0.5485126", "0.54843533", "0.54839206", "0.54824734", "0.5482348", "0.5473662", "0.54593086", "0.54581624", "0.54567355", "0.5454109", "0.54512554", "0.54390514", "0.54390025", "0.54360366", "0.54340374", "0.5427407", "0.54273707" ]
0.6793807
0
Responsible for searching and fetching Payments matching the input search criteria
public String paymentsSearch(final String merchantUuid, final String operatorCode, final String countryCode, final String msisdn);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/_search/payments\")\n @Timed\n public ResponseEntity<List<PaymentDTO>> searchPayments(@RequestParam String query, Pageable pageable) {\n log.debug(\"REST request to search for a page of Payments for query {}\", query);\n Page<PaymentDTO> page = paymentQueryService.search(query, pageable);\n HttpHeaders headers = PaginationUtil.generateSearchPaginationHttpHeaders(query, page, \"/api/_search/payments\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "@RequestMapping(method = RequestMethod.GET)\n\tpublic ResponseEntity<SearchPageResponse<PaymentInformation>> search(\n\t\t\t@RequestParam Map<String, String> requestParams) {\n\n\t\tLOGGER.info(\"Inside paymentinfo search.\");\n\t\tSearchDetails searchDetails = new SearchDetails(requestParams);\n\n\t\tSearchPageResponse<PaymentInformation> pageResponse = paymentInformationService\n\t\t\t\t.search(searchDetails);\n\t\t// If no content found\n\t\tif (pageResponse.getData().isEmpty()) {\n\t\t\treturn new ResponseEntity<SearchPageResponse<PaymentInformation>>(\n\t\t\t\t\tHttpStatus.NO_CONTENT);\n\t\t}\n\t\t// Return with success\n\t\treturn new ResponseEntity<SearchPageResponse<PaymentInformation>>(\n\t\t\t\tpageResponse, HttpStatus.OK);\n\t}", "List<ShipmentInfoPODDTO> search(String query);", "@GetMapping(\"/_search/payment-infos\")\n @Timed\n public List<PaymentInfoDTO> searchPaymentInfos(@RequestParam String query) {\n log.debug(\"REST request to search PaymentInfos for query {}\", query);\n return paymentInfoService.search(query);\n }", "List<Revenue> search(String query);", "public void searchByAccount() {\n\t\t\n\t\tlog.log(Level.INFO, \"Please Enter the account number you want to search: \");\n\t\tint searchAccountNumber = scan.nextInt();\n\t\tbankop.search(searchAccountNumber);\n\n\t}", "private void search(SearchRequest request) {\r\n\t\tif(request == null)return;\r\n\t\tList<Record> results = handler.search(request);\r\n\t\tlist.show(results);\r\n\t\tpanInfo.setNumRec(results.size());\r\n\t\tpanInfo.setTotalAmt(Record.sumBalance(results));\r\n\t}", "public void searchPayment(Number nPaymentId) {\n //Verifica nulidad\n if (nPaymentId == null)\n return;\n try {\n //Declara los recursos\n ViewCriteria vcPayment = null;\n ViewCriteriaRow rowVCPayment = null;\n\n //Crea el criterio de busqueda\n vcPayment = createViewCriteria();\n rowVCPayment = vcPayment.createViewCriteriaRow();\n rowVCPayment.setAttribute(\"Id\", nPaymentId);\n\n //Aplica el criterio\n vcPayment.addElement(rowVCPayment);\n applyViewCriteria(vcPayment);\n executeQuery();\n //Inicializa el current row\n if (getEstimatedRowCount() > 0) {\n setCurrentRow(first());\n }\n clearViewCriterias();\n } catch (Exception exception) {\n clearViewCriterias();\n }\n }", "List<SearchResult> search(SearchQuery searchQuery);", "List<Card> search(String searchString) throws PersistenceCoreException;", "private List<BusinessVO> searchBusiness(String search, String sendingId) {\n\t\tString searchTerm = \"%\"+StringUtil.checkVal(search).toLowerCase()+\"%\";\n\t\tlog.debug(\"searching businesses for \" + searchTerm);\n\t\tStringBuilder sql = new StringBuilder(250);\n\t\tString schema = getCustomSchema();\n\t\tList<Object> params = new ArrayList<>();\n\t\tString[] idParts = sendingId.split(\"_\");\n\n\t\tsql.append(\"select * from \").append(schema).append(\"rezdox_business b \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(\"(select business_id from \").append(schema).append(\"rezdox_business_member_xr where status_flg = 1 group by business_id) bmxa on b.business_id = bmxa.business_id \");\n\t\t//omit business over their connection quota\n\t\tsql.append(DBUtil.INNER_JOIN).append(schema).append(\"rezdox_connection_quota_view q on b.business_id=q.business_id and q.quota_no > 0 \");\n\n\t\tsql.append(\"where (lower(b.business_nm) like ? or lower(b.email_address_txt) like ? or lower(b.address_txt) like ?) \");\n\t\tparams.add(searchTerm);\n\t\tparams.add(searchTerm);\n\t\tparams.add(searchTerm);\n\n\t\tsql.append(\"and b.business_id != ? and b.business_id not in ( select case \");\n\t\tparams.add(idParts[1]);\n\n\t\tif(\"m\".equalsIgnoreCase(idParts[0])) {\n\t\t\t//member looking for business\n\t\t\tsql.append(\"when sndr_member_id is not null and sndr_member_id=? and rcpt_business_id is not null then rcpt_business_id \");\n\t\t\tsql.append(\"when rcpt_member_id is not null and rcpt_member_id=? and sndr_business_id is not null then sndr_business_id \");\t\t\n\t\t\tparams.add(idParts[1]);\n\t\t\tparams.add(idParts[1]);\n\t\t}else {\n\t\t\t//business looking for business\n\t\t\tsql.append(\"when sndr_business_id is not null and sndr_business_id=? and rcpt_business_id is not null then rcpt_business_id \");\n\t\t\tsql.append(\"when rcpt_business_id is not null and rcpt_business_id=? and sndr_business_id is not null then sndr_business_id \");\n\t\t\tparams.add(idParts[1]);\n\t\t\tparams.add(idParts[1]);\n\t\t}\n\t\tsql.append(\"else '-1' end as business_id from \").append(schema).append(\"rezdox_connection group by business_id)\");\n\t\tsql.append(\" order by business_nm asc\");\n\n\t\t//run the query & return the results\n\t\tDBProcessor dbp = new DBProcessor(dbConn, schema);\n\t\tdbp.setGenerateExecutedSQL(log.isDebugEnabled());\n\t\tList<BusinessVO> data = dbp.executeSelect(sql.toString(), params, new BusinessVO());\n\t\tlog.debug(\"number of businesses found \" + data.size());\n\t\treturn data;\n\t}", "List<CustDataNotesResponseDTO> searchForCustDataNotes(CustDataNotesRequestDTO custDataNotesRequestDTO) throws Exception;", "List selectByExample(PaymentTradeExample example);", "Page<ConsultationInfoDTO> search(String query, Pageable pageable);", "Payment find(int paymentID);", "List<PurchasePayment> selectByExample(PurchasePaymentExample example);", "List<Establishment> searchEstablishments(EstablishmentCriteria criteria, RangeCriteria rangeCriteria);", "public Container<PosPay> findPosPay(PosPay posPay,int firstResult ,int maxResults)throws DataAccessException;", "List<ResultDTO> search(String query);", "List selectByExampleWithPage(PaymentTradeExample example);", "List<Card> search(String searchString, long userId) throws PersistenceCoreException;", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "public List<Product> search(String searchString);", "List<OwnerOperatorDTO> search(String query);", "public List<Payment> searchPaymentByName(String substring) {\n List<Payment> payments = new ArrayList<>();\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.rawQuery(\"SELECT * FROM \"+tableName+\n \" WHERE \"+Payment.COLUMN_NAME+\" LIKE '%\"+ substring +\"%'\"\n + \" ORDER BY \" + Payment.COLUMN_ID + ORDER, null);\n\n // looping through all rows and adding to list\n if (cursor!=null && cursor.moveToFirst()) {\n do {\n Payment payment = new Payment();\n payment.setId(cursor.getInt(cursor.getColumnIndex(Payment.COLUMN_ID)));\n payment.setName(cursor.getString(cursor.getColumnIndex(Payment.COLUMN_NAME)));\n payment.setPrice(cursor.getString(cursor.getColumnIndex(Payment.COLUMN_PRICE)));\n payment.setDetails(cursor.getString(cursor.getColumnIndex(Payment.COLUMN_DETAILS)));\n payment.setTimestamp(cursor.getString(cursor.getColumnIndex(Payment.COLUMN_TIMESTAMP)));\n\n payments.add(payment);\n } while (cursor.moveToNext());\n cursor.close();\n }\n return payments;\n }", "List<Inventory1> inventory1Search(Inventory1RequestDTO inventory1) throws Exception;", "SearchProductsResult searchProducts(SearchProductsRequest searchProductsRequest);", "Page<ExamPackage> searchList(int pageNo, int pageSize, Sort sort);", "public Collection<Payment> getPayments(CustomerItem customerItem);", "List<AccommodationModel> findAccommodationForAccommodationOffering(String accommodationOfferingCode);", "public List<Budget> search (String search) throws SQLException{\n List<Budget> found = new ArrayList<Budget>();\n DatabaseConnection dbaInfo = new DatabaseConnection();\n Connection conn = null;\n try {\n conn = dbaInfo.getConnection();\n search = search + \"%\";\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM finance.budget WHERE (bud_category ILIKE ?) OR (bud_description ILIKE ?);\");\n ps.setString(1, search);\n ps.setString(2, search);\n ResultSet rs = ps.executeQuery();\n found = listResults(rs);\n }catch (Exception error) {\n error.printStackTrace();\n conn.rollback();\n }finally {\n conn.close();\n }\n return found;\n }", "List<PurchaseOrderHeader> searchPurchaseOrderHeaders(GeneralSearchForm searchForm);", "OrderDetailBean getSearchOrderById(long orderIdi,String userLogin,int paymenttype) throws SQLException, Exception, RemoteException;", "public List<PosPay> listPosPay(PosPay posPay,int firstResult ,int maxResults)throws DataAccessException;", "public interface PaymentRequestDao {\n\n /**\n * Get all the payment requests that need to be extracted that match a credit memo.\n *\n * @param campusCode - limit results to a single chart\n * @param paymentRequestIdentifier - Payment Request Identifier (can be null)\n * @param purchaseOrderIdentifier - PO Identifier (can be null)\n * @param vendorHeaderGeneratedIdentifier\n * - Vendor Header ID\n * @param vendorDetailAssignedIdentifier - Vendor Detail ID\n * @param currentSqlDateMidnight current SQL date midnight\n * @return - list of payment requests that need to be extracted\n */\n public List<PaymentRequestDocument> getPaymentRequestsToExtract(String campusCode, Integer paymentRequestIdentifier, Integer purchaseOrderIdentifier, Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifier, Date currentSqlDateMidnight);\n\n /**\n * Get all the payment requests that need to be extracted that match a credit memo.\n *\n * @param campusCode - limit results to a single chart\n * @param vendor - Vendor Header ID, Vendor Detail ID, Country, Zip Code\n * @param onOrBeforePaymentRequestPayDate\n * only payment requests with a pay date on or before this value will be returned in the\n * iterator\n * @return - list of payment requests that need to be extracted\n */\n public Collection<PaymentRequestDocument> getPaymentRequestsToExtractForVendor(String campusCode, VendorGroupingHelper vendor, Date onOrBeforePaymentRequestPayDate);\n\n /**\n * Get all the payment requests that need to be extracted to PDP.\n *\n * @param onlySpecialPayments - true only include special payments, False - include all\n * @param chartCode - if not null, limit results to a single chart\n * @return - Collection of payment requests\n */\n public List<PaymentRequestDocument> getPaymentRequestsToExtract(boolean onlySpecialPayments, String chartCode, Date onOrBeforePaymentRequestPayDate);\n\n /**\n * Get all the payment requests that are marked immediate that need to be extracted to PDP.\n *\n * @param chartCode - chart of accounts code\n * @return - Collection of payment requests\n */\n public List<PaymentRequestDocument> getImmediatePaymentRequestsToExtract(String chartCode);\n\n /**\n * Get all payment request documents that are eligible for auto-approval. Whether or not a document is eligible for\n * auto-approval is determined according to whether or not the document total is below a pre-determined minimum amount. This\n * amount is derived from the accounts, charts and/or organizations associated with a given document. If no minimum amount can\n * be determined from chart associations a default minimum specified as a system parameter is used to determine the minimum\n * amount threshold.\n *\n * @param todayAtMidnight\n * @return - an Iterator over all payment request documents eligible for automatic approval\n */\n public List<String> getEligibleForAutoApproval(Date todayAtMidnight);\n\n public List<String> getEligibleForAutoApproval();\n\n /**\n * Get a payment request document number by id.\n *\n * @param id - PaymentRequest Id\n * @return - PaymentRequest or null if not found\n */\n public String getDocumentNumberByPaymentRequestId(Integer id);\n\n /**\n * Retrieves a list of document numbers by purchase order id.\n *\n * @param id - purchase order id\n * @return - list of document numbers\n */\n public List<String> getDocumentNumbersByPurchaseOrderId(Integer id);\n\n\n /**\n * Retrieves a list of Payment Requests with the given vendor id and invoice number.\n *\n * @param vendorHeaderGeneratedId - header id of the vendor id\n * @param vendorDetailAssignedId - detail id of the vendor id\n * @param invoiceNumber - invoice number as entered by AP\n * @return - List of Payment Requests.\n */\n public List getActivePaymentRequestsByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedId, Integer vendorDetailAssignedId, String invoiceNumber);\n\n /**\n * Retrieves a list of Payment Requests with the given vendor id and invoice number.\n *\n * @param vendorHeaderGeneratedId - header id of the vendor id\n * @param vendorDetailAssignedId - detail id of the vendor id\n * @return - List of Payment Requests.\n */\n public List getActivePaymentRequestsByVendorNumber(Integer vendorHeaderGeneratedId, Integer vendorDetailAssignedId);\n\n /**\n * Retrieves a list of Payment Requests with the given PO Id, invoice amount, and invoice date.\n *\n * @param poId - purchase order ID\n * @param invoiceAmount - amount of the invoice as entered by AP\n * @param invoiceDate - date of the invoice as entered by AP\n * @return - List of Pay Reqs.\n */\n public List getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId, KualiDecimal invoiceAmount, Date invoiceDate);\n\n /**\n * Retrieves a list of potentially active payment requests for a purchase order by status code. Active being defined as being\n * enroute and before final. The issue is that a status of vendor_tax_review may not mean that it's in review, but could be in\n * final (as there isn't a final status code for payment request). Workflow status must be checked further after retrieval.\n *\n * @param purchaseOrderId\n * @return\n */\n public List<String> getActivePaymentRequestDocumentNumbersForPurchaseOrder(Integer purchaseOrderId);\n\n /**\n * Get all payment request which are waiting in receiving status queue\n *\n * @return\n */\n public List<String> getPaymentRequestInReceivingStatus();\n\n}", "Page<ParaUserDTO> search(String query, Pageable pageable);", "@Override\n\tpublic void search() {\n\n\t\tif (firstMonth.equalsIgnoreCase(secondMonth)) {\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(\n\t\t\t\t\t\t\t\"please choose different months to compare\"));\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\n\t\t\tString queury = \"SELECT nvl(TO_CHAR(INVOICES.INVOICE_ORDER) ,'NA') AS INVOICE_ORDER \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.INVOICE_NUMBER ,'NA') AS INVOICE_NUMBER \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.BOOKING_FILE_NUMBER ,'NA') AS BOOKING_FILE_NUMBER \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.DEPARTURE_DATE, 'dd/mm/yyyy') ,'NA') AS DEPARTURE_DATE \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.ARRIVAL_DATE, 'dd/mm/yyyy') ,'NA') AS ARRIVAL_DATE \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.EMPLOYEE_ID ,'NA') AS EMPLOYEE_ID \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.COST_CENTER ,'NA') AS COST_CENTER \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.COST_CENTER_DEPARTMENT ,'NA') AS COST_CENTER_DEPARTMENT \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.PASSENGER_NAME ,'NA') AS PASSENGER_NAME \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.SERVICE_TYPE ,'NA') AS SERVICE_TYPE \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.SERVICE_DESC ,'NA') AS SERVICE_DESC \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.ROUTING ,'NA') AS ROUTING \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.INTER_DOM ,'NA') AS INTER_DOM \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.CHECK_IN, 'dd/mm/yyyy') ,'NA') AS CHECK_IN \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.CHECK_OUT, 'dd/mm/yyyy') ,'NA') AS CHECK_OUT \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.NUMBER_OF_NIGHTS) ,0) AS NUMBER_OF_NIGHTS \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.NUMBER_OF_ROOMS) ,0) AS NUMBER_OF_ROOMS \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.AIRLINE ,'NA') AS AIRLINE \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.ROOM_TYPE ,'NA') AS ROOM_TYPE \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.SUPPLIER_NAME ,'NA') AS SUPPLIER_NAME \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.NET_AMOUNT ,0) AS NET_AMOUNT \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.OPERATION_FEES ,0) AS OPERATION_FEES \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.TOTAL_AMOUNT ,0) AS TOTAL_AMOUNT \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.TICKET_NO ,'NA') AS TICKET_NO \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.TRAVEL_FORM_NUMBER ,'NA') AS TRAVEL_FORM_NUMBER \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.DESCRIPTION ,'NA') AS DESCRIPTION \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.FROM_DATE, 'dd/mm/yyyy') ,'NA') AS FROM_DATE \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.TO_DATE, 'dd/mm/yyyy') ,'NA') AS TO_DATE \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.EMPLOYEE_DEPARTMENT ,'NA') AS EMPLOYEE_DEPARTMENT \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.INVOICE_DATE, 'dd/mm/yyyy') ,'NA') AS INVOICE_DATE \\n\"\n\t\t\t\t\t+ \" ,nvl(UPLOADED_INVOICE_FILE.INVOICES_MONTH ,'NA') AS INVOICES_MONTH \\n\"\n\t\t\t\t\t+ \" FROM INVOICES INNER JOIN UPLOADED_INVOICE_FILE \\n\"\n\t\t\t\t\t+ \" ON INVOICES.UPLOADED_INVOICE_FILE_ID = UPLOADED_INVOICE_FILE.ID \\n\"\n\t\t\t\t\t+ \" WHERE UPLOADED_INVOICE_FILE.INVOICES_MONTH IN ('\"\n\t\t\t\t\t+ firstMonth\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ secondMonth\n\t\t\t\t\t+ \"') \\n\"\n\t\t\t\t\t+ \" ORDER BY UPLOADED_INVOICE_FILE.INVOICES_MONTH,INVOICES.INVOICE_ORDER \\n\";\n\n\t\t\tdynamicReport = new GenerateDynamicReport();\n\t\t\tdynamicReport.setReportName(\"InvoicesComparisonReport\");\n\t\t\tdynamicReport.setReportTitle(\"Invoices Comparison Report\");\n\t\t\tdynamicReport.setReportQuery(queury);\n\n\t\t\tdynamicReport.columnsNames.add(\"Invoice Order\");\n\t\t\tdynamicReport.columnsNames.add(\"Invoice Number\");\n\t\t\tdynamicReport.columnsNames.add(\"Booking File Number\");\n\t\t\tdynamicReport.columnsNames.add(\"Departure Date\");\n\t\t\tdynamicReport.columnsNames.add(\"Arrival Date\");\n\t\t\tdynamicReport.columnsNames.add(\"Employee Id\");\n\t\t\tdynamicReport.columnsNames.add(\"Cost Center\");\n\t\t\tdynamicReport.columnsNames.add(\"Cost Center Department\");\n\t\t\tdynamicReport.columnsNames.add(\"Passenger Name\");\n\t\t\tdynamicReport.columnsNames.add(\"Service Type\");\n\t\t\tdynamicReport.columnsNames.add(\"Service Description\");\n\t\t\tdynamicReport.columnsNames.add(\"Routing\");\n\t\t\tdynamicReport.columnsNames.add(\"Int'l / Dom\");\n\t\t\tdynamicReport.columnsNames.add(\"Check In\");\n\t\t\tdynamicReport.columnsNames.add(\"Check Out\");\n\t\t\tdynamicReport.columnsNames.add(\"Number of Nights\");\n\t\t\tdynamicReport.columnsNames.add(\"Number of Rooms\");\n\t\t\tdynamicReport.columnsNames.add(\"Airline\");\n\t\t\tdynamicReport.columnsNames.add(\"Room Type\");\n\t\t\tdynamicReport.columnsNames.add(\"Supplier Name\");\n\t\t\tdynamicReport.columnsNames.add(\"Net Amount\");\n\t\t\tdynamicReport.columnsNames.add(\"Operation Fees\");\n\t\t\tdynamicReport.columnsNames.add(\"Total Amount\");\n\t\t\tdynamicReport.columnsNames.add(\"Ticket No\");\n\t\t\tdynamicReport.columnsNames.add(\"Travel Form Number\");\n\t\t\tdynamicReport.columnsNames.add(\"Description\");\n\t\t\tdynamicReport.columnsNames.add(\"From Date\");\n\t\t\tdynamicReport.columnsNames.add(\"To Date\");\n\t\t\tdynamicReport.columnsNames.add(\"Employee Department\");\n\t\t\tdynamicReport.columnsNames.add(\"Invoice Date\");\n\t\t\tdynamicReport.columnsNames.add(\"Invoices Month\");\n\n\t\t\tdynamicReport.fieldsNames.add(\"INVOICE_ORDER\");\n\t\t\tdynamicReport.fieldsNames.add(\"INVOICE_NUMBER\");\n\t\t\tdynamicReport.fieldsNames.add(\"BOOKING_FILE_NUMBER\");\n\t\t\tdynamicReport.fieldsNames.add(\"DEPARTURE_DATE\");\n\t\t\tdynamicReport.fieldsNames.add(\"ARRIVAL_DATE\");\n\t\t\tdynamicReport.fieldsNames.add(\"EMPLOYEE_ID\");\n\t\t\tdynamicReport.fieldsNames.add(\"COST_CENTER\");\n\t\t\tdynamicReport.fieldsNames.add(\"COST_CENTER_DEPARTMENT\");\n\t\t\tdynamicReport.fieldsNames.add(\"PASSENGER_NAME\");\n\t\t\tdynamicReport.fieldsNames.add(\"SERVICE_TYPE\");\n\t\t\tdynamicReport.fieldsNames.add(\"SERVICE_DESC\");\n\t\t\tdynamicReport.fieldsNames.add(\"ROUTING\");\n\t\t\tdynamicReport.fieldsNames.add(\"INTER_DOM\");\n\t\t\tdynamicReport.fieldsNames.add(\"CHECK_IN\");\n\t\t\tdynamicReport.fieldsNames.add(\"CHECK_OUT\");\n\t\t\tdynamicReport.fieldsNames.add(\"NUMBER_OF_NIGHTS\");\n\t\t\tdynamicReport.fieldsNames.add(\"NUMBER_OF_ROOMS\");\n\t\t\tdynamicReport.fieldsNames.add(\"AIRLINE\");\n\t\t\tdynamicReport.fieldsNames.add(\"ROOM_TYPE\");\n\t\t\tdynamicReport.fieldsNames.add(\"SUPPLIER_NAME\");\n\t\t\tdynamicReport.fieldsNames.add(\"NET_AMOUNT\");\n\t\t\tdynamicReport.fieldsNames.add(\"OPERATION_FEES\");\n\t\t\tdynamicReport.fieldsNames.add(\"TOTAL_AMOUNT\");\n\t\t\tdynamicReport.fieldsNames.add(\"TICKET_NO\");\n\t\t\tdynamicReport.fieldsNames.add(\"TRAVEL_FORM_NUMBER\");\n\t\t\tdynamicReport.fieldsNames.add(\"DESCRIPTION\");\n\t\t\tdynamicReport.fieldsNames.add(\"FROM_DATE\");\n\t\t\tdynamicReport.fieldsNames.add(\"TO_DATE\");\n\t\t\tdynamicReport.fieldsNames.add(\"EMPLOYEE_DEPARTMENT\");\n\t\t\tdynamicReport.fieldsNames.add(\"INVOICE_DATE\");\n\t\t\tdynamicReport.fieldsNames.add(\"INVOICES_MONTH\");\n\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.DOUBLE.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.DOUBLE.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.DOUBLE.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\n\t\t\tString reportPath = dynamicReport.exportDynamicReportToExcel();\n\t\t\tgetDownloadableReportFile(reportPath);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public List<Books> searchBook(String keywords,String author,double low_price,double high_price){\n /*\n * search books by keywords of book_name\n * */\n List<Books> books=null;\n ResultSet resultSet=null;\n if(keywords!=\"\"&&author==\"\"&&low_price<0&&high_price<0){\n String sql=\"select * from Book where book_name like '%\"+keywords+\"%'\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{});\n books=resultSetToBook(baseDao);\n return books;\n }//search books by keywords and author\n else if(keywords!=\"\"&&author!=\"\"&&low_price<0&&high_price<0){\n String sql=\"select * from Book b where b.book_name like '%keywords=?%' and book_author=?\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{keywords,author});\n books=resultSetToBook(baseDao);\n return books;\n }//search books by author\n else if(keywords==\"\"&&author!=\"\"&&low_price<0&&high_price<0){\n String sql=\"select * from Book b where book_author=?\";\n BaseDao baseDaot=dao.executeQuery(sql,new Object[]{author});\n books=resultSetToBook(baseDaot);\n return books;\n }\n else if(keywords==\"\"&&author==\"\"&&low_price>0&&high_price>0){\n String sql=\"select * from Book b where book_price>? and book_price<?\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{low_price,high_price});\n books=resultSetToBook(baseDao);\n return books;\n }\n //search books by keywords and price\n else if(keywords!=\"\"&&author!=\"\"&&low_price>0&&high_price>0){\n String sql=\"select * from Book b where b.book_name like '%\"+keywords+\"%' \" +\n \"and book_author=? and book_price>? and book_price<?\";\n BaseDao baseDao=dao.executeQuery(sql,new Object[]{author,low_price,high_price});\n books=resultSetToBook(baseDao);\n return books;\n }\n return null;\n }", "PaginatedSearchResponseModel findAllByPostedForParty(Party postedForParty, Pageable page);", "List<Codebadge> search(String query);", "private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\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 }", "List<TypeTreatmentPlanStatuses> search(String query);", "public List<Orders> findOrder(Map<String, Object> params);", "PaginatedSearchResponseModel findAllByPostedByParty(Party postedByParty, Pageable page);", "List<OrdPaymentRefDTO> findAll();", "private void search(String product) {\n // ..\n }", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "private Optional<Payments> findPaymentById(Integer id) {\n return paymentsList.stream()\n .filter(payment -> payment.getId().equals(id))\n .findAny();\n }", "Page<TypeBonDTO> search(String query, Pageable pageable);", "Page<UserPortfolioDTO> search(String query, Pageable pageable);", "protected void handleSearchTransactionData(AjaxRequestTarget target, final WebMarkupContainer container) {\n\t\tcontainer.setVisible(true);\n\t\t\n\t\ttarget.addComponent(container);\n\t\t\n\t\ttry {\n\t\t\tAccountIdentificationType aid = new AccountIdentificationType();\n\t\t\taid.setFlags(0);\n\t\t\taid.setType(\"WALLET\");\n\t\t\taid.setValue(searchData.getPaymentInstrumentId().getId());\n\t\t\t\n\t\t\tFindTransactionHistoryRequest request = MobiliserUtils.fill(new FindTransactionHistoryRequest(), basePage);\n\t\t\trequest.setDateBegin(PortalUtils.getSaveXMLGregorianCalendarFromDate(searchData.getFromDate(), null));\n\t\t\trequest.setDateEnd(PortalUtils.getSaveXMLGregorianCalendarToDate(searchData.getToDate(), null));\n\t\t\trequest.getAccount().add(aid);\n\t\t\trequest.setOldestToNewest(false);\n\t\t\t\n\t\t\tif (searchData.getTxnType() != null) {\n\t\t\t\trequest.getUseCaseId().add(Integer.valueOf(searchData.getTxnType().getId()));\n\t\t\t}\n\t\t\t\n\t\t\trequest.setStart(0);\n\t\t\trequest.setLength(Integer.MAX_VALUE);\n\t\t\t\n\t\t\tFindTransactionHistoryResponse response = accountFacade.findTransactionHistory(request);\n\t\t\t\n\t\t\tif (MobiliserUtils.success(response)) {\n\t\t\t\tsearchData.getTxnDataList().clear();\n\t\t\t\t\n\t\t\t\tList<TransactionHistoryFindView> transactions = response.getTransaction();\n\t\t\t\t\n\t\t\t\tif ((transactions != null) && !transactions.isEmpty()) {\n\t\t\t\t\tfor (TransactionHistoryFindView e : transactions) {\n\t\t\t\t\t\tTxnDataBean ebean = new TxnDataBean();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (e.isDebitFlags()) {\n\t\t\t\t\t\t\tebean.setAmount(-e.getAmount());\n\t\t\t\t\t\t\tebean.setDebitAmount(Long.valueOf(e.getAmount()));\n\t\t\t\t\t\t\tebean.setCreditAmount(null);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tebean.setAmount(e.getAmount());\n\t\t\t\t\t\t\tebean.setDebitAmount(null);\n\t\t\t\t\t\t\tebean.setCreditAmount(Long.valueOf(e.getAmount()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tebean.setFee(e.getAmount());\n\t\t\t\t\t\t\n\t\t\t\t\t\tebean.setId(e.getId());\n\t\t\t\t\t\tebean.setDate(PortalUtils.getSaveDate(e.getTransactionDateTime()));\n\t\t\t\t\t\tebean.setUseCase(MobiliserUtils.getCodeValue(\"allUseCases\", Integer.toString(e.getUseCaseId()), lookupMapUtility, this));\n\t\t\t\t\t\tebean.setDescription(e.getDescription());\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (ebean.getUseCase().getValue() == null) {\n\t\t\t\t\t\t\tebean.setType(Integer.toString(e.getUseCaseId()));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tebean.setType(ebean.getUseCase().getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tebean.setRunningBalance(e.getBalance());\n\t\t\t\t\t\t\n\t\t\t\t\t\tsearchData.getTxnDataList().add(ebean);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\terror(MobiliserUtils.errorMessage(response, this));\n\t\t\t}\n\t\t} catch (Throwable ex) {\n\t\t\tLOG.error(\"An exception was thrown.\", ex);\n\t\t\t\n\t\t\terror(getLocalizer().getString(\"error.exception\", this));\n\t\t}\n\t}", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "List<ResultDTO> searchUser(String query);", "List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);", "Page<NoteDTO> search(String query, Pageable pageable);", "public SearchResponse search(SearchRequest request) throws SearchServiceException;", "MessageSearchResult getSearchResult(MessageSearchInvoice invoice);", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "public List<PaymentRequestDocument> getPaymentRequestsToExtract(boolean onlySpecialPayments, String chartCode, Date onOrBeforePaymentRequestPayDate);", "Customer search(String login);", "public void searchTransactions(final ReportsTestData testData) {\n selectDisbursementReportParameters(testData);\n search();\n }", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "@Override\n\tpublic JavaBean1 findB(String date) {\n\t\t\n\t\tArrayList<PaymentOrderPO> pos=new ArrayList<>();\n\t\tjb1=new JavaBean1();\n\t\tString sql=\"select * from paymentlist\";\n\t\tjb1.setResultMessage(ResultMessage.NotExist);\n\t\ttry {\n\t\t\tstmt=con.prepareStatement(sql);\n\t\t\tResultSet rs=stmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tpo=new PaymentOrderPO();\n\t\t\t\tif(rs.getString(\"date\").equals(date)&&\n\t\t\t\t\t\trs.getString(\"approState\").equals(\"NotApprove\")){\n\t\t\t\t\tpo.setID(rs.getString(1));\n\t\t\t\t\tpo.setDate(rs.getString(2));\n\t\t\t\t\tpo.setAmount(rs.getDouble(3));\n\t\t\t\t\tpo.setPayer(rs.getString(4));\n\t\t\t\t\tpo.setBankAccount(rs.getString(5));\n\t\t\t\t\tpo.setEntry(rs.getString(6));\n\t\t\t\t\tpo.setNote(rs.getString(7));\n\t\t\t\t\tpo.setApproState(ApproState.valueOf(rs.getString(\"approState\")));\n\t\t\t\t\tpos.add(po);\n\t\t\t\t\tjb1.setResultMessage(ResultMessage.Success);\n\t\t\t\t}\n\t\t\t\tif(rs.getString(\"date\").equals(date)&&\n\t\t\t\t\t\trs.getString(\"approState\").equals(\"Approve\")){\n\t\t\t\t\tpo.setID(rs.getString(1));\n\t\t\t\t\tpo.setDate(rs.getString(2));\n\t\t\t\t\tpo.setAmount(rs.getDouble(3));\n\t\t\t\t\tpo.setPayer(rs.getString(4));\n\t\t\t\t\tpo.setBankAccount(rs.getString(5));\n\t\t\t\t\tpo.setEntry(rs.getString(6));\n\t\t\t\t\tpo.setNote(rs.getString(7));\n\t\t\t\t\tpo.setApproState(ApproState.valueOf(rs.getString(\"approState\")));\n\t\t\t\t\tpos.add(po);\n\t\t\t\t\tjb1.setResultMessage(ResultMessage.Success);\n\t\t\t\t}\n\t\t\t}\n\t\t\tjb1.setObject(pos);\n\t\t\t return jb1;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn jb1;\n\t\t}\n\t}", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "@Override\n @Transactional(readOnly = true)\n public List<AdsDTO> search(String query) {\n log.debug(\"Request to search Ads for query {}\", query);\n return StreamSupport\n .stream(adsSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .map(adsMapper::toDto)\n .collect(Collectors.toList());\n }", "Page<Examination> searchPageOfExamPackageByTitle(int examPackageID, String examinationTitle, int pageNo, int pageSize);", "@Override\n\tpublic List<Person> searchPerson(PersonSearchRequestModel personSearchRequestModel) {\n\t\t\n\t\tCriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n\t\tCriteriaQuery<Person> criteriaQuery = criteriaBuilder.createQuery(Person.class);\n\t\tRoot<Person> root = criteriaQuery.from(Person.class);\n\t\t\n\t\tString firstName = personSearchRequestModel.getFirstName();\n\t\tString lastName = personSearchRequestModel.getLastName();\n\t\tLocalDate startRangeDateOfBirth = personSearchRequestModel.getStartRangeBirthDate();\n\t\tLocalDate endRangeDateOfBirth = personSearchRequestModel.getEndRangeBirthDate();\n\t\tLong mobile = personSearchRequestModel.getMobile();\n\t\t\n\t\t/*\n\t\t * Adding search criteria's for query using CriteriaBuilder\n\t\t */\n\t\tList<Predicate> searchCriterias = new ArrayList<>();\n\t\t\n\t\tif( (firstName != \"\") && (firstName != null) ) {\n\t\t\tsearchCriterias.add( criteriaBuilder.like( root.get(\"firstName\"), \"%\"+firstName+\"%\") );\n\t\t}\n\t\tif( (lastName != \"\") && (lastName != null) ) {\n\t\t\tsearchCriterias.add( criteriaBuilder.like( root.get(\"lastName\"), \"%\"+lastName+\"%\") );\n\t\t}\n\t\tif( startRangeDateOfBirth!=null && endRangeDateOfBirth!=null && startRangeDateOfBirth.isAfter(endRangeDateOfBirth) ) {\n\t\t\tsearchCriterias.add( criteriaBuilder.between( root.get(\"birthDate\"), startRangeDateOfBirth, endRangeDateOfBirth) );\n\t\t}\n\t\tif( mobile!=null && mobile!=0 ) {\n\t\t\tsearchCriterias.add( criteriaBuilder.equal( root.get(\"mobile\"), mobile) );\n\t\t}\n\t\tcriteriaQuery.select( root ).where( criteriaBuilder.and( searchCriterias.toArray(new Predicate[searchCriterias.size()]) ));\n\t\treturn entityManager.createQuery(criteriaQuery).getResultList();\n\t}", "@Transactional\n @Override\n public PageUtils queryPage(Map<String, Object> params) {\n QueryWrapper<PurchaseDetailEntity> wrapper = new QueryWrapper<>();\n String key = (String) params.get(\"key\");\n if (!StringUtils.isEmpty(key)) {\n wrapper.and(w->{\n w.eq(\"purchase_id\", key).or().like(\"sku_id\", key);\n });\n }\n String status = (String) params.get(\"status\");\n if (!StringUtils.isEmpty(status)) {\n wrapper.eq(\"status\", status);\n }\n String wareId = (String) params.get(\"wareId\");\n if (!StringUtils.isEmpty(wareId)) {\n wrapper.eq(\"ware_id\", wareId);\n }\n IPage<PurchaseDetailEntity> page = this.page(\n new Query<PurchaseDetailEntity>().getPage(params),\n wrapper\n );\n\n return new PageUtils(page);\n }", "public abstract Page<CustomerOrder> findByShipper(Shipper shipper, GlobalSearch globalSearch, Pageable pageable);", "abstract public void search();", "public void searchInvoice() throws Exception{\n\t driver.findElement(By.xpath(\"//*[@id='payments_table_filter']/label/input\")).clear();\n\t driver.findElement(By.xpath(\"//*[@id='payments_table_filter']/label/input\")).sendKeys(searchInvoice);\n\t \n\t //wait = new WebDriverWait(driver, 15);\n\t //wait.until(ExpectedConditions.textToBe(By.xpath(\"//*[@id='payments_table_info']\"), \"Showing 1 to 1 of 1 entries\"));\n\t Thread.sleep(1000);\n\t \n\t //check if invoice search result is correct\n\t String invoice = driver.findElement(By.xpath(\"//*[@id='payments_table']/tbody/tr[1]/td[1]\")).getText();\n\t ss.assertEquals(invoice, searchInvoice);\n\t \n\t //log to the status to console\n\t if(invoice.equalsIgnoreCase(searchInvoice)){\n\t\t Reporter.log(\"Searching for \"+ searchInvoice + \" successfully found.\");\n\t }else{\n\t\t Reporter.log(\"Searching for \"+ searchInvoice + \" not found.\");\n\t }\n }", "public void search() {\r\n \t\r\n }", "List getKeyBy(PaymentTradeExample example);", "@GetMapping(\"/payments\")\n public List<Payment> getAllPayments() {\n log.debug(\"REST request to get all Payments\");\n return paymentRepository.findAll();\n }", "public List<OrderItem> searchOrderItem() throws SQLException, Exception {\n\n List<OrderItem> lista = new ArrayList<OrderItem>();\n String query = \"SELECT * FROM order_Item ;\";\n\n PreparedStatement st = con.prepareStatement(query); //Prepared the query\n ResultSet rs = st.executeQuery(); //Execute the select\n\n while(rs.next()) {\n OrderItem oi = new OrderItem();\n\n oi.setIdOrderItem(rs.getInt(\"id_Order_Item\"));\n oi.setAmount(rs.getInt(\"amount\"));\n oi.setProductIdProduct(rs.getInt(\"product_id_Product\"));\n oi.setOrderIdItem(rs.getInt(\"order_id_Order\"));\n\n lista.add(oi);\n }\n \n st.close(); //Close the Statment\n con.close(); //Close the connection\n\n return lista;\n }", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }", "List<LectureDTO> search(String query);", "private void btnGetPaymentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGetPaymentActionPerformed\n String stringID = textPaymentID.getText();\n if(textPaymentID.getText().isEmpty()){\n JOptionPane.showMessageDialog(rootPane, \"Please Enter a valid ID\");\n return;\n }\n int ID = Integer.parseInt(stringID);\n newHandler.getPayment(ID);\n \n if(newHandler.getPaymentErrorMsg() != null){\n JOptionPane.showMessageDialog(rootPane, newHandler.getPaymentErrorMsg());\n }\n textPaymentID.setText(Integer.toString(newHandler.getPaymentID()));\n textPaymentDate.setText(newHandler.getPaymentDate());\n textPaymentAmmount.setText(Double.toString(newHandler.getPaymentAmmount()));\n textPaymentType.setText(newHandler.getPaymentType());\n textPaymentDescription.setText(newHandler.getPaymentDescription()); \n searched = true;\n }", "public void queryByPaymentType(String payType) {\n\t\tPAYMENT_TYPE = payType;\n\t}", "@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, Long> {\n\n public List<Payment> findByOrganizationId(Long orgId);\n}", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "public abstract Page<CustomerOrder> findByEmployee(Employee employee, GlobalSearch globalSearch, Pageable pageable);", "private void getBySearch(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString search = request.getParameter(\"search\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tlist = artService.getAll(\"atitle\", search);\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private Page<ElasticCandidate> search(CandidateSearchModel model, Pageable pageable){\n Integer experienceDuration = model.getSkillPlaceholder()\n .getExperienceDuration();\n String title = model.getSkillPlaceholder()\n .getSkill()\n .getTitle();\n RangeModel<Integer> rangeExperience = model.getSkillExperienceRange();\n Integer experienceUpperLimit = rangeExperience.getUpperLimit();\n Integer experienceLowerLimit = rangeExperience.getLowerLimit();\n\n // Prepares location\n String location = model.getLocation();\n\n // Prepare hourly rate\n Integer hourlyRate = model.getHourlyRate();\n RangeModel<Integer> rangeHourlyRate = model.getHourlyRateRange();\n Integer hourlyRateUpperLimit = rangeHourlyRate.getUpperLimit();\n Integer hourlyRateLowerLimit = rangeHourlyRate.getLowerLimit();\n\n // Prepares certifications\n Set<String> certifications = model.getCertifications();\n if (certifications != null && certifications.size() != 0) {\n Iterator iterator = certifications.iterator();\n String[] certificationsArray = new String[certifications.size()];\n for (int i = 0; i < certificationsArray.length; i++) {\n certificationsArray[i] = (String) iterator.next();\n }\n }\n\n // Prepares Starting date postponed !!\n// Long startingDate = model.getStartingDate().getTime();\n// Long startingDateUpperLimit = model.getStartingDateUpperRange().getTime();\n\n // Prepares time period\n String timePeriod = model.getTimePeriod();\n // endregion\n\n // region Build query\n SearchQuery searchQuery;\n\n\n if (certifications != null && certifications.size() != 0)\n searchQuery = new NativeSearchQueryBuilder().withQuery(matchAllQuery())\n\n\n .withQuery(\n boolQuery()\n .must(queryForMustSkill(title))\n .should(queryForExactValueSkill(title, experienceDuration))\n .should(queryForExactValueHourlyRate(hourlyRate))\n .should(queryForFuzzyHourlyRate(hourlyRate))\n .should(queryForFuzzySkill(title, experienceDuration))\n .should(queryForRangeSkill(title, experienceLowerLimit, experienceUpperLimit))\n .should(queryForRangeHourlyRate(hourlyRateLowerLimit, hourlyRateUpperLimit))\n .must(queryForLocation(location))\n// .must(queryForStartingDay(startingDate, startingDateUpperLimit))\n .must(queryForTimePeriod(timePeriod))\n .must(queryForCertifications(certifications)))\n .withPageable(pageable)\n .withFilter(queryForMustSkill(title))\n .withFilter(queryForExactValueSkill(title, experienceDuration))\n .withFilter(queryForExactValueHourlyRate(hourlyRate))\n .withFilter(queryForFuzzyHourlyRate(hourlyRate))\n .withFilter(queryForFuzzySkill(title, experienceDuration))\n .withFilter(queryForRangeSkill(title, experienceLowerLimit, experienceUpperLimit))\n .withFilter(queryForRangeHourlyRate(hourlyRateLowerLimit, hourlyRateUpperLimit))\n .withFilter(queryForLocation(location))\n .withFilter(queryForTimePeriod(timePeriod))\n .withFilter(queryForCertifications(certifications))\n// .withSort(SortBuilders.fieldSort(\"hourlyRate\")\n// .order(SortOrder.ASC))\n .build();\n\n else\n\n\n searchQuery = new NativeSearchQueryBuilder().withQuery(matchAllQuery())\n\n\n .withQuery(\n boolQuery()\n .must(queryForMustSkill(title))\n .should(queryForExactValueSkill(title, experienceDuration))\n .should(queryForExactValueHourlyRate(hourlyRate))\n .should(queryForFuzzyHourlyRate(hourlyRate))\n .should(queryForFuzzySkill(title, experienceDuration))\n .should(queryForRangeSkill(title, experienceLowerLimit, experienceUpperLimit))\n .should(queryForRangeHourlyRate(hourlyRateLowerLimit, hourlyRateUpperLimit))\n .must(queryForLocation(location))\n// .must(queryForStartingDay(startingDate, startingDateUpperLimit))\n .must(queryForTimePeriod(timePeriod)))\n .withPageable(pageable)\n .withFilter(queryForMustSkill(title))\n .withFilter(queryForExactValueSkill(title, experienceDuration))\n .withFilter(queryForExactValueHourlyRate(hourlyRate))\n .withFilter(queryForFuzzyHourlyRate(hourlyRate))\n .withFilter(queryForFuzzySkill(title, experienceDuration))\n .withFilter(queryForRangeSkill(title, experienceLowerLimit, experienceUpperLimit))\n .withFilter(queryForRangeHourlyRate(hourlyRateLowerLimit, hourlyRateUpperLimit))\n .withFilter(queryForLocation(location))\n .withFilter(queryForTimePeriod(timePeriod))\n// .withSort(SortBuilders.fieldSort(\"hourlyRate\")\n// .order(SortOrder.ASC))\n .build();\n\n // endregion\n\n // region Test\n Page<ElasticCandidate> queryForExactValueSkill = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForExactValueSkill(title, experienceDuration))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForExactValueHourlyRate = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForExactValueHourlyRate(hourlyRate))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForFuzzySkill = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForFuzzySkill(title, experienceDuration))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForFuzzyHourlyRate = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForFuzzyHourlyRate(hourlyRate))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForRangeSkill = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForRangeSkill(title, experienceLowerLimit, experienceUpperLimit))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForRangeHourlyRate = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForRangeHourlyRate(hourlyRateLowerLimit, hourlyRateUpperLimit))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForLocation = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForLocation(location))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForTimePeriod = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForTimePeriod(timePeriod))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForCertifications = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForCertifications(certifications))\n .build(), ElasticCandidate.class);\n // endregion\n\n\n Page<ElasticCandidate> sampleEntities = elasticsearchTemplate.queryForPage(searchQuery,\n ElasticCandidate.class);\n return sampleEntities;\n }", "private void search() {\n if (dateFind.getValue() == null) {\n dateFind.setValue(LocalDate.now().minusDays(DEFAULT_PERIOD));\n }\n Long days = ChronoUnit.DAYS.between(dateFind.getValue(), LocalDate.now());\n final List<Project> findProject = ServiceFactory.getProjectService().getFindProject(days, comboProject.getValue());\n observableProjects.clear();\n observableProjects.addAll(findProject);\n table.setItems(observableProjects);\n }", "public abstract Page<CustomerOrder> findByCustomer(Customer customer, GlobalSearch globalSearch, Pageable pageable);", "public void queryTransactionDetail(){\n System.out.println(\"-----find transaction detail by condition-----\");\n System.out.println(\"--press enter to skip the input--\");\n String sql = \"select * from TransactionContains join Merchandise on TransactionContains.ProductID = Merchandise.ProductID where TransactionID=\";\n System.out.print(\"TransactionID: \");\n String unuse=scanner.nextLine();\n String id=scanner.nextLine();\n sql+=id;\n try {\n //System.out.println(sql);\n result = statement.executeQuery(sql);\n int cnt=0;\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(\"product id: \"+result.getInt(\"ProductID\"));\n System.out.println(\"product name: \"+result.getString(\"ProductName\"));\n System.out.println(\"actual price: \"+result.getDouble(\"ActualPrice\"));\n }\n System.out.println(\"Total rows: \"+cnt);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\r\n\tpublic Map<String, Object> getPurchaseList(Search search, String buyerId) throws Exception {\n\t\treturn null;\r\n\t}", "List<DataTerm> search(String searchTerm);", "public abstract List<CustomerType> findCustomerTypebyCustomerTypeNumber(String searchString);", "Search getSearch();", "public Inventory inventorySearch (TheGroceryStore g, String searchKey);", "public void searchPerson() {\r\n\r\n\t/*get values from text filed*/\r\n\tname = tfName.getText();\r\n\r\n\t/*clear contents of arraylist if there are any from previous search*/\r\n\tpersonsList.clear();\r\n\r\n // intialize recordNumber to zero\r\n\trecordNumber = 0;\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to search.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*get an array list of searched persons using PersonDAO*/\r\n\t\tpersonsList = pDAO.searchPerson(name);\r\n\r\n\t\tif(personsList.size() == 0)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null, \"No record found.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/*downcast the object from array list to PersonInfo*/\r\n\t\t\tPersonInfo person = (PersonInfo) personsList.get(recordNumber);\r\n\r\n // displaying search record in text fields \r\n\t\t\ttfName.setText(person.getName());\r\n\t\t\ttfAddress.setText(person.getAddress());\r\n\t\t\ttfPhone.setText(\"\"+person.getPhone());\r\n\t\t\ttfEmail.setText(person.getEmail());\r\n\t\t}\r\n\t}\r\n\r\n }", "@POST\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Path(\"/search\")\n\tpublic Response searchTransactionOrder(TransactionOrderTo transactionOrderTo,\n\t\t\t@Context HttpServletRequest request) {\n\t\ttry {\n\t\t\ttransactionOrderTo = ShoppingCartFactory.getTransactionOrderDao().searchById(\n\t\t\t\t\ttransactionOrderTo.getId());\n\t\t\treturn Response.status(201).entity(transactionOrderTo).build();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tString error = \"Unable to Find Record\";\n\t\t\treturn Response.status(403).entity(error).build();\n\t\t}\n\t}", "public List<SearchProfissionaisDataResponse> search(String userInput, String searchOption) throws Exception {\n\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"searchInput\", userInput));\n params.add(new BasicNameValuePair(\"searchType\", searchOption));\n DefaultHttpClient httpClient = new DefaultHttpClient();\n\n\n try {\n\n HttpPost httpPost = new HttpPost(searchURL);\n httpPost.setEntity(new UrlEncodedFormEntity(params));\n\n HttpResponse httpResponse = httpClient.execute(httpPost);\n\n HttpEntity entity = httpResponse.getEntity();\n\n if (entity != null) {\n InputStream instream = entity.getContent();\n String json = toString(instream);\n instream.close();\n\n Log.d(\"JSON RESPONSE:\", json);\n\n List<SearchProfissionaisDataResponse> disorders = getDiseases(json);\n return disorders;\n }\n } catch (Exception e) {\n throw e;\n }\n return null;\n }", "Page<T> search(Pageable pageable, QueryBuilder query);", "public interface IBusItemInvestService {\n public PageList queryBusItemInvestsByParams(BusItemInvestQuery busItemInvestQuery);\n\n}" ]
[ "0.67468727", "0.6344441", "0.63372713", "0.62471586", "0.6123552", "0.59435314", "0.5932732", "0.59004736", "0.58316714", "0.5754885", "0.5708349", "0.56728804", "0.5658101", "0.5648483", "0.5632892", "0.56306803", "0.5623349", "0.56150717", "0.5609684", "0.55955535", "0.55880255", "0.55808175", "0.55594194", "0.5541364", "0.55355424", "0.5483551", "0.54582447", "0.5430846", "0.54240453", "0.54071665", "0.5407112", "0.54059136", "0.54003817", "0.53903955", "0.5373807", "0.53563696", "0.53486866", "0.5328822", "0.53095675", "0.53095067", "0.53057265", "0.53044295", "0.53001195", "0.52856624", "0.52805686", "0.52766967", "0.52644056", "0.5236023", "0.5234362", "0.52304786", "0.52301794", "0.52225345", "0.5221617", "0.5217848", "0.52167517", "0.5203101", "0.52028614", "0.5202685", "0.51996845", "0.5196697", "0.5190621", "0.5187208", "0.51742923", "0.51738954", "0.5172216", "0.51506954", "0.51494324", "0.51458085", "0.5140913", "0.5136733", "0.5126768", "0.51244235", "0.512201", "0.5118345", "0.5115371", "0.51118326", "0.5108514", "0.5099153", "0.50969374", "0.50967664", "0.5096411", "0.50945395", "0.5088534", "0.50880307", "0.5086272", "0.50861794", "0.5084938", "0.5083168", "0.5081635", "0.5079387", "0.5075758", "0.506964", "0.50689083", "0.50671804", "0.50655085", "0.5063971", "0.50634855", "0.50607425", "0.5046103", "0.50389624" ]
0.54401124
27
Responsible for generating the report
public String generateReport(final String merchantUuid, final Integer days, final Integer offset);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }", "public void generateReport(){\n String fileOutput = \"\";\n fileOutput += allCustomers()+\"\\n\";\n fileOutput += getNoAccounts()+\"\\n\";\n fileOutput += getTotalDeposits()+\"\\n\";\n fileOutput += accountsOfferingLoans()+\"\\n\";\n fileOutput += accountsReceivingLoans()+\"\\n\";\n fileOutput += customersOfferingLoans()+\"\\n\";\n fileOutput += customersReceivingLoans()+\"\\n\";\n System.out.println(fileOutput);\n writeToFile(fileOutput);\n }", "public void makeReport()\n\t{\n\t\tif (currentStage[currentSlice-1] > 1)\n\t\t{\n\t\t\tResultsTable rt = new ResultsTable();\n\t\t\tfor (int j=0;j<popSequence.N;j++)\n\t\t\t{\n\t\t\t\tpop = popSequence.PopList[j];\n\t\t\t\tint N = pop.N;\n\t\t\t\tfor (int i=0;i<N;i++)\n\t\t\t\t{\n\t\t\t\t\trt.incrementCounter();\n\t\t\t\t\tBalloon bal;\n\t\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\t\tbal.mass_geometry();\n\t\t\t\t\trt.addValue(\"X\",bal.x0);\n\t\t\t\t\trt.addValue(\"Y\",bal.y0);\n\t\t\t\t\trt.addValue(\"Z\",j);\n\t\t\t\t\trt.addValue(\"ID\",bal.id);\n\t\t\t\t\trt.addValue(\"AREA\",bal.area);\n\t\t\t\t\trt.addValue(\"Ixx\",bal.Ixx);\n\t\t\t\t\trt.addValue(\"Iyy\",bal.Iyy);\n\t\t\t\t\trt.addValue(\"Ixy\",bal.Ixy);\n\t\t\t\t\trt.addValue(\"Lx\",bal.lx);\n\t\t\t\t\trt.addValue(\"Ly\",bal.ly);\n\t\t\t\t}\n\t\t\t}\n\t\t\trt.show(\"Report\");\n\t\t\tcurrentSlice = i1.getCurrentSlice();\n\t\t\tipWallSegment = (i1.getStack()).getProcessor(i1.getCurrentSlice());\n\t\t\tpop = popSequence.PopList[currentSlice-1];\n\t\t}\n\t}", "void createReport() {\n\n // report about purple flowers\n println(\"\\nPurple flower distribution: \");\n for (int i = 0; i < 6; i++) {\n println(i + (i==5?\"+\":\"\") + \": \" + numPurpleFlowers[i]);\n }\n // report about missing treasures\n println(\"Missing treasure count: \" + missingTreasureCount);\n\n println(\"\\nGenerated \" + caveGenCount + \" sublevels.\");\n println(\"Total run time: \" + (System.currentTimeMillis()-startTime)/1000.0 + \"s\");\n\n out.close();\n }", "Report createReport();", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "private void generateReports() {\r\n\t\tLOGGER.debug(\"Report generation trigerred\");\r\n\t\tgenerateIncomingReport();\r\n\t\tgenerateOutgoingReport();\r\n\t\tgenerateIncomingRankingReport();\r\n\t\tgenerateOutgoingRankingReport();\r\n\t\tLOGGER.debug(\"Report generation completed\");\r\n\t}", "boolean generateReport();", "void printReport();", "public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }", "public static JasperReportBuilder generateReport(ExportData metaData,HttpServletRequest request){\n session = request.getSession(false);\n report = report(); // Creer le rapport\n \n //Logo\n// logoImg = cmp.image(inImg).setStyle(DynamicReports.stl.style().setHorizontalAlignment(HorizontalAlignment.LEFT)); \n //logoImg.setDimension(80,80); \n \n //Definit le style des colonnes d'entàte\n report.setColumnTitleStyle(getHeaderStyle(metaData));\n \n \n \n LinkedHashMap <String,String> criteria = metaData.getCriteria(); \n //Ajout la date d'àdition au critere d'impression\n String valDateProperty = getDateTxt(metaData.getLang()) ;\n String keyDateProperty = \"\" ;\n if ( session.getAttribute(\"activedLocale\").equals(\"fr\") ) {\n keyDateProperty = \"Edité le \" ;\n }\n else {\n keyDateProperty = \"Printed on \" ;\n }\n criteria.put(keyDateProperty,valDateProperty);\n \n StyleBuilder titleStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0)).setHorizontalAlignment(HorizontalAlignment.RIGHT).setRightIndent(20);\n ComponentBuilder<?, ?> logoComponent = cmp.horizontalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 50).setStyle(stl.style().setLeftIndent(20)),\n cmp.verticalList(\n cmp.text(metaData.getTitle()).setStyle(titleStyle)\n )\n ).newRow()\n .add(cmp.horizontalList().add(cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()))\n .newRow(); \n \n report.noData(logoComponent, cmp.text(\"Aucun enregistrement trouvà\").setStyle(stl.style().setHorizontalAlignment(HorizontalAlignment.CENTER).setTopPadding(30)));\n\n \n \n lblStyle = stl.style(Templates.columnStyle).setForegroundColor(new Color(60, 91, 31)); // Couleur du text \n colStyle = stl.style(Templates.columnStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n \n groupStyle = stl.style().setForegroundColor(new Color(60, 91, 31)) \n .setBold(Boolean.TRUE)\n .setPadding(5)\n .setFontSize(13)\n .setHorizontalAlignment(HorizontalAlignment.CENTER); \n \n\n \n if(metaData.getTitle().equals(ITitle.PARCEL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PARCEL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ATTACK_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BUDGET)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }\n \n \n drColumns = new HashMap<String, TextColumnBuilder>(); \n groups = new ArrayList<String>();\n subtotals = new ArrayList<String>();\n \n //Definit la liste des colonnes du rapport\n ExportGenerator.getColumns(metaData); \n //Definit la liste des sous-totaux du rapport\n ExportGenerator.getSubTotals(metaData);\n \n \n //Genration des sous totaux\n for (String group : groups) {\n ColumnGroupBuilder group2 = grp.group(drColumns.get(group));\n report.groupBy(group2);\n for (String subtotal : subtotals) {\n report.subtotalsAtGroupFooter(group2,sbt.sum(drColumns.get(subtotal)));\n }\n }\n\n for (String subtotal : subtotals) {\n report.subtotalsAtSummary(sbt.sum(drColumns.get(subtotal))); \n }\n \n /*if(ExportGenerator.getColumnByNameField(\"plantingName\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"plantingName\"), Calculation.NOTHING));\n }*//*else if(ExportGenerator.getColumnByNameField(\"invoiceCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"invoiceCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"planterCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL\"), ExportGenerator.getColumnByNameField(\"planterCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"transportTicket\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"transportTicket\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"deliveryDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"deliveryDate\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"planterNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"planterNumber\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"startPaymentDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"startPaymentDate\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"sectorCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"sectorCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"month\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"month\"), Calculation.NOTHING));\n }*/\n \n\n \n \n //Genere la source de donnàes du rapport\n report.setDataSource(metaData.getData());\n \n report.highlightDetailEvenRows(); \n \n \n // Definition de l'entete : valable uniquement pour la 1ere page\n HorizontalListBuilder hlb= null;\n \n hlb = cmp.horizontalList().add(\n cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()\n );\n\n \n report.title(\n createCustomTitleComponent(metaData.getTitle()), // Titre\n hlb,// Liste Horizontal des Critàres \n cmp.verticalGap(12) // Marge de 12 px entre chaque critàre\n ); \n \n \n \n report.setPageMargin(DynamicReports.margin().setLeft(15).setTop(30).setRight(15).setBottom(30));\n report.setPageFormat(PageType.A3, PageOrientation.LANDSCAPE);\n report.pageFooter(DynamicReports.cmp.pageXslashY());\n return report;\n \n }", "private void buildReport() {\n StringBuilder stringBuilder = new StringBuilder();\n\n // Header of report\n stringBuilder.append(\"Games\\tCPU wins\\t\"\n + \"Human wins\\tDraw avg\\tMax rounds\\n\");\n stringBuilder.append(\"=============================================\\n\");\n\n // shows the number of overall games\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the computer won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'CPU'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the human player won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'human'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the average number of draws per game\n stringBuilder.append((int)Float.parseFloat(dbConnection.executeQuery(\"SELECT AVG(draws) FROM game\", \"avg\")));\n stringBuilder.append(\"\\t\");\n // shows the maximum number of rounds played\n stringBuilder.append(dbConnection.executeQuery(\"SELECT MAX(rounds) FROM game\", \"max\"));\n\n // Converts stringBuilder to a String\n reportContent = stringBuilder.toString();\n }", "@Override\n void createReport(final Format reportFormat,\n final long start, final long end) {\n makeBriefReport(reportFormat, \"Informe breu\", start, end);\n writeToFile();\n getFormat().finishPrinting();\n }", "public void detailReport() {\r\n\t\tint testStepId = 1;\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><table class=\\\"width100\\\"><tr><td><div class=\\\"headertext1 bold\\\">Test Execution Detail Report</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Execution Browser Name: \"+ GlobalVariables.getBrowserName() + \"</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Test Case Name: \"+ GlobalVariables.getTestCaseName() + \"</div></td></tr>\");\r\n\t\t\r\n\t\t\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<table colspan=3 border=0 cellpadding=3 cellspacing=1 class=\\\"reporttable width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><th class=\\\"auto-style1\\\">Test Step No</th>\" + \"<th class=\\\"auto-style2\\\">Action</th>\"\r\n\t\t\t\t+ \"<th class=\\\"auto-style3\\\">Actual Result</th>\" + \"<th class=\\\"auto-style4\\\">Status</th></tr>\");\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 green\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 red\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\"</table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td></tr></table></body></html>\");\r\n\t}", "public void summaryReport() {\r\n\r\n\t\tString strTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\").format(new Date());\r\n\t\tString reportPath = new File(\"Report\").getAbsolutePath();\r\n\t\tint stepPassed = 0;\r\n\t\tint stepFailed = 0;\r\n\t\tString cssData = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tString cssPath = new File(\"Report\\\\Style\\\\style.css\").getAbsolutePath();\r\n\t\t\tbufferedReader = new BufferedReader(new FileReader(cssPath));\r\n\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tString line = bufferedReader.readLine();\r\n\t\t\twhile (line != null) {\r\n\t\t\t\tstringBuilder.append(line);\r\n\t\t\t\tstringBuilder.append(System.lineSeparator());\r\n\t\t\t\tline = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\tcssData = stringBuilder.toString();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLog.error(\"Exception occure in reading file\" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tbufferedReader.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tLog.error(\"Exception occure in reading file\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tFile HTMLDir = new File(reportPath + \"\\\\HTMLReport\");\r\n\t\tif (!HTMLDir.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tHTMLDir.mkdir();\r\n\t\t\t} catch (SecurityException ex) {\r\n\t\t\t\tLog.error(\"Error in creating HTMLReport directory\" + ex.getMessage());\r\n\t\t\t\t// log.error(\"Error in creating Detail directory\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlname = HTMLDir + \"\\\\\" + strTimeStamp + \".html\";\r\n\t\tString logoPath = new File(\"Report\\\\Style\\\\logo.png\").getAbsolutePath();\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstepFailed++;\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\t\t\t\tstepPassed++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tbufferedWriter = new BufferedWriter(new FileWriter(htmlname));\r\n\t\t} catch (IOException e) {\r\n\t\t\tLog.error(\"Error in wrinting the file\" + e.getMessage());\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<html><head><script type=\\\"text/javascript\\\" src=\\\"https://www.gstatic.com/charts/loader.js\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<script src=\\\"https://www.google.com/jsapi\\\"></script>\");\r\n\t\tstrBufferReportAppend.append(\"<style>\" + cssData);\r\n\t\tstrBufferReportAppend.append(\"</style>\");\r\n\t\tstrBufferReportAppend.append(\"</head><body>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td><img src=file:\\\\\\\\\" + logoPath + \"></td>\" + \"<td class=\\\"headertext\\\">\"\r\n\t\t\t\t+ reportHeader + \"</td>\");\r\n\r\n\t\tstrBufferReportAppend.append(\"</tr></table><hr></hr>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend.append(\"<table class=\\\"width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table cellpadding=3 cellspacing=1>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution Start Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrStartTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Execution End Time</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t+ GlobalVariables.getStrEndTime() + \"</td></tr>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<tr><td class=\\\"width50 bold\\\">Total TestSteps Executed</td><td class=\\\"width50 bold\\\">\"\r\n\t\t\t\t\t\t+ (stepFailed + stepPassed) + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 green\\\">Passed</td><td class=\\\"width50 green\\\">\" + stepPassed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td class=\\\"width50 red\\\">Failed</td><td class=\\\"width50 red\\\">\" + stepFailed + \"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width50\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<table>\");\r\n\t\tstrBufferReportAppend.append(\"<tr><td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"</td>\");\r\n\t\tstrBufferReportAppend.append(\"<td class=\\\"width25\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<script type=\\\"text/javascript\\\">\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.load('current', {'packages':['corechart']});\");\r\n\t\tstrBufferReportAppend.append(\"google.charts.setOnLoadCallback(drawDetailsChart);\");\r\n\t\tstrBufferReportAppend.append(\"function drawDetailsChart() {\");\r\n\t\tstrBufferReportAppend.append(\"var data = new google.visualization.DataTable();\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('string', 'Test Execution Detail Graph');\");\r\n\t\tstrBufferReportAppend.append(\"data.addColumn('number', 'Count');\");\r\n\t\tstrBufferReportAppend.append(\"data.addRows([\");\r\n\t\tstrBufferReportAppend.append(\"['Passed',\" + stepPassed + \"],\");\r\n\t\tstrBufferReportAppend.append(\"['Failed',\" + stepFailed + \"]]);\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var options = {'title':'Test Step Details Graph',colors: ['#12C909', '#C3100A'],pieHole: 0.3,\");\r\n\t\tstrBufferReportAppend.append(\"'width':300,\");\r\n\t\tstrBufferReportAppend.append(\"'height':170};\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"var chart = new google.visualization.PieChart(document.getElementById('detailsChart_div'));\");\r\n\t\tstrBufferReportAppend.append(\"chart.draw(data, options); } </script>\");\r\n\t\tstrBufferReportAppend.append(\"<div id=\\\"detailsChart_div\\\"></div>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr></table><hr></hr></td></tr>\");\r\n\t}", "void createReport(Report report);", "public void generateReport(ReportGenerationData data)throws ChangeApplicationException;", "abstract public void report();", "@Override\n\t//Start, end, headache count, average severity, duration\n\tpublic String buildReport() {\n\t\tsetHeadacheInfo(); \n\t\tStringBuilder hsReport = new StringBuilder(); \n\t\thsReport.append(\"\\nReport Start Date: \"); \n\t\thsReport.append(getStartDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Report End Date: \"); \n\t\thsReport.append(getEndDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Headache Count: \"); \n\t\thsReport.append(getHeadacheList().size() + \"\\n\"); \n\t\thsReport.append(\"Average Severty: \"); \n\t\thsReport.append(getAverageSeverity() + \"\\n\"); \n\t\thsReport.append(\"Average Duration (hours): \"); \n\t\thsReport.append(getAverageDuration() + \"\\n\"); \n\t\treturn hsReport.toString(); \n\t}", "public abstract void getReport(java.io.Writer writer);", "public String generateReport() {\n throw new UnsupportedOperationException(\"ERROR: generateReport() Not yet implemented.\");\n }", "void genReport() {\n\n current_part.save_state(); \n\n JTextArea ta = text;\n\n ta.setText(\"\");\n\n if (!t_foil_name.equals(\"Test\"))\n ta.append(\"Hydrofoil: \" + t_foil_name);\n\n java.util.Date date = new java.util.Date();\n ta.append(\"\\n Date: \" + date);\n \n wing.print( \"Main Wing\", ta);\n stab.print( \"Stabilizer Wing\", ta);\n strut.print(\"Mast (a.k.a. Strut)\", ta);\n fuse.print( \"Fuselage\", ta);\n\n ta.append( \"\\n\\n\");\n // tail volume is LAElev * AreaElev / (MACWing * AreaWing)\n // LAElev : The elevator's Lever Arm measured at the wing's and elevator's quarter chord point\n double LAElev = stab.xpos + stab.chord_xoffs + 0.25*stab.chord - (wing.xpos + wing.chord_xoffs + 0.25*wing.chord);\n // MAC : The main wing's Mean Aerodynamic Chord\n // AreaWing : The main wing's area\n // AreaElev : The elevator's area\n \n ta.append( \"\\nTail Voulume: \" + LAElev*stab.span*stab.chord/(wing.chord*wing.chord*wing.span));\n \n\n ta.append( \"\\n\\n\");\n switch (planet) {\n case 0: { \n ta.append( \"\\n Standard Earth Atmosphere\" );\n break;\n }\n case 1: { \n ta.append( \"\\n Martian Atmosphere\" );\n break;\n }\n case 2: { \n ta.append( \"\\n Water\" );\n break;\n }\n case 3: { \n ta.append( \"\\n Specified Conditions\" );\n break;\n }\n case 4: { \n ta.append( \"\\n Specified Conditions\" );\n break;\n }\n }\n\n // ta.append( \"\\n Altitude = \" + filter0(alt_val) );\n // if (lunits == IMPERIAL) ta.append( \" ft ,\" );\n // else /*METRIC*/ ta.append( \" m ,\" );\n \n switch (lunits) {\n case 0: { /* English */\n ta.append( \"\\n Density = \" + filter5(rho_EN) );\n ta.append( \"slug/cu ft\" );\n ta.append( \"\\n Pressure = \" + filter3(ps0/144.) );\n ta.append( \"lb/sq in,\" );\n ta.append( \" Temperature = \" + filter0(ts0 - 460.) );\n ta.append( \"F,\" );\n break;\n }\n case 1: { /* Metric */\n ta.append( \" Density = \" + filter3(rho_EN*515.4) );\n ta.append( \"kg/cu m\" );\n ta.append( \"\\n Pressure = \" + filter3(101.3/14.7*ps0/144.) );\n ta.append( \"kPa,\" );\n ta.append( \" Temperature = \" + filter0(ts0*5.0/9.0 - 273.1) );\n ta.append( \"C,\" );\n break;\n }\n }\n\n ta.append( \"\\n Speed = \" + filter1(velocity * (lunits==IMPERIAL? 0.868976 : 0.539957 )) + \"Kts, or\" );\n ta.append( \" \" + filter1(velocity) );\n if (lunits == IMPERIAL) ta.append( \" mph ,\" );\n else /*METRIC*/ ta.append( \" km/hr ,\" );\n\n // if (out_aux_idx == 1)\n // ta.append( \"\\n Lift Coefficient = \" + filter3(current_part.cl) );\n // if (out_aux_idx == 0) {\n // if (Math.abs(lift) <= 10.0) ta.append( \"\\n Lift = \" + filter3(lift) );\n // if (Math.abs(lift) > 10.0) ta.append( \"\\n Lift = \" + filter0(lift) );\n // if (lunits == IMPERIAL) ta.append( \" lbs \" );\n // else /*METRIC*/ ta.append( \" Newtons \" );\n // }\n // if ( polarOut == 1)\n // ta.append( \"\\n Drag Coefficient = \" + filter3(current_part.cd) );\n // if (out_aux_idx == 0) {\n // ta.append( \"\\n Drag = \" + filter0(drag) );\n // if (lunits == IMPERIAL) ta.append( \" lbs \" );\n // else /*METRIC*/ ta.append( \" Newtons \" );\n // }\n\n ta.append( \"\\n Lift = \" + dash.outTotalLift.getText());\n ta.append( \"\\n Drag = \" + dash.outTotalDrag.getText());\n\n if (min_takeoff_speed_info != null) \n ta.append( \"\\n\\n\" + min_takeoff_speed_info);\n\n if (cruising_info != null) \n ta.append( \"\\n\\n\" + cruising_info);\n\n if (max_speed_info != null) \n ta.append( \"\\n\\n\" + max_speed_info);\n\n // ensure end ta.setCaretPosition(ta.getText().length());\n // ensure start\n ta.setCaretPosition(0);\n }", "public abstract void generateReport(Date from, Date to, String objectCode);", "void generateMgiCrisprAlleleReport();", "private void report() {\n\t\t\n\t}", "private void printReport() {\n\t\tSystem.out.println(getReport());\n\t}", "@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }", "public void generateReport(TaxChallan bean, HttpServletRequest request, HttpServletResponse response, String reportPath) {\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tReportDataSet rds = new ReportDataSet();\r\n\t\t\tString type = bean.getReportType();\r\n\t\t\trds.setReportType(type);\r\n\t\t\tString fileName = \"T.D.S.-TCS TAX CHALLAN\"+Utility.getRandomNumber(1000);\r\n\t\t\tString reportPathName=reportPath+fileName+\".\"+type;\r\n\t\t\trds.setFileName(fileName);\r\n\t\t\trds.setPageSize(\"A4\");\r\n\t\t\trds.setReportHeaderRequired(false);\r\n\t\t\trds.setShowPageNo(true);\r\n\t\t\torg.paradyne.lib.ireportV2.ReportGenerator rg=null;\r\n\t\t\t/* Added by Prashant*/\r\n\t\t\tif(reportPath.equals(\"\")){\r\n\t\t\t\trg = new org.paradyne.lib.ireportV2.ReportGenerator(rds, session, context, request);\r\n\t\t\t}else{\r\n\t\t\t\tlogger.info(\"################# ATTACHMENT PATH #############\"+reportPath+fileName+\".\"+type);\r\n\t\t\t\trg = new org.paradyne.lib.ireportV2.ReportGenerator(rds, reportPath ,session, context, request);\r\n\t\t\t\trequest.setAttribute(\"reportPath\", reportPath+fileName+\".\"+type);\r\n\t\t\t\trequest.setAttribute(\"fileName\", fileName+\".\"+type);\r\n\t\t\t\trequest.setAttribute(\"action\", \"TaxChallan_input.action\");\r\n\t\t\t}\r\n\t\t\trg = getReport(rg, bean);\r\n\t\t\trg.process();\r\n\t\t\tif(reportPath.equals(\"\")){\r\n\t\t\t\trg.createReport(response);\r\n\t\t\t}else{\r\n\t\t\t\t/* Generates the report as attachment*/\r\n\t\t\t\trg.saveReport(response);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void generateReport( Locale locale, LinkcheckModel linkcheckModel )\n {\n getSink().head();\n getSink().text( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.name\" ) );\n getSink().head_();\n \n getSink().body();\n \n if ( linkcheckModel == null )\n {\n getSink().section1();\n getSink().sectionTitle1();\n getSink().text( getName( locale ) );\n getSink().sectionTitle1_();\n \n getSink().paragraph();\n getSink().rawText( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.empty\" ) );\n getSink().paragraph_();\n \n getSink().section1_();\n \n getSink().body_();\n getSink().flush();\n getSink().close();\n \n return;\n }\n \n // Overview\n getSink().section1();\n getSink().sectionTitle1();\n getSink().text( getName( locale ) );\n getSink().sectionTitle1_();\n \n getSink().paragraph();\n getSink().rawText( i18n.getString( \"linkcheck-report\", locale, \"report.linkcheck.overview\" ) );\n getSink().paragraph_();\n \n getSink().section1_();\n \n //Statistics\n generateSummarySection( locale, linkcheckModel );\n \n //Details\n generateDetailsSection( locale, linkcheckModel );\n \n getSink().body_();\n getSink().flush();\n getSink().close();\n }", "public void writeReport() {\n\t\tint gridSize = 55; // Total character spaces between the borders\n\t\tprint(\"+-------------------------------------------------------+\");\n\t\tprint(String.format(\"|%s|\", centerName(gridSize)));\n\t\tprint(\"+---------------+---------------------------------------+\");\n\t\t/*\n\t\t * Loops through each room in the hotel and prints out the relevant\n\t\t * information on a new line And draws southern, eastern and western\n\t\t * borders to allow it to connect up to the main table.\n\t\t */\n\t\tfor (int i = 0; i < myHotel.getSize(); i++) {\n\t\t\tprint(formatRooms(i).toUpperCase());\n\t\t\tprint(formatAmount(i).toUpperCase());\n\t\t\tprint(formatSleepAmount(i).toUpperCase());\n\t\t\tprint(formatOccupied(i).toUpperCase());\n\t\t\tprint(\"+---------------+---------------------------------------+\");\n\t\t}\n\t\t/*\n\t\t * After every hotel room's information has been displayed The overall\n\t\t * hotel information is displayed such as total occupancy, if there is a\n\t\t * vacancy. And if there is a vacancy, the total amount of free rooms\n\t\t * and beds.\n\t\t */\n\t\tprint(String.format(\"| Hotel\\t\\t|\\tTotal Occupancy:\\t%s\\t|\", getHotel().getTotalOccupancy()).toUpperCase());\n\t\tprint(String.format(\"| information:\\t|\\tHas Vacancies:\\t\\t%s\\t|\", convertBoolean(getHotel().getVacancies()))\n\t\t\t\t.toUpperCase());\n\t\tif (getHotel().getVacancies()) {\n\t\t\tprint(String.format(\"|\\t\\t|\\tVacant Rooms:\\t\\t%s\\t|\", getHotel().getEmptyRooms()).toUpperCase());\n\t\t\tprint(String.format(\"|\\t\\t|\\tVacant Beds:\\t\\t%s\\t|\", getHotel().getTotalVacancy()).toUpperCase());\n\t\t}\n\t\t/*\n\t\t * Draws a final southern border to close the table\n\t\t */\n\t\tprint(\"+---------------+---------------------------------------+\");\n\t}", "public void setup_report() {\n try {\n output = new PrintWriter(new FileWriter(filename));\n } catch (IOException ioe) {}\n }", "public Report() {\n\t\tsuper();\n\t}", "@Override\n public String report() {\n String license = \"License Plate No.: \" + getLicensePlate();\n String destination = \"Destination: \" + getZipDest();\n String weight = \"Weight Load: \" + getCurrentWeight() + \"/\" + getMaxWeight();\n String profit = String.format(\"Net Profit: ($%.2f)\", getProfit());\n String labels = \"=====Shipping Labels=====\\n\";\n for (int i = 0; i < getPackages().size(); i++) {\n labels += getPackages().get(i).shippingLabel();\n }\n labels = labels.concat(\"==============================\");\n String report = \"======== Cargo Plane Report =======\\n\"\n + license + \"\\n\" + destination + \"\\n\" + weight + \"\\n\" + profit + \"\\n\" + labels;\n return report;\n\n }", "@Override\r\n\tpublic void report() {\r\n\t}", "public void makeReport() throws IOException{\n File report = new File(\"Report.txt\");\n BufferedWriter reportWriter = new BufferedWriter(new FileWriter(report));\n BufferedReader bookReader = new BufferedReader(new FileReader(\"E-Books.txt\"));\n String current;\n while((current = bookReader.readLine()) != null ){\n String[] tokens = current.split(\",\");\n reportWriter.write(tokens[0].trim()+\" for \"+tokens[1].trim()+\" with redemption Code \"+tokens[2].trim()+\n \" is assigned to \"+tokens[4].trim()+\" who is in \"+tokens[5].trim()+\" grade.\");\n reportWriter.write(System.lineSeparator());\n reportWriter.flush();\n }\n reportWriter.close();\n bookReader.close();\n new reportWindow();\n }", "private void buildReport() throws IOException {\n try (InputStream template = Thread.currentThread().getContextClassLoader().getResourceAsStream(TEMPLATE_DIR + \"/\" + TEMPLATE_NAME)) {\n reportDoc = Jsoup.parse(template, null, \"\");\n Element diffReportContainer = reportDoc.select(\".diffReport\").first();\n Element diffResultTable = diffReportContainer.select(\".diffResult\").first().clone();\n\n diffReportContainer.empty();\n\n for (SimpleImmutableEntry<String, List<File>> diffResult : fileDiffResults) {\n diffReportContainer.appendChild(getDiffTable(diffResultTable, diffResult));\n }\n }\n }", "private void userReport() {\n reportText.appendText(\"Report of appointments per User\\n\\n\");\n for (User user: Data.getUsers()) {\n reportText.appendText(\"\\n\\nUser: \" + user.getUsername() + \"\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getUser() == user.getId()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n\n }", "public org.paradyne.lib.ireportV2.ReportGenerator getReport(org.paradyne.lib.ireportV2.ReportGenerator rg, TaxChallan bean){\r\n\t\ttry {\r\n\t\t\tint toYear=Integer.parseInt(bean.getYear().substring(2))+1;\r\n\t\t\tString toYearStr =\"\";\r\n\t\t\tif(toYear < 10){\r\n\t\t\t\ttoYearStr = \"0\"+toYear;\r\n\t\t\t}else {\r\n\t\t\t\ttoYearStr =\"\"+toYear;\r\n\t\t\t}\r\n\t\t\tString assesmentYear = bean.getYear()+ \"-\"+ toYearStr;\r\n\t\t\tTableDataSet subtitleName = new TableDataSet();\r\n\t\t\tObject obj[][] = new Object[1][3];\r\n\t\t\t\r\n\t\t\tobj[0][0] = \"* Important : Please see notes \\noverleaf before filling up the challan\";\r\n\t\t\tobj[0][1] = \"T.D.S./TCS TAX CHALLAN\";\r\n\t\t\tobj[0][2] = \"Single Copy (to be sent to the ZAO)\";\r\n\t\t\tsubtitleName.setData(obj);\r\n\t\t\tsubtitleName.setCellAlignment(new int[] { 0, 1, 0 });\r\n\t\t\tsubtitleName.setCellWidth(new int[] { 30, 40, 30 });\r\n\t\t\tsubtitleName.setBorderDetail(3);\r\n\t\t\tsubtitleName.setHeaderTable(true);\r\n\t\t\trg.addTableToDoc(subtitleName);\r\n\t\t\t\r\n\t\t\tTableDataSet heading1 = new TableDataSet();\r\n\t\t\theading1.setData(new Object[][] { {\r\n\t\t\t\t\t\t\t\"CHALLAN NO./ \\nITNS \\n281\\n\\n\"+bean.getChallanNo(),\r\n\t\t\t\t\t\t\t\"Tax Applicable (Tick One)*\\nTAX DEDUCTED/COLLECTED AT SOURCE FROM\\n\\n(0020) COMPANY [__] \\t\\t\\t\\t(0021) NON-COMPANY [__] \\n\\n DEDUCTEES \\t\\t\\t\\t\\t\\t\\t DEDUCTEES\",\r\n\t\t\t\t\t\t\t\"Assesment Year \\n\\n\"+assesmentYear }});\r\n\t\t\theading1.setCellAlignment(new int[] { 1, 1, 1 });\r\n\t\t\theading1.setCellWidth(new int[] { 20, 60, 20 });\r\n\t\t\theading1.setBorderDetail(3);\r\n\t\t\trg.addTableToDoc(heading1);\r\n\t\t\t\r\n\t\t\tObject divAddress[][]=getSqlModel().getSingleResult(\"SELECT HRMS_DIVISION.DIV_NAME, NVL(HRMS_DIVISION.DIV_ADDRESS1,' '), NVL(HRMS_DIVISION.DIV_ADDRESS2,' '), NVL(HRMS_DIVISION.DIV_ADDRESS3,' '), NVL(HRMS_DIVISION.DIV_TANNO,' '), \"\r\n\t\t\t\t\t+\" HRMS_DIVISION.DIV_TELEPHONE, HRMS_DIVISION.DIV_PINCODE FROM HRMS_DIVISION WHERE HRMS_DIVISION.DIV_ID=\"+bean.getDivId());\r\n\t\t\t\r\n\t\t\tObject [][] empDataObj = new Object[4][1];\r\n \t\tempDataObj[0][0] = \"Tax Deduction Account No. (T.A.N.)\\n\"+divAddress[0][4];;\r\n \t\tempDataObj[1][0] = \"Full Name\\n\"+divAddress[0][0];\r\n \t\tempDataObj[2][0] = \"Complete Address with City & State\\n\"+divAddress[0][1]+\"\\n\"+\"\"+divAddress[0][2]+\"\\n\"+\"\"+divAddress[0][3];\r\n \t\tempDataObj[3][0] = \"Tel. No. : \"+checkNull(\"\"+divAddress[0][5])+\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\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\" +\r\n \t\t\t\t\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Pin : \"+checkNull(\"\"+divAddress[0][6]);\r\n \t\t\r\n \t\t\r\n \t\tTableDataSet empData = new TableDataSet();\r\n\t\t\tempData.setData(empDataObj);\r\n\t\t\tempData.setCellAlignment(new int[] { 0 });\r\n\t\t\tempData.setCellWidth(new int[] { 100 });\r\n\t\t\tempData.setBorderDetail(3);\r\n\t\t\trg.addTableToDoc(empData);\r\n \t\t\r\n \t\tTableDataSet table1 = new TableDataSet();\r\n \t\ttable1.setData(new Object[][] { { \"Type of Payment\", \"Code * \" } });\r\n \t\ttable1.setCellAlignment(new int[] { 0, 2});\r\n \t\ttable1.setCellWidth(new int[] { 50, 50 });\r\n \t\ttable1.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tTableDataSet table2 = new TableDataSet();\r\n\t\t\ttable2.setData(new Object[][] { {\"(Tick One)\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\" +\r\n\t\t\t\t\t\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\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(Please see overleaf)\" +\r\n\t\t\t\t\t\"\\n\\n\\n \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tTDS/TCS Payable by Taxpayer\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t (200)\" +\r\n\t\t\t\t\t\"\\n\\n\\n \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t TDS/TCS Regular Assessment (Raised by I.T. Deptt.)\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(400)\\n\"}});\r\n\t\t\ttable2.setCellAlignment(new int[] {0});\r\n\t\t\ttable2.setCellWidth(new int[] { 100 });\r\n\t\t\ttable2.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map2 = rg.joinTableDataSet(table1, table2, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table3 = new TableDataSet();\r\n\t\t\ttable3.setData(new Object[][] { { \"DETAILS OF PAYMENTS\",\"Amount (in Rs. Only)\" }});\r\n\t\t\ttable3.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable3.setCellWidth(new int[] { 50, 50});\r\n\t\t\ttable3.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map3 = rg.joinTableDataSet(map2, table3, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table4 = new TableDataSet();\r\n\t\t\ttable4.setData(new Object[][] { {\"Income Tax\",bean.getTax()},\r\n\t\t\t\t\t{\"Surcharge\",bean.getSurcharge()},\r\n\t\t\t\t\t{\"Education Cess\",bean.getEduCess()},\r\n\t\t\t\t\t{\"Interest\",bean.getIntAmt()},\r\n\t\t\t\t\t{\"Penalty\",bean.getOthrAmt()},\r\n\t\t\t\t\t{\"Total\",bean.getTotalTax()},\r\n\t\t\t\t\t{\"Total (in words)\",\"\"}});\r\n\t\t\ttable4.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable4.setCellWidth(new int[] { 30, 70});\r\n\t\t\ttable4.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map4 = rg.joinTableDataSet(map3, table4, false, 100);\r\n\t\t\t\r\n\t\t\tString numberString [] = convert(Integer.parseInt(bean.getTotalTax().trim().replace(\".00\",\"\"))).split(\",\");\r\n\t\t\t\r\n\t\t\tObject totalInWord [][]= new Object [2][6];\r\n\t\t\ttotalInWord [0][0] = \"CRORE\";\r\n\t\t\ttotalInWord [0][1] = \"LACS\";\r\n\t\t\ttotalInWord [0][2] = \"THOUSAND\";\r\n\t\t\ttotalInWord [0][3] = \"HUNDRED\";\r\n\t\t\ttotalInWord [0][4] = \"TENS\";\r\n\t\t\ttotalInWord [0][5] = \"UNITS\";\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < numberString.length; i++) {\r\n\t\t\t\tif(numberString[i].equalsIgnoreCase(\"zero\")){\r\n\t\t\t\t\ttotalInWord [1][i] = \"Nil\";\r\n\t\t\t\t} else { \r\n\t\t\t\t\ttotalInWord [1][i] = numberString[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tTableDataSet table5 = new TableDataSet();\r\n\t\t\ttable5.setData(totalInWord);\r\n\t\t\ttable5.setCellAlignment(new int[] { 1, 1, 1, 1, 1, 1});\r\n\t\t\ttable5.setCellWidth(new int[] { 15, 15, 15, 15, 15, 15});\r\n\t\t\ttable5.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map5 = rg.joinTableDataSet(map4, table5, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table6 = new TableDataSet();\r\n\t\t\ttable6.setData(new Object[][] { {\"Paid in Cash/Debit to A/c /Cheque No.\"+bean.getChequeNo(), \"\", \"Dated\", bean.getChequeDate() }});\r\n\t\t\ttable6.setCellAlignment(new int[] { 1, 1, 1, 1});\r\n\t\t\ttable6.setCellWidth(new int[] { 50, 15, 20, 15});\r\n\t\t\ttable6.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map6 = rg.joinTableDataSet(map5, table6, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table7 = new TableDataSet();\r\n\t\t\ttable7.setData(new Object[][] { {\"Drawn on\", bean.getBank()}});\r\n\t\t\ttable7.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable7.setCellWidth(new int[] { 50,50});\r\n\t\t\ttable7.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map7 = rg.joinTableDataSet(map6, table7, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table8 = new TableDataSet();\r\n\t\t\ttable8.setData(new Object[][] { {\"(Name of the Bank and Branch)\"}});\r\n\t\t\ttable8.setCellAlignment(new int[] { 2});\r\n\t\t\ttable8.setCellWidth(new int[] { 100 });\r\n\t\t\ttable8.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map8 = rg.joinTableDataSet(map7, table8, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table9 = new TableDataSet();\r\n\t\t\ttable9.setData(new Object[][] { {\"Date\", \"\"}});\r\n\t\t\ttable9.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable9.setCellWidth(new int[] { 60, 40});\r\n\t\t\ttable9.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map9 = rg.joinTableDataSet(map8, table9, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table10 = new TableDataSet();\r\n\t\t\ttable10.setData(new Object[][] { {\"Signature of person making payment\"}});\r\n\t\t\ttable10.setCellAlignment(new int[] { 2 });\r\n\t\t\ttable10.setCellWidth(new int[] { 100});\r\n\t\t\ttable10.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map10 = rg.joinTableDataSet(map9, table10, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table11 = new TableDataSet();\r\n\t\t\ttable11.setData(new Object[][] { {\"Taxpayers Counterfoil (To be filled up by taxpayer)\"}});\r\n\t\t\ttable11.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable11.setCellWidth(new int[] { 100});\r\n\t\t\ttable11.setBodyFontDetails(Font.FontFamily.HELVETICA, 8, Font.BOLD, new BaseColor(0, 0, 0));\r\n\t\t\ttable11.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map11 = rg.joinTableDataSet(map10, table11, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table12 = new TableDataSet();\r\n\t\t\ttable12.setData(new Object[][] { {\"TAN \"+divAddress[0][4]+\"\\n\\nReceived from \"+divAddress[0][0]}});\r\n\t\t\ttable12.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable12.setCellWidth(new int[] { 100});\r\n\t\t\ttable12.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map12 = rg.joinTableDataSet(map11, table12, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table13 = new TableDataSet();\r\n\t\t\ttable13.setData(new Object[][] { {\"(Name)\"}});\r\n\t\t\ttable13.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable13.setCellWidth(new int[] { 100 });\r\n\t\t\ttable13.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map13 = rg.joinTableDataSet(map12, table13, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table14 = new TableDataSet();\r\n\t\t\ttable14.setData(new Object[][] { {\"Cash/ Debit to A/c /Cheque No. :\"+bean.getChequeNo()+\"For Rs.\"+bean.getTotalTax().replace(\".00\", \"\")+\"/-\"}});\r\n\t\t\ttable14.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable14.setCellWidth(new int[] { 100 });\r\n\t\t\ttable14.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map14 = rg.joinTableDataSet(map13, table14, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table15 = new TableDataSet();\r\n\t\t\ttable15.setData(new Object[][] { {\"Rs. (in words)\", Utility.convert(Integer.parseInt(bean.getTotalTax().trim().replace(\".00\", \"\")))}, {\"Drawn on\", bean.getBank()}});\r\n\t\t\ttable15.setCellAlignment(new int[] { 0, 1 });\r\n\t\t\ttable15.setCellWidth(new int[] { 30, 70 });\r\n\t\t\ttable15.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map15 = rg.joinTableDataSet(map14, table15, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table16 = new TableDataSet();\r\n\t\t\ttable16.setData(new Object[][] { {\"(Name of the Bank and Branch)\"}, \r\n\t\t\t\t\t{\"Company/Non-Company Deductees\"}, \r\n\t\t\t\t\t{\"on account of Tax Deducted at Source (TDS)/Tax Collected at Source (TCS) from____(Fill up Code)\"},\r\n\t\t\t\t\t{\"(Strike out whichever is not applicable)\"}});\r\n\t\t\ttable16.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable16.setCellWidth(new int[] { 100 });\r\n\t\t\ttable16.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map16 = rg.joinTableDataSet(map15, table16, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table17 = new TableDataSet();\r\n\t\t\ttable17.setData(new Object[][] { {\"\\nfor the Assessment Year : \"+assesmentYear}});\r\n\t\t\ttable17.setCellAlignment(new int[] { 0});\r\n\t\t\ttable17.setCellWidth(new int[] { 100 });\r\n\t\t\ttable17.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map17 = rg.joinTableDataSet(map16, table17, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table18 = new TableDataSet();\r\n\t\t\ttable18.setData(new Object[][] { {\"\\n\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\tFOR USE IN RECEIVING BANK \\n\\n\\n\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tDebit to A/c/Cheque credited on\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tDD-MM-YY\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tSPACE FOR BANK SEAL\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nRs.\"}});\r\n\t\t\ttable18.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable18.setCellWidth(new int[] {100});\r\n\t\t\ttable18.setBorderDetail(3);\r\n\r\n\t\t\tTableDataSet table19 = new TableDataSet();\r\n\t\t\ttable19.setData(new Object[][] { {\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tSPACE FOR BANK SEAL\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nRs.\"}});\r\n\t\t\ttable19.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable19.setCellWidth(new int[] {100});\r\n\t\t\ttable19.setBorderDetail(3);\r\n\t\t\t//rg.addTableToDoc(table11);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map18 = rg.joinTableDataSet(table18, table19, false, 100);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map19 = rg.joinTableDataSet(map17, map18, true, 70);\r\n\t\t\t\r\n\t\t\trg.addTableToDoc(map19);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn rg;\r\n\t}", "@Override\n public ResponseEntity<?> createReport(OutputReport report) throws IOException, MessagingException {\n Date endDate = midnight();\n Date startDate = midnight();\n if (report.getReportType() == 0) {\n endDate = midnight();\n startDate = setDateBefore(1);\n } else if (report.getReportType() == 1) {\n endDate = midnight();\n startDate = setDateBefore(7);\n } else if (report.getReportType() == 2) {\n endDate = midnight();\n startDate = setDateBefore(30);\n } else if (report.getReportType() == 3) {\n endDate = new Date(report.getEndDate());\n startDate = new Date(report.getStartDate());\n }\n ExcelHelper.writeExcel(report.getReportItemList(), \"NiceJavaBooks.xls\", report.getTotalRevenue());\n Place place = placeRepository.findById(report.getPlaceId()).get();\n String content = \"\";\n if(report.getReportType() == 0){\n content = \"Daily sales report\";\n }else if(report.getReportType() == 1){\n content = \"Weekly sales report\";\n }else if(report.getReportType() == 2){\n content = \"Monthly sales report\";\n }else if(report.getReportType() == 3){\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n content = \"Sales report from \"+formatter.format(startDate)+\" to \"+formatter.format(endDate);\n }\n sendEmail(new File(\"NiceJavaBooks.xls\"), place.getMail(), content);\n return ResponseEntity.ok(\"OK\");\n }", "public void contactScheduleReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getContactSchedule();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Schedule By Contact Report: \\n\");\n int id = 0;\n for (Reports r : reportsList) {\n if (r.getContactId() != id) {\n sb.append(\"\\n\" + r.getContactName().toUpperCase() + \"\\n\");\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n id = r.getContactId();\n } else {\n sb.append(\"Appt. ID: \" + r.getAppointmentId() + \" \\t Title: \" + r.getTitle() + \" \\t Type: \" +\n r.getType() + \" \\t Desc: \" + r.getDescription() + \" \\t Start: \" +\n dateTimeFormatter.format(r.getStart().toLocalDateTime()) + \" \\t End: \" +\n dateTimeFormatter.format(r.getEnd().toLocalDateTime()) + \" \\t Customer ID: \" +\n r.getCustomerId() + \"\\n\");\n }\n }\n reportLabel.setText(sb.toString());\n }", "protected Report()\n {\n super();\n }", "public String generalReport() throws Exception{\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\tmodel.terminate();\r\n\t\treturn null;\r\n\t}", "public void generarReporteGanancia(String destino,String fechainicial,String fechafinal)\n {\n \n if(destino.equals(\"Todos\"))\n {\n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentasGeneral.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Ventas Credito/Contado\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n }\n else\n { \n \n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentas.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Insumos\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n } \n }", "public void generarReportePlantillaFacturas(String sAccionBusqueda,List<PlantillaFactura> plantillafacturasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PlantillaFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PlantillaFacturaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PlantillaFacturaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PlantillaFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Plantilla Facturas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PlantillaFacturaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePlantillaFactura=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPlantillaFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPlantillaFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePlantillaFactura=new JRBeanArrayDataSource(PlantillaFacturaJInternalFrame.TraerPlantillaFacturaBeans(plantillafacturasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePlantillaFactura);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PlantillaFacturaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PlantillaFacturaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PlantillaFacturaBean.TraerPlantillaFacturaBeans(plantillafacturasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPlantillaFacturaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "@RequestMapping(\"/generateReport\")\n\tpublic String generateReportforLoc(){\n\t\tList<Object[]> data=service.getLocWiseCount();\n\t\tString path=context.getRealPath(\"/\");\n\t\tlocUtil.generatePieChart(path, data);\n\t\tlocUtil.generateBarChart(path, data);\n\t\treturn \"LocReport\";\n\t}", "private void generateOutgoingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Outgoing Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallOutgoings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}", "public String report() {\r\n\t\tsession2 = ServletActionContext.getRequest().getSession();\r\n\t\tlogger.info(session2);\r\n\t\tif (session2 == null || session2.getAttribute(\"login\") == null) {\r\n\t\t\tlogger.error(\"if=====session error reporting===='\");\r\n\t\t\treturn LOGIN;\r\n\t\t} else {\r\n\t\t\tfactory = LoginAndSession.getFactory();\r\n\t\t\tdao_userWise = (Productivity_user_wiseDao) factory.getBean(\"d27\");\r\n\t\t\tdao_propwise = (Productivity_property_wiseDao) factory.getBean(\"d29\");\r\n\t\t\tpcw = (Productivity_client_wiseDao) factory.getBean(\"d30\");\r\n\t\t\tif (colorRadio.equalsIgnoreCase(\"red\")) {\r\n\r\n\t\t\t\t// for all user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , mu.name\"\r\n\t\t\t\t\t\t\t\t\t+ \" , puw.facebook, puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain , puw.user_id \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_user_wise puw, Markscan_users mu where puw.curr_date \"\r\n\t\t\t\t\t\t\t\t\t+ \" between '\" + date + \"' and '\" + date1 + \"' and mu.id= puw.user_id\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tcud = (Crawle_url2Dao) factory.getBean(\"dash\");\r\n\r\n\t\t\t\t\t// lst1= cud.viewRecord(\"select DISTINCT count(domain_name)\r\n\t\t\t\t\t// ,date(created_on), link_logger from crawle_url3 where\r\n\t\t\t\t\t// user_id= 75 and created_on >'2017-06-01' and\r\n\t\t\t\t\t// link_logger=1 group by date(created_on)\")\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setProj_name(obj[8].toString()); // user_name\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[14]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[15]);\r\n\t\t\t\t\t\tdata.setUser_id((Integer) obj[16]);\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" ppw.created_on = '\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t\t+ \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ (Integer) obj[16] + \" and \" + \" productivi0_.created_on='\" + obj[0].toString()\r\n\t\t\t\t\t\t\t\t\t+ \"' and \" + \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// System.out.println(client_names);\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tobj0=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tobj1=null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\t\t\tlst = null;\r\n\t\t\t\t\t\t\tfactory=null;\r\n\t\t\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"allEmpReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"green\")) {\r\n\t\t\t\t// for single user\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlst = dao_userWise\r\n\t\t\t\t\t\t\t.viewRecord(\"select puw.curr_date, puw.source_link, puw.infringing_link, puw.youtube, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.social_media, puw.white_list, puw.grey_list, puw.duplicate , puw.facebook,\"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.instagram, puw.twitter, puw.vk, puw.periscope, puw.source_domain, \"\r\n\t\t\t\t\t\t\t\t\t+ \" puw.infringing_domain from \" + \" Productivity_user_wise puw where puw.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and puw.curr_date between\" + \" '\" + date + \"' and '\" + date1 + \"'\");\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\t\t\t\t\t\tdata.setDuplicate((Integer) obj[7]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[11]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[13]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[14]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT cm.client_name , mp.name , cm.id from Productivity_property_wise ppw, \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Project_info pi, Client_master cm, Markscan_projecttype mp where \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" ppw.project_id= pi.id and \"\r\n\t\t\t\t\t\t\t\t\t\t+ \" pi.client_type= cm.id and pi.project_type = mp.id and ppw.user_id =\"\r\n\t\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" ppw.created_on = '\" + obj[0].toString() + \"'\");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\"select sum( productivi0_.source_count), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum( productivi0_.facebook), sum(productivi0_.instagram), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.twitter),sum(productivi0_.vk), sum(productivi0_.periscope) \"\r\n\t\t\t\t\t\t\t\t\t+ \" from Productivity_property_wise productivi0_, Project_info project_in1_ \"\r\n\t\t\t\t\t\t\t\t\t+ \" where project_in1_.id=productivi0_.project_id and \" + \" productivi0_.user_id=\"\r\n\t\t\t\t\t\t\t\t\t+ usertype + \" and \" + \" productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \"project_in1_.client_type=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj=null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally\r\n\t\t\t\t{\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw= null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"empReport\";\r\n\t\t\t} else if (colorRadio.equalsIgnoreCase(\"blue\")) {\r\n\t\t\t\t// for client wise\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tlst = pcw.viewRecord(\"select pcw.curr_date, pcw.source_link, pcw.infringing_link, pcw.youtube,\"\r\n\t\t\t\t\t\t\t+ \" pcw.social_media, pcw.white_list, pcw.grey_list , pcw.facebook, pcw.instagram, pcw.twitter,\"\r\n\t\t\t\t\t\t\t+ \" pcw.vk, pcw.periscope, pcw.source_domain, pcw.infringing_domain from Productivity_client_wise \"\r\n\t\t\t\t\t\t\t+ \" pcw where pcw.curr_date between '\" + date + \"' and '\" + date1 + \"' and pcw.client_id=\"\r\n\t\t\t\t\t\t\t+ clientname);\r\n\t\t\t\t\tmonthlyGraph = new ArrayList<>();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < lst.size(); i++) {\r\n\t\t\t\t\t\t obj = (Object[]) lst.get(i);\r\n\r\n\t\t\t\t\t\t data = new DashBoardData();\r\n\t\t\t\t\t\tdata.setDate(obj[0].toString());\r\n\t\t\t\t\t\tdata.setSource((Integer) obj[1]);\r\n\t\t\t\t\t\tdata.setInfringing((Integer) obj[2]);\r\n\r\n\t\t\t\t\t\tdata.setYoutube((Integer) obj[3]);\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[4]);\r\n\r\n\t\t\t\t\t\tdata.setWhite_list((Integer) obj[5]);\r\n\t\t\t\t\t\tdata.setGrey_list((Integer) obj[6]);\r\n\r\n\t\t\t\t\t\tdata.setFacebook((Integer) obj[7]);\r\n\t\t\t\t\t\tdata.setInstagram((Integer) obj[8]);\r\n\t\t\t\t\t\tdata.setTwitter((Integer) obj[9]);\r\n\t\t\t\t\t\tdata.setVk((Integer) obj[10]);\r\n\t\t\t\t\t\tdata.setPeriscope((Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSocial_media((Integer) obj[7] + (Integer) obj[8] + (Integer) obj[9] + (Integer) obj[10]\r\n\t\t\t\t\t\t\t\t+ (Integer) obj[11]);\r\n\r\n\t\t\t\t\t\tdata.setSource_domain((Integer) obj[12]);\r\n\t\t\t\t\t\tdata.setInfringing_domain((Integer) obj[13]);\r\n\r\n\t\t\t\t\t\tlst1 = dao_propwise.viewRecord(\r\n\t\t\t\t\t\t\t\t\"select DISTINCT mu.name, ppw.created_on ,ppw.user_id from Productivity_property_wise ppw ,\"\r\n\t\t\t\t\t\t\t\t\t\t+ \" Markscan_users mu where mu.id= ppw.user_id and ppw.client_id = \"\r\n\t\t\t\t\t\t\t\t\t\t+ clientname + \" and ppw.created_on='\" + obj[0].toString() + \"' \");\r\n\t\t\t\t\t\tin_side = new ArrayList<>();\r\n\t\t\t\t\t\tfor (int i1 = 0; i1 < lst1.size(); i1++) {\r\n\t\t\t\t\t\t\t obj1 = (Object[]) lst1.get(i1);\r\n\r\n\t\t\t\t\t\t\tlst0 = dao_propwise.viewRecord(\" select sum( productivi0_.source_count),\"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.infringing_count),sum( productivi0_.youtube), \"\r\n\t\t\t\t\t\t\t\t\t+ \" sum(productivi0_.facebook),sum(productivi0_.instagram),sum(productivi0_.twitter) \"\r\n\t\t\t\t\t\t\t\t\t+ \" ,sum(productivi0_.vk),sum( productivi0_.periscope) from \"\r\n\t\t\t\t\t\t\t\t\t+ \" Productivity_property_wise productivi0_, Markscan_users markscan_u1_ where \"\r\n\t\t\t\t\t\t\t\t\t+ \" markscan_u1_.id=productivi0_.user_id and productivi0_.client_id= \" + clientname\r\n\t\t\t\t\t\t\t\t\t+ \" and productivi0_.created_on='\" + obj[0].toString() + \"' and \"\r\n\t\t\t\t\t\t\t\t\t+ \" productivi0_.user_id=\" + (Integer) obj1[2]);\r\n\r\n\t\t\t\t\t\t\tfor (int i0 = 0; i0 < lst0.size(); i0++) {\r\n\t\t\t\t\t\t\t\t obj0 = (Object[]) lst0.get(i0);\r\n\r\n\t\t\t\t\t\t\t\t craw = new Crawle_url2();\r\n\t\t\t\t\t\t\t\tcraw.setWid(obj1[0].toString()); // client_name\r\n\t\t\t\t\t\t\t\tcraw.setIs_valid(((Long) obj0[0]).intValue());// source\r\n\t\t\t\t\t\t\t\tcraw.setStatus(((Long) obj0[1]).intValue());// infringing\r\n\t\t\t\t\t\t\t\tcraw.setUser_id(((Long) obj0[2]).intValue());// youtube\r\n\t\t\t\t\t\t\t\tcraw.setProject_id(((Long) obj0[3]).intValue());// FB\r\n\t\t\t\t\t\t\t\tcraw.setType(((Long) obj0[4]).intValue());// instagram\r\n\t\t\t\t\t\t\t\tcraw.setVerified(((Long) obj0[5]).intValue());// twitter\r\n\t\t\t\t\t\t\t\tcraw.setSite_down(((Long) obj0[6]).intValue());// vk\r\n\t\t\t\t\t\t\t\tcraw.setIs_new(((Long) obj0[7]).intValue());// pscp\r\n\r\n\t\t\t\t\t\t\t\tin_side.add(craw);\r\n\t\t\t\t\t\t\t\tobj0=null;\r\n\t\t\t\t\t\t\t\tcraw=null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tobj1=null;\r\n\t\t\t\t\t\t\tlst0=null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdata.setInside(in_side);\r\n\r\n\t\t\t\t\t\tmonthlyGraph.add(data);\r\n\t\t\t\t\t\tobj= null;\r\n\t\t\t\t\t\tdata= null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn ERROR;\r\n\t\t\t\t}\r\n\t\t\t\tfinally{\r\n\t\t\t\t\tpcw = null;\r\n\t\t\t\t\tlst = null;\r\n\t\t\t\t\tlst1 = null;\r\n\t\t\t\t\tlst0 = null;\r\n\t\t\t\t\tdao_userWise = null;\r\n\t\t\t\t\tdao_propwise = null;\r\n\t\t\t\t\tobj=null;\r\n\t\t\t\t\tdata=null;\r\n\t\t\t\t\tcraw=null;\r\n\t\t\t\t\tfactory=null;\r\n\t\t\t\t\tdao_userWise=null;\r\n\t\t\t\t\tdao_propwise=null;\r\n\t\t\t\t\tsession2=null;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t\treturn \"clientReport\";\r\n\t\t\t}\r\n\r\n\t\t\tfactory=null;\r\n\t\t\tdao_userWise=null;\r\n\t\t\tdao_propwise=null;\r\n\t\t\tsession2=null;\r\n\t\t\tSystem.gc();\r\n\t\t\treturn SUCCESS;\r\n\t\t}\r\n\t}", "@AfterClass\n\tpublic static void generateReport() {\n\t\tCucumberReportingConfig.reportConfig();\n\t\n\t}", "private void printReport() {\n\t\t\tSystem.out.println(\"Processed \" + this.countItems + \" items:\");\n\t\t\tSystem.out.println(\" * Labels: \" + this.countLabels);\n\t\t\tSystem.out.println(\" * Descriptions: \" + this.countDescriptions);\n\t\t\tSystem.out.println(\" * Aliases: \" + this.countAliases);\n\t\t\tSystem.out.println(\" * Statements: \" + this.countStatements);\n\t\t\tSystem.out.println(\" * Site links: \" + this.countSiteLinks);\n\t\t}", "public String generarReporte (HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n Empresa empresaSesion = (Empresa)request.getSession().getAttribute(\"emp\");\n String simbolo_moneda;\n \n if (empresaSesion != null && empresaSesion.getSimboloMoneda() != null && \n !empresaSesion.getSimboloMoneda().isEmpty()) {\n simbolo_moneda = empresaSesion.getSimboloMoneda();\n } else {\n simbolo_moneda = \"$\";\n }\n \n // Se restauran variables iniciadas\n ReporteUtil.restaurarValores();\n \n String tipoReporte = request.getParameter(\"tipoReporte\");\n String fechaInicio = request.getParameter(\"fechaInicio\");\n String fechaFinal = request.getParameter(\"fechaFinal\");\n String placa = request.getParameter(\"splaca\"); // id,placa,numInterno\n String mplaca = request.getParameter(\"smplaca_v\");\n String esteDia = request.getParameter(\"esteDia\");\n String tipoArchivo = request.getParameter(\"tipoArchivo\");\n String ruta = request.getParameter(\"sruta\");\n String mruta = request.getParameter(\"smruta_v\");\n String malarma = request.getParameter(\"smalarma_v\");\n String base = request.getParameter(\"sbase\");\n String idLiquidador = request.getParameter(\"sliquidador\");\n String meta = request.getParameter(\"smeta\");\n String mconductor = request.getParameter(\"smconductor_v\"); \n \n boolean dia_actual = verificarDiaActual(fechaInicio, fechaFinal);\n \n// Etiquetas etiquetas = null;\n// etiquetas = LiquidacionBD.searchTags();\n ConfiguracionLiquidacion etiquetas = obtenerEtiquetasLiquidacionPerfil(request);\n \n if (etiquetas != null) {\n ReporteUtil.establecerEtiquetas(etiquetas);\n } \n \n //String reportesPath = \"D:\\\\rdw\\\\\"; \n \n // En caso de estar sobre un SO_WIN, se quita ultimo delimitador\n String reportesPath = getServletContext().getRealPath(\"\");\n if (reportesPath.endsWith(\"\\\\\")) {\n reportesPath = reportesPath.substring(0, reportesPath.length()-1); \n }\n \n Map<String,String> h = new HashMap<String,String>();\n \n h.put(\"tipoReporte\", tipoReporte);\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal); \n h.put(\"tipoArchivo\", tipoArchivo);\n h.put(\"path\", reportesPath); \n \n \n // Informacion de usuario en sesion\n HttpSession session = request.getSession(); \n Usuario u = (Usuario) session.getAttribute(\"login\");\n \n h.put(\"idUsuario\", \"\" + u.getId());\n h.put(\"nombreUsuario\", u.getNombre() +\" \"+ u.getApellido());\n h.put(\"usuarioPropietario\", (u.esPropietario()) ? \"1\" : \"0\");\n \n // Nombre y titulo del reporte\n String nt[] = nombreReporte(tipoReporte, dia_actual).split(\":\");\n \n // Verifica si se considera una o todas las rutas\n // para reportes nivel_ocupacion, despachador, descripcion ruta,\n // cumplimiento ruta por conductor\n int ntp = Integer.parseInt(tipoReporte);\n if (ntp == 5 || ntp == 14 || ntp == 16) {\n if (!ruta.equals(\"0\")) { // Se elige una ruta\n nt[0] += \"_X1Ruta\";\n h.put(\"unaRuta\", \"t\");\n } else {\n h.put(\"unaRuta\", \"f\");\n }\n } \n if (ntp == 25) {\n String una_ruta = (!ruta.equals(\"0\")) ? \"t\" : \"f\";\n h.put(\"unaRuta\", una_ruta);\n }\n \n h.put(\"nombreReporte\", nt[0]);\n h.put(\"tituloReporte\", nt[1]);\n \n // Verifica si es reporte gerencia, gerencia x vehiculo para incluir\n // todos los vehiculos o todas las rutas\n ReporteUtil.incluirTotalidadRutas = false;\n ReporteUtil.incluirTotalidadVehiculos = false;\n ReporteUtil.incluirVehiculosPropietario = false;\n \n if (ntp == 15) {\n ReporteUtil.incluirTotalidadVehiculos = true; \n } else if (ntp == 18) {\n ReporteUtil.incluirTotalidadRutas = true;\n } else if (ntp == 11) {\n if (u.esPropietario()) { \n ReporteUtil.incluirVehiculosPropietario = true;\n } else {\n ReporteUtil.incluirTotalidadVehiculos = true; \n }\n }\n \n // Verifica si es reporte ruta x vehiculo para generar\n // reporte desde codigo\n if (ntp == 3) { \n ReporteUtil.desdeCodigo = true;\n } else {\n ReporteUtil.desdeCodigo = false;\n }\n \n // Verifica si es reporte ruta x vehiculo, vehiculo x ruta, despachador\n // para establecer un dia en parametro fecha y no un rango\n if (ntp == 3 || ntp == 11 || ntp == 16) {\n h.put(\"fechaFinal\", fechaInicio);\n } \n \n // No se necesitan fechas para reporte estadistico y descripcion ruta\n if (ntp == 13 || ntp == 14) {\n h.put(\"fechaInicio\", \"\");\n h.put(\"fechaFinal\", \"\");\n }\n \n // Eleccion de reportes gerencia segun empresa\n if (ntp == 15 || ntp == 18) {\n String empresa = u.getNombreEmpresa();\n String nombre_reporte = h.get(\"nombreReporte\");\n if (ReporteUtil.esEmpresa(empresa, ReporteUtil.EMPRESA_FUSACATAN)) {\n nombre_reporte += \"Fusa\";\n h.put(\"nombreReporte\", nombre_reporte);\n } \n }\n \n // Reportes de liquidacion\n if (ntp == 19 || ntp == 20 || ntp == 21 || ntp == 22) { \n h.put(\"fechaInicio\", fechaInicio + \" 00:00:00\");\n h.put(\"fechaFinal\", fechaFinal + \" 23:59:59\");\n \n //System.out.println(\"---> \"+EtiquetasLiquidacion.getEtq_total1() );\n /*SI EL REPORTE ES LIQUIDACION POR LIQUIDADOR SE MODIFICA EL NOMBRE SI LA EMPRESA ES DIFERENTE DE NEIVA*/\n if (ntp == 21) {\n if ((u.getNombreEmpresa().equalsIgnoreCase(\"FUSACATAN\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"TIERRA GRATA\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"Tierragrata\"))) {\n h.put(\"nombreReporte\", \"Reporte_LiquidacionXLiquidador_new_dcto\"); \n }\n }\n \n if (tipoArchivo.equals(\"w\")) {\n Usuario liquidador = UsuarioBD.getById(Restriction.getNumber(idLiquidador));\n if (liquidador != null) { \n String nom = liquidador.getNombre();\n String ape = liquidador.getApellido(); \n h.put(\"idUsuarioLiquidador\", idLiquidador);\n h.put(\"nombresUsuarioLiquidador\", ape + \" \" + nom);\n }\n } else {\n h.put(\"idUsuario\", idLiquidador);\n }\n } \n \n if (ntp == 23 || ntp == 24 || ntp == 25) {\n h.put(\"meta\", \"\" + meta);\n if (tipoArchivo.equals(\"r\")) {\n ReporteUtil.reporteWeb = true;\n }\n }\n \n if (ntp == 26 || ntp == 27) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n ReporteUtil.reporteWeb = true;\n } \n \n // ======================= Verificacion de campos ======================\n \n // Id, placa, numeroInterno vehiculo\n if (placa.indexOf(\",\") >= 0) {\n h.put(\"idVehiculo\", placa.split(\",\")[0]);\n h.put(\"placa\", placa.split(\",\")[1]);\n h.put(\"numInterno\", placa.split(\",\")[2]);\n h.put(\"capacidad\", placa.split(\",\")[3]);\n ReporteUtil.incluirVehiculo = true;\n } else\n ReporteUtil.incluirVehiculo = false;\n \n // Id de multiples vehiculos\n if (mplaca != \"\" || mplaca.indexOf(\",\") >= 0) {\n h.put(\"strVehiculos\", mplaca);\n h.put(\"strVehiculosPlaca\", id2placa(mplaca));\n ReporteUtil.incluirVehiculos = true;\n } else\n ReporteUtil.incluirVehiculos = false;\n \n // Id ruta y nombre ruta\n if (ruta.indexOf(\",\") >= 0) {\n String arrayRuta[] = ruta.split(\",\");\n h.put(\"idRuta\", arrayRuta[0]);\n h.put(\"nombreRuta\", arrayRuta[1]);\n ReporteUtil.incluirRuta = true;\n } else \n ReporteUtil.incluirRuta = false;\n \n // Id ruta \n if (mruta != \"\" || mruta.indexOf(\",\") >= 0) {\n h.put(\"strRutas\", mruta);\n ReporteUtil.incluirRutas = true;\n } else\n ReporteUtil.incluirRutas = false;\n \n // Id alarma\n if (malarma != \"\" || malarma.indexOf(\",\") >= 0) {\n h.put(\"strAlarmas\", malarma);\n ReporteUtil.incluirAlarma = true;\n } else \n ReporteUtil.incluirAlarma = false; \n \n // Id base, nombre\n if (base.indexOf(\",\") >= 0) {\n String arrayBase[] = base.split(\",\");\n h.put(\"idBase\", arrayBase[0]);\n h.put(\"nombreBase\", arrayBase[1]);\n ReporteUtil.incluirBase = true;\n } else \n ReporteUtil.incluirBase = false; \n \n // Se verifica y establece parametros de empresa\n Empresa emp = EmpresaBD.getById(u.getIdempresa()); \n if (emp != null) {\n h.put(\"nombreEmpresa\", emp.getNombre());\n h.put(\"nitEmpresa\", emp.getNit());\n h.put(\"idEmpresa\", \"\" + emp.getId());\n } else {\n request.setAttribute(\"msg\", \"* Usuario no tiene relaci&oacute;n y/o permisos adecuados con la empresa.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n int id_ruta = Restriction.getNumber(h.get(\"idRuta\")); \n String pplaca = \"'\" + h.get(\"placa\") + \"'\";\n \n // Se verifica si existe despacho para cruzar sus datos,\n // en caso contrario se extrae los datos unicamente desde tabla info. registradora\n if (ntp == 3) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, pplaca)) {\n ReporteUtil.desdeCodigo = true; \n h.put(\"nombreReporte\", \"reporte_RutaXVehiculo2\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n ReporteUtil.desdeCodigo = false; // Reporte con cruce despacho es dinamico\n h.put(\"cruzarDespacho\", \"1\"); \n }\n }\n if (ntp == 11) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, id_ruta)) {\n h.put(\"nombreReporte\", \"reporte_VehiculosXRuta\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n h.put(\"cruzarDespacho\", \"1\");\n }\n }\n \n if (ntp == 30) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n h.put(\"strConductores\", mconductor);\n ReporteUtil.reporteWeb = true;\n \n // Se verifica que exista una configuracion de desempeno activa\n ConfCalificacionConductor ccc = CalificacionConductorBD.confCalificacionConductor();\n if (ccc == null) {\n request.setAttribute(\"msg\", \"* No existe ninguna configuraci&oacute;n de desempe&ntilde;o registrada. Por favor registre una.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"result_error\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n }\n \n // Creacion de reporte\n JasperPrint print = null;\n if (tipoArchivo.equals(\"r\")) {\n \n // Reporte de solo lectura << PDF / Web >>\n ReporteUtil rpt;\n \n if (ReporteUtil.reporteWeb) { \n ReporteWeb rptw = new ReporteWeb(h, request, response);\n return rptw.generarReporteWeb(ntp); \n \n } else if (ReporteUtil.desdeCodigo) {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporteDesdeCodigo(Integer.parseInt(h.get(\"tipoReporte\")), simbolo_moneda);\n \n } else {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporte(simbolo_moneda);\n }\n \n } else {\n \n // Reporte editable << XLS >>\n ReporteUtilExcel rue = new ReporteUtilExcel();\n MakeExcel rpte = rue.crearReporte(ntp, dia_actual, h, u, etiquetas);\n \n // Restablece placa de reportes que no necesitan\n restablecerParametro(\"placa\", ntp, h);\n String splaca = h.get(\"placa\");\n splaca = (splaca == null || splaca == \"\") ? \"\" : \"_\" + splaca;\n String nombreArchivo = h.get(\"nombreReporte\") + splaca + \".xls\";\n \n //response.setContentType(\"application/vnd.ms-excel\");\n response.setContentType(\"application/ms-excel\"); \n response.setHeader(\"Content-Disposition\", \"attachment; filename=\"+nombreArchivo);\n \n HSSFWorkbook file = rpte.getExcelFile();\n file.write(response.getOutputStream()); \n response.flushBuffer();\n response.getOutputStream().close();\n \n return \"/app/reportes/generaReporte.jsp\";\n }\n \n // Impresion de reporte de solo lectura PDF\n if (print != null) {\n \n try { \n // Se comprueba existencia de datos en el reporte obtenido\n boolean hayDatos = true;\n List<JRPrintPage> pp = print.getPages(); \n if (pp.size() > 0) {\n JRPrintPage ppp = pp.get(0);\n if (ppp.getElements().size() <= 0) \n hayDatos = false; \n } else \n hayDatos = false;\n \n if (!hayDatos) {\n request.setAttribute(\"msg\", \"* Ning&uacute;n dato obtenido en el reporte.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"data_reporte\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n byte[] bytes = JasperExportManager.exportReportToPdf(print);\n \n // Inicia descarga del reporte\n response.setContentType(\"application/pdf\");\n response.setContentLength(bytes.length);\n ServletOutputStream outStream = response.getOutputStream();\n outStream.write(bytes, 0, bytes.length);\n outStream.flush();\n outStream.close();\n \n } catch (JRException e) {\n System.err.println(e);\n } catch (IOException e) {\n System.err.println(e);\n } \n }\n return \"/app/reportes/generaReporte.jsp\";\n }", "@Override\r\n\t\t\tpublic void reporte() {\n\r\n\t\t\t}", "@Test\n\tpublic void driverCreateReport() {\n\t\tfinal Object testingData[][] = {\n\t\t\t{\n\t\t\t\t\"2019/04/23\", \"example\", \"player1\", null\n\t\t\t},//1. All fine\n\t\t\t{\n\t\t\t\t\"2019/04/23\", \"\t\t\", \"player1\", ConstraintViolationException.class\n\t\t\t},//2. Description = blank\n\t\t\t{\n\t\t\t\t\"2019/04/23\", null, \"player1\", ConstraintViolationException.class\n\t\t\t},//3. Description = null\n\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateCreateReport(this.convertStringToDate((String) testingData[i][0]), (String) testingData[i][1], (String) testingData[i][2], (Class<?>) testingData[i][3]);\n\t}", "public String exportReportForUserInKinder(String reportFormat ,long iduser , long idkinder ) throws FileNotFoundException, JRException {\n String path = \"C:\\\\Users\\\\ons\\\\git\\\\Esprit-PiDev-4Sae6\" ;\n \n \n \n\t\tList<Bill> bill = (List<Bill>) Bill_rep.bill_byparent_kinder(iduser, idkinder);\n\t\tDbo_User this_User = usRep.findById(iduser).orElseThrow( \n \t\t\t()-> new RuntimeException());\n \tthis.bill = this_User.getFullName();\n \tthis.name_user=this_User.getFullName();\n for (Bill b : bill){\n \tLong amout_rest_to_pay = (long) (TOTAL_AMOUNT - b.getAmount());\n \tLong amount_already_payed = (long) b.getAmount();\n \tb.setAmount_payed(String.valueOf(amount_already_payed));\n \tb.setAmount_not_payed(String.valueOf(amout_rest_to_pay));\n \t\n \tb.setGardenpk(b.getGarden().getName());\n \tb.setUserpk(b.getUser().getFirstName() + \" \"+ b.getUser().getLastName());\n }\n \n \n \n //load file and compile it\n File file = ResourceUtils.getFile(\"classpath:userBill.xml\");\n JasperReport jasperReport = JasperCompileManager.compileReport(file.getAbsolutePath());\n JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(bill);\n Map<String, Object> parameters = new HashMap<>();\n parameters.put(\"createdBy\", \"Java Techie\");\n JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource);\n Date date = new Date();\n Format formatter = new SimpleDateFormat(\"YYYY-MM-dd_hh-mm-ss\");\n if (reportFormat.equalsIgnoreCase(\"pdf\")) { \n \t\n JasperExportManager.exportReportToPdfFile(jasperPrint, path + \"\\\\bill_User\"+\"_\"+this.name_user+\"_\"+ formatter.format(date) +\".pdf\");\n }\n\n return \"report generated in path : \" + path;\n }", "private void generateIncomingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Incoming Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallIncomings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}", "public void generarReporteFacturaPuntoVentas(String sAccionBusqueda,List<FacturaPuntoVenta> facturapuntoventasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVentaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"FacturaPuntoVentaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Factura Punto Ventas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", FacturaPuntoVentaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(FormaPagoPuntoVenta.class));\r\n\t\t\tclasses.add(new Classe(DetalleFacturaPuntoVenta.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tFacturaPuntoVentaLogic facturapuntoventaLogicAuxiliar=new FacturaPuntoVentaLogic();\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setDatosCliente(facturapuntoventaLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setFacturaPuntoVentas(facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.cargarRelacionesLoteForeignKeyFacturaPuntoVentaWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventasParaReportes=facturapuntoventaLogicAuxiliar.getFacturaPuntoVentas();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (FacturaPuntoVenta facturapuntoventa:facturapuntoventasParaReportes) {\r\n\t\t\t\t\t//\tfacturapuntoventaLogic.deepLoad(facturapuntoventa, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//facturapuntoventaLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileFormaPagoPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"FormaPagoPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_formapagopuntoventa\", reportFileFormaPagoPuntoVenta);\r\n\r\n\t\t\tInputStream reportFileDetalleFacturaPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"DetalleFacturaPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallefacturapuntoventa\", reportFileDetalleFacturaPuntoVenta);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceFacturaPuntoVenta=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceFacturaPuntoVenta=new JRBeanArrayDataSource(FacturaPuntoVentaJInternalFrame.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceFacturaPuntoVenta);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+FacturaPuntoVentaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+FacturaPuntoVentaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(FacturaPuntoVentaBean.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoFacturaPuntoVentaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void generarReporteEvaluacionProveedors(String sAccionBusqueda,List<EvaluacionProveedor> evaluacionproveedorsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"EvaluacionProveedor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"EvaluacionProveedorMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"EvaluacionProveedorMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"EvaluacionProveedor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Evaluacion Proveedores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", EvaluacionProveedorConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleEvaluacionProveedor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tEvaluacionProveedorLogic evaluacionproveedorLogicAuxiliar=new EvaluacionProveedorLogic();\r\n\t\t\t\t\tevaluacionproveedorLogicAuxiliar.setDatosCliente(evaluacionproveedorLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tevaluacionproveedorLogicAuxiliar.setEvaluacionProveedors(evaluacionproveedorsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tevaluacionproveedorLogicAuxiliar.cargarRelacionesLoteForeignKeyEvaluacionProveedorWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tevaluacionproveedorsParaReportes=evaluacionproveedorLogicAuxiliar.getEvaluacionProveedors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//evaluacionproveedorLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (EvaluacionProveedor evaluacionproveedor:evaluacionproveedorsParaReportes) {\r\n\t\t\t\t\t//\tevaluacionproveedorLogic.deepLoad(evaluacionproveedor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//evaluacionproveedorLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//evaluacionproveedorLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleEvaluacionProveedor = AuxiliarReportes.class.getResourceAsStream(\"DetalleEvaluacionProveedorDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleevaluacionproveedor\", reportFileDetalleEvaluacionProveedor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceEvaluacionProveedor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tEvaluacionProveedorConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tEvaluacionProveedorConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceEvaluacionProveedor=new JRBeanArrayDataSource(EvaluacionProveedorJInternalFrame.TraerEvaluacionProveedorBeans(evaluacionproveedorsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceEvaluacionProveedor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+EvaluacionProveedorConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+EvaluacionProveedorConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(EvaluacionProveedorBean.TraerEvaluacionProveedorBeans(evaluacionproveedorsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoEvaluacionProveedorActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesEvaluacionProveedors(sAccionBusqueda,sTipoArchivoReporte,evaluacionproveedorsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "private void contactReport() {\n reportText.appendText(\"Report of appointments per Contact\\n\\n\");\n for (Contact contact: Data.getContacts()) {\n\n reportText.appendText(\"\\n\\nContact:\" + contact.getContactName() + \"\\n\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getContact() == contact.getContactID()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n }", "private void startReport() {\r\n // initialize the HtmlReporter\r\n htmlReporter = new ExtentHtmlReporter(System.getProperty(\"user.dir\")\r\n + jsonConfig.get(\"extentReportPath\") + \"testReport.html\");\r\n\r\n //initialize ExtentReports and attach the HtmlReporter\r\n extent = new ExtentReports();\r\n extent.attachReporter(htmlReporter);\r\n\r\n //To add system or environment info by using the setSystemInfo method.\r\n extent.setSystemInfo(\"OS\", (String) jsonConfig.get(\"osValue\"));\r\n switch ((String) jsonConfig.get(\"browserToBeUsed\")) {\r\n case \"FF\":\r\n extent.setSystemInfo(\"Browser\", \"Firefox\");\r\n break;\r\n case \"CH\":\r\n extent.setSystemInfo(\"Browser\", \"Chrome\");\r\n break;\r\n case \"IE\":\r\n extent.setSystemInfo(\"Browser\", \"Internet Explorer\");\r\n break;\r\n }\r\n\r\n //configuration items to change the look and feel\r\n //add content, manage tests etc\r\n htmlReporter.config().setChartVisibilityOnOpen(true);\r\n htmlReporter.config().setDocumentTitle(\"Test Report\");\r\n htmlReporter.config().setReportName(\"Test Report\");\r\n htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP);\r\n htmlReporter.config().setTheme(Theme.STANDARD);\r\n htmlReporter.config().setTimeStampFormat(\"EEEE, MMMM dd, yyyy, hh:mm a '('zzz')'\");\r\n }", "public void displayReport() {\n\t\treport = new ReportFrame(fitnessProg);\n\t\treport.buildReport();\n\t\treport.setVisible(true);\n\t}", "public void generateReportPluviometer() {\r\n\t\tReportsController reportsController = ControladorContexto\r\n\t\t\t\t.getContextBean(ReportsController.class);\r\n\t\ttry {\r\n\t\t\tconsultPluviometer();\r\n\t\t\treportsController.generateReportPluviometer(pluviometerPojoList,\r\n\t\t\t\t\tyear);\r\n\t\t\tsetStartDateReport(null);\r\n\t\t\tsetEndDateReport(null);\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t}", "public void customerAppointmentsReport() {\n StringBuilder sb1 = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n StringBuilder sb3 = new StringBuilder();\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getCustomerAppointments();\n\n reportLabel.setText(\"Customer Appointments By Type and Month Report: \\n\\n\");\n //Appends Month to the customer report\n sb1.append(\"Month:\\n\");\n for (Reports reports : reportsList) {\n sb1.append(reports.getMonthName()).append(\"\\n\");\n }\n reportLabel1.setText(sb1.toString());\n //Appends Type to the customer report\n sb2.append(\"Type:\\n\");\n for (Reports reports : reportsList) {\n sb2.append(reports.getType()).append(\"\\n\");\n }\n reportLabel2.setText(sb2.toString());\n //Appends total count to the customer report\n sb3.append(\"Count:\\n\");\n for (Reports reports : reportsList) {\n sb3.append(reports.getAppointmentCount()).append(\"\\n\");\n }\n reportLabel3.setText(sb3.toString());\n }", "@Postprocess\n public void getReport() {\n try {\n BufferedWriter bufferWriter = new BufferedWriter(new FileWriter(logfile, false));\n if (!results.isEmpty()) {\n bufferWriter.write(\"===========================================================\\n\");\n bufferWriter.write(\"sys_milli,\\t\\tdb_micro,\\t\\ttime_diff\\n\");\n Collections.sort(results);\n for (MysqlheartbeatBean mhb : results) {\n bufferWriter.write(String.valueOf(mhb.getSysMilli()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro() - mhb.getSysMilli()) + \"\\n\");\n }\n bufferWriter.flush();\n }\n bufferWriter.close();\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"{0}: {1}\", new Object[]{toolName, ex.getMessage()});\n }\n }", "void outputReport(RandomAccessFile reportFile, boolean last) {\n\n String line1 = \"----+---------+----------+----------+---+----------+\" +\n \"----------+----------+----------+\" +\n \"---------------------------------------------+\";\n String line2 = \"----+---------+------------+----------+---------------------+\" +\n \"---------+----------+----------+--------------------+--------+\" +\n \"-----+-----+-----+\";\n\n if (dbg3) System.out.println(\"outputReport: station.getStationId() = *\" +\n station.getStationId(\"\") + \"*\");\n if (\"\".equals(station.getStationId(\"\"))) { // only done formats 01/02 -> survey data only\n\n //display the survey data }\n //ec.writeFileLine(reportFile, \"----+---------+----------+----------\" +\n // \"+---+----------+----------+----------+----------+----------\" +\n // \"------------------------------+\");\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \"dup.|Survey |Platform | \" +\n \"| | | | | | \" +\n \" |\");\n ec.writeFileLine(reportFile, \"code|Id |Name |Expedition\" +\n \"|Ins|Proj Name |Area Name |Domain |Platform |Notes \" +\n \" |\");\n ec.writeFileLine(reportFile, line1);\n\n ec.writeFileLine(reportFile, surveyStatus + \" |\" + //j24\n ec.frm(survey.getSurveyId(\"\"),9) + \"|\" +\n ec.frm(survey.getPlanam(\"\"),10) + \"|\" +\n ec.frm(survey.getExpnam(\"\"),10) + \"|\" +\n ec.frm(survey.getInstitute(\"\"),03) + \"|\" +\n ec.frm(survey.getPrjnam(\"\"),10) + \"|\" +\n ec.frm(inventory.getAreaname(\"\"),10)+ \"|\" +\n ec.frm(inventory.getDomain(\"\"),10) + \"|\" +\n ec.frm(\" \",10) + \"|\" +\n //survey.getPlatfm() + \"|\" +\n ec.frm(survey.getNotes1(\"\"),45) + \"|\");\n\n // write to station file - keep place for actual output\n if (loadFlag) {\n try {\n stnFile.writeBytes(\"\");\n headerPos1 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos2 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n headerPos3 = stnFile.getFilePointer();\n ec.writeFileLine(stnFile, ec.frm(\" \",80));\n } catch (Exception e) {\n ec.processError(e, thisClass, \"outputReport\", \"Header Pos Error\");\n } // try-catch\n } // if (loadFlag)\n\n\n if (surveyLoaded) { // display details of loaded survey //j24\n // get the old inventory record\n MrnInventory tInventory[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n ec.writeFileLine(reportFile, \"lod |\" +\n ec.frm(tSurvey[0].getSurveyId(\"\"),9) + \"|\" +\n ec.frm(tSurvey[0].getPlanam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getExpnam(\"\"),10) + \"|\" + //j24\n ec.frm(tSurvey[0].getInstitute(\"\"),03) + \"|\" + //j24\n ec.frm(tSurvey[0].getPrjnam(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getAreaname(\"\"),10) + \"|\" + //j24\n ec.frm(tInventory[0].getDomain(\"\"),10) + \"|\" + //j24\n ec.frm(\" \",10) + \"|\" +\n //tSurvey[0].getPlatfm() + \"|\" + //j24\n ec.frm(tSurvey[0].getNotes1(\"\"),45) + \"|\"); //j24\n } // if (survey_loaded)\n\n ec.writeFileLine(reportFile, line1);\n ec.writeFileLine(reportFile, \" \");\n\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \"dup.| | | |\" +\n \" | | | |\" +\n \" | | Records |\");\n ec.writeFileLine(reportFile, \"code| Surv Id | Station Id | StnNam |\" +\n \" Date Time GMT | Latitude| Longitude| Subdes(s)|\" +\n \" Sample depth range | StnDep | Tot.| O.K.| Rej |\");\n ec.writeFileLine(reportFile, line2);\n } else { // if (\"\".equals(station.getStationId(\"\")))\n\n\n if (dbg) System.out.println(\"<br>outputReport: tStation.length = \" +\n tStation.length);\n\n int stationSampleOKCount = stationSampleCount - stationSampleRejectCount;\n ec.writeFileLine(reportFile, stationStatusLD + \" |\" + //j24\n ec.frm(\" \",9) + \"|\" +\n ec.frm(station.getStationId(),12) + \"|\" +\n ec.frm(station.getStnnam(),10) + \"| \" +\n //station.getDatum + \"| \" +\n ec.frm(startDateTime,20) + \"|\" +\n ec.frm(station.getLatitude(),9,5) + \"|\" +\n ec.frm(station.getLongitude(),10,5) + \"|\" +\n ec.frm(subdes,10) + \"|\" +\n ec.frm(depthMin + \" to \" + depthMax,20) + \"|\" +\n ec.frm(station.getStndep(),8,2) + \"|\" +\n ec.frm(stationSampleCount,5) + \"|\" +\n ec.frm(stationSampleOKCount,5) + \"|\" +\n ec.frm(stationSampleRejectCount,5) + \"|\");\n if (!loadFlag) {\n ec.writeFileLine(workFile, ec.frm(station.getStationId(),12) +\n ec.frm(stationSampleCount,5));\n } // if (!loadFlag)\n\n if (stationExists) { // || (!\"new\".equals(stationStatusLD))) {\n for (int i = 0; i < tStation.length; i++) {\n int tmpRecordCount = 0;\n if (dataType == CURRENTS) {\n tmpRecordCount = currentsRecordCountArray[i];\n } else if (dataType == SEDIMENT) {\n tmpRecordCount = sedphyRecordCountArray[i];\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpRecordCount = watphyRecordCountArray[i];\n } // if (dataType == CURRENTS)\n\n String subdesLocal = subdesArray[i][0];\n for (int j = 1; j < MAX_SUBDES; j++) {\n subdesLocal += (!\"\".equals(subdesArray[i][j]) ?\n \"/\"+subdesArray[i][j] : \"\");\n } // for int (j = 1; j < MAX_SUBDES; j++)\n if (stationExistsArray[i]) {\n ec.writeFileLine(reportFile, stationStatusDB[i] + \" |\" +\n ec.frm(tStation[i].getSurveyId(),9) + \"|\" +\n ec.frm(tStation[i].getStationId(),12) + \"|\" +\n ec.frm(tStation[i].getStnnam(\"\"),10) + \"| \" +\n //tStation[i].getDateStart(\"\"), \"| \",\n ec.frm(spldattimArray[i],20) + \"|\" +\n ec.frm(tStation[i].getLatitude(),9,5) + \"|\" +\n ec.frm(tStation[i].getLongitude(),10,5) + \"|\" +\n //ec.frm(subdesArray[i],5) + \"|\" +\n ec.frm(subdesLocal,10) + \"|\" +\n ec.frm(loadedDepthMin[i] + \" to \" + loadedDepthMax[i],20) + \"|\" +\n ec.frm(tStation[i].getStndep(),8,2) + \"|\" +\n ec.frm(tmpRecordCount,5) + \"| | |\");\n } // if (stationExistsArray[i])\n } // for (int i = 0; i < tStation.length; i++)\n } // if (stationExists || (!\"new\".equals(stationStatusDB))\n ec.writeFileLine(reportFile, \"\");\n\n // write to station file\n if (loadFlag) {\n ec.writeFileLine(stnFile, \"'\" +\n ec.frm(station.getStationId(\"\"),12) + \"' '\" +\n station.getDateStart(\"\").substring(0,10) + \"' \" +\n ec.frm(station.getLatitude(),11,5) + \" \" +\n ec.frm(station.getLongitude(),11,5) + \" \" +\n ec.frm(ec.nullToNines(station.getStndep(),9999.0f),10,2) + \" '\" +\n ec.frm(station.getStnnam(\"\"),10) + \"'\");\n } // if (loadFlag)\n\n\n if (last) {\n //ec.writeFileLine(reportFile, \"last\");\n\n int sampleOKCount = sampleCount - sampleRejectCount;\n //ec.writeFileLine(reportFile, \"----+------------+----------\" +\n // \"+---------------------+---------+----------+-----+---\" +\n // \"-----------------+--------+-----------------+\");\n ec.writeFileLine(reportFile, line2);\n ec.writeFileLine(reportFile, \" ^\"); //j24//\n ec.writeFileLine(reportFile, \" |\"); //j24//\n ec.writeFileLine(reportFile, \" +--new = new record\"); //j24//\n ec.writeFileLine(reportFile, \" dup = new record is a duplicate record\"); //j24//\n //ec.writeFileLine(reportFile, \" lod = existing record\"); //j24//\n ec.writeFileLine(reportFile, \" did = duplicate station-id - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dis = duplicate station-id - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dia = duplicate station-id - different SUBDES: data added\");//u02//\n ec.writeFileLine(reportFile, \" dij = ignored station - matched existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dip = data records replaced for existing station record - did\"); //k46//\n ec.writeFileLine(reportFile, \" dsd = duplicate station record - different SUBDES\"); //k46//\n ec.writeFileLine(reportFile, \" dss = duplicate station record - same SUBDES\"); //u02//\n ec.writeFileLine(reportFile, \" dsa = duplicate station record - different SUBDES: data added\");\n ec.writeFileLine(reportFile, \" dsj = ignored station - matched existing station record - dsd\"); //k46//\n ec.writeFileLine(reportFile, \" dsp = data records replaced for existing station record - dsd\"); //k46//\n\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"This data was \" +\n (loadFlag ? \"loaded\" : \"checked\") + \" with the following ranges:\");\n ec.writeFileLine(reportFile, \" Area: \" + areaRangeVal + \" (decimal degrees)\");\n ec.writeFileLine(reportFile, \" Time: \" + timeRangeVal + \" (minutes)\");\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n ec.writeFileLine(reportFile, \"Closing statistics - survey_id: \" +\n survey.getSurveyId());\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of lines - \" +\n ec.frm(lineCount,6));\n ec.writeFileLine(reportFile, \" Fatal Errors - \" +\n ec.frm(fatalCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of stations - \" +\n ec.frm(stationCount,6));\n ec.writeFileLine(reportFile, \" New - \" +\n ec.frm(newStationCount,6));\n ec.writeFileLine(reportFile, \" Dup - \" +\n ec.frm((stationCount-newStationCount),6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station-id (DI)\");\n ec.writeFileLine(reportFile, \" DI: diff SUBDES (DID) - \" +\n ec.frm(didCount,6));\n ec.writeFileLine(reportFile, \" DI: same SUBDES (DIS) - \" +\n ec.frm(disCount,6));\n ec.writeFileLine(reportFile, \" DI: diff SUBDES added (DIA) - \" +\n ec.frm(diaCount,6));\n ec.writeFileLine(reportFile, \" DI's Rejected (DIJ) - \" +\n ec.frm(dijCount,6));\n ec.writeFileLine(reportFile, \" DI's Replaced (DIP) - \" +\n ec.frm(dipCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Duplicate Station (DS)\");\n ec.writeFileLine(reportFile, \" DS: diff SUBDES (DSD) - \" +\n ec.frm(dsdCount,6));\n ec.writeFileLine(reportFile, \" DS: same SUBDES (DSS) - \" +\n ec.frm(dssCount,6));\n ec.writeFileLine(reportFile, \" DS: diff SUBDES added (DSA) - \" +\n ec.frm(dsaCount,6));\n ec.writeFileLine(reportFile, \" DS's Rejected (DSJ) - \" +\n ec.frm(dsjCount,6));\n ec.writeFileLine(reportFile, \" DS's Replaced (DSP) - \" +\n ec.frm(dspCount,6));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \" Number of Samples - \" +\n ec.frm(sampleCount,6));\n ec.writeFileLine(reportFile, \" OK - \" +\n ec.frm(sampleOKCount,6));\n ec.writeFileLine(reportFile, \" Rejected - \" +\n ec.frm(sampleRejectCount,6));\n ec.writeFileLine(reportFile, \" \");\n java.text.SimpleDateFormat formatter =\n new java.text.SimpleDateFormat (\"yyyy-MM-dd\");\n ec.writeFileLine(reportFile, \" date range - \" +\n formatter.format(dateMin) + \" to \" + formatter.format(dateMax));\n ec.writeFileLine(reportFile, \" latitude range - \" +\n ec.frm(latitudeMin,10,5) + \" to \" + ec.frm(latitudeMax,10,5));\n ec.writeFileLine(reportFile, \" longitude range - \" +\n ec.frm(longitudeMin,10,5) + \" to \" + ec.frm(longitudeMax,10,5));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n\n if (loadFlag) {\n ec.writeFileLine(reportFile, \" \");\n\n if (fatalCount > 0) {\n ec.writeFileLine(reportFile,\n \" THERE ARE FATAL ERRORS - THIS LOAD IS UNSUCCESSFUL \");\n ec.writeFileLine(reportFile,\n \" ================================================== \");\n ec.writeFileLine(reportFile,\n \" As some data has been loaded, it is necessary to remove it\\n\" +\n \" by running the 'Delete a survey' option on the SADCO website\\n\" +\n \" located in the 'Marine Database: Admin / Load Data' menu options\");\n } else { // if (fatalCount > 0)\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n ec.writeFileLine(reportFile, \" LOAD SUCCESSFUL \");\n ec.writeFileLine(reportFile, \" =============== \");\n ec.writeFileLine(reportFile, \" date loaded: \" +\n formatter.format(loadDate));\n\n if (dataType != CURRENTS) {\n ec.writeFileLine(reportFile, \" \" + DATA_TYPE[dataType] +\n \" code range - \" + dataCodeStart + \" to \" + dataCodeEnd);\n } // if (dataType != CURRENTS)\n\n ec.writeFileLine(reportFile, \" \");\n if (\"\".equals(passkey)) {\n ec.writeFileLine(reportFile, \" This data is NOT flagged \");\n } else {\n ec.writeFileLine(reportFile, \" This data is FLAGGED \");\n } // if (p_station.passkey is NULL)\n } // if (fatalCount > 0)\n\n // write header to station file\n String lineA =\n \"'MARINE' \" +\n ec.frm((int) latitudeMin,4) +\n ec.frm((int) (latitudeMax+1f),4) +\n ec.frm((int) longitudeMin,4) +\n ec.frm((int) (longitudeMax+1f),4) + \" '\" +\n dateMin.toString().substring(0,10) + \"' '\" +\n dateMax.toString().substring(0,10) + \"' 'STATIONS'\";\n String lineB = \"'\" + survey.getSurveyId(\"\") +\n \"' \" + stationCount + \" '\" +\n platformName + \"' '\" +\n projectName + \"' '\" +\n expeditionName + \"'\";\n String lineC = \"'\" + instituteName + \"'\";\n try {\n stnFile.seek(headerPos1);\n stnFile.writeBytes(lineA);\n stnFile.seek(headerPos2);\n stnFile.writeBytes(lineB);\n stnFile.seek(headerPos3);\n stnFile.writeBytes(lineC);\n } catch (Exception e) {\n System.out.println(\"<br>\" + thisClass +\n \".printHeader: Write Error: \" + e.getMessage());\n e.printStackTrace();\n } // try-catch\n\n } // if (loadflag)\n\n Timestamp loadDate = new Timestamp(new java.util.Date().getTime());\n String text = (loadFlag ? \"loaded\" : \"checked\");\n ec.writeFileLine(reportFile, \" date \" + text + \": \" +\n formatter.format(loadDate));\n ec.writeFileLine(reportFile, \" \");\n ec.writeFileLine(reportFile, \"----------------------------\" +\n \"-----------------------------------------------------\" +\n \"------------------------------\");\n } // if (last)\n\n } // if (\"\".equals(station.getStationId(\"\")))\n\n\n //ec.writeFileLine(reportFile, message);\n //if (dbg) System.out.println(\"outputReport: message = \" + message);\n // output to screen or file\n }", "public void generarReportePagosAutorizadoss(String sAccionBusqueda,List<PagosAutorizados> pagosautorizadossParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizadosMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PagosAutorizadosMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Pagos Autorizadoses\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PagosAutorizadosConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePagosAutorizados=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePagosAutorizados=new JRBeanArrayDataSource(PagosAutorizadosJInternalFrame.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePagosAutorizados);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PagosAutorizadosConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PagosAutorizadosConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PagosAutorizadosBean.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPagosAutorizadosActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public DocumentReport() {\n\n\t\tLOGGER.info(\"Create Document Processor\");\n\n\t\tresultsXMLWriter = new ResultsXMLWriter();\n\t\tgaugesWriter = new GaugeJSONWriter();\n\t\tgaugesWriter.setMode(processMode.toString());\n\t\tgaugesXMLWriter = new GaugeXMLWriter();\n\t\tstylesXMLWriter = new StylesXMLWriter();\n\t\tstylesWriter = new StylesJSONWriter();\n\t\tstylesWriter.setMode(processMode.toString());\n\t\t\n\t\txPathWriter = new XPathJSONWriter();\n\t\txPathDotWriter = new DotWriter();\n\t\txPathXMLWriter = new XMLWriter();\n\t\txPathWriter.setMode(processMode.toString());\n\t\t\n//\t\tdotWriter = new DotWriter();\n\t}", "public void fnCreateSummaryReport(){\r\n //Setting counter value\r\n g_iTCPassed = 0;\r\n g_iTestCaseNo = 0;\r\n g_SummaryStartTime = new Date();\r\n \r\n\t\ttry \r\n\t\t{ \r\n\t //Open the test case report for writing \r\n\t foutStrm = new FileOutputStream(Environment.get(\"HTMLREPORTSPATH\")+ \"\\\\SummaryReport.html\", true);\r\n\t \r\n\t\t\t//Close the html file\r\n\t new PrintStream(foutStrm).println(\"<HTML><BODY><TABLE BORDER=0 CELLPADDING=3 CELLSPACING=1 WIDTH=100% BGCOLOR=BLACK>\");\r\n\t\t\tnew PrintStream(foutStrm).println(\"<TR><TD WIDTH=90% ALIGN=CENTER BGCOLOR=WHITE><FONT FACE=VERDANA COLOR=ORANGE SIZE=3><B>Tieto NetBank automation</B></FONT></TD></TR><TR><TD ALIGN=CENTER BGCOLOR=ORANGE><FONT FACE=VERDANA COLOR=WHITE SIZE=3><B>Selenium Framework Reporting</B></FONT></TD></TR></TABLE><TABLE CELLPADDING=3 WIDTH=100%><TR height=30><TD WIDTH=100% ALIGN=CENTER BGCOLOR=WHITE><FONT FACE=VERDANA COLOR=//0073C5 SIZE=2><B>&nbsp; Automation Result : \" + new Date() + \" on Machine \" + InetAddress.getLocalHost().getHostName() + \" by user \" + System.getProperty(\"user.name\") + \" on Browser \" + driverType +\"</B></FONT></TD></TR><TR HEIGHT=5></TR></TABLE>\"); \r\n\t new PrintStream(foutStrm).println(\"<TABLE CELLPADDING=3 CELLSPACING=1 WIDTH=100%>\"); \r\n\t new PrintStream(foutStrm).println(\"<TR COLS=6 BGCOLOR=ORANGE><TD WIDTH=10%><FONT FACE=VERDANA COLOR=BLACK SIZE=2><B>TC No.</B></FONT></TD><TD WIDTH=60%><FONT FACE=VERDANA COLOR=BLACK SIZE=2><B>Test Name</B></FONT></TD><TD BGCOLOR=ORANGE WIDTH=15%><FONT FACE=VERDANA COLOR=BLACK SIZE=2><B>Status</B></FONT></TD><TD WIDTH=15%><FONT FACE=VERDANA COLOR=BLACK SIZE=2><B>Test Duration</B></FONT></TD></TR>\");\r\n\t \r\n\t //Close the object\r\n\t foutStrm.close();\r\n\t\t} catch (IOException io) \r\n\t\t{\r\n\t\t\tio.printStackTrace();\r\n\t\t} \r\n\t\t\r\n\t\tfoutStrm = null;\r\n }", "@Override\n public void reportSmartDashboard() {\n }", "public BeansReportWrittenExamination() {\n\t\tsuper();\n\t}", "public void generarReporteTablaAmortiDetalles(String sAccionBusqueda,List<TablaAmortiDetalle> tablaamortidetallesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalleMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TablaAmortiDetalleMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tabla Amortizacion Detalles\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TablaAmortiDetalleConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTablaAmortiDetalle=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTablaAmortiDetalle=new JRBeanArrayDataSource(TablaAmortiDetalleJInternalFrame.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTablaAmortiDetalle);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TablaAmortiDetalleConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TablaAmortiDetalleConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TablaAmortiDetalleBean.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTablaAmortiDetalleActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void generateTreatmentReports() throws IOException {\r\n\r\n try {\r\n Connection conn = null;\r\n FileWriter fw = new FileWriter(\"treatment.csv\");\r\n mainController iTreat = new mainController();\r\n\r\n conn = iTreat.connectTheDB();\r\n\r\n //msql statement for getting treatment information\r\n //inner joins medicine, department and disease\r\n //uses treatments medicine id to get medicines name\r\n //uses treatments department id to get department name\r\n //uses treatments disease id to ge the name of the dieases\r\n\r\n String insertTreat = \"select treatment.treatmentID, treatment.treatmentName, medicine.medicineName, department.departmentName, disease.diseaseName\\n\" +\r\n \"from treatment inner join medicine on treatment.medicineID = medicine.medicineID\\n\" +\r\n \"inner join department on treatment.departmentID = department.departmentID\\n\" +\r\n \"inner join disease on treatment.diseaseID = disease.diseaseID group by treatmentName ASC;\";\r\n\r\n Statement stmt = conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(insertTreat);\r\n while (rs.next()) {\r\n fw.append(rs.getString(1));\r\n fw.append(',');\r\n fw.append(rs.getString(2));\r\n fw.append(',');\r\n fw.append(rs.getString(3));\r\n fw.append(',');\r\n fw.append(rs.getString(4));\r\n fw.append(',');\r\n fw.append(rs.getString(5));\r\n fw.append('\\n');\r\n }\r\n fw.flush();\r\n fw.close();\r\n conn.close();\r\n System.out.println(\"CSV File is created successfully for treatment information.\");\r\n\r\n\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n }", "@Override\n public void report() {\n\n try {\n File mFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/metrics.txt\");\n File eFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/latency_throughput.txt\");\n if (!mFile.exists()) {\n mFile.createNewFile();\n }\n if (!eFile.exists()) {\n eFile.createNewFile();\n }\n\n FileOutputStream mFileOut = new FileOutputStream(mFile, true);\n FileOutputStream eFileOut = new FileOutputStream(eFile, true);\n\n StringBuilder builder = new StringBuilder((int) (this.previousSize * 1.1D));\n StringBuilder eBuilder = new StringBuilder((int) (this.previousSize * 1.1D));\n\n// Instant now = Instant.now();\n LocalDateTime now = LocalDateTime.now();\n\n builder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n eBuilder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n\n builder.append(lineSeparator).append(\"---------- Counters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- records counter ----------\").append(lineSeparator);\n for (Map.Entry metric : counters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n if (( (String)metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Gauges ----------\").append(lineSeparator);\n for (Map.Entry metric : gauges.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Gauge) metric.getKey()).getValue()).append(lineSeparator);\n }\n\n builder.append(lineSeparator).append(\"---------- Meters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- throughput ----------\").append(lineSeparator);\n for (Map.Entry metric : meters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n if (((String) metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Histograms ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- lantency ----------\").append(lineSeparator);\n for (Map.Entry metric : histograms.entrySet()) {\n HistogramStatistics stats = ((Histogram) metric.getKey()).getStatistics();\n builder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n eBuilder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n }\n\n mFileOut.write(builder.toString().getBytes());\n eFileOut.write(eBuilder.toString().getBytes());\n mFileOut.flush();\n eFileOut.flush();\n mFileOut.close();\n eFileOut.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void getReport(EntranceTestMaster bean, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, ServletContext context) {\n\t\tCrystalReport cr=new CrystalReport();\r\n\t\tString path=\"org\\\\paradyne\\\\rpt\\\\recruitment\\\\EntranceTestMaster.rpt\";\r\n\t\tcr.createReport(request, response, context,session, path, \"\");\r\n\t}", "public void createTemplate(ReportContent reportContent, String fileName) {\n\n ArrayList<Detail> detailList = reportContent.getDetails();\n\n // create Test Data\n HashMap<String, Object> parameter = createBasicParameters(reportContent);\n\n // read and modify file\n \n \n File file = Main_Gui.openFile(\"report_template.jrxml\", \"report template\", \".jrxml\");\n\n try {\n // define namespace of the jrxml-file and document\n Namespace ns = Namespace\n .getNamespace(\"http://jasperreports.sourceforge.net/jasperreports\");\n Document doc = new SAXBuilder(false).build(file);\n\n // set Color of the result conistency ratio (red, if Cr is higher than\n // the critical CR --> else: black)\n @SuppressWarnings(\"unchecked\")\n List<Element> list = doc.getRootElement().getChild(\"detail\", ns)\n .getChild(\"band\", ns).getChildren();\n\n \n for (Element element : list) {\n\n if (element.getName().equals(\"textField\")\n && element.getChild(\"textFieldExpression\", ns)\n .getText()\n .equals(\"$P{RESULT_CONSISTENCY_RATIO}\")) {\n\n setConsistencyRatioColor(\n reportContent.getResultConsistencyRatio(), element,\n ns);\n }\n }\n\n // addDetail band(s)\n for (Detail detail : detailList) {\n this.addDetailFrame(doc, ns, parameter, detail);\n\n }\n\n // remove detail pattern band (last band under \"detail\" in \"report_template.jrxml\")\n doc.getRootElement().getChild(\"detail\", ns).getChildren().remove(4);\n\n // create output of the modified template \n XMLOutputter out = new XMLOutputter();\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n out.output(doc, baos);\n\n ByteArrayInputStream bais = new ByteArrayInputStream(\n baos.toByteArray());\n\n // -----------\n // --JASPER\n // ----------\n \n // compile, fill and export the report as PDF-file to the given path\n JasperReport jasperReport = JasperCompileManager\n .compileReport(bais);\n\n JasperPrint jasperPrint = JasperFillManager.fillReport(\n jasperReport, parameter,\n new net.sf.jasperreports.engine.JREmptyDataSource(1));\n\n JasperExportManager.exportReportToPdfFile(jasperPrint, fileName);\n\n } catch (JRException e) {\n // print out standard exception\n e.printStackTrace();\n } catch (JDOMException e1) {\n // print out standard exception\n e1.printStackTrace();\n } catch (IOException e1) {\n // print out standard exception\n \n //!!NOT YET IMPLEMENTED!!:\n //show user dialog, if file which shall be overwritten is still opened.\n \n e1.printStackTrace();\n }\n\n }", "public void generarReporteCostoGastoImpors(String sAccionBusqueda,List<CostoGastoImpor> costogastoimporsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"CostoGastoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CostoGastoImporMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"CostoGastoImporMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CostoGastoImpor\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Costo Gasto Impores\");\t\t\r\n\t\tparameters.put(\"busquedapor\", CostoGastoImporConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleLiquidacionImpor.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tCostoGastoImporLogic costogastoimporLogicAuxiliar=new CostoGastoImporLogic();\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.setDatosCliente(costogastoimporLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.setCostoGastoImpors(costogastoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tcostogastoimporLogicAuxiliar.cargarRelacionesLoteForeignKeyCostoGastoImporWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tcostogastoimporsParaReportes=costogastoimporLogicAuxiliar.getCostoGastoImpors();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//costogastoimporLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (CostoGastoImpor costogastoimpor:costogastoimporsParaReportes) {\r\n\t\t\t\t\t//\tcostogastoimporLogic.deepLoad(costogastoimpor, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//costogastoimporLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//costogastoimporLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleLiquidacionImpor = AuxiliarReportes.class.getResourceAsStream(\"DetalleLiquidacionImporDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detalleliquidacionimpor\", reportFileDetalleLiquidacionImpor);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceCostoGastoImpor=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tCostoGastoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tCostoGastoImporConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceCostoGastoImpor=new JRBeanArrayDataSource(CostoGastoImporJInternalFrame.TraerCostoGastoImporBeans(costogastoimporsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceCostoGastoImpor);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+CostoGastoImporConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+CostoGastoImporConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(CostoGastoImporBean.TraerCostoGastoImporBeans(costogastoimporsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoCostoGastoImporActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesCostoGastoImpors(sAccionBusqueda,sTipoArchivoReporte,costogastoimporsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "void exportarLog() {\n try {\n JasperPrint rU = null;\n HashMap map = new HashMap();\n\n String arquivoJasper = \"/Sistema/relatorios/relatorioAcessos.jasper\";\n try{\n rU = JasperFillManager.fillReport(arquivoJasper, map, parametrosNS.con);\n }catch(Exception e){ \n JOptionPane.showMessageDialog(null, \"visualizar relatorio \" + e);\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n JasperViewer.viewReport(rU, false); \n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"o erro foi ao gerar relatorio \" + e);\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public String report() throws Exception{\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tif(bulkForm16.getEmpId().equals(\"\")){\r\n\t\t\tString str=model.generateUrlList(request, response,bulkForm16);\r\n\t\t\tif(!str.equals(\"1\"))\r\n\t\t\t\taddActionMessage(str);\r\n\t\t\treturn SUCCESS;\r\n\t\t} //end of if\r\n\t\telse{\r\n\t\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\t\tmodel.terminate();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private void writeFinalReports() {\n\t\tSystem.out.println(\"Printing data to output files ...\");\n\t\twritePropertyData();\n\t\twriteClassData();\n\t\tSystem.out.println(\"Finished printing data.\");\n\t}", "public void generarReporteAnalisisTransaClientes(String sAccionBusqueda,List<AnalisisTransaCliente> analisistransaclientesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaClienteMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"AnalisisTransaClienteMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Analisis Transaccion Clientees\");\t\t\r\n\t\tparameters.put(\"busquedapor\", AnalisisTransaClienteConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceAnalisisTransaCliente=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceAnalisisTransaCliente=new JRBeanArrayDataSource(AnalisisTransaClienteJInternalFrame.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceAnalisisTransaCliente);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+AnalisisTransaClienteConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+AnalisisTransaClienteConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(AnalisisTransaClienteBean.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoAnalisisTransaClienteActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "@Test\n\tpublic void generateTotalsReport(){\n\t\t\t\tWebDriver driver = new FirefoxDriver();\n\t\t\t\t// Alternatively the same thing can be done like this\n\t\t // driver.get(\"http://www.google.com\");\n\t\t\t\tdriver.navigate().to(determineUrl());\n\t\t\t\t// Find the text input element by its name\n\t\t\t\tWebElement user_name = driver.findElement(By.id(\"user_email\"));\n\t\t\t\tuser_name.sendKeys(user);\n\t\t\t\t\n\t\t\t\tWebElement password = driver.findElement(By.id(\"user_password\"));\n\t\t\t\tpassword.sendKeys(password_login);\n\t\t\t\tpassword.submit();\n\t\t\t\t\n\t\t\t\tWebElement select_venue = driver.findElement(By.id(\"change_venue\"));\n\t\t\t\tselect_venue.sendKeys(venue);\n\t\t\t\tselect_venue.submit();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tWebElement report = driver.findElement(By.linkText(\"Reporting\"));\n\t\t\t\treport.click();\n\t\t\t\t\n\t\t\t\tWebElement select_report = driver.findElement(By.id(\"report_type_chooser\"));\n\t\t\t\tselect_report.sendKeys(\"Totals Report\");\n\t\t\t\tWebElement select_event = driver.findElement(By.id(\"report_event\"));\n\t\t\t\tselect_event.sendKeys(event);\n\t\t\t\tselect_event.submit();\n\t\t\t\tdriver.close();\n\t\t\n\t}", "public void generateReport() throws InvalidEmailException, SQLException {\n\t\tSystem.out.println(\"=====GENERATE REPORT=====\");\n\t\tSystem.out.println(\"1.Fetch patient details by email:\");\n\t\tSystem.out.println(\"2.Fetch patient details by phone:\");\n\t\tSystem.out.println(\"Enter your choice:\");\n\t\tint choice = Integer.parseInt(sc.nextLine());\n\t\t// DatabaseConn viewDetails = new DatabaseConn();\n\t\tArrayList<String> list=new ArrayList<String>();\n\t\tdo {\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Enter Email\");\n\t\t\t\tString email = sc.nextLine();\n\n\t\t\t\tSystem.out.println(\"Enter testDate:\");\n\t\t\t\tString testDate = sc.nextLine();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Enter phone no:\");\n\t\t\t\tString phone = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter testDate:\");\n\t\t\t\ttestDate = sc.nextLine();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t} while (choice != 3);\n\n\t}", "public void generateReport(List<XmlSuite> xmlSuites, List<ISuite>suites, \r\n\t\tString outputDirectory){//creating a method that takes three arguments,\r\n\t//to generate a report, arguments list requirements, \r\n\t//using a mechanism called List, which gets the array input\r\n\t//script will go back to xml suites, and look for \"suites\" which are the classes we created\r\n\t//we will create an xml file to contain all the classes within our test cases\r\n\t//PASS, FAIL, or SKIP will be string outputs; String outputDirectory\r\n\t//XML Suite: big time testing based on testing type\r\n\t//ISuite: pages we are working on; classes created to perform action; under test folder\r\n\t\r\n\textent = new ExtentReports(outputDirectory + File.separator\r\n\t\t\t+ \"Extent.html\", true);\r\n\t//creating an object for extent report, creating a virtual object to save all output to save all results\r\n\t//as a string, file seperator is not needed, it doesn't matter how u received the result\r\n\t//seperate them and consolidate the results\r\n\t//telling you how to save the file name, html is easy to open on any device and lightweight\r\n\t//outputDirectory: SKIP, PASS, FAIL\r\n\t//the reason for boolean option: if yu receive results, generate report//if yu dont then dont generate\r\n\tfor(ISuite suite : suites){//for loop is created\r\n\t\t//map obtains a key value, not duplicate, and then maps it to one location, which is the\r\n\t\t//extent report\r\n\t\t//an interface in java, between key value and location (between status and extent report)\r\n\t\t//will make sure how to map and seperate results under each class\r\n\t\tMap<String, ISuiteResult>result = suite.getResults();\r\n\t\r\n\tfor(ISuiteResult r : result.values()){\r\n\t\tITestContext context =r.getTestContext();//for each of the classes, create log status\r\n\t\t//test context: script that we are running, results from it\r\n\t\t//: is a conditional operator, which lists the conditions, which lists out the conditions\r\n\t\t//script should be able to run \r\n\t\t//one suite, or multiple suites in one shot\r\n\t\t//making context\r\n\t\t\r\n\t\t\r\n\t\tbuildTestNo(context.getPassedTests(), LogStatus.PASS);\r\n\t\tbuildTestNo(context.getFailedTests(), LogStatus.FAIL);\r\n\t\t//retrieving status using results/context\r\n\t\tbuildTestNo(context.getSkippedTests(), LogStatus.SKIP);\r\n\t\t\t\r\n\t}\r\n}\r\nextent.flush();//take results and place on html file\r\nextent.close();\r\n\r\n}", "@RequestMapping(\"/customer/customerReport\")\n public String viewCustomerReport() {\n Connection connection = null;\n try {\n connection = DriverManager.getConnection(\"jdbc:h2:tcp://localhost/~/test\", \"sa\", \"\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n JasperReportBuilder report = DynamicReports.report(); // A new report\n\n StyleBuilder boldStyle = stl.style().bold();\n StyleBuilder boldCenteredStyle = stl.style(boldStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n StyleBuilder columnTitleStyle = stl.style(boldCenteredStyle)\n .setBorder(stl.pen1Point())\n .setBackgroundColor(Color.LIGHT_GRAY);\n\n\n\n report\n .setColumnTitleStyle(columnTitleStyle)\n .highlightDetailEvenRows()\n .columns(\n Columns.column(\"Id\", \"customerId\", DataTypes.integerType()),\n Columns.column(\"First Name\", \"firstName\", DataTypes.stringType()),\n Columns.column(\"SecondName\", \"secondName\", DataTypes.stringType()),\n Columns.column(\"Email Address\", \"email\", DataTypes.stringType()),\n Columns.column(\"Phone No\", \"phoneNo\", DataTypes.stringType()),\n Columns.column(\"Street Name\", \"streetName\", DataTypes.stringType()),\n Columns.column(\"House Name\", \"houseName\", DataTypes.stringType()),\n Columns.column(\"City\", \"city\", DataTypes.stringType()),\n Columns.column(\"County\", \"county\", DataTypes.stringType()),\n Columns.column(\"Postcode\", \"postCode\", DataTypes.stringType()))\n .title( //title of the report\n Components.text(\"Customer Report\")\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setStyle(boldCenteredStyle))\n .pageFooter(Components.pageXofY().setStyle(boldCenteredStyle)) //Show page number on the page footer\n .setDataSource(\"SELECT customerId, firstName, secondName, email, phoneNo, streetName, houseName, city, county, postCode FROM customer\", connection);\n\n try {\n // Show the report\n report.show();\n\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n //export the report to a pdf file\n report.toPdf(new FileOutputStream(\"c:/report.pdf\"));\n } catch (DRException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n return \"customerReport\";\n }", "public boolean create(List loads, Faculties instructor, Integer overload){\n try {\n /* User home directory location */\n String userHomeDirectory = System.getProperty(\"user.home\");\n /* Output file location */\n Date date = new Date();\n\n // *** same for the format String below\n SimpleDateFormat dt1 = new SimpleDateFormat(\"yyyy_MM_dd\");\n String f = dt1.format(date)+\"_\"+date.getTime();\n String outputFile = userHomeDirectory + File.separatorChar + f+\"_FacultyLoadReport.pdf\";\n List<LoadItem> loadData = new ArrayList<LoadItem>();\n \n for(int i = 0 ; i < loads.size(); i++){\n TeachersLoadings load = (TeachersLoadings) loads.get(i);\n LoadItem item = new LoadItem();\n Subjects subject = load.getSubjects();\n Integer unitLoad = subject.getLabHours() + ( subject.getLecHours() /3);\n unitLoad = unitLoad * load.getTimes();\n item.setLabHrs(subject.getLabHours() * load.getTimes());\n item.setLecHrs(subject.getLecHours() * load.getTimes());\n item.setLoad(unitLoad);\n item.setSubject(subject.getCode());\n loadData.add(item);\n \n }\n \n \n \n\n \n /* Convert List to JRBeanCollectionDataSource */\n JRBeanCollectionDataSource itemsJRBean = new JRBeanCollectionDataSource(loadData);\n\n /* Map to hold Jasper report Parameters */\n Map<String, Object> parameters = new HashMap<String, Object>();\n parameters.put(\"LoadDataList\", itemsJRBean);\n parameters.put(\"Instructor\", \"\" + instructor.getFullname());\n parameters.put(\"Overload\", \"\"+overload);\n parameters.put(\"RegularLoad\", \"\"+instructor.getRegularLoad());\n\n\n\n /* Using compiled version(.jasper) of Jasper report to generate PDF */\n JasperPrint jasperPrint = JasperFillManager.fillReport(\"C:\\\\Users\\\\ANGGIE\\\\Documents\\\\NetBeansProjects\\\\scheduler\\\\scheduler\\\\src\\\\main\\\\java\\\\com\\\\bisu\\\\report\\\\FacultyLoad.jasper\", parameters, new JREmptyDataSource());\n\n /* outputStream to create PDF */\n OutputStream outputStream = new FileOutputStream(new File(outputFile));\n /* Write content to PDF file */\n JasperExportManager.exportReportToPdfStream(jasperPrint, outputStream);\n\n if (Desktop.isDesktopSupported()) {\n File myFile = new File(outputFile);\n Desktop.getDesktop().open(myFile);\n\n }\n } catch (JRException ex) {\n ex.printStackTrace();\n } catch (FileNotFoundException ex) {\n ex.printStackTrace();\n } catch (IOException ex) {\n // no application registered for PDFs\n }\n return true;\n\n \n }", "public void generarReporteUtilidadTipoPrecios(String sAccionBusqueda,List<UtilidadTipoPrecio> utilidadtipopreciosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecio\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"UtilidadTipoPrecioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"UtilidadTipoPrecio\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Utilidad Tipo Precioes\");\t\t\r\n\t\tparameters.put(\"busquedapor\", UtilidadTipoPrecioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceUtilidadTipoPrecio=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceUtilidadTipoPrecio=new JRBeanArrayDataSource(UtilidadTipoPrecioJInternalFrame.TraerUtilidadTipoPrecioBeans(utilidadtipopreciosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceUtilidadTipoPrecio);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+UtilidadTipoPrecioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+UtilidadTipoPrecioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(UtilidadTipoPrecioBean.TraerUtilidadTipoPrecioBeans(utilidadtipopreciosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoUtilidadTipoPrecioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesUtilidadTipoPrecios(sAccionBusqueda,sTipoArchivoReporte,utilidadtipopreciosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "private void todayReport() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tString[] dates = new String[1];\n\t\t/* Create a DateField with the default style. */\n Calendar calendar=Calendar.getInstance();\n\t\t\n\t\tvReportDisplayLayout.removeAllComponents();\n\t\tdates[0] = String.valueOf(calendar.get(Calendar.MONTH)+1) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.DATE)) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.YEAR));\n\t\tdollarEarning = getTodayData();\n\t\t\n\t\tdisplayChart chart = new displayChart();\n\t\t\n\t\tdReportPanel.setContent(chart.getDisplayChart(dates, dollarEarning));\n\t\tvReportDisplayLayout.addComponent(dReportPanel);\n\t}", "@GET\n @Path(\"/report\")\n @NotAuthenticated\n public Response getReport() {\n \n try {\n File design = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/report-templates/\" + name + \".rptdesign\"));\n if(!design.exists()) {\n return Response.status(Status.NOT_FOUND).build();\n }\n File reports = opalRuntime.getFileSystem().getLocalFile(resolveFileInFileSystem(\"/reports/\" + name));\n if(!reports.exists()) {\n if(!reports.mkdirs()) {\n return Response.serverError().build();\n }\n }\n File report = new File(reports, name + \"-\" + System.currentTimeMillis() + \".pdf\");\n reportService.render(\"PDF\", null, design.getAbsolutePath(), report.getAbsolutePath());\n if(report.exists()) {\n return Response.ok().build();\n } else {\n return Response.serverError().build();\n }\n } catch(Exception e) {\n e.printStackTrace();\n return Response.serverError().build();\n }\n }", "public void printReport() {\n System.out.println(\"=== Product Report ===\");\n productNames.keySet().forEach(k -> {\n System.out.println(\"Name: \" + k + \"\\t\\tCount: \" + productCountMap.get(productNames.get(k)));\n });\n\n }", "@Override\n public void displayReportTemplate(String reportFormat, int entries) {\n }", "private void writeSizeReport()\n {\n Writer reportOut = null;\n try\n {\n reportOut = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(sizeReportFile), \"UTF8\"));\n reportOut.write(report.generate());\n reportOut.flush();\n }\n catch (Exception e)\n {\n // TODO: report a problem\n throw new RuntimeException(e);\n }\n finally\n {\n if (reportOut != null)\n try\n {\n reportOut.close();\n }\n catch (IOException e)\n {\n // ignore\n }\n }\n }", "public void generarReporteTipoDetalleMovimientoInventarios(String sAccionBusqueda,List<TipoDetalleMovimientoInventario> tipodetallemovimientoinventariosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventarioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDetalleMovimientoInventarioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Costos\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDetalleMovimientoInventarioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleMovimientoInventario.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDetalleMovimientoInventarioLogic tipodetallemovimientoinventarioLogicAuxiliar=new TipoDetalleMovimientoInventarioLogic();\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setDatosCliente(tipodetallemovimientoinventarioLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setTipoDetalleMovimientoInventarios(tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDetalleMovimientoInventarioWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventariosParaReportes=tipodetallemovimientoinventarioLogicAuxiliar.getTipoDetalleMovimientoInventarios();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDetalleMovimientoInventario tipodetallemovimientoinventario:tipodetallemovimientoinventariosParaReportes) {\r\n\t\t\t\t\t//\ttipodetallemovimientoinventarioLogic.deepLoad(tipodetallemovimientoinventario, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleMovimientoInventario = AuxiliarReportes.class.getResourceAsStream(\"DetalleMovimientoInventarioDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallemovimientoinventario\", reportFileDetalleMovimientoInventario);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDetalleMovimientoInventario=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDetalleMovimientoInventario=new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioJInternalFrame.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDetalleMovimientoInventario);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioBean.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDetalleMovimientoInventarioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public static void printReport() throws Exception\r\n\t{\n\t\tFile file=new File(\"Data/Peopledetails.txt\");\r\n\t\tfs=new Scanner(file);\r\n\t\tfs.useDelimiter(\",|\\\\r\\n\");\r\n\t\t\r\n\t\t//Print out headers for table\r\n\t\tSystem.out.printf(\"%5s%20s%10s%15s%20s%15s%15s%20s%10s%20s%10s\\n\\n\", \r\n\t\t\t\t\"ID\", \"Name\", \"Gender\", \"Hourly Rate\", \"Contracted Hours\",\t\"Gross Pay\", \r\n\t\t\t\t\"Income Tax\", \"National Insurance\", \"Pension\", \"Total Deductions\", \"Net pay\");\r\n\t\t\r\n\t\twhile (fs.hasNext())\r\n\t\t{\r\n\t\t\tid=fs.nextInt();\r\n\t\t\tfname=fs.next();\r\n\t\t\tsname=fs.next();\r\n\t\t\tgen=fs.next();\r\n\t\t\thrate=fs.nextDouble();\r\n\t\t\thrs=fs.nextDouble();\r\n\t\t\t\t\t\t\r\n\t\t\tgross=hrs*hrate;\r\n\t\t\t\t\t\t\r\n\t\t\t//Calculates the overtime\r\n\t\t\tif(hrs>40)\r\n\t\t\t{\r\n\t\t\t\totime=hrs-40;\r\n\t\t\t\tstandard=40;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\totime=0;\r\n\t\t\t\tstandard=hrs;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgross=(standard*hrate+otime*hrate*1.5);\r\n\t\t\t\r\n\t\t\t//Calculates the annual gross in order to calculate the income tax per week\r\n\t\t\tannualgross=gross*52;\r\n\t\t\t\r\n\t\t\t//Calculates Income Tax\r\n\t\t\tdouble p,b,h,a;\r\n\t\t\t\r\n\t\t\tif(annualgross<=12500)\r\n\t\t\t{\r\n\t\t\t\tp=0;\r\n\t\t\t\tb=0;\r\n\t\t\t\th=0;\r\n\t\t\t\ta=0;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>12500 && annualgross<=50000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t\tb = annualgross - 12500;\r\n\t\t\t\th = 0;\r\n\t\t\t\ta = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse if(annualgross>50000 && annualgross<=150000)\r\n\t\t\t{\r\n\t\t\t\tp = 12500;\r\n\t\t\t b = 37500;\r\n\t\t\t h = annualgross - 50000;\r\n\t\t\t a = 0;\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t p = 12500;\r\n\t\t b = 37500;\r\n\t\t h = 100000;\r\n\t\t a = annualgross - 150000;\r\n\r\n\t\t\t}\r\n\t\t\ttax= (p * 0 + b * 0.2 + h * 0.4 + a * 0.45)/52;\r\n\t\t\t\r\n\t\t\t//Calculates National Insurance Contribution\r\n\t\t\tif(annualgross>8500 && annualgross<50000)\r\n\t\t\t{\r\n\t\t\t\tnirate=0.12;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tnirate=0.02;\r\n\t\t\t}\r\n\t\t\tnitax=gross*nirate;\r\n\t\t\t\r\n\t\t\t//Calculates Pension Contribution\r\n\t\t\tif(annualgross<27698)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.074;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=27698 && annualgross<37285)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.086;\r\n\t\t\t}\r\n\t\t\telse if(annualgross>=37285 && annualgross<44209)\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.096;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tpenrate=0.117;\r\n\t\t\t}\r\n\t\t\tpension=gross*penrate;\r\n\t\t\t\r\n\t\t\t//Calculates total deductions\r\n\t\t\tdeduct=tax+nitax+pension;\r\n\t\t\t\r\n\t\t\t//Calculates net pay\r\n\t\t\tnet=gross-deduct;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.printf(\"%5d%20s%10s%15.2f%20.2f%15.2f%15.2f%15.2f%15.2f%20.2f%10.2f\\n\",\r\n\t\t\t\t\tid, fname+\" \"+sname, gen, hrate, hrs, gross, tax, nitax, pension, deduct, net);\r\n\t\t}\r\n\t\tfs.close();\r\n\t\t\r\n\t}", "public static void rep_WriteResults(String strTemplatePath, String strOutputPath) {\n String strStatus;\n strStatus = \"Pass\";\n intPassCount = 0;\n intFailCount = 0;\n intInfoCount = 0;\n try {\n String reportIn = new String(Files.readAllBytes(Paths.get(strTemplatePath)));\n for (int i = 0; i < details.size(); i++) {\n //if statement to prevent duplication of test step numbers in the report\n if (i == 0) {\n\n\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else if (details.get(i).getResult().equals(\"Step\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=left width=100><font color=\\\"blue\\\">\" + details.get(i).getResult() + \"</font></td><td><font color=\\\"blue\\\">\" +\n details.get(i).getResultText() + \"</font></td></tr>\" + resultPlaceholder);\n\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n\n\n } else if (details.get(i).getintTestStep() == details.get(i - 1).getintTestStep()) {\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n } else {\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else if (details.get(i).getResult().equals(\"Step\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=left width=100><font color=\\\"blue\\\">\" + details.get(i).getResult() + \"</font></td><td><font color=\\\"blue\\\">\" +\n details.get(i).getResultText() + \"</font></td></tr>\" + resultPlaceholder);\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n }\n\n }\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</table>\");\n String currentDate = new SimpleDateFormat(\"dd-MM-yyyy\").format(new Date());\n\n\n String currentTime = CommonFunctionTest.com_CurrentTime();\n String reportPath = strOutputPath + \"\\\\report_\" + currentDate + \"_\" + currentTime + \"_\" + strStatus + \".html\";\n\n Files.write(Paths.get(reportPath), reportIn.getBytes(), StandardOpenOption.CREATE);\n\n } catch (Exception e) {\n System.out.println(\"Error when writing report file:\\n\" + e.toString());\n }\n }", "public static void reportes(){\n try {\n /**Variable necesaria para abrir el archivo creado*/\n Desktop pc=Desktop.getDesktop();\n /**Variables para escribir el documento*/\n File f=new File(\"Reporte_salvajes.html\");\n FileWriter w=new FileWriter(f);\n BufferedWriter bw=new BufferedWriter(w);\n PrintWriter pw=new PrintWriter(bw);\n \n /**Se inicia el documento HTML*/\n pw.write(\"<!DOCTYPE html>\\n\");\n pw.write(\"<html>\\n\");\n pw.write(\"<head>\\n\");\n pw.write(\"<title>Reporte de los Pokemons Salvajes</title>\\n\");\n pw.write(\"<style type=\\\"text/css\\\">\\n\" +\n \"body{\\n\" +\n \"background-color:rgba(117, 235, 148, 1);\\n\" +\n \"text-align: center;\\n\" +\n \"font-family:sans-serif;\\n\" +\n \"}\\n\"\n + \"table{\\n\" +\n\"\t\t\tborder: black 2px solid;\\n\" +\n\"\t\t\tborder-collapse: collapse;\\n\" +\n\" }\\n\"\n + \"#td1{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: skyblue;\\n\" +\n\" }\\n\" +\n\" #td2{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: white;\\n\" +\n\" }\\n\"\n +\"</style>\");\n pw.write(\"<meta charset=\\\"utf-8\\\">\");\n pw.write(\"</head>\\n\");\n /**Inicio del cuerpo*/\n pw.write(\"<body>\\n\");\n /**Título del reporte*/\n pw.write(\"<h1>Reporte de los Pokemons Salvajes</h1>\\n\");\n /**Fecha en que se genero el reporte*/\n pw.write(\"<h3>Documento Creado el \"+fecha.get(Calendar.DAY_OF_MONTH)+\n \"/\"+((int)fecha.get(Calendar.MONTH)+1)+\"/\"+fecha.get(Calendar.YEAR)+\" a las \"\n +fecha.get(Calendar.HOUR)+\":\"+fecha.get(Calendar.MINUTE)+\":\"+fecha.get(Calendar.SECOND)+\"</h3>\\n\");\n \n pw.write(\"<table align=\\\"center\\\">\\n\");\n //Se escriben los títulos de las columnas\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[0]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[1]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[2]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[3]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[4]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[5]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[6]+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n for (int i = 0; i < pokemon.ingresados; i++) {\n //Se determina si el pokemon es salvaje\n if(pokemon.Capturado[i]==false){\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Id[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Tipo[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Nombre[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Vida[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.ptAt[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">Salvaje</td>\\n\");\n //Se determina si el pokemon esta vivo o muerto\n String estado;\n if (pokemon.Estado[i]==true) {\n estado=\"Vivo\";\n }else{estado=\"Muerto\";}\n pw.write(\"<td id=\\\"td2\\\">\"+estado+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n }\n }\n pw.write(\"</table><br>\\n\");\n \n pw.write(\"</body>\\n\");\n pw.write(\"</html>\\n\");\n /**Se finaliza el documento HTML*/\n \n /**Se cierra la capacidad de escribir en el documento*/ \n pw.close();\n /**Se cierra el documento en el programa*/\n bw.close();\n /**Se abre el documento recien creado y guardado*/\n pc.open(f);\n } catch (Exception e) {\n System.err.println(\"Asegurese de haber realizado las actividades previas \"\n + \"relacionadas\");\n }\n }", "private void crearReporte() {\n medirTiempoDeEnvio();\n SimpleDateFormat variableFecha = new SimpleDateFormat(\"dd-MM-yyyy\");\n Calendar cal = Calendar.getInstance();\n String dia = String.valueOf(cal.get(cal.DATE));\n String mes = String.valueOf(cal.get(cal.MONTH) + 1);\n String año = String.valueOf(cal.get(cal.YEAR));\n String fechainicio;\n String fechafin;\n Map parametro = new HashMap();\n cargando.setVisible(true);\n try {\n JasperViewer v;\n switch (listaTipoReporte.getSelectedIndex()) {\n case 0:\n if (rb_diario.isSelected() || this.reporte.getSelectedIndex() == 1) {\n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n parametro.put(\"fecha\",fechainicio+\" al \"+fechafin);\n } else {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.dia.getDate()));\n fechafin = fechainicio;\n parametro.put(\"fecha\",\" dia \"+fechainicio);\n }\n \n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"ordenes_procesadas_diarias\")) {\n v = u.runReporte(\"reporte_ordenes_procesadas_diario\", parametro);\n v.setTitle(\"Reporte de ordenes procesadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n if (rb_mensual.isSelected()) {\n int dia2 = u.numero(mess);\n String fechanueva1 = año + \"-\" + mess + \"-\" + \"01\";\n String fechai1 = año + \"-\" + mess + \"-\" + \"15\";\n String fechai2 = año + \"-\" + mess + \"-\" + \"16\";\n String fechaf1 = año + \"-\" + mess + \"-\" + dia2;\n //----------------------------- ojo son 4 fechas finico-ffinal1 y fechafinal2 -a fechafinal2\n // String fechainicio = u.fechaCorrecta(variableFecha.format(jDateChooser1.getDate()));\n // String f = u.fechaCorrecta(variableFecha.format(jDateChooser2.getDate()));\n // String fechafin =fechainicio;\n String p = \"('\" + fechanueva1 + \"','\" + fechai1 + \"','\" + fechai2 + \"','\" + fechaf1 + \"')\";\n if (u.ejecutarSP(p, \"ordenes_procesadas_mensual\")) {\n v = u.runReporte(\"reporte_ordenes_procesadas_mensual\", parametro);\n v.setTitle(\"Reporte mensual de ordenes procesadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n Reporte r = new Reporte();\n String nombreReporte = \"\";\n if (this.primera.isSelected()) {\n r.reporteQuincena(Integer.toString(mess), \"2014\", 1);\n parametro.put(\"periodo\", \"De la primera quincena del mes de \" + u.obtenerMes(mess));\n nombreReporte = \"procesadasQuincena\";\n } else {\n if (this.segunda.isSelected()) {\n r.reporteQuincena(Integer.toString(mess), \"2014\", 2);\n parametro.put(\"periodo\", \"De la segunda quincena del mes de \" + u.obtenerMes(mess));\n nombreReporte = \"procesadasQuincenaSegunda\";\n }\n }\n v = u.runReporte(nombreReporte, parametro);\n v.setTitle(\"Reporte quincenal de ordenes procesadas\");\n v.setVisible(true);\n u.ejecutarSQL(\"DROP TABLE IF EXISTS temporal1\");\n }\n }\n break;\n case 1:\n //RordeAuditada\n if (rb_mensual.isSelected()) {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n int dia2 = u.numero(mess);\n String fechanueva = año + \"-\" + mess + \"-\" + \"01\"; //calcular el anho\n String fechai = año + \"-\" + mess + \"-\" + \"15\";\n String fechaf = año + \"-\" + mess + \"-\" + dia2;\n String p1 = \"('\" + fechanueva + \"','\" + fechai + \"','\" + fechaf + \"')\";\n if (u.ejecutarSP(p1, \"Raudita_mensual\")) {\n parametro.put(\"fecha\", fechanueva);\n parametro.put(\"fecha_p\", fechai);\n parametro.put(\"fecha_s\", fechaf);\n parametro.put(\"año\", año);\n parametro.put(\"mes\", mes);\n v = u.runReporte(\"report7\", parametro);\n v.setTitle(\"Reporte mensual de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n\n }\n if (rb_diario.isSelected() || this.reporte.getSelectedIndex() == 1) {\n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n } else {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.dia.getDate()));\n fechafin = fechainicio;\n parametro.put(\"fecha1\", \"Del dia \" + fechainicio);\n }\n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"reporteJoel\")) {\n v = u.runReporte(\"RordeAuditada\", parametro);\n v.setTitle(\"Reporte diario de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n }\n if (rb_quincenal.isSelected()) {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n String ms = u.obtenerMes(mess);\n if (this.primera.isSelected()) {\n q = \"Primera\";\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"01\") + \"','\" + (año + \"-\" + mess + \"-\" + \"02\") + \"','\" + (año + \"-\" + mess + \"-\" + \"03\") + \"','\" + (año + \"-\" + mess + \"-\" + \"04\") + \"','\" + (año + \"-\" + mess + \"-\" + \"05\") + \"','\" + (año + \"-\" + mess + \"-\" + \"06\") + \"','\" + (año + \"-\" + mess + \"-\" + \"07\") + \"','\" + (año + \"-\" + mess + \"-\" + \"08\") + \"','\" + (año + \"-\" + mess + \"-\" + \"09\") + \"','\" + (año + \"-\" + mess + \"-\" + \"10\") + \"','\" + (año + \"-\" + mess + \"-\" + \"01\") + \"','\" + (año + \"-\" + mess + \"-\" + \"11\") + \"','\" + (año + \"-\" + mess + \"-\" + \"12\") + \"','\" + (año + \"-\" + mess + \"-\" + \"13\") + \"','\" + (año + \"-\" + mess + \"-\" + \"14\") + \"','\" + (año + \"-\" + mess + \"-\" + \"15\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n if (this.segunda.isSelected()) {\n q = \"Segunda\";\n if (mess == 2) {\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"17\") + \"','\" + (año + \"-\" + mess + \"-\" + \"18\") + \"','\" + (año + \"-\" + mess + \"-\" + \"19\") + \"','\" + (año + \"-\" + mess + \"-\" + \"20\") + \"','\" + (año + \"-\" + mess + \"-\" + \"21\") + \"','\" + (año + \"-\" + mess + \"-\" + \"22\") + \"','\" + (año + \"-\" + mess + \"-\" + \"23\") + \"','\" + (año + \"-\" + mess + \"-\" + \"24\") + \"','\" + (año + \"-\" + mess + \"-\" + \"25\") + \"','\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"26\") + \"','\" + (año + \"-\" + mess + \"-\" + \"27\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"17\") + \"','\" + (año + \"-\" + mess + \"-\" + \"18\") + \"','\" + (año + \"-\" + mess + \"-\" + \"19\") + \"','\" + (año + \"-\" + mess + \"-\" + \"20\") + \"','\" + (año + \"-\" + mess + \"-\" + \"21\") + \"','\" + (año + \"-\" + mess + \"-\" + \"22\") + \"','\" + (año + \"-\" + mess + \"-\" + \"23\") + \"','\" + (año + \"-\" + mess + \"-\" + \"24\") + \"','\" + (año + \"-\" + mess + \"-\" + \"25\") + \"','\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"26\") + \"','\" + (año + \"-\" + mess + \"-\" + \"27\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"29\") + \"','\" + (año + \"-\" + mess + \"-\" + \"30\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n\n }\n }\n }\n }\n break;\n case 2:\n try {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n parametro.put(\"fechaInicio\", fechainicio);\n parametro.put(\"fechaFin\", fechafin);\n v = u.runReporte(\"reporte_errores_diarios\", parametro);\n v.setTitle(\"Reporte de Errores\");\n v.setVisible(true);\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"No se pudo generar el reporte\", \"Reporte\", JOptionPane.ERROR_MESSAGE);\n ErroresSiapo.agregar(ex, \"codigo 39\");\n }\n break;\n case 3:\n \n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n parametro.put(\"PERIODO\", \"Del \" + u.fechaReves(fechainicio) + \" al \" + u.fechaReves(fechafin));\n } else {\n String m = Integer.toString(this.cb_mes.getSelectedIndex() + 1);\n fechafin = año + \"-\" + m + \"-\" + u.numero(this.cb_mes.getSelectedIndex() + 1);\n fechainicio = año + \"-\" + m + \"-01\";\n parametro.put(\"PERIODO\", \"Del mes de \" + u.obtenerMes(this.cb_mes.getSelectedIndex() + 1) + \" del año \" + año);\n }\n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"ERRORES\")) {\n v = u.runReporte(\"analisisDeEficiencia\", parametro);\n v.setTitle(\"Reporte de Analisis de Eficiencia\");\n v.setVisible(true);\n } else {\n ErroresSiapo.agregar(null, \"codigo 39\");\n System.out.println(\"mal\");\n }\n break;\n case 4: \n try {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n parametro.put(\"fecha\", fechainicio);\n parametro.put(\"fechaFin\", fechafin);\n v = u.runReporte(\"reporteDiarioOrdenesRegreso\", parametro);\n v.setTitle(\"Reporte de Razones\");\n v.setVisible(true);\n } catch (Exception e) {\n ErroresSiapo.agregar(e, \"codigo 38\");\n JOptionPane.showMessageDialog(null, \"No se pudo generar el reporte\", \"Reporte\", JOptionPane.ERROR_MESSAGE);\n }\n break;\n }\n } catch (Exception e) {\n }\n\n }", "void printReport(Object unit);", "@Override\n\tpublic void report() throws Exception {\n\t\t\n\t}", "private void initExcelReport() {\n DocumentItem documentItem = new DocumentItem(\"Source Node ID\", \"File Name\", \"Target Destination Folder\", \"Target Node ID\", null, \"Target Node Status\", \"Message\", null, null);\n ExcelUtil.addMigrationRow(jobParameters.getMigrationReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n ExcelUtil.addErrorRow(jobParameters.getErrorReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n }" ]
[ "0.81044465", "0.7870368", "0.76167774", "0.76036084", "0.75920695", "0.75754964", "0.754835", "0.75442743", "0.7511593", "0.74887526", "0.7482862", "0.72336966", "0.7233256", "0.71808636", "0.71521926", "0.71112347", "0.709923", "0.7077815", "0.7060722", "0.7010549", "0.6971991", "0.69693685", "0.6959973", "0.69493675", "0.6942612", "0.6919151", "0.6901458", "0.68525505", "0.6847431", "0.6832059", "0.67865914", "0.6784969", "0.67817706", "0.67756784", "0.676248", "0.67503244", "0.672585", "0.6720357", "0.66955864", "0.66935664", "0.6660836", "0.6637447", "0.6617647", "0.66154283", "0.6610009", "0.6595039", "0.65931875", "0.6581977", "0.6563718", "0.65559834", "0.6549718", "0.65446", "0.6539877", "0.65288186", "0.6501665", "0.64945114", "0.6488949", "0.6481458", "0.6480891", "0.6473146", "0.6470801", "0.6464854", "0.6463798", "0.64592165", "0.6450074", "0.6443163", "0.64427453", "0.64396304", "0.64232844", "0.6418526", "0.6415737", "0.64005", "0.63936144", "0.6376999", "0.6368297", "0.63289636", "0.63230675", "0.63123745", "0.6312351", "0.6298696", "0.6295691", "0.6291826", "0.6291627", "0.62872833", "0.6275428", "0.62719464", "0.62712026", "0.6265516", "0.626249", "0.62520534", "0.62501305", "0.6236359", "0.6236344", "0.62352186", "0.62291825", "0.6228688", "0.6223497", "0.6215439", "0.62109816", "0.61808777", "0.617496" ]
0.0
-1
Does accept filtered object?
boolean accept(T filteredObject);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PropertiedObjectFilter<O> getFilter();", "public abstract Filter<T> filter();", "public abstract void filter();", "public interface ObjectFilter<In, Out> {\n\n\t/**\n\t * Return an object of <code>Out</code> type initialized with the specified <code>In</code> object. \n\t * This object is displayed or is given to the next ObjectFilter of the chain. \n\t * @param value the specified object\n\t * @return an object of <code>Out</code> type or <code>null</code> (in this case, the filter chains ends) \n\t */\n public abstract Out apply(In value);\n \n}", "protected boolean filterOutObject(PhysicalObject object) {\n return false;\n }", "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}", "@Override\n public boolean shouldFilter() {\n return true;\n }", "void setFilter(final PropertiedObjectFilter<O> filter);", "boolean isPreFiltered();", "boolean doFilter() { return false; }", "public boolean shouldFilter() {\n return true;\n }", "public interface Filter<T> {\n boolean filter(T item);\n}", "boolean hasFiltered() {\n return filtered;\n }", "public boolean isCoveredBy(Filter f);", "public Boolean filter(Entry e) {\n\t\t//TODO you will need to implement this method\n\t\treturn false;\n\t}", "public static interface Filter\n\t\t{\n\t\t/**\n\t\t * Accept a frame? if false then all particles will be discarded\n\t\t */\n\t\tpublic boolean acceptFrame(EvDecimal frame);\n\t\t\n\t\t/**\n\t\t * Accept a particle?\n\t\t */\n\t\tpublic boolean acceptParticle(int id, ParticleInfo info);\n\t\t}", "public interface Filter {\n\n}", "public interface iFilter {\n\n /**\n * method to add a value to datastructure.\n *\n * @param value\n */\n void add(String value);\n\n /**\n * method to check whether datastructure has value.\n *\n * @param value\n * @return boolean\n */\n boolean contains(String value);\n}", "public interface ImportFilter<T> {\r\n\r\n public boolean doFilter(T object);\r\n\r\n}", "public boolean isFiltered() {\n return filtered;\n }", "boolean isFilterByExpression();", "public abstract boolean isFilterApplicable ();", "@Override\r\n protected boolean excludesAnd(AbstractResourceFilter<T> filter) {\n return this.equals(filter);\r\n }", "public void setFiltered(boolean filtered) {\n this.filtered = filtered;\n }", "Boolean filterEnabled();", "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "@Override//判断过滤器是否生效。\r\n\tpublic boolean shouldFilter() {\n\t\treturn false;\r\n\t}", "public boolean filter(Element e) {\n\t\t\t\tif(e.getRepresentedBy() instanceof ClassElement) {\r\n\t\t\t\t\treturn ((ClassElement) e.getRepresentedBy())\r\n\t\t\t\t\t\t.getRepresents().getName().equals(\"Person\"); \r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}", "private interface FilterFunction\n\t{\n\t\tpublic Boolean filter(Review review);\n\t}", "public boolean accept(final ConnectorObject obj) {\r\n boolean result = true;\r\n for (final Filter subFilter : subFilters) {\r\n result = subFilter.accept(obj);\r\n if (!result) {\r\n break;\r\n }\r\n }\r\n return result;\r\n }", "public interface CollectionFilter<T> {\n Collection<Product> filter(Collection<T> toFilter);\n}", "public interface FilterOperation {\n\n boolean check(Map<String, String> values);\n}", "FeatureHolder filter(FeatureFilter filter);", "@Test\n public void testFilterStudent() {\n System.out.println(\"filterStudent\");\n HashMap<String, Student> result = new HashMap<>();\n School instance = new School();\n\n result.put(student1.getId(), student1);\n result.put(student2.getId(), student2);\n result.put(student3.getId(), student3);\n instance.setStudents(students);\n\n assertEquals(result, instance.filterStudent(\"\", students));\n assertEquals(result, instance.filterStudent(\" \", students));\n System.out.println(\"PASS with null filter\");\n\n result.remove(student1.getId());\n result.remove(student2.getId());\n assertEquals(result, instance.filterStudent(\"Hong\", students));\n System.out.println(\"PASS with name field\");\n\n result.put(student1.getId(), student1);\n result.put(student2.getId(), student2);\n assertEquals(result, instance.filterStudent(\"@\", students));\n assertEquals(result, instance.filterStudent(\"0909090909\", students));\n assertEquals(result, instance.filterStudent(\"08-0808-0808\", students));\n System.out.println(\"PASS with other fields\");\n\n result.clear();\n assertEquals(result, instance.filterStudent(\"qwerty\", students));\n System.out.println(\"PASS with not-found filter\");\n\n System.out.println(\"PASS ALL\");\n }", "Filter getFilter();", "public abstract boolean isItemFiltered(pt.keep.oaiextended.AgentItem item);", "public ObjectFilter()\n\t{\n\t}", "ObservableList<Person> getFilteredPersonList();", "Collection<T> doFilter(RepositoryFilterContext context);", "public boolean accept(final Object payload) {\n return true; //TODO we can add filter logic that returns false or true based on the conditions\n }", "public interface Filter {\n void doFilter();\n}", "private <T> List<T> filterList(Iterable<?> iterable, Class<T> clazz) {\n List<T> result = new ArrayList<>();\n for (Object object : iterable) {\n if (clazz.isInstance(object)) {\n @SuppressWarnings(\"unchecked\")\n // Checked using clazz.isInstance\n T tObject = (T) object;\n result.add(tObject);\n }\n }\n return result;\n }", "public interface QueryFilter {\n\t\tpublic void apply(Query<? extends PersistentObject> qbe);\n\t}", "interface Filter extends Mutator {\n\n }", "abstract boolean filter(TestJson test, JFXButton button);", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "public interface IFilter {\n\t\n\t/**\n\t * Returns true if student record satisfies\n\t * condition\n\t * @param record - student record\n\t * @return {@code true} if student record satisfies\n\t *\t\t\t condition\n\t */\n\tpublic boolean accepts(StudentRecord record);\n}", "public static ObjectInputFilter getObjectInputFilter(ObjectInputStream param1ObjectInputStream) {\n/* 280 */ Objects.requireNonNull(param1ObjectInputStream, \"inputStream\");\n/* 281 */ return SharedSecrets.getJavaOISAccess().getObjectInputFilter(param1ObjectInputStream);\n/* */ }", "@Override\n protected FilterResults performFiltering(CharSequence arg0) {\n FilterResults filterResults = new FilterResults();\n if (arg0 == null || arg0.length() == 0) {\n filterResults.values = MyArrayObjects;\n filterResults.count = MyArrayObjects.size();\n } else {\n String filterString = arg0.toString().toLowerCase();\n final ArrayList<Com_ItemObject> TempList = new ArrayList<Com_ItemObject>();\n for (Com_ItemObject Sis_ItemObject : MyArrayObjects) {\n //Filters both from Name and Bottom Text\n if ((Sis_ItemObject.getName() + \" \" + Sis_ItemObject.getBottomText()).toLowerCase().contains(filterString)) {\n TempList.add(Sis_ItemObject);\n }\n }\n\n filterResults.values = TempList;\n filterResults.count = TempList.size();\n }\n\n return filterResults;\n }", "public Filter condition();", "@Override\n public boolean isEmpty() {\n return filtered.isEmpty();\n }", "private Reviews filterByFunc(FilterFunction filterFunc)\n\t{\n\t\tArrayList<Review> filteredList = new ArrayList<Review>();\n\t\tfor(Review review : list)\n\t\t\tif(filterFunc.filter(review))\n\t\t\t\tfilteredList.add(review);\n\t\treturn new Reviews(filteredList);\n\t}", "public interface ArmorFilter {\n List<Equipment> filter(List<Equipment> equipmentList);\n}", "Try<T> filter(Predicate<? super T> p);", "boolean simpleBind(Filter f){\n// List<String> list = f.getVariables();\n// \n// for (Exp exp : this){\n// if (exp.isEdge() || exp.isPath() || exp.isValues() || exp.isBind()){\n// \n// }\n// }\n \n return true;\n }", "@Test\n public void testFilterBadTypes() throws Exception {\n assertEquals(23423, badMaxFilter.filter(23423));\n }", "public Input filterBy(Filter filter) {\n JsonArray filters = definition.getArray(FILTERS);\n if (filters == null) {\n filters = new JsonArray();\n definition.putArray(FILTERS, filters);\n }\n filters.add(Serializer.serialize(filter));\n return this;\n }", "@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);", "public boolean isFilterObject(final Object o) {\n return o instanceof MultipartFile || o instanceof HttpServletRequest || o instanceof HttpServletResponse;\n }", "@VTID(37)\n boolean getFilterCleared();", "@Override\n protected SerializablePredicate<T> getFilter(Query<T, Void> query) {\n return Optional.ofNullable(inMemoryDataProvider.getFilter())\n .orElse(item -> true);\n }", "public abstract void updateFilter();", "@Test\r\n void filterMethod() {\r\n\t\tStream<TransactionBean> transactionBeanStream = transactions.stream().filter(t -> t.getType() == Transaction.GROCERY);\r\n\t\tList<TransactionBean> afterStreamList = transactionBeanStream.peek(System.out::println).collect(Collectors.toCollection(ArrayList::new));\r\n\t\tassertSame(\"wrong type\", Transaction.GROCERY, afterStreamList.get(0).getType());\r\n\t\tassertSame(\"wrong type\", Transaction.GROCERY, afterStreamList.get(1).getType());\r\n }", "public interface CustomerSubsetFilterStrategy {\r\n Set<Customer> applyFilter(List<Customer> customers);\r\n}", "@Override public Filter getFilter() { return null; }", "public static ObjectInputFilter getObjectInputFilter(ObjectInputStream param1ObjectInputStream) {\n/* 282 */ Objects.requireNonNull(param1ObjectInputStream, \"inputStream\");\n/* 283 */ return SharedSecrets.getJavaOISAccess().getObjectInputFilter(param1ObjectInputStream);\n/* */ }", "@Override\n protected boolean accept(Field f) {\n\t\t return !Collection.class.isAssignableFrom(f.getType()) &&\n\t\t \t\t!List.class.isAssignableFrom(f.getType()) &&\n\t\t \t\t\t\t!BaseEntity.class.isAssignableFrom(f.getType())\n\t\t \t\t\t\t&& acceptToStringField(f);\n\t\t }", "FeatureHolder filter(FeatureFilter fc, boolean recurse);", "public void filtered(FilteredCall<UserCQ, UserCQ> filteredLambda) {\n filtered(filteredLambda, null);\n }", "public boolean isCovering(Filter f);", "public interface Filter extends Predicate<Element> {\n\n}", "boolean isFilterByDate();", "public boolean f(Context ctx, Object obj)\r\n {\n if (groupIds_ == null)\r\n {\r\n new MinorLogMsg(\r\n this,\r\n \"Unable to filter because the contract group ids is unspecified.\",\r\n null).log(ctx);\r\n return true;\r\n }\r\n \r\n ContractGroup group = (ContractGroup) obj;\r\n\r\n if (groupIds_.contains(group.getIdentifier()))\r\n {\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public boolean matches(Object objectToFilter) {\n filterKey = filterKey.substring(0, 1).toUpperCase() + filterKey.substring(1);\n\n String methodName = \"get\" + filterKey;\n try {\n Class parameters[] = {};\n Method methodToCall = objectToFilter.getClass().getDeclaredMethod(methodName);\n\n try {\n if (methodToCall.invoke(objectToFilter, parameters).equals(filterValue) == include) {\n return true;\n } else {\n return false;\n }\n } catch (IllegalAccessException | InvocationTargetException e) {\n LOGGER.error(\"Method \" + methodName + \"() is either inaccessible or there was an error when invoking\");\n return false;\n }\n\n } catch (NoSuchMethodException e) {\n LOGGER.error(\"Object to be filtered does not contain the method: \" + methodName + \"()\\n\" +\n \"Either the object does not contain the field that you want to filter on or there is no public \" +\n \"accessor for it.\");\n return false;\n }\n }", "final <E, T extends Collection<E>> T filter(\n Class<?>[] arr, Class<?> from, T c, int type, T prototype\n ) {\n T ret = null;\n\n\n// optimistic strategy expecting we will not need to filter\nTWICE: \n for (;;) {\n Iterator<E> it = c.iterator();\nBIG: \n while (it.hasNext()) {\n E res = it.next();\n\n if (!isObjectAccessible(arr, from, res, type)) {\n if (ret == null) {\n // we need to restart the scanning again \n // as there is an active filter\n ret = prototype;\n continue TWICE;\n }\n\n continue BIG;\n }\n\n if (ret != null) {\n // if we are running the second round from TWICE\n ret.add(res);\n }\n }\n\n // ok, processed\n break TWICE;\n }\n\n return (ret != null) ? ret : c;\n }", "public void setFilter(EntityFilter filter);", "@Override\n public List runFilter(String filter) {\n return runFilter(\"\", filter);\n }", "void printFilteredItems();", "@Override\n public void filter(BoundingBox3d bounds) {\n filter = new boolean[points.size()];\n for (int i = 0; i < filter.length; i++)\n filter[i] = bounds.contains(points.get(i).xyz);\n }", "public interface IFilterEntity<T> {\n public T doFilter(T t)throws Exception;\n}", "@Override\n public void filter(Filter arg0) throws NoTestsRemainException {\n super.filter(getCustomFilter());\n }", "public String getFilter();", "List<JSONObject> getFilteredItems();", "public interface Filter {\n\n /**\n * Determines whether or not a word may pass through this filter.\n * @param word test word\n * @return TRUE if word may pass, FALSE otherwise\n */\n public boolean pass(String word);\n\n /**\n * Generates a new filter based on the provided\n * definition.\n * @param x definition\n * @return reference to newly-generated filter\n */\n public Filter spawn(String x);\n\n}", "@FunctionalInterface\n public interface FilterMethod<T> {\n Slice<T> load( @Nullable Filters filters, @Nullable Sort sort, int offset, int limit );\n }", "private static Predicate<Person> predicate(CrudFilter filter) {\n return filter.getConstraints().entrySet().stream()\n .map(constraint -> (Predicate<Person>) person -> {\n try {\n Object value = valueOf(constraint.getKey(), person);\n return value != null && value.toString().toLowerCase()\n .contains(constraint.getValue().toLowerCase());\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n })\n .reduce(Predicate::and)\n .orElse(e -> true);\n }", "public static ArticleFilter none() {\n return new ArticleFilter() {\n @Override public boolean testArticle(PubmedArticle article) {\n return false;\n };\n };\n }", "void onFilterChanged(ArticleFilter filter);", "UserFilterResult find(UserFilterRequest request);", "@Override\n protected void publishResults(CharSequence arg0, FilterResults arg1) {\n FilteredObjects = (ArrayList<Com_ItemObject>) arg1.values;\n notifyDataSetChanged();\n }", "public static ArticleFilter all() {\n return new ArticleFilter() {\n @Override public boolean testArticle(PubmedArticle article) {\n return true;\n };\n };\n }", "String getFilter();", "public Object accept(FilterVisitor visitor, Object extraData) {\n \treturn visitor.visit(this,extraData);\n }", "@Test\n public void ListFilterer()\n {\n IListFilter mock_filter = Mockito.mock(IListFilter.class);\n\n //When the method accept of the class filter is called with -1 it should return true\n Mockito.when(mock_filter.accept(-1)).thenReturn(false);\n Mockito.when(mock_filter.accept(2)).thenReturn(true);\n Mockito.when(mock_filter.accept(-3)).thenReturn(false);\n Mockito.when(mock_filter.accept(4)).thenReturn(true);\n\n List<Integer> expected = new ArrayList<>();\n\n expected.add(2);\n expected.add(4);\n\n //Object of class to be tested\n ListFilterer testing_listFilterer = new ListFilterer(this.list);\n\n //Return list\n List<Integer> return_list = testing_listFilterer.filter(mock_filter);\n\n //Let's compare the two classes\n assertEquals(expected, return_list);\n\n }", "public static void filter() {\n\t\t\n\t\tResult.filter(toggleGroup.getSelectedToggle().getUserData(), ((ComboBox)hbox3.getChildren().get(0)).getValue());\n\t\t\n\t}", "@Test\n public void testFilterStructure() throws Exception {\n assertEquals(300.0, maxFilter.filter(300.0), .01);\n }", "public Filter getContactFilter();", "@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();", "ObservableList<Deliverable> getFilteredDeliverableList();", "void filterDisposed(Filter filter);" ]
[ "0.69403285", "0.6786121", "0.6753016", "0.6750716", "0.66812795", "0.6609855", "0.6575447", "0.6554531", "0.64976555", "0.64620304", "0.6371493", "0.6228207", "0.61565244", "0.6118935", "0.6091817", "0.6070661", "0.6069556", "0.6064948", "0.60004896", "0.5991008", "0.5985208", "0.5983944", "0.5981221", "0.59677035", "0.5953339", "0.5905447", "0.5894532", "0.58913475", "0.58676964", "0.5812873", "0.5811268", "0.5786272", "0.5755426", "0.5744552", "0.57392645", "0.5716586", "0.56876713", "0.5685723", "0.5671113", "0.5662009", "0.5660826", "0.5648646", "0.56383693", "0.56221515", "0.561942", "0.5611936", "0.56063014", "0.55934423", "0.55932564", "0.5590882", "0.5563425", "0.55629325", "0.5561246", "0.5534386", "0.5499253", "0.54912746", "0.5488905", "0.5476828", "0.5475441", "0.54753613", "0.5471801", "0.5469434", "0.5468874", "0.54671687", "0.54661006", "0.5464412", "0.5463744", "0.5461503", "0.5458083", "0.5451318", "0.5449277", "0.54421693", "0.5437978", "0.5424549", "0.54194736", "0.541947", "0.5418532", "0.5413223", "0.5409191", "0.53989613", "0.5389633", "0.53886664", "0.5388475", "0.5366379", "0.5363659", "0.5349442", "0.53428954", "0.5326473", "0.5322446", "0.5322054", "0.53046566", "0.5299861", "0.5297797", "0.52915317", "0.5291439", "0.52884024", "0.528483", "0.5276369", "0.527469", "0.5267423" ]
0.8125559
0
for testing/getting the right shoot speed
public void manualShoot(double speed) { shooter1.set(speed); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shoot() {\n\r\n switch (shootstate) {\r\n case down:\r\n tempbutton = Components.shootsinglespeed;\r\n templimit = islimitshooterup();\r\n\r\n if (Components.shootsinglespeed && islimitshooterup() && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(singlespeed);\r\n Components.shootermotorleft2.setX(singlespeed);\r\n Components.shootermotorright.setX(-singlespeed);\r\n Components.shootermotorright2.setX(-singlespeed);\r\n\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n\r\n }\r\n shootpothigh = shootsinglepot;\r\n shootstate = movingup;\r\n } else if (Components.trusshp == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(trusshpspeed);\r\n Components.shootermotorleft2.setX(trusshpspeed);\r\n Components.shootermotorright.setX(-trusshpspeed);\r\n Components.shootermotorright2.setX(-trusshpspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = trusshppothigh;\r\n shootstate = movingup;\r\n }else if (Components.truss == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(trussspeed);\r\n Components.shootermotorleft2.setX(trussspeed);\r\n Components.shootermotorright.setX(-trussspeed);\r\n Components.shootermotorright2.setX(-trussspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = trusspothigh;\r\n shootstate = movingup;\r\n } else if (Components.pass == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(passspeed);\r\n Components.shootermotorleft2.setX(passspeed);\r\n Components.shootermotorright.setX(-passspeed);\r\n Components.shootermotorright2.setX(-passspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = passpot;\r\n shootstate = movingup;\r\n } else if (Components.longdistanceshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(longdistancespeed);\r\n Components.shootermotorleft2.setX(longdistancespeed);\r\n Components.shootermotorright.setX(-longdistancespeed);\r\n Components.shootermotorright2.setX(-longdistancespeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = longdistancepot;\r\n shootstate = movingup;\r\n }\r\n else if (Components.shoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(shooterspeed);\r\n Components.shootermotorleft2.setX(shooterspeed);\r\n Components.shootermotorright.setX(-shooterspeed);\r\n Components.shootermotorright2.setX(-shooterspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = shootpot;\r\n shootstate = movingup;\r\n }else if (Components.slowmovingshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(slowmovingspeed);\r\n Components.shootermotorleft2.setX(slowmovingspeed);\r\n Components.shootermotorright.setX(-slowmovingspeed);\r\n Components.shootermotorright2.setX(-slowmovingspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n slowmovingpot = shootpot;\r\n shootstate = movingup;\r\n }\r\n else if (Components.fastmovingshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(fastmovingspeed);\r\n Components.shootermotorleft2.setX(fastmovingspeed);\r\n Components.shootermotorright.setX(-fastmovingspeed);\r\n Components.shootermotorright2.setX(-fastmovingspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n fastmovingpot = shootpot;\r\n\r\n }\r\n case movingup:\r\n if (islimitshooterup() == false || Components.potvalue >= shootpothigh) {\r\n shootstate = stopped;\r\n oldTime = DS.getMatchTime();\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n break;\r\n\r\n case stopped:\r\n try {\r\n if (/*Components.shooterdown && */time - oldTime > .2 && islimitshooterdown() == true && Components.DownPickupLimit.get()) {\r\n\r\n Components.shootermotorleft.setX(shootdownspeed);\r\n Components.shootermotorleft2.setX(shootdownspeed);\r\n\r\n Components.shootermotorright.setX(-shootdownspeed);\r\n Components.shootermotorright2.setX(-shootdownspeed);\r\n\r\n shootstate = movingdown;\r\n }\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n break;\r\n\r\n case movingdown:\r\n if ((islimitshooterdown() == false) || (Components.potvalue < shootpotdown)) {\r\n\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootstate = down;\r\n }\r\n }\r\n }", "@Override\r\n\tpublic int costOfShooting() {\r\n\t\treturn 50;\r\n\t}", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "public void shoot() {\n _shooterMotor1.set(_targetRPM);\n }", "public static void shoot(double speed)\n\t{\n\t\trunIntake(0, 0, true, speed, speed, false);\n\t}", "private static void shooting() {\n if (m_gamepad.getStartButton() || shootOverride) { //If the start button is pressed\n if (Math.abs(kVelocitySetpoint - -flywheelMaster.getSelectedSensorVelocity()) <= kFlywheelTolerance) { // ... and we're close enough to the desired RPM ...\n SmartDashboard.putBoolean(\"AUTO SHOOT READY\", true); //Alert driver that the shooting is ready\n runConveyor(); //Convey balls into the flywheel\n } else { //If we are NOT within our tolerance\n SmartDashboard.putBoolean(\"AUTO SHOOT READY\", false); //Alert the operator\n }\n if (velocityDipped && -flywheelMaster.getSelectedSensorVelocity() >= kVelocitySetpoint) {\n powerCellCount--;\n velocityDipped = false;\n }\n\n if (-flywheelMaster.getSelectedSensorVelocity() <= kDip /*Placeholder value*/) {\n velocityDipped = true;\n }\n PID(); //Calculate PIDF loop\n flywheelMaster.set(ControlMode.PercentOutput, -speed); //Run the motor at the calculated level\n } else { //If start button is NOT pressed\n flywheelMaster.set(ControlMode.PercentOutput, m_gamepad.getY(GenericHID.Hand.kLeft)); //Set flywheel manually with joystick\n SmartDashboard.putBoolean(\"AUTO SHOOT READY\", false); //Alert operator\n }\n }", "public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }", "@Override\n public double speed() {\n \tif(Robot.drive.getDistance() > 120) {\n \t\treturn 0.2;\n \t}\n \treturn speed;\n }", "void shoot();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "boolean hasSpeed();", "double getSpeed();", "private void shoot() {\n }", "private void shoot() {\n }", "public void setSpeed(float val) {speed = val;}", "public void setSpeed( Vector2 sp ) { speed = sp; }", "int getSimspeed();", "public abstract int getSpeed();", "public abstract int getSpeed();", "public void tick() {\n if (ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL) {\n --this.attackTime;\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n ShulkerEntity.this.getLookController().setLookPositionWithEntity(livingentity, 180.0F, 180.0F);\n double d0 = ShulkerEntity.this.getDistanceSq(livingentity);\n if (d0 < 400.0D) {\n if (this.attackTime <= 0) {\n this.attackTime = 20 + ShulkerEntity.this.rand.nextInt(10) * 20 / 2;\n ShulkerEntity.this.world.addEntity(new ShulkerBulletEntity(ShulkerEntity.this.world, ShulkerEntity.this, livingentity, ShulkerEntity.this.getAttachmentFacing().getAxis()));\n ShulkerEntity.this.playSound(SoundEvents.ENTITY_SHULKER_SHOOT, 2.0F, (ShulkerEntity.this.rand.nextFloat() - ShulkerEntity.this.rand.nextFloat()) * 0.2F + 1.0F);\n }\n } else {\n ShulkerEntity.this.setAttackTarget((LivingEntity)null);\n }\n\n super.tick();\n }\n }", "@Override\n public void onUpdate(double tpf) {\n int x = (int)((entity.getX() + 30/2 ) / 30);\n int y = (int)((entity.getY() + 30/2 ) / 30);\n\n int px = (int)((player.getX() + 30/2 ) / 30);\n int py = (int)((player.getY() + 30/2 ) / 30);\n\n if (x == px || y == py) {\n shoot();\n }\n }", "public int getSpeed(){return this.speed;}", "public void shoot(Point p, Graphics g, Player player){\r\n if(p.getX() > getXCoord()-20){ //not sure if -20 needed (it is to make cetner by the shoulder of arm)\r\n setFacing(1);\r\n } else{\r\n setFacing(0);\r\n }\r\n this.setAttackSpeedTimer(this.getAttackSpeedTimer() + 1);\r\n if(this.getAttackSpeedTimer() == this.getAttackSpeed()){\r\n\t\t Bullet bullet = new Bullet(this.getXCoord(), \r\n\t\t\t\t\t this.getYCoord(), this.getFacing(), g, findAngle(p), player);\r\n\t\t\t\t\t bullet.setAttack(50);\r\n\t\t bullet.setMouseY(this.getMouseY());\r\n\t\t bullet.setMouseX(this.getMouseX());\r\n\t\t bullet.setMouseAngle(this.getMouseAngle());\r\n\t \t bullet.setPlayerDirection(this.getPlayerDirection());\r\n\t\t this.addProjectile(bullet);\r\n\t\t this.setAttackSpeedTimer(0);\r\n\t\t //System.out.println(findAngle(p)*180/Math.PI);\r\n\t\t this.playSound();\r\n }\r\n }", "@Override\n public void periodic() {\n if(m_Turret.OnTarget()){\n velocity = calculateRPMs();\n pidController.setReference(velocity, ControlType.kVelocity);\n SmartDashboard.putNumber(\"shooter Desired velocity\", velocity );\n SmartDashboard.putNumber(\"shooter Actual velocity\", encoder.getVelocity());\n \n if(atRPM() && accumulator > 100){\n m_Indexer.shooting();\n hasShot = true;\n }\n }else{\n accumulator = 0;\n if(hasShot){\n m_Indexer.endShooting();\n hasShot = false;\n }\n }\n\n SmartDashboard.putBoolean(\"shooter at rpm\", atRPM() && accumulator > 100);\n }", "protected void execute() \n {\n \tRobot.ballManipSubsystem.setTopRollerToShootingSpeed();\n }", "@Override\r\n\tpublic void speed() {\n\t}", "@Override\n\t\t\tpublic void shoot() {\n\t\t\t}", "@Test\n public void SpeedControlTest() {\n\n /**\n * Setting up mock\n * */\n Gdx.input = mock(Input.class);\n Course course = mock(Course.class);\n when(course.getLeftBoundary()).thenReturn(0);\n when(course.getRightBoundary()).thenReturn(1080);\n\n\n /**\n * tests cases for when increasing speed\n * creating player to test on and setting test case stats\n * */\n\n player.setStats(5, 11, 3, 3);\n\n float start = player.getCurrentSpeed();\n when(Gdx.input.isKeyPressed(Input.Keys.W)).thenReturn(true);\n player.GetInput(course);\n float finish = player.getCurrentSpeed();\n\n assertTrue(finish > start);\n\n /**\n * resetting stat\n * */\n player.setCurrentSpeed(2);\n\n /**\n * test cases for when decreasing speed\n * */\n when(Gdx.input.isKeyPressed(Input.Keys.S)).thenReturn(true);\n player.GetInput(course);\n\n assertTrue(2 > player.getCurrentSpeed());\n\n }", "public void verifySpeeds() {\n double maxStartSpeed = 0.0;\n double[] startSpeeds = new double[segments.size() + 1];\n startSpeeds[segments.size()] = 0.0;\n for (int i = segments.size() - 1; i >= 0; i--) {\n PathSegment segment = segments.get(i);\n maxStartSpeed += Math\n .sqrt(maxStartSpeed * maxStartSpeed + 2 * maxAccel * segment.getLength());\n startSpeeds[i] = segment.getStartState().vel();\n if (startSpeeds[i] > maxStartSpeed) {\n startSpeeds[i] = maxStartSpeed;\n }\n maxStartSpeed = startSpeeds[i];\n }\n for (int i = 0; i < segments.size(); i++) {\n PathSegment segment = segments.get(i);\n double endSpeed = startSpeeds[i + 1];\n MotionState startState = (i > 0) ? segments.get(i - 1).getEndState() : new MotionState(0, 0, 0, 0);\n startState = new MotionState(0, 0, startState.vel(), startState.vel());\n segment.createMotionProfiler(startState, endSpeed);\n }\n }", "public double getSpeed();", "public abstract double getSpeed();", "public abstract void setSpeed(int sp);", "public int getSpeed() {return ship.getSpeed();}", "public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }", "public double getSlowToFire();", "protected void execute() {\n \t// Scales the speed based on a proportion of ideal voltage over actual voltage\n \tRobot.shooter.talon.set(0.59 * (12.5 / Robot.pdp.getVoltage()));\n// \tRobot.shooter.talon.enable();\n// \tRobot.shooter.talon.set(Shooter.IDEAL_SPEED * (12.5 / Robot.pdp.getVoltage()));\n }", "protected void execute() {\n \tif(Robot.robotState != Robot.RobotState.Climbing)\n \t\tRobot.shooter.speed(speed);\n }", "public void setSpeed() {\n\t\tthis.ySpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t\tthis.xSpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t}", "public int getWalkSpeed()\n{\n return walkSpeed;\n}", "private void speedBulletFire() {\n\n\t\tbulletArrayList.add(\n\t\t\t\tnew Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, \"Yellow\"));\n\n\t\tfor (int i = 0; i < bulletArrayList.size(); i++) {\n\t\t\tbulletArrayList.get(i).setSpeed(5);\n\t\t}\n\t}", "void playerHandler() {\n player.turnToPoint(mouseX, mouseY);\n if (firing && sTimer < 1) {\n\n Sprite smb = new Sprite(smbulletbase);\n smb.moveToSprite(player);\n if(usingCoil){\n clickEffect = new KTSound(this, coilshotURL);\n ktAudio.add(clickEffect);\n clickEffect.play();\n clickEffect = new KTSound(this, gunshotURL);\n ktAudio.add(clickEffect);\n }\n smBullets.add(smb);\n clickEffect.play();\n if(weapon == \"minigun\"){\n smb.turnToPoint(mouseX+(int)random(-90,90), mouseY+(int)random(-90,90));\n }\n else{\n smb.turnToPoint(mouseX, mouseY);\n }\n\n sTimer = firingSpeed;\n }\n sTimer -= 1;\n \n prevX = player.getX();\n prevY = player.getY();\n\n if (up) {\n player.moveY( - 5);\n // pAngle -= 1;\n }\n if (down) {\n player.moveY(5);\n // pAngle += 1;\n }\n if (left) {\n player.moveX( - 5);\n // pAngle -= 1;\n }\n if (right) {\n player.moveX(5);\n }\n if (player.getY() < player.getH() / 2) {\n player.setY(player.getH() / 2);\n }\n if (player.getY() > 2048 - player.getH() / 2) {\n player.setY(2048 - player.getH() / 2);\n }\n if (player.getX() < player.getH() / 2) {\n player.setX(player.getH() / 2);\n }\n if (player.getX() > 2048 - player.getH() / 2) {\n player.setX(2048 - player.getH() / 2);\n }\n \n \n\n // player.turnToDir(pAngle);\n player.display();\n // player.displayHitbox();\n}", "public void ballShoot() {\n\n ballRight.setPower(-1);\n ballLeft.setPower(1);\n\n wait(2.0);\n\n flipper.setPosition(0.7);\n\n wait(0.5);\n\n flipper.setPosition(0.9);\n ballLeft.setPower(0);\n ballRight.setPower(0);\n\n\n }", "public Answer shoot(){\n if (this.isOccuped()){\n this.ship.hit();\n if (this.ship.hasBeenSunk()){\n\tthis.hasBeenShot = true;\n return Answer.SUNK;\n }\n else{\n\tthis.hasBeenShot = true;\n return Answer.HIT;\n }\n }\n else{\n this.hasBeenShot = true;\n return Answer.MISSED;\n }\n }", "void changeUpdateSpeed();", "public int shoot()\n {\n if(availableAmmo > 0)\n {\n System.out.println(\"Pew Pew\");\n availableAmmo--; \n damageCaused = randomDamageGenerator.nextInt(450);\n return damageCaused;\n }\n else return -1;\n }", "private void shoot() {\n\t\tif (playerList.size() > 0) {\n\t\t\tif (!someoneLose) {\n\t\t\t\tPlayer target = null;\n\t\t\t\tint remainingShips = SHIP_COUNT + 1;\n\t\t\t\tfor (Player player : playerList) {\n\t\t\t\t\tif (player.getRemainingShips() < remainingShips) {\n\t\t\t\t\t\ttarget = player;\n\t\t\t\t\t\tremainingShips = player.getRemainingShips();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSector targetSector = target.findFreeSector();\n\t\t\t\tlastTarget = targetSector.getMiddle();\n\t\t\t\tShootingThread st = new ShootingThread(chordImpl, targetSector.getMiddle());\n\t\t\t\tst.start();\n\t\t\t}\n\t\t}\n\t}", "void OnSpeedChanges(float speed);", "public void updateSpeed() {\n\t\t// should work b/c of integer arithmetic\n\t\tif(isTwoPlayer)\n\t\t\treturn;\n\t\t//System.out.println(\"speed up factor: \" + speedUpFactor);\n\t\t//System.out.println(\"numlinescleared/6: \" + numLinesCleared/6);\n\t\tif (speedUpFactor != numLinesCleared/6) {\n\t\t\t// speed by 10% every lines cleared, needs to be checked\n\t\t\tspeedUpFactor = numLinesCleared/6;\n\t\t\tif(!(defaultSpeed - 30*speedUpFactor <= 0))\n\t\t\t\tdefaultSpeed = defaultSpeed - 30*speedUpFactor;\n\t\t\tlevel = speedUpFactor;\n\t\t}\n\t\t//System.out.println(\"default speed: \" + defaultSpeed);\n\t}", "@Override\n public void loop() {\n\n if (gamepad1.a && pow >= .01){\n pow -= .01;\n }\n\n if (gamepad1.b && pow <= .99){\n pow += .01;\n }\n robot.shooter.setPower(pow);\n\n telemetry.addData(\"Current Shooter Speed: \", pow);\n telemetry.update();\n\n //The following code should be for a normal drivetrain.\n\n robot.drive360(gamepad1.left_stick_x, -gamepad1.left_stick_y, gamepad1.right_stick_x);\n\n if (gamepad1.dpad_down && pow2 >= .01){\n pow2 -= .01;\n }\n\n if (gamepad1.dpad_up && pow2 <= .99){\n pow2 += .01;\n }\n\n //End normal drivetrain, the rest of this code is for varying the intake speed.\n\n if (gamepad1.right_bumper){\n robot.intake.setPower(pow2);\n }\n else if (gamepad1.left_bumper) {\n robot.intake.setPower(pow2 * -1);\n }\n else {\n robot.intake.setPower(0);\n }\n\n telemetry.addData(\"Current Intake Speed: \", pow2);\n telemetry.update();\n\n }", "public double getHitSpeed() {\n return hitSpeed;\n }", "public double speed()\r\n {\r\n return speed;\r\n }", "public Vector2 getSpeed() { return speed; }", "private int speed() {\n final int slowfactor = 3;\n return speed * (cd.isSlow(curpos) ? slowfactor : 1);\n }", "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "public void getGSpeedAfterJumpLand() {\n if(jumpState == JumpState.STATE_JUMP_DOWN && angle < 45) {\n groundSpeed = xSpeed;\n }\n else if(jumpState == JumpState.STATE_JUMP_DOWN && angle == 45) {\n if(Math.abs(xSpeed) > ySpeed) {\n groundSpeed = xSpeed; \n }\n else {\n groundSpeed = ySpeed*0.5*-Math.signum(Math.sin(angle));\n } \n } \n jumpState = JumpState.STATE_NOJUMP;\n springState = SpringState.STATE_NOSPRING;\n }", "public boolean isOverSpeed(){ return vehicleAvarageSpeed > roadMaxSpeed; }", "int paddleSpeed();", "public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }", "double getHitRate();", "double getHitRate();", "public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}", "public float getSpeed (){\n return speed;\n }", "public double getCurrentSpeed();", "@Override\n\tpublic\n\tvoid speed() {\n\t\t\n\t}", "@Test public void lastWins() {\n\t\tfinal String[] args = new String[]{\"-speed\", \"4\", \"-speed\", \"8\"};\n\t\tfinal CliActuators actuators = parser.parse(args, OPTIONS);\n\t\tAssert.assertEquals(\"8\", actuators.getActuatorById(\"speed\").getValue());\n\t}", "public void stopShoot(){\n\t\tshoot.set(0);\n\t}", "public boolean isShooting()\r\n\t{\r\n\t\treturn false;\r\n\t}", "public static void move()\n\t{\n\t\tswitch(step)\n\t\t{\n\t\t\tcase 0:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 1;\n\t\t\tbreak;\n\t\t\t// 1. Right wheels forward\n\t\t\tcase 1:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, .5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 2;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 3;\n\t\t\tbreak;\n\t\t\t// 2. Right wheels back\n\t\t\tcase 3:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, -.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 4;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 5;\n\t\t\tbreak;\n\t\t\t// 3. Left wheels forward\n\t\t\tcase 5:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(.5, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 6;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 7;\n\t\t\tbreak;\n\t\t\t// 4. Left wheels back\n\t\t\tcase 7:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(-.5, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 8;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 9;\n\t\t\tbreak;\n\t\t\t// 5. Intake pick up\n\t\t\tcase 9:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, 0);\n\t\t\t\t\tshoot(.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 10;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 11;\n\t\t\tbreak;\n\t\t\t// 6. Intake shoot\n\t\t\tcase 11:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, 0);\n\t\t\t\t\tpickUp(.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 12;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t// Stop and reset everything\n\t\t\tcase 12:\n\t\t\t\tsetSpeed(0, 0);\n\t\t\t\tpickUp(0);\n\t\t\t\tshoot(0);\n\t\t\t\ttimer.reset();\n\t\t\tbreak;\n\t\t}\n\t}", "org.auvua.utils.protobuffer.AUVprotocol.AUVCommand.Movement getSpeed();", "@Override\npublic int run(int speed) {\n\t\n\treturn getSpeed();\n}", "public void shoot() {\r\n\t\twhile (rounds > 1) {\r\n\t\t\trounds--;\r\n\t\t\tSystem.out.println(gunType + \" is shooting now\\n\" + rounds + \" \\nCLACK! CLACK! CLAK! CLAK! CLAK!\");\r\n\t\t\tif (rounds == 1) {\r\n\t\t\t\tSystem.out.println(\"Magazine's Empty!! \\nRELOAD!!\\nRELOAD!!!\\nRELAOD!!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public void currentSpeed()\n\t{\n\t\tif(speed == 0)\n\t\t{\n\t\t\tSystem.out.println(\"The bike is in rest\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"The bike is in motion\");\n\t\t\t\n\t\t}\n\t}", "boolean hasSimspeed();", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkSpeed() {\n\t\tboolean flag = oTest.checkSpeed();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public int getSpeed(){\r\n\t\treturn speed;\r\n\t}", "@Test\n public void RobotHitByDoubleLaserShouldTake2InDamage() {\n\n int damage = 2;\n\n //health before laser firing\n int healthRobotBeforeHit = robot4.getRobotHealthPoint();\n\n //fire lasers\n game.checkevent.checkLaserBeams(game.allLasers);\n\n //health after hit by laser\n int healthRobotAfterHit = robot4.getRobotHealthPoint();\n\n //should evaluate to true\n assertEquals(healthRobotBeforeHit, healthRobotAfterHit+damage);\n\n }", "public int getSpeed() {\n if (getDamaged() > 2) {\n return super.getSpeed() - 50;\n }\n else if (getDamaged() > 4) {\n return super.getSpeed() - 80;\n }\n \n else {\n return super.getSpeed();\n }\n }", "public void tick() {\n\r\n\t\tdouble angle = Math.atan2(getY()-y, getX()-x);\r\n\t\tif(seeking||Math.sqrt(((getX()-x)/1000)*((getX()-x)/1000)+((getY()-y)/1000)*((getY()-y)/1000))*1000>range[stage]){\r\n\r\n\t\t\tx += (int)(speed *Math.cos(angle));\r\n\t\t\ty += (int)(speed *Math.sin(angle));\t\t\r\n\t\t}else if(stage==0){\r\n\t\t\tstage=1;\r\n\t\t}\r\n\t\telse seeking = true;\r\n\t\tif(health<=0)\r\n\t\t{\r\n\t\t\tHandler.removeObject(this);\r\n\t\t\trage = rage + 1;\r\n\r\n\t\t}\r\n\t}", "void setSpeed(RobotSpeedValue newSpeed);", "public int getAttackspeed(){\n\t\treturn attackspeed;\n\t}", "private void enemiesWillShoot(Graphics2D g2d, GameState state) {\n if (numOfRenderShoot == 75) {\n numOfRenderShoot = 0;\n for (int i = 0; i < state.getEnemyTanks().size(); i++) {\n if (state.getEnemyTanks().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyTanks().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyTanks().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyTanks().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyMissiles().add(new EnemyMissile(this, state, 10\n , state.getEnemyTanks().get(i)));\n state.getEnemyMissiles().get(state.getEnemyMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n for (int i = 0; i < state.getEnemyCars().size(); i++) {\n if (state.getEnemyCars().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyCars().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyCars().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyCars().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyBullets().add(new EnemyBullet(this, state, 20\n , state.getEnemyCars().get(i)));\n state.getEnemyBullets().get(state.getEnemyBullets().size() - 1).bulletDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n for (int i = 0; i < state.getEnemyWallTurrets().size(); i++) {\n if (state.getEnemyWallTurrets().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyWallTurrets().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyWallTurrets().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyWallTurrets().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyWallTurretMissiles().add(new EnemyWallTurretMissile(this, state, 15\n , state.getEnemyWallTurrets().get(i)));\n state.getEnemyWallTurretMissiles().get(state.getEnemyWallTurretMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n\n for (int i = 0; i < state.getEnemyTurrets().size(); i++) {\n if (state.getEnemyTurrets().get(i).getLocY() < state.getTankLocY() + 500 && state.getEnemyTurrets().get(i).getLocY() > state.getTankLocY() - 400 &&\n state.getEnemyTurrets().get(i).getLocX() < state.getTankLocX() + 800 && state.getEnemyTurrets().get(i).getLocX() > state.getTankLocX() - 500) {\n state.getEnemyHomingMissiles().add(new EnemyHomingMissile(this, state, 15\n , state.getEnemyTurrets().get(i)));\n state.getEnemyHomingMissiles().get(state.getEnemyHomingMissiles().size() - 1).missileDirection(state);\n AudioPlayer enemyGunShotSFX = new AudioPlayer(\"sound effects/enemyshot.wav\", 0);\n }\n }\n }\n for (EnemyMissile enemyMissile : state.getEnemyMissiles()) {\n enemyMissile.paint(g2d, state);\n }\n for (EnemyBullet enemyBullet : state.getEnemyBullets()) {\n enemyBullet.paint(g2d, state);\n }\n for (EnemyWallTurretMissile enemyWallTurretMissile : state.getEnemyWallTurretMissiles()) {\n enemyWallTurretMissile.paint(g2d, state);\n }\n for (EnemyHomingMissile enemyHomingMissile : state.getEnemyHomingMissiles()) {\n enemyHomingMissile.paint(g2d, state);\n }\n }", "protected float getMovementSpeed() {\r\n\t\tfloat speed = getSpeed();\r\n\t\treturn speed / 17f + (float) Math.pow(Math.sqrt(speed), 1.225f) * 0.985f;\r\n\t}", "public int getSpeed() {\r\n return speed;\r\n }", "@Override\n\tpublic Bullet shoot(int hx, int hy) {\n\t\treturn null;\n\t}", "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }", "@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+20;\n\t\t}", "public boolean shooting(){\n\t\t\tif(x==tmp || x==tmp1 || x==tmp2 || x == tmp3){\n\t\t\t\treturn true; \n\t\t\t}\n\t\t\telse \n\t\t\t\treturn false; \n\t}", "public void setSpeed(int value) {\n this.speed = value;\n }", "public void strafeRightTimer()\r\n\t{\r\n\t\tif(timer.get() < Config.Auto.timeStrafe)\r\n\t\t{\r\n\t\t\tdrive.setSpeed(0, 0, Config.Auto.strafeSpeed, Config.Auto.strafeSpeed);\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeDriveTowardTote)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in second else if\");\r\n\t\t\tdrive.setSpeed(Config.Auto.driveTowardToteSpeed, Config.Auto.driveTowardToteSpeed, 0, 0);\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeStrafeBackwards)\r\n\t\t\tdrive.setSpeed(0, 0, -Config.Auto.strafeSpeed, -Config.Auto.strafeSpeed);\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}" ]
[ "0.72938687", "0.68879545", "0.686076", "0.68338585", "0.67943215", "0.673251", "0.66601014", "0.65689623", "0.6527464", "0.64954907", "0.64954907", "0.64954907", "0.64954907", "0.64954907", "0.64954907", "0.64352274", "0.642966", "0.642966", "0.642966", "0.642966", "0.642966", "0.642966", "0.6409952", "0.63726604", "0.63726604", "0.63480437", "0.6334802", "0.63332087", "0.6330175", "0.6330175", "0.63187194", "0.6317726", "0.63015854", "0.6296403", "0.6291234", "0.62902635", "0.628562", "0.62851244", "0.62813485", "0.62783533", "0.6222321", "0.62193424", "0.62159884", "0.6213137", "0.6195343", "0.61854994", "0.6174127", "0.6146425", "0.6143767", "0.6140816", "0.6139557", "0.61346966", "0.61263716", "0.6124263", "0.6119468", "0.6114385", "0.6098331", "0.60939616", "0.60875547", "0.6081931", "0.6073967", "0.60596716", "0.60490525", "0.6048386", "0.60463697", "0.6034486", "0.6030379", "0.60289365", "0.6009789", "0.6007128", "0.6007128", "0.60056835", "0.60052305", "0.5999309", "0.5997484", "0.59952384", "0.59906757", "0.59876674", "0.5981764", "0.5978522", "0.59717274", "0.5967165", "0.5963426", "0.5961158", "0.5949349", "0.5946696", "0.594544", "0.5937896", "0.5937549", "0.5930795", "0.5927566", "0.59226465", "0.59141314", "0.5909389", "0.5907478", "0.5907082", "0.5905515", "0.59017736", "0.58986074", "0.58949107" ]
0.68413043
3
This method will be called once per scheduler run
@Override public void periodic() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "protected abstract void scheduler_init();", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@Override\n public void run() {\n schedule();\n }", "@Override\n public void reportScheduler() {\n }", "private void scheduleJob() {\n\n }", "@Override\n protected Scheduler scheduler() {\n return scheduler;\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "public static void flushScheduler() {\n while (!RuntimeEnvironment.getMasterScheduler().advanceToLastPostedRunnable()) ;\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic() {\n\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "protected void runEachDay() {\n \n }", "@Override\n public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }", "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.SECONDS);\n }", "@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "public void generateSchedule(){\n\t\t\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "@Override\n public void run() {\n createScheduleFile();\n createWinnerScheduleFile();\n }", "@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }", "protected abstract String scheduler_next();", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.DAYS);\n }", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "protected void runEachHour() {\n \n }", "@Override\n public void autonomousPeriodic()\n {\n commonPeriodic();\n }", "protected void runEachMinute() {\n \n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tOI.refreshAll();\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "@Override\n public void syncState() {\n scheduledCounter.check();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "protected void beforeJobExecution() {\n\t}" ]
[ "0.79959375", "0.71370137", "0.7053971", "0.6965585", "0.69561255", "0.6893155", "0.68800586", "0.6876765", "0.67826825", "0.67659134", "0.6764156", "0.67577356", "0.6701485", "0.6687244", "0.6663779", "0.6658108", "0.6658108", "0.6658108", "0.6658108", "0.6644757", "0.6644757", "0.6644757", "0.6644757", "0.6644757", "0.6644757", "0.66429067", "0.6637915", "0.66273797", "0.66178864", "0.66178864", "0.66178864", "0.6614001", "0.65720326", "0.65580493", "0.6552124", "0.655197", "0.6537553", "0.6512464", "0.6478613", "0.645125", "0.6445831", "0.643673", "0.64337045", "0.64049494", "0.6391861", "0.6391861", "0.6391861", "0.6374168", "0.6369688", "0.6369592", "0.63500774", "0.63436323", "0.63429624", "0.63429624", "0.6324376", "0.63060725", "0.6303406", "0.6298463", "0.62968045", "0.6295609", "0.6295192", "0.6289829", "0.6271111", "0.6271111", "0.6271111", "0.6271111", "0.62665445" ]
0.0
-1
Evaluate statement represented as string.
public String evaluate(String statement) { // TODO: Implement the logic here if (statement == null | statement == ""){ return null; } String addition = "+"; String substraction = "-"; String multiplication = "*"; String division = "/"; String leftbracket = "("; String rightbracket = ")"; Stack<String> temporaryStack = new Stack<>(); Stack<String> inputStack = new Stack<>(); Stack<String> outputStack = new Stack<>(); Stack<String> stackOperators = new Stack<>(); Stack<String> reverseStack = new Stack<>(); Stack<Double> computingStack = new Stack<>(); String crutch = "crutch"; stackOperators.push(crutch); inputStack.push(crutch); Double leftNumber; Double rightNumber; Double outResult; int stackCounter = 1; int reverseCounter = 0; String solution; if (statement.contains(",") | statement.contains("..") | statement.contains("//")| statement.contains("**") | statement.contains("++") | statement.contains("--")) { return null; } //преобразование выражения в обратную польскую нотацию StringTokenizer stTok = new StringTokenizer(statement, "+-*/()", true); while (stTok.hasMoreTokens()) { temporaryStack.push(stTok.nextToken()); stackCounter++; } while (!temporaryStack.isEmpty()){ inputStack.push(temporaryStack.peek()); temporaryStack.pop(); } for (int i=1; i<stackCounter; i++){ if (Character.isDigit(inputStack.peek().charAt(0))){ outputStack.push(inputStack.peek()); inputStack.pop(); } else if (stackOperators.peek().equals(crutch) && (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction) | inputStack.peek().equals(multiplication) | inputStack.peek().equals(division))){ stackOperators.push(inputStack.peek()); inputStack.pop(); } else if (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction)){ while (stackOperators.peek().equals(addition) | stackOperators.peek().equals(substraction) | stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){ outputStack.push(stackOperators.peek()); stackOperators.pop(); } stackOperators.push(inputStack.peek()); inputStack.pop(); } else if (inputStack.peek().equals(multiplication) | inputStack.peek().equals(division)){ while (stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){ outputStack.push(stackOperators.peek()); stackOperators.pop(); } stackOperators.push(inputStack.peek()); inputStack.pop(); } else if (inputStack.peek().equals(leftbracket)){ stackOperators.push(inputStack.peek()); inputStack.pop(); } else if (inputStack.peek().equals(rightbracket)){ while (!stackOperators.peek().equals(leftbracket)){ outputStack.push(stackOperators.peek()); stackOperators.pop(); } if (stackOperators.peek().equals(crutch)){ return null; } inputStack.pop(); stackOperators.pop(); } } while (!stackOperators.peek().equals(crutch)){ if (stackOperators.peek().equals(leftbracket) | stackOperators.peek().equals(rightbracket)){ return null; } else { outputStack.push(stackOperators.peek()); stackOperators.pop(); } } while (!outputStack.isEmpty()){ reverseStack.push(outputStack.peek()); outputStack.pop(); reverseCounter++; } //вычисление выражения for (int i=0; i<reverseCounter; i++){ if (Character.isDigit(reverseStack.peek().charAt(0))) { computingStack.push(Double.parseDouble(reverseStack.peek())); } else if (reverseStack.peek().equals(addition)){ rightNumber = computingStack.peek(); computingStack.pop(); leftNumber = computingStack.peek(); computingStack.pop(); outResult = leftNumber + rightNumber; computingStack.push(outResult); } else if (reverseStack.peek().equals(substraction)){ rightNumber = computingStack.peek(); computingStack.pop(); leftNumber = computingStack.peek(); computingStack.pop(); outResult = leftNumber - rightNumber; computingStack.push(outResult); } else if (reverseStack.peek().equals(multiplication)){ rightNumber = computingStack.peek(); computingStack.pop(); leftNumber = computingStack.peek(); computingStack.pop(); outResult = leftNumber * rightNumber; computingStack.push(outResult); } else if (reverseStack.peek().equals(division)){ rightNumber = computingStack.peek(); computingStack.pop(); leftNumber = computingStack.peek(); computingStack.pop(); if (rightNumber!=0){ outResult = leftNumber / rightNumber; computingStack.push(outResult); } else return null; } reverseStack.pop(); } DecimalFormat myFormatter = new DecimalFormat("#.####"); String format = myFormatter.format(computingStack.peek()); solution = format.replace( ',', '.'); return solution; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String evaluate();", "public String evaluate(String expression);", "public String eval()\r\n\t{\r\n\t\treturn eval(null, null);\r\n\t}", "public Object eval(String expression) throws Exception;", "public String evaluate(final String jsExpression);", "Hojas eval();", "@Test\r\n public void testEval__call__1() throws ScriptException {\r\n Object value = engine.eval(\"java.lang.String()\");\r\n Assert.assertEquals(\"\", value);\r\n }", "public static IValueNode eval(@NonNull final String s) {\n return compile(s).eval();\n }", "protected abstract String assemble(Statement statement);", "public Object eval (Object expression);", "@Test\n public void testStringLiteral() throws Exception {\n String sql = \"SELECT 'abc' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"abc\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }", "public String convertStatement (String oraStatement);", "public String convertStatement (String oraStatement);", "public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }", "public String printSqlEvaluation() {\r\n boolean skipParameters = false;\r\n if (sql == null || sql.trim().length() == 0) {\r\n throw new IllegalArgumentException(\"There is no SQL statement to evaluate\");\r\n }\r\n skipParameters = !sql.contains(SQL_TOKEN);\r\n if (!skipParameters) {\r\n if (params == null || params.length == 0) {\r\n throw new IllegalArgumentException(\"The parameters you try to bound are empty\");\r\n }\r\n }\r\n int total = countReplacements(sql);\r\n if (total != params.length) {\r\n throw new IllegalArgumentException(\"The total of parameters and tokens are not the same\\nParameters: \"\r\n + params.length + \"\\nTokens: \" + total + \"\\n\" + sql);\r\n }\r\n StringBuilder sb = new StringBuilder(sql);\r\n List<String> paramsEval = new ArrayList<String>();\r\n for (Object p : params) {\r\n String finalReplacement = getFinalReplacement(p);\r\n paramsEval.add(finalReplacement);\r\n findAndReplace(sb, finalReplacement);\r\n }\r\n StringBuffer printSb = new StringBuffer();\r\n if (total != 0) {\r\n printSb.append(\"\\nParameters to be replaced in sql statement: {\" + total + \"} => \" + paramsEval);\r\n for (int i = 1; i <= paramsEval.size(); i++) {\r\n printSb.append(\"\\nSetting SQL statement parameter value: column index \" + i + \", parameter value [\"\r\n + paramsEval.get(i - 1) + \"]\");\r\n }\r\n }\r\n printSb.append(\"\\nSQL>\\n\" + sb + \"\\n\");\r\n this.setSql(sb.toString());\r\n if (log.isDebugEnabled()) {\r\n log.debug(\"Details in SQL statements\" + printSb);\r\n }\r\n return printSb.toString();\r\n }", "public interface IStmt {\n\n String toStr();\n PrgState execute(PrgState state) throws StmtException;\n\n}", "public String evaluateExpression(ValueExpression expr,CodeExecutionContext execCtx) throws JavascribeException;", "public String eval(String p1 ) {\n\t}", "public String getStatement();", "public String wrapStatement(String statement);", "private void jetExprStr(){\n\t\texprType = Z3MiscFunctions.v().getExprType(rExpr);\n\t\tswitch(exprType){\n\t\t\tcase BINOP:\n\t\t\t\tjetBinopExprStr();\n\t\t\t\tbreak;\n\t\t\tcase CAST:\n\t\t\t\tjetCastExprStr();\n\t\t\t\tbreak;\n\t\t\tcase INVOKE:\n\t\t\t\tjetInvokeExpr();\n\t\t\t\tbreak;\n\t\t\tcase NEWARRAY:\n\t\t\t\tjetNewArrayExpr();\n\t\t\t\tbreak;\n\t\t\tcase NEWEXPR:\n\t\t\t\tjetNewExpr();\n\t\t\t\tbreak;\n\t\t\tcase UNOP:\n\t\t\t\tjetUnopExpr();\n\t\t\t\tbreak;\n\t\t\tcase INSTANCEOF:\n\t\t\t\t//TODO\n\t\t\t\tassert(false);\n\t\t\t\tbreak;\n\t\t\tcase NEWMULIARRAY:\n\t\t\t\t//TODO\n\t\t\t\tassert(false);\n\t\t\t\tbreak;\n\t\t}\n\t}", "public Expression determine(String s);", "public T evaluate(String expr) {\n List<Token> tokens = ExpressionParser.parse(expr);\n Expression expression = ExpressionBuilder.build(tokens);\n Visitor<T> visitor = new ExpressionVisitor<>();\n return visitor.visit(expression);\n }", "private void assertSExpr(String script, String sexpr) {\n try {\n Lexer lexer = new Lexer(new StringReader(script));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n assertEquals(sexpr, node.toString());\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }", "public PyObject eval(String s) {\n return null;\n }", "public void storeEval(final String expression, final String variableName);", "public static String eval(final String valueToEval, String strategy, Object controller)\n throws ScriptException {\n Bindings bindings = new SimpleBindings();\n bindings.put(\"controller\", controller);\n\n Object res = null;\n if (\"eval_reader\".equals(strategy)) {\n Reader reader = new StringReader(valueToEval);\n res = groovyEngine.eval(reader, bindings);\n } else if (\"compile\".equals(strategy)) {\n // we're doing it with groovy, but could have used another language like js\n CompiledScript script = ((Compilable) groovyEngine).compile(valueToEval);\n\n res = script.eval(bindings);\n } else if (\"error\".equals(strategy)) {\n groovyEngine.eval(new ErrorReader());\n } else { // eval_string\n res = groovyEngine.eval(valueToEval, bindings);\n }\n\n return (res != null) ? res.toString() : \"(null)\";\n }", "@Test\n public void testStringLiteralEscapedTick() throws Exception {\n String sql = \"SELECT 'O''Leary' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"O'Leary\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }", "@Test\n public void testStringLiteralEscapedTick3() throws Exception {\n String sql = \"SELECT 'a''b''c' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"a'b'c\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }", "@Override\n public Object evaluate(String script) throws CompilationFailedException {\n return getShell().evaluate(script);\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tCocos2dxJavascriptJavaBridge.evalString(rStr);\n\t\t\t\t\t}", "public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}", "public abstract Object eval();", "Result evaluate();", "public String compile () throws IOException, RhinoEvaluatorException {\n return compile(1, null);\n }", "EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }", "public int expressionEval(String expression){\n\n int result = 0;\n\n\n\n return result;\n }", "@Test\n public void testStringLiteralEscapedTick2() throws Exception {\n String sql = \"SELECT '''abc''' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"'abc'\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }", "public String getStatement() {\r\n\t\treturn statement;\r\n\t}", "private String processStatement() {\n StringBuilder result = new StringBuilder();\n //If the line is an instantiation or assignment statement\n if(line.contains(\"=\")) {\n //We get the parts of string before and after the '=' sign.\n String[] parts = line.split(\"=\");\n //Now we get the first and second part in separate strings.\n String firstPart = parts[0].trim();\n String secondPart = parts[1].trim();\n //Remove unnecessary spaces from the first part of the line.\n firstPart = removeUnnecessarySpaces(firstPart);\n //Split the parts further into single words.\n String[] firstPartWords = firstPart.split(\"\\\\s+\");\n\n //Now, process the first part of the line\n for(int i=0; i<firstPartWords.length; i++) {\n String word = firstPartWords[i];\n //Boolean value to check if this word is the last word\n boolean isLast = i==firstPartWords.length-1;\n //Now process each word\n processWordInFirstPart(word, result, isLast);\n }\n\n //Boolean value to check if this statement has anything to\n //do with objects. If secondPart contains 'new'.\n boolean relatedWithObject = secondPart.contains(\"new \");\n //Now adjust the value of secondPart for assigning.\n secondPart = secondPart.replace(\"new\", \"\");\n secondPart = secondPart.trim();\n\n //Now we have the result after processing the first part of\n //this statement.\n //If there are no spaces in the firstPart string, then this\n //is an assignment statement.\n if(firstPart.indexOf(' ')==-1) {\n if(relatedWithObject) {\n //If the second part of the string contains square and not round\n //brackets, this is not an object but an array.\n if(!secondPart.contains(\"(\") && secondPart.contains(\"[\"))\n result.insert(0,\"The array \").append(\" is initialized to value \").\n append(secondPart);\n //Else, this is obviously an object.\n else\n result.insert(0, \"The object \").append(\" is initialized to value \").\n append(secondPart);\n }\n else {\n //Now, we format the assignment statement.\n //Since there can be more than one assignments in the same\n //line, we add all the parts.\n //Here, \\u2190 is the left arrow in UTF-8.\n char arrow = '\\u2190';\n parts = line.split(\"\\\\s+\");\n result = new StringBuilder();\n for(String part : parts) {\n if(part.equals(\"=\")) {\n result.append(arrow).append(\" \");\n }\n else {\n result.append(part).append(\" \");\n }\n }\n }\n }\n //If this statement is not an assignment statement, then this\n //is an initialization statement.\n else {\n if(relatedWithObject) {\n result.append(\" is created with value \").append(secondPart).append(\".\");\n }\n //If the second part (the value) has something to do\n //with arrays, and not objects.\n else if(hasArrayAsMajorValue(secondPart)) {\n //Then process the second part according to array values.\n result.append(\" is instantiated to value in \").append(processArrayValue(secondPart));\n }\n else {\n result.append(\" is instantiated to value \").append(secondPart).append(\".\");\n }\n }\n }\n //If line does not contain \"=\" sign.\n else {\n //Incrementing statement.\n if(line.contains(\"++\")) {\n int index = line.indexOf('+');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Incremented.\");\n }\n //Decrementing statement.\n else if(line.contains(\"--\")) {\n int index = line.indexOf('-');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Decremented.\");\n }\n //If line has a dot operator, it means this line calls a function.\n else if(line.contains(\".\")) {\n String[] parts = line.split(\"\\\\.\");\n String object = parts[0].trim();\n String method = parts[1].trim();\n result.append(\"The function \").append(method).append(\" from object \").\n append(object).append(\" is called.\");\n if(parts.length>2) {\n result = new StringBuilder();\n result.append(removeUnnecessarySpaces(line)).append(\" is performed respectively.\");\n }\n }\n //If the line contains a bracket, it is calling a member method.\n else if(line.contains(\"(\")) {\n result.append(\"The member method \").append(line).append(\" is called.\");\n }\n else {\n String[] words = line.split(\"\\\\s+\");\n for(int i=0; i<words.length; i++) {\n String word = words[i];\n boolean isLast = i==words.length-1;\n processWordInFirstPart(word, result, isLast);\n }\n result.append(\" is declared.\");\n }\n }\n return result.toString();\n }", "public LiteralExpression (String str){\n _value = str;\n }", "@Test\n public void testStringLiteralEscapedTick4() throws Exception {\n String sql = \"SELECT \\\" \\\"\\\" \\\" FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \" \\\" \");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }", "public Const evaluate();", "public T evaluate(String expr, Map<String, Expression> dataSet) {\n List<Token> tokens = ExpressionParser.parse(expr);\n Expression expression = ExpressionBuilder.build(tokens);\n Visitor<T> visitor = new ExpressionVisitor<>(dataSet);\n return visitor.visit(expression);\n }", "public String eval(String command) {\n\t\tString result;\n\t\t\tresult = eval(command, rservi);\n\t\treturn result;\n\t}", "public String getEvaluate() {\r\n return evaluate;\r\n }", "public static String evaluate( String expr ) \n {\n\tString[] arr = expr.split(\"\\\\s+\");\n\tLLStack<String> nums = new LLStack<String>();\n\tLLStack<String> noClose = new LLStack<String>();\n\tint op = 0;\n\n\tfor(String i : arr){ \n\t if(i.equals(\")\")){ //when you reach the closing parenthesis\n\t\tString top = noClose.pop(); //start going through this part of the expression\n\t\tnums.push(i); //add ( to stack for unload\n\t\t\n\t\twhile(!top.equals(\"(\")){ //until you reach the (, where the expression ends\n\t\t\t \n\t\t if(top.equals(\"+\")) op = 1;\n\t\t else if(top.equals(\"-\")) op = 2;\n\t\t else if(top.equals(\"*\")) op = 3;\n\n\t\t else nums.push(top); //if it's not an operand\n\n\t\t top = noClose.pop();\n\t\t}\n\n\t\tnoClose.push(unload(op, nums));\n\t }\n\t \n\t else noClose.push(i); //pushed into a stack of what's in this ()\n \n\t}//end of for loop \n \n\treturn noClose.peek();\n }", "public String getStatement()\n {\n return _statement;\n }", "public String getEvaluate() {\n return evaluate;\n }", "public static void statement(CommonTree ast, IRTree irt)\n {\n CommonTree ast1;\n IRTree irt1 = new IRTree();\n Token t = ast.getToken();\n int tt = t.getType();\n if (tt == WRITELN)\n {\n String a = String.valueOf(Memory.allocateString(\"\\n\"));\n irt.setOp(\"WRS\");\n irt.addSub(new IRTree(\"MEM\", new IRTree(\"CONST\", new IRTree(a))));\n }\n else if (tt == WRITE)\n {\n ast1 = (CommonTree)ast.getChild(0);\n String type = arg(ast1, irt1);\n if (type.equals(\"real\")) {\n irt.setOp(\"WRR\");\n irt.addSub(irt1);\n }\n else {\n irt.setOp(\"WRS\");\n irt.addSub(irt1);\n }\n }\n else if(tt == ASSIGN)\n {\n //try deailng with assign here\n irt.setOp(\"ASSIGN\");\n IRTree iHold = new IRTree(\"MEM\", new IRTree(\"CONST\", new IRTree(String.valueOf(Memory.allocateReal(ast.getChild(0).getText())))));\n System.out.println(\"var name = \" + ast.getChild(0).getText());\n irt.addSub(iHold);\n expression((CommonTree)ast.getChild(1), irt1);\n irt.addSub(irt1);\n }\n else if(tt == MEM)\n {\n System.out.println(\"GOT MEM TYPE\");\n }\n else {\n error(tt);\n }\n }", "private void jetStringOperation(InvokeExpr invokeExpr){\n\t\tthis.exprStr = StringModeling.modelMethod(invokeExpr, fileGenerator, stmtIdx);\n\t}", "StringExpression createStringExpression();", "public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }", "private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n // Stack for RPN - reverse polish notation\n Stack<String> stackRPN = new Stack<String>();\n // Stack for evaluating answer\n Stack<String> stackTemp = new Stack<String>();\n //splitting expression into tokens\n StringTokenizer stringTokenizer = new StringTokenizer(updateUnaryMinus(expression), separators, true);\n\n while (stringTokenizer.hasMoreTokens()) {\n String token = stringTokenizer.nextToken();\n if (isNumber(token)) {\n stackRPN.push(token);\n } else if (isOpenBracket(token)) {\n stackOperations.push(token);\n } else if (isCloseBracket(token)) {\n while (!isOpenBracket(stackOperations.lastElement())) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.pop();\n } else if (isOperator(token)) {\n while (!stackOperations.empty() && isOperator(stackOperations.lastElement())\n && getPrecedence(stackOperations.lastElement()) > getPrecedence(token)) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.push(token);\n }\n }\n while (!stackOperations.empty()) {\n stackRPN.push(stackOperations.pop());\n }\n Collections.reverse(stackRPN);\n\n // Evaluation if RPN expression\n while (!stackRPN.empty()) {\n if (isNumber(stackRPN.lastElement())) stackTemp.push(stackRPN.pop());\n else stackTemp.push(makeOperation(stackRPN.pop(), stackTemp.pop(), stackTemp.pop()));\n }\n result = stackTemp.pop();\n return result;\n }", "Value eval(String script, String name, String contentType, boolean interactive) throws Exception;", "private String evaluateExpr(String expr){\n\t\t//bigdecimal used for long user inputs\n\t\tBigDecimal num1, num2, ans, temp = new BigDecimal(\"0\");\n\t\tint check = 1;\n\t\t//find the position of function\n\t\twhile(Character.isDigit(expr.charAt(check)) || expr.charAt(check) == '.')\n\t\t\tcheck++;\n\t\t//extract numbers from expression\n\t\tnum1 = new BigDecimal(expr.substring(0,check));\n\t\tnum2 = new BigDecimal(expr.substring(check + 1,expr.length()));\n\t\t//division by zero error\n\t\tif(num2.compareTo(temp) == 0 && expr.charAt(check) == '/')\n\t\t\treturn \"Invalid\";\n\t\t//evaluate functions\n\t\tif(expr.charAt(check) == '*')\n\t\t\tans = num1.multiply(num2);\n\t\telse if(expr.charAt(check) == '+')\n\t\t\tans = num1.add(num2);\n\t\telse if(expr.charAt(check) == '/')\n\t\t\tans = num1.divide(num2, MathContext.DECIMAL32);\n\t\telse\n\t\t\tans = num1.subtract(num2);\n\t\treturn ans.toString();\n\t}", "public String getSQLString () {\n \treturn statementString;\n }", "public interface StatementHandler {\n public void statement(String subject, String property, String object,\n boolean literal);\n}", "double eval();", "public String getEvalCommand(String str) {\r\n\t\treturn null;\r\n\t}", "default Value eval(String script) throws Exception {\n return eval(script, false);\n }", "@Test\n public void stringsWork()\n {\n assertEquals( \"<%= bwah %>lol\", StringStatement1.render() );\n assertEquals( \"<%@ directive syntax %><% statement syntax %>\", StringStatement2.render() );\n assertEquals( \"<%-- comment syntax --%>\", StringStatement3.render() );\n }", "protected abstract NativeSQLStatement createNativeAsTextStatement();", "@Test\r\n public void testEval__list_context__1() throws ScriptException {\r\n Object value = engine.eval(\"<java.util java.lang> String()\");\r\n Assert.assertEquals(\"\", value);\r\n }", "@Test\n\tpublic void simple() throws Exception {\n\t\tEvalImpl t = new EvalImpl();\n\t\tassertEquals(3.0, t.eval(\"1 + 2\"), 0d);\n\t}", "public Literal getLiteralString(String literalData);", "protected abstract String statementType();", "public String visit(Statement n, String s) {\n n.f0.accept(this, null);\n return null;\n }", "public CompletableFuture<Object> eval(final String script) {\n return eval(script, null, new SimpleBindings());\n }", "public char[] evaluateExpression(char[] binaryStr1, String op, char[] binaryStr2) {\n\t\t// TODO: Implement this method.\n\t\treturn binaryStr1;\n\t}", "public void exec(String s) {\n }", "public Object parseValue(String expr);", "public static String parseExecution(String value) throws DefinitionException{\n\t\tMatcher matcher = Pattern.compile(ConfigKey.REGIX_OF_PARSE_EXPRESSION).matcher(value);\n\t\tmatcher.find();\n\t\tString result = matcher.group();\n\t\tif(StringUtils.isNotBlank(result)){\n\t\t\treturn result;\t\n\t\t}else{\n\t\t\tthrow new DefinitionException(\"expression format error\");\n\t\t}\n\t}", "private void emitStringLiteralExpression(StringLiteralExpression expression) {\n boolean containsSingleQuote = expression.string.value.contains(\"'\");\n\n if (containsSingleQuote) {\n this.prettyPrinter.append(\"\\\"\");\n } else {\n this.prettyPrinter.append(\"\\'\");\n }\n\n this.prettyPrinter.append(expression.string.value);\n\n if (containsSingleQuote) {\n this.prettyPrinter.append(\"\\\"\");\n } else {\n this.prettyPrinter.append(\"\\'\");\n }\n }", "R execute();", "public String getStatement(){\n return this.statement;\n }", "@Override\n public String visitLiteralExpr(Expr.Literal expr) {\n if(expr.getValue() == null) return \"null\";\n if(expr.getValue() instanceof String) return String.format(\"\\\"%s\\\"\", expr.getValue());\n return expr.getValue().toString();\n }", "Object eval(String script, int keyCount, String... params);", "private void jetCastExprStr(){\n\t\tCastExpr castExpr = (CastExpr) rExpr;\n\t\tValue immValue = castExpr.getOp();\n\t\tif(immValue instanceof Local){\n\t\t\tthis.exprStr = fileGenerator.getRenameOf(immValue, false, this.stmtIdx);\n\t\t}else{\n\t\t\tthis.exprStr = immValue.toString();\n\t\t}\n\t}", "@Test\n void scEvaluate() {\n StandardCalc sc = new StandardCalc();\n String expression = (\"( 5 * ( 6 + 7 ) ) - 2\");\n float result = 0f;\n try {\n result = sc.evaluate(expression);\n } catch (InvalidExpressionException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n assertEquals(result, 63);\n }", "public final expressionParser.evaluator_return evaluator() throws RecognitionException {\n expressionParser.evaluator_return retval = new expressionParser.evaluator_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token STRING3=null;\n expressionParser.stringExpression_return stringExpression1 = null;\n\n expressionParser.freeExpression_return freeExpression2 = null;\n\n\n CommonTree STRING3_tree=null;\n\n try {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:26:3: ( ( stringExpression | freeExpression | STRING )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:3: ( stringExpression | freeExpression | STRING )*\n {\n root_0 = (CommonTree)adaptor.nil();\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:3: ( stringExpression | freeExpression | STRING )*\n loop1:\n do {\n int alt1=4;\n switch ( input.LA(1) ) {\n case STRING:\n {\n int LA1_2 = input.LA(2);\n\n if ( (synpred1_expression()) ) {\n alt1=1;\n }\n else if ( (synpred3_expression()) ) {\n alt1=3;\n }\n\n\n }\n break;\n case EPRESSIONCHAR:\n {\n alt1=1;\n }\n break;\n case IDENT:\n case INTEGER:\n case 36:\n case 38:\n case 39:\n case 46:\n case 47:\n case 50:\n case 51:\n {\n alt1=2;\n }\n break;\n\n }\n\n switch (alt1) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:27:4: stringExpression\n \t {\n \t pushFollow(FOLLOW_stringExpression_in_evaluator98);\n \t stringExpression1=stringExpression();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, stringExpression1.getTree());\n\n \t }\n \t break;\n \tcase 2 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:28:5: freeExpression\n \t {\n \t pushFollow(FOLLOW_freeExpression_in_evaluator105);\n \t freeExpression2=freeExpression();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, freeExpression2.getTree());\n\n \t }\n \t break;\n \tcase 3 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:29:5: STRING\n \t {\n \t STRING3=(Token)match(input,STRING,FOLLOW_STRING_in_evaluator111); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t STRING3_tree = (CommonTree)adaptor.create(STRING3);\n \t adaptor.addChild(root_0, STRING3_tree);\n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public String parseVariable(String statement) {\r\n if (Asserts.isNullString(statement)) {\r\n return statement;\r\n }\r\n String[] strs = statement.split(SystemConfiguration.getInstances().getSqlSeparator());\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < strs.length; i++) {\r\n String str = strs[i];\r\n if (str.trim().length() == 0) {\r\n continue;\r\n }\r\n str = strs[i];\r\n if (str.contains(FlinkSQLConstant.FRAGMENTS)) {\r\n String[] strs2 = str.split(FlinkSQLConstant.FRAGMENTS);\r\n if (strs2.length >= 2) {\r\n if (strs2[0].length() == 0) {\r\n throw new ExpressionParserException(\"Illegal variable name.\");\r\n }\r\n String valueString = str.substring(str.indexOf(FlinkSQLConstant.FRAGMENTS) + 2);\r\n this.registerSqlFragment(strs2[0], replaceVariable(valueString));\r\n } else {\r\n throw new ExpressionParserException(\"Illegal variable definition.\");\r\n }\r\n } else {\r\n sb.append(replaceVariable(str));\r\n }\r\n }\r\n return sb.toString();\r\n }", "public int evaluate(){\r\n\t\tString value = expressionTree.getValue();\r\n\t\tint result = 0;\r\n\t\tif (isNumber(value)){\r\n\t\t\treturn stringToNumber(value);\r\n\t\t}\r\n\t\tif (value.equals(\"+\")){\r\n\t\t\tresult = 0;\r\n\t\t\tfor (Iterator<Tree<String>> i = expressionTree.iterator(); i.hasNext();){\r\n\t\t\t\tresult += (new Expression(i.next().toString())).evaluate();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (value.equals(\"*\")){\r\n\t\t\tresult = 1;\r\n\t\t\tfor (Iterator<Tree<String>> i = expressionTree.iterator(); i.hasNext();){\r\n\t\t\t\tresult *= (new Expression(i.next().toString())).evaluate();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (value.equals(\"-\")){\r\n\t\t\tresult = (new Expression(expressionTree.getChild(0).toString())).evaluate() -\r\n\t\t\t(new Expression(expressionTree.getChild(1).toString())).evaluate();\r\n\t\t}\r\n\t\tif (value.equals(\"/\")){\r\n\t\t\tresult = (new Expression(expressionTree.getChild(0).toString())).evaluate() /\r\n\t\t\t(new Expression(expressionTree.getChild(1).toString())).evaluate();\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public final String mo115440c(String str, Object[] objArr, C46443a aVar) {\n if (str != null) {\n C46403a a = this.f119474e.mo115446a(\"executeForString\", str, objArr);\n int i = a.f119496h;\n try {\n C46405c e = m145774e(str);\n a.f119497i = e.f119507e;\n try {\n m145770c(e);\n m145765a(e, objArr);\n m145768b(aVar);\n String nativeExecuteForString = nativeExecuteForString(this.f119482o, e.f119505c);\n mo115430a(aVar);\n mo115428a(e);\n this.f119474e.mo115448a(i);\n return nativeExecuteForString;\n } catch (Throwable th) {\n mo115428a(e);\n throw th;\n }\n } catch (RuntimeException e2) {\n try {\n if (((e2 instanceof SQLiteDatabaseLockedException) || (e2 instanceof SQLiteTableLockedException)) && this.f119471b != null) {\n this.f119471b.mo115490a(str);\n }\n this.f119474e.mo115449a(i, (Exception) e2);\n throw e2;\n } catch (Throwable th2) {\n this.f119474e.mo115448a(i);\n throw th2;\n }\n }\n } else {\n throw new IllegalArgumentException(\"sql must not be null.\");\n }\n }", "String getString_lit();", "default Value eval(String script, boolean interactive) throws Exception {\n return eval(script, \"<eval>\", interactive);\n }", "public interface Expression {\n public boolean interpret(String context);\n}", "public String toStringEval() throws BwException {\n\t\tString str = \"(\";\n\t\tif (this.title != null)\n\t\t\tstr += this.title;\n\t\telse if (this.varName != null)\n\t\t\tstr += this.varName;\n\t\tif (this.minVal != null)\n\t\t\tstr += \",\" + this.minVal.toStringEval();\n\t\tif (this.curVal != null)\n\t\t\tstr += \",\" + this.curVal.toStringEval();\n\t\tif (this.maxVal != null)\n\t\t\tstr += \",\" + this.maxVal.toStringEval();\n\t\tstr += \")\";\n\t\treturn str;\n\t}", "public interface Expression {\n public boolean interpret(String context);\n}", "public interface Expression {\n public boolean interpret(String context);\n}", "private void parseSimpleStatement() {\n Operand operand = parseDesignator();\n\n if (nextToken.kind == Token.ASSIGN) {\n check(Token.ASSIGN);\n if (operand.kind != Operand.KIND_ELEMENT\n && operand.kind != Operand.KIND_FIELD\n && operand.kind != Operand.KIND_LOCAL\n && operand.kind != Operand.KIND_STATIC) {\n error(\"Illegal left-hand side operand in assignment\");\n }\n\n Struct type = parseExpr().type;\n if (!(type.assignableTo(operand.type))) {\n error(\"Incompatible types in assignment\");\n }\n\n code.store(operand);\n } else {\n if (operand.kind != Operand.KIND_METHOD) {\n error(\"Designator isn't a valid method\");\n }\n parseActPars(operand.object);\n\n code.put(Code.OP_CALL);\n code.put2(operand.address);\n if (operand.kind == Operand.KIND_METHOD\n && operand.type != SymbolTable.STRUCT_NONE) {\n code.put(Code.OP_POP);\n }\n }\n check(Token.SEMICOLON);\n }", "public String eval(String input)\n\t{\n\t\ttry\n\t\t{\n\t\tProgramRule ptmp = new ProgramRule(this.value);\n\t\tString res = \"\";\n\t\tres = ptmp.transform(input);\n\t\t//recursively evaluate the children nodes.\n\t\tfor(ParseTreeNode ptn: this.children)\n\t\t{\n\t\t\tptn.eval(input);\n\t\t}\n\t\tthis.tmpEval = res;\n\t\treturn res;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t}", "public void assertEval(final String expression, final String textPattern);", "private Object eval(Fact expr) {\n if (expr.getBool() != null) {\n if (\"true\".equals(expr.getBool())) {\n return true;\n } else {\n return false;\n }\n } else if (expr.getString() != null) {\n return expr.getString();\n } else if (expr.getIdent() != null) {\n if (RESULT_TYPE_VARIABLE.equals(resultType)) {\n return expr.getIdent();\n }\n return scope.getVariable(expr.getIdent());\n } else if (expr.getExpr() != null) {\n return eval(expr.getExpr(), resultType);\n } else if (expr.getLocator() != null) {\n return evalLocator(expr.getLocator());\n } else {\n return expr.getNumber();\n }\n }", "String getLiteral();", "String getLiteral();", "public ASTNode visitEvaluate(EvaluateContext ctx) {\n ASTExpr expr = (ctx.expr() == null) ? null : (ASTExpr)visit(ctx.expr());\n return new ASTEval(ctx, expr);\n }", "public String toString() {\n return m_expression;\n }", "@Test\n public void testToStringWithSQL() throws SQLException {\n try (PreparedStatement stmt = this.proxy\n .prepareStatement(\"SELECT * FROM country WHERE lang = ? OR callingcode = ?\")) {\n stmt.setString(1, \"de\");\n stmt.setInt(2, 42);\n String sql = stmt.toString();\n assertEquals(\"SELECT * FROM country WHERE lang = 'de' OR callingcode = 42\", sql);\n LOG.info(\"sql = \\\"{}\\\"\", sql);\n }\n }", "public String evaluate(String expression, String variable) {\n Lexer lex = new Lexer(expression);\n Parser parser = new Parser(lex);\n Expression exp;\n exp = parser.parse();\n String output = differentiate(exp, variable);\n return output;\n \n }" ]
[ "0.7016432", "0.6811866", "0.6225654", "0.6079348", "0.6046474", "0.5888169", "0.5843089", "0.5804055", "0.5732553", "0.57273906", "0.57065547", "0.56871796", "0.56871796", "0.5658676", "0.5649615", "0.5613695", "0.56077355", "0.55234694", "0.5496534", "0.5495888", "0.54933894", "0.54910374", "0.5485309", "0.53815067", "0.5379327", "0.5369324", "0.53428006", "0.5322987", "0.5286499", "0.527813", "0.5277935", "0.52125615", "0.52067757", "0.51971644", "0.51828665", "0.51569045", "0.5156589", "0.5153191", "0.51306564", "0.5118147", "0.50917685", "0.5090119", "0.50789446", "0.5076383", "0.5037771", "0.50240463", "0.5021176", "0.5017451", "0.5016421", "0.5012091", "0.5007566", "0.49922192", "0.4992176", "0.49855214", "0.49803692", "0.4953067", "0.49456802", "0.49453753", "0.49445015", "0.49240848", "0.49236187", "0.4920922", "0.49150965", "0.49146643", "0.49059635", "0.48909467", "0.48667508", "0.48653275", "0.48521242", "0.4850784", "0.4844042", "0.4840798", "0.48405656", "0.48343033", "0.48312056", "0.4831054", "0.48305625", "0.48224294", "0.48159203", "0.48091093", "0.4807432", "0.47983256", "0.47830755", "0.47811803", "0.47798362", "0.47789034", "0.4778686", "0.47774082", "0.47658977", "0.47658977", "0.4761938", "0.47553852", "0.47538477", "0.47518793", "0.4749666", "0.4749666", "0.47461024", "0.47378042", "0.47372055", "0.47153082" ]
0.51244146
39
NOTE: This test purely tests that when you are logged into Sugar and then navigate away and log into Portal, your session is still active when you navigate back to sugar(). This means once a test that follows this behavior is executed and Cleanup is run, the go(baseURL) will not require us to log in.
@Test public void portalLoginAfterSugarLogin() throws Exception { VoodooUtils.voodoo.log.info("Running portalLoginAfterSugarLogin()..."); // Log into Portal portal.loginScreen.navigateToPortal(); portal.login(portalUser); VoodooUtils.voodoo.log.info("If this message appears, that means we logged in successfully without error."); portal.navbar.userAction.assertVisible(true); VoodooUtils.voodoo.log.info("portalLoginAfterSugarLogin() completed."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void loginRegistersSessionRoutes_GlobalCanBeAdded() {\n getDriver().get(getTestURL()+\"global\");\n\n WebElement login = findElement(By.id(\"login-field\"));\n WebElement pwd = findElement(By.id(\"password-field\"));\n\n login.sendKeys(\"admin\");\n pwd.sendKeys(\"admin\");\n\n // Login as admin.\n findElement(By.id(\"submit\")).click();\n\n Assert.assertEquals(\"Should have now admin view visible.\", 3,\n findElements(By.tagName(\"vaadin-checkbox\")).size());\n\n // Time and Version views should have been registered to session on login.\n Assert.assertFalse(\"Time link should be available\",\n findElements(By.id(\"time-link\")).isEmpty());\n Assert.assertFalse(\"Version link should be available\",\n findElements(By.id(\"version-link\")).isEmpty());\n\n // Register Global to application scope\n findElement(By.id(\"global-checkbox\")).click();\n\n // Now global should be available\n getDriver().get(getTestURL()+\"global\");\n\n Assert.assertFalse(\"Global view should have been available\",\n findElements(By.id(\"remove-global\")).isEmpty());\n\n // as we are still in the session version and view should be available\n getDriver().get(getTestURL()+\"version\");\n Assert.assertFalse(\"Version view should have been available\",\n findElements(By.id(\"version-return\")).isEmpty());\n\n getDriver().get(getTestURL()+\"time\");\n Assert.assertFalse(\"Time view should have been available\",\n findElements(By.id(\"time-return\")).isEmpty());\n\n open();\n\n findElement(By.id(\"logout\")).click();\n\n // We should be at login view, but have a global view registered\n Assert.assertFalse(\"Global link should be available on login\",\n findElements(By.id(\"global-link\")).isEmpty());\n\n // now that the session was killed we should not get to time or version views\n\n getDriver().get(getTestURL()+\"version\");\n Assert.assertTrue(\"Version view shouldn't be available\",\n findElements(By.id(\"version-return\")).isEmpty());\n Assert.assertFalse(\"Login view should have been displayed\",\n findElements(By.id(\"global-link\")).isEmpty());\n\n getDriver().get(getTestURL()+\"time\");\n Assert.assertTrue(\"Time view shouldn't be available\",\n findElements(By.id(\"time-return\")).isEmpty());\n Assert.assertFalse(\"Login view should have been displayed\",\n findElements(By.id(\"global-link\")).isEmpty());\n }", "@Test\n\tpublic void portalTestFinishesWhileLoggedInAsRegularUser() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running portalTestFinishesWhileLoggedInAsRegularUser()...\");\n\n\t\t// Log into Portal\n\t\tportal.loginScreen.navigateToPortal();\n\t\tportal.login(portalUser);\n\n\t\tVoodooUtils.voodoo.log.info(\"If this message appears, that means we logged in successfully without error.\");\n\t\tportal.navbar.userAction.assertVisible(true);\n\n\t\tsugar().loginScreen.navigateToSugar();\n\t\tsugar().alerts.waitForLoadingExpiration(30000);\n\t\tsugar().logout();\n\t\tsugar().login(sugar().users.getQAUser());\n\n\t\tVoodooUtils.voodoo.log.info(\"portalTestFinishesWhileLoggedInAsRegularUser() completed.\");\n\t}", "@Test\r\n void checkSession() {\n }", "@Test\n\tpublic void testadminLogout(){\n\t\tlic.logon(\"nadmin\", \"admin\", true);\n\t\tassertTrue(loc.adminLogout(\"nadmin\"));\n\t\tassertFalse(loc.adminLogout(\"oops\"));\n\t}", "@BeforeClass\n public static void beforeStories() throws Exception {\n Thucydides.getCurrentSession().clear();\n }", "@Test(enabled = true, groups = {\"functest\", \"part a\"})\n public void testLoginLogout() throws IOException, InterruptedException {\n pm.getQicPortalLoginHelper().loginAsRole(\"provider\");\n pm.getQicPortalLoginHelper().loginAsPlanAdmin();\n System.out.println(\"Done\");\n }", "@Test\n\tpublic void testLogout() throws Exception {\n\t\tgotoHomePage();\n\t\t\n\t\t// login then logout\n\t\tlogin(\"admin\", \"123456\");\n\t\t// should redirect to home page\n\t\tAssert.assertEquals(\"SIS\", driver.getTitle());\n\t\tlogout();\n\t\t// should redirect to login page\n\t\tAssert.assertEquals(\"Login Page\", driver.getTitle());\n\t\t\n\t\t// login, go to Cart page, then logout\n\t\tlogin(\"admin\", \"123456\");\n\t\tdriver.findElement(By.linkText(\"Cart\")).click();\n\t\tAssert.assertEquals(\"Cart\", driver.getTitle());\n\t\tlogout();\n\t\t// should redirect to login page\n\t\tAssert.assertEquals(\"Login Page\", driver.getTitle());\n\t\t\n\t\t// login, go to Transcript page, then logout\n\t\tlogin(\"admin\", \"123456\");\n\t\tdriver.findElement(By.linkText(\"Transcript\")).click();\n\t\tAssert.assertEquals(\"Transcript\", driver.getTitle());\n\t\tlogout();\n\t\t// should redirect to login page\n\t\tAssert.assertEquals(\"Login Page\", driver.getTitle());\n\t\t\n\t\t// login, go to Payment page, then logout\n\t\tlogin(\"admin\", \"123456\");\n\t\tdriver.findElement(By.linkText(\"Payment\")).click();\n\t\tAssert.assertEquals(\"Payment\", driver.getTitle());\n\t\tlogout();\n\t\t// should redirect to login page\n\t\tAssert.assertEquals(\"Login Page\", driver.getTitle());\n\t\t\n\t\t// login, go to Grades page, then logout\n\t\tlogin(\"admin\", \"123456\");\n\t\tdriver.findElement(By.linkText(\"Grades\")).click();\n\t\tAssert.assertEquals(\"Grades\", driver.getTitle());\n\t\tlogout();\n\t\t// should redirect to login page\n\t\tAssert.assertEquals(\"Login Page\", driver.getTitle());\n\t\t\n\t\t// login, go to Change Password page, then logout\n\t\tlogin(\"admin\", \"123456\");\n\t\tdriver.findElement(By.linkText(\"Change Password\")).click();\n\t\tAssert.assertEquals(\"Change Password\", driver.getTitle());\n\t\tlogout();\n\t\t// should redirect to login page\n\t\tAssert.assertEquals(\"Login Page\", driver.getTitle());\n\t}", "public void testLogin() throws Exception {\n super.login();\n }", "@After\r\n\tpublic void teardown() throws FindFailed {\r\n\t\t//TODO: check if not LoginPage is displayed > then\r\n\t\tnew HomePage(s).logOut();\r\n\t\tSystemActions.closeClient(app);\r\n\t}", "@Test\n public void testStartSession() {\n startSession();\n }", "@Test(priority = 1)\n\tpublic void login() {\n\t\tlp.loginToApp();\n\t}", "@Test\n\tpublic void testRedirectToAboutUs() {\n\t\tServicesLogic.redirectToAboutUs();\n\t}", "@Test\n public void testTIM(){\n loginToVisit();\n }", "@Test(priority = 0, groups = \"test\")\r\n\tpublic void TestLogin()\r\n\t{\r\n\t\t// Step-1] Login using adminX credentials.\r\n\t login.AdminXLogin();\r\n\t extent.log(LogStatus.INFO, \"LoggedIn successfully.\");\r\n\t wait.until(ExpectedConditions.elementToBeClickable(By.linkText(\"PRODUCT\")));\r\n\t // Step-2] Open Add scheme page.\r\n\t Ops.OpenAddScheme();\r\n\t \r\n\t}", "@Test\n public void checkLoginAndLogout() {\n mInjector.authentication()\n .authenticateValidUser(USERNAME, PASSWORD)\n .checkMainScreenIsDisplayed(); // Then the main screen appears\n\n mInjector.navigationDrawer()\n .logoutUser(USERNAME) // When the user logs out\n .checkAuthScreenIsDisplayed();\n }", "@AfterClass\n public static void afterStories() throws Exception {\n Thucydides.getCurrentSession().clear();\n }", "@Test\n\tpublic void notLoggedIn(){\n\t\tdriver.get(baseURL + \"/home\");\n\t\tAssertions.assertEquals(\"Login\", driver.getTitle());\n\t\tAssertions.assertNotEquals(\"Home\", driver.getTitle());\n\t}", "@Then(\"^user should able to login to system$\")\npublic void user_should_able_to_login() throws Throwable {\n driver.close();\n}", "@AfterClass\n public static void tearDownClass() {\n ApplicationSessionManager.getInstance().stopSession();\n }", "@AfterClass\n\tpublic void tearDown() {\n\n\t\tsettings.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t\tapp.quit();\n\t\ttest.log(Status.INFO, \"Closed firefox\");\n\n\t}", "@AfterTest\npublic void end()\n{\n\tlogin.s.quit();\n}", "@Test\n public void stage03_testLogin() {\n String userName = \"\";\n String password = \"\";\n //Sign in\n SignIn signIn = new SignIn(driver);\n HomePage homePage = signIn.loginValidUser(userName, password);\n //Get login name\n String loginName = homePage.getLoginName();\n //Testing if login name is correct\n assertEquals(loginName, (userName));\n //logging\n if (loginName.equals(userName)) {\n logger.info(\"Loged in succesfully.\");\n logger.info(\"( stage02_testOpenLoginPage )Actual username : \" + loginName + password);\n } else {\n logger.error(\"Unable to login.\");\n logger.error(\"( stage02_testOpenLoginPage )Actual username : \" + loginName);\n }\n }", "@Test\n public void test5() {\n userFury.login(\"45ab\");\n assertFalse(userFury.getLoggedIn());\n }", "public void testLogin() {\n login(datum.junit);\n\t}", "@Before\n public void getTestSession() {\n if (sessionId == null) {\n sessionId = Util.getSessionID();\n }\n }", "@AfterTest\n\t\tpublic void logout(){\n//Calling method to logout from the account and verify logout message.\n//'**********************************************************\n\t\t\tLogOutPage accountLogoutPage =myWishlistPage.logout();\n\t\t\tAssert.assertTrue(accountLogoutPage.getlogoutMsg().equals(\"Account Logout\"), \"Account Logout message is not displayed\");\n\t\t\textentTest.log(LogStatus.PASS,\"Account Logout message is displayed and the user is signed out from the account\");\n//'**********************************************************\n//Close the report\n//'**********************************************************\n\t\t\textentReports.endTest(extentTest);\n\t\t\textentReports.flush();\n\t\t\textentReports.close();\n\t\t}", "@Test\n public void testLogout() {\n assertEquals(SAMPLE_ID, navigationBean.getSessionUser().getUserID());\n assertEquals(\"/facelets/open/index.xhtml?faces-redirect=true\", navigationBean.logout());\n assertEquals(0, navigationBean.getSessionUser().getUserID());\n }", "@Test\n public void positiveTest() {\n\n loginPage.setUsername(\"admin\");\n loginPage.setPassword(\"123\");\n loginPage.clickOnLogin();\n Assert.assertEquals(driver.getTitle(), \"Players\", \"Wrong title after login\");\n Assert.assertNotEquals(driver.getCurrentUrl(), LoginPage.URL_login, \"You are still on login page.\");\n }", "public void gotoAdminLogin(){ application.gotoAdminLogin(); }", "@Override\n protected void tearDown() throws Exception\n {\n if (session != null)\n {\n session.close();\n }\n \n super.tearDown();\n }", "@Given(\"^Open SignIn site$\")\t\t\t\t\t\n public void Open_SignIn_site() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.navigate().to(\"https://accounts.google.com/ServiceLogin/identifier?flowName=GlifWebSignIn&flowEntry=AddSession\");\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\t\n }", "public static void navigateAdminLoginPage() {\n Browser.driver.get(\"http://shop.pragmatic.bg/admin\");\n }", "@Given(\"^user is already login page$\")\n\tpublic void user_is_already_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Jamshed Khan\\\\Downloads\\\\chromedriver_win32 (2)\\\\chromedriver.exe\");\n\t\t driver= new ChromeDriver();\n\t\t driver.get(\"http://demo.guru99.com/v4\");\n\t}", "@Given(\"^User has logged in$\")\n\tpublic void user_has_logged_in() throws Throwable {\n\t\tassertEquals(\"Find a Flight: Mercury Tours:\", GetDriver.browserState().getTitle());\n\t}", "@Test(enabled=true)\n\tpublic void verifySuccessfullyCreateFolderAndDeleted()\n\t{\t\t\n\t\thomepg = new LoginPage(driver);\n\t\tlandingpg = new LandingPage(driver);\n\t\thomepg.login();\n\t\tlandingpg.addNewFolder();\n\t\tlandingpg.deleteFolder();\n\t\thomepg.logOut();\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifySuperUserAccessJourneys() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the super user is able to perform journeys\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switchtopaperlessacctspecificsdata\");\t\t\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.bgbloginDetails(userProfile);\t\t\n\t\tnew MultiUserMultiViewAction()\n\t\t.ManageAccountLink(userProfile)\n\t\t.verifySuperuserAccessjourneyverification();\n\t}", "@Test(dependsOnMethods = {\"loginTest\"}, description = \"User can log out the GS Cloud\", groups = \"cloud\")\n\tpublic void logoutTest() throws IOException {\n\t\tcp.clickUserDropdownLink();\n\t\tcp.clickLogoutButton();\n\t\tcp.validateLogoutSuccess();\n\t\n\t}", "@Test(priority=1)\r\n\tpublic void loginApp()\r\n\t{\r\n\t\t\r\n\t\tlogger=report.createTest(\"Login To Pymidol\");\r\n\t\r\n\t\tLoginPage loginPage=PageFactory.initElements(driver, LoginPage.class); //it will goto login page check all the locators initialise then it will return object of same class\r\n\t\t\r\n\t\tlogger.info(\"Starting Application\"); //it will provide information about test or test step\r\n\t\t\r\n\t\tloginPage.loginToPymidol(excel.getStringData(\"Login\", 0, 0), excel.getStringData(\"Login\", 0, 1));\r\n\t\t\r\n\t\tlogger.pass(\"Login done Success\");\r\n\t\r\n\t}", "@Test\n\tpublic void loginWithValidCredentials(){\n\t\tapp.loginScreen().waitUntilLoaded();\n\t\tapp.loginScreen().logIn(Credentials.USER_VALID.username, Credentials.USER_VALID.password);\n\t\tassertTrue(app.userDashboardScreen().isActive());\n\t}", "@Test(priority = 2)\r\n\tpublic void testLoginPage() {\r\n\r\n\t\tdriver.navigate().to(Login.URL);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tLogin.typeEmail(driver, \"email@mail.com\");\r\n\t\tLogin.typePassword(driver, \"lozinka\");\r\n\t\t\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\tLogin.clickLoginButton(driver);\r\n\t\t\t\t\r\n\t\tString currentUrl = driver.getCurrentUrl();\r\n\t\tString expectedUrl = \"https://www.humanity.com/app/\";\r\n\t\tSoftAssert sa = new SoftAssert();\r\n\t\tsa.assertEquals(currentUrl, expectedUrl);\r\n\t\tsa.assertAll();\r\n\t}", "@Flaky\n @Test\n public void checkServicePage() {\n assertEquals(getWebDriver().getTitle(), MAIN_DRIVER_TITLE);\n\n //2. Perform login\n servicePage.login(cfg.login(), cfg.password());\n\n //3. Assert User name in the left-top side of screen that user is loggined\n servicePage.checkUserNameTitle();\n\n\n }", "@Test\n public void ValidLoginTest() throws Exception {\n openDemoSite(driver).typeAuthInfo(loginEmail, \"Temp1234%\").signInByClick();\n }", "private void testFinished() {\n\t\t\tLoginPage.logout(driver());\n\t\t}", "@Test\n\tpublic void homepage()\n\t{\n\t//WebDriver driver = null;\n\t\t//Welcome_MurcuryTours wt=PageFactory.initElements(driver,Welcome_MurcuryTours.class);\n\t\tWelcome_MurcuryTours wt=PageFactory.initElements(driver, Welcome_MurcuryTours.class);\n\twt.signOn();\n\tdriver.navigate().back();\n\twt.register();\n\t\n\t}", "public void redirectToHomeSameSession() {\r\n\t\t\r\n\t\ttry{\r\n\t\twebAppDriver.get(baseUrl);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Given(\"^user is logged in My Store$\")\n public void userIsLoggedInMyStore() {\n System.setProperty(\"webdriver.chrome.driver\", \"src/main/resources/chromedriver\");\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n // Maximize the browser window\n driver.manage().window().maximize();\n\n //login correctly to my store\n driver.get(\"https://prod-kurs.coderslab.pl/index.php?controller=authentication&back=my-account\");\n loginPage = new LoginPage(driver);\n loginPage.loginAs(EMAIL, PASSWORD);\n Assert.assertEquals(LOGGED_USER, loginPage.getLoggedUsername());\n }", "@Test\n\tpublic void checkValidLoginRegistrator() {\n\t\ttest = report.createTest(\"CheckValidLoginRegistrator\");\n\t\t\n\t\tregistratorhomepage = loginpage.successfullLoginRegistrator(UserContainer.getRegistrator());\n\t\ttest.log(Status.INFO, \"Signed in\");\n\t\t\n\t\tAssert.assertEquals(registratorhomepage.getUserNameText(), UserContainer.getRegistrator().getLogin());\n\t\ttest.log(Status.PASS, \"Checked if the right page is opened.\");\n\t\t\n\t\tloginpage = registratorhomepage.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t}", "@Test(priority = 0)\n public void salesforceLogin() {\n SalesforceLoginPage salesforceLoginObj = new SalesforceLoginPage(driver);\n\n driver.get(\"https://login.salesforce.com\");\n\n salesforceLoginObj.setUsername(\"*********\");//Enter valid username\n salesforceLoginObj.setPassword(\"********\");//Enter valid password\n salesforceLoginObj.logInButtonClick();\n\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testApplicationTest() throws MalformedURLException {\n\n // Open Application\n HomePage homePage = openApplication();\n log(\"Opened application\");\n\n // Click to SIgn In\n MainMenuPage mainMenuPage = homePage.clickToSignInLink();\n log(\"Clicked Sign In Link\");\n\n // Sign In\n MyAccountPage myAccountPage = mainMenuPage.signIn();\n log(\"Signed In\");\n\n // Click to Catalog\n ProductListPage productListPage = myAccountPage.clickToCatalog();\n log(\"Clicked Button Catalog\");\n\n // Click to filter Laptop Category\n productListPage.clickToFilter(CatalogList.LaptopCategory.getName());\n log(\"Clicked to filter laptop category\");\n\n // Click to filter Laptop SubCategory\n productListPage.clickToFilter(SubCategoryList.LaptopSubCategory.getName());\n log(\"Clicked to filter laptop subCategory\");\n\n // Click to filter not hart tasks\n productListPage.clickToFilter(GoalCategory.NotHardTasks.getName());\n log(\"Clicked to filter not hard tasks\");\n\n // Click to the first product\n ProductPage productPage = productListPage.clickToFirstProduct();\n log(\"Clicked to the first product\");\n\n // Click to button Buy Product\n CheckoutPage checkoutPage = productPage.clickBuyProduct();\n log(\"Clicked to button Buy Product\");\n\n // Click to Back\n checkoutPage.clickBack();\n log(\"Clicked to Back\");\n\n // Click to cart offer menu\n checkoutPage.clickCartOfferMenu();\n log(\"Clicked to cart offer menu\");\n\n // Click to delete product\n checkoutPage.clickDeleteProduct();\n log(\"Clicked to delete product\");\n\n // Check empty cart\n checkoutPage.checkEmptyCart();\n log(\"Checked empty cart\");\n\n // Close application\n closeApplication();\n log(\"Closed application\");\n\n }", "@BeforeEach\n public void beforeTest() {\n loginPage.navigateToLoginPage();\n }", "@Then(\"User does Successful login\")\n\tpublic void user_does_Successful_login() {\n\t\tdriver.close();\n\t}", "@Override\n @Test(groups = {\"SessionContext access\"})\n public void testSessionContext01() throws Exception {\n super.testSessionContext01();\n }", "public void testFirstLoginToListActivityAndBack() {\n testFirstStartApp.testCorrectLogin();\n }", "@Then(\"^user check is logged in$\")\n public void check_user_logged(){\n log.info(\"try to check if user is logged in\");\n String linkSignOut = pageLogin.getLinkSignOut().getText();\n Assert.assertTrue(linkSignOut.equals(\"Sign out\"), \"There is no visible link sign out\");\n String linkUserName = pageLogin.getLinkUserFullname().getText();\n Assert.assertTrue(linkUserName.equals(\"Antoni Giez\"));\n log.info(\"user is logged in, username - \" + linkUserName);\n }", "@Given(\"user is on login page\")\n\tpublic void user_is_on_login_page() {\n\t\tSystem.out.println(\"user is on login page\");\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://opensource-demo.orangehrmlive.com/index.php/auth/validateCredentials\");\n\t \n\t}", "@Test\r\n public void testInitSession() {\r\n System.out.println(\"initSession\");\r\n assertNotNull(sm);\r\n \r\n boolean result = sm.initSession(\"test1\", programsHome, programsHome + \"files1/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test2\", programsHome, programsHome + \"files2/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test3\", programsHome, programsHome + \"files3/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n assertTrue(result);\r\n \r\n sm.removeSession(\"test4\");\r\n }", "@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }", "public void testRun() throws Exception {\r\n SeleniumTestBase mySeleniumTestBase = new SeleniumTestBase(selenium);\r\n mySeleniumTestBase.loginToUI(\"admin\", \"admin\");\r\n }", "@Test\t\t\n\tpublic void Login()\t\t\t\t\n\t{\t\t\n\t driver.get(\"https://demo.actitime.com/login.do\");\t\t\t\t\t\n\t driver.findElement(By.id(\"username\")).sendKeys(\"admin\");\t\t\t\t\t\t\t\n\t driver.findElement(By.name(\"pwd\")).sendKeys(\"manager\");\t\t\t\t\t\t\t\n\t driver.findElement(By.xpath(\"//div[.='Login ']\")).click();\t\t\n\t driver.close();\n\t}", "@Given(\"^User is already on Login page$\")\n\tpublic void user_already_on_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/Users/tanu/Downloads/IMP-Drivers/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"http://hrm.seleniumminutes.com\");\n\t\t}", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "@BeforeClass(alwaysRun = true)\n public void beforeClass() {\n JdiSite.homePage.open();\n JdiSite.login(User.PETER);\n }", "public void verifyOnDashboardPage() {\n verifyUserLoggedIn.waitForState().enabled(30);\n verifyUserLoggedIn.assertContains().text(\"Dev Links\");\n }", "@Given(\"User is on the login page\")\n\tpublic void user_is_on_the_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\resources\\\\chromedriver.exe\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.get(\"https://10.232.237.143/TestMeApp/fetchcat.htm\");\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t driver.findElement(By.id(\"details-button\")).click();\n\t\tdriver.findElement(By.id(\"proceed-link\")).click();\n\t}", "@Test(priority = 4)\n\tpublic void case5_Logout() throws InterruptedException{\n\t\tcase1_Logout();\n\t\tdriver.navigate().back();\n }", "@Test\n\tpublic void loginTest() {\n\t\tSystem.out.println(\"Login Page Test\");\n\t}", "@Given(\"^User should logged in to URL$\")\n\tpublic void user_should_logged_in_to_URL() throws Throwable {\n\t\thomepage.clickloginifdisplayed();\n\t\twait.WaitForElement(loginpage.getLoginemail(), 60);\n\t\tloginpage.ValidLogin();\n\t}", "@Test\n\tpublic void signUp_accountant_PageTesting() throws InterruptedException, IOException{\n\t\tThread.sleep(8000);\t\n\t\tJavascriptExecutor jse =(JavascriptExecutor)driver;\n\t\t\n\t\t//clicking on the FreeTrial link\n\t\tWebElement freeTrailLink = elementCssSelector(\"a[href='/us/signup']\");\n\t\tjse.executeScript(\"arguments[0].click();\" , freeTrailLink);\t\n\t\t\n\t\tThread.sleep(8000);\t\n\t\t//parent window\n\t\tString parentWindow = driver.getWindowHandle();\n\t\tSystem.out.println(\"Title of the parent page - switchingTo: \" + driver.getTitle());\n\t\t\n\t\tThread.sleep(8000);\t\n\t\t//clicking on the offer details link\n\t\tWebElement accountantLink = linkXpath(\"accountant or bookkeeper\");\n\t\tclickBUtton(accountantLink ,\"accountant or bookkeeper link\");\n\t\tThread.sleep(8000);\t\n\t\t\n\t\t//switch to new window\n\t\tfor (String winHandle : driver.getWindowHandles()) {\n\t\t driver.switchTo().window(winHandle); // switch focus of WebDriver to the next found window handle (that's your newly opened window)\n\t\t}\n\t\t System.out.println(\"Title of the page after - switchingTo: \" + driver.getTitle());\n\t\t//code to do something on new window\n\t\t Thread.sleep(6000);\n\t\tdriver.switchTo().window(parentWindow); // switch back to the original window\n\t\tSystem.out.println(\"Title of the parent window - switchingTo: \" + driver.getTitle());\n\n\t}", "@Test(groups ={Slingshot,Regression})\n\t\tpublic void VerifyFullUserAccessJourneys() {\n\t\t\tReport.createTestLogHeader(\"MuMv\", \" Verify the Full user is able to perform journeys\");\n\t\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switchtopaperlessacctspecificsdata\");\t\t\n\t\t\tnew LoginAction()\n\t\t\t.BgbnavigateToLogin()\n\t\t\t.bgbloginDetails(userProfile);\t\t\n\t\t\tnew MultiUserMultiViewAction()\n\t\t\t.ManageAccountLink(userProfile)\n\t\t\t.verifyFullAccessuserjourneyverification();\t\t\n\t\t}", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "@BeforeMethod\n\tpublic void testSetUp()\n\t{\n\t\tcommonUtilities.invokeBrowser();\n\t\tloginPage.login(ReadPropertiesFile.getPropertyValue(\"username\"), ReadPropertiesFile.getPropertyValue(\"password\"));\n\t}", "@Test\n\tpublic void SignIn()\n\t{\n\t\tdriver.get(baseUrl);\n\t\tHomePage hp =new HomePage(driver);\n\t\thp.SignIn();\n\t\tString handle=driver.getWindowHandle();\n\t\tdriver.switchTo().window(handle);\n\t\t\n\t\t//2.\tLogin -Enter non-valid credentials. Expected error message is displayed\n\t\tLoginPage lp =new LoginPage(driver);\n\t\tlp.email(f);\n\t\tlp.password(p);\n\t\tlp.Login();\t\n\t\t\n\t\t// 3. Verify error message\n\t\tString ExpMsg = lp.Error_Mess();\n\t\tString DispMsg = (\"Authentication failed.\");\n\t\ttry\n\t\t{\n\t\t\tassertEquals(ExpMsg,DispMsg);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//4.\tLogin -Enter wrong credentials. Expected error message is displayed\n\t\tlp.email(g);\n\t\tlp.password(p);\n\t\tlp.Login();\n\t\t\n\t\t//5.\tVerify error message\n\t\tString ExpMsg1 = lp.Error_Mess();\n\t\tString DispMsg1 = (\"Invalid email address.\");\n\t\ttry\n\t\t{\n\t\t\tassertEquals(ExpMsg1,DispMsg1);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//6.\tLogin -Enter valid credentials and Sign in\n\t\tlp.Signin();\n\t\tlp.email(e);\n\t\tlp.password(p);\n\t\tlp.Login();\n\t}", "@Override\n protected void tearDown() throws Exception {\n mSession.release();\n super.tearDown();\n }", "@Test\n\tpublic void loginToOpentaps() {\n\t\tinvokeApp(\"chrome\", \"http://demo1.opentaps.org\");\n\n\t\t// Step 2: Enter user name\n\t\tenterById(\"username\", \"DemoSalesManager\");\n\n\t\t// Step 3: Enter Password\n\t\tenterById(\"password\", \"crmsfa\");\n\n\t\t// Step 4: Click Login\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\t\t// Step 5: Verify Username\n\t\tverifyTextContainsByXpath(\"//div[@id='form']/h2\", \"Welcome\");\n\t\t\n\t\t// Step 6: Click Logout\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\n\n\n\t}", "@Then(\"^user come back to main account page and log out$\")\n public void come_back_main_account_and_log_out() throws Exception{\n userAccountPage.clickBtnBackToAccount();\n userAccountPage.clickBtnLogOut();\n }", "private void logOutIfAlreadyLogInTest() {\n try {\n onView(withId(R.id.menuButtonImage)).perform(click());\n onView(withText(R.string.logout)).perform(click());\n onView(withId(R.id.google_sign_in_button)).check(matches(isDisplayed()));\n }\n catch (NoMatchingViewException e) {\n // was already logged out\n }\n }", "@AfterMethod\n public void logout() {\n TalentPage talentPage = new TalentPage(driver);\n talentPage.logout();\n }", "@Test\n public void testLoggedInUser() throws IOException {\n Map<String, Object> attr = new HashMap<>();\n String id = \"123\";\n attr.put(\"com.google.appengine.api.users.UserService.user_id_key\", id);\n helper.setEnvEmail(\"test@example.com\")\n .setEnvAttributes(attr)\n .setEnvAuthDomain(\"example.com\")\n .setEnvIsLoggedIn(true)\n .setUp();\n\n ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class);\n\n HttpServletRequest request = mock(HttpServletRequest.class);\n HttpServletResponse response = mock(HttpServletResponse.class);\n\n StringWriter stringWriter = new StringWriter();\n PrintWriter writer = new PrintWriter(stringWriter);\n writer.flush();\n when(response.getWriter()).thenReturn(writer);\n\n assertNull(ofy().load().type(UserObject.class).id(id).now());\n\n new LoginRegistrationServlet().doGet(request, response);\n writer.flush();\n\n verify(response, atLeast(1)).sendRedirect(captor.capture());\n assertEquals(\"/home\", captor.getValue());\n\n UserObject result = ofy().load().type(UserObject.class).id(id).now();\n\n assertEquals(result.getId(), id);\n assertEquals(result.getUsername(), \"test\");\n assertEquals(result.getEmail(), \"test@example.com\");\n assertEquals(result.getProfilePicUrl(), \"\");\n }", "@Test\n public void signinvalidation() {\n\t SalesApplicationPage spg = new SalesApplicationPage(driver);\n if(spg.getPopUpSize()>0)\n\t {\n\t\t spg.getPopUp().click();\n\t }\n System.out.println(driver.getTitle());\n Assert.assertTrue(driver.getTitle().equals(\"Home | Salesforrrce\"));\n }", "@Test\r\n\tpublic void testLogin5() {\r\n\t\tassertFalse(t1.login(\"userrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr\", \"passssssssssssssssssssssssssssssssssssssssss\"));\r\n\t}", "@Test\n @UiThreadTest\n public void testGuestLoginLogout() {\n // Click guest user\n expectVisible(firstViewWithText(\"GU\"));\n screenshot(\"Test Start\");\n click(viewWithText(\"Guest User\"));\n\n // Should be logged in; log out\n expectVisible(viewWithText(R.string.title_location_list));\n screenshot(\"After Guest User Clicked\");\n click(viewWithText(\"GU\"));\n expectVisible(viewWithText(\"Guest User\"));\n screenshot(\"After Guest User Selected in Action Bar\");\n click(viewWithId(R.id.button_log_out));\n\n waitForProgressFragment();\n\n // Should be back at the user list\n click(viewWithId(R.id.action_new_user));\n screenshot(\"After Logout\");\n }", "@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}", "@Test\n\tpublic void checkValidLoginAdmin() {\n\t\ttest = report.createTest(\"CheckValidLoginAdmin\");\n\t\t\n\t\tadminhomepage = loginpage.successfullLoginAdmin(UserContainer.getAdmin());\n\t\ttest.log(Status.INFO, \"Signed in\");\n\t\t\n\t\tAssert.assertEquals(adminhomepage.getUserNameText(), UserContainer.getAdmin().getLogin());\n\t\ttest.log(Status.PASS, \"Checked if the right page is opened.\");\n\t\t\n\t\tloginpage = adminhomepage.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t}", "@Test\n\tpublic void testIsSession() {\n\t\t\n\t\tclub.CreerSession();\n\t\tassertNotNull(\"Aucune session n'a été pas créée\", club.getSession());\n\t\t\n\t}", "@Test \n public void executeSessionTwo(){\n System.out.println(\"open the browser: FIREFOX \");\n final String GECKO_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/geckodriver.exe\";\n System.setProperty(\"webdriver.gecko.driver\", GECKO_DRIVER_DIRECTORY);\n final WebDriver driver = new FirefoxDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyGlobalNavigationLinks()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the Your details Gas Page Navigation Links\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GloabalSMRGas\");\n\t\tnew SubmitMeterReadAction()\n\t\t.BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .BgbverifyAfterLogin()\n\t .clickSubmitMeterReadLink()\t\n\t\t.verifyGlobalNavigationLink();\n}", "@Step(\"Log out\")\n public void logOut() {\n open();\n sighOutButton.click();\n }", "@Test\n\tpublic void teststudentLogout() {\n\t\tlic.logon(\"ajmac\", \"password\", true);\n\t\tassertTrue(loc.studentLogout(\"ajmac\"));\n\t\tassertFalse(loc.studentLogout(\"oops\"));\n\n\t}", "@Test\n\t@Order(5)\n\tpublic void credentialsTest() {\n\t\tString url = \"http://twitter.com/\";\n\t\tString username = \"meepz\";\n\t\tString password = \"spooki520boi\";\n\t\t// credentials to be updated\n\t\tString newUrl = \"clubpenguin.com\";\n\t\tString newUsername = \"fightrOfDaNightMan\";\n\t\tString newPassword = \"milkSteak\";\n\t\t// signup\n\t\tdriver.get(baseUrl + \"/signup\");\n\t\tSignupPage signupPage = new SignupPage(driver);\n\t\tsignupPage.signup(firstName, lastName, username, password);\n\t\t// get login page, init login page, login\n\t driver.get(baseUrl + \"/login\");\n\t\tLoginPage loginPage = new LoginPage(driver);\n\t\tloginPage.login(username, password);\n\n\t\tdriver.get(baseUrl + \"/home\");\n // init home page, insert new credentials\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.addCredential(false, url, username, password);\n\t\t// init result page and click link back to home page\n\t\t// driver is automatically taken to result page after adding\n\t\t// credentials, etc. so no need to use driver.get(result)\n\t\t// just feed driver into the result page\n\t\tResultPage resultPage = new ResultPage(driver);\n\t\tresultPage.clickHomeAnchor();\n\n\t\t// After returning to home page, click credential tab\n\t\t// and grab text from first credential\n\t\tCredential firstCredential = homePage.getFirstCredential();\n\n\t\t// check that hidden td's password is encrypted\n Assertions.assertNotEquals(password, homePage.getPasswordEnc());\n // check that url and username both match what was entered\n Assertions.assertEquals(url, firstCredential.getUrl());\n\t\tAssertions.assertEquals(username, firstCredential.getUsername());\n\n\t\t// check that entered password and retrieved (what should be dots) don't match\n\t\tAssertions.assertNotEquals(password, firstCredential.getPassword());\n\n\t\t// after clicking show button retrieve credentials again\n\t\thomePage.clickShowPassword();\n\t\tCredential credPasswordRevealed = homePage.getFirstCredential();\n\t\t// password that is now showing on page should match entered\n\t\tAssertions.assertNotEquals(password, firstCredential.getPassword());\n\n\t\t// clicking show password again will hide it\n\t\t// check that it is hidden\n\t\thomePage.clickShowPassword();\n\t\tCredential hiddenCredential = homePage.getFirstCredential();\n\t\tAssertions.assertNotEquals(password, hiddenCredential.getPassword());\n\n\t\thomePage.addCredential(true, newUrl, newUsername, newPassword);\n\t\tresultPage.clickHomeAnchor();\n\n\t\tCredential updatedCredential = homePage.getFirstCredential();\n\t\t// check to see that hidden password's text does not match entered password\n\t\tAssertions.assertNotEquals(password, homePage.getPasswordEnc());\n\t\tAssertions.assertNotEquals(updatedCredential.getPassword(), homePage.getPasswordEnc());\n\t\tAssertions.assertEquals(newUrl, updatedCredential.getUrl());\n\t\tAssertions.assertEquals(newUsername, updatedCredential.getUsername());\n\t\tAssertions.assertNotEquals(newPassword, updatedCredential.getPassword());\n\t\tAssertions.assertEquals(newPassword, homePage.getPasswordDecrypted());\n\n\t\thomePage.deleteCredential();\n\t\tresultPage.clickHomeAnchor();\n\n Assertions.assertThrows(NoSuchElementException.class, () -> homePage.getFirstCredential());\n\t}", "@BeforeTest\n\tpublic void setUp() throws InterruptedException, MessagingException, IOException {\n\t\textent = ExtentManager.GetExtent();\n\t\ttest = extent.createTest(this.getClass().getSimpleName());\n\t\tBaseClass iDriver = new BaseClass();\n\t\tiDriver.myTestCaseName = this.getClass().getSimpleName();\n\t\texecuteDriverScript();\n\t\ttest.log(Status.INFO, \"Application url navigated\");\n\t\t//enter loginId\n\t\t\t\tgetElement(ObjectRepository.loginid_txt).sendKeys(username);\n\t\t\t\ttest.log(Status.INFO, \"Login ID entered\");\n\t\t\t\t\n\t\t\t\t//enter password\n\t\t\t\tgetElement(ObjectRepository.password_txt).sendKeys(password);\n\t\t\t\ttest.log(Status.INFO, \"Password entered\");\n\t\t\t\t\n\t\t\t\t//click login button\n\t\t\t\tgetElement(ObjectRepository.login_btn).click();\n\t\t\t\ttest.log(Status.INFO, \"Login button clicked\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Verify log off link available after login\n\t\t\t\tverifyElementPresent(ObjectRepository.logoff_lnk);\n\t\t\t\ttest.log(Status.INFO, \"User successfully logged in as Logoff link available\");\n\t\t\n\t}", "@Test\n\tpublic void Test_LoginTest_() throws InterruptedException {\n\t\tnew LoginPage().registerNow();\n\t}", "@Override\n @Test(groups = {\"SessionContext access\"})\n public void testSessionContext00() throws Exception {\n super.testSessionContext00();\n }", "@Test\n public void requireOTPTest() {\n RealmRepresentation realm = testRealmResource().toRepresentation();\n realm.setBrowserFlow(\"browser\");\n testRealmResource().update(realm);\n\n updateRequirement(\"browser\", Requirement.REQUIRED, (authExec) -> authExec.getDisplayName().equals(\"Browser - Conditional OTP\"));\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertTrue(loginConfigTotpPage.isCurrent());\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }", "@Test\n\tpublic void cricLogin(){\n\t\tdriver.get(\"http://localhost:8080/CricWebApp/login.do\");\n\t\tdriver.manage().window().maximize(); \n\t\ttry {\n\t\t\tThread.sleep(4000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//driver.findElement(By.linkText(\"Sign Up\")).click();\n\t\tdriver.findElement(By.name(\"userName\")).sendKeys(\"jmuh\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"jmuh\");\n\t\tdriver.findElement(By.tagName(\"input\")).click();\n\t\tdriver.findElement(By.xpath(\"/html/body/form/div[2]/table/tbody/tr[3]/td/input\")).click();\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tdriver.close();\n\t\t\n\t}", "@Test(groups = {\"Sprint41\"}, description = \"Disabling Automatic Login checkbox should disable user name, password, domain and document vault fields\")\r\n\tpublic void SprintTest41_8_1B() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to General in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.GeneralSettings.Value + \">>\" + Caption.ConfigSettings.General.Value);\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(\"GENERAL - GENERAL SETTINGS\"))\r\n\t\t\t\tthrow new Exception(\"General settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to General page.\");\r\n\r\n\t\t\t//Step-2 : Enable Automatic Login check box\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setAutoLogin(false); //Disable automatic login checkbox\r\n\r\n\t\t\tif (configurationPage.configurationPanel.getAutoLogin())\r\n\t\t\t\tthrow new Exception(\"Automatic login check box is not disabled.\");\r\n\r\n\t\t\tLog.message(\"2. Automatic login check box is disabled.\");\r\n\r\n\t\t\t//Verification : Verify that User name, password, domain and vault fields are in enabled state\r\n\t\t\t//--------------------------------------------------------------------------------------------\r\n\t\t\tString addlInfo = \"\";\r\n\r\n\t\t\tif (configurationPage.configurationPanel.isAutoLoginUserNameEnabled()) //Checks if User name enabled\r\n\t\t\t\taddlInfo = \"Auto Login User Name is enabled;\";\r\n\r\n\t\t\tif (configurationPage.configurationPanel.isAutoLoginPasswordEnabled()) //Checks if User name enabled\r\n\t\t\t\taddlInfo = \"Auto Login Password is enabled;\";\r\n\r\n\t\t\tif (configurationPage.configurationPanel.isAutoLoginDomainEnabled()) //Checks if User name enabled\r\n\t\t\t\taddlInfo = \"Auto Login Domain is enabled;\";\r\n\r\n\t\t\tif (configurationPage.configurationPanel.isAutoLoginVaultEnabled()) //Checks if User name enabled\r\n\t\t\t\taddlInfo = \"Auto Login Vault is enabled;\";\r\n\r\n\t\t\tif (addlInfo.equals(\"\")) //Verifies default layout have selected default custom layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Disabling auto login disabled User name, Password, Domain and Select vault.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Disabling auto login is not as expected. Additional information : \" \r\n\t\t\t\t\t\t+ addlInfo, driver);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "@Test(timeout = 100)\n public void testAccessToDashboard() {\n System.out.println(\"Starting Dashboard access test\");\n }", "@Test\r\n public void testAuthSessionFromGuest() {\r\n try {\r\n SessionThrottlerBean session1 = new SessionThrottlerBean(\"session1\");\r\n SessionThrottlerBean session2 = new SessionThrottlerBean(\"session2\");\r\n SessionThrottlerBean session3 = new SessionThrottlerBean(\"session3\");\r\n SessionThrottler throttler = new SessionThrottler(mockHelper);\r\n throttler.setMaxAuthSession(2);\r\n throttler.setMaxGuestSession(2);\r\n String user1Id = \"USER1ID\";\r\n String user2Id = \"USER2ID\";\r\n String user3Id = \"USER3ID\";\r\n\r\n boolean allowGuestSession = throttler.allowGuestSession(session1.getCookie());\r\n assertTrue(\"Test should allow 1st guest session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session2.getCookie());\r\n assertTrue(\"Test should allow 2nd guest session\", allowGuestSession);\r\n allowGuestSession = throttler.allowGuestSession(session3.getCookie());\r\n assertFalse(\"Test should not allow 3rd guest session\", allowGuestSession);\r\n\r\n boolean allowAuthSession = throttler.allowAuthSession(session1.getCookie(), user1Id);\r\n assertTrue(\"Test should allow 1st auth session\", allowAuthSession);\r\n // allow without incrementing count\r\n allowAuthSession = throttler.allowAuthSession(session1.getCookie(), user1Id);\r\n assertTrue(\"Test should allow 1st auth session 2nd login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session2.getCookie(), user2Id);\r\n assertTrue(\"Test should allow 2nd auth session 1st login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session2.getCookie(), user2Id);\r\n assertTrue(\"Test should allow 2nd auth session 2nd login\", allowAuthSession);\r\n allowAuthSession = throttler.allowAuthSession(session3.getCookie(), user3Id);\r\n assertFalse(\"Test should not allow 3nd auth session login\", allowAuthSession);\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n fail(e.getCause().getMessage());\r\n }\r\n\r\n }", "@Given(\"^User is on Home Page$\")\r\n\tpublic void user_is_on_Home_Page() throws Throwable {\n\t\tsetBrowser();\r\n\t\tsetBrowserConfig();\r\n\t\tdriver.get(\"http://demowebshop.tricentis.com/\");\r\n\t}", "@Test\r\n public void testAuthSessionAfterTimeoutAdded() {\r\n try {\r\n SessionThrottler throttler = new SessionThrottler(mockHelper);\r\n throttler.setMaxAuthSession(0);\r\n String userId = \"FDJTEST\";\r\n boolean allowAuthSession = throttler.allowAuthSession(\"abcd1234\", userId);\r\n assertFalse(\"Should not allow auth session\", allowAuthSession);\r\n } catch (Exception e) {\r\n fail(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "@Test\r\n\tpublic void testLogin8() {\r\n\t\tassertTrue(t1.login(\"user\", \"pass\"));\r\n\t}" ]
[ "0.69537634", "0.69067806", "0.6587034", "0.6518142", "0.6394273", "0.6283807", "0.6273013", "0.62042135", "0.61762214", "0.6175763", "0.6144968", "0.61407053", "0.61383075", "0.61313117", "0.6091393", "0.6064329", "0.6062358", "0.6047576", "0.60382277", "0.6012167", "0.600863", "0.5982595", "0.5975633", "0.596698", "0.5965408", "0.5954198", "0.59430707", "0.5935114", "0.59340113", "0.593233", "0.590784", "0.5907232", "0.5902781", "0.58952737", "0.58928645", "0.58801603", "0.58670235", "0.5862967", "0.5852753", "0.5851157", "0.5847839", "0.58450645", "0.5843546", "0.5838894", "0.58285713", "0.58154637", "0.5805649", "0.5801054", "0.5799486", "0.57984936", "0.5790972", "0.5789932", "0.5784635", "0.5781946", "0.5779263", "0.57774", "0.5775003", "0.57746166", "0.57560945", "0.5752437", "0.5748141", "0.5740012", "0.57371175", "0.57346267", "0.572317", "0.5717071", "0.5704003", "0.57026035", "0.56982464", "0.5697023", "0.569574", "0.56907034", "0.56897974", "0.5688928", "0.56831765", "0.56825197", "0.5680724", "0.5678386", "0.5675975", "0.5674118", "0.5670562", "0.5667757", "0.56668377", "0.5660953", "0.56529135", "0.56423557", "0.56417584", "0.5630412", "0.56230956", "0.5622739", "0.56217885", "0.56211686", "0.56200415", "0.56130046", "0.5611357", "0.56061345", "0.559331", "0.55880576", "0.55854946", "0.558351" ]
0.63268214
5
NOTE: This test tests the behavior of PortalTest base cleanup after a test finishes while logged into Sugar as a Regular user.
@Test public void portalTestFinishesWhileLoggedInAsRegularUser() throws Exception { VoodooUtils.voodoo.log.info("Running portalTestFinishesWhileLoggedInAsRegularUser()..."); // Log into Portal portal.loginScreen.navigateToPortal(); portal.login(portalUser); VoodooUtils.voodoo.log.info("If this message appears, that means we logged in successfully without error."); portal.navbar.userAction.assertVisible(true); sugar().loginScreen.navigateToSugar(); sugar().alerts.waitForLoadingExpiration(30000); sugar().logout(); sugar().login(sugar().users.getQAUser()); VoodooUtils.voodoo.log.info("portalTestFinishesWhileLoggedInAsRegularUser() completed."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = Exception.class)\n\tpublic void portalTestBaseCleanupAfterFailure() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running portalTestBaseCleanupAfterFailure()...\");\n\n\t\t// Log into Portal\n\t\tportal.loginScreen.navigateToPortal();\n\t\tportal.login(portalUser);\n\n\t\tportal.loginScreen.getControl(\"login\").click(); // This will fail, but the @Test expects this\n\n\t\tVoodooUtils.voodoo.log.info(\"portalTestBaseCleanupAfterFailure() completed.\");\n\t}", "@After\r\n\tpublic void teardown() throws FindFailed {\r\n\t\t//TODO: check if not LoginPage is displayed > then\r\n\t\tnew HomePage(s).logOut();\r\n\t\tSystemActions.closeClient(app);\r\n\t}", "@AfterAll\r\n public void cleanUp() {\r\n\r\n UserEto savedUserFromDb = this.usermanagement.findUserByName(\"testUser\");\r\n\r\n if (savedUserFromDb != null) {\r\n this.usermanagement.deleteUser(savedUserFromDb.getId());\r\n }\r\n }", "@After\n public void tearDown() {\n\t\trepository.delete(dummyUser);\n System.out.println(\"@After - tearDown\");\n }", "@After\n public void cleanUp(){\n mockUserRepo = null;\n mockSession = null;\n sut = null;\n }", "@Test\n public void testCleanupCurrentUser_NonOnBehalfUser() throws Exception {\n idService.cleanUpCurrentUser();\n // user must still exist\n PlatformUser user = getDomainObject(supplierAdminUser,\n PlatformUser.class);\n assertNotNull(user);\n }", "@AfterTest\n\t\tpublic void logout(){\n//Calling method to logout from the account and verify logout message.\n//'**********************************************************\n\t\t\tLogOutPage accountLogoutPage =myWishlistPage.logout();\n\t\t\tAssert.assertTrue(accountLogoutPage.getlogoutMsg().equals(\"Account Logout\"), \"Account Logout message is not displayed\");\n\t\t\textentTest.log(LogStatus.PASS,\"Account Logout message is displayed and the user is signed out from the account\");\n//'**********************************************************\n//Close the report\n//'**********************************************************\n\t\t\textentReports.endTest(extentTest);\n\t\t\textentReports.flush();\n\t\t\textentReports.close();\n\t\t}", "@After\r\n\tpublic void tearDown() {\r\n\t\t\r\n\t\tcustFact = null;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t}", "@Test\n public void teardown() throws SQLException {\n PreparedStatement ps = con.prepareStatement(\"delete from airline.user where username = \\\"username\\\";\");\n ps.executeUpdate();\n this.con.close();\n this.con = null;\n this.userDAO = null;\n this.testUser = null;\n }", "@Override\n @After\n public void teardown() throws Exception {\n EveKitUserAccountProvider.getFactory()\n .runTransaction(() -> {\n EveKitUserAccountProvider.getFactory()\n .getEntityManager()\n .createQuery(\"DELETE FROM Opportunity \")\n .executeUpdate();\n });\n OrbitalProperties.setTimeGenerator(null);\n super.teardown();\n }", "@Test\n\tpublic void portalLoginAfterSugarLogin() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running portalLoginAfterSugarLogin()...\");\n\n\t\t// Log into Portal\n\t\tportal.loginScreen.navigateToPortal();\n\t\tportal.login(portalUser);\n\n\t\tVoodooUtils.voodoo.log.info(\"If this message appears, that means we logged in successfully without error.\");\n\t\tportal.navbar.userAction.assertVisible(true);\n\n\t\tVoodooUtils.voodoo.log.info(\"portalLoginAfterSugarLogin() completed.\");\n\t}", "@After\n public void tearDown() {\n userRepository.deleteAll();\n }", "@After\r\n\tpublic void tearDown() throws Exception {\n\t\tSessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.unbindResource(sessionFactory);\r\n\t\tSessionFactoryUtils.closeSession(sessionHolder.getSession());\r\n\r\n\t\t// seulement dans le cas d'utilisation de spring security //\r\n\t\tSecurityContextHolder.getContext().setAuthentication(null);\r\n\t}", "@After\r\n public void cleanTestObject()\r\n {\r\n testLongTermStorage.resetInventory();\r\n }", "@Override\r\n protected void tearDown() throws Exception {\r\n ctx = null;\r\n projectService = null;\r\n }", "private void testFinished() {\n\t\t\tLoginPage.logout(driver());\n\t\t}", "@Test\n\tpublic void testadminLogout(){\n\t\tlic.logon(\"nadmin\", \"admin\", true);\n\t\tassertTrue(loc.adminLogout(\"nadmin\"));\n\t\tassertFalse(loc.adminLogout(\"oops\"));\n\t}", "@AfterClass (alwaysRun = true)\r\n\tpublic void cleanApp() throws Exception{\r\n\r\n\t\ttry {\r\n\t\t\tUtility.destroyTestVault();\r\n\t\t\tUtility.destroyTestVault(\"My Vault\");\r\n\t\t\tUtility.destroyUsers(xlTestDataWorkBook, \"DestroyUsers\");\r\n\r\n\t\t}//End try\r\n\r\n\t\tcatch(Exception e){\r\n\t\t\tthrow e;\r\n\t\t}//End Catch\r\n\t}", "@After\n public void teardown() {\n RoboGuice.Util.reset();\n }", "@AfterClass\n\tpublic void tearDown() {\n\n\t\tsettings.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t\tapp.quit();\n\t\ttest.log(Status.INFO, \"Closed firefox\");\n\n\t}", "@AfterMethod(alwaysRun = true)\n public void cleanupTest() throws Exception {\n busService.getBus().unregister(testListener);\n busService.getBus().stop();\n \n // STOP NOTIFICATION QUEUE\n ((Engine)entitlementService).stop();\n\n log.warn(\"DONE WITH TEST\\n\");\n }", "@After\n\tpublic void testEachCleanup() {\n\t\tSystem.out.println(\"Test Completed!\");\n\t}", "@AfterClass (alwaysRun = true)\r\n\tpublic void cleanApp() throws Exception{\r\n\r\n\t\ttry {\r\n\t\t\tUtility.destroyUsers(xlTestDataWorkBook);\r\n\t\t\tUtility.destroyTestVault();\r\n\r\n\t\t}//End try\r\n\r\n\t\tcatch(Exception e){\r\n\t\t\tthrow e;\r\n\t\t}//End Catch\r\n\t}", "@Test(enabled = true, groups = {\"functest\", \"part a\"})\n public void testLoginLogout() throws IOException, InterruptedException {\n pm.getQicPortalLoginHelper().loginAsRole(\"provider\");\n pm.getQicPortalLoginHelper().loginAsPlanAdmin();\n System.out.println(\"Done\");\n }", "@Override\n public void tearDown() {\n getLocalLogService().clear(); \n }", "@AfterTest\npublic void end()\n{\n\tlogin.s.quit();\n}", "@AfterClass\n public static void tearDownClass() {\n ApplicationSessionManager.getInstance().stopSession();\n }", "@Override\n public void teardown() {\n }", "@AfterClass\n\tpublic static void testCleanup() {\n\t}", "@AfterClass\r\n\tpublic static void testCleanup() {\r\n\t\tConfig.teardown();\r\n\t}", "@Test(enabled=true)\n\tpublic void verifySuccessfullyCreateFolderAndDeleted()\n\t{\t\t\n\t\thomepg = new LoginPage(driver);\n\t\tlandingpg = new LandingPage(driver);\n\t\thomepg.login();\n\t\tlandingpg.addNewFolder();\n\t\tlandingpg.deleteFolder();\n\t\thomepg.logOut();\n\t}", "@AfterClass\n public static void dropDown() {\n ApplicationProperties properties = new ApplicationProperties();\n UserApiResource userApiResource = new UserApiResource(properties);\n// DropUsers dropUsers = new DropUsers(userApiResource);\n// dropUsers.tearDownUsers();\n }", "@Override\n\tpublic void teardown() {\n\t}", "@After\n\tpublic void tearDown() {\n\t\tsalary = null;\n\t}", "@After\r\n public void tearDown() throws Exception {\r\n solo.finishOpenedActivities();\r\n }", "@AfterEach\n public void tearDown() {\n rrpss = null;\n restaurant = null;\n customerFactory = null;\n staffFactory = null;\n tableFactory = null;\n menuFactory = null;\n setMenuFactory = null;\n reservationFactory = null;\n orderFactory = null;\n }", "@Override\n public void tearDown() throws Exception {\n solo.finishOpenedActivities();\n }", "@Test\n\tpublic void testLogoutAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.logoutAdminAccount(USERNAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\n\t\tassertNotNull(user);\n\t\tassertEquals(USERNAME1, user.getUsername());\n\t\tassertEquals(PASSWORD1, user.getPassword());\n\t\tassertEquals(NAME1, user.getName());\n\t}", "public void logOutAdministrator() {\n logOutGeneral();\n }", "@Override\n public void tearDown() {\n testEngine = null;\n }", "@After\n\tpublic void Destroy(){\n\t\tuserDao = null;\n\t\tentityManager = null;\n\t}", "@After\n\tpublic void tearDown() {}", "protected void tearDown() {\n testEnv.close();\n }", "@AfterClass\n\tpublic static void tearDown() throws Exception {\n\t\tCommon.removeCompany(driver,clientSetting.companyCode.getDatas().get(\"common\"));\n\t\tdriver.findElement(By.xpath(topPage.returnDashboard.xpath)).click();\n\t\tThread.sleep(3000);\n\t}", "@AfterAll\n static void cleanOperate()\n { \n //clear reference of operate after all the tests done\n operate = null;\n System.out.println(\"only After all the tests....\");\n }", "@After\n public void tearDown() throws Exception{\n solo.finishOpenedActivities();\n }", "@Test(priority = 28)\r\n\tpublic void removalUserLinkCheck() {\r\n\tAssert.assertEquals(mainPage.removalUserLinkCheck(), true);\r\n\t}", "public static void tearDown() {\n reset();\n clear();\n APIConfig.getInstance().setAppId(null, null);\n APIConfig.getInstance().setDeviceId(null);\n APIConfig.getInstance().setToken(null);\n APIConfig.getInstance().setUserId(null);\n Leanplum.setApplicationContext(null);\n }", "@After\n\tpublic void testOut() {\n\t\tList<VehicleType> all = vehicleTypeService.getAll();\n\t\tfor (VehicleType vehicleType : all) {\n\t\t\tvehicleTypeService.delete(vehicleType.getId());\n\t\t}\n\t}", "@Test\n public void removeUserCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertFalse(userResource.removeUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }", "@AfterMethod\n public void logout() {\n TalentPage talentPage = new TalentPage(driver);\n talentPage.logout();\n }", "@After\n public void tearDown(){\n client.generateReport(false);\n // Releases the client so that other clients can approach the agent in the near future.\n client.releaseClient();\n }", "@After\n public void tearDown() throws Exception {\n testInstance = null;\n }", "protected void runAfterTest() {}", "@After\n\t\t public void tearDown() throws Exception {\n\t\t\t testHelper.tearDown();\n\t\t }", "@AfterClass\n public static void afterStories() throws Exception {\n Thucydides.getCurrentSession().clear();\n }", "@AfterTest\n\tpublic void teardown()\n\t{\n\t\t\n\t\tdriver.close();\n\t}", "@AfterClass\n public void cleanUp() {\n }", "@Test(dependsOnMethods = {\"loginTest\"}, description = \"User can log out the GS Cloud\", groups = \"cloud\")\n\tpublic void logoutTest() throws IOException {\n\t\tcp.clickUserDropdownLink();\n\t\tcp.clickLogoutButton();\n\t\tcp.validateLogoutSuccess();\n\t\n\t}", "@After\r\n public void tearDown() throws Exception {\r\n super.tearDown();\r\n TestHelper.cleanupEnvironment();\r\n instance = null;\r\n }", "@After\n public void pslBaseCleanup() {\n AbstractRule.unregisterAllRulesForTesting();\n\n // Close any known open models.\n TestModel.ModelInformation.closeAll();\n\n // Clear all options.\n Options.clearAll();\n\n disableLogger();\n }", "public void cleanUp(){\n\t\tbody.setActive(false);\n\t}", "@AfterClass\n\tpublic static void tearDown() throws RemoteException, NotBoundException {\n\t\tSystem.out.println(\n\t\t\t\t\"----------------------------------------Test Recovery Tearing down----------------------------------------\");\n\t\treg.unbind(BINDING_NAME);\n\t\treg = null;\n\t\tSystem.out.println(\n\t\t\t\t\"----------------------------------------Test Recovery Tear down done----------------------------------------\");\n\t}", "@Test\n\tpublic void test_delete_user_success(){\n template.delete(REST_SERVICE_URI + \"/\" + getLastUser().getId() + ACCESS_TOKEN + token);\n }", "@AfterEach\n public void teardown() {\n mockDAO = null;\n addFlight = null;\n flight = null;\n }", "@Override\n @AfterMethod(alwaysRun=true)\n public boolean testCleanUp()\n throws Exception\n {\n if (authHelper != null) {\n Assert.assertTrue(authHelper.performSecurityTestsCleanup(),\n \"Failed to perform Security Tests Cleanup\");\n }\n\n powerOffAllVms();\n // delete the dvs\n Assert.assertTrue(NetworkResourcePoolHelper.applyHostConfig(\n connectAnchor, hostMor1, srcHostProfile1),\n \"Profile applied on host 1\", \"Unable to apply profile on host 1\");\n\n Assert.assertTrue(NetworkResourcePoolHelper.applyHostConfig(\n connectAnchor, hostMor2, srcHostProfile2),\n \"Profile applied on host 2\", \"Unable to apply profile on host 2\");\n\n Assert.assertTrue(idvs.destroy(dvsMor), \"DVS destroyed\",\n \"Unable to destroy DVS\");\n\n return true;\n }", "@AfterSuite\n\tpublic void teardown() {\n\t\tlogger.info(\"ALL TESTS COMPLETED: Quiting driver\");\n\t\tgmailPg.quitDriver();\n\t}", "@AfterClass\n\tpublic static void teardown() {\n\t\tdataMunger = null;\n\n\t}", "@AfterTest\r\n public void tearDown() {\n }", "@Override\n protected void tearDown() throws Exception {\n mSession.release();\n super.tearDown();\n }", "@Before\r\n\tpublic void cleanStart(){\n\t\tStartupFunctions.clearTabs();\r\n\t}", "@Before\r\n\tpublic void cleanStart(){\n\t\tStartupFunctions.clearTabs();\r\n\t}", "@After\n public void tearDown() {\n fixture.cleanUp();\n }", "@AfterSuite\r\n\tpublic void tearDown()\r\n\t{\n extent.flush();\r\n\t}", "@Test(priority = 28)\r\n\tpublic void removalUserLinkCheckAnew() {\r\n\tAssert.assertEquals(mainPage.removalUserLinkCheck(), true);\r\n\t}", "@Override\n public void test_tearDown() throws Exception {\n UiBinderContext.disposeSharedGWTState();\n super.test_tearDown();\n }", "@After\n public void cleanDatabaseTablesAfterTest() {\n databaseCleaner.clean();\n }", "@AfterMethod\r\n public void tearDown() {\r\n \ttry {\r\n Client.url(\"http://localhost:\" + port + getResourcePath() + \"/all\").delete().get();\r\n } catch (InterruptedException | ExecutionException e) {\r\n Assertions.fail(\"Exception during delete all request\", e);\r\n }\r\n }", "@After\r\n public void tearDown() {\r\n try {\r\n Connection conn=DriverManager.getConnection(\"jdbc:oracle:thin:@//localhost:1521/XE\",\"hr\",\"hr\");\r\n Statement stmt = conn.createStatement();\r\n stmt.execute(\"DELETE FROM Packages WHERE Pkg_Order_Id=-1\");\r\n stmt.execute(\"DELETE FROM Packages WHERE Pkg_Order_Id=-2\");\r\n } catch (Exception e) {System.out.println(e.getMessage());}\r\n }", "@Test(priority = 8, dataProvider = \"OrangeHRMLogin\", dataProviderClass = LoginData.class)\n public void deleteTerminationReasonPage(String username, String password) {\n softAssert = new SoftAssert();\n LoginPage.login(username, password);\n extentTest = extentReport.startTest(\"Delete Termination Reason\");\n extentTest.log(LogStatus.PASS, \"username = \" + username + \" password =\" + password);\n PIMPage.clickPIM();\n softAssert.assertTrue(PIMPage.isPIMPageDisplay(), \"PIM page is not displayed\");\n\n PIMPage.clickConfiguration();\n // ReportingMethodPage.reportingMethodPage();\n TerminationReasonPage.terminationReasonPage();\n // softAssert.assertTrue(TerminationReasonPage.isTerminationReasonDisplayed(), \"Termination reason is not displayed\");\n\n TerminationReasonPage.selectTerminationReasonName();\n TerminationReasonPage.deleteTerminationReasonName();\n\n DashBoardPage.clickWelcomeAdminbtn();\n DashBoardPage.clickLogoutbtn();\n extentReport.endTest(extentTest);\n softAssert.assertAll();\n }", "public void tearDown() throws Exception {\n TestHelper.clearTemp();\n super.tearDown();\n }", "@After\n public void tearDown() {\n GWTMockUtilities.restore();\n }", "public void testTearDown() throws Throwable {\n\t\tif (TaskUtils.getAlertDialog() != null){\r\n\t\t\tlogScreenCapture();\r\n\t\t\tTaskUtils.dismissAlert();\r\n\t\t}\r\n\t\t\r\n\t}", "@After\n public void tearDown() {\n \n }", "@Test\r\n public void findUserByAuthorizationNotLoggedIn() {\r\n\r\n super.doTearDown();\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserByAuthorization();\r\n }).isInstanceOf(NullPointerException.class);\r\n }", "@AfterClass\n\tpublic void teardown(){\n\t}", "@After\r\n\tpublic void cleanup() {\n\t}", "@AfterMethod\n\tpublic void tearDown(ITestResult result)\n\t{\n\t\t//If test is getting failed then take the screen shot and put it in Automation Report.\n\t\t//\n\t\tif(result.getStatus()==ITestResult.FAILURE)\n\t\t{\n\t\t\tString screenshot_path=Utility.captureScreenshot(driver, result.getName());\n\t\t\tString image=logger.addScreenCapture(screenshot_path);\n\t\t\tlogger.log(LogStatus.FAIL, \"User is Not able to Login as Seller.\");\n\t\t\tlogger.log(LogStatus.FAIL, \"Seller_Login_Failed\", image);\n\t\t}\n\t\t//\n\t\t//End the test in Automation Report and generate the report\n\t\t//\n\t\treport.endTest(logger);\n\t\treport.flush();;\n\t\tdriver.close();\n\t}", "@After\n public void tearDown() {\n try {\n removeKeyPair(ALIAS_IMPORTED);\n removeKeyPair(ALIAS_GENERATED);\n removeKeyPair(ALIAS_1);\n } catch (RemoteException e) {\n // Nothing to do here but warn that clean-up was not successful.\n Log.w(TAG, \"Failed cleaning up installed keys\", e);\n }\n unbindTestSupportService();\n assertThat(mIsSupportServiceBound).isFalse();\n unbindKeyChainService();\n assertThat(mIsKeyChainServiceBound).isFalse();\n }", "@AfterSuite\n\tpublic void teardown() {\n\t\t\n\t\tdriver.quit();\n\t}", "@After\r\n public void tearDown() throws Exception {\r\n PWCallback.resetHandle();\r\n }", "@AfterMethod(alwaysRun=true)\n public boolean testCleanUp()\n throws Exception\n {\n return true;\n }", "protected void tearDown() throws Exception {\n actionManager = null;\n TestHelper.clearConfig();\n super.tearDown();\n }", "@AfterEach\r\n public void tearDown() {\r\n SRtest = null;\r\n assertNull(SRtest);\r\n }", "@After\r\n public void tearDown(){\r\n \r\n Post post = entityManager.createNamedQuery(\"Post.fetchAllRecordsByUserId\", Post.class)\r\n .setParameter(\"value1\", 1l)\r\n .getSingleResult();\r\n \r\n assertNotNull(post);\r\n \r\n entityTransaction.begin();\r\n entityManager.remove(post);\r\n entityTransaction.commit();\r\n\r\n entityManager.close();\r\n }", "@After\n\tpublic void tearDown() {\n\n\t}", "@AfterMethod\n public void tearDown() throws Exception {\n UserInterface.close();\n }", "@Override\r\n protected void tearDown() {\r\n // nothing yet\r\n }", "@BeforeEach\n\tpublic void cleanDataBase()\n\t{\n\t\taddRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t\t\n\t\tdomRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t}", "@After\r\n\tpublic void tearDown() {\n\t}" ]
[ "0.7297737", "0.6828958", "0.67841476", "0.67045295", "0.6679708", "0.66752297", "0.6563684", "0.6548086", "0.65122306", "0.64296633", "0.6427565", "0.6401281", "0.6395003", "0.6388721", "0.6367604", "0.6359338", "0.63516", "0.6308669", "0.630071", "0.62948835", "0.6283199", "0.62726754", "0.6266808", "0.626246", "0.62608296", "0.62603736", "0.6260321", "0.62473357", "0.6223234", "0.6201346", "0.62000144", "0.6195877", "0.61857724", "0.61823756", "0.617315", "0.6166542", "0.6155901", "0.6136671", "0.61182743", "0.6113919", "0.6108349", "0.6106904", "0.6105766", "0.6104578", "0.6095206", "0.60844386", "0.6069652", "0.6068725", "0.6062088", "0.6047273", "0.60414153", "0.60410434", "0.6036126", "0.60306853", "0.6030059", "0.6025622", "0.6024426", "0.60219526", "0.6014301", "0.60073006", "0.6001134", "0.5999761", "0.5998869", "0.599824", "0.59954464", "0.5993325", "0.5990164", "0.598627", "0.59849346", "0.5983943", "0.5980948", "0.5980948", "0.5976039", "0.59643984", "0.5963012", "0.5959828", "0.5957636", "0.5957178", "0.59561795", "0.5955515", "0.5955331", "0.59527963", "0.5951858", "0.59448856", "0.593937", "0.59388363", "0.5935001", "0.5931152", "0.59279597", "0.5927842", "0.5927816", "0.59263617", "0.5922537", "0.59208786", "0.59180194", "0.59161794", "0.5912932", "0.59064764", "0.5905118", "0.58905774" ]
0.72181004
1
NOTE: This test is to simulate a failure in a test execute that triggers Cleanup to occur.
@Test(expected = Exception.class) public void portalTestBaseCleanupAfterFailure() throws Exception { VoodooUtils.voodoo.log.info("Running portalTestBaseCleanupAfterFailure()..."); // Log into Portal portal.loginScreen.navigateToPortal(); portal.login(portalUser); portal.loginScreen.getControl("login").click(); // This will fail, but the @Test expects this VoodooUtils.voodoo.log.info("portalTestBaseCleanupAfterFailure() completed."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AfterMethod(alwaysRun=true)\n public boolean testCleanUp()\n throws Exception\n {\n boolean status = true;\n \n status &= super.testCleanUp();\n \n assertTrue(status, \"Cleanup failed\");\n return status;\n }", "public void testGetCleanupOnPutFailure() {\n System.out.println(\"getCleanupOnPutFailure\");\n \n boolean expResult = false;\n boolean result = instance.getCleanupOnPutFailure();\n assertEquals(expResult, result);\n \n }", "@AfterMethod(alwaysRun=true)\n public boolean testCleanUp()\n throws Exception\n {\n boolean status = true;\n \n if (vmDeltaCfgSpec != null) {\n status &= ivm.reconfigVM(vm1Mor, vmDeltaCfgSpec);\n } else {\n log.error(\"failed to power off the VM.\");\n }\n \n status &= super.testCleanUp();\n assertTrue(status, \"Cleanup failed\");\n return status;\n\n }", "@AfterMethod(alwaysRun=true)\n public boolean testCleanUp()\n throws Exception\n {\n return true;\n }", "@Override\n protected void performCleanup() {\n }", "protected abstract void cleanup() throws Throwable;", "@AfterClass\n\tpublic static void testCleanup() {\n\t}", "void tryCleanup() throws Exception;", "private void doCleanup() {\n Log.INFO(\"Final cleanup\");\n try { // return to full-cluster-running state\n restartNode(); \n } catch (HoneycombTestException e) {\n Log.ERROR(\"Final cleanup failed: \" + e);\n }\n }", "protected void tearDown() throws Exception {\n\t\tthis.tmpDir.clear();\r\n\t}", "@After\n\tpublic void testEachCleanup() {\n\t\tSystem.out.println(\"Test Completed!\");\n\t}", "@AfterClass\n public void cleanUp() {\n }", "public void _test_exit() throws Exception {\r\n System.exit(0);\r\n }", "protected void runAfterTest() {}", "public void xxxtestDestroy() throws Exception\n {\n fail(\"Unimplemented test\");\n }", "@AfterClass\r\n\tpublic static void testCleanup() {\r\n\t\tConfig.teardown();\r\n\t}", "@Test\n public void testInitialCleanup() throws Exception{\n File f = new File(path);\n assertTrue(f.exists());\n assertTrue(f.isDirectory());\n File[] files = f.listFiles();\n // Expect all files were deleted\n assertTrue(files.length == 0);\n }", "public void _test_exit() throws Exception {\n System.exit(0);\n }", "public void _test_exit() throws Exception {\n System.exit(0);\n }", "public void _test_exit() throws Exception {\n System.exit(0);\n }", "@AfterClass(alwaysRun = true)\n\tpublic void destroy() throws Exception {\n\t\tsuper.cleanup();\n\t}", "@After\n\tpublic void tearDown() {}", "@BeforeMethod()\n @AfterClass(groups = \"close\")\n public void cleanup()\n throws Exception\n {\n this.cleanup(AbstractTest.CI.DM_PATHTYPE); // as first, so that local attributes of path types are deleted!\n this.cleanup(AbstractTest.CI.PRG_MQL);\n this.cleanup(AbstractTest.CI.DM_ATTRIBUTE);\n this.cleanup(AbstractTest.CI.DM_RELATIONSHIP);\n this.cleanup(AbstractTest.CI.DM_RULE);\n this.cleanup(AbstractTest.CI.DM_TYPE);\n }", "@Override\n @AfterMethod(alwaysRun=true)\n public boolean testCleanUp()\n throws Exception\n {\n if (authHelper != null) {\n Assert.assertTrue(authHelper.performSecurityTestsCleanup(),\n \"Failed to perform Security Tests Cleanup\");\n }\n\n powerOffAllVms();\n // delete the dvs\n Assert.assertTrue(NetworkResourcePoolHelper.applyHostConfig(\n connectAnchor, hostMor1, srcHostProfile1),\n \"Profile applied on host 1\", \"Unable to apply profile on host 1\");\n\n Assert.assertTrue(NetworkResourcePoolHelper.applyHostConfig(\n connectAnchor, hostMor2, srcHostProfile2),\n \"Profile applied on host 2\", \"Unable to apply profile on host 2\");\n\n Assert.assertTrue(idvs.destroy(dvsMor), \"DVS destroyed\",\n \"Unable to destroy DVS\");\n\n return true;\n }", "protected void tearDown() throws Exception {\n\t\tdeployer.deleteDir(unitTestDir);\n\t\tassertFalse(new File(unitTestDir, \"composition.groovy\").exists());\n\t}", "protected void tearDown() throws Exception {\r\n \t\tarchetype = null;\r\n \t}", "@After\n public final void tearDown() throws Exception\n {\n // Empty\n }", "@Override\n\tpublic void teardown() {\n\t}", "@After\r\n\tpublic void tearDown()\r\n\t{\n\t\twhile (Transaction.current().isRunning())\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tLOG.warn(\"test \" + getClass().getSimpleName() + \" found open transaction - trying rollback ...\");\r\n\t\t\t\tTransaction.current().rollback();\r\n\t\t\t}\r\n\t\t\tcatch (final Exception e)\r\n\t\t\t{\r\n\t\t\t\t// can't help it\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\t@After\r\n\tpublic void callTearDown() throws Exception\r\n\t{\r\n\t\tsuper.callTearDown();\r\n\t}", "@After\n public final void tearDown() throws Throwable\n {\n myLog.debug( \"entering...\" );\n\n try\n {\n if ( Files.exists( Testconstants.ROOT_DIR ) )\n {\n Helper.deleteDirRecursive( Testconstants.ROOT_DIR );\n }\n \n Files.deleteIfExists( myExcludeFile );\n \n myLog.debug( \"leaving...\" );\n }\n catch ( Throwable t )\n {\n myLog.error( \"Throwable caught in tearDown()\", t );\n throw t;\n }\n }", "public void tearDown() throws Exception {\n TestHelper.clearTemp();\n super.tearDown();\n }", "@After\n public void tearDown() {\n try {\n removeKeyPair(ALIAS_IMPORTED);\n removeKeyPair(ALIAS_GENERATED);\n removeKeyPair(ALIAS_1);\n } catch (RemoteException e) {\n // Nothing to do here but warn that clean-up was not successful.\n Log.w(TAG, \"Failed cleaning up installed keys\", e);\n }\n unbindTestSupportService();\n assertThat(mIsSupportServiceBound).isFalse();\n unbindKeyChainService();\n assertThat(mIsKeyChainServiceBound).isFalse();\n }", "@After\r\n\tpublic void cleanup() {\n\t}", "public abstract void tearDown();", "public void test_RemoveContestStatus_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n entityManager.close();\r\n beanUnderTest.removeContestStatus(1);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n clearFiles();\r\n StressTestHelper.clearConfig();\r\n }", "@Override\n public void teardown() {\n }", "@After\r\n public void tearDown() throws Exception {\n }", "@After\r\n public void tearDown() throws Exception {\n }", "@Override\r\n protected void tearDown() throws Exception {\r\n ctx = null;\r\n projectService = null;\r\n }", "@Override\n @AfterMethod(alwaysRun=true)\n public boolean testCleanUp()\n throws Exception\n {\n boolean status = true;\n\n if (this.isVMCreated) {\n log.info(\"Destroying the created VM\");\n status &= this.ivm.destroy(this.vmMor);\n } else if (this.originalVMState != null) {\n log.info(\"Restoring the VM to its original power state.\");\n status &= this.ivm.setVMState(this.vmMor, this.originalVMState,\n false);\n }\n if (this.originalNetworkConfig != null) {\n log.info(\"Restoring the network setting of the host\");\n status &= this.ins.updateNetworkConfig(this.nsMor,\n this.originalNetworkConfig,\n TestConstants.CHANGEMODE_MODIFY);\n }\n if (this.dvsMor != null) {\n status &= this.iDVS.destroy(this.dvsMor);\n }\n\n return status;\n }", "@AfterMethod(alwaysRun = true)\n public void cleanupTest() throws Exception {\n busService.getBus().unregister(testListener);\n busService.getBus().stop();\n \n // STOP NOTIFICATION QUEUE\n ((Engine)entitlementService).stop();\n\n log.warn(\"DONE WITH TEST\\n\");\n }", "@After\n public void tearDown() {\n \n }", "@After\n public void clearup() {\n try {\n pm.close();\n DriverManager.getConnection(\"jdbc:derby:memory:test_db;drop=true\");\n } catch (SQLException se) {\n if (!se.getSQLState().equals(\"08006\")) {\n // SQLState 08006 indicates a success\n se.printStackTrace();\n }\n }\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\t\n\t}", "protected void tearDown() throws Exception {\n }", "abstract void tearDown() throws Exception;", "@AfterClass\n\tpublic static void cleanup() {\n\t\ttestDir.delete();\n\t\tfile.delete();\n\t}", "@Test\n public void test01cleanup() throws IOException {\n // when\n Map<String, Job> jobs = jenkins.getJobs();\n for (String jobName: jobs.keySet()) {\n if (!JOB_GENERATOR_JOB_NAME.equals(jobName)) {\n jenkins.deleteJob(jobName);\n }\n }\n jobs = jenkins.getJobs();\n\n // then\n assertThat(jobs.size(), is(1));\n }", "@Override\n public void tearDown() throws Exception {}", "@After\n public void tearDown(final TestContext aContext) throws Exception {\n final Async async = aContext.async();\n\n myRunTestOnContextRule.vertx().close(result -> {\n if (!result.succeeded()) {\n final String message = LOGGER.getMessage(MessageCodes.MFS_066);\n\n LOGGER.error(message);\n aContext.fail(message);\n } else {\n // Clean up our manifest test file\n if (myAmazonS3.doesObjectExist(myS3Bucket, myManifestS3Key)) {\n myAmazonS3.deleteObject(myS3Bucket, myManifestS3Key);\n }\n\n // Clean up our collection test file\n if (myAmazonS3.doesObjectExist(myS3Bucket, myCollectionS3Key)) {\n myAmazonS3.deleteObject(myS3Bucket, myCollectionS3Key);\n }\n\n TestUtils.complete(async);\n }\n });\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tFileUtils.cleanDirectory(new File(this.tempFolderPath));\n\t}", "@After\n\tpublic void tearDown() throws Exception{\n\t\t// Don't need to do anything here.\n\t}", "@AfterAll\n static void cleanOperate()\n { \n //clear reference of operate after all the tests done\n operate = null;\n System.out.println(\"only After all the tests....\");\n }", "@After\n public void tearDown() throws Exception {\n }", "@After\r\n public void tearDown() throws Exception {\r\n super.tearDown();\r\n TestHelper.cleanupEnvironment();\r\n instance = null;\r\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n FailureTestHelper.unloadConfig();\r\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.deleteFile(\"\");\n }", "public void runBare() throws Throwable {\n Throwable exception= null;\n setUp();\n try {\n runTest();\n } catch (Throwable running) {\n exception= running;\n }\n finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (exception == null) exception= tearingDown;\n }\n }\n if (exception != null) throw exception;\n }", "@After\r\n\tpublic void tearDown() throws Exception {\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t\tSystem.setOut(null);\n\t\tSystem.setErr(null);\n\n\t}", "@After\r\n public void tearDown() {\r\n try {\r\n Connection conn=DriverManager.getConnection(\"jdbc:oracle:thin:@//localhost:1521/XE\",\"hr\",\"hr\");\r\n Statement stmt = conn.createStatement();\r\n stmt.execute(\"DELETE FROM Packages WHERE Pkg_Order_Id=-1\");\r\n stmt.execute(\"DELETE FROM Packages WHERE Pkg_Order_Id=-2\");\r\n } catch (Exception e) {System.out.println(e.getMessage());}\r\n }", "@Override\r\n public void cleanup() {\n }", "protected void tearDown() throws Exception {\n TestHelper.executeDBScript(TestHelper.SCRIPT_CLEAR);\n TestHelper.closeAllConnections();\n TestHelper.clearAllConfigurations();\n\n super.tearDown();\n }", "public void test_RemoveContestStatus_Failure3() throws Exception {\r\n try {\r\n initContext();\r\n\r\n entityManager.enablePersistenceException(true);\r\n beanUnderTest.removeContestStatus(1);\r\n\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }", "@AfterClass\n public static void cleanup() throws Exception {\n fs.delete(new Path(baseDir), true);\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\n public void tearDown() {\n fixture.cleanUp();\n }", "protected void tearDown() throws Exception {\n super.tearDown();\n FailureTestHelper.unloadData();\n FailureTestHelper.unloadConfig();\n }", "@AfterTest\r\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "protected void tearDown() throws Exception {\n actionManager = null;\n TestHelper.clearConfig();\n super.tearDown();\n }", "protected void tearDown() throws Exception {\n TestHelper.clearConfig();\n super.tearDown();\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@After\n public void tearDown() throws Exception {\n\n }", "@After\n public void tearDown() throws Exception {\n databaseTester.onTearDown();\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@Override\r\n protected void tearDown() {\r\n // nothing yet\r\n }", "@Test\n\tpublic void t3() {\n\n\t\tlogger.info(\"start\");\n\n\t\ttestFinalize();\n\t\tSystem.gc();\n\n\t\tlogger.info(\"done\");\n\n\t}", "protected void tearDown() {\n // empty\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tfor (int i = 0; i < feedbacks.length; ++i) {\n\t\t\tfeedbacks[i] = null;\n\t\t}\n\t\tfeedbacks = null;\n\t\texecuteSQL(connection, \"test_files/stress/clear.sql\");\n\t\tconnection.close();\n\t\tconnection = null;\n\t}", "@Override\n public void cleanup() {\n }" ]
[ "0.7409567", "0.7186945", "0.71776766", "0.71596515", "0.71391934", "0.7128949", "0.70570284", "0.7025625", "0.69914454", "0.698841", "0.696799", "0.69176096", "0.6862626", "0.6841069", "0.6815385", "0.67998505", "0.67941314", "0.6783766", "0.6783766", "0.6783766", "0.6776801", "0.676048", "0.6752712", "0.67416453", "0.674001", "0.67150134", "0.6713008", "0.6700593", "0.66885394", "0.6688115", "0.6686119", "0.66846025", "0.6667996", "0.6665385", "0.66505903", "0.66461086", "0.6641189", "0.66371506", "0.6632674", "0.6632674", "0.66317487", "0.66198254", "0.66191965", "0.6610246", "0.66073185", "0.6603221", "0.6599081", "0.6589702", "0.65894735", "0.65852475", "0.65824175", "0.65802", "0.65744936", "0.6569639", "0.65678746", "0.6560295", "0.65569854", "0.6552339", "0.65448403", "0.6544017", "0.6534585", "0.6525411", "0.6525411", "0.6517186", "0.6516866", "0.65040207", "0.6503101", "0.6498999", "0.64956933", "0.6494151", "0.6494151", "0.6494151", "0.6494151", "0.6491717", "0.6489839", "0.6488883", "0.6487776", "0.6485043", "0.64845675", "0.6478712", "0.6478712", "0.6478712", "0.6478712", "0.6478712", "0.6478712", "0.6478712", "0.6478712", "0.6478712", "0.647859", "0.6474839", "0.6474207", "0.6474207", "0.6474207", "0.6474207", "0.6474207", "0.6473131", "0.6467923", "0.64670473", "0.6464158", "0.6463806" ]
0.6595225
47
System.out.println(privilegeList + "|ifAll|" + privilegeCode);
public static boolean isUrl(List<String> urlList, String url) { if (StringUtils.isNotEmpty(url) && urlList != null) { String[] needPri = url.split(DELIMITED_CHAR); for (String pri : needPri) { if (!urlList.contains(pri)) { return false; } } return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void showList() {\n\t\tSystem.out.println(\"I am a MAC list\");\r\n\t}", "public int getMetaPrivileges();", "public void printOut() {\n System.out.println(\"\\t\" + result + \" = icmp \" + cond.toLowerCase() + \" \" + type + \" \" + op1 + \", \" + op2 );\n\n // System.out.println(\"\\t\" + result + \" = bitcast i1 \" + temp + \" to i32\");\n }", "public static void printIRCode(){\n\t\tfor (int i=0; i < ircode.size(); i++){\n\t\t\tSystem.out.println(\";\"+ircode.get(i).printCode());\n\t\t}\n\t}", "public void printWeaponList(List<Weapon> list) {\n\t\tSystem.out.println(\"**** Available Weapons ****\");\n\t\tSystem.out.println(\"ID\\tName\\t\\tDamage\\tEquipped\");\n\t\tSystem.out.println(\"============================================================================================\");\n\t\tint id = 1;\n\t\tfor(Weapon w : list) {\t\t\n\t\t\tSystem.out.printf(id++ + \"\\t\" + w.getName() + \"\\t\\t\"+ w.getWeaponDmg()+ \"\\t\");\n\t\t\tif(w.isEquipped()) {\n\t\t\t\tSystem.out.println(\"Y\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"N\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\t\n\t}", "public void printByUser() {\r\n TUseStatus useStatus;\r\n\t for (int a=0; a < m_current_resources_count; a++)\r\n\t for (int b=0; b < m_current_users_count; b++) {\r\n\t useStatus = m_associations[a][b];\r\n\t if (useStatus!=null) System.out.println(useStatus.toString()); \r\n\t } \r\n }", "@Override\r\n public String toString() {\r\n return \"(\" + idn + \",\" + this.n + \")\"; //il y avait un rpobleme avec id -> me disait que acces privé dans noeud\r\n }", "public String showAll()\n {\n StringBuilder commandList = new StringBuilder();\n \n for(String command : validCommands.keySet()) \n {\n commandList.append( command + \" \" );\n } //for\n \n return commandList.toString();\n }", "private void printResult()\n\t{\n\t\t java.util.Iterator<Entry<String, Guest>> it = guestMapList.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pair = (Map.Entry)it.next();\n Guest guest = (Guest) pair.getValue();\n if(guest.isInvited())\n \t \tSystem.out.println(\"guest \"+guest.getName()+\" should invited!!\");\n it.remove(); // avoids a ConcurrentModificationException\n }\n\t}", "public void displayList() {\n\n\t\tIterator<SimplePacket> itr = list.iterator();\n\n\t\twhile(itr.hasNext()) {\n\t\t\tSimplePacket packet = itr.next();\n\t\t\tif(!packet.isValidCheckSum()){\n\t\t\t\tSystem.out.print(\"[\" + packet.getSeq() + \"], \");\n\t\t\t}else{\n\t\t\t\tSystem.out.print(packet.getSeq() + \", \");\n\t\t\t}\n\t\t}\n\t}", "public void printArmorList(List<Armor> list) {\n\t\tSystem.out.println(\"**** Available Armors ****\");\n\t\tSystem.out.println(\"ID\\tName\\t\\tDamage Prevention\\tEquipped\");\n\t\tSystem.out.println(\"============================================================================================\");\n\t\tint id = 1;\n\t\tfor(Armor a : list) {\n\t\t\n\t\t\tSystem.out.printf(id++ + \"\\t\" + a.getName() + \"\\t\\t\" + a.getDamagePrevention() + \"\\t\\t\\t\");\n\t\t\tif(a.isEquipped()) {\n\t\t\t\tSystem.out.println(\"Y\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"N\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "public void printChecklist() {\n\t\tfor(String str : checklist.keySet()) {\n\t\t\tMyUtils.Log(\"[Checklist] \"+str+\", \"+checklist.get(str));\n\t\t}\n\t}", "Privilege getPrivilege();", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "public String toString(){\r\n\t\treturn(ssid+\",\"+mac+\",\"+frequency+\",\"+signal+\",\");\r\n\t}", "public void printContribuintes (){\n for(String s : contribuintes.keySet()){\n System.out.printf(\"%s\",getContribuinte(s).toString());\n }\n }", "Commands getIf_commands();", "public void showFacilities() {\r\n\t\tfor(Facility f: facilities.values()) {\r\n\t\t\tSystem.out.println(f.toString());\r\n\t\t}\r\n\t}", "static void printGeneralOptions(){\n System.out.println(GeneralInfo.PREFIX_COMMAND_DESCRIPTION + \"NameWeapon/Powerup: read the description of that weapon/powerup\");\n }", "public void printPackagePowerUsage() {\n }", "public void printList() {\n userListCtrl.showAll();\n }", "public String getFloodPerm(String dpidStr) throws PermissionDeniedException;", "public void printList(){\n\t\tfor(User u : userList){\r\n\t\t\tSystem.out.println(\"Username: \" + u.getUsername() + \" | User ID: \" + u.getUserID() + \" | Hashcode: \" + u.getHashcode() + \" | Salt: \" + u.getSalt());\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n List<PcapIf> alldevs = new ArrayList<PcapIf>(); // Will be filled with NICs\n StringBuilder errbuf = new StringBuilder(); // For any error msgs\n\n /**\n * *************************************************************************\n * First get a list of devices on this system\n * ************************************************************************\n */\n int r = Pcap.findAllDevs(alldevs, errbuf);\n if (r == Pcap.NOT_OK || alldevs.isEmpty()) {\n System.err.printf(\"Can't read list of devices, error is %s\", errbuf\n .toString());\n return;\n }\n\n System.out.println(\"Network devices found:\");\n\n int i = 0;\n try {\n for (PcapIf device : alldevs) {\n String description\n = (device.getDescription() != null) ? device.getDescription()\n : \"No description available\";\n final byte[] mac = device.getHardwareAddress();\n String dir_mac = (mac == null) ? \"No tiene direccion MAC\" : asString(mac);\n System.out.printf(\"#%d: %s [%s] MAC:[%s]\\n\", i++, device.getName(), description, dir_mac);\n\n }//for\n\n PcapIf device = alldevs.get(1); // We know we have atleast 1 device\n System.out\n .printf(\"\\nChoosing '%s' on your behalf:\\n\",\n (device.getDescription() != null) ? device.getDescription()\n : device.getName());\n\n /**\n * *************************************************************************\n * Second we open up the selected device\n * ************************************************************************\n */\n /*\"snaplen\" is short for 'snapshot length', as it refers to the amount of actual data captured from each packet passing through the specified network interface.\n 64*1024 = 65536 bytes; campo len en Ethernet(16 bits) tam máx de trama */\n int snaplen = 64 * 1024; // Capture all packets, no trucation\n int flags = Pcap.MODE_PROMISCUOUS; // capture all packets\n int timeout = 10 * 1000; // 10 seconds in millis\n Pcap pcap\n = Pcap.openLive(device.getName(), snaplen, flags, timeout, errbuf);\n\n if (pcap == null) {\n System.err.printf(\"Error while opening device for capture: \"\n + errbuf.toString());\n return;\n }//if\n\n /**\n * ******F I L T R O*******\n */\n PcapBpfProgram filter = new PcapBpfProgram();\n String expression = \"\"; // \"port 80\";\n int optimize = 0; // 1 means true, 0 means false\n int netmask = 0;\n int r2 = pcap.compile(filter, expression, optimize, netmask);\n if (r2 != Pcap.OK) {\n System.out.println(\"Filter error: \" + pcap.getErr());\n }//if\n pcap.setFilter(filter);\n /**\n * *************\n */\n\n /**\n * *************************************************************************\n * Third we create a packet handler which will receive packets from\n * the libpcap loop.\n * ********************************************************************\n */\n PcapPacketHandler<String> jpacketHandler = new PcapPacketHandler<String>() {\n\n public void nextPacket(PcapPacket packet, String user) {\n\n System.out.printf(\"Received packet at %s caplen=%-4d len=%-4d %s\\n\",\n new Date(packet.getCaptureHeader().timestampInMillis()),\n packet.getCaptureHeader().caplen(), // Length actually captured\n packet.getCaptureHeader().wirelen(), // Original length\n user // User supplied object\n );\n\n /**\n * ****Desencapsulado*******\n */\n for (int i = 0; i < packet.size(); i++) {\n System.out.printf(\"%02X \", packet.getUByte(i));\n if (i % 16 == 15) {\n System.out.println(\"\");\n }\n }\n System.out.println(\"\\n\\nEncabezado: \" + packet.toHexdump());\n \n\n /*-------------------------Verificacion de ETHERNET-------------------------*/\n int tipoIP;\n //tipoIP = (int) ((packet.getUByte(12)*(Math.pow(2, 8))) + packet.getUByte(13));\n tipoIP = (packet.getUByte(12) << 8 | packet.getUByte(13));\n System.out.printf(\"IP = %02X \\n\",(byte)tipoIP);\n /*--------------------------------------------------------------------------*/\n\n /*-------------LONGITUD DEL PAQUETE (PDU DE IP)-----*/\n byte[] longitudTrama = new byte[2];\n longitudTrama[0] = (byte) (packet.getUByte(16));\n longitudTrama[1] = (byte) (packet.getUByte(17));\n /*--------------------------------------------------*/\n \n /*------------------------CHECKSUM DE LA TRAMA--------------------------*/\n byte[] checksum = {(byte)packet.getUByte(24),(byte)packet.getUByte(25)};\n /*---------------------------------------------------------------------*/\n \n\n if (tipoIP == 0x086DD) { //IPV6\n System.out.println(\"IPV6: No contiene Checksum\");\n } else if (tipoIP == 0x0800) { //IPV4 \n System.out.println(\"IPV4\");\n \n /*Capturar bytes del encabezado IP. \n Va del byte 14-33, son 20 bytes------------*/\n byte[] IP = new byte[20];\n for (int j = 14,i=0; j < 34;j++) \n {\n IP[i]=(byte)packet.getUByte(j);\n \n if(j==24 || j==25){ //Lugar del Checksum\n IP[i] = (byte)0x00;\n }\n i++;\n }\n /*Obtener Checksum*/\n long checksumIP = Checksum.calculateChecksum(IP);\n System.out.printf(\"|-- Valor de Checksum IP: %02X --|\\n\",checksumIP);\n \n /*------------------------------*/\n int protocol = (packet.getUByte(23));\n System.out.printf(\"\\tProtocolo: %02X\\n\",(byte)protocol);\n\n if ((byte)protocol == 0x06) //PROTOCOLO TCP\n {\n System.out.printf(\"PROTOCOLO TCP: %02X\\n\",(byte)protocol);\n \n System.out.println(\"---PROTOCOLO TCP/IP---\");\n \n /*---------------------IHL: 45---------------------*/\n byte IHL_limpio = (byte) (packet.getUByte(14) & 0x0000000F);\n int IHL = (IHL_limpio * 4); //Longitud del encabezado \n /*Solamente se requiere la longitud del encabezado: 5\n La otra parte especifica la versión: 4*/\n /*---------------------------------------------*/\n\n /*---------------------PDU de IP---------------------*/\n int longitud = (int) ((packet.getUByte(16) * (Math.pow(2, 8))) + (packet.getUByte(17)));\n /*---------------------------------------------------*/\n \n /*------------Longitud que irá al Pseudo Encabezado---------*/\n int longitudTotal = longitud - IHL;\n System.out.println(\"Longitud: \"+longitud+\"\\nIHL: \"+IHL);\n /*----------------------------------------------------------*/\n \n //Reservado para la longitud de encabezado (TCP O UDP)\n byte[] pseudoEncabezado = new byte[IHL];\n\n for (int j = 0; j < 4; j++) {\n /*----------------------IP ORIGEN----------------------*/\n pseudoEncabezado[j] = (byte) (packet.getUByte(26 + j));\n /*-----------------------------------------------------*/\n\n /*---------------------IP DESTINO---------------------*/\n pseudoEncabezado[j + 4] = (byte) (packet.getUByte(30 + j));\n /*----------------------------------------------------*/\n }\n pseudoEncabezado[8] = 0x00;\n\n /*-------------------PROTOCOLO (0x06)------------------*/\n pseudoEncabezado[9] = (byte) (packet.getUByte(23));\n /*----------------------------------------------------*/\n \n /*-------------------LONGITUD-------------------------*/\n pseudoEncabezado[10] = (byte)packet.getUByte(16);\n pseudoEncabezado[11] = (byte)(packet.getUByte(17)-IHL);\n /*---------------------------------------------------*/\n \n /*El pseudoEncabezado representa la primer mitad para obtener el Checksum*/\n \n /*---La segunda mitad es representada por el PDU_Trans---*/\n byte[] PDU_Trans = new byte[longitudTotal];\n for (int k = 34,q=0; k < 34+longitudTotal; k++,q++) \n {\n PDU_Trans[q]=(byte)packet.getUByte(k);\n }\n /*------------------------------------------------------*/\n \n /*-----------UNION de PDU_Trans con pseudoEncabezado----*/\n int length_pseudoE = pseudoEncabezado.length;\n int length_PDU_Trans = PDU_Trans.length;\n \n byte[] encabezadoFinal;\n encabezadoFinal= new byte[length_pseudoE + length_PDU_Trans];\n \n System.arraycopy(pseudoEncabezado, 0, encabezadoFinal, 0, length_pseudoE);\n System.arraycopy(PDU_Trans, 0, encabezadoFinal, length_pseudoE, length_PDU_Trans);\n \n long checksumTCP = Checksum.calculateChecksum(encabezadoFinal);\n System.out.printf(\"Checksum del TCP: %04X \\n\",checksumTCP);\n /*------------------------------------------------------*/\n }else if ((byte)protocol == 0x11){ //PROTOCOLO UDP\n System.out.printf(\"\\tPROTOCOLO UDP: %02X\\n\",(byte)protocol);\n \n /*---------------------IHL: 45---------------------*/\n byte IHL_limpio = (byte) (packet.getUByte(14) & 0x0000000F);\n int IHL = (IHL_limpio * 4); //Longitud del encabezado \n /*---------------------------------------------*/\n\n /*---------------------PDU de IP---------------------*/\n int longitud = (int) ((packet.getUByte(16) * (Math.pow(2, 8))) + (packet.getUByte(17)));\n /*---------------------------------------------------*/\n \n /*------------Longitud que irá al Pseudo Encabezado---------*/\n int longitudTotal = longitud - IHL;\n /*----------------------------------------------------------*/\n \n //Reservado para la longitud de encabezado (TCP O UDP)\n byte[] pseudoEncabezado = new byte[IHL];\n\n for (int j = 0; j < 4; j++) {\n /*----------------------IP ORIGEN----------------------*/\n pseudoEncabezado[j] = (byte) (packet.getUByte(26 + j));\n /*-----------------------------------------------------*/\n\n /*---------------------IP DESTINO---------------------*/\n pseudoEncabezado[j + 4] = (byte) (packet.getUByte(30 + j));\n /*----------------------------------------------------*/\n }\n pseudoEncabezado[8] = 0x00;\n\n /*-------------------PROTOCOLO (0x11)------------------*/\n pseudoEncabezado[9] = (byte) (packet.getUByte(23));\n /*----------------------------------------------------*/\n \n /*-------------------LONGITUD-------------------------*/\n pseudoEncabezado[10] = (byte)packet.getUByte(16);\n pseudoEncabezado[11] = (byte)(packet.getUByte(17)-IHL);\n /*---------------------------------------------------*/\n \n /*El pseudoEncabezado representa la primer mitad para obtener el Checksum*/\n \n /*---La segunda mitad es representada por el PDU_Trans---*/\n byte[] PDU_Trans = new byte[longitudTotal];\n for (int k = 34,q=0; k < 34+longitudTotal; k++,q++) \n {\n PDU_Trans[q]=(byte)packet.getUByte(k);\n }\n /*------------------------------------------------------*/\n \n /*-----------UNION de PDU_Trans con pseudoEncabezado----*/\n int length_pseudoE = pseudoEncabezado.length;\n int length_PDU_Trans = PDU_Trans.length;\n \n byte[] encabezadoFinal;\n encabezadoFinal= new byte[length_pseudoE + length_PDU_Trans];\n \n System.arraycopy(pseudoEncabezado, 0, encabezadoFinal, 0, length_pseudoE);\n System.arraycopy(PDU_Trans, 0, encabezadoFinal, length_pseudoE, length_PDU_Trans);\n \n long checksumUDP = Checksum.calculateChecksum(encabezadoFinal);\n System.out.printf(\"Checksum del UCP: %04X \\n\",checksumUDP);\n /*------------------------------------------------------*/\n\n }\n\n }\n }\n };\n\n /**\n * *************************************************************************\n * Fourth we enter the loop and tell it to capture 10 packets. The\n * loop method does a mapping of pcap.datalink() DLT value to\n * JProtocol ID, which is needed by JScanner. The scanner scans the\n * packet buffer and decodes the headers. The mapping is done\n * automatically, although a variation on the loop method exists\n * that allows the programmer to sepecify exactly which protocol ID\n * to use as the data link type for this pcap interface.\n * ************************************************************************\n */\n pcap.loop(10, jpacketHandler, \"jNetPcap rocks!\");\n\n /**\n * *************************************************************************\n * Last thing to do is close the pcap handle\n * ************************************************************************\n */\n pcap.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public List<String> getLastFailedPrivileges();", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public String toString()\n\t\t{\n\t\t\tif (computedToString == null)\n\t\t\t{\n\t\t\t\tsynchronized(ExecutionPolicy.class)\n\t\t\t\t{\n\t\t\t\t\tcomputedToString = new StringBuilder().append(indent()).append(\"<OR>\\n\").append(super.toString()).append(indent()).append(\"</OR>\\n\").toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn computedToString;\n\t\t}", "public String toString()\r\n\t{\r\n\t\treturn this.mac+\",\"+this.ssid+\",\"+this.channel+\",\"+this.signal+\",\";\r\n\t\t\r\n\t}", "public void printAnc() {\n\tSystem.out.println(\"numOfControl: \" + numOfControl);\n\tfor (int ii = 0; ii < numOfControl; ii++ ) {\n\t paramFile[ii].printDevice();\n\t paramFile[ii].printUserParameters();\n\t paramFile[ii].printInstParameters();\n\t}\n }", "private void printAllOwners(ArrayList<String> ownerList){\n for(int i = 0; i < ownerList.size(); i++){\n System.out.println(ownerList.get(i));\n }\n }", "public void printCommands(){\n LocalApi.print_commands();\n }", "public void printContents() {\n\t\t\n//\t\tCollections.sort(finalized);\n\t\t\n\t\tSystem.out.print(\"Register Status:\");\n\t\t\n\t\tint i = 0;\n\t\tfor (; i < finalized.length - 1; i++) {\n\t\t\tSystem.out.println(\"Reg \" + i + \": \" + finalized[i].toString());\n\t\t}\n\t\tSystem.out.print(\"Reg \" + i + \": \" + finalized[finalized.length - 1].toString() + \"\\n\");\n\t}", "public void printMenu(List<String> list) {\n\t\t\tSystem.out.println(HEADER);\n\t\t\tfor(String s : list) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\tSystem.out.println(HEADER);\n\t\t}", "String getInterfaces();", "public void displayPolicy() {\n int noOfRows = environment.getRows();\n int noOfColumns = environment.getColumns();\n\n for (int i = 0; i < noOfRows; i++) {\n for (int j = 0; j < noOfColumns; j++) {\n if (!environment.getTile(i, j).getTileType().equals(\"WALL\")) {\n String action = environmentUtilities[i][j].getAction();\n switch(action){\n case \"Up\":\n action = \"^\";\n break;\n case \"Right\":\n action = \">\";\n break;\n case \"Left\":\n action = \"<\";\n break;\n case \"Down\":\n action = \"v\";\n break;\n }\n System.out.print(\"[\" + action + \"]\");\n }\n else {\n System.out.print(\"[X]\");\n }\n }\n System.out.print(\"\\n\");\n }\n }", "public void ListNetworkInerface() {\n\t\tNETWORK_INTERFACES=JpcapCaptor.getDeviceList(); \r\n\t\ttextArea_1.setText(\"\");\r\n\t\tfor(int i=0;i<NETWORK_INTERFACES.length;i++)\r\n\t\t{\r\n\t\t\t\ttextArea_1.append(\"\\n----------------------------------------------Interface \"+(i+1)+\" Info------------------------------------------\");\r\n\t\t\t\t\r\n\t\t\t\ttextArea_1.append(\"\\n Interface Number \"+(i+1));\r\n\t\t\t\ttextArea_1.append(\"\\n Description \"+NETWORK_INTERFACES[i].name + \"( \"+NETWORK_INTERFACES[i].description+\" )\");\r\n\r\n\t\t\t\ttextArea_1.append(\"\\n DataLink Name : \"+NETWORK_INTERFACES[i].datalink_name + \"( \"+NETWORK_INTERFACES[i].datalink_description+\" )\");\r\n\t\t\t\ttextArea_1.append(\"\\n MAC address : \");\r\n\t\t\t\tbyte R[]=NETWORK_INTERFACES[i].mac_address;\r\n\t\t\t\t\r\n\t\t\t\tfor(int A=0;A<6;A++)\t// \r\n\t\t\t\t{\r\n\t\t\t\t\ttextArea_1.append(Integer.toHexString(R[A] & 0xff)+ \":\");\r\n\t\t\t\t}\r\n\t\t\t\tNetworkInterfaceAddress []INT =NETWORK_INTERFACES[i].addresses;\r\n\t\t\t\t// there are n no of ip address of any particular network interface and we are calculating the info of one only\r\n\t\t\t\ttextArea_1.append(\"\\n IP Address : \"+INT[0].address);\r\n\t\t\t\t//textArea_1.append(\"\\n Subnet Mask : \"+INT[0].subnet);\r\n\t\t\t\t//textArea_1.append(\"\\n Broadcast Address : \"+INT[0].broadcast+\" \\n\");\r\n\t\t\t\t\r\n\t\t\t\tcounter++;\r\n\t\t}\r\n\t}", "private static void printHelp(){\r\n System.out.println(\"\\n\\n\\t\\t\\t ----HELP---\\n\\n\" +\r\n \"\\nYou can set the length of password like this \\n\" +\r\n \"\\t java -jar nipunpassgen.jar -l (where l is length of password) \\n\\n\" +\r\n \"\\nYou can also specifiy the which type of word your want to use like this-->\\n\" +\r\n \"\\t Type java -jar nipunpassgen.jar -l -tttt \\n \" +\r\n \"Here 1st t will set uselowercase true \\t 2nd t set useUppercase true\\n\" +\r\n \"\\t 3rd t set useDigit True \\t and 4th t set useSpecial Char true\\n\" +\r\n \"You can use 't' or 'T' for setting the true and 'f' or 'F' for setting the false\\n\" +\r\n \"You can pass -c flag at the end of command for directly copy the password in your\\n\" +\r\n \"clipboard without showing in console like this \\t java -jar nipunpassgen.jar -c \\t this will copy a\\n\" +\r\n \"random 8 digit password in your clipboard .\");\r\n }", "public String getFloodPerm() throws PermissionDeniedException;", "private void printAllStudentInDB(){\n ArrayList studentInformation = AdminManager.loadDBStudentInformation();\n System.out.println(\"--------------------------------------------------------------------------------------\");\n System.out.println(\"USERNAME STUDENT NAME MATRIC NUMBER GENDER NATIONALITY\");\n System.out.println(\"--------------------------------------------------------------------------------------\");\n\n for(int i=0; i<studentInformation.size();i++){\n String st = (String)studentInformation.get(i);\n StringTokenizer star = new StringTokenizer(st, \",\");\n System.out.print(String.format(\"%7s \",star.nextToken().trim()));\n String printPassword = star.nextToken().trim();\n System.out.println(String.format(\"%20s %9s %6s %s\",star.nextToken().trim(),star.nextToken().trim(),star.nextToken().trim(),star.nextToken().trim()));\n }\n System.out.println(\"--------------------------------------------------------------------------------------\\n\");\n }", "public String getAccess();", "private void ausgebenSystem() {\n\t\ttry {\n\t\t\tSystem.out.println(\"Rechner: \" + InetAddress.getLocalHost().getHostName());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println();\n\t\tString txt = System.getProperties().toString();\n\t\twhile (txt.indexOf(\",\") > 0) {\n\t\t\tSystem.out.println(txt.substring(0, txt.indexOf(\",\") + 1));\n\t\t\ttxt = txt.substring(txt.indexOf(\",\") + 2);\n\n\t\t}\n\t\tSystem.out.println(txt);\n\t}", "private void ViewAccounts() {\n for (int k = 0; k < accountList.size(); k++) {\n\n System.out.print(k + \": \" + accountList.get(k) + \" || \");\n\n }\n }", "public static void printMenu(){\n System.out.print(\"1. List all writing groups\\n\" +\n \"2. List all the data for one writing group\\n\"+\n \"3. List all publishers\\n\"+\n \"4. List all the data for one publisher\\n\"+\n \"5. List all books\\n\"+\n \"6. List all the data for one book\\n\"+\n \"7. Insert new book\\n\"+\n \"8. Insert new publisher\\n\"+\n \"9. Remove a book\\n\"+\n \"10. Quit\\n\\n\");\n }", "@Override\n public String toString() {\n String listChecker;\n if (status) {\n listChecker = \"[\\u2713]\";\n } else {\n listChecker = \"[x]\";\n }\n String finalString = listChecker + \" \" + getActivity();\n return finalString;\n }", "public static void viewListOfRegistrants() {\n\t\tArrayList<Registrant> list_reg = getRegControl().listOfRegistrants();\r\n\t\tif (list_reg.size() == 0) {\r\n\t\t\tSystem.out.println(\"No Registrants loaded yet\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"List of registrants:\\n\");\r\n\t\t\tfor (Registrant registrant : list_reg) {\r\n\t\t\t\tSystem.out.println(registrant.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printVisiblePermitcCards(int region, PermitCard[] permits);", "public void printByResource() {\r\n TUseStatus useStatus;\r\n\t for (int b=0; b < m_current_users_count; b++)\r\n\t for (int a=0; a < m_current_resources_count; a++) {\r\n\t useStatus = m_associations[a][b];\r\n\t if (useStatus!=null) System.out.println(useStatus.toString()); \r\n\t } \r\n }", "private String securityListToString(List<String> securityList) {\n return securityList.stream().collect(Collectors.joining(SECURITY_SEPARATOR));\n }", "private void ShowRep(Integer[] op) {\n System.out.print(\" \" + this.opCodeStrings[op[0]]);\n for (int i = 1; i < 13; i++) {\n if ((i - 1) % 4 == 0)\n System.out.print(\" | \");\n if (op[i] != null)\n System.out.print(\" \" + op[i]);\n else\n System.out.print(\" - \");\n }\n System.out.println();\n }", "public void printRegistrationPlates(){\n for(RegistrationPlate plates: this.registrationList.keySet()){\n System.out.println(plates);\n }\n }", "private void printTestList()\n {\n print(\"\");\n print(SECTION_DIVIDER);\n print(\"Press <1> to Display Main Video Output Port\");\n print(\"Press <2> to Display All Video Output Configurations\");\n print(\"Press <3> to Change Main Video Configuration with Listener\");\n print(\"Press <INFO> Display Test Options\");\n }", "private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }", "private void printLoggedInMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \n\t\t\"1.Search Users\", \"2.Search Movies\", \"3.View Feed\", \"4.View Profile\", \"5.Logout\", \"6.Exit\");\n\t}", "static void printListOfPowerups(List<PowerUpLM> powerUps) {\n for(PowerUpLM pu : powerUps){\n System.out.print(pu.getName() + \"(\" + ToolsView.ammoTypeToString(pu.getGainAmmoColor()) + \")\");\n if(powerUps.indexOf(pu) != powerUps.size()-1){\n System.out.print(\", \");\n }\n }\n }", "public final synchronized String list()\r\n { return a_info(true); }", "public static String get() {\n\t\treturn \"allowusersetup get\" + delimiter + \"allowusersetup get \";\n\t}", "public void showInfo() {\n\t\tfor (String key : list.keySet()) {\n\t\t\tSystem.out.println(\"\\tID: \" + key + list.get(key).toString());\n\t\t}\n\t}", "public void printInfo(){\n\t\tSystem.out.println(\"id : \" + id + \" label : \" + label);\n\t\tSystem.out.println(\"vms : \" );\n\t\tfor(VirtualMachine v : vms){\n\t\t\tv.printInfo();\n\t\t}\n\t}", "Set<String> listCapabilities();", "private static String printList(List<? super Integer> list){\n return list.toString();\n }", "@Override\n\tpublic void showInfo() {\n\t\tSystem.out.println(\"Machine Interface \" + id);\n\t}", "public void printModuleStudentInfo() {\t\r\n\tfor(int i =0; i<(StudentList.size()); i++) {\r\n\t\tStudent temp =StudentList.get(i);\r\n\t\tSystem.out.println(temp.getUserName());\r\n\t}\t\r\n}", "private void printExits ()\n {\n System.out.println(\"You are in the \" + currentRoom.getDescription());\n System.out.print(\"Exits: \");\n for(Exit e : currentRoom.getListExits()) {\n System.out.println(e.getDirection());\n } \n }", "public int getCouncilPrivileges() {\n\t\treturn councilPrivileges;\n\t}", "private static void printInterfaces(ClassContainer tempClass, ArrayList<String> whitelist, PrintWriter printFile) {\n\t\tfor (ArrowStorage interf : tempClass.getInterfaces()) {\n\t\t\tif (whitelist.contains(interf.getTargetType()) && interf.getTargetType().contains(\"_\")\n\t\t\t\t\t&& !interf.getTargetType().equals(tempClass.getClassName())) {\n\t\t\t\tprintFile.println(tempClass.getClassName() + \" -> \"\n\t\t\t\t\t\t+ interf.getTargetType() + \" [ \" + interf.getColor()\n\t\t\t\t\t\t+ \" \" + interf.getLabel()\n\t\t\t\t\t\t+ \"arrowhead=\\\"onormal\\\", style=\\\"dashed\\\"];\");\n\t\t\t}\n\t\t}\n\t}", "public void printProtocol()\n\t{\n\t\tString commands[] = {\"A\", \"UID\", \"S\", \"F\"};\n\t\t\n\t\tHashtable<String, String> commandDescription = new Hashtable<String, String>();\n\t\tHashtable<String, String> subStringCommands = new Hashtable<String, String>();\n\t\tcommandDescription.put(\"A\", \"Sends audio data using _ as a regex\");\n\t\tcommandDescription.put(\"UID\", \"Specifies the user's id so that the Network.Server may verify it\");\n\t\tcommandDescription.put(\"S\", \"Specifies server commands.\");\n\t\tcommandDescription.put(\"F\", \"Specifies audio format.\");\n\t\tsubStringCommands.put(\"A\", \"No commands\");\n\t\tsubStringCommands.put(\"UID\", \"No sub commands\");\n\t\tsubStringCommands.put(\"S\", \"Sub commands are: \\nclose - Closes the server.\\ndisconnect - Disconnects the client from the server.\\nclumpSize {int}\");\n\t\tsubStringCommands.put(\"F\", \"Split Audio specifications between spaces. The ordering is {float SampleRate, int sampleSizeInBits, int channels, int frameSize, float frameRate\");\n\t\t\n\t\tfor (String str: commands)\n\t\t{\n\t\t\tSystem.out.printf(\"Command format:\\n %s.xxxxxxx\\n\", str);\n\t\t\tSystem.out.printf(\"Command %s\\n Description: %s \\n sub commands %s\\n\", str, commandDescription.get(str),subStringCommands.get(str));\n\t\t\t\n\t\t}\n\t}", "String getAccess();", "String getAccess();", "private void outHex(){\n\t\tSystem.out.println(binary);\n\t\tpw.println(binary);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(findPerm(\"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\", 354));\n\t}", "public void quoteShow(List<?> instrucciones) {\n \tString texto=\"\";\n \tfor(int i=1;i<instrucciones.size();i++) {\n \t\t\n \t\ttexto+=instrucciones.get(i)+\" \";\n \t\tSystem.out.println(texto);\n \t}\n }", "public String toString()\r\n {\r\n StringBuffer sb = new StringBuffer(super.toString());\r\n\r\n if (requires_CHV)\r\n sb.append(\" CHV\" + number_of_CHV);\r\n if (requires_AUT)\r\n sb.append(\" AUT\" + number_of_key);\r\n if (requires_PRO)\r\n sb.append(\" PRO\" + number_of_key);\r\n if (requires_ENC)\r\n sb.append(\" ENC\" + number_of_key);\r\n\r\n if (never_accessible)\r\n sb.append(\" Never\");\r\n\r\n return sb.toString();\r\n }", "public HashSet<String> getForbiddenPrivileges() {\r\n\t\tHashSet<String> result = new HashSet<String>();\r\n\t\tint role = getCurrentRole();\r\n\t\tif ((role & User.ROLE_ADMINISTRATOR) != 0) {\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tfor (String privilegeName : privilegeDef.keySet()) {\r\n\t\t\tint requiredRoles = privilegeDef.get(privilegeName);\r\n\t\t\tif ((requiredRoles & role) == 0) {\r\n\t\t\t\tresult.add(privilegeName);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "void printList();", "public String get_snmpprivpassword()\r\n\t{\r\n\t\treturn this.snmpprivpassword;\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tEnumeration<NetworkInterface> interfaces;\r\n\t\ttry {\r\n\t\t\tinterfaces = NetworkInterface.getNetworkInterfaces();\r\n\t\t\twhile (interfaces.hasMoreElements()) {\r\n\t\t\t\tNetworkInterface sys = interfaces.nextElement();\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(Inet4Address.getLocalHost());\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(sys.getInetAddresses());\r\n\t\t\t\tbyte[] mac = sys.getHardwareAddress();\r\n\t\t\t\t\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tif (mac!=null) {\r\n\t\t\t\t\tSystem.out.println(sys.getInetAddresses());\r\n\t\t\t\t\tfor (int i = 0; i < mac.length; i++) {\r\n\t\t\t\t\t\tsb.append(String.format(\"%02X%s\", mac[i], (i < mac.length - 1) ? \"-\" : \"\"));\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(sb.toString());\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n//\t\tcatch (UnknownHostException e) {\r\n//\t\t\t// TODO Auto-generated catch block\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t\t\r\n\r\n\r\n\t}", "public static void ip(LinkedList<Integer> list) {\n\t\tfor (Integer integer : list) {\n\t\t\tSystem.out.print(integer + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public String toString() {\n\t\tStringBuffer sb;\n\t\tsb = new StringBuffer(\"\\nlogin : \" + login);\n\t\tsb.append(\"\\npass : \" + passwd);\n\t\tif (admin) sb.append(\"admin\");\n\t\tif (pcreator) sb.append(\"pcreator\");\n\t\treturn sb.toString();\n\t}", "private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}", "public void printData(){\n for(int i=0; i<list.size(); i++){\n System.out.print(list.get(i) + \" \");\n }\n System.out.println();\n }", "private String interestOpsToString(SelectionKey key){\n\t\tif (!key.isValid()) {\n\t\t\treturn \"CANCELLED\";\n\t\t}\n\t\tint interestOps = key.interestOps();\n\t\tArrayList<String> list = new ArrayList<>();\n\t\tif ((interestOps&SelectionKey.OP_ACCEPT)!=0) list.add(\"OP_ACCEPT\");\n\t\tif ((interestOps&SelectionKey.OP_READ)!=0) list.add(\"OP_READ\");\n\t\tif ((interestOps&SelectionKey.OP_WRITE)!=0) list.add(\"OP_WRITE\");\n\t\treturn String.join(\"|\",list);\n\t}", "private static void printUsage(){\n\t\tprintLine(USAGE_STRING);\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getBlocked() != null)\n sb.append(\"Blocked: \").append(getBlocked()).append(\",\");\n if (getPortProbeDetails() != null)\n sb.append(\"PortProbeDetails: \").append(getPortProbeDetails());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\r\n\tpublic List<Userprivileges> SelUserprivileges(String id)\r\n\t{\n\r\n\t\treturn Sel.HSQL(\"from Userprivileges where users.userId='\" + id + \"'\");\r\n\t}", "void printCheck();", "public String toString() {\n return (UUID + \" \" + name + \" \" + type + \" \" + universityName + \" \" + disabled);\n }", "public String printList() {\n\n\t\treturn plan.toString();\n\t}", "public String osFlagsToString() {\n String result = \"\";\n if ((osFlags & FLAG_OS_RECOVERY) != 0) {\n result += \"Recovery,\";\n }\n if ((osFlags & FLAG_OS_SIGNED_MCU) != 0) {\n result += \"Signed MCU,\";\n }\n if ((osFlags & FLAG_OS_ONBOARDED) != 0) {\n result += \"Onboarded,\";\n }\n if ((osFlags & FLAG_TRUST_ISSUER) != 0) {\n result += \"Trust issuer,\";\n }\n if ((osFlags & FLAG_TRUST_CUSTOMCA) != 0) {\n result += \"Trust Custom CA,\"; \n }\n if ((osFlags & FLAG_HSM_INITIALIZED) != 0) {\n result += \"Personalized,\";\n }\n if ((osFlags & FLAG_PIN_VALIDATED) != 0) {\n result += \"PIN ready,\";\n }\n if (result.length() == 0) {\n return result;\n }\n else {\n return result.substring(0, result.length() - 1);\n }\n }", "public static void listMainMenuOptions(){\n\t\tSystem.out.println(\"\\nWelcome to Vet Clinic Program. Please choose an option from the list below.\\n\");\n\t\tSystem.out.println(\"1: List all staff.\");\n\t\tSystem.out.println(\"2: List staff by category.\");\n\t\tSystem.out.println(\"3: List admin Staff performing a task.\");\n\t\tSystem.out.println(\"4: Search for a specific member of staff by name.\");\n\t\tSystem.out.println(\"5: List all animals.\");\n\t\tSystem.out.println(\"6: List animals by type.\");\n\t\tSystem.out.println(\"7: Search for a specific animal by name.\");\n\t\tSystem.out.println(\"8: See the Queue to the Veterinary\");\n\t\tSystem.out.println(\"9: Exit\");\n\t}", "java.lang.String printKeys() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.printKeys():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.printKeys():java.lang.String\");\n }", "String getVacmRole();", "private void printAccessibility(Map<AccessibilityTarget, ArrayList<Accessor>> targetsToAccessors) {\n Iterator<Map.Entry<AccessibilityTarget, ArrayList<Accessor>>> targetsToAccessorsIter = targetsToAccessors.entrySet().iterator();\n while (targetsToAccessorsIter.hasNext()) {\n Map.Entry<AccessibilityTarget, ArrayList<Accessor>> entry = targetsToAccessorsIter.next();\n AccessibilityTarget target = (AccessibilityTarget) entry.getKey();\n System.out.println(target);\n Iterator<Accessor> accIter = ((List<Accessor>) entry.getValue()).iterator();\n while (accIter.hasNext()) {\n AccessibilityMember accessor = (AccessibilityMember) accIter.next();\n System.out.println(accessor);\n }\n System.out.println(\"=======================\");\n }\n }", "public void print_dev() {\n\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName\r\n\t\t\t\t\t\t\t\t+\t\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)\r\n\t\t\t\t\t\t\t\t+\t\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Function Limit Count\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Eat : \"+TMGCSYS.tmgcLimitEat+\", Sleep : \"+TMGCSYS.tmgcLimitSleep\r\n\t\t\t\t\t\t\t\t+\t\", Walk : \"+TMGCSYS.tmgcLimitWalk+\", Study : \"+TMGCSYS.tmgcLimitStudy+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Ability\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" STR : \"+TMGCSYS.tmgcSTR+\", INT : \"+TMGCSYS.tmgcINT\r\n\t\t\t\t\t\t\t\t+\t\", DEB : \"+TMGCSYS.tmgcDEB+\", HET : \"+TMGCSYS.tmgcHET+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Job : \"+TMGCSYS.tmgc2ndJob\r\n\t\t\t\t\t\t\t\t);\r\n\t}", "public java.lang.String getUserAvaibility(int status) throws android.os.RemoteException;", "public String toString(){\n return \"Available information for this student: \" + fname + \" \" + lname + \", \" + college + \", \"\n + major + \" major, GPA: \" + gpa;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getMlUserDataEncryption() != null)\n sb.append(\"MlUserDataEncryption: \").append(getMlUserDataEncryption()).append(\",\");\n if (getTaskRunSecurityConfigurationName() != null)\n sb.append(\"TaskRunSecurityConfigurationName: \").append(getTaskRunSecurityConfigurationName());\n sb.append(\"}\");\n return sb.toString();\n }", "List<CommandInfo> list();", "public String toString(){\n return String.format(\"Vigenere Cipher (password='%s')\", password);\n }", "private void printToolListMenu(Shop shop) {\n System.out.println(shop.getInventory());\n }", "@Override\n\tpublic void output() {\n\t\tfor(User u :list) {\n\t\t\tif(list.size() > MIN_USER) {\n\t\t\t\tSystem.out.println(\"이름 : \"+u.getName());\n\t\t\t\tSystem.out.println(\"나이 : \"+u.getAge());\n\t\t\t\tSystem.out.println(\"주소 : \"+u.getAddr());\n\t\t\t\tSystem.out.println(\"=======================\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"입력된 정보가 없습니다.\");\n\t\t}", "public void printSpellList(List<Spell> list) {\n\t\tSystem.out.println(\"**** Available Spells ****\");\n\t\tSystem.out.println(\"ID\\tName\\t\\t\\tDamage\\tMana Cost\\tElement\");\n\t\tSystem.out.println(\"============================================================================================\");\n\t\tint id = 1;\n\t\tfor(Spell s : list) {\n\t\t\n\t\t\tSystem.out.printf(id++ + \"\\t\" + s.getName());\n\t\t\tfor(int i = 0; i < 24-s.getName().length(); i++) {\n\t\t\t\tSystem.out.printf(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(s.getBaseDmg() + \"\\t\" + s.getManaCost() + \"\\t\" + s.getType().toString());\n\t\t\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}" ]
[ "0.57598394", "0.56379426", "0.5506534", "0.54999936", "0.5393121", "0.53709126", "0.5271335", "0.5260071", "0.52514184", "0.52366066", "0.5235557", "0.51848", "0.5182784", "0.51640654", "0.5157107", "0.5148058", "0.5143727", "0.5140486", "0.5140056", "0.5108256", "0.5102383", "0.51015013", "0.50990367", "0.50906974", "0.5046714", "0.50427383", "0.5036757", "0.50325125", "0.50295377", "0.50287277", "0.50284356", "0.5022238", "0.5018977", "0.50178146", "0.5015756", "0.50153744", "0.49987736", "0.49986207", "0.49891406", "0.49864864", "0.49798176", "0.4975809", "0.49727264", "0.49611434", "0.49576426", "0.4957541", "0.4956263", "0.4952493", "0.49513", "0.49392614", "0.49329662", "0.49245727", "0.49206772", "0.49176353", "0.49137974", "0.49103263", "0.4904772", "0.48872665", "0.4883537", "0.4879461", "0.4875612", "0.4875235", "0.48738006", "0.48736215", "0.4872548", "0.48723194", "0.4865572", "0.4865572", "0.48622137", "0.48568708", "0.48562497", "0.48536554", "0.4851943", "0.48503193", "0.48489624", "0.48450664", "0.4844381", "0.48404613", "0.48341343", "0.48326382", "0.4826827", "0.48216867", "0.48207694", "0.48186457", "0.481273", "0.4812264", "0.48110315", "0.48095435", "0.48080635", "0.48069966", "0.48019007", "0.48012203", "0.47950488", "0.4794898", "0.47901225", "0.47895223", "0.47837472", "0.4779607", "0.47711667", "0.47686988", "0.47659233" ]
0.0
-1
/ suggestion: start automating some pages. ex: realtor.com Javascript executor is uses to handle some browser events scroll up/down/left/right scroll into element click generate alert change color ... 1. create javascript executor at the test method level. In the class level it did not work we create it from driver. So we have to "cast"
@Test public void scrollIntoView() throws InterruptedException { /* Task: go to http://carettahotel.com/ verify the text "Recent Blog" is on the page Scroll to that element */ driver.get("http://carettahotel.com/"); // we have to scroll otherwise it fails // scroll to the element by using javascript executor WebElement recentBlog = driver.findElement(By.xpath("//*[.='Recent Blog']")); // 1. create javascript executor // ((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", recentBlog); JavascriptExecutor executor = (JavascriptExecutor) driver; executor.executeScript("arguments[0].scrollIntoView(true)", recentBlog); //Wait a little so that the page scrolls down. We can use also explictlyWait Thread.sleep(3000); boolean isRecentBlogDisplayed = recentBlog.isDisplayed(); Assert.assertTrue(isRecentBlogDisplayed); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Object executeJavascript(WebDriver driver, String script) {\n System.out.println(\"Executing javascript: \" + script);\n return ((JavascriptExecutor) driver).executeScript(script);\n }", "protected JavascriptExecutor getExecutor() {\n\t\treturn ((JavascriptExecutor) driver);\n\t}", "public interface SeleniumAction {\n void execute(WebDriver driver) throws Exception;\n}", "public void Inter() throws InterruptedException {\n\t\t//Adv.click();\n\t\tJavascriptExecutor js = (JavascriptExecutor)driver;\n\t\t//js.executeScript(\"arguments[0].click()\", Elemnt);\n\t\t//Thread.sleep(3000);\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\", Interactiontab);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Interaction tab has opened successfully\");\n\t\t\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\", Sortable);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Sortable tab has opened successfully\");\n\t\t\n\t\tGrid.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has opened successfully\");\n\n\t\tGridThree.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has selected firstnumber successfully\");\n\n\t\tGridNine.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has selected Second number successfully\");\n\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\", Selectable);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Selectable tab has opened successfully\");\n\t\t\n\t\tList3.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"List tab has selected first number successfully \");\n\t\t\n\t\tList1.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"List tab has selected second number successfully \");\n\t\t\n\t\t\n\t\tGridSelect.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has opened successfully in Selectable tab\");\n\n\t\tGridSeven.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has selected firstnumber successfully\");\n\t\t\n\t\tGridfive.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Grid tab has selected firstnumber successfully\");\n\t\t\n\t\t\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\",Resize);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Resize tab has opened successfully\");\n\t\t\n\t\tActions act= new Actions(driver);\n\t\tact.dragAndDropBy(arrow, 20, 15).perform();;\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Size has been changed successfully\");\n\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\",drop);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Dropable tab has opened successfully\");\n\t\t\n\t\tActions action=new Actions(driver);\n\t\taction.dragAndDrop(drag, drop1).perform();\n\t\tLogger5.log(Status.PASS, \"Simple drag has performed successfully\");\n\n\t\t\n\t\taccept.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Accept tab has opened successfully\");\n\t\t\n\t\tActions a =new Actions(driver);\n\t\ta.dragAndDrop(aceptable, drop2);\n\t\tThread.sleep(5000);\n\t\tLogger5.log(Status.PASS, \"Accept drag has performed successfully\");\n\n\t\tjs.executeScript(\"window.scrollBy(0,360)\");\n\t\tThread.sleep(2000);\n\t\tjs.executeScript(\"arguments[0].click()\",dragable);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Draggable tab has opened successfully\");\n\t\t\n\t\tAxis.click();\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Axis restricted tab has opened successfully\");\n\t\t\t\n\t\n\t\tPoint p=xaxis.getLocation();\n\t\tSystem.out.println(\"Position of X-axis is :-\" +p.getX());\n\t\tSystem.out.println(\"Position of Y-axis is :-\" +p.getY());\n\t\tActions x=new Actions(driver);\n\t\tx.dragAndDropBy(xaxis, -100, p.getY());\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"X Axis has moved successfully\");\n\t\n\t\tActions y=new Actions(driver);\n\t\ty.dragAndDropBy(yaxis, 0, 900);\n\t\tThread.sleep(3000);\n\t\tLogger5.log(Status.PASS, \"Y Axis has moved successfully\");\n\t}", "@Test\t\t\n\t public void Login() \t\t\t\t\t\n\t {\t\t\n\t \tsetUpDriver(\"chrome\", \"http://demo.guru99.com/V4/\");\t\t\t\n\t \t\t\n\t //Creating the JavascriptExecutor interface object by Type casting\t\t\n\t JavascriptExecutor js = (JavascriptExecutor)driver;\t\t\n\t \t\t\n\t //Launching the Site.\t\t\n\t //driver.get(\"http://demo.guru99.com/V4/\");\t\t\t\n\t \t\t\n\t WebElement button =driver.findElement(By.name(\"btnLogin\"));\t\t\t\n\t \t\t\n\t //Login to Guru99 \t\t\n\t driver.findElement(By.name(\"uid\")).sendKeys(\"mngr34926\");\t\t\t\t\t\n\t driver.findElement(By.name(\"password\")).sendKeys(\"amUpenu\");\t\t\t\t\t\n\t \t\t\n\t //Perform Click on LOGIN button using JavascriptExecutor\t\t\n\t js.executeScript(\"arguments[0].click();\", button);\n\t \n\t //To generate Alert window using JavascriptExecutor. Display the alert message \t\t\t\n\t js.executeScript(\"alert('Welcome to Guru99');\"); \n\t \t\t\n\t }", "public static void main(String[] args) throws InterruptedException {\n\r\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"file:///C:/Users/MALIKMUHEEM/Desktop/Honda_new/Se_2019/html/disabled.html\");\r\n\t\t//converting subclass object to super class object \r\n\t\t//create subclass object and there only convert it - UPCASTING.\r\n\t\t//sub-class object, parent class referrance variable.\r\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\r\n\t\tString stmt = \"document.getElementById('un').value='MM'\";\r\n\t\tjs.executeScript(stmt);\r\n\t\tThread.sleep(2000);\r\n\t\tString stmt1 = \"document.getElementById('un').value=' '\";\r\n\t\tjs.executeScript(stmt1);\r\n\t\t\r\n\t}", "public ModifySearch(WebDriver driver) {\n\n this.driver = driver;\n action = new Actions(this.driver);\n wait = new WebDriverWait(this.driver, 30);\n js = (JavascriptExecutor) this.driver;\n\n\n }", "public static JavascriptExecutor getJavascriptExecutor(WebDriver driver) {\r\n JavascriptExecutor javascriptExecutor = (JavascriptExecutor) driver;\r\n return javascriptExecutor;\r\n }", "@Test\n public void test () throws InterruptedException \n {\n JavascriptExecutor javascript = (JavascriptExecutor) driver;\n javascript.executeScript(\"alert('Test Case Execution Is started Now..');\");\n Thread.sleep(2000);\n driver.switchTo().alert().accept();\n }", "@Test\r\n\tpublic static void uiTesting()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\tLog4J.logp.info(\"Started :::: uiTestting\");\r\n\t\t\tdriver.manage().window().setSize(new Dimension(1366, 768));\r\n\t\t\t/*landingp_webe.lnk_Coding.click();\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tCommon_Lib.openCase(\"DB001\");\r\n\t\t\tThread.sleep(15000);\r\n\t\t\tCommon_Lib.rightclick_system_sugggested_evidence();\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tmedicalrecordpnl_webe.lnk_discusswithcolleague.click();\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tIssuePanel_Lib.send_DiscussWithColleague(\"DB001\");\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tCommon_Lib.rightclick_system_sugggested_evidence();\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tmedicalrecordpnl_webe.lnk_querytophysician.click();\r\n\t\t\tIssuePanel_Lib.send_QueryToPhysician(\"DB001\");\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tissuepnl_webe.btn_Issues.click();\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tgroupingpnl_webe.btn_Later.click();\r\n\t\t\tThread.sleep(3000);*/\r\n\t\t\tlandingp_webe.lnk_All.click();\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tlandingp_webe.lnk_Reports.click();\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tlandingp_webe.lnk_CodingDashboard.click();\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tJavascriptExecutor jse;\r\n\t\t\tdriver = ExecutionSetup.getDriver();\r\n\t\t\tjse = (JavascriptExecutor) driver;\r\n\t\t\t//scroll downward\r\n\t\t\tjse.executeScript(\"window.scrollBy(0,80)\", \"\");\r\n\t\t\t//jse.executeScript(\"window.scrollBy(0,600)\", \"\");\r\n\t\t\tWebElement e = driver.findElement(By.id(\"dischargeMain\"));\r\n\t\t\t// Get entire page screenshot\r\n\t\t\tFile screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\r\n\r\n\t\t\tFileUtils.copyFile(screenshot, new File(\"D:/images/GoogleLogo_screenshot_main.jpg\"));\r\n\t\t\tBufferedImage fullImg = ImageIO.read(screenshot);\r\n\t\t\t// Get the location of element in the page\r\n\t\t\tPoint point = e.getLocation();\r\n\t\t\tSystem.out.println(\"Point is = \" + point);\r\n\t\t\tint x = point.getX();\r\n\t\t\tSystem.out.println(\"X values is = \" + x);\r\n\t\t\tint y = point.getY();\r\n\t\t\tSystem.out.println(\"Y value is = \" + y);\r\n\t\t\t//Get width and height of the element\r\n\r\n\t\t\tint eleWidth = e.getSize().getWidth();\r\n\t\t\tSystem.out.println(\"Width is = \" + eleWidth);\r\n\t\t\tint eleHeight = e.getSize().getHeight();\r\n\t\t\tSystem.out.println(\"Height is = \" + eleHeight);\r\n\t\t\t//Crop the entire page screenshot to get only element screenshot\r\n\t\t\tSystem.out.println(\"x = \" + point.getX() + \" y = \" + point.getY() + \"width = \" + e.getSize().getWidth() + \"height =\" + e.getSize().getHeight());\r\n\t\t\tThread.sleep(3000);\r\n\t\t\tBufferedImage eleScreenshot = fullImg.getSubimage(point.getX(), point.getY() - 80, e.getSize().getWidth(), e.getSize().getHeight());\r\n\t\t\tThread.sleep(3000);\r\n\t\t\tFile ak = new File(\"image.jpg\");\r\n\t\t\tImageIO.write(eleScreenshot, \"jpg\", ak);\r\n\t\t\tFileUtils.copyFile(ak, new File(\"D:\\\\images\\\\sample.jpg\"));\r\n\t\t\t//ImageIO.write(eleScreenshot, \"png\", screenshot);\r\n\t\t\tBufferedImage img1 = Dashboard_Lib.resize(eleScreenshot, 1295, 488);\r\n\t\t\tThread.sleep(3000);\r\n\t\t\tFile outputfile = new File(\"image.jpg\");\r\n\t\t\tImageIO.write(img1, \"jpg\", outputfile);\r\n\r\n\t\t\t//Copy the element screenshot to disk\r\n\t\t\t// Expected image\r\n\t\t\tFileUtils.copyFile(outputfile, new File(\"D:\\\\images\\\\akash.jpg\"));\r\n\r\n\t\t\tString file1 = \"D:\\\\images\\\\akash.jpg\";\r\n\t\t\tString file2 = \"D:\\\\images\\\\gupta.jpg\";\r\n\r\n\t\t\t// Comparing the two images for number of bands, width & Height\r\n\r\n\t\t\tImage pic1 = Toolkit.getDefaultToolkit().getImage(file1);\r\n\t\t\tImage pic2 = Toolkit.getDefaultToolkit().getImage(file2);\r\n\r\n\t\t\ttry\r\n\t\t\t{\r\n\r\n\t\t\t\tPixelGrabber grab11 = new PixelGrabber(pic1, 0, 0, -1, -1, false);\r\n\t\t\t\tPixelGrabber grab21 = new PixelGrabber(pic2, 0, 0, -1, -1, false);\r\n\r\n\t\t\t\tint[] array1 = null;\r\n\r\n\t\t\t\tif (grab11.grabPixels())\r\n\t\t\t\t{\r\n\t\t\t\t\tint width = grab11.getWidth();\r\n\t\t\t\t\tSystem.out.println(\"Width of Image 1 = \" + width);\r\n\t\t\t\t\tint height = grab11.getHeight();\r\n\t\t\t\t\tSystem.out.println(\"Height of Image 1 = \" + height);\r\n\t\t\t\t\tarray1 = new int[width * height];\r\n\t\t\t\t\tarray1 = (int[]) grab11.getPixels();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint[] array2 = null;\r\n\r\n\t\t\t\tif (grab21.grabPixels())\r\n\t\t\t\t{\r\n\t\t\t\t\tint width = grab21.getWidth();\r\n\t\t\t\t\tSystem.out.println(\"Width of Image 2 = \" + width);\r\n\t\t\t\t\tint height = grab21.getHeight();\r\n\t\t\t\t\tSystem.out.println(\"Height of Image 2 = \" + height);\r\n\t\t\t\t\tarray2 = new int[width * height];\r\n\t\t\t\t\tarray2 = (int[]) grab21.getPixels();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(array1.length);\r\n\r\n\t\t\t\tSystem.out.println(array2.length);\r\n\r\n\t\t\t\tfor (int i = 0; i < array2.length; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array1[i] != array2[i])\r\n\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\tSystem.out.println(array1[i] + \" ! =\" + array2[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Pixels equal: \" + java.util.Arrays.equals(array1, array2));\r\n\r\n\t\t\t}\r\n\t\t\tcatch (InterruptedException e1)\r\n\t\t\t{\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t\tLog4J.logp.info(\"Ended :::: uiTestting\");\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// report error\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t}", "WebDriver modify(WebDriver webDriver);", "SeleniumFactory getSeleniumFactory();", "@Parameters({ \"driver\" })\n\n\t@Test\n\t// Creation of second scenario for 'Web view interaction'on selendroid app\n\n\tpublic void WebViewInteraction() throws Exception {\n\t\tWebElement element;\n\t\t// click on Icon to fill Web Interaction details\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/buttonStartWebview\"));\n\t\telement.click();\n\n\t\t// select Webdriver Test file\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/spinner_webdriver_test_data\"));\n\t\telement.click();\n\n\t\telement = driver.findElement(By.id(\"android:id/text1\"));\n\t\telement.click();\n\n\t\t// Enter name\n\t\telement = driver.findElement(By.xpath(\"//*[@content-desc ='Enter your name here!']\"));\n\t\telement.click();\n\t\telement.clear();\n\t\telement.sendKeys(\"Rahul\");\n\t\n\n\t\t// Select preferred card\n\t\telement = driver.findElement(By.xpath(\"//*[@content-desc = 'Volvo']\"));\n\t\telement.click();\n\n\t\telement = driver.findElement(By.id(\"android:id/text1\"));\n\t\telement.click();\n\n\t\t// Send name to view the details\n\t\telement = driver.findElement(By.xpath(\"//*[@content-desc = 'Send me your name!']\"));\n\t\telement.click();\n\n\t}", "@Test(priority = 1)\n public void test() throws InterruptedException {\n WebDriverWait webDriverWait = new WebDriverWait(driver, 5);\n WebElement main = webDriverWait.until(new ExpectedCondition<WebElement>() {\n @NullableDecl\n public WebElement apply(@NullableDecl WebDriver driver) {\n return driver.findElement(By.id(\"cn.com.open.mooc:id/lav\"));\n }\n });\n// driver.findElement(By.xpath(\"//*[@text='00']\")).click();\n// driver.findElementByAccessibilityId(\"乘\").click();\n// driver.findElement(By.id(\"digit_6\")).click();\n// driver.findElementByAndroidUIAutomator(\"new UiSelector().text(\\\"2\\\")\").click();\n// driver.findElementById(\"com.coloros.calculator:id/eq\").click();\n\n\n// driver.findElementById(\"cn.com.open.mooc:id/lav\").click();\n int x = driver.manage().window().getSize().width;\n int y = driver.manage().window().getSize().height;\n AndroidTouchAction androidTouchAction = new AndroidTouchAction(driver);\n Thread.sleep(1000);\n System.out.println(x + \"===============\" + y);\n androidTouchAction.press(PointOption.point(x * 9 / 10, y * 2150 / 2163)).release().perform();\n// driver.findElement(By.xpath(\"//*[@text='账号']\")).click();\n Thread.sleep(2000);\n driver.findElementById(\"cn.com.open.mooc:id/tvLoginNow\").click();\n Thread.sleep(2000);\n driver.findElementById(\"cn.com.open.mooc:id/WeiboLogin\").click();\n Thread.sleep(5000);\n Set<String> contexts = driver.getContextHandles();\n for (String context : contexts) {\n System.out.println(\"context:\" + context);\n if (context.contains(\"WEBVIEW\")) {\n driver.context(context);\n }\n }\n WebElement loginName = driver.findElement(By.id(\"loginName\"));\n loginName.click();\n loginName.sendKeys(\"13716812206\");\n Thread.sleep(2000);\n\n WebElement loginPass = driver.findElement(By.id(\"loginPassword\"));\n loginPass.click();\n loginPass.sendKeys(\"123123123\");\n Thread.sleep(2000);\n\n driver.findElement(By.id(\"loginAction\")).click();\n Thread.sleep(5000);\n }", "public static void main(String[] args) throws InterruptedException {\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tWebDriverWait wait=new WebDriverWait(driver, 10);\r\n\t\t\r\n\t\t//BY.id\r\n\t driver.get(\"https://www.ehealthinsurance.com/\");\r\n\t driver.findElement(By.className(\"select-container\")).click();\r\n\t driver.findElement(By.xpath(\"//*[@id=\\\"desktop-banner-options\\\"]/a[4]\")).click();\r\n\t driver.findElement(By.id(\"find-btn\")).click();\r\n\t Thread.sleep(10000);\r\n\t driver.findElement(By.xpath(\"//*[@id=\\\"hero\\\"]/div/div/div/div[2]/input\")).click();\r\n\t WebElement pin= driver.findElement(By.xpath(\"//*[@id=\\\"hero\\\"]/div/div/div/div[2]/input\"));\r\n\t pin.sendKeys(\"48480\");\r\n\t \r\n\t driver.manage().window().maximize();\r\n\t //3rd sheet\r\n\t Thread.sleep(1000);\r\n\t driver.findElement(By.xpath(\"//*[@id=\\\"hero\\\"]/div/div/div/div[2]/button\")).click();\t \r\n\t Thread.sleep(1000);\r\n\t driver.findElement(By.xpath(\"//p[@role='button' ][2]\")).click();\r\n\t driver.findElement(By.xpath(\"//*[@id=\\\"census\\\"]/div/div/div/div[2]/button\")).click();\r\n\t \r\n\t //4th sheet\r\n\t Thread.sleep(1000);\r\n\t driver.findElement(By.xpath(\"//div[@role='button'][2]\")).click();\r\n\t driver.findElement(By.xpath(\"//p[@role='button'][2]\")).click();\r\n\t \r\n\t \r\n\t driver.findElement(By.xpath(\"//*[@id=\\\"month\\\"]\")).sendKeys(\"12\");\r\n\t driver.findElement(By.xpath(\"//*[@id=\\\"census\\\"]/div/div/div[2]/div/div/div/input[2]\")).sendKeys(\"12\");\r\n\t driver.findElement(By.xpath(\"//*[@id=\\\"census\\\"]/div/div/div[2]/div/div/div/input[3]\")).sendKeys(\"1993\");\r\n\t Thread.sleep(10000);\r\n\t \r\n\t JavascriptExecutor js = (JavascriptExecutor) driver;\r\n\t js.executeScript(\"window.scrollBy(0,500)\");\r\n\t\t Thread.sleep(1000); \r\n\t WebElement seeplan = driver.findElement(By.xpath(\"//button[@class='button-primary whitespace-no-wrap w-2-3']\"));\r\n\t// WebElement seeplan = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//button[@class='button-primary whitespace-no-wrap w-2-3']\")));\r\n seeplan.click();\r\n\t\r\n Thread.sleep(10000); \r\n \r\n js.executeScript(\"window.scrollBy(0,500)\");\r\n \r\n //WebElement company =driver.findElement(By.xpath(\"//button[contains(text(),'UnitedHealthcare (16')]\"));\r\n\r\n// Actions action = new Actions(driver);\r\n// action.moveToElement(company).perform();\r\n// \r\n \r\n \r\n Thread.sleep(1000); \r\n // js.executeScript(\"window.scrollBy(0,500)\");\r\n \r\n \r\n \r\n \r\n for(int i=0;i<1;i++)\r\n {\r\n // WebElement company =driver.findElement(By.xpath(\"//button[contains(text(),'UnitedHealthcare (16')]\"));\r\n \t//*[@id=\"__layout\"]/div/div[1]/section[2]/div/div/div/div[2]/div/div[2]/div/div[3]/div/div[2]/div/div/div/div/button[4]\r\n \t WebElement company =driver.findElement(By.xpath(\"//*[@id=\\\"__layout\\\"]/div/div[1]/section[2]/div/div/div/div[2]/div/div[2]/div/div[3]/div/div[2]/div/div/div/div/button[4]\")); \r\n \t company.click();\r\n \r\n }\r\n \r\n Thread.sleep(1000); \r\n js.executeScript(\"window.scrollBy(0,2000)\");\r\n \r\n for(int j=0;j<1;j++)\r\n {\r\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id=\\\"__layout\\\"]/div/div[1]/div/div/div[2]/div/div/div/div[2]/div[4]/a/button\"))).click(); \r\n }\r\n \r\n\t //WebElement dd1= driver.findElement(By.text(Health Insurance));\r\n//\t dd1.sendKeys(Keys.ARROW_DOWN);\r\n//\t dd1.sendKeys(Keys.ENTER);\r\n//\t driver.findElement(By.name(\"Health Insurance\")).click();\r\n\t \r\n\t \r\n\t \r\n\t}", "public WebElement highlight(WebElement element){\nfor(int i=0; i<2; i++) {\n WrapsDriver wrappedElement = (WrapsDriver) element;\n JavascriptExecutor executor = (JavascriptExecutor) wrappedElement.getWrappedDriver();\n waitSec(0.4);\n executor.executeScript(\"arguments[0].setAttribute('style', arguments[1]);\", element, \"color: purple; border: 2px solid LightCyan;background: PaleTurquoise ;\");\n waitSec(0.4);\n executor.executeScript(\"arguments[0].setAttribute('style', arguments[1]);\", element, \"\");\n\n}\nreturn element;\n }", "public void clickSalvar (){driver.findElement(botaoSalvar).click();}", "@BeforeClass\n\tpublic void beforClass () {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", projectPath + \"/browserDrivers/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n//\t\tSystem.setProperty(\"webdriver.gecko.driver\", projectPath + \"/browserDrivers/geckodriver.exe\");\n//\t\tdriver = new FirefoxDriver();\n\t\t//set flexible timeout\n\t\texpliciWait = new WebDriverWait(driver, 15);\n\t\t//Ep kieu tuong minh cho driver\n\t\tjsExecutor = (JavascriptExecutor) driver;\n\t\t// set thoi gian cho de tim thay element\n\t\tdriver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\t\n\t\tdriver.manage().window().maximize();\n\t}", "void browserMethod();", "@BeforeMethod(alwaysRun=true)// @BeforeMethod\r\n\tpublic void test_before()throws Exception{\r\n\t\t// WebDriver driver;\t\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",driverPath_Chrome); // System.setProperty(\"webdriver.gecko.driver\",driverPath_Firefox);\r\n\t\tdriver = new ChromeDriver(); // driver = new FirefoxDriver(); // \r\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(baseURL_LC); //driver.get(baseURL_LC);// driver.get(baseGoogle); // driver.get(baseUK);\r\n//\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\r\n\t}", "public static void executeBrowser() throws Exception{\n\t\tinvokeMyBrowser();\n\t}", "public static void main(String[] args) throws InterruptedException {\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n //driver.get(\"https://twitter.com/explore\");\n driver.get(\"https://twitter.com/sachintendulkar\");\n sleep(5);\n\n JavascriptExecutor js = (JavascriptExecutor) driver;\n //js.executeScript(\"window.scrollTo(0, document.body.scrollHeight)\");\n //js.executeScript(\"window.scrollTo(0, 275)\");\n List<WebElement> elements = new ArrayList<>();\n //elements = driver.findElements(By.tagName(\"article\"));\n\n //System.out.println(\"Size of elements: \"+elements.size());\n //elements = driver.findElements(By.tagName(\"article\"));\n while (true){\n if(elements.size()>5){\n System.out.println(\"Inside loop : \"+elements.size());\n break;\n //System.out.println(\"Inside loop : \"+elements.size());\n }else {\n\n elements = driver.findElements(By.tagName(\"article\"));\n //sleep(5);\n //js.executeScript(\"window.scrollTo(0, 275)\");\n }\n // js.executeScript(\"window.scrollTo(0, document.body.scrollHeight)\");\n }\n\n //List<WebElement> elements = driver.findElements(By.tagName(\"article\"));\n\n // js.executeScript(\"window.scrollTo(0, document.body.scrollHeight)\");\n // WebElement element = driver.findElement(By.id(\"id__8k8p749gobl\"));\n //System.out.println(element);\n // List<WebElement> elements = driver.findElements(By.className(\"css-1dbjc4n r-14lw9ot r-jxzhtn r-1ljd8xs r-13l2t4g r-1phboty r-1jgb5lz r-11wrixw r-61z16t r-1ye8kvj r-13qz1uu r-184en5c\"));\n\n// WebElement webElement= driver.findElement(By.xpath(\"//span[@class='css-901oao css-16my406 r-poiln3 r-bcqeeo r-qvutc0']\"));\n// System.out.println(webElement.getText());\n List<String> list = new ArrayList<>();\n for(WebElement webElement: elements){\n list.add(webElement.getText());\n }\n //System.out.println(elements);\n System.out.println(\"List of size: \"+list.size());\n System.out.println(list);\n }", "@BeforeTest\n\tpublic void LaunchBrowser() {\n\t\t driver = init(\"URL_JQuery\");\n\t\t// driver.get(\"https://jqueryui.com/autocomplete/\");\n\t\t driver.switchTo().frame(0);\n\t\t jq = new JQueryAutocompletePage(driver);\n\t\t \n\t}", "public void click_JS(By locator)\n\t\t{\n\t\t\tWebElement element = findElementClickable(locator);\n\t\t\ttry {\n\t\t\t\tJavascriptExecutor executor = (JavascriptExecutor) driver;\n\t\t\t\texecutor.executeScript(\"arguments[0].click();\", element);\n\t\t\t\tLOGGER.info(\"Step : \" + Thread.currentThread().getStackTrace()[2].getMethodName() + \": Pass\");\n\t\t\t}catch(Exception e)\n\t\t\t{\n\t\t\t\tLOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail\");\n\t\t\t\tthrow new NotFoundException(\"Exception \"+ e +\" thrown while clicking on object using locator \"+locator);\n\n\t\t\t}\n\n\t\t}", "@Given(\"I am on the jquery homepage\")\n public void i_am_on_the_jquery_homepage() {\n System.out.println(\"inside given\");\n // baseUrl= \"https://jqueryui.com/\";\n driver= DriverMgr.getDriver();\n jQueryHPage= new JQueryHPage(driver);\n datePickerPage= new DatePickerPage(driver);\n// driver.manage().window().maximize();---> moved to @Before hook\n// driver.get(baseUrl);---> moved to @Before hook\n }", "@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}", "public static <JavascriptExcutor> void main(String[] args) throws Exception {\n\t\tSystem.setProperty(\"webdriver.firefox.marionette\",\".\\\\Tools\\\\geckodriver.exe\");\n//\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"\\\\Tools\\\\geckodriver.exe\");\n\t\tWebDriver driver = new FirefoxDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(8, TimeUnit.SECONDS);\n\t\tdriver.get(\"http://data.pharmacodia.com/web/homePage/index?ns=1&ts=1&str=YWSJ\");\n\t\tSystem.out.println(\"Current tab title is \"+ driver.getTitle());\n\t\tThread.sleep(1000);\n\t\tdriver.switchTo().frame(\"rightMain\");\n\t\tWebElement element = driver.findElement(By.xpath(\"//*/span[@title='化学药']\"));\n//\t\tWebElement element = driver.findElement(By.xpath(\"//*[@id='search_top']/div[1]/div[1]/div/div/span[1]\"));\n\t\telement.click();\n\t\tThread.sleep(1000);\n\t\tdriver.switchTo().defaultContent();\n\t\tdriver.findElement(By.xpath(\"//*[@id='noLoginAlert']/div/button\")).click();\n\t\tdriver.quit();\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tif (browser.equals(\"Firefox\")) {\r\n\t\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\t\tdriver = new FirefoxDriver();\r\n\t\t} else if (browser.equals(\"Chrome\")) {\r\n\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t} else if (browser.equals(\"Edge\")) {\r\n\t\t\tWebDriverManager.edgedriver().setup();\r\n\t\t\tdriver = new EdgeDriver();\r\n\t}\r\n\r\n\t\t\r\n\t\tdriver.get(\"https://www.w3schools.com/js/tryit.asp?filename=tryjs_default\");\r\n\t\t driver.manage().window().maximize();\r\n\t\t //This will throws error of handling frame\r\n\t\t// driver.findElement(By.xpath(\"//button[text()='Click Me!']\")).click();\r\n\t\t \r\n\t\t // A page can have multiple iframe. First We need to find xpath for required iframe\r\n\t\t WebElement framebyelemnet = driver.findElement(By.xpath(\"//iframe[@id='iframeResult']\"));\r\n\t\t //Then use switch method to navigate to the correct iframe. This iframe switch over by using Webelement\r\n\t\t driver.switchTo().frame(framebyelemnet);\r\n\t\t driver.findElement(By.xpath(\"//button[text()='Click Me!']\")).click();\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t //Switch to iframe using name or id of iframe\r\n\t\t driver.get(\"https://www.w3schools.com/js/tryit.asp?filename=tryjs_default\");\r\n\t\t driver.manage().window().maximize();\r\n\t\t driver.switchTo().frame(\"iframeResult\");\r\n\t\t driver.findElement(By.xpath(\"//button[text()='Click Me!']\")).click();\r\n\t\t \r\n\t\t //Switch to iframe using index of the iframe\r\n\t\t driver.get(\"https://www.w3schools.com/js/tryit.asp?filename=tryjs_default\");\r\n\t\t driver.manage().window().maximize();\r\n\t\t //To find frame index , you need enter //iframe in the search html box. It will display how many iframe tag\r\n\t\t //presented in the page. move the cursor and find out which index it will stop. Each index start with 0\r\n\t\t // For Example. if the page have 2 frame and the current frame is 1 ,then index of that iframe is 0\r\n\t\t driver.switchTo().frame(0);\r\n\t\t driver.findElement(By.xpath(\"//button[text()='Click Me!']\")).click();\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n}", "@Test\npublic void TestMarketWatch() throws InterruptedException {\nSystem.setProperty(\"webdriver.firefox.bin\",\"/Users/jasonsouryamath/Desktop/FirefoxDeveloperEdition.app/Contents/MacOS/firefox-bin\");\ndriver = new FirefoxDriver();\ndriver.get(\"http://www.marketwatch.com/\");\nThread.sleep(2000);\n((JavascriptExecutor)driver).executeScript(\"scroll(0,1000)\");\nnew WebDriverWait(driver,10).until(ExpectedConditions.presenceOfElementLocated(By.cssSelector(\"#f72ae3716b0373a474b6898d41a29e1a9158244d > li:nth-child(3) > div:nth-child(1) > div:nth-child(2) > h3:nth-child(1) > a:nth-child(1)\"))).click();\n((JavascriptExecutor)driver).executeScript(\"scroll(0,1200)\");\n}", "@DisplayName(\"Teste ao vivo\")\n @Test\n void execute() throws Exception {\n driver.manage().timeouts().implicitlyWait(15000, TimeUnit.MILLISECONDS);\n By by;\n boolean booleanResult;\n\n // 1. Navigate to '{{ApplicationURL}}'\n // Navigates the specified URL (Auto-generated)\n driver.navigate().to(ApplicationURL);\n\n // 2. Click 'q1'\n by = By.cssSelector(\"#search\");\n driver.findElement(by).click();\n\n // 3. Type 'Ração' in 'q1'\n by = By.cssSelector(\"#search\");\n driver.findElement(by).sendKeys(\"Ração\");\n\n // 4. Click '1'\n by = By.xpath(\"//button[. = '\\n\t\t\t\t\t\t\t\\n\t\t\t\t\t\t']\");\n driver.findElement(by).click();\n\n // 5. Click 'Ra&ccedil;&atilde;o Royal Canin Maxi ...'\n by = By.xpath(\"//h3[. = 'Ração Royal Canin Maxi - Cães Adultos - 15kg']\");\n driver.findElement(by).click();\n\n // 6. Click 'Adicionar ao carrinho1'\n by = By.cssSelector(\"#adicionarAoCarrinho\");\n driver.findElement(by).click();\n\n // 7. Click 'SPAN'\n by = By.xpath(\"//button[2]/span\");\n driver.findElement(by).click();\n\n // 8. Click 'SPAN1'\n by = By.xpath(\"//button[2]/span\");\n driver.findElement(by).click();\n\n // 9. Click 'SPAN'\n by = By.xpath(\"//button[2]/span\");\n driver.findElement(by).click();\n\n // 10. Click 'insira seu cupom/vale'\n by = By.cssSelector(\"#botaoCupom\");\n driver.findElement(by).click();\n\n // 11. Click 'cupomDesconto'\n by = By.cssSelector(\"#cupomDesconto\");\n driver.findElement(by).click();\n\n // 12. Type '1212' in 'cupomDesconto'\n by = By.cssSelector(\"#cupomDesconto\");\n driver.findElement(by).sendKeys(\"1212\");\n\n // 13. Click 'Aplicar'\n by = By.cssSelector(\"#aplicaCupom\");\n driver.findElement(by).click();\n\n // 14. Click 'Entendi'\n by = By.xpath(\"//a[. = 'Entendi']\");\n driver.findElement(by).click();\n\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.silentOutput\", \"true\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/Users/kumanananitha/eclipse-workspace/Selenium/drivers/chromedriver\");\n\t\t// disable the notifications\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-notifications\");\n\t // Launching Chrome Browser\n\t\tChromeDriver driver = new ChromeDriver(options);\n\t\t// To Load the url\n\t\tdriver.get(\"https://www.zalando.com/\");\n\t\t// To maximize the browser\n\t\t try \n\t\t { \n\t\t \tSystem.out.println(\"alert present\");\n\t\t\t\t\n\t\t \tAlert alert=driver.switchTo().alert();\n\t\t\t String alerttext=alert.getText();\n\t\t\t System.out.println(\"The alert message is\"+alerttext);\n\t\t\t alert.accept();\n\t\t\t \n\t\t //return true; \n\t\t } // try \n\t\t catch (NoAlertPresentException Ex) \n\t\t { \n\t\t \tSystem.out.println(\"Alert not present\");\n\t\t // return false; \n\t\t } // catch \n\n\n\t\tdriver.manage().window().maximize();\n\t\t// implicitly wait\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n WebDriverWait wait = new WebDriverWait(driver, 30);\n JavascriptExecutor js = (JavascriptExecutor) driver;\n Actions action=new Actions(driver);\n \n\t\t//Thread.sleep(2000);\n\t \t\t\n\t\t\n\t\t\n\t\t\n\t\t//WebDriverWait wait = new WebDriverWait(driver, 300 /*timeout in seconds*/);\n\t\t/*if(wait.until(ExpectedConditions.alertIsPresent())!=null)\n\t\t {\n\t\t\tSystem.out.println(\"alert present\");\n\t\tAlert alert=driver.switchTo().alert();\n\t String alerttext=alert.getText();\n\t System.out.println(\"The alert message is\"+alerttext);\n\t alert.accept();\n\t }\n\t \n\t\telse\n\t\t System.out.println(\"alert not present\");\n\t\t*/\n//\t\t\t2) Get the Alert text and print it\n Thread.sleep(500);\n//\t\t\t3) Close the Alert box and click on Zalando.uk\n driver.findElementByXPath(\"//a[text()='Zalando.uk']\").click();\n Thread.sleep(500);\n//\t\t\t4) Click Women--> Clothing and click Coat \n driver.findElementByXPath(\"(//span[contains(@class,'z-text z-navicat-header_genderText')])[1]\").click();\n driver.findElementByXPath(\"(//span[text()='Clothing'])[1]\").click();\n Thread.sleep(500);\n wait.until(ExpectedConditions.elementToBeClickable(driver.findElementByXPath(\"(//a[@href='/womens-clothing-coats/'])[2]\")));\n driver.findElementByXPath(\"(//a[@href='/womens-clothing-coats/'])[2]\").click();\n Thread.sleep(1000);\n wait.until(ExpectedConditions.elementToBeClickable(driver.findElementByXPath(\"//button[@class='uc-btn uc-btn-primary']\")));\n // driver.findElementByXPath(\"//button[contains(text(),'That’s OK')]\").click();\n driver.findElementByXPath(\"//button[@class='uc-btn uc-btn-primary']\").click();\n\n//\t\t\t5) Choose Material as cotton (100%) and Length as thigh-length\n driver.findElementByXPath(\"//span[@data-label='Material']//span[1]\").click();\n driver.findElementByXPath(\"//span[text()='cotton (100%)']\").click();\n driver.findElementByXPath(\"//button[text()='Save']\").click();\n Thread.sleep(1000);\n wait.until(ExpectedConditions.elementToBeClickable(driver.findElementByXPath(\"//span[@data-label='Length']//span[1]\")));\n driver.findElementByXPath(\"//span[@data-label='Length']//span[1]\").click();\n driver.findElementByXPath(\"//span[text()='thigh-length']\").click();\n driver.findElementByXPath(\"//button[text()='Save']\").click();\n//\t\t\t6) Click on Q/S designed by MANTEL - Parka coat\n Thread.sleep(1000);\n wait.until(ExpectedConditions.elementToBeClickable(driver.findElementByXPath(\"//img[@alt='MANTEL - Parka - navy']\")));\n driver.findElementByXPath(\"//img[@alt='MANTEL - Parka - navy']\").click();\n Thread.sleep(1000);\n//\t\t\t7) Check the availability for Color as Olive and Size as 'M'\n driver.findElementByXPath(\"(//img[@alt='olive'])[2]\").click();\n driver.findElementByXPath(\"//button[@id='picker-trigger']//span[1]\").click();\n driver.findElementByXPath(\"(//li[@role='option']//div)[5]\").click();\n String availability = driver.findElementByXPath(\"//h2[contains(@class,'A95iT1 pDVUjz')]\").getText();\n System.out.println(\"Avaialability of stock\"+availability);\n//\t\t\t8) If the previous preference is not available, check availability for Color Navy and Size 'M'\n if(availability.equalsIgnoreCase(\"Out of stock\"))\n {\n driver.findElementByXPath(\"(//img[@alt='navy'])[2]\").click();\n driver.findElementByXPath(\"//button[@id='picker-trigger']//span[1]\").click();\n driver.findElementByXPath(\"(//li[@role='option']//div)[5]\").click();\n String free=driver.findElementByXPath(\"(//span[text()='Free'])[1]\").getText();\n System.out.println(\"The standard delivery is\"+free);\n//\t9) Add to bag only if Standard Delivery is free\n\n if(free.equalsIgnoreCase(\"Free\"))\n { driver.findElementByXPath(\"//span[text()='Add to bag']\").click(); \n//\t\t10) Mouse over on Your Bag and Click on \"Go to Bag\"\nWebElement bag=driver.findElementByXPath(\"//a[@href='/cart/']\");\naction.moveToElement(bag).build().perform();\n driver.findElementByXPath(\"//div[text()='Go to bag']\").click();\n//\t\t11) Capture the Estimated Deliver Date and print\n\n String estddate=driver.findElementByXPath(\"(//span[contains(@class,'z-2-text z-2-text-body')])[1]\").getText();\n System.out.println(\"The estimated delivery date and time is\"+estddate);\n }\n }\n \n//\t\t\t12) Mouse over on FREE DELIVERY & RETURNS*, get the tool tip text and print\n WebElement freedelret=driver.findElementByXPath(\"(//a[@name='“headbanner.about.us\\\"'])[1]\");\n action.moveToElement(freedelret).build().perform();\n String tooltiptxt= driver.findElementByXPath(\"(//span[@class='z-navicat-header-uspBar_message-split_styled'])[2]\").getAttribute(\"title\");\n System.out.println(\"The tooltip text is\"+tooltiptxt);\n//\t\t\t13) Click on FREE DELIVERY & RETURNS\n freedelret.click();\n//\t\t\t14) Click on Start chat in the Start chat and go to the new window \n Thread.sleep(3000);\n\n//\t14) Click on Start chat in the Start chat and go to the new window\nif (driver.findElementByXPath(\"//span[text()='Start chat']\").isEnabled() == true) {\n\tdriver.findElementByXPath(\"//span[text()='Start chat']\").click();\n} else {\n\tSystem.out.println(\"The chat box not enabled\");\n}\n\tSet<String> windowHandles = driver.getWindowHandles();\n\t\n\tList<String> lstwindowHandles = new ArrayList(windowHandles);\n\t\n\tdriver.switchTo().window(lstwindowHandles.get(1));\n\t\n\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\n// wait.until(ExpectedConditions.elementToBeClickable(driver.findElementByXPath(\"//span[contains(text(),'Start chat')]\")));\n// driver.findElementByXPath(\"//span[contains(text(),'Start chat')]\").click();\n// Set<String> winset=driver.getWindowHandles();\n// List<String> winlist=new ArrayList<String> (winset);\n// driver.switchTo().window(winlist.get(1));\n////\t15) Enter you first name and a dummy email and click Start Chat\n\n driver.findElementById(\"prechat_customer_name_id\").sendKeys(\"Anitha\",Keys.ENTER);\n driver.findElementById(\"prechat_customer_email_id\").sendKeys(\"anitha@anitha.com\");\n driver.findElementById(\"prechat_submit\").click();\n Thread.sleep(3000);\n//\t16) Type Hi, click Send and print thr reply message and close the chat window.\n\n driver.findElementById(\"liveAgentChatTextArea\").sendKeys(\"Hi\");\n\tdriver.findElementByXPath(\"//button[text()='Send']\").click();\nThread.sleep(500);\n String replymssg=driver.findElementByXPath(\"(//span[@class='messageText'])[4]\").getText();\n System.out.println(\"the reply message is\"+replymssg);\n \n\n\t}", "private static Object executeAsyncJavascript(WebDriver driver, String script) {\n System.out.println(\"Executing Async javascript: \" + script);\n return ((JavascriptExecutor) driver).executeAsyncScript(script);\n }", "@Test\n\tpublic void webpageTesting() throws Exception{\n\t\t\n DemoSitePortal homePage = PageFactory.initElements(driver, DemoSitePortal.class);\n homePage.navUserPage();\n homePage.addUserPage.createUser(\"user\", \"user\");\n homePage.navLoginPage();\n homePage.addLoginPage.loginUser(\"user\", \"user\");\n\t\t\n//\t\ttarget = driver.findElement(By.xpath(\"/html/body/div/center/table/tbody/tr[2]/td/div/center/table/tbody/tr/td[2]/p/small/a[3]\"));\n//\t\ttarget.click();\n\t\t\n//\t\tuser = driver.findElement(By.name(\"username\"));\n//\t\tuser.sendKeys(\"guest\");\n//\t\t\n//\t\tpass = driver.findElement(By.name(\"password\"));\n//\t\tpass.sendKeys(\"guest\");\n//\t\t\n//\t\ttarget = driver.findElement(By.name(\"FormsButton2\"));\n//\t\ttarget.click();\n//\t\t\n//\t\ttarget = driver.findElement(By.xpath(\"/html/body/div/center/table/tbody/tr[2]/td/div/center/table/tbody/tr/td[2]/p/small/a[4]\"));\n//\t\ttarget.click();\n//\t\t\n//\t\tuser = driver.findElement(By.name(\"username\"));\n//\t\tuser.sendKeys(\"guest\");\n//\t\t\n//\t\tpass = driver.findElement(By.name(\"password\"));\n//\t\tpass.sendKeys(\"guest\");\n//\t\t\n//\t\ttarget = driver.findElement(By.name(\"FormsButton2\"));\n//\t\ttarget.click();\n\t\t\n\t\t\n\t\t\n\t\tString result = driver.getTitle();\n\t\tassertEquals(\"Login example page to test the PHP MySQL online system\",result);\n\t\t\n\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tGeneralActions actions= new GeneralActions();\n\t\tWebDriver webdriver= actions.getDriver(Utility.getConfigValue(\"browser\"));\n\t\tactions.setDriver(webdriver);\n\t\tactions.getURL(Utility.getConfigValue(\"url\"));\n//--------------------------------------------------------------------------------------------------\t\t\n\t\t//go to tatoc page\n\t\twebdriver.findElement(By.partialLinkText(\"tatoc\")).click();\n\t\twebdriver.findElement(By.linkText(\"Basic Course\")).click();\n//--------------------------------------------------------------------------------------------------\t\t\n\t\t//\n\t\tJavascriptExecutor js;\n\t\tif(webdriver instanceof JavascriptExecutor){\n\t\t\tjs = (JavascriptExecutor)webdriver;\t\t\t\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalStateException(\"This driver does not support JavaScript!\");\n\t\t}\n//--------------------------------------------------------------------------------------------------\t\t\n\t\t//1 Grid Gate\n\t\tjs.executeScript(\"document.getElementsByClassName(\\\"greenbox\\\")[0].click();\");\n//--------------------------------------------------------------------------------------------------\n\t\t//Frame Dungeon\n\t\tString color1, color2;\n\t\tdo{\n\t\t\tcolor1 = (String) js.executeScript(\"return document.getElementById(\\\"main\\\").contentWindow.document.getElementById(\\\"answer\\\").className;\");\n\t\t\tcolor2 = (String) js.executeScript(\"return document.getElementById(\\\"main\\\").contentWindow.document.getElementById(\\\"child\\\").contentWindow.document.getElementById(\\\"answer\\\").className;\");\n\t\t\tif(color1.equals(color2))\n\t\t\t\tbreak;\n\t\t\tjs.executeScript(\"$(\\\"#main\\\").contents().find(\\\"a:contains(Repaint Box 2)\\\").click();\");\n\t\t\tThread.sleep(200);\n\t\t}while(true);\n\t\tjs.executeScript(\"$(\\\"#main\\\").contents().find(\\\"a:contains(Proceed)\\\").click();\");\n//---------------------------------------------------------------------------------------------------\n\t\t//3 Drag Around\n\t\twebdriver.get(\"http://10.0.1.86/tatoc/basic/drag\");\n\t\tjs.executeScript(\"document.getElementById(\\\"dropbox\\\").appendChild(document.getElementById(\\\"dragbox\\\"));\"+\n\t\t\t\t\"var d=document.getElementById(\\\"dragbox\\\");\"+\n\t\t\t\t\"d.style.position = \\\"absolute\\\";\"+\n\t\t\t\t\"d.style.left = document.getElementById(\\\"dropbox\\\").getBoundingClientRect().left;\"+\n\t\t\t\t\"$(\\\"a:contains(Proceed)\\\")[0].click();\");\t\n\t\t//--------------------------------------------------------------------------------------------------\n\t\t//4 Popup Windows\n\t\tString parent_window = webdriver.getWindowHandle();\n\t\t//driver.findElement(By.partialLinkText(\"Launch Popup Window\")).click();\n\t\tjs.executeScript(\"$(\\\"a:contains(Launch Popup Window)\\\").click();\");\n\t\tfor(String handle:webdriver.getWindowHandles()){\n\t\t\twebdriver.switchTo().window(handle);\n\t\t}\n\t\tjs.executeScript(\"document.getElementById(\\\"name\\\").value=\\\"vijay kumar\\\";\"+\n\t\t\t\t\"document.getElementById(\\\"submit\\\").click();\");\n\t\twebdriver.switchTo().window(parent_window);\n\t\tjs.executeScript(\"$(\\\"a:contains(Proceed)\\\").click();\");\n\t\t//--------------------------------------------------------------------------------------------------\n\t\t//5 Cookie Handling\n\t\tjs.executeScript(\"$(\\\"a:contains(Generate Token)\\\").click();\"+\n\t\t\t\t\"var token = document.getElementById(\\\"token\\\").innerText.split(\\\": \\\")[1];\"+\n\t\t\t\t\"\\\"Token=\\\"+token;\"+\n\t\t\t\t\"document.cookie=\\\"Token=\\\"+token;\"+\n\t\t\t\t\"$(\\\"a:contains(Proceed)\\\").click();\");\n//--------------------------------------------------------------------------------------------------\n\t\t//closing browser\n\t\twebdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\n\t\twebdriver.close();\n\t}", "@Test\n public void setScriptTimeout(){\n driver.manage().timeouts().setScriptTimeout(10, TimeUnit.SECONDS);\n ((JavascriptExecutor) driver).executeScript(\"alert('hello world');\");\n ((JavascriptExecutor) driver).executeAsyncScript(\"window.setTimeout(arguments[arguments.length - 1], 500);\");\n\n }", "@BeforeMethod\n\tpublic void setUp() {\n\t\tString driverByOS = \"\";\n\t\tif (System.getProperty(\"os.name\").equals(\"Windows 10\")) {\n\t\t\tdriverByOS = \"Drivers/chromedriver.exe\";\n\t\t} \n\t\telse {\n\t\t\tdriverByOS = \"Drivers/chromedriver\";\n\t\t}\n\t\t//para saber en qué sistema Operativo estamos corriendo el proyecto.\n\t\tSystem.out.println(System.getProperty(\"os.name\"));\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverByOS);\n\t\t//Utilizando headless browser HB\n\t\t/*-HB\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\tchromeOptions.addArguments(\"--headless\");\n\t\tdriver = new ChromeDriver(chromeOptions);\n\t\tHB-*/\n\t\tdriver = new ChromeDriver();\n\t\t//driver.manage().window().maximize(); //esto es para maximizar la ventana del navegador\n\t\t//driver.manage().window().fullscreen(); //esto es para poner en fullscreen la ventana del navegador\n\t\t/*driver.manage().window().setSize(new Dimension(200,200));\n\t\tfor (int i = 0; i <= 800; i++) {\n\t\t\tdriver.manage().window().setPosition(new Point(i,i));\n\t\t}*/\n\t\t//driver.manage().window().setPosition(new Point(800,200)); //posicionando la ventana del navegador\n\t\tdriver.navigate().to(\"http://newtours.demoaut.com/\");\n\t\t//Este codigo de abajo permite abrir otra ventana en el navegador\n\t\t//JavascriptExecutor javaScriptExecutor = (JavascriptExecutor)driver;\n\t\t//String googleWindow = \"window.open('http://www.google.com')\";\n\t\t//javaScriptExecutor.executeScript(googleWindow);\n\t\t//tabs = new ArrayList<String> (driver.getWindowHandles());\n\t\t/*try {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//Helpers helper = new Helpers();\n\t\t//helper.sleepSeconds(4);\n\t}", "@Test\n public void fixedInHtmlUnit() throws Exception {\n final String html = \"<html></html>\";\n final HtmlPage page = loadPage(html);\n final Window topScope = ((Window) page.getEnclosingWindow().getScriptObject());\n topScope.put(\"str\", topScope, str_);\n topScope.put(\"text\", topScope, text_);\n topScope.put(\"expected\", topScope, expected_);\n page.executeJavaScript(src_);\n }", "public static void main(String[] args) {\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\r\n\t\tWebElement button;\r\n\t\tString buttonTxt;\r\n\t\tString buttonCol;\r\n\r\n\t\tdriver.get(\"https://www.training-support.net/selenium/iframes\");\r\n\r\n\t\t// get title\r\n\t\tString title = driver.getTitle();\r\n\t\tSystem.out.println(\"Title of the page is: \" + title);\r\n\r\n\t\t// Switch to iframe on the page\r\n\t\tdriver.switchTo().frame(0);\r\n\r\n\t\t// heading of 1st iframe\r\n\t\tString firstHeading = driver.findElement(By.className(\"content\")).getText();\r\n\t\tSystem.out.println(\"Heading of the first fram is: \" + firstHeading);\r\n\r\n\t\t// get the button\r\n\t\tbutton = driver.findElement(By.id(\"actionButton\"));\r\n\t\tbuttonTxt = button.getText();\r\n\t\tSystem.out.println(\"Text of button is: \" + buttonTxt);\r\n\r\n\t\t// get color of button\r\n\t\tbuttonCol = button.getCssValue(\"color\");\r\n\t\tSystem.out.println(\"Button Colour is: \" + buttonCol);\r\n\r\n\t\t// click on button\r\n\t\tbutton.click();\r\n\r\n\t\t// get the button\r\n\t\tbutton = driver.findElement(By.id(\"actionButton\"));\r\n\t\tbuttonTxt = button.getText();\r\n\t\tSystem.out.println(\"Text of button after click is: \" + buttonTxt);\r\n\r\n\t\t// get color of button\r\n\t\tbuttonCol = button.getCssValue(\"color\");\r\n\t\tSystem.out.println(\"Button Colour after click is: \" + buttonCol);\r\n\r\n\t\t// Switch to default frame\r\n\t\tdriver.switchTo().defaultContent();\r\n\r\n\t\t// Switch to frame 2\r\n\t\tdriver.switchTo().frame(1);\r\n\r\n\t\t// heading of 2nd iframe\r\n\t\tString secondHeading = driver.findElement(By.className(\"content\")).getText();\r\n\t\tSystem.out.println(\"Heading of the second frame is: \" + secondHeading);\r\n\r\n\t\t// get the button\r\n\t\tbutton = driver.findElement(By.id(\"actionButton\"));\r\n\t\tbuttonTxt = button.getText();\r\n\t\tSystem.out.println(\"Text of button is: \" + buttonTxt);\r\n\r\n\t\t// get color of button\r\n\t\tbuttonCol = button.getCssValue(\"color\");\r\n\t\tSystem.out.println(\"Button Colour is: \" + buttonCol);\r\n\r\n\t\t// Vertical scroll down by 600 pixels\r\n\t\tjs.executeScript(\"window.scrollBy(0,600)\");\r\n\r\n\t\t// click on button\r\n\t\tbutton.click();\r\n\r\n\t\t// get the button\r\n\t\tbutton = driver.findElement(By.id(\"actionButton\"));\r\n\t\tbuttonTxt = button.getText();\r\n\t\tSystem.out.println(\"Text of button after click is: \" + buttonTxt);\r\n\r\n\t\t// get color of button\r\n\t\tbuttonCol = button.getCssValue(\"color\");\r\n\t\tSystem.out.println(\"Button Colour after click is: \" + buttonCol);\r\n\r\n\t\t// Switch to default frame\r\n\t\tdriver.switchTo().defaultContent();\r\n\r\n\t\t// closing browser\r\n\t\tdriver.close();\r\n\r\n\t}", "public static void main(String[] args) throws InterruptedException {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\tif (browser.equals(\"Firefox\")) {\r\n\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\tdriver = new FirefoxDriver();\r\n\t}else if (browser.equals(\"Chrome\")){\r\n\t WebDriverManager.chromedriver().setup();\r\n\t driver = new ChromeDriver();\r\n\t} else if (browser.equals(\"Edge\")) {\r\n WebDriverManager.edgedriver().setup();\r\n driver = new EdgeDriver();\r\n}\r\n\t\t \r\n\t\t// using all 8 locators\r\n\t\t driver.get(\"https://www.saucedemo.com/\");\r\n\t\t WebElement username = driver.findElement(By.id(\"user-name\"));\r\n\t\t username.sendKeys(\"standard_user\");\r\n\t\t username.clear();\r\n\t\t Thread.sleep(2000);\r\n\t\t WebElement usernameone = driver.findElement(By.cssSelector(\"#user-name\"));// right click on the html click \r\n\t\t //copy and choose css selector & copy here\r\n\t\t usernameone.sendKeys(\"standard_user\");\r\n\t\t usernameone.clear();\r\n\t\t Thread.sleep(2000);\r\n\t\t WebElement usernametwo = driver.findElement(By.className(\"form_input\"));\r\n\t\t usernametwo.sendKeys(\"standard_user\");\r\n\t\t usernametwo.clear();\r\n\t\t Thread.sleep(2000);\r\n\t\t WebElement usernamethree = driver.findElement(By.name(\"user-name\"));\r\n\t\t usernamethree.sendKeys(\"standard_user\");\r\n\t\t usernamethree.clear();\r\n\t\t Thread.sleep(2000);\r\n\t\t WebElement usernamefour = driver.findElement(By.xpath(\"//*[@id=\\\"user-name\\\"]\"));// right click on the html click \r\n //copy and choose xpath & copy here\r\n\t\t usernamefour.sendKeys(\"standard_user\");\r\n\t\t usernamefour.clear();\r\n\t\t Thread.sleep(2000);\r\n\t\t WebElement usertag = driver.findElement(By.tagName(\"input\"));\r\n\t\t usertag.sendKeys(\"standard_user\");\r\n\t\t driver.get(\"https://www.selenium.dev/documentation/en/getting_started/\");\r\n\t\t WebElement link = driver.findElement(By.linkText(\"Quick tour\"));\r\n\t\t link.click();\r\n\t\t Thread.sleep(3000);\r\n\t\t driver.get(\"https://www.selenium.dev/documentation/en/getting_started/\");\r\n\t\t WebElement linktwo= driver.findElement(By.partialLinkText(\"Quick\"));\r\n\t\t linktwo.click();\r\n\t\t Thread.sleep(2000);\r\n\t\t driver.quit();\r\n\t\t\r\n}", "public static WebDriver initializatio(){\n\t\t \r\n\t\t\t String browse_name= prop.getProperty(\"browser\");\r\n\t\t\t \r\n\t\t\t \r\n\t\t if(driver==null && browse_name.equals(\"chrome\")){\r\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//RJ//Downloads//chromedriver.exe\");\r\n\t\t\t driver=new ChromeDriver();\r\n\t\t\t //E:\\Yadav Selenium\r\n\t\t }\r\n\t\t \r\n\t\t else if(driver==null && browse_name.equals(\"FF\")){\r\n\t\t\t System.setProperty(\"webdriver.gecko.driver\", \"E://Yadav Selenium//geckodriver.exe\");\r\n\t\t\t driver=new FirefoxDriver();\r\n\t\t }\r\n\t\t event_driver=new EventFiringWebDriver(driver);\r\n\t\t //now cearte Eventlistnerhandler to resgistor with eventFireingWebdriver\r\n\t\t event_lisner=new WebEventListner();\r\n\t\t event_driver.register(event_lisner);\r\n\t\t driver=event_driver;\r\n\t\t \r\n\t\t driver.manage().window().maximize();\r\n\t\t driver.manage().deleteAllCookies();\r\n\t\t driver.manage().timeouts().pageLoadTimeout(Testutil.PAGE_LOAD_TIMEOUT, TimeUnit.SECONDS);\r\n\t\t driver.manage().timeouts().implicitlyWait(Testutil.IMPLICIT_WAIT, TimeUnit.SECONDS);\r\n\t\t // driver.get(prop.getProperty(\"url\"));\r\n\t\t driver.navigate().to(prop.getProperty(\"url\"));\r\n\t\treturn driver;\r\n\t}", "public abstract void run(WebDriver driver);", "@BeforeClass\n\tpublic void beforeClass() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\browserDrivers\\\\chromedriver.exe\");\n//\t\t ChromeOptions options = new ChromeOptions();\n//\t\t options.addExtensions(new File(\".\\\\browserExtensions\\\\UltraSurf-VPN_v1.6.0.crx\"));\t \n\t\tdriver = new ChromeDriver();\n\n\t\t// Driver ID\n\n\t\t// wait to apply statuses of element (visible/ invisible/ presence/ clickable)\n\t\texplicitWait = new WebDriverWait(driver, 30);\n\n\t\t// ep kieu tuong minh (Reference casting)\n\t\tjsExecutor = (JavascriptExecutor) driver;\n\n\t\t// wait to find element (findElement / findElements)\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\n\t}", "@BeforeMethod\n public void acilis() {\n// WebDriverManager.chromedriver().setup();\n// driver = new ChromeDriver();\n Driver.getDriver().manage().window().maximize();\n Driver.getDriver().manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n System.out.println(\"TestNG\");\n actions = new Actions(Driver.getDriver());\n }", "public static void main(String[] args) throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n ChromeDriver driver = new ChromeDriver(); // ChromeDriver is a reference type\n //RemoteWebDriver driver = new SafariDriver();\n //RemoteWebDriver driver = new ChromeDriver();\n //RemoteWebDriver driver = new InternetExplorerDriver(); //RemoteWebDriver is the parent of webdrivers\n //They all inherited RemoteWebDriver. It is called polymorphism\n\n //In selenium, everything starts from Webdriver interface\n //If I want to open a web page I just call this driver and I use methods from the driver\n //here we used get() method. Every single script always start with get() method.\n //It is like key to open the door. Get will open website first\n driver.get(\"http://google.com\");\n driver.manage().window().maximize(); //to maximize the browser\n //driver.manage().window().fullscreen();\n\n Thread.sleep(3000); //for demo, wait 3 seconds. If you use this add throws declaration. This is why we used throws InterruptedException\n\n //method that returns page title. You can also see it as tab name, in the browser\n String title = driver.getTitle(); //returns <title>Some title</title> text. It is actual title\n String expectedTitle = \"Google\"; //It is expected title\n System.out.println(\"Title is...\"+ title);\n\n if (expectedTitle.equalsIgnoreCase(title)){ //expected title is equal to actual title\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED\");\n }\n\n //go to another website within the same window\n driver.navigate().to(\"http://amazon.com\");\n //amazon has long title so we just used contain method not equals\n if (driver.getTitle().toLowerCase().contains(\"amazon\")){\n System.out.println(\"TEST PASSED!\");\n }else {\n System.out.println(\"TEST FAILED!\");\n }\n\n //comeback to google. Instead of writing if statement,line 32, we can write this method\n driver.navigate().back();\n Thread.sleep(3000); //adding 3 sec between the navigating Google to Amazon\n verifyEquals(driver.getTitle(), \"Google\"); //calling verifyEquals method, line 55, checking if page title is equals to Google\n\n //move forward in the browser history, again going to amazon\n driver.navigate().forward();\n Thread.sleep(3000);\n\n System.out.println(\"Title: \"+driver.getTitle()); //Title is a String\n System.out.println(\"URL: \"+ driver.getCurrentUrl()); // to get URL, URL is a String\n\n driver.navigate().refresh(); //to reload page\n Thread.sleep(3000);\n //must be at the end\n driver.close(); //to close browser\n }", "public static void main(String[] args) {\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\DRIVERS\\\\chrome driver\\\\chromedriver.exe\");\r\n\tWebDriver\tdriver = new ChromeDriver();// creating object referring to interface to call methods in interface \r\n\tdriver.get(\"https://www.google.com/\"); \t// hit url on browsera\r\n\tSystem.out.println(driver.getCurrentUrl()); // to validate if you are landed on correct url\r\n\tSystem.out.println(driver.getTitle());\t\t// to validate title of page\r\n\tSystem.out.println(driver.getPageSource());\r\n\tdriver.get(\"http://yahoo.com\");\r\n\tdriver.navigate().back();\r\n\tdriver.navigate().forward();\r\n//\tdriver.close(); \t//Close the current window, quitting the browser if it's the last window currently open\r\n//\tdriver.quit();\t\t// Quits this driver, closing every associated window (this will close all browsers windows which are opened by selenium script\r\n\r\n//\t//\tfor locators ID, name, classname,linktext, xpath, css\r\n//\tdriver.get(\"https://www.facebook.com/\");\r\n//\tdriver.findElement(By.id(\"email\")).sendKeys(\"mounika\");\r\n\t\r\n//\t//driver.findElement(By.name(\"pass\")).sendKeys(\"maggie\");\r\n\t\r\n//\t//driver.findElement(By.xpath(\"//input[@type='password']\")).sendKeys(\"mounika\");\r\n\t\r\n//\tdriver.findElement(By.cssSelector(\"input[type='password']\")).sendKeys(\"pass\"); // difference between xpath and ccs is in css we wont use // and @ , give space or don't mention in the place of * not need of mentioning tag in css\r\n//\t// css 1)tagname#id or #id 2)tagname.classname\r\n//\tdriver.findElement(By.id(\"loginbutton\")).click();\r\n//\tdriver.findElement(By.linkText(\"Forgotten password?\")).click();\r\n//\t// selenium will not accept classname will spaces it will throw error compound class name is not permitted \r\n//\tSystem.out.println(\"pass\");\r\n//\t//driver.quit();\r\n//\t// regular expression when attribute value is changing and some part is constant and when it is very long\r\n//\tdriver.get(\"http://rediff.com\");\r\n//\tdriver.findElement(By.cssSelector(\"a[title*='Sign in']\")).click(); // regular expression for css same as normal css except * symbol\r\n//\tdriver.findElement(By.xpath(\"//input[@id='login1']\")).sendKeys(\"hello\");\r\n//\tdriver.findElement(By.cssSelector(\"input#password\")).sendKeys(\"goodbye\");\r\n//\tdriver.findElement(By.xpath(\"//input[contains(@name,'procee')]\")).click(); //regular expression for xpath it uses contains\r\n\t// if we need to move to particular column in row using css (write css till row space childtagname:nth-child(3) ( child(3) is the coulmns on which we will be performing \r\n\t//eg:table.findElements(By.className(\"div[class='rt-tr-group'] div:nth-child(3)\")\r\n\t\t\t// note : how to transverse to one sibling to another sibling write xpath till firstlsibling/following-sibling::tagnameofnextsibling\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\t}", "public static String scrollToElementUsingJavaSript(WebDriver driver, WebElement element) {\n\t\ttry {\n\t\t\tif (driver != null) {\n\t\t\t\tJavascriptExecutor jse = (JavascriptExecutor) driver;\n\t\t\t\tjse.executeScript(\"arguments[0].scrollIntoView();\", element);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Driver is not initialised.\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}", "public void testRun() throws Exception {\r\n SeleniumTestBase mySeleniumTestBase = new SeleniumTestBase(selenium);\r\n mySeleniumTestBase.loginToUI(\"admin\", \"admin\");\r\n }", "@Test\n\t public void scrollAndClick() throws InterruptedException\n\t {\n\t\t \n\t\t productpage = new ProductPage(driver);\n\t\t productpage.clickOnSomePrompt();\n\t\t int num = productpage.numberOfItemsDisplayed();\n\t\t log.info(\"number of items\" +num);\n\t\t productdetails = productpage.clickOnLastItem();\n\t\t boolean status = productdetails.isProductDEtailsPageDisplayed();\n\t\t\tAssertionHelper.updateTestStatus(status);\n\t\t\tTestBaseRunner.result = TestBaseRunner.passOrFail(status);\n\t\t\tExcelReadWrtite.updateResult(\"testData.xlsx\", \"TestScripts\", \"scrollAndClick\", result);\n\t }", "public Page(WebDriver webDriver) {\n this.webDriver = webDriver;\n\t}", "@SuppressWarnings(\"null\")\r\n\t@Test\r\n\tpublic void Login()\r\n\t{\r\n \tWebDriver driver = null;\r\n\t\tLoginTestData LTD = new LoginTestData();\r\n\t\tBrowser br = new Browser();\r\n\t\tBaseClassMethods bcm = new BaseClassMethods();\r\n\t//\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Aniket\\\\Selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tbr.userLogin(LoginTestData.userName, LoginTestData.password);\r\n//\t\tdriver.manage().timeouts().pageLoadTimeout(10000, TimeUnit.MILLISECONDS);\r\n\t WaitMethods wait = new WaitMethods();\r\n\t\twait.hardWait();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t//\tdriver.switchTo().equals(driver.findElement(By.xpath(\"//div[@class='container']//div[@id='addModify']//following::div[@id='onTripVehicleStoppageDetails']\")));\r\n\t//\tdriver.switchTo().activeElement();\r\n\t\tif (driver.findElement(By.xpath(\"//div[@id='navbarsExample04']\")).isDisplayed()){\r\n\t\t\r\n\t\tbcm.highLightElement(driver.findElement(By.xpath(\"//a//img[@id='companyImage']\")), driver);\r\n\t\tdriver.findElement(By.xpath(\"//a//img[@id='companyImage']\")).click();\r\n\t\t}\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\t\r\n\t\tbcm.highLightElement(driver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']\")), driver);\r\n\t\tbcm.closePopup(); \r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//a[text()='Dashboard']\")).click();\r\n\t\tdriver.findElement(By.xpath(\"//a[text()='Dashboard']\")).sendKeys(\"Executive Live View\");\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//div[@class='sweet-alert showSweetAlert visible']\")).click();\r\n\t\tbcm.highLightElement(driver.findElement(By.xpath(\"//div[@class='sweet-alert showSweetAlert visible']\")), driver);\r\n\t\t\r\n\t\t//driver.switchTo().equals(driver.findElement(By.xpath(\"//div[@class='container']//div[@id='addModify']//following::div[@id='onTripVehicleStoppageDetails']\")));\r\n\t\tdriver.findElement(By.xpath(\"//div[@class='container']//div[@id='addModify']//following::div[@id='onTripVehicleStoppageDetails']\")).click();\r\n\t\t\r\n\t\t//bcm.highLightElement(driver.findElement(By.xpath(\"//p[text()='Enroute Placement']\")), driver);\r\n\t\t\r\n\t\tbcm.highLightElement(driver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']\")), driver);\r\n\t\tdriver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']//button\")).click();\r\n\t/*\tdriver.navigate().equals(driver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']\")));\r\n\t\tif (driver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']\")).isDisplayed()){\r\n\t\t\t*/\r\n\t\t\tbcm.highLightElement(driver.findElement(By.xpath(\"//div[@id='onTripVehicleStoppageDetails']\")), driver);\r\n\t\t\tbcm.closePopup(); \r\n\t\t\tdriver.manage().timeouts().pageLoadTimeout(5000, TimeUnit.MILLISECONDS);\r\n\t/*\t}\r\n\t\t*/\r\n\t\t\r\n\t\tVerifyHomePage vhp = new VerifyHomePage();\r\n\t\tvhp.verifyHomePageHeaders();\r\n\t}", "@Test\r\n public void Test4() throws InterruptedException {\n driver.navigate().to(\"http://webstrar99.fulton.asu.edu/page2/\");\r\n driver.findElement(By.id(\"number1\")).sendKeys(\"10\");\r\n driver.findElement(By.id(\"number2\")).sendKeys(\"5\");\r\n driver.findElement(By.id(\"div\")).click();\r\n driver.findElement(By.id(\"calc\")).click();\r\n Assert.assertEquals(\"2\", driver.findElement(By.id(\"res\")).getText());\r\n driver.quit();\r\n }", "@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }", "@Test\n public void test(){\n\n\n FirefoxProfile profile = new FirefoxProfile();\n // profile.EnableNativeEvents = true;\n\n WebDriver driver = new FirefoxDriver(profile);\n driver.get(\"http://www.baidu.com\");\n }", "@Test\r\n\tpublic void smr142() {\r\n\t\ttry{\r\n\t\t\tfinal String firstName=testDataOR.get(\"superuser_first_name\"),lastName=testDataOR.get(\"superuser_last_name\");\r\n\t\t\tlogin(\"URLEverest\",testDataOR.get(\"superuser\"),firstName,lastName);\r\n\t\t\tlogger.info(\"SMR142 execution started\");\r\n\t\t\tfinal String numComm=testDataOR.get(\"num_comm\"),cust=testDataOR.get(\"customer\")\r\n\t\t\t\t\t,posNum=testDataOR.get(\"pos_number\"),dbEportal=testDataOR.get(\"databaseEportal\"),dbAxis=testDataOR.get(\"databaseAxis\")\r\n\t\t\t\t\t,pos,numptv,numcom;\r\n\t\t\tfinal String[] posLoc={\"posrefund_xpath\",\"posforcing_xpath\",\"posvoid_xpath\",\"posnumcomm_xpath\"},\r\n\t\t\t\t\tposVal={testDataOR.get(\"refund_option\"),testDataOR.get(\"forcing_option\"),testDataOR.get(\"void_option\"),numComm};\r\n\t\t\t\r\n\t\t\t//Access Everest with the Everest superuser\r\n\t\t\t//Navigate to Card Payment-Customer Provisioning and select the \r\n\t\t\t//customer\r\n\t\t\taddProfToCust(cust);\r\n\r\n\t\t\t//Select 'Manual localization',pos and click Next\t\r\n\t\t\tlogger.info(\"Step 6:\");\r\n\t\t\tselUtils.selectItem(selUtils.getObject(\"operationorder_id\"), MANUALLOCALZTION);\r\n\t\t\tlogger.info(\"Selected \"+MANUALLOCALZTION);\r\n\t\t\tselUtils.clickOnWebElement(selUtils.getObject(\"pos_radiobttn_xpath\"));\r\n\t\t\tselUtils.clickOnWebElement(selUtils.getObject(\"orderopenext_id\"));\r\n\r\n\t\t\t//Select a lowest level zone and click Next\r\n\t\t\tlogger.info(\"Step 7:\");\r\n\t\t\tselUtils.selectItem(selUtils.getObject(\"localization_id\"), testDataOR.get(\"lowest_level_zone_a\"));\r\n\t\t\tselUtils.clickOnWebElement(selUtils.getObject(\"localizationnext_xpath\"));\r\n\t\t\tlogger.info(\"Selected a lowest level zone and next button\");\r\n\t\t\t\r\n\t\t\t//Select the <num_comm> from the dropdown list,click 'Next' button\r\n\t\t\tlogger.info(\"Step 8:\");\r\n\t\t\tselUtils.selectItem(selUtils.getObject(\"numcomm_selection_id\"), numComm);\r\n\t\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].click();\", selUtils.getObject(\"locnext_id\"));\r\n\t\t\tlogger.info(\"Selected numcomm zone and next button\");\r\n\r\n\t\t\t\r\n\t\t\t//select manual pos,and add pos details\r\n\t\t\tlogger.info(\"Step 9:\");\r\n\t\t\tselUtils.slctChkBoxOrRadio(selUtils.getObject(\"enterposanual_xpath\"));\r\n\t\t\tselUtils.clickOnWebElement(selUtils.getObject(\"addpos_xpath\"));\r\n\t\t\tselUtils.getObject(\"posnumber_id\").sendKeys(posNum);\r\n\t\t\taddPOSval(posLoc, posVal);\r\n\t\t\t\r\n\t\t\t//Edit projectname and deploy\r\n\t\t\teditPNameNDeply();\r\n\t\t\t\r\n\t\t\tif(dbCheck){\r\n\t\t\t\t//validating data with database,validate data in Eportal database\r\n\t\t\t\tsqlQuery = \"SELECT * FROM pos WHERE pos='\"+posNum+\"'\";\r\n\t\t\t\tresSet = dbMethods.getDataBaseVal(dbEportal,sqlQuery,CommonConstants.ONEMIN);\r\n\t\t\t\tpos=resSet.getString(\"pos\");\r\n\t\t\t\tAssert.assertTrue(pos.equals(posNum), \"Table data does not exist \");\r\n\t\t\t\tlogger.info(\"pos number \"+posNum+ \" exists in table\");\r\n\r\n\t\t\t\t//Validating the results in Axis database\r\n\t\t\t\tsqlQuery=\"SELECT numtpv,numcomm FROM emv.tpvemv WHERE numtpv='\"+posNum+\"' AND numcomm='\"+numComm+\"';\";\r\n\t\t\t\tresSet = dbMethods.getDataBaseVal(dbAxis,sqlQuery,CommonConstants.ONEMIN);\r\n\t\t\t\tnumptv=resSet.getString(\"numtpv\");\r\n\t\t\t\tnumcom=resSet.getString(\"numcomm\");\r\n\t\t\t\tAssert.assertTrue(numptv.equals(posNum)&&numcom.equals(numComm), \"Table data does not exist \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlogger.info(\"SMR142 executed successfully\");\r\n\t\t}\r\n\t\tcatch (Throwable t) {\r\n\t\t\thandleException(t);\r\n\t\t}\r\n\t}", "public void run() throws Exception {\n\t\tweb.window(2,\n\t\t\t\t\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.web_window}}\").navigate(\n\t\t\t\t\t\t\"http://riyoramgbm02.maaden.com:8050/OA_HTML/OA.jsp?OAFunc=OAHOMEPAGE\");\n\t\tweb.window(4,\n\t\t\t\t\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.web_window}}\").waitForPage(180, true);\n\t\t\n\t\tweb.textBox(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.web_input_text_unamebean}}\").click();\n\t\t\n\t\tweb.textBox(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.web_input_text_unamebean}}\").setText(\"PEETHAMBARANS\");\n\t\t\t\t\n\t\tweb.textBox(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.web_input_password_pwdbean}}\")\n\t\t\t\t.setPassword(deobfuscate(\"vWeMH+MT9Gy3Y8SojsL+Mg==\"));\n\t\n\t\tweb.button(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.web_button_SubmitButton}}\").click();\n\t\tweb.window(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.web_window}}\").waitForPage(180, true);\n\t\t\n\t\tweb.link(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.MWSPC_PURCHASING_SUPERUSE}}\").click();\n\t\tweb.window(17,\n\t\t\t\t\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.web_window}}\").waitForPage(180, true);\n\t\n\t\n\t\tweb.link(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.Purchase_Order}}\").click();\n\t\tweb.window(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.web_window}}\").waitForPage(180, true);\n\t\t\n\t\tweb.link(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.Purchase_Order_Summary}}\").click();\n\t\tweb.window(28,\n\t\t\t\t\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.web_window_1}}\")\n\t\t\t\t.waitForPage(180,true);\n\t\tforms.captureScreenshot(33);\n\t\t\n\t\t//forms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_FIND_OPERATING_UNIT_0}}\").setFocus();\n\t\tif(forms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_FIND_PO_NUM_0}}\").exists(60, TimeUnit.SECONDS)){\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_FIND_PO_NUM_0}}\").setText(\"741903172\");\n\t\t}\n\t\t\n\t\tString PO_Number = forms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_FIND_PO_NUM_0}}\").getText();\n\t\tinfo(\"PO_Number ->\"+PO_Number);\n\t\t\n\t\tforms.button(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_button_FIND_FIND_0}}\").click();\n\t\tforms.captureScreenshot(38);\n\t\n\t\tforms.button(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.Lines}}\").click();\n\t\tforms.captureScreenshot(41);\n\t\t\n\t\tforms.button(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.Shipment}}\").click();\n\t\tforms.captureScreenshot(44);\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_PO_NUM_0}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_RELEASE_}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_LINE_NUM}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_SHIPMENT}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_ITEM_NUM}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_UNIT_MEA}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_SHIP_TO_}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_SHIPMENT_1}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_START_DA}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_END_DATE}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_QUANTITY}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_QUANTITY}}\").setFocus();\n\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_QUANTITY_1}}\").invokeSoftKey(\"NEXT_FIELD\");\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_QUANTITY_1}}\").setFocus();\n\t\tinfo(\"Quantity Due is : \"+forms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_QUANTITY_1}}\").getText() );\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_QUANTITY_2}}\").setFocus();\n\t\tinfo(\"Quantity Received is : \"+forms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_SHIPMENTS_FOLDER_QUANTITY_2}}\").getText());\n\t\tforms.captureScreenshot();\n\t\tforms.window(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_window_SHIPMENTS_FOLDER}}\").close();\n\t\tforms.captureScreenshot(63);\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_LINES_FOLDER_PURCHASING_O}}\").setFocus();\n\t\t\n//\t\tforms.button(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.Shipment}}\").click();\n//\t\t\n//\t\tforms.window(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_window_SHIPMENTS_FOLDER}}\").activate(true);\n//\t\tforms.captureScreenshot(68);\n//\t\t\n//\t\tforms.window(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_window_SHIPMENTS_FOLDER}}\").close();\n//\t\tforms.captureScreenshot(71);\n//\t\t\n\t\tforms.window(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_window_LINES_FOLDER}}\").close();\n\t\tforms.captureScreenshot(74);\n\t\t\n\t\tforms.window(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_window_HEADERS_FOLDER}}\").close();\n\t\tforms.captureScreenshot(77);\n\t\t\n\t\tforms.textField(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_textField_FIND_OPERATING_UNIT_0}}\").setFocus();\n\t\tforms.captureScreenshot(80);\n\t\t\n\t\tforms.close(81);\n\t\tforms.captureScreenshot(83);\n\t\t\n\t\tforms.choiceBox(\"{{obj.PO_QtyReceived_QtyDue_EligibilityVerification_00122.forms_choiceBox}}\").clickButton(\"OK\");\n\t\t\n\t\t\n\n\t}", "public static void scrollUsingJavaSript(WebDriver driver, int verticalPixels) {\n\t\ttry {\n\t\t\tif (driver != null) {\n\t\t\t\tJavascriptExecutor jse = (JavascriptExecutor) driver;\n\t\t\t\tjse.executeScript(\"window.scrollBy(0,\" + verticalPixels + \")\", \"\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Driver is not initialised.\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t}\n\t}", "@Test\n\tpublic void rightClick() throws InterruptedException{\n\t\t\n\t\t//System.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"user.dir\")+\"/geckodriver\");\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(3000);\n//\t\tWebElement ele = driver.findElement(By.xpath(\"(//input[@class='gLFyf gsfi'])[1]\"));\n//\t\t\n//\t\tele.sendKeys(\"cricbuzz\");\n//\t\tdriver.findElement(By.xpath(\"(//input[@aria-label='Google Search'])[1]\")).click();;\n//\t\tThread.sleep(3000);\n\t\t\n//\t\tdriver.findElement(By.cssSelector(\"body\")).sendKeys(Keys.COMMAND +\"t\");\n//\t\t\n//\t\tThread.sleep(3000);\n//\t\t\n//\t\tArrayList<String> tabs = new ArrayList<String> (driver.getWindowHandles());\n//\t\tdriver.switchTo().window(tabs.get(0));\n\t\t\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver; \n\t\tjs.executeScript(\"window.open()\");\n\t\t\n//\t\tList<String> handles = driver.getWindowHandles().to\n//\t\tdriver.SwitchTo().Window(handles.Last());\n//\n//\t\tdriver.Navigate().GoToUrl(url);\n\t\t\n\t\t\n\t\tThread.sleep(3000);\n\t\tSystem.out.println(\"Navigated to new tab\");\n\n\n}", "public static void click_DOM(WebDriver driver, String sLocator, String sLog, String sJavaScript)\n\t{\n\t\tclick_DOM(driver, sLocator, sLog, sJavaScript, bException);\n\t}", "@Override\n public void run(WebDriver driver) {\n this.driver = driver;\n try {\n if (this.fieldIdentification.equals(\"id\") &&\n !this.fieldIdentificationValue.equals(\"\") &&\n this.fieldValue.equals(\"\") &&\n !this.fieldAutoValue.equals(\"\") &&\n this.fieldReadOnly.equals(\"\") &&\n this.fieldFormatFile.equals(\"\") &&\n this.fieldValidation.equals(\"\")) {\n List<WebElement> lis = ((List<WebElement>) ((JavascriptExecutor) driver).executeScript(\"return document.getElementById('\" + this.fieldIdentificationValue + \"').parentNode.parentNode.parentNode.getElementsByTagName('ul')[0].getElementsByTagName('li')\"));\n String actualValue = \"\";\n for (int i = 0; i < lis.size(); i++) {\n WebElement li = lis.get(i);\n actualValue += li.getText() + \"&\";\n }\n actualValue = actualValue.substring(0, actualValue.length() - 1);\n assertEquals(this.fieldAutoValue, actualValue);\n } else if (this.fieldIdentification.equals(\"id\") &&\n !this.fieldIdentificationValue.equals(\"\") &&\n !this.fieldValue.equals(\"\") &&\n this.fieldAutoValue.equals(\"\") &&\n this.fieldReadOnly.equals(\"\") &&\n this.fieldFormatFile.equals(\"\") &&\n this.fieldValidation.equals(\"\")) {\n List<WebElement> divs = (List<WebElement>) ((JavascriptExecutor) driver).executeScript(\"return document.getElementById('\" + this.fieldIdentificationValue + \"').parentNode.parentNode.getElementsByTagName('div')\");\n for (int i = 0; i < divs.size(); i++) {\n WebElement div = divs.get(i);\n if (div.getAttribute(\"class\").contains(\"fieldClear\") && !div.getAttribute(\"style\").contains(\"display: none\")) {\n div.click();\n break;\n }\n }\n driver.findElement(By.id(this.fieldIdentificationValue)).click();\n String[] checkboxes = this.fieldValue.split(\"&\");\n for (int i = 0; i < checkboxes.length; i++) {\n driver.findElement(By.xpath(\"//li/span[contains(., '\" + checkboxes[i] + \"')]\")).click();\n }\n driver.findElement(By.xpath(\"//div[contains(@style, ': block') and @class='ui-dialog ui-widget ui-widget-content ui-corner-all ']/div[@class='lookup-widget ui-dialog-content ui-widget-content']/table[@class='popupBg']/tbody/tr/td/div[@class='popupFormBg pngFix']/a[@class='popupSelectBut']/span[@class='popupSelectButContent']/span[text()='Сохранить']\")).click();\n SeleniumPrerequisites.sleep();\n if (driver.findElements(By.xpath(\"//div[contains(@style, ': block') and @class='ui-dialog ui-widget ui-widget-content ui-corner-all ']/div[@class='ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix']/a[@class='ui-dialog-titlebar-close ui-corner-all']/span[text()='Закрыть']\")).size() > 0) {\n driver.findElement(By.xpath(\"//div[contains(@style, ': block') and @class='ui-dialog ui-widget ui-widget-content ui-corner-all ']/div[@class='ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix']/a[@class='ui-dialog-titlebar-close ui-corner-all']/span[text()='Закрыть']\")).click();\n SeleniumPrerequisites.sleep();\n }\n List<WebElement> lis = ((List<WebElement>) ((JavascriptExecutor) driver).executeScript(\"return document.getElementById('\" + this.fieldIdentificationValue + \"').parentNode.parentNode.parentNode.getElementsByTagName('ul')[0].getElementsByTagName('li')\"));\n String actualValue = \"\";\n for (int i = 0; i < lis.size(); i++) {\n WebElement li = lis.get(i);\n actualValue += li.getText() + \"&\";\n }\n actualValue = actualValue.substring(0, actualValue.length() - 1);\n assertEquals(this.fieldValue, actualValue);\n } else {\n log.warn(\"Текущая исследуемая комбинация некорректна: \" +\n this.fieldType + \"/\" +\n this.fieldIdentification + \"/\" +\n this.fieldIdentificationValue + \"/\" +\n this.fieldValue + \"/\" +\n this.fieldAutoValue + \"/\" +\n this.fieldReadOnly + \"/\" +\n this.fieldFormatFile + \"/\" +\n this.fieldValidation);\n }\n } catch (InvalidSelectorException e) {\n log.error(e.getMessage(), e);\n SeleniumPrerequisites.screenShot();\n } catch (SeleniumException e) {\n log.error(e.getMessage(), e);\n SeleniumPrerequisites.screenShot();\n } catch (ElementNotVisibleException e) {\n log.error(e.getMessage(), e);\n SeleniumPrerequisites.screenShot();\n } catch (NullPointerException e) {\n log.error(e.getMessage(), e);\n SeleniumPrerequisites.screenShot();\n } catch (WebDriverException e) {\n log.error(e.getMessage(), e);\n SeleniumPrerequisites.screenShot();\n }\n }", "public BrowserActions(WebDriver driver){\r\n\t\tthis.driver=driver;\r\n\t}", "@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "public void LossEstimates(){\r\n\t\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*driver.switchTo().defaultContent();\r\n\t\t\t\t\tsleep(3000);\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget2Ifr\"));\r\n\t\t\t click(locator_split(\"tabLocationAssesment\"));\r\n\t\t\t click(locator_split(\"linkclickLocation\"));*/\r\n\t\t\t // driver.findElement(By.xpath(\"//*[@tabindex='4']/a/span\")).click();\r\n\t\t\t // driver.findElement(By.xpath(\"//a[@title='Click here to open Location Assessment']\")).click();\r\n\t\t\tsleep(5000);\r\n\t\t\tif(getValue(\"Account\").equals(\"EEA\")){\r\n\t\t\t driver.switchTo().defaultContent();\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget3Ifr\"));\r\n\t\t\t click(locator_split(\"tablossestimates\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"tabeml\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"linkexpandpdlossestimates\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiovalue\"));\r\n\t\t\t \t\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t \tsleep(3000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamage\"), getValue(\"BuildingDamage\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtmeDamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtmeDamage\"), getValue(\"MEDamage\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcontentdamage\"), getValue(\"ContentDamage\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtstockdamage\"), getValue(\"StockDamage\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherpddamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtotherpddamage\"), getValue(\"OtherPDDamage\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t }else{\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiopercentage\"));\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamagepc\"), getValue(\"BuildingDamagePC\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtmedamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtmedamagepc\"), getValue(\"MEDamagePC\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcontentdamagepc\"), getValue(\"ContentDamagePC\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtstockdamagepc\"), getValue(\"StockDamagePC\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherpddmagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtotherpddmagepc\"), getValue(\"OtherPDDamagePC\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t click(locator_split(\"linkexpandbilossestimates\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t // click(locator_split(\"linkaddroweml\"));\r\n\t\t\t // sleep(3000);\r\n\t\t\t // click(locator_split(\"linkaddroweml\"));\r\n\t\t\t// sleep(3000);\r\n\t\t\t \r\n\t\t\t selectListValue(locator_split(\"listbidowntime\"), getValue(\"BIDownTime\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtbiaffected\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtbiaffected\"), getValue(\"BIAffected\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtbidowntime\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtbidowntime\"), getValue(\"BIDownTimeValue\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t //if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t \t\r\n\t\t\t //}\r\n\t\t\t // click(locator_split(\"checklecompleted\"));\r\n\t\t\t// driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).click();\r\n\t\t\t driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t //sendkeys(driver.findElement(By.xpath(\"//input[@name='USER']\")),\"jkdkd\");\r\n\t\t\t sleep(2000);\r\n\t\t\t \r\n/////////////////////////////PML flag\r\n\t\t\t click(locator_split(\"tabpml\"));\r\n\t\t\t sleep(5000);\r\n\t\t\r\n\t\t\t // click(locator_split(\"linkexpandpdlossestimates\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t \tSystem.out.println(\"inside if loop\");\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiovalue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tSystem.out.println(\"inside pml tab\");\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamage\"), getValue(\"BuildingDamage1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtmeDamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtmeDamage\"), getValue(\"MEDamage1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcontentdamage\"), getValue(\"ContentDamage1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtstockdamage\"), getValue(\"StockDamage1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherpddamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtotherpddamage\"), getValue(\"OtherPDDamage1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t }else{\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiopercentage\"));\r\n\t\t\t \t\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \t\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamagepc\"), getValue(\"BuildingDamagePC1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtmedamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtmedamagepc\"), getValue(\"MEDamagePC1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcontentdamagepc\"), getValue(\"ContentDamagePC1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtstockdamagepc\"), getValue(\"StockDamagePC1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherpddmagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtotherpddmagepc\"), getValue(\"OtherPDDamagePC1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t // click(locator_split(\"linkexpandbilossestimates\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t selectListValue(locator_split(\"listbidowntime\"), getValue(\"BIDownTime1\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtbiaffected\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtbiaffected\"), getValue(\"BIAffected1\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtbidowntime\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtbidowntime\"), getValue(\"BIDownTimeValue1\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t //if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t \t\r\n\t\t\t //}\r\n\t\t\t // driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).click();\r\n\t\t\t driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t sleep(2000);\r\n\t\t\t //////////////////////////////////////////////\r\n\t\t\t \r\n\t\t\t \r\n\t\t //////////NLE///////////////////////////\r\n\t\t\t click(locator_split(\"tabnle\"));\r\n\t\t\t sleep(5000);\r\n\t\t\r\n\t\t\t // click(locator_split(\"linkexpandpdlossestimates\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t \t\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiovalue\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamage\"), getValue(\"BuildingDamage2\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtmeDamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtmeDamage\"), getValue(\"MEDamage2\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcontentdamage\"), getValue(\"ContentDamage2\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtstockdamage\"), getValue(\"StockDamage2\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherpddamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtotherpddamage\"), getValue(\"OtherPDDamage2\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t }else{\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiopercentage1\"));\r\n\t\t\t \t\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamagepc\"), getValue(\"BuildingDamagePC2\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtmedamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtmedamagepc\"), getValue(\"MEDamagePC2\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcontentdamagepc\"), getValue(\"ContentDamagePC2\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtstockdamagepc\"), getValue(\"StockDamagePC2\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherpddmagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtotherpddmagepc\"), getValue(\"OtherPDDamagePC2\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t // click(locator_split(\"linkexpandbilossestimates\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t selectListValue(locator_split(\"listbidowntime\"), getValue(\"BIDownTime2\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtbiaffected\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtbiaffected\"), getValue(\"BIAffected2\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtbidowntime\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtbidowntime\"), getValue(\"BIDownTimeValue2\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t //if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t \t\r\n\t\t\t //}\r\n\t\t\t if (driver.findElement(By.xpath(\".//*[@id='NLEScenarioComplete']\")).isSelected()== true ){\r\n\t\t\t\t driver.findElement(By.xpath(\"//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t\t sleep(2000); \r\n\t\t\t }\r\n\t\t\t driver.findElement(By.xpath(\"//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t sleep(2000); \r\n\t\t\t //////////////////////////////////////////////////////\r\n\t\t\t \r\n\t\t\t click(locator_split(\"tabnleprotected\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t if (driver.findElement(By.xpath(\".//*[@id='NLEScenarioComplete']\")).isSelected()== true ){\r\n\t\t\t\t driver.findElement(By.xpath(\"//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t\t sleep(2000);\r\n\t\t\t }\r\n\t\t\t driver.findElement(By.xpath(\"//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t sleep(2000);\r\n\t\t\t \r\n\t\tclick(locator_split(\"tabnleprotectednonstorage\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t// driver.findElement(By.xpath(\".//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\tsleep(2000);\r\n\t\t\tclick(locator_split(\"tabnlesummary\"));\r\n\t\t//\tdriver.findElement(By.xpath(\"tabnlesummary\")).click();\r\n\t\t\tsleep(2000);\r\n\t\t\t if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t\t driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t\tsleep(2000);\r\n\t\t\t }\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\tsleep(2000);\r\n\t\t\t if (driver.findElement(By.xpath(\".//*[@id='SectionCompleted']\")).isSelected()== true ){\r\n\t\t\t\t driver.findElement(By.xpath(\"//input[@id='SectionCompleted']\")).click();\r\n\t\t\t\t sleep(2000);\r\n\t\t\t }\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='SectionCompleted']\")).click();\r\n\t\t\tsleep(2000);\r\n\t\t//switchframe(\"PegaGadget2Ifr\");\r\n\t\t//\tsleep(3000);\r\n\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t\t}else{\r\n\r\n\t\t\t driver.switchTo().defaultContent();\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget3Ifr\"));\r\n\t\t\t click(locator_split(\"tablossestimates\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"tabmas\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"linkexpandpdlossestimates\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiovalue\"));\r\n\t\t\t \t\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t \tsleep(3000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamage\"), getValue(\"BuildingDamageMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t \tclearWebEdit(locator_split(\"txtmeDamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtmeDamage\"), getValue(\"MEDamageMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcontentdamage\"), getValue(\"ContentDamageMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtstockdamage\"), getValue(\"StockDamageMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherpddamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtotherpddamage\"), getValue(\"OtherPDDamageMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t }else{\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiopercentage\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t \tsleep(3000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \t\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamagepc\"), getValue(\"BuildingDamagePCMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \t\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamagepc\"), getValue(\"BuildingDamagePCMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtmedamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtmedamagepc\"), getValue(\"MEDamagePCMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcontentdamagepc\"), getValue(\"ContentDamagePCMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtstockdamagepc\"), getValue(\"StockDamagePCMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherpddmagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtotherpddmagepc\"), getValue(\"OtherPDDamagePCMas\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t click(locator_split(\"linkexpandbilossestimates\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t // click(locator_split(\"linkaddroweml\"));\r\n\t\t\t // sleep(3000);\r\n\t\t\t // click(locator_split(\"linkaddroweml\"));\r\n\t\t\t// sleep(3000);\r\n\t\t\t \r\n\t\t\t selectListValue(locator_split(\"listbidowntime\"), getValue(\"BIDownTimeMas\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtbiaffected\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtbiaffected\"), getValue(\"BIAffectedMas\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtbidowntime\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtbidowntime\"), getValue(\"BIDownTimeValueMas\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"linkexpandothertecobverage\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiovalue2\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txteeloss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txteeloss\"), getValue(\"EELoss1\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverageloss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoverageloss\"), getValue(\"OtherTE1CoverageLoss1\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage2loss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoverage2loss\"), getValue(\"OtherTE2CoverageLoss1\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage3loss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoverage3loss\"), getValue(\"OtherTE3CoverageLoss1\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtibiloss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtibiloss\"), getValue(\"IBILoss1\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcbiloss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtcbiloss\"), getValue(\"CBILoss1\"));\r\n\t\t\t\t \r\n\t\t\t //if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t \t\r\n\t\t\t //}\r\n\t\t\t // click(locator_split(\"checklecompleted\"));\r\n\t\t\t// driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).click();\r\n\t\t\t \t\r\n\t\t\t }else{\r\n\t\t\t \t\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiopercentage2\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txteelosspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txteelosspc\"), getValue(\"EELoss1PC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoveragelosspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoveragelosspc\"), getValue(\"OtherTE1CoverageLoss1PC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage2losspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoverage2losspc\"), getValue(\"OtherTE2CoverageLoss1PC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage3losspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoverage3losspc\"), getValue(\"OtherTE3CoverageLoss1PC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtibilosspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtibilosspc\"), getValue(\"IBILoss1PC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcbilosspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtcbilosspc\"), getValue(\"CBILoss1PC\"));\r\n\t\t\t }\r\n\t\t\t if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t\t\t driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t\t\tsleep(2000);\r\n\t\t\t\t }\r\n\t\t\t\tdriver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\tsleep(2000);\r\n\t\t\t// driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t //sendkeys(driver.findElement(By.xpath(\"//input[@name='USER']\")),\"jkdkd\");\r\n\t\t\t // sleep(2000);\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t /////////////MFL/////////////////////\r\n\t\t\t \r\n\t\t\t click(locator_split(\"tabmfl\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t // click(locator_split(\"linkexpandpdlossestimates\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiovalue\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tSystem.out.println(\"After clicking Radio button\");\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t \tsleep(3000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamage\"), getValue(\"BuildingDamageMfl1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtmeDamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtmeDamage\"), getValue(\"MEDamageMfl1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcontentdamage\"), getValue(\"ContentDamageMfl1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockdamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtstockdamage\"), getValue(\"StockDamageMfl1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherpddamage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtotherpddamage\"), getValue(\"OtherPDDamageMfl1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t }else{\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiopercentage\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtbuildingdamagepc\"), getValue(\"BuildingDamageMflPC1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtmedamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtmedamagepc\"), getValue(\"MEDamageMflPC1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcontentdamagepc\"), getValue(\"ContentDamageMflPC1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtstockdamagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtstockdamagepc\"), getValue(\"StockDamageMflPC1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtotherpddmagepc\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtotherpddmagepc\"), getValue(\"OtherPDDamageMflPC1\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \t\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t // click(locator_split(\"linkexpandbilossestimates\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t /* click(locator_split(\"linkaddroweml\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t click(locator_split(\"linkaddroweml\"));\r\n\t\t\t sleep(3000);*/\r\n\t\t\t \r\n\t\t\t selectListValue(locator_split(\"listbidowntime\"), getValue(\"BIDownTimeMfl1\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtbiaffected\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtbiaffected\"), getValue(\"BIAffectedMfl1\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t clearWebEdit(locator_split(\"txtbidowntime\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtbidowntime\"), getValue(\"BIDownTimeValueMfl1\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t // click(locator_split(\"linkexpandothertecobverage\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiovaluemfs\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txteeloss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txteeloss\"), getValue(\"EELossMfl\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverageloss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoverageloss\"), getValue(\"OtherTE1CoverageLossMfl\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage2loss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoverage2loss\"), getValue(\"OtherTE2CoverageLossMfl\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage3loss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoverage3loss\"), getValue(\"OtherTE3CoverageLossMfl\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtibiloss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtibiloss\"), getValue(\"IBILossMfl\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcbiloss\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtcbiloss\"), getValue(\"CBILossMfl\"));\r\n\t\t\t\t \r\n\t\t\t //if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t \t\r\n\t\t\t //}\r\n\t\t\t // click(locator_split(\"checklecompleted\"));\r\n\t\t\t// driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).click();\r\n\t\t\t \t\r\n\t\t\t }else{\r\n\t\t\t \t\r\n\t\t\t \tClickRadiobutton(locator_split(\"radiopercentagemfl\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txteelosspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txteelosspc\"), getValue(\"EELossMflPC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoveragelosspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoveragelosspc\"), getValue(\"OtherTE1CoverageLossMflPC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage2losspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoverage2losspc\"), getValue(\"OtherTE2CoverageLossMflPC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage3losspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtothertecoverage3losspc\"), getValue(\"OtherTE3CoverageLossMflPC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtibilosspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtibilosspc\"), getValue(\"IBILossMflPC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcbilosspc\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtcbilosspc\"), getValue(\"CBILossMfPC\"));\r\n\t\t\t }\r\n\t\t\t if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t\t\t driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t\t\tsleep(2000);\r\n\t\t\t\t }\r\n\t\t\t\tdriver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\tsleep(2000);\r\n\t\t\t // driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t //sendkeys(driver.findElement(By.xpath(\"//input[@name='USER']\")),\"jkdkd\");\r\n\t\t\t // sleep(2000);\r\n\t\t\t ///////////////MFL/////////////\r\n\t/////////////PML/////////////////////\r\n\t\t\t\t \r\n\t\t\t\t click(locator_split(\"tabpml\"));\r\n\t\t\t\t sleep(5000);\r\n\t\t\t\t // click(locator_split(\"linkexpandpdlossestimates\"));\r\n\t\t\t\t sleep(3000);\r\n\t\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t\t \tClickRadiobutton(locator_split(\"radiovalue\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tSystem.out.println(\"After clicking Radio button\");\r\n\t\t\t\t \tsleep(1000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t\t \tsleep(3000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tsendKeys(locator_split(\"txtbuildingdamage\"), getValue(\"BuildingDamageMfl1\"));\r\n\t\t\t\t \tsleep(1000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtmeDamage\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tsendKeys(locator_split(\"txtmeDamage\"), getValue(\"MEDamageMfl1\"));\r\n\t\t\t\t \tsleep(1000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamage\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tsendKeys(locator_split(\"txtcontentdamage\"), getValue(\"ContentDamageMfl1\"));\r\n\t\t\t\t \tsleep(1000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtstockdamage\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tsendKeys(locator_split(\"txtstockdamage\"), getValue(\"StockDamageMfl1\"));\r\n\t\t\t\t \tsleep(1000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtotherpddamage\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tsendKeys(locator_split(\"txtotherpddamage\"), getValue(\"OtherPDDamageMfl1\"));\r\n\t\t\t\t \tsleep(1000);\r\n\t\t\t\t \t\r\n\t\t\t\t }else{\r\n\t\t\t\t \tClickRadiobutton(locator_split(\"radiopercentage\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tsendKeys(locator_split(\"txtbuildingdamagepc\"), getValue(\"BuildingDamageMflPC1\"));\r\n\t\t\t\t \tsleep(1000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtmedamagepc\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tsendKeys(locator_split(\"txtmedamagepc\"), getValue(\"MEDamageMflPC1\"));\r\n\t\t\t\t \tsleep(1000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamagepc\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tsendKeys(locator_split(\"txtcontentdamagepc\"), getValue(\"ContentDamageMflPC1\"));\r\n\t\t\t\t \tsleep(1000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtstockdamagepc\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tsendKeys(locator_split(\"txtstockdamagepc\"), getValue(\"StockDamageMflPC1\"));\r\n\t\t\t\t \tsleep(1000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtotherpddmagepc\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tsendKeys(locator_split(\"txtotherpddmagepc\"), getValue(\"OtherPDDamageMflPC1\"));\r\n\t\t\t\t \tsleep(1000);\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 // click(locator_split(\"linkexpandbilossestimates\"));\r\n\t\t\t\t /* sleep(3000);\r\n\t\t\t\t click(locator_split(\"linkaddroweml\"));\r\n\t\t\t\t sleep(3000);\r\n\t\t\t\t click(locator_split(\"linkaddroweml\"));\r\n\t\t\t\t sleep(3000);*/\r\n\t\t\t\t sleep(3000);\r\n\t\t\t\t selectListValue(locator_split(\"listbidowntime\"), getValue(\"BIDownTimeMfl1\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t clearWebEdit(locator_split(\"txtbiaffected\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtbiaffected\"), getValue(\"BIAffectedMfl1\"));\r\n\t\t\t\t sleep(5000);\r\n\t\t\t\t clearWebEdit(locator_split(\"txtbidowntime\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t sendKeys(locator_split(\"txtbidowntime\"), getValue(\"BIDownTimeValueMfl1\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t // click(locator_split(\"linkexpandothertecobverage\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t\t \tSystem.out.println(\"Inside If Loop\");\r\n\t\t\t\t \t//ClickRadiobutton(locator_split(\"radiovaluepml\"));\r\n\t\t\t\t \tsleep(5000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txteeloss\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txteeloss\"), getValue(\"EELossMfl\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverageloss\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtothertecoverageloss\"), getValue(\"OtherTE1CoverageLossMfl\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage2loss\"));\r\n\t\t\t\t\t sleep(3000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtothertecoverage2loss\"), getValue(\"OtherTE2CoverageLossMfl\"));\r\n\t\t\t\t\t sleep(3000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage3loss\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtothertecoverage3loss\"), getValue(\"OtherTE3CoverageLossMfl\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtibiloss\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtibiloss\"), getValue(\"IBILossPML\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtcbiloss\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtcbiloss\"), getValue(\"CBILossPML\"));\r\n\t\t\t\t\t \r\n\t\t\t\t //if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t\t \t\r\n\t\t\t\t //}\r\n\t\t\t\t // click(locator_split(\"checklecompleted\"));\r\n\t\t\t\t// driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t \t\r\n\t\t\t\t }else{\r\n\t\t\t\t \t\r\n\t\t\t\t \tClickRadiobutton(locator_split(\"radiopercentage3\"));\r\n\t\t\t\t \tsleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txteelosspc\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txteelosspc\"), getValue(\"EELossPML1\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoveragelosspc\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtothertecoveragelosspc\"), getValue(\"OtherTE1CoverageLossPMLPC\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage2losspc\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtothertecoverage2losspc\"), getValue(\"OtherTE2CoverageLossPMLPC\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage3losspc\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtothertecoverage3losspc\"), getValue(\"OtherTE3CoverageLossPMLPC\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtibilosspc\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtibilosspc\"), getValue(\"IBILossPMLPC\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t \tclearWebEdit(locator_split(\"txtcbilosspc\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtcbilosspc\"), getValue(\"CBILossPMLPC\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t }\r\n\t\t\t\t if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t\t\t\t driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t\t\t\tsleep(2000);\r\n\t\t\t\t\t }\r\n\t\t\t\t\tdriver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t\tsleep(2000);\r\n\t\t\t\t // driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t //sendkeys(driver.findElement(By.xpath(\"//input[@name='USER']\")),\"jkdkd\");\r\n\t\t\t\t // sleep(2000);\r\n\t\t\t\t ///////////////PML/////////////\r\n\t\t\t\t //////////////NLE Manual////////////////\r\n\t\r\n\t\t\t\t\t \r\n\t\t\t\t\t click(locator_split(\"tabnlemanual\"));\r\n\t\t\t\t\t sleep(5000);\r\n\t\t\t\t\t // click(locator_split(\"linkexpandpdlossestimates\"));\r\n\t\t\t\t\t sleep(3000);\r\n\t\t\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t\t\t \tClickRadiobutton(locator_split(\"radiovalue\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tSystem.out.println(\"After clicking Radio button\");\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t\t\t \tsleep(3000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamage\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tsendKeys(locator_split(\"txtbuildingdamage\"), getValue(\"BuildingDamageNLE1\"));\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtmeDamage\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tsendKeys(locator_split(\"txtmeDamage\"), getValue(\"MEDamageNLE1\"));\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamage\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tsendKeys(locator_split(\"txtcontentdamage\"), getValue(\"ContentDamageNLE1\"));\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtstockdamage\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tsendKeys(locator_split(\"txtstockdamage\"), getValue(\"StockDamageNLE1\"));\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtotherpddamage\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tsendKeys(locator_split(\"txtotherpddamage\"), getValue(\"OtherPDDamageNLE1\"));\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \t\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t \tClickRadiobutton(locator_split(\"radiopercentage\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtbuildingdamagepc\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tsendKeys(locator_split(\"txtbuildingdamagepc\"), getValue(\"BuildingDamageNLEPC1\"));\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtmedamagepc\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tsendKeys(locator_split(\"txtmedamagepc\"), getValue(\"MEDamageNLEPC1\"));\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtcontentdamagepc\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tsendKeys(locator_split(\"txtcontentdamagepc\"), getValue(\"ContentDamageNLEPC1\"));\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtstockdamagepc\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tsendKeys(locator_split(\"txtstockdamagepc\"), getValue(\"StockDamageNLEPC1\"));\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtotherpddmagepc\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tsendKeys(locator_split(\"txtotherpddmagepc\"), getValue(\"OtherPDDamageNLEPC1\"));\r\n\t\t\t\t\t \tsleep(1000);\r\n\t\t\t\t\t \t\r\n\t\t\t\t\t }\r\n\t\t\t\t\t \r\n\t\t\t\t\t // click(locator_split(\"linkexpandbilossestimates\"));\r\n\t\t\t\t\t /* sleep(3000);\r\n\t\t\t\t\t click(locator_split(\"linkaddroweml\"));\r\n\t\t\t\t\t sleep(3000);\r\n\t\t\t\t\t click(locator_split(\"linkaddroweml\"));\r\n\t\t\t\t\t sleep(3000);*/\r\n\t\t\t\t\t sleep(3000);\r\n\t\t\t\t\t selectListValue(locator_split(\"listbidowntime\"), getValue(\"BIDownTimeNLE1\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t clearWebEdit(locator_split(\"txtbiaffected\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtbiaffected\"), getValue(\"BIAffectedNLE1\"));\r\n\t\t\t\t\t sleep(5000);\r\n\t\t\t\t\t clearWebEdit(locator_split(\"txtbidowntime\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtbidowntime\"), getValue(\"BIDownTimeValueNLE1\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t // click(locator_split(\"linkexpandothertecobverage\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t if (getValue(\"Radiobutton\").contains(\"Value\")){\r\n\t\t\t\t\t \tSystem.out.println(\"Inside If Loop\");\r\n\t\t\t\t\t \t//ClickRadiobutton(locator_split(\"radiovaluepml\"));\r\n\t\t\t\t\t \tsleep(5000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txteeloss\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txteeloss\"), getValue(\"EELossNLE\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverageloss\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtothertecoverageloss\"), getValue(\"OtherTE1CoverageLossNLE\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage2loss\"));\r\n\t\t\t\t\t\t sleep(3000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtothertecoverage2loss\"), getValue(\"OtherTE2CoverageLossNLE\"));\r\n\t\t\t\t\t\t sleep(3000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage3loss\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtothertecoverage3loss\"), getValue(\"OtherTE3CoverageLossNLE\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtibiloss\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtibiloss\"), getValue(\"IBILossNLE\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtcbiloss\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtcbiloss\"), getValue(\"CBILossNLE\"));\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t //if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t\t\t \t\r\n\t\t\t\t\t //}\r\n\t\t\t\t\t // click(locator_split(\"checklecompleted\"));\r\n\t\t\t\t\t// driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t\t \t\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t \t\r\n\t\t\t\t\t \tClickRadiobutton(locator_split(\"radiopercentagenlemanual\"));\r\n\t\t\t\t\t \tsleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txteelosspc\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txteelosspc\"), getValue(\"EELossNLEPC\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoveragelosspc\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtothertecoveragelosspc\"), getValue(\"OtherTE1CoverageLossNLEPC\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage2losspc\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtothertecoverage2losspc\"), getValue(\"OtherTE2CoverageLossNLEPC\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtothertecoverage3losspc\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtothertecoverage3losspc\"), getValue(\"OtherTE3CoverageLossNLEPC\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtibilosspc\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtibilosspc\"), getValue(\"IBILossNLEPC\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t \tclearWebEdit(locator_split(\"txtcbilosspc\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtcbilosspc\"), getValue(\"CBILossNLEPC\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t }\r\n\t\t\t\t\t // driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t\t if (driver.findElement(By.xpath(\".//*[@id='NLEScenarioComplete']\")).isSelected()== true ){\r\n\t\t\t\t\t\t driver.findElement(By.xpath(\"//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t\t\t\t sleep(2000); \r\n\t\t\t\t\t }\r\n\t\t\t\t\t driver.findElement(By.xpath(\"//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t\t\t sleep(2000); \r\n\t\t\t\t\t //sendkeys(driver.findElement(By.xpath(\"//input[@name='USER']\")),\"jkdkd\");\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t \r\n\t\t\t\t /////////////NLE Manual/////////////\r\n\t\t\t\t\t ////////////////////Remaining tabs/////////////\r\n\t\t\t\t\t \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t click(locator_split(\"tabnleprotected\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t if (driver.findElement(By.xpath(\".//*[@id='NLEScenarioComplete']\")).isSelected()== true ){\r\n\t\t\t\t\t\t\t driver.findElement(By.xpath(\"//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t driver.findElement(By.xpath(\"//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t \r\n\t\t\t\t\tclick(locator_split(\"tabnleprotectednonstorage\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t if (driver.findElement(By.xpath(\".//*[@id='NLEScenarioComplete']\")).isSelected()== true ){\r\n\t\t\t\t\t\t\t driver.findElement(By.xpath(\"//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t driver.findElement(By.xpath(\"//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t// driver.findElement(By.xpath(\".//*[@id='NLEScenarioComplete']\")).click();\r\n\t\t\t\t\t\tsleep(2000);\r\n\t\t\t\t\t\tclick(locator_split(\"tabnlesummary\"));\r\n\t\t\t\t\t//\tdriver.findElement(By.xpath(\"tabnlesummary\")).click();\r\n\t\t\t\t\t\tsleep(2000);\r\n\t\t\t\t\t\t if (driver.findElement(By.xpath(\".//*[@id='LECompletedFlag']\")).isSelected()== true ){\r\n\t\t\t\t\t\t\t driver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t\t\t\t\tsleep(2000);\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//input[@id='LECompletedFlag']\")).click();\r\n\t\t\t\t\t\tsleep(2000);\r\n\t\t\t\t\t\t if (driver.findElement(By.xpath(\".//*[@id='SectionCompleted']\")).isSelected()== true ){\r\n\t\t\t\t\t\t\t driver.findElement(By.xpath(\"//input[@id='SectionCompleted']\")).click();\r\n\t\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//input[@id='SectionCompleted']\")).click();\r\n\t\t\t\t\t\tsleep(2000);\r\n\t\t\t\t\t ///////////////Remaining tabs///////////////\r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t}\r\n////////////\r\n\t\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Report tab is clicked and user is logged in\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Report tab is not clicked in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\t\r\n\t\t\r\n\t\tString key=\"webdriver.gecko.driver\";\r\n\t\tString value=\".\\\\Drivers\\\\geckodriver.exe\";\r\n\t\tSystem.setProperty(key, value);\r\n\t\t\r\n\t\tWebDriver driver =new FirefoxDriver();\r\n\t\t\r\n\t\tdriver.get(\"https://www.irctc.co.in/eticketing/loginHome.jsf\");\r\n\t\tThread.sleep(1000);\r\n\t\t\r\n\t\tWebElement button=driver.findElement(By.id(\"loginbutton\"));\r\n\t\tbutton.click();\r\n\t\t\r\n\t\tAlert alert=driver.switchTo().alert();\r\n\t\tString strText=alert.getText();\r\n\t\tSystem.out.println(\"javascript popup text:-\"+strText);\r\n\t\tThread.sleep(1000);\r\n\t\talert.accept();\r\n\t\t\r\n\t\tdriver.close();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "@Test\r\n public void Test3() throws InterruptedException {\n driver.navigate().to(\"http://webstrar99.fulton.asu.edu/page2/\");\r\n driver.findElement(By.id(\"number1\")).sendKeys(\"10\");\r\n driver.findElement(By.id(\"number2\")).sendKeys(\"5\");\r\n driver.findElement(By.id(\"mul\")).click();\r\n driver.findElement(By.id(\"calc\")).click();\r\n Assert.assertEquals(\"50\", driver.findElement(By.id(\"res\")).getText());\r\n driver.quit();\r\n }", "@Test\r\n public void Test2() throws InterruptedException {\n driver.navigate().to(\"http://webstrar99.fulton.asu.edu/page2/\");\r\n driver.findElement(By.id(\"number1\")).sendKeys(\"10\");\r\n driver.findElement(By.id(\"number2\")).sendKeys(\"5\");\r\n driver.findElement(By.id(\"sub\")).click();\r\n driver.findElement(By.id(\"calc\")).click();\r\n Assert.assertEquals(\"5\", driver.findElement(By.id(\"res\")).getText());\r\n driver.quit();\r\n }", "@Test\n public void alerts () throws Exception\n {\n JavascriptExecutor js = (JavascriptExecutor) driver;\n\n //ACEPTAR ALERTA\n js.executeScript(\"alert('Saludos pal Amigo Raul');\");\n wait = new WebDriverWait(driver, 2);\n wait.until(ExpectedConditions.alertIsPresent());\n utils.Loading(driver, 300);\n /*driver.switchTo().alert().accept();\n utils.Loading(driver, 300);*/\n\n //DISMIS ALERTA --> LO QUE HACE ESTA FUNCION ES CANCELAR LAS ALERTAS,se cumple cuando se tiene un botón cancelar,diferentes a positivo\n String Alert = driver.switchTo().alert().getText();\n System.out.println(\"El texto es\" + Alert);\n driver.switchTo().alert().dismiss();\n }", "public static void main(String[] args) throws InterruptedException{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver\\\\chromedriver.exe\");\r\n\t\tChromeDriver driver = new ChromeDriver();\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n//\t\tdriver.get(\"http://demo.guru99.com/test/newtours/\");\r\n//\t\tWebElement link_home = driver.findElement(By.linkText(\"Home\"));\r\n//\t\tWebElement td_home = driver.findElement(By.xpath(\"//html/body/div/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr\"));\r\n//\t\tActions builder = new Actions(driver);\r\n//\t\tAction mouseOverHome = builder.moveToElement(link_home).build();\r\n//\t\tThread.sleep(2000);\r\n//\t\tString bg_color = td_home.getCssValue(\"background-color\");\r\n//\t\tSystem.out.println(\"Before: \"+bg_color);\r\n//\t\tmouseOverHome.perform();\r\n//\t\tThread.sleep(2000);\r\n//\t\tbg_color = td_home.getCssValue(\"background-color\");\r\n//\t\tSystem.out.println(\"After: \"+bg_color);\r\n//\t\tdriver.close();\r\n\t\t\r\n\t\t//2nd Program for Multiple actions\r\n\t\tdriver.get(\"https://www.facebook.com\");\r\n\t\tWebElement txtUserName = driver.findElement(By.name(\"email\"));\r\n\t\tActions builder = new Actions(driver);\r\n\t\tAction seriesOfActions = builder.moveToElement(txtUserName)\r\n\t\t\t\t .click()\r\n\t\t\t\t .keyDown(txtUserName, Keys.SHIFT)\r\n\t\t\t\t .sendKeys(txtUserName, \"hello\")\r\n\t\t\t\t .keyUp(txtUserName, Keys.SHIFT)\r\n\t\t\t\t .doubleClick()\t\t\r\n\t\t\t\t .contextClick()\r\n\t\t\t\t .build();\r\n\t\tseriesOfActions.perform();\r\n\t\tThread.sleep(2000);\r\n\t\tdriver.close();\r\n\t}", "@Test(priority = 4)\r\n\tpublic void PDPPage_TabsDIsplay() throws Exception\r\n\t{\r\n\t\tthis.driver=driver;\r\n Click_Action.Btn_Click(PageObjectModal.WISE_PDPPage_Page.PDP_TroubleShoot_CSS, 7, 6,\"CSS\");\r\n \r\n //Thread.sleep(1000);\r\n AssertCls.AssertText(PageObjectModal.WISE_PDPPage_Page.PDP_TroubleShootTitle_CSS, 7, 6, 7, 5,\"CSS\");\r\n\r\n Click_Action.Btn_Click(PageObjectModal.WISE_PDPPage_Page.PDP_HowTo_CSS, 8, 6,\"CSS\");\r\n \r\n Thread.sleep(1000);\r\n AssertCls.AssertText(PageObjectModal.WISE_PDPPage_Page.PDP_HowToTitle_CSS, 8, 6, 8, 5,\"CSS\");\r\nClick_Action.Btn_Click(PageObjectModal.WISE_PDPPage_Page.PDP_ProdInfo_CSS, 9, 6,\"CSS\");\r\n \r\n Thread.sleep(1000);\r\n AssertCls.AssertText(PageObjectModal.WISE_PDPPage_Page.PDP_ProdInfoTitle_CSS, 9, 6, 9, 5,\"CSS\");\r\n /*\r\n //**\r\n Set<String> AllWindowHandles = driver.getWindowHandles();\r\n String window1 = (String) AllWindowHandles.toArray()[0];\r\n System.out.print(\"window1 handle code = \"+AllWindowHandles.toArray()[0]);\r\n String window2 = (String) AllWindowHandles.toArray()[1];\r\n System.out.print(\"\\nwindow2 handle code = \"+AllWindowHandles.toArray()[1]);\r\n driver.switchTo().window(window2);\r\n \r\n //**\r\n */\r\n \r\n // driver.close();\r\n //driver.switchTo().window(window1);\r\n //driver.close();\r\n\t\t\r\n\t\t\t\t\r\n\t}", "public void Hazards(){\r\n\t\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*driver.switchTo().defaultContent();\r\n\t\t\t\t\tsleep(3000);\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget2Ifr\"));\r\n\t\t\t click(locator_split(\"tabLocationAssesment\"));\r\n\t\t\t click(locator_split(\"linkclickLocation\"));*/\r\n\t\t\t // driver.findElement(By.xpath(\"//*[@tabindex='4']/a/span\")).click();\r\n\t\t\t // driver.findElement(By.xpath(\"//a[@title='Click here to open Location Assessment']\")).click();\r\n\t\t\tsleep(5000);\r\n\t\t\t driver.switchTo().defaultContent();\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget3Ifr\"));\r\n\t\t\t click(locator_split(\"tabhazards\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"btnaddrowhazards\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t Robot r1=new Robot();\r\n\t\t\t\t // r.keyPress(java.awt.event.KeyEvent.);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t // Press Enter\r\n\t\t\t\t r1.keyPress(java.awt.event.KeyEvent.VK_ENTER);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t sleep(5000);\r\n\t\t\t \t\r\n\t\t\t\t selectListValue(locator_split(\"listhazardsmaintype\"), getValue(\"HazardsMainType\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \r\n\t\t\t selectListValue(locator_split(\"listhazardtype\"), getValue(\"HazardsType\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t if(getValue(\"HazardsType\").equals(\"Storage\")){\r\n\t\t\t \t\r\n\t\t\t \tclearWebEdit(locator_split(\"txtcustomhazardtype\"));\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tsendKeys(locator_split(\"txtcustomhazardtype\"), getValue(\"CustomHazardType\"));\r\n\t\t\t \t\r\n\t\t\t\t sleep(2000);\r\n\t\t\t \t\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t selectListValue(locator_split(\"lsthazardcategory\"), getValue(\"HazardCategory\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txthazardareasize\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txthazardareasize\"), getValue(\"HazardAreaSize\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"lsthazardclass\"), getValue(\"HazardClass\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtspecificlocationname\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtspecificlocationname\"), getValue(\"SpecificLocationName\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t selectListValue(locator_split(\"lstdeficiencies\"), getValue(\"Deficiencies\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t clearWebEdit(locator_split(\"txtareadeficienciesdescription\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtareadeficienciesdescription\"), getValue(\"DeficienciesDescription\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t if (getValue(\"HazardsMainType\").equals(\"Storage\")){\r\n\t\t\t \t clearWebEdit(locator_split(\"txtstorageheight\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t sendKeys(locator_split(\"txtstorageheight\"), getValue(\"StorageHeight\"));\r\n\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\tclearWebEdit(locator_split(\"txtceilingheight\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t sendKeys(locator_split(\"txtceilingheight\"), getValue(\"CeilingHeight\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\tselectListValue(locator_split(\"lstpredominantclass\"), getValue(\"PredominantClass\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t selectListValue(locator_split(\"lststoragearrangement\"), getValue(\"StorageArrangement\"));\r\n\t\t\t\t\t\t sleep(2000);\r\n\t\t\t\t\t\t \r\n\t\t\t }\r\n\t\t\t sleep(2000);\r\n\t\t\t \t\t\t click(locator_split(\"btnuploadphotos\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t \r\n \t\t\t \r\n\t\t\t sendKeys(locator_split(\"txtphotocaption\"), getValue(\"PhotoCaption\"));\r\n\t\t\t \r\n\t\t\t sleep(3000);\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t click(locator_split(\"btnbrowse\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t Runtime.getRuntime().exec(\"D:\\\\Grasp\\\\AutoIT\\\\UploadFile.exe\");\r\n\t\t\t // click(locator_split(\"btnbrowse\"));\r\n\t\t\t /* StringSelection sel = new StringSelection(\"C:\\\\Users\\\\Public\\\\Pictures\\\\Sample Pictures\\\\Penguins.jpg\");\r\n\t\t\t Toolkit.getDefaultToolkit().getSystemClipboard().setContents(sel,null);\r\n\t\t\t System.out.println(\"selection\" +sel);\r\n\t\t\t \r\n\t\t\t sleep(2000);\r\n\t\t\t Robot r=new Robot();\r\n\t\t\t\t // r.keyPress(java.awt.event.KeyEvent.);\r\n\t\t\t\t sleep(3000);\r\n\t\t\t\t // Press Enter\r\n\t\t\t\t r.keyPress(java.awt.event.KeyEvent.VK_ENTER);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t // Release Enter\r\n\t\t\t\t r.keyRelease(java.awt.event.KeyEvent.VK_ENTER);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t // Press CTRL+V\r\n\t\t\t\t r.keyRelease(java.awt.event.KeyEvent.VK_CONTROL);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t //r.keyPress(KeyEvent.VK_CONTROL);\r\n\t\t\t\t r.keyRelease(java.awt.event.KeyEvent.VK_V);\r\n\t\t\t\t //r.keyPress(KeyEvent.VK_V);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t // Release CTRL+V\r\n\t\t\t\t r.keyRelease(java.awt.event.KeyEvent.VK_CONTROL);\r\n\t\t\t\t sleep(1000);\r\n\t\t\t\t// r.keyRelease(KeyEvent.VK_CONTROL);\r\n\t\t\t\t r.keyRelease(java.awt.event.KeyEvent.VK_V);\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t r.keyPress(java.awt.event.KeyEvent.VK_TAB);\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t r.keyPress(java.awt.event.KeyEvent.VK_TAB);\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t r.keyPress(java.awt.event.KeyEvent.VK_ENTER);\r\n\t\t\t\t sleep(2000);*/\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t\r\n\t\t\t sleep(10000);\r\n\t\t\tclick(locator_split(\"btnsavebrowse\"));\r\n\t\t\t sleep(4000);\r\n\t\t\t click(locator_split(\"btnclose\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t\t//clickbylinktext(\"No\");\r\n\t\t\t click(locator_split(\"btnhazardclose\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t if (driver.findElement(By.xpath(\"//input[contains(@class,'checkbox chkBxCtl')]\")).isSelected()== true ){\r\n\t\t\t\t System.out.println(\"inside if loop\");\r\n\t\t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t System.out.println(\"checkbox not checked\");\r\n\t\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"inputcheckhazard\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t sleep(3000);\r\n\t\t\t\r\n\t\t//switchframe(\"PegaGadget2Ifr\");\r\n\t\t//\tsleep(3000);\r\n\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Report tab is clicked and user is logged in\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Report tab is not clicked in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void rightClick(){\n\n driver.get(\"https://the-internet.herokuapp.com/context_menu\");\n// 3- Cizili alan uzerinde sag click yapalim\n // a - ilk once action objesi olusturur\n Actions act = new Actions(driver);\n // b - mouse action yapacagim web elementini locate edilir\n WebElement stripedBox = driver.findElement(By.id(\"hot-spot\"));\n // c - actions objesi ve locate ettigimiz webelementini kullanarak istedigimiz islemi yapalim\n act.contextClick(stripedBox).perform();\n\n// 4- Alert’te cikan yazinin “You selected a context menu” oldugunu test edelim.\n String alertText =driver.switchTo().alert().getText();\n String expectedText = \"You selected a context menu\";\n Assert.assertEquals(alertText,expectedText);\n\n// 5- Tamam diyerek alert’I kapatalim\n driver.switchTo().alert().accept();\n\n\n// 6- Elemental Selenium linkine tiklayalim\n\n String firstHandle = driver.getWindowHandle();\n\n WebElement selenium = driver.findElement(By.xpath(\"//a[text()='Elemental Selenium']\"));\n\n act.click(selenium).perform();\n\n\n\n// 7- Acilan sayfada h1 taginda “Elemental Selenium” yazdigini test edelim\n\n Set<String> windowHandles = driver.getWindowHandles();\n System.out.println(firstHandle);\n\n String secondHandle =\"\";\n for(String each : windowHandles){\n if(!firstHandle.equals(each)){\n secondHandle=each;\n }\n }\n driver.switchTo().window(secondHandle);\n WebElement h1 = driver.findElement(By.tagName(\"h1\"));\n String actual = h1.getText();\n String expected = \"Elemental Selenium\";\n\n WebElement seleniumText = driver.findElement(By.xpath(\"//h1[text()='Elemental Selenium']\"));\n act.moveToElement(seleniumText).perform();\n\n Assert.assertEquals(actual,expected);\n\n }", "SeleniumComponent parent();", "public static void main(String[] args) {\n\t\t\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"E:/Selenium 5th batch/geckodriver-v0.18.0-win64/geckodriver.exe\");\n\t\tWebDriver driver = new FirefoxDriver ();\n\t\t\n//\t\tfor loading the site and trying to login\n\t\tdriver.get(\"http://newtours.demoaut.com/\");\n\t\tdriver.findElement (By.xpath(\"html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[2]/td[3]/form/table/tbody/tr[4]/td/table/tbody/tr[2]/td[2]/input\")).sendKeys(\"demo\");\n\t\tdriver.findElement(By.xpath(\"html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[2]/td[3]/form/table/tbody/tr[4]/td/table/tbody/tr[3]/td[2]/input\")).sendKeys(\"demo\");\n\t\tdriver.findElement(By.xpath(\"html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[2]/td[3]/form/table/tbody/tr[4]/td/table/tbody/tr[4]/td[2]/div/input\")).submit();\n\t\t\n//\t\timplicit wait should be applied before the next page loads. or any mouse hover menu, or any time consuming content loading.\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n//\t\t----------------------------- Second page---------------------\n//\t\tType\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table/tbody/tr[2]/td[2]/b/font/input[2]\")).click();\n\t\t\n//\t\tfor static dropdowns : passenger\n\t\t/*Select dd1 = new Select(driver.findElement(By.name(\"passCount\")));\n\t\tdd1.selectByIndex(0);\n\t\tdd1.selectByIndex(1);\n\t\tdd1.selectByIndex(2);\n\t\tdd1.selectByIndex(3);\n\t\t\n//\t\tdropdowns: departing from \n\t\tSelect dd2 = new Select(driver.findElement(By.name(\"fromPort\")));\n\t\tdd2.selectByIndex(0);\n\t\tdd2.selectByIndex(1);\n\t\tdd2.selectByIndex(2);\n\t\tdd2.selectByIndex(3);\n\t\tdd2.selectByIndex(4);\n\t\tdd2.selectByIndex(5);\n\t\tdd2.selectByIndex(6);\n\t\tdd2.selectByIndex(7);\n\t\tdd2.selectByIndex(8);\n\t\tdd2.selectByIndex(9);\n\t\t\n//\t\tDropdowns date month\n\t\tSelect dd3 = new Select (driver.findElement(By.name(\"fromMonth\")));\n\t\tdd3.selectByIndex(0);\n\t\tdd3.selectByIndex(1);\n\t\tdd3.selectByIndex(2);\n\t\tdd3.selectByIndex(3);\n\t\tdd3.selectByIndex(4);\n\t\tdd3.selectByIndex(5);\n\t\tdd3.selectByIndex(6);\n\t\tdd3.selectByIndex(7);\n\t\tdd3.selectByIndex(8);\n\t\tdd3.selectByIndex(9);\n\t\tdd3.selectByIndex(10);\n\t\tdd3.selectByIndex(11); */\n\t\t\n//\t\tday\n\t\t/*Select dd4 = new Select (driver.findElement(By.name(\"fromDay\")));\n\t\tdd4.selectByIndex(0);\n\t\tdd4.selectByIndex(1);\n\t\tdd4.selectByIndex(2);\n\t\tdd4.selectByIndex(3);\n\t\tdd4.selectByIndex(4);\n\t\tdd4.selectByIndex(5);\n\t\tdd4.selectByIndex(6);\n\t\tdd4.selectByIndex(7);\n\t\tdd4.selectByIndex(8);\n\t\tdd4.selectByIndex(9);\n\t\tdd4.selectByIndex(10);\n\t\tdd4.selectByIndex(11);\n\t\tdd4.selectByIndex(12);\n\t\tdd4.selectByIndex(13);\n\t\tdd4.selectByIndex(14);\n\t\tdd4.selectByIndex(15);\n\t\tdd4.selectByIndex(16);\n\t\tdd4.selectByIndex(17);\n\t\tdd4.selectByIndex(18);\n\t\tdd4.selectByIndex(19);\n\t\tdd4.selectByIndex(20);\n\t\tdd4.selectByIndex(21);\n\t\tdd4.selectByIndex(22);\n\t\tdd4.selectByIndex(23);\n\t\tdd4.selectByIndex(24);\n\t\tdd4.selectByIndex(25);\n\t\tdd4.selectByIndex(26);\n\t\tdd4.selectByIndex(27);\n\t\tdd4.selectByIndex(28);\n\t\tdd4.selectByIndex(29);\n\t\tdd4.selectByIndex(30);\n\t\tdd4.selectByIndex(31);*/\n\t\t\n//\t\tdeparting from\n\t\t/*Select dd5 = new Select(driver.findElement(By.name(\"toPort\")));\n\t\tdd5.selectByIndex(0);\n\t\tdd5.selectByIndex(1);\n\t\tdd5.selectByIndex(2);\n\t\tdd5.selectByIndex(3);\n\t\tdd5.selectByIndex(4);\n\t\tdd5.selectByIndex(5);\n\t\tdd5.selectByIndex(6);\n\t\tdd5.selectByIndex(7);\n\t\tdd5.selectByIndex(8);\n\t\tdd5.selectByIndex(9);*/\n\t\t\n//\t\treturning month\n\t\t/*Select dd6 = new Select (driver.findElement(By.name(\"toMonth\")));\n\t\tdd6.selectByIndex(0);\n\t\tdd6.selectByIndex(1);\n\t\tdd6.selectByIndex(2);\n\t\tdd6.selectByIndex(3);\n\t\tdd6.selectByIndex(4);\n\t\tdd6.selectByIndex(5);\n\t\tdd6.selectByIndex(6);\n\t\tdd6.selectByIndex(7);\n\t\tdd6.selectByIndex(8);\n\t\tdd6.selectByIndex(9);\n\t\tdd6.selectByIndex(10);\n\t\tdd6.selectByIndex(11);\n//\t\tretuning day\n\t\tSelect dd7 = new Select (driver.findElement(By.name(\"toDay\")));\n\t\tdd7.selectByIndex(0);\n\t\tdd7.selectByIndex(1);\n\t\tdd7.selectByIndex(2);\n\t\tdd7.selectByIndex(3);\n\t\tdd7.selectByIndex(4);\n\t\tdd7.selectByIndex(5);\n\t\tdd7.selectByIndex(6);\n\t\tdd7.selectByIndex(7);\n\t\tdd7.selectByIndex(8);\n\t\tdd7.selectByIndex(9);\n\t\tdd7.selectByIndex(10);\n\t\tdd7.selectByIndex(11);\n\t\tdd7.selectByIndex(12);\n\t\tdd7.selectByIndex(13);\n\t\tdd7.selectByIndex(14);\n\t\tdd7.selectByIndex(15);\n\t\tdd7.selectByIndex(16);\n\t\tdd7.selectByIndex(17);\n\t\tdd7.selectByIndex(18);\n\t\tdd7.selectByIndex(19);\n\t\tdd7.selectByIndex(20);\n\t\tdd7.selectByIndex(21);\n\t\tdd7.selectByIndex(22);\n\t\tdd7.selectByIndex(23);\n\t\tdd7.selectByIndex(24);\n\t\tdd7.selectByIndex(25);\n\t\tdd7.selectByIndex(26);\n\t\tdd7.selectByIndex(27);\n\t\tdd7.selectByIndex(28);\n\t\tdd7.selectByIndex(29);\n\t\tdd7.selectByIndex(30);\n\t\tdd7.selectByIndex(31);*/\n\t\t\n\t\t\n//\t\tservice class\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table/tbody/tr[9]/td[2]/font/font/input[1]\")).click();\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table/tbody/tr[9]/td[2]/font/font/input[2]\")).click();\n\n//\t\tairline\n\t\tSelect dd8 = new Select (driver.findElement(By.name(\"airline\")));\n\t\tdd8.selectByIndex(0);\n\t\tdd8.selectByIndex(1);\n\t\tdd8.selectByIndex(2);\n\t\tdd8.selectByIndex(3);\n\t\t\n//\t\tcontinuebutton\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table/tbody/tr[14]/td/input\")).submit();\n\t\t\n\t\t\n//\t\t----------------------------------------------------- Third page --------------------------------------\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n//\t\tupper radios\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table[1]/tbody/tr[5]/td[1]/input\")).click();\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table[1]/tbody/tr[7]/td[1]/input\")).click();\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table[1]/tbody/tr[9]/td[1]/input\")).click();\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table[1]/tbody/tr[3]/td[1]/input\")).click();\n\t\t\n//\t\treturnflights\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table[2]/tbody/tr[5]/td[1]/input\")).click();\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table[2]/tbody/tr[7]/td[1]/input\")).click();\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table[2]/tbody/tr[9]/td[1]/input\")).click();\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table[2]/tbody/tr[3]/td[1]/input\")).click();\n\t\t\n//\t\tcontinuebutton\n\t\tdriver.findElement(By.xpath(\"html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/p/input\")).submit();\n\t}", "public static void datePicker(WebDriver driver, String locatorValue, String date)\r\n{\r\n\t((JavascriptExecutor)driver).executeScript(\"document.getElementById('\"+locatorValue+\"').value='\"+date+\"'\");\r\n}", "public static void main(String[] args) throws InterruptedException {\nWebDriver driver=new FirefoxDriver();\ndriver.get(\"file:/// C:/Users/viprava/Desktop/sample1.html\");\n//driver.findElement(By.id(\"/n\")).click();\n//Thread.sleep(2000);\n//driver.navigate().back();\nThread.sleep(2000);\ndriver.findElement(By.name(\"uname\")).click();\nThread.sleep(2000);\ndriver.navigate().back();\nThread.sleep(2000);\ndriver.findElement(By.className(\"abc\")).click();\nThread.sleep(2000);\ndriver.navigate().back();\nThread.sleep(2000);\ndriver.close();\n\t}", "public interface TestPage<D> {\r\n\tpublic TestPage<D> getParent();\r\n\r\n\tpublic PageLocator getPageLocator();\r\n\r\n\t/***\r\n\t * This method check for existence of page in browser so we can proceed\r\n\t * further with page functionality.\r\n\t * \r\n\t * @param args\r\n\t * optional arguments required to identify page.\r\n\t * @return\r\n\t */\r\n\tpublic boolean isPageActive(PageLocator loc, Object... args);\r\n\r\n\t/**\r\n\t * selenium base instance to provide selenium\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic UiTestBase<D> getTestBase();\r\n\r\n\t/**\r\n\t * Returns the body text of the current page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getText();\r\n\r\n\t/**\r\n\t * Use only launchPage method to load a page. For more usability you can\r\n\t * overload this method in your page class but make sure to call this method\r\n\t * within it to load page. eg:\r\n\t * \r\n\t * <pre>\r\n\t * <code>\r\n\t * void launchPage(){\r\n\t * \t\tlaunchPage(null)\r\n\t * }\r\n\t * OR\r\n\t * void launchPage(String locator){\r\n\t * \t\tlaunchPage(new DefaultPageLocator(locator));\r\n\t * }\r\n\t * </code>\r\n\t * </pre>\r\n\t * \r\n\t * @param locator\r\n\t * to locate page on parent page.\r\n\t * <p>\r\n\t * This locator will be passed to other fw methods for example\r\n\t * {@link #isPageActive(PageLocator, Object...)}\r\n\t * @param args\r\n\t * optional page identifiers to verify is this page for what we\r\n\t * aspect? for example: view details page for specific user or\r\n\t * item, you can identify page by user or item id/name\r\n\t * <p>\r\n\t * This args will be passed to other fw methods for example\r\n\t * {@link #isPageActive(PageLocator, Object...)}\r\n\t */\r\n\tpublic void launchPage(PageLocator locator, Object... args);\r\n\r\n\t/**\r\n\t * You can specify launch behavior before launching the page by calling this\r\n\t * method.\r\n\t * \r\n\t * @param strategy\r\n\t * launch strategy.\r\n\t */\r\n\tpublic void setLaunchStrategy(LaunchStrategy strategy);\r\n\r\n\tpublic enum LaunchStrategy {\r\n\t\t/**\r\n\t\t * To specify that even if the page is active, launch page form the\r\n\t\t * parent page.\r\n\t\t */\r\n\t\talwaysRelaunchFromParent,\r\n\t\t/**\r\n\t\t * To specify that even if the page or its parent page is active, launch\r\n\t\t * form the root by navigating entire hierarchy.\r\n\t\t */\r\n\t\talwaysRelaunchFromRoot,\r\n\t\t/**\r\n\t\t * To specify that launch the page if it is not active.\r\n\t\t */\r\n\t\tonlyIfRequired;\r\n\t}\r\n\r\n}", "@Override\r\n public void afterScript(final String arg0, final WebDriver arg1) {\n\r\n }", "@Test\n public void test1() {\n FirefoxBinary binary =\n new FirefoxBinary(new File(FIREFOX_PATH));\n driver = TestBench.createDriver(\n new FirefoxDriver(binary, new FirefoxProfile()));\n setDriver(driver);\n getDriver().get(URL);\n ButtonElement button = $(ButtonElement.class).first();\n button.click();\n LabelElement label = $(LabelElement.class).id(\"result\");\n\n Assert.assertEquals(\"Thanks , it works!\",label.getText());\n driver.quit();\n }", "public void testSingleBrowserMultiScript() {\n\t\t// Create a SingleBrowserMultiScriptHelper object. A new object should be created for a full set\n\t\t// of openBrowser, executeScript, executeScript, executeScript..., killBrowser calls.\n\t\tSingleBrowserMultiScriptHelper helper = new SingleBrowserMultiScriptHelper(sahiHost, sahiPort, browserType);\n\t\tboolean opened = false;\n\n\t\ttry {\n\t\t\t// Logging default script execution timeout.\n\t\t\tSystem.out.println(helper.getScriptExecutionTimeout());\n\n\t\t\t// Set the script execution timeout to 15 minutes. This applies for each script.\n\t\t\t// Depending on the duration of your scripts, adjust this time accordingly.\n\t\t\thelper.setScriptExecutionTimeout(15*60*1000); // 15 minutes\n\n\t\t\t// Log debug messages\n\t\t\thelper.setLogDebugMessages(true);\n\n\t\t\t// Launch the browser with a start url\n\t\t\topened = helper.launchBrowser(\"http://sahi.co.in/demo/\");\n\n\t\t\tif (!opened) {\n\t\t\t\tSystem.out.println(\"Failed to launch browser correctly. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Browser opened\");\n\n\t\t\t// Execute the script\n\t\t\tboolean success = helper.executeScript(userDataScriptsFolder, \"demo/clickCombo.sah\");\n\n\t\t\t// NOTE: If script fails, you may decide whether to move ahead or not depending upon the flow.\n\t\t\tif (!success) {\n\t\t\t\tSystem.out.println(\"Script 1 failed. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Script1 success\");\n\n\t\t\t// Randomly doing something between two scripts\n\t\t\tdoSomethingElse();\n\n\t\t\t// Execute the second script\n\t\t\tsuccess = helper.executeScript(userDataScriptsFolder, \"demo/clicksTest.sah\");\n\n\t\t\tif (!success) {\n\t\t\t\tSystem.out.println(\"Script 2 failed. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Script2 success\");\n\n\t\t\tdoSomethingElse();\n\n\t\t\t// Execute the third script, by passing in parameters.\n\t\t\tMap<String, String> inputParams = new HashMap<String, String>();\n\t\t\tinputParams.put(\"user\", \"test\");\n\t\t\tinputParams.put(\"password\", \"secret\");\t\t\t\n\t\t\tsuccess = helper.executeScript(userDataScriptsFolder, \"demo/sampleapp_with_params.sah\", inputParams);\n\n\t\t\tif (!success) {\n\t\t\t\tSystem.out.println(\"Script 3 failed. Tests will not proceed\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Script3 success\");\n\t\t}\n\t\tfinally {\n\t\t\tif (opened) {\n\t\t\t\t// Kill the browser.\n\t\t\t\thelper.killBrowser();\n\t\t\t}\n\t\t}\t\n\t}", "@Test(priority = 4)\n\tpublic void select() throws InterruptedException {\n\t\tThread.sleep(800);\t\t\n\t\tWebElement click = driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div/div/div/ul/li[2]/a\"));\n\t\tclick.click();\n\t\tSystem.out.println(click.getText());\n\n\t\tWebElement item = driver.findElement(By.xpath(\"/html/body/div[2]/div/div/div/div/div/div/div[11]/div/div[2]/div/div/div[1]/div\"));\n\t\titem.click();\n\t\tThread.sleep(800);\n\t\t\n\t\tWebElement data = driver.findElement(By.xpath(\"/html/body/div[2]/div/div/div/div/div/div/div[12]/div/div/div[2]/div[2]\"));\n\t\tdata.click(); \n\t\tSystem.out.println(data.getText());\n\t\t\n\t\tThread.sleep(1000);\n\t\tWebElement expandsize = driver.findElement(By.id(\"headingOne265\"));\n\t\texpandsize.click();\n\t\n\t\tThread.sleep(2000);\n\t\tWebElement expandextra = driver.findElement(By.id(\"heading265\"));\n\t\texpandextra.click();\n\t\t\n\t\tThread.sleep(2000);\n\t\tWebElement closeitem = driver.findElement(By.xpath(\"/html/body/div[2]/div/div/div/div/div/div/div[12]/div/div/div[1]/button\"));\n\t\tcloseitem.click();\n\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\tjs.executeScript(\"window.scrollBy(0,-800)\");\n\n\t\t// *********** changing the language of digital menu ***********\n\n\t\tWebElement restaurantlanguage = driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div/div/div/div[1]/a\"));\n\t\trestaurantlanguage.click();\n\t\tThread.sleep(800);\n\t\tclosedialog();\n\t\tThread.sleep(1000);\n\t\tjs.executeScript(\"window.scrollBy(0,1500)\");\n\n\t\t// *********** downloading the App ***********\n\n/**\t\tThread.sleep(800);\n\t\tWebElement downloadapp = driver.findElement(By.xpath(\"/html/body/div[3]/div[1]/div/section/div/div[4]/a[2]/img\"));\n\t\tdownloadapp.click();\n**/\n\n\t}", "private static WebDriver launchDriver(WebDriver driver)\n\t{\n\t\tswitch (getBrowserType())\n\t\t{\n\t\t\tcase InternetExplorer:\n\t\t\t{\n\t\t\t\tdriver = launchInternetExplorer();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase Chrome:\n\t\t\t{\n\t\t\t\tdriver = launchChrome();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdefault:\n\t\t\t{\n\t\t\t\tdriver = launchFirefox();\n\t\t\t\tbreak;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(getImplicitWaitTime(), TimeUnit.SECONDS);\n\t\twaitPageLoad = new WebDriverWait(driver, getPageLoadWaitTime());\n\t\twaitAjaxLoad = new WebDriverWait(driver, getAjaxLoadWaitTime());\n\t\tjavaScriptExecutor = (JavascriptExecutor) driver;\n\t\t\n\t\treturn driver;\n\t}", "public WebDriver login() {\r\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n //System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\phantomjs.exe\");\r\n String URL = \"http://Admin:admin@192.168.1.63:8080/phenotips123/bin/loginsubmit/XWiki/XWikiLogin/\";\r\n ChromeOptions options = new ChromeOptions();\r\n options.addArguments(\"window-size=1024,768\");\r\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\r\n WebDriver driver = new ChromeDriver(capabilities);\r\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n //WebDriver driver = new PhantomJS();\r\n driver.get(URL);\r\n driver.findElement(By.id(\"j_username\")).sendKeys(\"Admin\");\r\n driver.findElement(By.id(\"j_password\")).sendKeys(\"admin\");\r\n driver.findElement(By.className(\"button\")).click();\r\n return driver;\r\n }", "ScriptEvaluator createScriptEvaluator();", "@Override\r\npublic void afterScript(String arg0, WebDriver arg1) {\n\tSystem.out.println(\"as\");\r\n}", "public boolean jsClick(By locator){\n \tboolean isClicked = false;\n \tfor(int attempt=0;attempt<3;attempt++) {\n \ttry {\n \t\tif(!isClicked) {\n \t\t//waitForElementClickable(locator);\n \t\t\twaitForElementPresent(elementTimeout);\n WebElement element = driver.findElement(locator);\n JavascriptExecutor executor = (JavascriptExecutor)driver;\n executor.executeScript(\"arguments[0].click();\", element);\n isClicked = true;\n \t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tisClicked = false;\n\t\t}\n \t}\n \treturn isClicked;\n }", "@Test\n public void articleSingleView()throws Exception{\n ChromeDriver driver = openChromeDriver();\n try {\n driver.get(\"https://www.knjizare-vulkan.rs\");\n clearCookies(driver);\n\n WebElement schoolProgram = driver.findElement(By.xpath(\"//a[@href='https://www.knjizare-vulkan.rs/program-za-skolu']\"));\n schoolProgram.click();\n\n WebElement childPencilBox = driver.findElement(By.xpath(\"/html/body/div[4]/div[1]/div/div/div/div[5]/div/div[2]/div/div/div[7]/div[1]/div[1]/a[2]\"));\n childPencilBox.click();\n\n\n\n Thread.sleep(3000);\n\n } finally {\n\n driver.quit();\n\n }\n\n }", "public void LoginHomePage(){\r\n\t\t\r\n\t\tString username =ExcelRetrieve(8, 1);\r\n\tString password = ExcelRetrieve(9, 1);\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");\r\n\t\ttry{\r\n\t\t\tSystem.out.println(\"inside login function\");\r\n\t\t\tsleep(3000);\r\n\t\t\t//click(locator_split(\"btnLoginArrow\"));\r\n\t\t//\tclearWebEdit(locator_split(\"txtLoginNamegrasp\"));\r\n\t\t//driver.get(\"https://tuchwsmw0301.r1-core.r1.aig.net:20400/prweb/GRASPExt\");\r\n\t\t\tdriver.get(\"https://www.ultimatix.net\");\r\n\t\tsleep(5000);\r\n\t\t\t//System.out.println(locator_split(\"txtLoginNamegrasp\"));\r\n\t\tclearWebEdit(locator_split(\"txtultimatixuser\"));\r\n\t\tsleep(5000);\r\n\t\tSystem.out.println(username);\r\n\t\tSystem.out.println(password);\r\n\t\tsendKeys(locator_split(\"txtultimatixuser\"), username);\r\n\t\tsendKeys(locator_split(\"txtultimatixpass\"), password);\r\n\t\t\t\t\t\t//clearWebEdit(locator_split(\"txtLoginNamegrasp\"));\r\n\t\t\t//sendKeys(locator_split(\"txtLoginNamegrasp\"), username);\r\n\t\t\t//sendKeys(locator_split(\"txtpasswordgrasp\"), password);\r\n\t\t\t//driver.findElement(By.name(\"USER\")).clear();\r\n\t\t\t//driver.findElement(By.name(\"USER\")).sendKeys(username);\r\n\t\t//\tdriver.findElement(locator_split(\"txtLoginNamegrasp\")).sendKeys(username);\r\n\t\t\t//driver.findElement(locator_split(\"txtpasswordgrasp\")).sendKeys(password);\r\n\t\t\t//driver.findElement(locator_split(\"btnlogingrasp\")).click();\r\n\t\t\t//click(locator_split(\"btnlogingrasp\"));\r\n\t\t\tclick(locator_split(\"btxultimatix\"));\r\n\t\t\t//sleep(5000);\r\n\t\t\t//driver.findElement(locator_split(\"btn_privacyok\")).click();\r\n\t\t//click(locator_split(\"btn_privacyok\"));\r\n\t\t\t\r\n\t\t\t/*Reporter.log(\"PASS_MESSAGE:- My Account is clicked and user is logged in\");*/\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- User is not logged in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test(priority=1)\n public void NewTelemarketer() throws InterruptedException{\n \twd.switchTo().frame(\"main\");\n \t\n \t//Metodo para el login \n \trepoObjectsHome.LogInCRM(\"1000\", \"1122\");\n \t\n \t//Tiempo muerto de espera para carga\n \tThread.sleep(3000);\n \t\n \t//Cambio de Frame\n \twd.switchTo().defaultContent();\n \twd.switchTo().frame(\"main\");\n \t\n \twd.findElement(By.xpath(\"//form/table/tbody/tr/td[1]/div[2]/table/tbody/tr/td/p/table/tbody/tr[6]/td/div\")).click();\n \twd.findElement(By.xpath(\"//form/div[9]/span/table/tbody/tr[1]/td/div\")).click();\n \twd.findElement(By.xpath(\"//form/div[10]/span/table/tbody/tr[2]/td/div\")).click();\n \t\n \tThread.sleep(3000);\n \t\n \twd.switchTo().defaultContent();\n \twd.switchTo().frame(\"main\");\n \twd.switchTo().frame(\"iframe_tabs-1\");\n \t\n \twd.findElement(By.id(\"NeoAgregarButton1\")).click();\n \t\n \twd.switchTo().defaultContent();\n \twd.switchTo().frame(\"main\");\n \twd.switchTo().frame(\"iframe_tabs-1\");\n \t\n \twd.findElement(By.id(\"txtNombre\")).sendKeys(\"MR\");\n \twd.findElement(By.id(\"txtApellido\")).sendKeys(\"Roboto\");\n \twd.findElement(By.id(\"txtDomicilio\")).sendKeys(\"Santa Fe 5278\");\n \twd.findElement(By.id(\"txtLocalidad\")).sendKeys(\"Capital Federal\");\n \twd.findElement(By.id(\"txtDNI\")).sendKeys(\"12345678\");\n \twd.findElement(By.id(\"txtTelefono\")).sendKeys(\"42225555\");\n \twd.findElement(By.id(\"txtClave\")).sendKeys(\"9891\");\n \twd.findElement(By.id(\"chkGrabaConversacion\")).click();\n \twd.findElement(By.xpath(\"//form/table/tbody/tr/td/table/tbody/tr/td/div/div[3]/select//option[1]\")).click();\n \twd.findElement(By.id(\"btnAceptar\")).click();\n \t\n \t\n \twd.findElement(By.id(\"NeoSalirButton1\")).click();\n\n \twd.switchTo().defaultContent();\n \twd.switchTo().frame(\"main\");\n \t\n \t\n \twd.findElement(By.xpath(\"//form/table/tbody/tr/td[1]/div[2]/table/tbody/tr/td/p/table/tbody/tr[16]/td/div\")).click();\n\n \t//Tiempo muerto de espera para carga\n Thread.sleep(13000);\n \t\n \t\n \t\n }", "@Override\n public void fw_javascriptClick() {\n WrapsDriver wd = (WrapsDriver) element;\n ((JavascriptExecutor) wd.getWrappedDriver()).executeScript(\"arguments[0].click();\", element);\n }", "public WebElement apply(WebDriver driver ) {\n return driver.findElement(By.xpath(\"/html/body/div[1]/section/div[2]/div/div[1]/div/div[1]/div/div/div/div[2]/div[2]/div/div/div/div/div[1]/div/div/a/i\"));\n }", "public void doLogin() // @Test(priority = 1, enabled = false)\r\n\t {\r\n\t //do some stuff to trigger a login\r\n\t // assertEquals(\"My Logged In Page\", driver.getTitle());\r\n\t\t //AssertJUnit.assertEquals(driver.getTitle(),\"Selenium Easy - Best Demo website to practice Selenium Webdriver Online\");\r\n\t\t \r\n\t\t\r\n\t\t//driver.navigate().to(baseURL_LC); //driver.navigate().to(\"http://seleniumsimplified.com\");\r\n\t\t\r\n\t\t//boolean bbbc = driver.getTitle().startsWith(\"Selenium Simplified - Automated Browser Testing\");\t\t\r\n\t\tString bbbd = driver.getTitle(); System.out.println(bbbd);\r\n\t\t\r\n\t\twaiting(1000);\r\n\t\r\n\t\tString agreementHeading = driver.findElement(By.className(\"tb-license-heading\")).getText();\r\n\t\tSystem.out.println(\"Heading: \"+ agreementHeading ); \r\n\t\t\t\t\t\t\r\n\t\t\r\n\t\tString agreementTEXT = driver.findElement(By.className(\"tb-agreementText\")).getText(); // tb-agreementText\r\n\t\t// stop printing agreement System.out.println(\"Heading: \"+ agreementTEXT );\r\n\t\tthis.waiting(1500); \t\t\t//\tdriver.findElement(By.className(\"tb-agreementText\")).click();\r\n\t\t\r\n\t\t\r\n\t\tString agreementClearfix = driver.findElement(By.className(\"modal-footer-custom\")).getText(); // tb-agreementText\r\n\t\tSystem.out.println(\"Accept Text : \" + agreementClearfix ); //driver.findElement(By.className(\"modal-footer-custom\")).sendKeys(Keys.ENTER);\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"tb_accpt_lic_agrmnt_txt\")).click();\r\n\t\tdriver.findElement(By.xpath(\"//b[contains(text(),'Continue')]\")).click();\r\n\t\t\r\n\t\t\r\n\t}", "@Test \n public void executeSessionTwo(){\n System.out.println(\"open the browser: FIREFOX \");\n final String GECKO_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/geckodriver.exe\";\n System.setProperty(\"webdriver.gecko.driver\", GECKO_DRIVER_DIRECTORY);\n final WebDriver driver = new FirefoxDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "public static void main(String[] args) throws Exception {\n\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"F:\\\\workspace\\\\geckodriver.exe\");\r\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\tdriver.get(\"https://qaclickacademy.com/practice.php/ \");\r\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t\t//count of number of links on the page\r\n\t\tSystem.out.println(driver.findElements(By.tagName(\"a\")).size());\r\n\t\t\r\n\t\t\r\n\t\t//count of number of links on the footer section on the page\r\n\t\tWebElement footerdriver=driver.findElement(By.id(\"gf-BIG\"));\r\n\t\tSystem.out.println(footerdriver.findElements(By.tagName(\"a\")).size());\r\n\t\t\r\n\t\t\r\n\t\t//count the number links on the 1st coloumn in footer section\r\n\t\tWebElement coloumndriver=footerdriver.findElement(By.xpath(\"//*[@id=\\\"gf-BIG\\\"]/table/tbody/tr/td[1]/ul\"));\r\n\t\tSystem.out.println(coloumndriver.findElements(By.tagName(\"a\")).size());\r\n\t\t\r\n\t\t//click on each link in the coloumn check of the pages are opening\r\n\t\tfor(int i=1; i<coloumndriver.findElements(By.tagName(\"a\")).size(); i++)\r\n\t\t{\r\n\t\t\t//String clinkonlinkTab= Keys.chord(Keys.CONTROL , Keys.ENTER);\r\n\t\t\tcoloumndriver.findElements(By.tagName(\"a\")).get(i).sendKeys(Keys.CONTROL , Keys.ENTER);\r\n\t\t\tThread.sleep(5000);\r\n\t\t}\r\n\t\t\r\n\t\tSet<String> abc = driver.getWindowHandles();\r\n\t\tIterator<String> it = abc.iterator();\r\n\t\twhile(it.hasNext())\r\n\t\t{\r\n\t\t\tdriver.switchTo().window(it.next());\r\n\t\t\tSystem.out.println(driver.getTitle());\r\n\t\t}\r\n\t\t\r\n\t}", "@BeforeClass\n\tpublic void beforeClass() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\browserDrivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\texplicitWait = new WebDriverWait(driver, 10);\n\t\tjsExecutor = (JavascriptExecutor) driver;\n//\t\texplicitWait = new WebDriverWait(driver, 30);\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n//\t driver.manage().window().maximize();\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver.exe\");\n\t\tChromeOptions op = new ChromeOptions();\n\t\top.addArguments(\"--disable-notifications\");\n\t\tChromeDriver driver = new ChromeDriver(op);\n\t\tdriver.get(\"http://automationpractice.com/index.php\");\n\t\tint respcode = 200;\n\t\tif (respcode>=400) {\n\t\t\tSystem.out.println(\"InValid Url\");\n\t\t}\n\t\telse \n\t\t\tSystem.out.println(\"valid Url\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS);\n\t\tString str = driver.getCurrentUrl();\n\t\tSystem.out.println(str);\n\t\tString str1 = driver.getTitle();\n\t\tSystem.out.println(str1);\n\t\t/*String str2 = driver.getSessionId();\nSystem.out.println(str2);\n\t\t */\t\n\t\tdriver.findElementByLinkText(\"Sign in\").click();;\n\t\tdriver.findElementByName(\"email_create\").sendKeys(\"thirunamca85@gmail.com\");\n\t\tdriver.findElementByXPath(\"//button[@id='SubmitCreate']\").click();\n\t\tThread.sleep(2000);\n\t\tif (driver.findElementByXPath(\"(//input[@name='id_gender'])[1]\").isSelected()) {\n\t\t\tSystem.out.println(\"checked\");\n\t\t} else {\n\t\t\tdriver.findElementByXPath(\"(//input[@name='id_gender'])[1]\").click();\n\t\t}\n\t\tdriver.findElementById(\"customer_firstname\").sendKeys(\"Manoja\");\n\t\tdriver.findElementById(\"customer_lastname\").sendKeys(\"Kumari\");\n\t\tdriver.findElementByXPath(\"(//input[@id='passwd'])\").sendKeys(\"infotech@2\");\n\n\t\tWebElement src = driver.findElementById(\"days\");\n\t\tSelect dropdown = new Select(src);\n\t\tSystem.out.println(dropdown.getOptions().size());\n\t\tdropdown.selectByIndex(5);\n\t\t//Thread.sleep(2000);\n\t\tWebElement src1 = driver.findElementById(\"months\");\n\t\tSelect dropdown1 = new Select(src1);\n\t\tSystem.out.println(dropdown1.getOptions().size());\n\t\tdropdown1.selectByValue(\"6\");\n\t\t//Thread.sleep(2000);\n\t\tWebElement src2 = driver.findElementById(\"years\");\n\t\tSelect dropdown2 = new Select(src2);\n\t\tSystem.out.println(dropdown2.getOptions().size());\n\t\tdropdown2.selectByIndex(5);\n\n\t\tdriver.findElementById(\"address1\").sendKeys(\"Guindy\");\n\t\tdriver.findElementByXPath(\"//input[@id='city']\").sendKeys(\"Chennai\");\n\t\tThread.sleep(2000);\n\t\tWebElement src4 = driver.findElementById(\"id_state\");\n\t\tSelect dropdown4 = new Select(src4);\n\t\tdropdown4.selectByVisibleText(\"Iowa\");\n\n\t\tdriver.findElementByName(\"postcode\").sendKeys(\"58522\");\n\t\tdriver.findElementById(\"phone_mobile\").sendKeys(\"9958151554\");\n\t\tdriver.findElementById(\"alias\").sendKeys(\"My address is new\");\n\t\tdriver.findElementByXPath(\"//span[text()=\\\"Register\\\"]\").click();\n\t\t\n\t\t/*WebDriverWait wd = new WebDriverWait(driver,10);\n\t\twd.until(ExpectedConditions.elementToBeClickable(locator));\n\t\t*/\n\t\tJavascriptExecutor js = (JavascriptExecutor)driver;\n\t\tjs.executeScript(\"window.scrollby(0,1000\");\n\n\t}", "public static void main(String[] args) throws InterruptedException {\n\n System.setProperty(\"webdriver.chrome.driver\",\n \"C:\\\\Users\\\\ANUMANTHU\\\\Desktop\\\\Selenium Learning\\\\chromedriver.exe\");\n\n WebDriver driver = new ChromeDriver();\n driver.get(\"https://www.spicejet.com/\");\n\n driver.manage().window().maximize();\n\n driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\n Actions ac = new Actions(driver);\n ac.moveToElement(driver.findElement(By.xpath(\"//span[@class='burger-bread']\"))).build().perform();\n\n // ul[@id='menu-list-addons']//a\n\n Thread.sleep(3000);\n\n List<WebElement> ele = driver.findElements(By.xpath(\"//ul[@id='menu-list-addons']//a\"));\n\n int count = ele.size();\n\n for (int i = 0; i < count; i++) {\n if (ele.get(i).getText().contains(\"Travel Info\")) {\n ac.moveToElement(ele.get(i)).build().perform();\n\n Thread.sleep(3000);\n\n for (int j = 0; j < count; j++) {\n if (ele.get(j).getText().contains(\"FAQ\")) {\n // ac.moveToElement(ele.get(j)).build().perform();\n // ac.doubleClick(ele.get(j)).build().perform();\n // We can do below as well both movement and click as shown below\n\n ac.moveToElement(ele.get(j)).doubleClick().build().perform();\n\n break;\n\n }\n\n }\n break;\n\n }\n\n }\n\n }", "@Test\n public void runScript() throws IllegalArgumentException {\n WebDriverCommandProcessor proc = new WebDriverCommandProcessor(\"http://localhost/\", manager.get());\n CommandFactory factory = new CommandFactory(proc);\n factory.newCommand(1, \"runScript\", \"alert('test')\");\n }", "public static void main(String[] args) {\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\tdriver.get(\"http://demo.actitime.com\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\t//driver.get(\"http://demo.actitime.com\");\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(\"admin\");\r\n\t\tdriver.findElement(By.name(\"pwd\")).sendKeys(\"manager\");\r\n\t\tdriver.findElement(By.id(\"loginButton\")).click();\r\n\t\t\r\n\tString str=\tdriver.getPageSource();\r\n\t\tif(driver.equals(str))\r\n\t\t{\r\n\t\t\tdriver.findElement(By.className(\"logout\")).click();\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "protected WebDriver createPhantomJSDriver() {\n DesiredCapabilities desiredCapabilities = new DesiredCapabilities();\n String[] phantomArgs = new String[]{\n \"--webdriver-loglevel=\"\n + Resources.base().webDriverLogLevel()\n };\n desiredCapabilities\n .setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS,\n phantomArgs);\n desiredCapabilities.setCapability(\n \"phantomjs.page.customHeaders.Accept-Language\",\n getSystemLanguage());\n PhantomJSDriver phantomJSDriver = new PhantomJSDriver(\n desiredCapabilities);\n phantomJSDriver.manage().window().maximize();\n return phantomJSDriver;\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Pragati\\\\Selenium\\\\Exe files\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t//\t String baseUrl=\"http://www.facebook.com\";\r\n\t\tString baseUrl=\"http://demo.guru99.com/test/ajax.html\";\r\n\t\t WebDriver driver= new ChromeDriver();\r\n\t\t driver.get(baseUrl);\r\n\t\t Thread.sleep(10000);\r\n\t\t/* driver.switchTo().frame(\"classFrame\");\r\n\t\t driver.findElement(By.linkText(\"Deprecated\")).click();\r\n*/\r\n\t\t List<WebElement> elements=driver.findElements(By.name(\"name\"));\r\n System.out.println(\"No. of elements=\" +elements.size());\r\n for(int i=0;i<elements.size();i++)\r\n {\r\n \t System.out.println(\"Radio button text:\" +elements.get(i).getAttribute(\"value\")); \r\n }\r\n\t\t /* String tgName=driver.findElement(By.id(\"email\")).getTagName();\r\n\t\t System.out.println(tgName);\r\n\t\t String verUrl=driver.getCurrentUrl();\r\n\t\t System.out.println(verUrl);\r\n\t\t System.out.println(driver.getPageSource().length());\r\n\t\t String expedtedTitle=\"Facebook – log in or sign up\";\r\n\t\t String ActualTitle= driver.getTitle();\r\n\t\t if(expedtedTitle.equalsIgnoreCase(ActualTitle)&& verUrl.equalsIgnoreCase(baseUrl))\r\n\t\t {System.out.println(\"PASS\");}\r\n\t\t else\r\n\t\t {\r\n\t\t\t System.out.println(\"FAIL\"); \r\n\t\t }*/\r\n\t\t \r\n\t\t /* String alertMessage;\r\n\r\n\t driver.get(\"http://jsbin.com/usidix/1\");\r\n\t driver.findElement(By.cssSelector(\"input[value=\\\"Go!\\\"]\")).click();\r\n\t \r\n\t alertMessage = driver.switchTo().alert().getText();\r\n\t Thread.sleep(1000);\r\n\t driver.switchTo().alert().accept();\r\n\t \r\n\t System.out.println(alertMessage);\r\n\t */\r\n\r\n\r\n\t}", "public LandingPage(WebDriver driver) throws IOException {\n\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver, this);\n\t\tjs = (JavascriptExecutor) driver;\n\t\t\t\n\t}" ]
[ "0.6475311", "0.64496696", "0.6321053", "0.62213385", "0.61973", "0.6172059", "0.6042771", "0.60094804", "0.59694564", "0.5969051", "0.5938644", "0.59232837", "0.5857899", "0.5852565", "0.5852545", "0.5842523", "0.5835524", "0.58335423", "0.5801072", "0.57994646", "0.5799165", "0.5796238", "0.5786504", "0.57467467", "0.57061654", "0.57055813", "0.57026213", "0.56940746", "0.56782186", "0.5656637", "0.5655744", "0.5646842", "0.5628831", "0.5627953", "0.5617893", "0.56162184", "0.56048286", "0.5594601", "0.5593958", "0.5588735", "0.5567718", "0.5566677", "0.55651367", "0.5558744", "0.5557169", "0.55553067", "0.5551873", "0.55388504", "0.55341625", "0.5532772", "0.5529996", "0.5515869", "0.55150056", "0.54641783", "0.5458806", "0.5458015", "0.5452241", "0.54499006", "0.54472435", "0.54470646", "0.54269296", "0.5415708", "0.5408194", "0.5407998", "0.5407762", "0.5402241", "0.53998995", "0.5399403", "0.5394953", "0.53941214", "0.53877085", "0.5382878", "0.538162", "0.5375375", "0.5372755", "0.5369748", "0.53677523", "0.5365593", "0.5361397", "0.5360451", "0.53586394", "0.53579247", "0.535619", "0.53476053", "0.5347224", "0.5345343", "0.5344757", "0.5340733", "0.53261626", "0.53152055", "0.53141314", "0.5309667", "0.53080803", "0.53045607", "0.5303366", "0.5300075", "0.5296173", "0.52912253", "0.5287001", "0.52846044" ]
0.6054534
6
Retreives access token from http request
public String extractAuthTokenFromRequest(HttpServletRequest httpRequest) { /* Get token from header */ String authToken = httpRequest.getHeader("X-Auth-Token"); /* If token not found get it from request parameter */ if (authToken == null) { authToken = httpRequest.getParameter("token"); } return authToken; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAccessToken();", "String getAccessToken();", "GetToken.Req getGetTokenReq();", "OAuth2Token getToken();", "public String getAccessToken();", "private void getAccessToken() {\n\n\t\tMediaType mediaType = MediaType.parse(\"application/x-www-form-urlencoded\");\n\t\tRequestBody body = RequestBody.create(mediaType,\n\t\t\t\t\"client_id=\" + CONSUMER_KEY + \"&client_secret=\" + CONSUMER_SECRET + \"&grant_type=client_credentials\");\n\t\tRequest request = new Request.Builder().url(\"https://api.yelp.com/oauth2/token\").post(body)\n\t\t\t\t.addHeader(\"cache-control\", \"no-cache\").build();\n\n\t\ttry {\n\t\t\tokhttp3.Response response = client.newCall(request).execute();\n\t\t\tString respbody = response.body().string().trim();\n\t\t\tJSONParser parser = new JSONParser();\n\t\t\tJSONObject json = (JSONObject) parser.parse(respbody);\n\t\t\taccessToken = (String) json.get(\"access_token\");\n\t\t} catch (IOException | ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "AccessToken getOAuthAccessToken(RequestToken requestToken) throws MoefouException;", "private static Tuple<Integer, String> getToken() {\n\t\tTuple<Integer, String> result = new Tuple<Integer, String>();\n\t\tresult = GETRequest(AUTH_URL, AUTH_HEADER, \"\", \"\");\n\t\treturn result;\n\t}", "private String getToken(HttpServletRequest request){\n String header = request.getHeader(\"Authorization\");\n if(header != null && header.startsWith(\"Bearer\"))\n \t// Sacamos al bearer del token\n return header.replace(\"Bearer \", \"\");\n return null;\n }", "private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }", "public java.lang.String getOauth_token(){\r\n return localOauth_token;\r\n }", "public AuthorizationToken retrieveToken(String token);", "String getToken(String scope, String username, String password) throws AuthorizationException;", "public Object token(HttpServletRequest request)\n throws URISyntaxException, OAuthSystemException {\n try {\n OAuthTokenRequest oauthRequest = new OAuthTokenRequest(request);\n String authCode = oauthRequest.getParam(OAuth.OAUTH_CODE);\n\n // get from cache\n OAuthAuthzParameters oAuthAuthzParameters = oAuthService.getOAuthAuthzParameters(authCode);\n if (oAuthAuthzParameters == null) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CODE))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_AUTHORIZATION_CODE)\n .buildJSONMessage();\n logger.info(\"no cache for {}\", authCode);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!oAuthAuthzParameters.getClientId().equals(oauthRequest.getClientId())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"invalid client id {}, context: {}\", oauthRequest.getClientId(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check client id\n Client openOauthClients = oAuthService.getClientByClientId(oauthRequest.getClientId());\n if (openOauthClients == null) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"can not get client, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!openOauthClients.getGrantTypes().contains(Constants.OAUTH_AUTHORIZATION_CODE)) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_GRANT_TYPE)\n .buildJSONMessage();\n logger.info(\"no grant type, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check client secret\n if (!openOauthClients.getClientSecret().equals(oauthRequest.getClientSecret())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"invalid secret: {}, context: {}\", openOauthClients.getClientSecret(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // check redirect url\n if (!oAuthAuthzParameters.getRedirectUri().equals(oauthRequest.getRedirectURI())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_REDIRECT_URI)\n .buildJSONMessage();\n logger.info(\"invalid redirect url {}, context: {}\", oauthRequest.getRedirectURI(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n // build response\n OAuthIssuer oauthIssuerImpl = new OAuthIssuerImpl(new UUIDValueGeneratorEx());\n String accessToken = oauthIssuerImpl.accessToken();\n String refreshToken = oauthIssuerImpl.refreshToken();\n\n /**\n * limit client access token number\n */\n int limitNum = openOauthClients.getClientNum();\n limitNum = limitNum > 0 ? limitNum - 1 : limitNum;\n oAuthService.limitAccessToken(oAuthAuthzParameters.getClientId(),\n oAuthAuthzParameters.getUserId(), limitNum);\n\n oAuthService.saveAccessToken(accessToken, oAuthAuthzParameters);\n oAuthService.saveRefreshToken(refreshToken, accessToken, oAuthAuthzParameters);\n\n OAuthResponse response = OAuthASResponseEx\n .tokenResponse(HttpServletResponse.SC_OK)\n .setTokenType(\"uuid\")\n .setAccessToken(accessToken)\n .setRefreshToken(refreshToken)\n .setExpiresIn(String.valueOf(appConfig.tokenAccessExpire))\n\n .setScope(oAuthAuthzParameters.getScope())\n .buildJSONMessage();\n\n //remove the code from cache\n oAuthService.delOAuthAuthzParameters(authCode);\n\n logger.info(\"response access toke {}, context: {}\", accessToken, oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n } catch (OAuthProblemException e) {\n logger.error(\"oauth problem exception\", e);\n OAuthResponse res = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(e.getMessage())\n .buildJSONMessage();\n return new ResponseEntity<String>(res.getBody(), HttpStatus.valueOf(res.getResponseStatus()));\n }\n\n }", "private String retrieveToken(String accessCode) throws IOException {\n OAuthApp app = new OAuthApp(asanaCredentials.getClientId(), asanaCredentials.getClientSecret(),\n asanaCredentials.getRedirectUri());\n Client.oauth(app);\n String accessToken = app.fetchToken(accessCode);\n\n //check if user input is valid by testing if accesscode given by user successfully authorises the application\n if (!(app.isAuthorized())) {\n throw new IllegalArgumentException();\n }\n\n return accessToken;\n }", "public String getAccessToken()\n {\n if (accessToken == null)\n {\n if (DEBUG)\n {\n System.out.println(\"Access token is empty\");\n }\n try\n {\n FileReader fileReader = new FileReader(getCache(\"token\"));\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n accessToken = bufferedReader.readLine();\n if (DEBUG)\n {\n System.out.println(\"BufferReader line: \" + accessToken);\n }\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return accessToken;\n }", "public AccessToken getAccessToken() {\n return token;\n }", "private CdekAuthToken getAuthToken()\n {\n String authEndpoint = conf.ENDPOINT + \"/oauth/token?grant_type={grant_type}&client_id={client_id}&client_secret={client_secret}\";\n\n HttpHeaders defaultHeaders = new HttpHeaders();\n HttpEntity req = new HttpEntity(defaultHeaders);\n\n return rest.postForObject(authEndpoint, req, CdekAuthToken.class, conf.getAuthData());\n }", "String getToken(String username, String password, String grant_type) throws IllegalAccessException{\n\n String URI = serviceUrl + \"/oauth/token\" + \"?\" +\n String.format(\"%s=%s&%s=%s&%s=%s\", \"grant_type\", grant_type, \"username\", username, \"password\", password);\n// String CONTENT_TYPE = \"application/x-www-form-urlencoded\";\n // TODO clientId and clientSecret !!!\n String ENCODING = \"Basic \" +\n Base64.getEncoder().encodeToString(String.format(\"%s:%s\", \"clientId\", \"clientSecret\").getBytes());\n\n// AtomicReference<String> token = null;\n// authorization.subscribe(map -> {\n// token.set((String) map.get(ACCESS_TOKEN));\n// });\n\n String token = null;\n try {\n token = (String)WebClient.create().post()\n .uri(URI)\n .accept(MediaType.APPLICATION_FORM_URLENCODED)\n .contentType(MediaType.APPLICATION_FORM_URLENCODED)\n .header(\"Authorization\", ENCODING)\n .retrieve()\n .bodyToMono(Map.class)\n .block().get(ACCESS_TOKEN);\n } catch (Exception e){\n throw new IllegalAccessException(\"Can't reach access token\");\n }\n\n return token;\n }", "RequestToken getOAuthRequestToken() throws MoefouException;", "@FormUrlEncoded\n @POST(\"/oauth/access_token\")\n Flowable<ResponseBody> getAccessToken(@Field(\"oauth_verifier\") String oauthVerifier);", "@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));\n params.add(new BasicNameValuePair(\"apiAccessId\", accessId));\n params.add(new BasicNameValuePair(\"apiAccessKey\", accessKey));\n post.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\n\n HttpResponse response = client.execute(post);\n String a = response.getStatusLine().toString();\n\n if(a.equals(\"HTTP/1.1 400 Bad Request\")){\n throw (new BadAccessIdOrKeyException(\"Bad Access Id Or Key\"));\n }\n HttpEntity entity = response.getEntity();\n String responseString = EntityUtils.toString(response.getEntity());\n\n JsonParser jsonParser = new JsonParser();\n JsonObject jo = (JsonObject) jsonParser.parse(responseString);\n if(jo.get(\"access_token\") == null){\n throw new NullResponseException(\"The Access Token you get is null.\");\n }\n String accessToken = jo.get(\"access_token\").getAsString();\n List<Header> headers = new ArrayList<>();\n headers.add(new BasicHeader(HttpHeaders.CONTENT_TYPE, \"application/json\"));\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + accessToken));\n\n client = HttpClients.custom().setDefaultHeaders(headers).build();\n } catch (NullResponseException e) {\n System.out.println(e.getMsg());\n }\n }", "Future<String> getAccessToken(OkapiConnectionParams params);", "public String getAccess_token() {\r\n\t\treturn access_token;\r\n\t}", "private String GetAccessToken() {\n final String grantType = \"password\";\n final String resourceId = \"https%3A%2F%2Fgraph.microsoft.com%2F\";\n final String tokenEndpoint = \"https://login.microsoftonline.com/common/oauth2/token\";\n\n try {\n URL url = new URL(tokenEndpoint);\n HttpURLConnection conn;\n if (configuration.isProxyUsed()) {\n Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(configuration.getProxyServer(), configuration.getProxyPort()));\n conn = (HttpURLConnection) url.openConnection(proxy);\n } else {\n conn = (HttpURLConnection) url.openConnection();\n }\n\n String line;\n StringBuilder jsonString = new StringBuilder();\n\n conn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded; charset=UTF-8\");\n conn.setRequestMethod(\"POST\");\n conn.setDoInput(true);\n conn.setDoOutput(true);\n conn.setInstanceFollowRedirects(false);\n conn.connect();\n\n try (OutputStreamWriter outputStreamWriter = new OutputStreamWriter(conn.getOutputStream(), StandardCharsets.UTF_8)) {\n String payload = String.format(\"grant_type=%1$s&resource=%2$s&client_id=%3$s&username=%4$s&password=%5$s\",\n grantType,\n resourceId,\n clientId,\n username,\n password);\n outputStreamWriter.write(payload);\n }\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()))) {\n while((line = br.readLine()) != null) {\n jsonString.append(line);\n }\n }\n\n conn.disconnect();\n\n JsonObject res = new GsonBuilder()\n .create()\n .fromJson(jsonString.toString(), JsonObject.class);\n\n return res\n .get(\"access_token\")\n .toString()\n .replaceAll(\"\\\"\", \"\");\n\n } catch (IOException e) {\n throw new IllegalAccessError(\"Unable to read authorization response: \" + e.getLocalizedMessage());\n }\n }", "GetToken.Res getGetTokenRes();", "@FormUrlEncoded\n @POST(\"oauth/request_token\")\n Flowable<ResponseBody> requestToken(@Field(\"oauth_callback\") String oauthCallback);", "public String getToken();", "Pokemon.RequestEnvelop.AuthInfo.JWT getToken();", "public static String obtenerTokenAcceso(HttpServletRequest request) {\n String tokenId = \"\";\n try {\n String authorization = request.getHeader(\"Authorization\");\n if (authorization != null && authorization.contains(\"Bearer\")) {\n tokenId = authorization.replace(\"Bearer\", \"\");\n }\n String[] contenidoToken = tokenId.split(\"\\\\.\");\n return contenidoToken[1];\n } catch (Exception e) {\n // TODO: handle exception\n return \"\";\n }\n }", "AccessToken getOAuthAccessToken(RequestToken requestToken, String oauthVerifier) throws MoefouException;", "protected AccessToken getAccessToken() \n\t{\n\t\treturn accessToken;\n\t}", "public String getToken(HttpServletRequest request) {\n Cookie authCookie = getCookieValueByName(request, AUTH_TOKEN_COOKIE);\n if (authCookie != null) {\n return authCookie.getValue();\n }\n /**\n * Getting the token from Authentication header e.g Bearer your_token\n */\n String authHeader = request.getHeader(AUTH_HEADER);\n if (authHeader != null) {\n \tif (authHeader.startsWith(\"Bearer \"))\n \t\treturn authHeader.substring(7);\n \t// Support without Bearer prefix\n \treturn authHeader;\n }\n return null;\n }", "private String getToken() {\n String keyFilePath = System.getenv(\"APE_API_KEY\");\n if (Strings.isNullOrEmpty(keyFilePath)) {\n File globalKeyFile = GlobalConfiguration.getInstance().getHostOptions().\n getServiceAccountJsonKeyFiles().get(GLOBAL_APE_API_KEY);\n if (globalKeyFile == null || !globalKeyFile.exists()) {\n CLog.d(\"Unable to fetch the service key because neither environment variable \" +\n \"APE_API_KEY is set nor the key file is dynamically downloaded.\");\n return null;\n }\n keyFilePath = globalKeyFile.getAbsolutePath();\n }\n if (Strings.isNullOrEmpty(mApiScope)) {\n CLog.d(\"API scope not set, use flag --business-logic-api-scope.\");\n return null;\n }\n try {\n Credential credential = GoogleCredential.fromStream(new FileInputStream(keyFilePath))\n .createScoped(Collections.singleton(mApiScope));\n credential.refreshToken();\n return credential.getAccessToken();\n } catch (FileNotFoundException e) {\n CLog.e(String.format(\"Service key file %s doesn't exist.\", keyFilePath));\n } catch (IOException e) {\n CLog.e(String.format(\"Can't read the service key file, %s\", keyFilePath));\n }\n return null;\n }", "public String getAccessToken() {\n return accessToken;\n }", "RequestToken getOAuthRequestToken(String callbackURL) throws MoefouException;", "@Nullable\n @Override\n public Request authenticate(@NonNull Route route, @NonNull okhttp3.Response response) throws IOException {\n ABBYYLingvoAPI abbyyLingvoAPI = getApi();\n\n Call<ResponseBody> myCall = abbyyLingvoAPI.getBasicToken();\n Response<ResponseBody> response1;\n try {\n response1 = myCall.execute();\n if (response1.isSuccessful()) {\n accessToken = response1.body().string();\n Log.d(Constants.LOG_TAG, \"basic response is success, got accessToken\");\n } else {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful, response code is: \" + response1.code());\n }\n } catch (IOException e) {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful cause error: \" + e.toString());\n }\n\n // Add new header to rejected request and retry it\n accessTokenRequest = response.request().newBuilder()\n .addHeader(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n\n return accessTokenRequest;\n }", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "public String getAccessToken() {\n return accessToken;\n }", "public static String getAccessToken() {\n return accessToken;\n }", "User getUserByToken(HttpServletResponse response, String token) throws Exception;", "void onGetTokenSuccess(AccessTokenData token);", "@RequestMapping(value = \"/gw/oauth/token/{version}/get\", method = RequestMethod.POST, produces = \"application/json;charset=utf-8\")\n public Object entry_token(HttpServletRequest request)\n throws URISyntaxException, OAuthSystemException, OAuthProblemException {\n return this.password(request);\n }", "public int getTokenViaClientCredentials(){\n\t\t//Do we have credentials?\n\t\tif (Is.nullOrEmpty(clientId) || Is.nullOrEmpty(clientSecret)){\n\t\t\treturn 1;\n\t\t}\n\t\ttry{\n\t\t\t//Build auth. header entry\n\t\t\tString authString = \"Basic \" + Base64.getEncoder().encodeToString((clientId + \":\" + clientSecret).getBytes());\n\t\t\t\n\t\t\t//Request headers\n\t\t\tMap<String, String> headers = new HashMap<>();\n\t\t\theaders.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\t\t\theaders.put(\"Authorization\", authString);\n\t\t\t\n\t\t\t//Request data\n\t\t\tString data = ContentBuilder.postForm(\"grant_type\", \"client_credentials\");\n\t\t\t\n\t\t\t//Call\n\t\t\tlong tic = System.currentTimeMillis();\n\t\t\tthis.lastRefreshTry = tic;\n\t\t\tJSONObject res = Connectors.httpPOST(spotifyAuthUrl, data, headers);\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi getTokenViaClientCredentials\");\n\t\t\tStatistics.addExternalApiTime(\"SpotifyApi getTokenViaClientCredentials\", tic);\n\t\t\t//System.out.println(res.toJSONString()); \t\t//DEBUG\n\t\t\tif (!Connectors.httpSuccess(res)){\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\tString token = JSON.getString(res, \"access_token\");\n\t\t\tString tokenType = JSON.getString(res, \"token_type\");\n\t\t\tlong expiresIn = JSON.getLongOrDefault(res, \"expires_in\", 0);\n\t\t\tif (Is.nullOrEmpty(token)){\n\t\t\t\treturn 4;\n\t\t\t}else{\n\t\t\t\tthis.token = token;\n\t\t\t\tthis.tokenType = tokenType;\n\t\t\t\tthis.tokenValidUntil = System.currentTimeMillis() + (expiresIn * 1000);\n\t\t\t}\n\t\t\treturn 0;\n\t\t\t\n\t\t}catch (Exception e){\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi-error getTokenViaClientCredentials\");\n\t\t\treturn 3;\n\t\t}\n\t}", "private void retrieveAccessToken() {\n Log.d(TAG, \"at retreiveAccessToken\");\n String accessURL = TWILIO_ACCESS_TOKEN_SERVER_URL + \"&identity=\" + \"1234\" + \"a\";\n Log.d(TAG, \"accessURL \" + accessURL);\n Ion.with(this).load(accessURL).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null) {\n Log.d(TAG, \"Access token: \" + accessToken);\n MainActivity.this.accessToken = accessToken;\n registerForCallInvites();\n } else {\n Toast.makeText(MainActivity.this,\n \"Error retrieving access token. Unable to make calls\",\n Toast.LENGTH_LONG).show();\n Log.d(TAG, e.toString());\n }\n }\n });\n }", "public String getAccessToken() {\n readLock.lock();\n try {\n return accessToken;\n } finally {\n readLock.unlock();\n }\n }", "@GET\n\tString get(@QueryParam(\"tempToken\") String tempToken) {\n\n\t\tif(tempToken==null)\n\t\t\treturn \"Invalid token provided\";\n\t\t\n\t\tString responseString = \"\";\n\t\tClientConfig config = new ClientConfig();\n\t\tClient client = ClientBuilder.newClient(config);\n\t\tWebTarget target = client.target(getBaseURI(tempToken));\n\t\tresponseString = target.request().accept(MediaType.APPLICATION_JSON)\n\t\t\t\t.get(String.class);\n\t\tSystem.out.println(\"Obtained response is \" + responseString);\n\n\t\tif (responseString.contains(\"access_token=\")) {\n\t\t\tresponseString = responseString.replace(\"access_token=\", \"\");\n\t\t\treturn responseString;\n\t\t}else\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\t\n\n\t}", "AccessToken getOAuthAccessToken() throws MoefouException;", "private void getAccessToken(final String code, final OperationCallback<User> callback) {\n \n new Thread() {\n @Override\n public void run() {\n Log.i(TAG, \"Getting access token\");\n try {\n String postData = \"client_id=\" + CLIENT_ID + \"&client_secret=\" + CLIENT_SECRET +\n \"&grant_type=authorization_code\" + \"&redirect_uri=\" + CALLBACK_URL + \"&code=\" + code;\n String response = postRequest(TOKEN_URL, postData);\n \n Log.i(TAG, \"response \" + response);\n JSONObject jsonObj = (JSONObject) new JSONTokener(response).nextValue();\n \n mAccessToken = jsonObj.getString(\"access_token\");\n Log.i(TAG, \"Got access token: \" + mAccessToken);\n \n Gson gson = new Gson();\n User user = gson.fromJson(jsonObj.getJSONObject(\"user\").toString(), User.class);\n user.setAccessToken(mAccessToken);\n \n callback.notifyCompleted(user);\n } catch (Exception ex) {\n callback.notifyError(ex);\n Log.e(TAG, \"Error getting access token\", ex);\n }\n \n }\n }.start();\n }", "public OAuthTokenResponse getToken() {\n return token;\n }", "private String getAccessToken(String url) {\n int accessTokenIndex = url.indexOf(\"access_token\");\n\n // url would be like www.example.com/access_token=abcd&otherparameters\n int loopStartIndex = accessTokenIndex + \"access_token\".length() + 1;\n int andIndex = url.indexOf(\"&\");\n StringBuilder sb = new StringBuilder(\"\");\n for (int i = loopStartIndex; i < andIndex; i++) {\n sb.append(url.charAt(i));\n }\n return sb.toString();\n }", "public String getAccessToken() {\n return accessToken;\n }", "public String getAccessToken() {\n\t\t\n\t\tString access_token = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\taccess_token = securityContext.getTokenString();\n\t\t}\n\t\t\n\t\treturn access_token;\n\t}", "private static String getCloudAuth(String accessToken) {\n\t\ttry {\n\t\t\tURL urlResource = new URL(\"https://myapi.pathomation.com/api/v1/authenticate\");\n\t\t\tURLConnection conn = urlResource.openConnection();\n\t\t\tconn.setRequestProperty( \"Authorization\", \"Bearer \" + accessToken);\n\t\t\tconn.setUseCaches( false );\n\t\t\treturn getResponseString(conn);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "private UsernamePasswordAuthenticationToken getAuthtication(HttpServletRequest request){\n // Get token from request header.\n String token = request.getHeader(\"Authorization\");\n if (token != null){\n //Get the username from the jwt token\n String username = JwtUtil.getUsernameByToken(token);\n //Check the existence of the username.\n Optional<User> userTry = userRepository.findByUsername(username);\n Collection<GrantedAuthority> authorities = new ArrayList<>();\n if (userTry.isPresent()){\n User user = userTry.get();\n authorities.add(new SimpleGrantedAuthority(user.getRole().getName()));\n return new UsernamePasswordAuthenticationToken(user,token,authorities);\n }\n }\n return null;\n }", "String getAuthorizerAccessToken(String appId);", "@WebMethod\n public String getRequestToken() {\n String result = TokenService.getRequestToken();\n return result;\n }", "public StringBuilder createToken() throws IOException {\n /**\n * we need the url where we want to make an API call\n */\n URL url = new URL(\"https://api.scribital.com/v1/access/login\");\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\n /**\n * set the required type, in this case it's a POST request\n */\n connection.setRequestMethod(\"POST\");\n\n /**\n * set the type of content, here we use a JSON type\n */\n connection.setRequestProperty(\"Content-Type\", \"application/json; utf-8\");\n connection.setDoOutput(true);\n\n /**\n * set the Timeout, will disconnect if the connection did not work, avoid infinite waiting\n */\n connection.setConnectTimeout(6000);\n connection.setReadTimeout(6000);\n\n /**\n * create the request body\n * here we need only the username and the api-key to make a POST request and to receive a valid token for the Skribble API\n */\n String jsonInputString = \"{\\\"username\\\": \\\"\" + username +\"\\\", \\\"api-key\\\":\\\"\" + api_key + \"\\\"}\";\n try(OutputStream os = connection.getOutputStream()){\n byte[] input = jsonInputString.getBytes(StandardCharsets.UTF_8);\n os.write(input,0, input.length);\n }\n\n /**\n * read the response from the Skriblle API which is a token in this case\n */\n try(BufferedReader br = new BufferedReader(\n new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) {\n StringBuilder response = new StringBuilder();\n String responseLine = null;\n while ((responseLine = br.readLine()) != null) {\n response.append(responseLine.trim());\n Token = response;\n }\n }\n return Token;\n }", "public String getAccessToken () {\n\t\treturn this.accessToken;\n\t}", "public String getAccessToken() {\n\t\treturn accessToken;\n\t}", "public String getAccessToken() {\n\t\treturn accessToken;\n\t}", "public void setToken(){\n token=null;\n try {\n OkHttpClient client = new OkHttpClient();\n RequestBody reqbody = RequestBody.create(null, new byte[0]); \n Request request = new Request.Builder()\n .url(\"https://api.mercadolibre.com/oauth/token?grant_type=client_credentials&client_id=\"+clienteID +\"&client_secret=\"+secretKey)\n .post(reqbody)\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"cache-control\", \"no-cache\")\n .addHeader(\"postman-token\", \"67053bf3-5397-e19a-89ad-dfb1903d50c4\")\n .build();\n \n Response response = client.newCall(request).execute();\n String respuesta=response.body().string();\n token=respuesta.substring(respuesta.indexOf(\"APP\"),respuesta.indexOf(\",\")-1);\n System.out.println(token);\n } catch (IOException ex) {\n Logger.getLogger(MercadoLibreAPI.class.getName()).log(Level.SEVERE, null, ex);\n token=null;\n }\n }", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "AccessToken getOAuthAccessToken(String oauthVerifier) throws MoefouException;", "public static String getTeacherToken() {\n\n RestAssured.baseURI = \"https://cybertek-reservation-api-qa.herokuapp.com\";\n\n Response response = given().log().all().\n param(\"email\", \"teacherva5@gmail.com\").\n param(\"password\", \"maxpayne\").\n get(\"/sign\");\n response.then().log().all().\n assertThat().statusCode(200);\n\n return response.jsonPath().get(\"accessToken\");\n\n }", "@GetMapping(\"/getaccesstoken1\")\n public Map<String, Object> getAccessToken1(){\n Map<String, Object> mapResponse=new HashMap<String, Object>();\n String accessToken=transAccessService.getAccessToken();\n mapResponse.put(\"key\", \"200\");\n mapResponse.put(\"status\", \"success\");\n mapResponse.put(\"access_token\", accessToken);\n return mapResponse;\n }", "public String getAccessToken(){\n //return \"3be8b617e076b96b2b0fa6369b6c72ed84318d72\";\n return MobileiaAuth.getInstance(mContext).getCurrentUser().getAccessToken();\n }", "@O2BearerToken\n @GET\n @Path(\"/token\")\n public Response bearerAuthorizedGet(@Context final SecurityContext c) {\n return Response.ok().build();\n }", "public void retrieveAccessToken(Context context) {\n PBookAuth mPBookAuth = mApplicationPreferences.getPBookAuth();\n if (mPBookAuth == null || TextUtils.isEmpty(mPBookAuth.getClientName())) {\n view.onReturnAccessToken(null, false);\n return;\n }\n Ion.with(context).load(ACCESS_TOKEN_SERVICE_URL).setBodyParameter(\"client\", mPBookAuth.getClientName()).setBodyParameter(\"phoneNumber\", mPBookAuth.getPhoneNumber()).setBodyParameter(\"platform\", PLATFORM_KEY).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null || !TextUtils.isEmpty(accessToken)) {\n mApplicationPreferences.setTwilioToken(accessToken);\n view.onReturnAccessToken(accessToken, true);\n } else {\n view.onReturnAccessToken(accessToken, false);\n }\n }\n });\n }", "@Override\n /**\n * Handles a HTTP GET request. This implements obtaining an authentication token from the server.\n */\n protected void handleGet(Request request, Response response) throws IllegalStateException {\n String username = String.valueOf(request.getAttributes().get(\"username\"));\n String password = String.valueOf(request.getAttributes().get(\"password\"));\n /* Construct MySQL Query. */\n String query = \"SELECT COUNT(id) AS `CNT`, `authToken` FROM accounts WHERE `username` = '\" + username + \"' AND \" +\n \"`password` = '\" + password + \"' LIMIT 0,1;\";\n /* Obtain the account count and existing token pair, as object array. */\n Object[] authenticationArray = dataHandler.handleAuthentication(database.ExecuteQuery(query,\n new ArrayList<String>()));\n int cnt = (int) authenticationArray[0];\n String existingToken = (String) authenticationArray[1];\n String authenticationToken = null;\n if (cnt == 1) { // There is exactly one account matching the parameterised username and password.\n if (existingToken == null) { // No token yet existed, generate one.\n authenticationToken = TokenGenerator.getInstance().generateAuthenticationToken(TOKEN_LENGTH);\n } else {\n authenticationToken = existingToken;\n }\n } else {\n this.returnStatus(response, new IllegalArgumentStatus(null));\n }\n if (!(authenticationToken == null || authenticationToken == \"\")) { // Update the database with the new token.\n Database.getInstance().ExecuteUpdate(\"UPDATE `accounts` SET `authToken` = '\" + authenticationToken +\n \"', `authTokenCreated` = CURRENT_TIMESTAMP WHERE `username` = '\" + username + \"';\",\n new ArrayList<String>());\n this.returnResponse(response, authenticationToken, new TokenSerializer());\n } else {\n this.returnStatus(response, new IllegalArgumentStatus(null));\n }\n }", "String getComponentAccessToken();", "@POST\n @Consumes(org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE)\n @Produces(org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE)\n @Path(\"/token\")\n @ApiOperation(value = \"Gets the authorization\")\n public Response getToken(@RequestBody AuthorizationEntity auth) {\n // same AccessResource for token to generate\n if (httpServletRequest.isSecure()) {\n final NiFiUser user = NiFiUserUtils.getNiFiUser();\n if (user == null) {\n throw new AccessDeniedException(\"No user authenticated in the request.\");\n }\n if (user.getIdentity().equals(auth.getUsername()) || user.getIdentity().equals(auth.getIdentity())) {\n\n LoginAuthenticationToken loginToken = new LoginAuthenticationToken(auth.getUsername(), auth.getUsername(), auth.getExpiration(), auth.getIssuer());\n String jwtToken = jwtService.generateSignedToken(loginToken);\n\n // build the response\n final URI uri = URI.create(generateResourceUri(\"auth\", \"token\"));\n return generateCreatedResponse(uri, jwtToken).build();\n }\n\n }\n return generateNotAuthorizedResponse().build();\n\n }", "public String getAccessToken() {\n if (accessToken == null || (System.currentTimeMillis() > (expirationTime - 60 * 1000))) {\n if (refreshToken != null) {\n try {\n this.refreshAccessToken();\n } catch (IOException e) {\n log.error(\"Error fetching access token\", e);\n }\n }\n }\n\n return accessToken;\n }", "public String getToken(String name){\n\n return credentials.get(name, token);\n }", "@Post(\"/auth\")\n @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_FORM_URLENCODED})\n public Single<TokenResponse> authenticateOauthToken(HttpRequest<?> request) {\n log.info(\"Processing authentication request with dependent API\");\n Optional<String> authHeader = request.getHeaders().getAuthorization();\n if (authHeader.isPresent()) {\n TokenResponse ret = new TokenResponse();\n ret.setAccessToken(onlyValidAccessToken);\n ret.setTokenType(\"bearer\");\n ret.setExpiresIn(3600);\n\n log.info(\"dependent API successfully authenticated us\");\n return Single.just(ret);\n }\n log.info(\"Authentication with API failed\");\n return Single.error(new HttpStatusException(HttpStatus.UNAUTHORIZED, \"auth missing or wrong (1a)\"));\n }", "public static Oauth2AccessToken readAccessToken() {\n Oauth2AccessToken token = new Oauth2AccessToken();\n SharedPrefWrapper sharedPref = SharedPrefWrapper.getInstance();\n\n token.setUid(sharedPref.getWeiboUID());\n token.setToken(sharedPref.getWeiboAccessToken());\n token.setExpiresTime(sharedPref.getWeiboExpiresTime());\n return token;\n }", "public String getToken()\n {\n return ssProxy.getToken();\n }", "public static String getAccessToken(String theCode) throws IOException {\n\t\tString authURL = getAccessTokenURL(theCode);\n\t\tURL token = new URL(authURL);\n\t\tString result = HTTP.readHttpURL(token);\n\t\tString accessToken = null;\n\t\tInteger expires = null;\n\t\tString[] pairs = result.split(\"&\");\n\t\tfor (String pair : pairs) {\n\t\t\tString[] kv = pair.split(\"=\");\n\t\t\tif (kv.length != 2) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Unexpected response in Facebook.getAccessToken()\");\n\t\t\t\treturn (\"Unexpected response\");\n\t\t\t} else {\n\t\t\t\tif (kv[0].equals(\"access_token\")) {\n\t\t\t\t\taccessToken = kv[1];\n\t\t\t\t}\n\t\t\t\tif (kv[0].equals(\"expires\")) {\n\t\t\t\t\texpires = Integer.valueOf(kv[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (accessToken != null && expires != null) {\n\t\t\tSystem.out.println(\"Access token:\" + accessToken);\n\t\t\tSystem.out.println(\"Expires:\" + expires);\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"Access token retreived by Facebook.getAccessToken():\"\n\t\t\t\t\t\t+ accessToken);\n\t\treturn accessToken;\n\t}", "@Override\n public void onResponse(String response) {\n\n try {\n\n SharedPreferences.Editor editor = prefs.edit();\n JSONObject data= new JSONObject(response);\n String token = data.getString(\"access_token\");\n editor.putString(\"token\", token);\n\n getDatosUser(usuario,token);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "public static String getAccessToken() {\n return \"\";\n }", "String getToken(PortalControllerContext portalControllerContext);", "protected UsernamePasswordAuthenticationToken getAuthRequest(HttpServletRequest request) {\n\t\tString username = request.getParameter(\"username\");\n\t\tString password = request.getParameter(\"password\");\n\t\treturn new UsernamePasswordAuthenticationToken(username , password);\n\t}", "public String generateToken(HttpServletRequest request)\r\n\t{\r\n\t\treturn tokensManager.generateToken((HttpServletRequest) request);\r\n\t}", "private static String get_request(String uri, boolean isChecking, String token) throws IOException {\r\n URL url = new URL(uri);\r\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\r\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\r\n connection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.74\");\r\n if (isChecking) {\r\n connection.setRequestProperty(\"Authorization\", token);\r\n }\r\n connection.setRequestMethod(\"GET\");\r\n InputStream responseStream = connection.getInputStream();\r\n if (debug) {\r\n System.out.println(\"GET - \"+connection.getResponseCode());\r\n }\r\n try (Scanner scanner = new Scanner(responseStream)) {\r\n String responseBody = scanner.useDelimiter(\"\\\\A\").next();\r\n if (debug) {\r\n System.out.println(responseBody);\r\n }\r\n return responseBody;\r\n } catch (Exception e) {\r\n return \"ERROR\";\r\n }\r\n }", "void performTokenRequest() throws MsalClientException, MsalServiceException {\n throwIfNetworkNotAvailable();\n\n final Oauth2Client oauth2Client = new Oauth2Client(mRequestContext);\n buildRequestParameters(oauth2Client);\n\n final TokenResponse tokenResponse;\n try {\n tokenResponse = oauth2Client.getToken(mAuthRequestParameters.getAuthority());\n } catch (final IOException e) {\n Logger.error(TAG, mRequestContext, \"Token request failed with error: \"\n + e.getMessage(), e);\n throw new MsalClientException(MsalClientException.IO_ERROR, \"Auth failed with the error \" + e.getMessage(), e);\n }\n\n mTokenResponse = tokenResponse;\n }", "public String getToken(final HttpServletRequest request) {\n final String param = ofNullable(request.getHeader(AUTHORIZATION))\n .orElse(request.getParameter(\"t\"));\n\n return ofNullable(param)\n .map(value -> removeStart(value, BEARER))\n .map(String::trim)\n .orElseThrow(() -> new BadCredentialsException(Constants.AUTHENTICATION_FILTER_MISSING_TOKEN));\n }", "@Nullable\n private String fetchToken() throws IOException {\n try {\n return GoogleAuthUtil.getToken(mActivity, mEmail, mScope);\n } catch (UserRecoverableAuthException ex) {\n // GooglePlayServices.apk is either old, disabled, or not present\n // so we need to show the user some UI in the activity to recover.\n // TODO: complain about old version\n Log.e(\"aqx1010\", \"required Google Play version not found\", ex);\n } catch (GoogleAuthException fatalException) {\n // Some other type of unrecoverable exception has occurred.\n // Report and log the error as appropriate for your app.\n Log.e(\"aqx1010\", \"fatal authorization exception\", fatalException);\n }\n return null;\n }", "ResponseEntity<Response> me(String token);", "public String generateAccessToken() {\n return accessTokenGenerator.generate().toString();\n }", "public GetToken.Req getGetTokenReq() {\n return instance.getGetTokenReq();\n }", "java.lang.String getRemoteToken();", "public Token createAuthorizationToken(User user);" ]
[ "0.7615907", "0.7615907", "0.75174445", "0.7496002", "0.7453951", "0.72349906", "0.70693845", "0.7024268", "0.70055133", "0.69803125", "0.69801515", "0.6964778", "0.69373196", "0.69193715", "0.68699837", "0.6868124", "0.6861376", "0.6846879", "0.6843419", "0.6813082", "0.6786201", "0.67707545", "0.6762358", "0.6753995", "0.67241174", "0.67137766", "0.66943187", "0.66819364", "0.6671581", "0.6669114", "0.662211", "0.6608427", "0.66023695", "0.659094", "0.65764844", "0.6572196", "0.6561086", "0.6559797", "0.6559797", "0.6559797", "0.6559797", "0.6559797", "0.6559797", "0.6537433", "0.65250957", "0.6510628", "0.6503522", "0.64818347", "0.6471992", "0.64646035", "0.6453105", "0.6447508", "0.64332616", "0.64322984", "0.64295816", "0.6408029", "0.6405351", "0.6398983", "0.6387736", "0.63731015", "0.6368976", "0.63654107", "0.6361112", "0.63477653", "0.6332728", "0.6332728", "0.6328629", "0.63232183", "0.63232183", "0.63232183", "0.63232183", "0.63232183", "0.63067657", "0.6292108", "0.6278992", "0.62619877", "0.6260519", "0.62597525", "0.62547547", "0.6252157", "0.62518567", "0.62516385", "0.6248157", "0.6209267", "0.6208952", "0.6190131", "0.618905", "0.617749", "0.61505365", "0.6124041", "0.61207336", "0.6108109", "0.60965395", "0.609038", "0.6077633", "0.60750645", "0.6060092", "0.6029697", "0.6028871", "0.60250765", "0.60223836" ]
0.0
-1
gives the user name for a given access token string
public String getUserNameFromToken(String authToken) { if (null == authToken) { return null; } String[] parts = authToken.split(":"); return parts[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUsernameFromToken(String token);", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "private String getUserName(String authToken) {\n if (authToken != null) {\n try {\n return jwtTokenService.getUsernameFromToken(authToken);\n } catch (final IllegalArgumentException e) {\n LOG.error(\"an error occured during getting username from token\", e);\n return null;\n } catch (final Exception e) {\n LOG.warn(\"the token is expired and not valid anymore\", e);\n }\n } else {\n LOG.warn(\"couldn't find bearer string, will ignore the header\");\n }\n return UUID.randomUUID().toString();\n }", "public String getUsername(String authToken) {\n String username = null;\n try {\n final Claims claims = getClaimsFromToken(authToken);\n username = claims.getSubject();\n } catch (Exception e){\n username = null;\n }\n return username;\n }", "String getUserName();", "String getUserName();", "String getUserName(String userId);", "public String getUsernameFromToken(String token) {\n\t\tString username;\n\t\ttry {\n\t\t\tfinal Claims claims = this.getClaimsFromToken(token);\n\t\t\tusername = claims.getSubject();\n\t\t} catch (Exception e) {\n\t\t\tusername = null;\n\t\t}\n\t\treturn username;\n\t}", "public String getUsernameFromToken() {\n\t\tHttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();\n\t\tfinal String requestTokenHeader = request.getHeader(AUTH);\n\t\tString jwtToken = requestTokenHeader.substring(BEARER.length());\n\t\treturn getClaimFromToken(jwtToken, Claims::getSubject);\n\t}", "public String getUserNameFromJwtToken(String token) {\n return Jwts.parser().setSigningKey(jwtSecretKey.secretKey()).parseClaimsJws(token).getBody().getSubject();\n }", "String getUserUsername();", "public String getUserName(int userId);", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUsernameFromToken(String token) {\n\t\treturn getClaimFromToken(token, Claims::getSubject);\n\t}", "public String getUsernameFromToken(String token) {\n\t\treturn getClaimFromToken(token, Claims::getSubject);\n\t}", "private String getUserName(Callback[] callbacks) throws LoginException\n {\n String userName = ((NameCallback)callbacks[0]).getName();\n if (userName == null) {\n throwLoginException(\"Username not supplied.\");\n }\n System.out.println(\"Username: \"+userName);\n return userName;\n }", "java.lang.String getUser();", "public static String getUserName (String name) {\r\n\r\n char intial = name.charAt (0);\r\n String intialString = \"\";\r\n intialString = intialString.valueOf (intial);\r\n name = intialString.toUpperCase () + name;\r\n\r\n return name;\r\n }", "String extractUserNameFromData(String userInfoDataFromServer);", "private String getLoggedInUserName() {\n try {\n /*\n * Get the user information.\n */\n String userName = ServerUtilities.getServerUserInfo().getName();\n\n if(userName.isEmpty()) {\n return new String(\"Anonymous User\");\n }\n return userName;\n } catch (Exception ignore) {\n }\n\n return new String(\"Anonymous User\");\n }", "private void getUserName() {\n if (mAuth.getCurrentUser() != null) {\n nameOfCurrentUser = mAuth.getCurrentUser().getDisplayName();\n Log.d(TAG, \"getUserName: getDisplayName is not null\");\n if (nameOfCurrentUser != null && nameOfCurrentUser.contains(\" \")) {\n String[] nameArray = nameOfCurrentUser.split(\" \");\n personalWelcomeMessage.setText(\"Hello, \" + nameArray[0]);\n Log.d(TAG, \"Name is: \" + personalWelcomeMessage.getText().toString());\n }\n else if (nameOfCurrentUser != null && !nameOfCurrentUser.contains(\" \")) {\n personalWelcomeMessage.setText(\"Hello, \" + nameOfCurrentUser);\n Log.d(TAG, \"Name is: \" + personalWelcomeMessage.getText().toString());\n }\n else if (nameOfCurrentUser==null){\n personalWelcomeMessage.setText(\"Hello\");\n }\n }\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public String getUserNameFromWebToken(String webToken) {\n\t\treturn Jwts.parser().setSigningKey(jwtSecret).parseClaimsJws(webToken).getBody().getSubject();\n\t}", "private String getUserName( Callback[] callbacks )\n throws LoginException\n {\n String userName = ( ( NameCallback ) callbacks[0] ).getName();\n if ( userName == null ) {\n throwLoginException( \"Username not supplied.\" );\n }\n // Print debugging information\n if ( 1 == 1 ) {\n cLogger.info( \"\\tuserName\\t= \" + userName );\n }\n\n return userName;\n }", "private String getUserName() {\n EditText nameEditText = (EditText) findViewById(R.id.name_edit_text);\n return nameEditText.getText().toString().trim();\n }", "public String getUsernameFromToken(HttpServletRequest request) {\n\t\tfinal String requestTokenHeader = request.getHeader(AUTH);\n\t\tString jwtToken = requestTokenHeader.substring(BEARER.length());\n\t\treturn getClaimFromToken(jwtToken, Claims::getSubject);\n\t}", "public String getUserName();", "public String getUserName() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"USERNAME\", null);\n\t}", "String getCurrentUserDisplayName() throws Exception;", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "String getUser();", "String getUser();", "public static String getUserName() {\n\t\treturn readTestData.getkeyData(\"SignUpDetails\", \"Key\", \"Value\", \"userName\");\n\t}", "public String getUserFromAuth(String authToken) throws AuthTokenNotFoundException {\n if (authTokens.containsKey(authToken)) {\n return authTokens.get(authToken).getUser();\n }\n else {\n String username = persistenceFacade.getUsernameFromAuthToken(authToken);\n if(username == null) throw new AuthTokenNotFoundException();\n return username;\n }\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "public String getName() {\n return (String) getObject(\"username\");\n }", "public String returnUserName() {\n\t\treturn this.registration_username.getAttribute(\"value\");\r\n\t}", "public String getName() {\n return user.getName();\n }", "public String getFriendlyUsername(Context ctx) {\n User user = DBHandler.getInstance(ctx).getUser(getPartnerId());\n String name = getState().toString();\n if (user == null || getState() != State.Open) {\n if (getState() != State.Open) {\n if(getState() == State.Close) {\n name = name + \" - \" + AndroidUtils.getFormattedTime(getTime());\n } else {\n name = ctx.getString(R.string.todays_match);\n }\n }\n } else {\n name = user.getFullName();\n }\n return name;\n }", "private String getUsername(AuthenticationContext context) {\n String username = null;\n for (Integer stepMap : context.getSequenceConfig().getStepMap().keySet())\n if (context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedUser() != null\n && context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedAutenticator()\n .getApplicationAuthenticator() instanceof LocalApplicationAuthenticator) {\n username = String.valueOf(context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedUser());\n break;\n }\n return username;\n }", "@Override\n\t\t\t\tpublic String getUsername() {\n\t\t\t\t\treturn token;\n\t\t\t\t}", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _second.getUserName();\n\t}", "public String getName() {\r\n\t\treturn this.userName;\r\n\t}", "@Override\r\n\tpublic String getFullname(String userId) {\n\t\tif (conn == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tString name = null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT username FROM users WHERE user_id = ? \";\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql);\r\n\t\t\tstatement.setString(1, userId);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tname = rs.getString(\"username\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "String getUserCnName(String userName);", "public static String getShortName(String longName) {\n StringTokenizer strtok = new StringTokenizer(longName,\",\");\n String shortUserName = null;\n if (strtok.countTokens() > 1) {\n while ((null!=strtok) && (strtok.hasMoreTokens())) {\n\n String mytok1 = strtok.nextToken();\n if (null!=mytok1) {\n //filter for the shortened name\n StringTokenizer innerToken = new StringTokenizer(mytok1,\"=\");\n if ((null!=innerToken)&&(innerToken.countTokens()==2)) {\n String key = innerToken.nextToken();\n if (null!=key) {\n if ((key.equalsIgnoreCase(\"cn\"))||(key.equalsIgnoreCase(\"uid\"))) {\n shortUserName = innerToken.nextToken();\n break;\n }\n }\n }\n } //end:if (null!=mytok1) {\n } //end: while\n } else if (longName.contains(\"@\")) {\n shortUserName = longName.substring(0, longName.indexOf(\"@\"));\n }\n return shortUserName;\n }", "public String getUserName() {\n\t\treturn phoneText.getText().toString();\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "public static String getUserName(long requestorId)\n\t {\n\t String fullName = StringPool.BLANK;\n\t try\n\t {\n\t User user = UserLocalServiceUtil.getUserById(requestorId);\n\t fullName = user.getFirstName() + StringPool.SPACE + user.getLastName();\n\t } catch (PortalException e)\n\t {\n\t LOGGER.error(\"Failed to find user details...\" + e.getMessage());\n\t } catch (SystemException e)\n\t {\n\t LOGGER.error(\"User not exist....\" + e.getMessage());\n\t }\n\t return fullName;\n\t }", "private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}", "private String displayUsername() {\n // Get username entered from the previous page and display in the current page\n Intent myIntent = getIntent();\n String nameEntered = myIntent.getStringExtra(\"EditTextValue\");\n String userName = \"Welcome, \" + nameEntered;\n return userName;\n }", "public String getUser_name() {\n return user_name;\n }", "@Override\n public String getUserName() {\n return name;\n }", "public static String onGetLocalUserName(Context context){\n return PreferencesUtils.getString(context, Config.KEY_OF_USER_NAME, \"\");\n }", "@Override\r\n\tpublic String getCurrentUserName() {\r\n\t\tString currentUserName = SecurityContextHolder.getContext().getAuthentication().getName();\r\n\t\treturn currentUserName;\r\n\t}", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _esfTournament.getUserName();\n\t}", "@Override\n\tpublic String getGivenName() {\n\t\treturn user.getUserInfo().getGivenName();\n\t}", "public static String getCurrentUserFullName() {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n String username = getCurrentUsername();\n User user = directoryManager.getUserByUsername(username);\n if (user != null && user.getFirstName() != null && user.getFirstName().trim().length() > 0) {\n return user.getFirstName() + \" \" + user.getLastName();\n } else {\n return username;\n }\n }", "String usernameLabel();", "public static String getAuthenticatedUserName(Request request) throws CharonException, UnauthorizedException {\n final String authorization = request.getHeader(SCIMRESTAPIConstants.HEADER_AUTHORIZATION);\n boolean authenticated = false;\n String[] values = null;\n if (authorization != null && authorization.startsWith(SCIMRESTAPIConstants.HEADER_AUTHORIZATION_BASIC)) {\n // Authorization: Basic base64credentials\n String base64Credentials = authorization.substring(SCIMRESTAPIConstants.HEADER_AUTHORIZATION_BASIC.length())\n .trim();\n String credentials = new String(Base64.getDecoder().decode(base64Credentials),\n Charset.forName(SCIMRESTAPIConstants.CHARSET_UTF8));\n // credentials = username:password\n values = credentials.split(\":\", 2);\n if (values.length == 2) {\n //authenticate the user\n UserStoreManager userStoreManager = null;\n try {\n userStoreManager = UserStoreManagerFactory.getUserStoreManager();\n authenticated = userStoreManager.doAuthenticate(values[0], values[1]);\n } catch (UserStoreException e) {\n throw new CharonException(\"Error while authenticating user\", e);\n }\n }\n }\n\n if (authenticated) {\n return values[0];\n } else {\n throw new UnauthorizedException(\"User not authenticated\");\n }\n }", "@AutoEscape\n\tpublic String getUser_name();", "public String getGoogleUserFirstName(){\n return (String) attributes.get(GOOGLE_USER_FIRST_NAME);\n }", "public void onGetName(String user,String name);", "String getAccessToken();", "String getAccessToken();", "public String fetchNameFromId(long id){\n String response = zendeskAPI.makeGetRequest(USER_REQUEST + id + \".json\");\n return JSONParser.parseUserStringForName(response);\n }", "public String getUserName() {\n\t\t\treturn name;\n\t\t}", "private String getUser(String name) {\n\t\treturn null;\n\t}", "public String getName() {\r\n\t\treturn username;\r\n\t}", "public String getUserName() {\n return sessionData.getUserName();\n }", "public String extractUserNameFromRequest(HttpServletRequest httpRequest) {\n\t\tString authToken = extractAuthTokenFromRequest(httpRequest);\n\t\tString userName = getUserNameFromToken(authToken);\n\t\treturn userName;\n\t}", "public String getUserName(String userId) throws Exception {\n\t\tString userName = \"\";\n\t\tElement empEL = getUserInfo(userId);\n\t\tif (empEL != null) {\n\t\t\tuserName = empEL.getAttributeValue(\"userName\");\n\t\t}\n\t\treturn userName;\n\t}", "private String getQualifiedMetricName(String metricName) {\n try {\n if (SecurityUtils.isAuthenticationEnabled(mContext.getClusterConf())\n && mContext.getUserState().getUser() != null) {\n return Metric.getMetricNameWithTags(metricName, MetricInfo.TAG_USER,\n mContext.getUserState().getUser().getName());\n } else {\n return metricName;\n }\n } catch (IOException e) {\n return metricName;\n }\n }", "public String getName() {\n\t\treturn this.username;\n\t}", "public String getUserRealName() {\r\n return userRealName;\r\n }", "public String getName(){\n return username;\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "public String getUserName() {\n return txtUserName().getText();\n }", "private String getPrincipalUsername()\n\t{\n\t\tString userName = null;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails)\n\t\t{\n\t\t\tuserName = ((UserDetails) principal).getUsername();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tuserName = principal.toString();\n\t\t}\n\t\treturn userName;\n\t}", "public String getUserName()\n\t{\n\t\treturn this.userName;\n\t}", "public User getUserByName(String username);", "public User getUserByName(String username);" ]
[ "0.7640887", "0.7154689", "0.7154689", "0.7154689", "0.7050197", "0.6934308", "0.6877877", "0.6877877", "0.68470323", "0.6695333", "0.6672223", "0.6666185", "0.6651076", "0.66380876", "0.6603804", "0.6603804", "0.6603804", "0.6603804", "0.6603804", "0.6603804", "0.6603804", "0.6603804", "0.6603804", "0.6585082", "0.6585082", "0.65587026", "0.6551199", "0.6537103", "0.6468019", "0.64448404", "0.64404684", "0.6435288", "0.64251536", "0.6414259", "0.63896143", "0.6371466", "0.6362629", "0.6357516", "0.632955", "0.6328934", "0.6319241", "0.63174134", "0.63174134", "0.62839085", "0.62521076", "0.62429047", "0.62429047", "0.62429047", "0.62429047", "0.62429047", "0.62429047", "0.62384593", "0.61305326", "0.6108282", "0.60883987", "0.6085766", "0.6081399", "0.60812455", "0.608061", "0.6063837", "0.6043857", "0.60372657", "0.60207266", "0.60175586", "0.60175586", "0.5987391", "0.5984347", "0.596798", "0.59517825", "0.5938145", "0.593214", "0.59286684", "0.5928495", "0.5905274", "0.5904723", "0.5900601", "0.5899619", "0.5894759", "0.58894837", "0.58863646", "0.5882327", "0.5882327", "0.5880908", "0.5859017", "0.5854394", "0.5850945", "0.5849341", "0.5834476", "0.5828293", "0.58216363", "0.5819721", "0.5819598", "0.5817504", "0.5806878", "0.5806878", "0.58057356", "0.5801333", "0.5801112", "0.5798624", "0.5798624" ]
0.70345116
5
Retrieves user name from HttpServletRequest
public String extractUserNameFromRequest(HttpServletRequest httpRequest) { String authToken = extractAuthTokenFromRequest(httpRequest); String userName = getUserNameFromToken(authToken); return userName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getUserRealName(HttpServletRequest request) {\n String result = null;\n String userName = (String) request.getSession().getAttribute(\"userName\");\n if (userName != null && !userName.equals(\"\")) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null) {\n result = user.getRealName();\n }\n }\n return result;\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "String getUserName();", "String getUserName();", "protected String getUsernameFromSession(HttpServletRequest request) {\n\n\t\tHttpSession currentSession = request.getSession();\n\t\tif (currentSession.isNew())\n\t\t\treturn null;\n\n\t\treturn (String) currentSession.getAttribute(StringConstants.ATTRIBUTE_USERNAME_NAME);\n\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}", "public String getUsernameFromToken(HttpServletRequest request) {\n\t\tfinal String requestTokenHeader = request.getHeader(AUTH);\n\t\tString jwtToken = requestTokenHeader.substring(BEARER.length());\n\t\treturn getClaimFromToken(jwtToken, Claims::getSubject);\n\t}", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "String getUserUsername();", "java.lang.String getUser();", "@Override\n\tpublic String getUsername(Context ctx){\n\t\treturn ctx.session().get(\"username\");\n\t}", "@Override\r\n\tpublic String getCurrentUserName() {\r\n\t\tString currentUserName = SecurityContextHolder.getContext().getAuthentication().getName();\r\n\t\treturn currentUserName;\r\n\t}", "String getUser();", "String getUser();", "public String getUserName() {\n return sessionData.getUserName();\n }", "private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "public String getUserName();", "public String getName() {\n return (String) getObject(\"username\");\n }", "private String getLoggedInUserName() {\n try {\n /*\n * Get the user information.\n */\n String userName = ServerUtilities.getServerUserInfo().getName();\n\n if(userName.isEmpty()) {\n return new String(\"Anonymous User\");\n }\n return userName;\n } catch (Exception ignore) {\n }\n\n return new String(\"Anonymous User\");\n }", "public String getUsernameFromToken() {\n\t\tHttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();\n\t\tfinal String requestTokenHeader = request.getHeader(AUTH);\n\t\tString jwtToken = requestTokenHeader.substring(BEARER.length());\n\t\treturn getClaimFromToken(jwtToken, Claims::getSubject);\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "public static String getUserName(long requestorId)\n\t {\n\t String fullName = StringPool.BLANK;\n\t try\n\t {\n\t User user = UserLocalServiceUtil.getUserById(requestorId);\n\t fullName = user.getFirstName() + StringPool.SPACE + user.getLastName();\n\t } catch (PortalException e)\n\t {\n\t LOGGER.error(\"Failed to find user details...\" + e.getMessage());\n\t } catch (SystemException e)\n\t {\n\t LOGGER.error(\"User not exist....\" + e.getMessage());\n\t }\n\t return fullName;\n\t }", "public User getUserFromRequest() {\n final String requestTokenHeader = request.getHeader(\"Authorization\");\n final String token = requestTokenHeader.substring(7);\n final String username = jwtService.getUsername(token);\n return userRepository.findByUsername(username);\n\t}", "public static String getUserNameCurrent(HttpServletRequest request) {\n \tObjectMapper mapper = new ObjectMapper(); \n PayLoadBean bean = new PayLoadBean(); \n try { \n bean = mapper.readValue(descifrarBase64(obtenerTokenAcceso(request)), PayLoadBean.class);\n } catch (Exception e) {\n // TODO: handle exception\n return null;\n }\n return bean.getSub().toLowerCase().trim(); \n }", "protected String getTwitterUser(final HttpServletRequest request,\n \t\t\tfinal HttpServletResponse response)\n \t{\n \t\treturn (String) request.getSession().getServletContext()\n \t\t\t\t.getAttribute(ContextListener.TWITTER_USER_NAME);\n \t}", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}", "public String getuserName() {\r\n return (String)getNamedWhereClauseParam(\"userName\");\r\n }", "public String getUserName() {\n return (String) getAttributeInternal(USERNAME);\n }", "protected String getEntryName( HttpServletRequest request )\n {\n return (String) request.getParameter( ENTRY_NAME_HTTP_PARAM );\n }", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "static String getUserName() {\n return System.getProperty(\"user.name\");\n }", "@Override\n public String getUserName() {\n return name;\n }", "public final String getUser() {\n return username;\n }", "String getUserName(String userId);", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _paper.getUserName();\n\t}", "public String getName() {\r\n\t\treturn this.userName;\r\n\t}", "private String getUserName() {\n EditText nameEditText = (EditText) findViewById(R.id.name_edit_text);\n return nameEditText.getText().toString().trim();\n }", "@AutoEscape\n\tpublic String getUser_name();", "@Override\n public java.lang.String getUserName() {\n return _partido.getUserName();\n }", "public static String getAuthenticatedUserName(Request request) throws CharonException, UnauthorizedException {\n final String authorization = request.getHeader(SCIMRESTAPIConstants.HEADER_AUTHORIZATION);\n boolean authenticated = false;\n String[] values = null;\n if (authorization != null && authorization.startsWith(SCIMRESTAPIConstants.HEADER_AUTHORIZATION_BASIC)) {\n // Authorization: Basic base64credentials\n String base64Credentials = authorization.substring(SCIMRESTAPIConstants.HEADER_AUTHORIZATION_BASIC.length())\n .trim();\n String credentials = new String(Base64.getDecoder().decode(base64Credentials),\n Charset.forName(SCIMRESTAPIConstants.CHARSET_UTF8));\n // credentials = username:password\n values = credentials.split(\":\", 2);\n if (values.length == 2) {\n //authenticate the user\n UserStoreManager userStoreManager = null;\n try {\n userStoreManager = UserStoreManagerFactory.getUserStoreManager();\n authenticated = userStoreManager.doAuthenticate(values[0], values[1]);\n } catch (UserStoreException e) {\n throw new CharonException(\"Error while authenticating user\", e);\n }\n }\n }\n\n if (authenticated) {\n return values[0];\n } else {\n throw new UnauthorizedException(\"User not authenticated\");\n }\n }", "public String getUser() {\r\n\t\treturn _userName;\r\n\t}", "private String getUsername(AuthenticationContext context) {\n String username = null;\n for (Integer stepMap : context.getSequenceConfig().getStepMap().keySet())\n if (context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedUser() != null\n && context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedAutenticator()\n .getApplicationAuthenticator() instanceof LocalApplicationAuthenticator) {\n username = String.valueOf(context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedUser());\n break;\n }\n return username;\n }", "public String getName() {\n return user.getName();\n }", "public String getUser_name() {\n return user_name;\n }", "public String getUserName() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"USERNAME\", null);\n\t}", "public static String getUserName() {\n\t\treturn readTestData.getkeyData(\"SignUpDetails\", \"Key\", \"Value\", \"userName\");\n\t}", "@Override\n public String getUserName() throws ResourceException {\n return session.getUserID();\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\n return userName;\n }", "private String getPrincipal() {\n\t\tString userName = null;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principal).getUsername();\n\t\t} else {\n\t\t\tuserName = principal.toString();\n\t\t}\n\t\treturn userName;\n\t}", "private String getPrincipal() {\r\n\t\tString userName = null;\r\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n\r\n\t\tif (principal instanceof UserDetails) {\r\n\t\t\tuserName = ((UserDetails) principal).getUsername();\r\n\t\t} else {\r\n\t\t\tuserName = principal.toString();\r\n\t\t}\r\n\t\treturn userName;\r\n\t}", "private String getPrincipalUsername()\n\t{\n\t\tString userName = null;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails)\n\t\t{\n\t\t\tuserName = ((UserDetails) principal).getUsername();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tuserName = principal.toString();\n\t\t}\n\t\treturn userName;\n\t}", "public String getUserName()\n\t{\n\t\treturn this.userName;\n\t}", "public String getCurrentUserUsername(){\n Subject subject = org.apache.shiro.SecurityUtils.getSubject();\n if(subject!=null){\n return subject.getPrincipal().toString();\n }else{\n return \"User\";\n }\n }", "public String getUserName()\n {\n return userName;\n }", "public String getUserName(){\n\t\treturn this.userName;\n\t}", "public String getUserName() {\n return txtUserName().getText();\n }", "private String getUserData() { \n\t\t \n\t\tString userName;\n\t\tObject principial = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\t\n\t\tif(principial instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principial).getUsername();\n\t\t} else {\n\t\t\tuserName = principial.toString(); \n\t\t}\n\t\treturn userName; \n\t}", "public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}", "public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}", "public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}", "public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}", "private String getUser(String name) {\n\t\treturn null;\n\t}", "private String getPrincipal(){\n String userName = null;\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n if (principal instanceof UserDetails) {\n userName = ((UserDetails)principal).getUsername();\n } else {\n userName = principal.toString();\n }\n return userName;\n }", "private String getPrincipal(){\n String userName = null;\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n if (principal instanceof UserDetails) {\n userName = ((UserDetails)principal).getUsername();\n } else {\n userName = principal.toString();\n }\n return userName;\n }", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "public String getUserName() {\n return userName;\n }", "String getUserName() {\r\n\t\t\treturn username;\r\n\t\t}", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }" ]
[ "0.7772605", "0.75906193", "0.75906193", "0.75906193", "0.7372811", "0.7372811", "0.7371112", "0.7304982", "0.7304982", "0.72637266", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7261581", "0.7168025", "0.71052617", "0.71011686", "0.7089583", "0.69881", "0.69881", "0.6978022", "0.69536185", "0.6937413", "0.6937413", "0.6937413", "0.6937413", "0.6937413", "0.6937413", "0.69373167", "0.69197655", "0.69092363", "0.6900934", "0.6879993", "0.6879993", "0.68649644", "0.6830348", "0.6822551", "0.6816642", "0.68147767", "0.681098", "0.68039465", "0.679689", "0.6749955", "0.6749955", "0.6745756", "0.6715039", "0.6712895", "0.67106855", "0.6701708", "0.66979975", "0.66968524", "0.6694119", "0.66915953", "0.6686543", "0.6672389", "0.6662066", "0.6659727", "0.66591316", "0.6655495", "0.66515607", "0.6646534", "0.66411823", "0.66411823", "0.66411823", "0.66411823", "0.66410273", "0.66400343", "0.6638037", "0.6635965", "0.66291666", "0.66206616", "0.6616251", "0.6614653", "0.6613674", "0.6611589", "0.6603053", "0.6603053", "0.6603053", "0.6603053", "0.65984714", "0.659217", "0.659217", "0.6588122", "0.65819407", "0.6578863", "0.65717834", "0.65717834", "0.65717834", "0.65717834", "0.65717834", "0.65717834", "0.65717834", "0.65717834", "0.65717834", "0.65717834" ]
0.78382915
0
Constructs a DIDURL object with the given DID context and a url string.
public DIDURL(DID context, String url) throws MalformedDIDURLException { Parser parser = new Parser(); parser.parse(context, url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "public static URL createURL(String stringURL, final Context context) {\n URL url = null;\n try {\n url = new URL(stringURL);\n } catch (MalformedURLException e) {\n //use a handler to create a toast on the UI thread\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(context, \"Error: Check URL is valid.\", Toast.LENGTH_SHORT)\n .show();\n }\n });\n Log.e(LOG_TAG, \"Error: Check URL is valid.\", e);\n }\n return url;\n }", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "private static URL m23464a(Context context, String str) {\n try {\n return new URL(str);\n } catch (MalformedURLException e) {\n C5376d dVar = C5376d.EXCEPTION;\n StringBuilder sb = new StringBuilder();\n sb.append(\"OMSDK: can't create URL - \");\n sb.append(str);\n C5378f.m23016a(context, dVar, sb.toString(), e.getMessage(), \"\");\n return null;\n }\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Problem building the URL \", e);\n }\n return url;\n }", "private static URL createURL(String urlString) {\n\n // Create an empty url\n URL url = null;\n\n try {\n // Try to make a url from urlString param\n url = new URL(urlString);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error creating URL: \" + e);\n }\n\n //Return the new url\n return url;\n }", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "private URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public static URL createURL(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n }\n catch (MalformedURLException m) {\n Log.e(LOG_TAG,\"Error creating URL\",m);\n }\n return url;\n }", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "private static URL generateUrl(String requestedUrlString) {\n URL url = null;\n\n try {\n url = new URL(requestedUrlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating a URL object : generateURL() block\", e);\n }\n return url;\n }", "public static URL buildurl(String url1)\n {\n URL url = null;\n try\n {\n url = new URL(url1.toString());\n\n }\n catch(MalformedURLException e)\n {\n e.printStackTrace();\n }\n return url;\n }", "private static URL createURL(String requestedUrl) {\n URL url = null;\n try {\n url = new URL(requestedUrl);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"createdUrl: Problem building URL\", e);\n }\n return url;\n }", "private static URL stringToUrl(String stringUrl) throws MalformedURLException{\r\n\t\treturn new URL(stringUrl);\r\n\t}", "@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "public final String getURL(final String id) {\n\t\tString url = \"\";\n\t\turl += \"http://\";\n\t\turl += CONFIGURATION.PENTAHO_IP;\n\t\turl += \":\";\n\t\turl += CONFIGURATION.PENTAHO_PORTNUMBER;\n\t\turl += CONFIGURATION.CDASOLUTION_ADDRESS;\n\t\turl += CONFIGURATION.CDA_METHOD;\n\t\turl += \"?\";\n\t\turl += \"solution=\";\n\t\turl += CONFIGURATION.CDA_SOLUTION;\n\t\turl += \"&\";\n\t\turl += \"path=\";\n\t\turl += CONFIGURATION.CDA_PATH.replace(\"/\", \"%2F\");\n\t\turl += \"&\";\n\t\turl += \"file=\";\n\t\turl += CONFIGURATION.CDA_FILEFULLNAME;\n\t\turl += \"&\";\n\t\turl += \"dataAccessId=\";\n\t\turl += id;\n\t\treturn url;\n\t}", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public static URL str2url( String strUrl )\r\n {\r\n try\r\n {\r\n URL url = new URL( strUrl );\r\n return url;\r\n }\r\n catch( MalformedURLException e )\r\n {\r\n Log.e( TAG, \"\", e );\r\n throw new IllegalArgumentException( \"str2url\", e );\r\n } \r\n }", "Builder addUrl(String value);", "protected URL stringToURL(String urlString){\n try{\n URL url = new URL(urlString);\n return url;\n }catch(MalformedURLException e){\n e.printStackTrace();\n }\n return null;\n }", "private OfbizUrlBuilder(ControllerConfig config, WebSiteProperties webSiteProps, String servletPath, String contextPath) {\n this.config = config;\n this.webSiteProps = webSiteProps;\n // SCIPIO: 2018-08-01: this comes in with a trailing slash half the time, strip it here\n // because it complicates everything else for no reason...\n if (servletPath != null && servletPath.endsWith(\"/\")) {\n servletPath = servletPath.substring(0, servletPath.length() - 1);\n }\n this.servletPath = servletPath;\n this.contextPath = contextPath;\n }", "private URL createUrl(String movieId) {\n URL url = null;\n try {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(movieId)\n .appendQueryParameter(\"api_key\", getString(R.string.moviedb_api_key));\n url = new URL(builder.build().toString());\n } catch (Exception exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }", "Builder addUrl(URL value);", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "public static URL convertToUrl(String urlStr) {\n try {\n URL url = new URL(urlStr);\n URI uri = new URI(url.getProtocol(), url.getUserInfo(),\n url.getHost(), url.getPort(), url.getPath(),\n url.getQuery(), url.getRef());\n url = uri.toURL();\n return url;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "URI createURI();", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public UvScanUrl(String stringID , String baseUrl)\r\n\t{\r\n\t\tthis.stringID = stringID;\r\n\t\tthis.baseUrl = baseUrl;\r\n\t\t\r\n\t\t\r\n\t\tfollowsConfigUrlPattern = false;\r\n\t\tfollowsConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tfollowsExactConfigUrlPattern = false;\r\n\t\tfollowsExactConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tisBaseUrlLocalized = false;\r\n\t\tisRedirectedUrlLocalized = false;\r\n\t\t\r\n\t\tisDeleted=false;\r\n\t\tisErrorPage= true;\r\n\r\n\t\texceptionType =UrlExceptionLevel.None;\r\n\t\t\r\n\t\tbaseUrlPatternMatchResult = \"\";\r\n\t\tredirectedUrlPatternMatchResult = \"\";\r\n\t\t\r\n\t\texceptionOccurred = \"\";\r\n\t}", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n url_ = value;\n onChanged();\n return this;\n }", "private URL createURL() {\n try {\n Log.d(\"URL\", \"create\");\n String urlString = \"http://cs262.cs.calvin.edu:8084/cs262dCleaningCrew/task/cjp27\";\n return new URL(urlString);\n } catch (Exception e) {\n Toast.makeText(this, getString(R.string.connection_error), Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "private String generateURL(Integer instanceID, String key) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/target?targetID=\" + key;\n\t}", "@Returns(\"targetId\")\n String createTarget(\n @ParamName(\"url\") String url,\n @Optional @ParamName(\"width\") Integer width,\n @Optional @ParamName(\"height\") Integer height,\n @Optional @ParamName(\"browserContextId\") String browserContextId,\n @Experimental @Optional @ParamName(\"enableBeginFrameControl\") Boolean enableBeginFrameControl,\n @Optional @ParamName(\"newWindow\") Boolean newWindow,\n @Optional @ParamName(\"background\") Boolean background);", "public static GenericUrl getGenericURL(String endPoint) {\n\t\tString tempURL = getURL(endPoint);\n\t\tGenericUrl url = null;\n\t\tif (!(\"\".equalsIgnoreCase(tempURL))) {\n\t\t\turl = new GenericUrl(getURL(endPoint));\n\t\t}\n\n\t\treturn url;\n\t}", "@Nonnull public URL buildURL() throws MalformedURLException {\n installTrustStore();\n \n if (disableNameChecking) {\n final HostnameVerifier allHostsValid = new HostnameVerifier() {\n public boolean verify(final String hostname, final SSLSession session) {\n return true;\n }\n }; \n HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid); \n }\n \n final StringBuilder builder = new StringBuilder(getURL());\n if (getPath() != null) {\n builder.append(getPath());\n }\n\n return new URL(doBuildURL(builder).toString());\n }", "private JDBCMiddler(String controlador, String url) {\n this.controlador = controlador;\n this.url = url;\n }", "protected static ConfigurationOption<URL> createUrlOption(String key, URL dflt) {\r\n return new ConfigurationOption<URL>(key, dflt, PropertyReader.URL_READER);\r\n }", "public static AttendeeDetailFragment newInstance(String url, String userid) {\n AttendeeDetailFragment fragment = new AttendeeDetailFragment();\n Bundle args = new Bundle();\n args.putString(URL, url);\n args.putString(USER_ID, userid);\n fragment.setArguments(args);\n return fragment;\n }", "public URL makeFullUrl(String scrapedString, URL base);", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public static URL createURL(String encodedURL) throws MalformedURLException, URISyntaxException {\n\n /* The encoded URL is transformed to an URL representation */\n URL anURL = new URL(encodedURL);\n\n /* And the URL is validated on its syntax */\n anURL.toURI();\n\n return anURL;\n }", "public ArticleListWeb(Context context, String url) {\n\t\tsuper(context);\n\t\tmURL = url;\n\t\t\n\t\t\n\t}", "public Link(String url) {\n try {\n uri = new URL(fix(url)).toURI();\n } catch (Exception e) {\n uri = URI.create(\"\");\n }\n }", "@Override\n\tpublic URL getURL(String uri) throws MalformedURLException {\n\t\tif (uri.length() == 0) {\n\t\t\tthrow new MalformedURLException(\"Empty URI\");\n\t\t}\n\t\tURL url;\n\t\tif (uri.indexOf(\"://\") < 0) {\n\t\t\turl = new URL(getBaseURL(), uri);\n\t\t} else {\n\t\t\turl = new URL(uri);\n\t\t}\n\t\treturn url;\n\t}", "private static URL buildFinalMovieDbURL(String urlString){\n Uri movieDbBuiltUri = Uri.parse(urlString).buildUpon()\n .appendQueryParameter(APIKEY_PARAM, BuildConfig.MOVIE_DB_API_KEY)\n .build();\n\n //Now creates an URL based on the created Uri\n URL finalMovieDbURL = null;\n\n try {\n finalMovieDbURL = new URL(movieDbBuiltUri.toString());\n } catch (MalformedURLException e) {\n Log.e(ERROR_TAG, e.getMessage());\n }\n\n return finalMovieDbURL;\n }", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public UrlBuilder compileUrlBuilder(UrlBuilder baseUrl, String resource, String id) {\n UrlBuilder url = new UrlBuilder(baseUrl);\n url.addPathSegment(resource);\n\n if (id != null) {\n url.addParameter(\"id\", id);\n }\n\n return url;\n }", "public static TextComponent assembleURLComponent(String urlPart) {\n TextComponent urlComp = new TextComponent(urlPart);\n urlComp.setClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, urlPart));\n urlComp.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"Open Link\").create()));\n urlComp.setUnderlined(Boolean.TRUE);\n return urlComp;\n }", "public Url getUrl(Oid oid) {\n\t\treturn retrieveByOid(oid);\n\t}", "public static URL buildUrl() {\n Uri builtUri = Uri.parse(CONTENT_JSON_URL).buildUpon()\n .build();\n\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }", "@NotNull public Builder url(@NotNull String url) {\n putValue(\"url\", url);\n return this;\n }", "@NotNull public Builder url(@NotNull String url) {\n putValue(\"url\", url);\n return this;\n }", "@NotNull public Builder url(@NotNull String url) {\n putValue(\"url\", url);\n return this;\n }", "public T caseURL(URL object)\n {\n return null;\n }", "public UrlInfo(String urlString) throws IOException {\n URL url = new URL(urlString);\n this.urlConnection = url.openConnection();\n }", "public static URL toURL(String filename) throws MalformedURLException {\n try {\n return new URL(filename);\n }\n catch (Exception e) {\n return new File(filename).toURI().toURL();\n }\n\t}", "private void createFakeAssetURLMapEntry(MarinerRequestContext context,\n String url) {\n // copied from ObjectElement implementation \n ApplicationContext ac = ContextInternals.getApplicationContext(context);\n PackageResources pr = ac.getPackageResources();\n if (pr != null) {\n PackagedURLEncoder packagedURLEncoder = ac.getPackagedURLEncoder();\n if (packagedURLEncoder != null) {\n String encoded = packagedURLEncoder.getEncodedURI(url);\n PackageResources.Asset prAsset = new PackageResources.Asset(\n url, false);\n pr.addAssetURLMapping(encoded, prAsset);\n }\n }\n }", "private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}", "public final void mo22574a(Context context, String str) {\n C8271i.m35386b(context, \"context\");\n String str2 = \"url\";\n C8271i.m35386b(str, str2);\n Intent intent = new Intent(context, WebActivity.class);\n intent.addFlags(268435456);\n intent.putExtra(str2, str);\n context.startActivity(intent);\n }", "public URI getUri(String iden) {\r\n\t\tURI rtn = null;\r\n\t\tString url = null;\r\n\t\tStringBuilder strRtn = new StringBuilder(uriBuilder);\r\n\t\tif(isUri(iden)) {\r\n\t\t\tSystem.out.println(\"isUri\");\r\n\t\t\treturn valueFactory.createURI(iden);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\turl = URLEncoder.encode(iden,\"utf-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tstrRtn.append(url);\r\n\t\t\trtn = valueFactory.createURI(strRtn.toString());\r\n\t\t\treturn rtn;\r\n\t\t}\r\n\t}", "public static Uri createUri(Class<? extends Model> type, Long id) {\n final StringBuilder uri = new StringBuilder();\n uri.append(\"content://\");\n uri.append(sAuthority);\n uri.append(\"/\");\n uri.append(Cache.getTableName(type).toLowerCase());\n\n if (id != null) {\n uri.append(\"/\");\n uri.append(id.toString());\n }\n\n return Uri.parse(uri.toString());\n }", "public LDAPUrl(String host, int port, String dn)\n {\n\t\turl = new com.github.terefang.jldap.ldap.LDAPUrl( host, port, dn);\n\t\treturn;\n }", "private URL createURLaddUser() {\n try {\n String urlString;\n\n urlString = \"http://cs262.cs.calvin.edu:8081/fitness/users\";\n\n return new URL(urlString);\n\n } catch (Exception e) {\n Toast.makeText(this, \"Failed to make URL\", Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "public String generateURL(XYDataset dataset, int series, int item) { return getURL(series, item); }", "Builder addDiscussionUrl(URL value);", "String createUrl() throws JspException {\n\t\tAssert.state(this.value != null, \"No value set\");\n\t\tHttpServletRequest request = (HttpServletRequest) this.pageContext.getRequest();\n\t\tHttpServletResponse response = (HttpServletResponse) this.pageContext.getResponse();\n\n\t\tStringBuilder url = new StringBuilder();\n\t\tif (this.type == UrlType.CONTEXT_RELATIVE) {\n\t\t\t// add application context to url\n\t\t\tif (this.context == null) {\n\t\t\t\turl.append(request.getContextPath());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (this.context.endsWith(\"/\")) {\n\t\t\t\t\turl.append(this.context, 0, this.context.length() - 1);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\turl.append(this.context);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.type != UrlType.RELATIVE && this.type != UrlType.ABSOLUTE && !this.value.startsWith(\"/\")) {\n\t\t\turl.append('/');\n\t\t}\n\t\turl.append(replaceUriTemplateParams(this.value, this.params, this.templateParams));\n\t\turl.append(createQueryString(this.params, this.templateParams, (url.indexOf(\"?\") == -1)));\n\n\t\tString urlStr = url.toString();\n\t\tif (this.type != UrlType.ABSOLUTE) {\n\t\t\t// Add the session identifier if needed\n\t\t\t// (Do not embed the session identifier in a remote link!)\n\t\t\turlStr = response.encodeURL(urlStr);\n\t\t}\n\n\t\t// HTML and/or JavaScript escape, if demanded.\n\t\turlStr = htmlEscape(urlStr);\n\t\turlStr = (this.javaScriptEscape ? JavaScriptUtils.javaScriptEscape(urlStr) : urlStr);\n\n\t\treturn urlStr;\n\t}", "public final URL mo15944a(String str) {\n try {\n return new URL(String.format(\"https://%s/%s/%s\", new Object[]{\"firebaseinstallations.googleapis.com\", \"v1\", str}));\n } catch (MalformedURLException e) {\n throw new C4291f(e.getMessage(), C4291f.C4292a.UNAVAILABLE);\n }\n }", "public static void openUrl(final Activity context, final String url) {\n openUrl(context, url, false);\n }", "public static void openUrl(final Activity context, final String url) {\n openUrl(context, url, false);\n }", "public Urls(IDomainModel model) {\n\t\tsuper(model);\n\t}", "public /* synthetic */ PhotoViewUrl(String str, String str2, String str3, Rect rect2, Integer num, String str4, int i, DefaultConstructorMarker defaultConstructorMarker) {\n this(str, str2, str3, rect2, num, (i & 32) != 0 ? \"\" : str4);\n }", "public test_SDURL(String n) {\n super(n);\n }", "private String createURLWithPort(String uri) {\n\t\treturn HOST + port + uri;\n\t}", "protected String toString(DID context) {\n\t\tStringBuilder builder = new StringBuilder(512);\n\t\tif (did != null && (context == null || !did.equals(context)))\n\t\t\tbuilder.append(did);\n\n\t\tif (path != null && !path.isEmpty())\n\t\t\tbuilder.append(path);\n\n\t\tif (query != null && !query.isEmpty())\n\t\t\tbuilder.append(\"?\").append(getQueryString());\n\n\t\tif (fragment != null && !fragment.isEmpty())\n\t\t\tbuilder.append(\"#\").append(getFragment());\n\n\t\treturn builder.toString();\n\t}", "private void processUrl (String stringUrl)\n\t{\n\t\tURL correctUrl=null;\n\t\t// we need the URL\n\t\t// we first try to convert it directly\n\t\ttry {\n\t\t\tcorrectUrl=new URL(stringUrl);\n\t\t} catch (MalformedURLException e) {System.out.println(\"Not found : \"+stringUrl);return;}\n\n\t\tallInformation.getNemo().addJcamp(stringUrl);\n\t}", "public abstract String makeReplayURI(final String datespec, final String url);", "protected String constructURL(LatLng... points) {\n\t\tCalendar c = Calendar.getInstance();\n\t\tint hour = c.get(Calendar.HOUR_OF_DAY);\n\t\tlong time = Math.round(c.getTimeInMillis() / 1000);\n\t\tif(hour > 0 && hour < 6) {\n\t\t\ttime = 1343340000;\n\t\t}\n\t\tLatLng start = points[0];\n\t\tLatLng dest = points[1];\n\t\tString sJsonURL = \"http://maps.googleapis.com/maps/api/directions/json?\";\n\n\t\tfinal StringBuffer mBuf = new StringBuffer(sJsonURL);\n\t\tmBuf.append(\"origin=\");\n\t\tmBuf.append(start.latitude);\n\t\tmBuf.append(',');\n\t\tmBuf.append(start.longitude);\n\t\tmBuf.append(\"&destination=\");\n\t\tmBuf.append(dest.latitude);\n\t\tmBuf.append(',');\n\t\tmBuf.append(dest.longitude);\n\t\tmBuf.append(\"&sensor=true&mode=\");\n\t\tmBuf.append(_mTravelMode.getValue());\n\t\tmBuf.append(\"&departure_time=\");\n\t\tmBuf.append(time);\n\n return mBuf.toString();\n\t}", "public TagTAS(String newurl) {\n\t\tstrbaseUrlTas=newurl;\n\t\ttry {\n\t\t\turlTas = new URL(newurl);\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t\turlValid=false;\n\t\t}\n\t\turlValid=true;\n\t\t\n\t\t\n\t}", "Object create(URL url) throws IOException, SAXException, ParserConfigurationException;", "private String createUrlWithPort(String gadgetUrl) {\n try {\n URL origUrl = new URL(gadgetUrl);\n URL urlWithPort = null;\n String origHost = origUrl.getHost();\n if (origUrl.getPort() <= 0 && origHost != null && origHost.length() != 0\n && !STAR.equals(origHost)) {\n if (origUrl.getProtocol().equalsIgnoreCase(HTTP)) {\n urlWithPort = new URL(origUrl.getProtocol(), origUrl.getHost(), HTTP_PORT, origUrl.getFile());\n }\n else if (origUrl.getProtocol().equalsIgnoreCase(HTTPS)) {\n urlWithPort = new URL(origUrl.getProtocol(), origUrl.getHost(), HTTPS_PORT, origUrl.getFile());\n }\n return urlWithPort == null ? origUrl.toString() : urlWithPort.toString();\n } else {\n return origUrl.toString();\n }\n } catch (MalformedURLException e) {\n return gadgetUrl;\n }\n }", "public URIBuilder(final String string) {\n super();\n try {\n digestURI(new URI(string));\n } catch (final URISyntaxException e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "public Builder setVmUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n vmUrl_ = value;\n onChanged();\n return this;\n }", "public URL makeBase(URL startingURL);", "public static String formURL(String url)\n\t{\n\t\tString newurl;\n\t\tif (url.contains(\"http://\") || url.contains(\"https://\"))\n\t\t{\n\t\t\tnewurl = url;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewurl = \"http://\" + url;\n\t\t}\n\t\treturn newurl;\n\t}" ]
[ "0.7735603", "0.769393", "0.753104", "0.7095135", "0.66303885", "0.60169274", "0.60110056", "0.59324944", "0.5835787", "0.5824975", "0.5762122", "0.5749308", "0.5744495", "0.5744495", "0.5734601", "0.5662298", "0.5587315", "0.5551192", "0.5520754", "0.55096763", "0.54422754", "0.53047407", "0.5297642", "0.5286709", "0.5284495", "0.5273012", "0.51707196", "0.51467645", "0.51146615", "0.5104085", "0.5080479", "0.506472", "0.50576776", "0.5029295", "0.49795792", "0.4957067", "0.49242544", "0.49152613", "0.49072766", "0.48861694", "0.4844696", "0.48400214", "0.48400214", "0.48372132", "0.48364145", "0.4811325", "0.48068896", "0.47874716", "0.47727883", "0.47663334", "0.4723671", "0.47107464", "0.4694778", "0.46935406", "0.46934167", "0.465608", "0.4646745", "0.463908", "0.46338552", "0.4633251", "0.463025", "0.463025", "0.46180093", "0.46050355", "0.45960867", "0.45921263", "0.4572948", "0.4572948", "0.4572948", "0.45419222", "0.4538403", "0.45304343", "0.45134714", "0.44554254", "0.44519764", "0.44510815", "0.4440689", "0.44362247", "0.4428739", "0.44259354", "0.4411137", "0.44054598", "0.44023046", "0.44014037", "0.44014037", "0.43970716", "0.43936315", "0.43929785", "0.4386101", "0.438517", "0.4382979", "0.43828228", "0.43796453", "0.43782946", "0.43775725", "0.43765375", "0.4372904", "0.43622312", "0.43603322", "0.43506142" ]
0.7176713
3
Constructs a DIDURL object.
public DIDURL(String url) throws MalformedDIDURLException { this(null, url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public DIDURL(DID context, String url) throws MalformedDIDURLException {\n\t\tParser parser = new Parser();\n\t\tparser.parse(context, url);\n\t}", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "URI createURI();", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "private static URL createURL(String requestedUrl) {\n URL url = null;\n try {\n url = new URL(requestedUrl);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"createdUrl: Problem building URL\", e);\n }\n return url;\n }", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "private URL createURL() {\n try {\n Log.d(\"URL\", \"create\");\n String urlString = \"http://cs262.cs.calvin.edu:8084/cs262dCleaningCrew/task/cjp27\";\n return new URL(urlString);\n } catch (Exception e) {\n Toast.makeText(this, getString(R.string.connection_error), Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "private static URL createURL(String urlString) {\n\n // Create an empty url\n URL url = null;\n\n try {\n // Try to make a url from urlString param\n url = new URL(urlString);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error creating URL: \" + e);\n }\n\n //Return the new url\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Problem building the URL \", e);\n }\n return url;\n }", "@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "DD createDD();", "private URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "public Urls(IDomainModel model) {\n\t\tsuper(model);\n\t}", "DL createDL();", "public static URL buildurl(String url1)\n {\n URL url = null;\n try\n {\n url = new URL(url1.toString());\n\n }\n catch(MalformedURLException e)\n {\n e.printStackTrace();\n }\n return url;\n }", "public UrlEncapsulation() {\r\n\t\t\r\n\t\tthis(null\r\n\t\t\t\t, null, null, null, null\r\n\t\t\t\t, false, null, null, null, null, null, null, null);\r\n\t\t\r\n\t}", "Adresse createAdresse();", "private ApiUrlCreator() {\n }", "Link createLink();", "private URL createUrl(String movieId) {\n URL url = null;\n try {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(movieId)\n .appendQueryParameter(\"api_key\", getString(R.string.moviedb_api_key));\n url = new URL(builder.build().toString());\n } catch (Exception exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "private URLHelper() {\n\n }", "@Nonnull public URL buildURL() throws MalformedURLException {\n installTrustStore();\n \n if (disableNameChecking) {\n final HostnameVerifier allHostsValid = new HostnameVerifier() {\n public boolean verify(final String hostname, final SSLSession session) {\n return true;\n }\n }; \n HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid); \n }\n \n final StringBuilder builder = new StringBuilder(getURL());\n if (getPath() != null) {\n builder.append(getPath());\n }\n\n return new URL(doBuildURL(builder).toString());\n }", "private JDBCMiddler(String controlador, String url) {\n this.controlador = controlador;\n this.url = url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "private static URL m23464a(Context context, String str) {\n try {\n return new URL(str);\n } catch (MalformedURLException e) {\n C5376d dVar = C5376d.EXCEPTION;\n StringBuilder sb = new StringBuilder();\n sb.append(\"OMSDK: can't create URL - \");\n sb.append(str);\n C5378f.m23016a(context, dVar, sb.toString(), e.getMessage(), \"\");\n return null;\n }\n }", "SimpleLink createSimpleLink();", "public final String getURL(final String id) {\n\t\tString url = \"\";\n\t\turl += \"http://\";\n\t\turl += CONFIGURATION.PENTAHO_IP;\n\t\turl += \":\";\n\t\turl += CONFIGURATION.PENTAHO_PORTNUMBER;\n\t\turl += CONFIGURATION.CDASOLUTION_ADDRESS;\n\t\turl += CONFIGURATION.CDA_METHOD;\n\t\turl += \"?\";\n\t\turl += \"solution=\";\n\t\turl += CONFIGURATION.CDA_SOLUTION;\n\t\turl += \"&\";\n\t\turl += \"path=\";\n\t\turl += CONFIGURATION.CDA_PATH.replace(\"/\", \"%2F\");\n\t\turl += \"&\";\n\t\turl += \"file=\";\n\t\turl += CONFIGURATION.CDA_FILEFULLNAME;\n\t\turl += \"&\";\n\t\turl += \"dataAccessId=\";\n\t\turl += id;\n\t\treturn url;\n\t}", "public Link(String url) {\n try {\n uri = new URL(fix(url)).toURI();\n } catch (Exception e) {\n uri = URI.create(\"\");\n }\n }", "public static URL createURL(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n }\n catch (MalformedURLException m) {\n Log.e(LOG_TAG,\"Error creating URL\",m);\n }\n return url;\n }", "public static URL buildUrl(Double lat, Double lon) {\n return null;\n }", "public static URL buildUrl() {\n Uri builtUri = Uri.parse(CONTENT_JSON_URL).buildUpon()\n .build();\n\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }", "public LDAPUrl(String host, int port, String dn)\n {\n\t\turl = new com.github.terefang.jldap.ldap.LDAPUrl( host, port, dn);\n\t\treturn;\n }", "private static URL generateUrl(String requestedUrlString) {\n URL url = null;\n\n try {\n url = new URL(requestedUrlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating a URL object : generateURL() block\", e);\n }\n return url;\n }", "final DD utilCreateDDObject(TestProperties utilProperties) {\r\n\t\tPage_ myDocumentsPage\t= createPage(utilProperties, \"PAGE_MY_DOWNLOADS_PROPERTIES_FILE\");\r\n\t\tPage_ viewContactPage\t= createPage(utilProperties, \"PAGE_VIEW_CONTACT_PROPERTIES_FILE\");\r\n\r\n \tDD dd = new DD(myDocumentsPopUp, myDocumentsPage, viewContactPage);\r\n\r\n \treturn dd;\r\n }", "Object create(URL url) throws IOException, SAXException, ParserConfigurationException;", "private UrlDAO() { }", "DataURL(String protocol){\n super(protocol);\n }", "private URL createURLaddUser() {\n try {\n String urlString;\n\n urlString = \"http://cs262.cs.calvin.edu:8081/fitness/users\";\n\n return new URL(urlString);\n\n } catch (Exception e) {\n Toast.makeText(this, \"Failed to make URL\", Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "public URIBuilder() {\n super();\n this.port = -1;\n }", "protected static ConfigurationOption<URL> createUrlOption(String key, URL dflt) {\r\n return new ConfigurationOption<URL>(key, dflt, PropertyReader.URL_READER);\r\n }", "public test_SDURL(String n) {\n super(n);\n }", "public PURL(PURL source) {\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.Protocol != null) {\n this.Protocol = new String(source.Protocol);\n }\n if (source.Namespace != null) {\n this.Namespace = new String(source.Namespace);\n }\n if (source.Qualifiers != null) {\n this.Qualifiers = new Qualifier[source.Qualifiers.length];\n for (int i = 0; i < source.Qualifiers.length; i++) {\n this.Qualifiers[i] = new Qualifier(source.Qualifiers[i]);\n }\n }\n if (source.Subpath != null) {\n this.Subpath = new String(source.Subpath);\n }\n if (source.Version != null) {\n this.Version = new String(source.Version);\n }\n }", "public URI() {\n }", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public Devices(){\n\t\turl = URL;\n\t\ttitle = TITLE;\n\t}", "Builder addUrl(URL value);", "public static URL createURL(String encodedURL) throws MalformedURLException, URISyntaxException {\n\n /* The encoded URL is transformed to an URL representation */\n URL anURL = new URL(encodedURL);\n\n /* And the URL is validated on its syntax */\n anURL.toURI();\n\n return anURL;\n }", "public Database(String url) {\n this.url = url;\n\n File f = new File(url);\n\n if (f.exists()) {\n try {\n f.mkdirs();\n f.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //create table relationship\n LinkedList<String> relationship_attributes = new LinkedList<>();\n relationship_attributes.add(\"id_entity1\");\n relationship_attributes.add(\"id_entity2\");\n relationship_attributes.add(\"description\");\n this.create_table(\"relationship\", relationship_attributes);\n }", "private JDBCMiddler(String controlador, String url, String usuario, String clave) {\n this.controlador = controlador;\n this.url = url;\n this.usuario = usuario;\n this.clave = clave;\n }", "public static Uri createUri(Class<? extends Model> type, Long id) {\n final StringBuilder uri = new StringBuilder();\n uri.append(\"content://\");\n uri.append(sAuthority);\n uri.append(\"/\");\n uri.append(Cache.getTableName(type).toLowerCase());\n\n if (id != null) {\n uri.append(\"/\");\n uri.append(id.toString());\n }\n\n return Uri.parse(uri.toString());\n }", "public static URL createURL(String stringURL, final Context context) {\n URL url = null;\n try {\n url = new URL(stringURL);\n } catch (MalformedURLException e) {\n //use a handler to create a toast on the UI thread\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(context, \"Error: Check URL is valid.\", Toast.LENGTH_SHORT)\n .show();\n }\n });\n Log.e(LOG_TAG, \"Error: Check URL is valid.\", e);\n }\n return url;\n }", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }", "String constructUrl() {\n StringBuilder builder = new StringBuilder(256);\n builder.append(parts[DB_PREFIX]);\n \n if(notEmpty(parts[DB_ALT_DBNAME])) {\n builder.append(parts[DB_ALT_DBNAME]);\n builder.append('@');\n } else if(\"jdbc:oracle:thin:\".equals(parts[DB_PREFIX])) {\n builder.append('@');\n } else {\n // most formats\n builder.append(\"//\"); // NOI18N\n }\n \n builder.append(parts[DB_HOST]);\n\n if(notEmpty(parts[DB_INSTANCE_NAME])) {\n builder.append('\\\\');\n builder.append(parts[DB_INSTANCE_NAME]);\n }\n \n if(notEmpty(parts[DB_PORT])) {\n builder.append(':'); // NOI18N\n builder.append(parts[DB_PORT]);\n }\n\n if(notEmpty(parts[DB_PRIMARY_DBNAME])) {\n if(\"jdbc:oracle:thin:\".equals(parts[DB_PREFIX])) {\n builder.append(':'); // NOI18N\n } else {\n builder.append('/'); // NOI18N\n }\n builder.append(parts[DB_PRIMARY_DBNAME]);\n }\n\n char propertyInitialSeparator = ';';\n char propertySeparator = ';';\n if(\"jdbc:mysql:\".equals(parts[DB_PREFIX])) {\n propertyInitialSeparator = '?';\n propertySeparator = '&';\n } else if(\"jdbc:informix-sqli:\".equals(parts[DB_PREFIX])) {\n propertyInitialSeparator = ':';\n }\n \n Set<Map.Entry<String, String>> entries = props.entrySet();\n Iterator<Map.Entry<String, String>> entryIterator = entries.iterator();\n if(entryIterator.hasNext()) {\n builder.append(propertyInitialSeparator);\n Map.Entry<String, String> entry = entryIterator.next();\n builder.append(entry.getKey());\n String value = entry.getValue();\n if(notEmpty(value)) {\n builder.append('=');\n builder.append(value);\n }\n }\n \n while(entryIterator.hasNext()) {\n builder.append(propertySeparator);\n Map.Entry<String, String> entry = entryIterator.next();\n builder.append(entry.getKey());\n String value = entry.getValue();\n if(notEmpty(value)) {\n builder.append('=');\n builder.append(value);\n }\n }\n \n return builder.toString();\n }", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "public LDAPUrl(String host,\n int port,\n String dn,\n String[] attrNames,\n int scope,\n String filter,\n String extensions[])\n {\n\t\turl = new com.github.terefang.jldap.ldap.LDAPUrl(\n host, port, dn, attrNames, scope, filter, extensions);\n\t\treturn;\n }", "public DoublyLink() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "Builder addUrl(String value);", "public PodcastModel(int id, URL url) {\n super();\n this.id = id;\n this.url = url;\n }", "final DD utilCreateDDObject(String utilPropertiesFilenameKey) {\r\n \tTestProperties utilProperties = new TestProperties(getTestPropertiesFilename(utilPropertiesFilenameKey), getTestDataDir(), getTestManifest());\r\n\r\n\t\treturn utilCreateDDObject(utilProperties);\r\n }", "@Returns(\"targetId\")\n String createTarget(\n @ParamName(\"url\") String url,\n @Optional @ParamName(\"width\") Integer width,\n @Optional @ParamName(\"height\") Integer height,\n @Optional @ParamName(\"browserContextId\") String browserContextId,\n @Experimental @Optional @ParamName(\"enableBeginFrameControl\") Boolean enableBeginFrameControl,\n @Optional @ParamName(\"newWindow\") Boolean newWindow,\n @Optional @ParamName(\"background\") Boolean background);", "public LinkBuilder() {\n }", "public abstract Downloader createDownloader(DownloaderConstructorHelper downloaderConstructorHelper);", "public static AttendeeDetailFragment newInstance(String url, String userid) {\n AttendeeDetailFragment fragment = new AttendeeDetailFragment();\n Bundle args = new Bundle();\n args.putString(URL, url);\n args.putString(USER_ID, userid);\n fragment.setArguments(args);\n return fragment;\n }", "public Builder(final String url, final String key) {\n\t\t\tthis.key = key;\n\t\t\tthis.url = url;\n\t\t}", "static DefaultUrlBuilder from(URL baseUrl) {\n if (!baseUrl.getProtocol().equals(\"http\") && !baseUrl.getProtocol().equals(\"https\")) {\n throw new SafeIllegalArgumentException(\n \"unsupported protocol\", SafeArg.of(\"protocol\", baseUrl.getProtocol()));\n }\n if (Strings.emptyToNull(baseUrl.getQuery()) != null) {\n throw new SafeIllegalArgumentException(\n \"baseUrl query must be empty\", UnsafeArg.of(\"query\", baseUrl.getQuery()));\n }\n if (Strings.emptyToNull(baseUrl.getRef()) != null) {\n throw new SafeIllegalArgumentException(\n \"baseUrl ref must be empty\", UnsafeArg.of(\"ref\", baseUrl.getRef()));\n }\n if (Strings.emptyToNull(baseUrl.getUserInfo()) != null) {\n // the value of baseUrl.getUserInfo() may contain credential information and mustn't be logged\n throw new SafeIllegalArgumentException(\"baseUrl user info must be empty\");\n }\n return new DefaultUrlBuilder(baseUrl);\n }", "public ID createInstance(final Object[] parameters) throws IDCreateException {\n try {\n String uriString = (String) parameters[0];\n if (uriString == null)\n throw new //$NON-NLS-1$\n NullPointerException(//$NON-NLS-1$\n \"URI parameter is null\");\n if (//$NON-NLS-1$\n !uriString.startsWith(NAMESPACE_SCHEME_WS) && !uriString.startsWith(\"http\"))\n //$NON-NLS-1$ //$NON-NLS-2$\n throw new URISyntaxException(uriString, \"URI must have \" + NAMESPACE_SCHEME_WS + \" as protocol\");\n URI uri = new URI(uriString);\n return new R_OSGiWSID(false, uri.getHost(), uri.getPort());\n } catch (Exception e) {\n throw new IDCreateException(getName() + \" createInstance()\", e);\n }\n }", "@Test\r\n public void testCreateMyDid() throws SodiumException {\r\n CryptoService instance = new CryptoService();\r\n Pair<Did, Keys> result = instance.createMyDid(new MyDidInfo(\"NcYxiDXkpYi6ov5FcYDi1e\", null));\r\n assertEquals(result.first.did, \"NcYxiDXkpYi6ov5FcYDi1e\");\r\n }", "public static URL buildUrl(int id) {\n if (id == R.id.sort_by_popular) {\n SORT_BY = \"popular\";\n }\n if (id == R.id.sort_by_top_rated) {\n SORT_BY = \"top_rated\";\n }\n\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"http\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(SORT_BY)\n .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n .build();\n\n// Uri builtUri = new Uri.Builder().scheme(\"http\")\n// .authority(\"api.themoviedb.org\")\n// .appendPath(\"3\")\n// .appendPath(SORT_BY)\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n//\n// Uri.parse(MOVIE_DB_BASE_URL+SORT_BY).buildUpon()\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n Log.d(\"BUILDURL\", builder.toString());\n URL url = null;\n try {\n url = new URL(builder.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n return url;\n }", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n url_ = value;\n onChanged();\n return this;\n }", "public String createDN(List attributes) throws SLCSException;", "private String generateURL(Integer instanceID, String key) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/target?targetID=\" + key;\n\t}", "final DD utilCreateDDObject() {\r\n\t\treturn utilCreateDDObject(testProperties);\r\n }", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }", "LINK createLINK();", "private DataHandler createDataHandler(URL url) throws MalformedURLException {\n return new DataHandler(url);\n }", "protected String constructURL(LatLng... points) {\n\t\tCalendar c = Calendar.getInstance();\n\t\tint hour = c.get(Calendar.HOUR_OF_DAY);\n\t\tlong time = Math.round(c.getTimeInMillis() / 1000);\n\t\tif(hour > 0 && hour < 6) {\n\t\t\ttime = 1343340000;\n\t\t}\n\t\tLatLng start = points[0];\n\t\tLatLng dest = points[1];\n\t\tString sJsonURL = \"http://maps.googleapis.com/maps/api/directions/json?\";\n\n\t\tfinal StringBuffer mBuf = new StringBuffer(sJsonURL);\n\t\tmBuf.append(\"origin=\");\n\t\tmBuf.append(start.latitude);\n\t\tmBuf.append(',');\n\t\tmBuf.append(start.longitude);\n\t\tmBuf.append(\"&destination=\");\n\t\tmBuf.append(dest.latitude);\n\t\tmBuf.append(',');\n\t\tmBuf.append(dest.longitude);\n\t\tmBuf.append(\"&sensor=true&mode=\");\n\t\tmBuf.append(_mTravelMode.getValue());\n\t\tmBuf.append(\"&departure_time=\");\n\t\tmBuf.append(time);\n\n return mBuf.toString();\n\t}", "public URL makeBase(URL startingURL);", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "URL toURL() throws IOException;", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "public UvScanUrl(String stringID , String baseUrl)\r\n\t{\r\n\t\tthis.stringID = stringID;\r\n\t\tthis.baseUrl = baseUrl;\r\n\t\t\r\n\t\t\r\n\t\tfollowsConfigUrlPattern = false;\r\n\t\tfollowsConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tfollowsExactConfigUrlPattern = false;\r\n\t\tfollowsExactConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tisBaseUrlLocalized = false;\r\n\t\tisRedirectedUrlLocalized = false;\r\n\t\t\r\n\t\tisDeleted=false;\r\n\t\tisErrorPage= true;\r\n\r\n\t\texceptionType =UrlExceptionLevel.None;\r\n\t\t\r\n\t\tbaseUrlPatternMatchResult = \"\";\r\n\t\tredirectedUrlPatternMatchResult = \"\";\r\n\t\t\r\n\t\texceptionOccurred = \"\";\r\n\t}", "public Address createAddress(String address);", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "Object create(String uri) throws IOException, SAXException, ParserConfigurationException;", "public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}" ]
[ "0.70203066", "0.67110074", "0.6629", "0.6431727", "0.63866305", "0.63137376", "0.6296357", "0.6191419", "0.6003625", "0.5680532", "0.55220807", "0.5405902", "0.537024", "0.5361314", "0.5342427", "0.53308505", "0.529816", "0.52367765", "0.5152238", "0.5132134", "0.5132134", "0.5126089", "0.50916195", "0.5088433", "0.506532", "0.505291", "0.50510263", "0.5044593", "0.50445384", "0.50423074", "0.5039237", "0.5018596", "0.50173986", "0.5013626", "0.5006804", "0.49868643", "0.49487996", "0.49311945", "0.49268252", "0.49186775", "0.4898778", "0.4890517", "0.4884773", "0.48786956", "0.4878263", "0.48761806", "0.48318323", "0.4824006", "0.4806693", "0.47897983", "0.47727436", "0.4761491", "0.47604617", "0.473634", "0.47260258", "0.47177136", "0.4700559", "0.46990204", "0.4698789", "0.46899116", "0.46455565", "0.46439245", "0.46420813", "0.4633354", "0.46311033", "0.46269274", "0.46230093", "0.46112084", "0.46073422", "0.45994583", "0.45972735", "0.459259", "0.4589862", "0.45887798", "0.4582322", "0.45736519", "0.4566357", "0.45655864", "0.4565249", "0.45596653", "0.45593247", "0.45353103", "0.453153", "0.45289782", "0.45118138", "0.45072305", "0.450216", "0.4492373", "0.4491929", "0.4489846", "0.44891083", "0.44880682", "0.44880682", "0.44787335", "0.44775864", "0.44559643", "0.44553986", "0.44470355", "0.44184056", "0.44172806" ]
0.6996228
1
Constructs a DIDURL object with the given DID context and a DIDURL object.
public DIDURL(DID context, DIDURL url) { checkArgument(context != null || url != null, "Invalid context and url"); if (context != null) this.did = context; if (url != null) { if (url.did != null) this.did = url.did; this.path = url.path; this.query = url.query; this.queryString = url.queryString; this.fragment = url.fragment; this.repr = url.repr; this.metadata = url.metadata; } else { this.query = Collections.emptyMap(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public DIDURL(DID context, String url) throws MalformedDIDURLException {\n\t\tParser parser = new Parser();\n\t\tparser.parse(context, url);\n\t}", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "private static URL m23464a(Context context, String str) {\n try {\n return new URL(str);\n } catch (MalformedURLException e) {\n C5376d dVar = C5376d.EXCEPTION;\n StringBuilder sb = new StringBuilder();\n sb.append(\"OMSDK: can't create URL - \");\n sb.append(str);\n C5378f.m23016a(context, dVar, sb.toString(), e.getMessage(), \"\");\n return null;\n }\n }", "private OfbizUrlBuilder(ControllerConfig config, WebSiteProperties webSiteProps, String servletPath, String contextPath) {\n this.config = config;\n this.webSiteProps = webSiteProps;\n // SCIPIO: 2018-08-01: this comes in with a trailing slash half the time, strip it here\n // because it complicates everything else for no reason...\n if (servletPath != null && servletPath.endsWith(\"/\")) {\n servletPath = servletPath.substring(0, servletPath.length() - 1);\n }\n this.servletPath = servletPath;\n this.contextPath = contextPath;\n }", "public static URL createURL(String stringURL, final Context context) {\n URL url = null;\n try {\n url = new URL(stringURL);\n } catch (MalformedURLException e) {\n //use a handler to create a toast on the UI thread\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(context, \"Error: Check URL is valid.\", Toast.LENGTH_SHORT)\n .show();\n }\n });\n Log.e(LOG_TAG, \"Error: Check URL is valid.\", e);\n }\n return url;\n }", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "private static URL createURL(String urlString) {\n\n // Create an empty url\n URL url = null;\n\n try {\n // Try to make a url from urlString param\n url = new URL(urlString);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error creating URL: \" + e);\n }\n\n //Return the new url\n return url;\n }", "protected String toString(DID context) {\n\t\tStringBuilder builder = new StringBuilder(512);\n\t\tif (did != null && (context == null || !did.equals(context)))\n\t\t\tbuilder.append(did);\n\n\t\tif (path != null && !path.isEmpty())\n\t\t\tbuilder.append(path);\n\n\t\tif (query != null && !query.isEmpty())\n\t\t\tbuilder.append(\"?\").append(getQueryString());\n\n\t\tif (fragment != null && !fragment.isEmpty())\n\t\t\tbuilder.append(\"#\").append(getFragment());\n\n\t\treturn builder.toString();\n\t}", "public static workflowexecution.proxies.LinkVisit initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject)\r\n\t{\r\n\t\treturn new workflowexecution.proxies.LinkVisit(context, mendixObject);\r\n\t}", "private URL createUrl(String movieId) {\n URL url = null;\n try {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(movieId)\n .appendQueryParameter(\"api_key\", getString(R.string.moviedb_api_key));\n url = new URL(builder.build().toString());\n } catch (Exception exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "public T caseURL(URL object)\n {\n return null;\n }", "public Object getObjectInstance(Object obj, Name name, Context ctx, Hashtable environment) throws Exception {\r\n//\t\tContext ctx = getInitialContext(environment);\r\n\t\tReference ref = (Reference)obj;\r\n\t\tString url_string = (String)ref.get(\"URL\").getContent();\r\n\t\tURL url = new URL(url_string);\r\n\t\treturn url.getContent();\r\n }", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "private static URL createURL(String requestedUrl) {\n URL url = null;\n try {\n url = new URL(requestedUrl);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"createdUrl: Problem building URL\", e);\n }\n return url;\n }", "public String createInternalLinkGoTo(String id, int objectNumber)\n {\n IDNode node = (IDNode)idReferences.get(id); // retrieve id node\n node.createInternalLinkGoTo(objectNumber); // create Internal Link GoTo object\n return node.getInternalLinkGoToReference(); //return Internal Link Go To object reference\n }", "@Returns(\"targetId\")\n String createTarget(\n @ParamName(\"url\") String url,\n @Optional @ParamName(\"width\") Integer width,\n @Optional @ParamName(\"height\") Integer height,\n @Optional @ParamName(\"browserContextId\") String browserContextId,\n @Experimental @Optional @ParamName(\"enableBeginFrameControl\") Boolean enableBeginFrameControl,\n @Optional @ParamName(\"newWindow\") Boolean newWindow,\n @Optional @ParamName(\"background\") Boolean background);", "public static AttendeeDetailFragment newInstance(String url, String userid) {\n AttendeeDetailFragment fragment = new AttendeeDetailFragment();\n Bundle args = new Bundle();\n args.putString(URL, url);\n args.putString(USER_ID, userid);\n fragment.setArguments(args);\n return fragment;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Problem building the URL \", e);\n }\n return url;\n }", "public UrlBuilder compileUrlBuilder(UrlBuilder baseUrl, String resource, String id) {\n UrlBuilder url = new UrlBuilder(baseUrl);\n url.addPathSegment(resource);\n\n if (id != null) {\n url.addParameter(\"id\", id);\n }\n\n return url;\n }", "public final String getURL(final String id) {\n\t\tString url = \"\";\n\t\turl += \"http://\";\n\t\turl += CONFIGURATION.PENTAHO_IP;\n\t\turl += \":\";\n\t\turl += CONFIGURATION.PENTAHO_PORTNUMBER;\n\t\turl += CONFIGURATION.CDASOLUTION_ADDRESS;\n\t\turl += CONFIGURATION.CDA_METHOD;\n\t\turl += \"?\";\n\t\turl += \"solution=\";\n\t\turl += CONFIGURATION.CDA_SOLUTION;\n\t\turl += \"&\";\n\t\turl += \"path=\";\n\t\turl += CONFIGURATION.CDA_PATH.replace(\"/\", \"%2F\");\n\t\turl += \"&\";\n\t\turl += \"file=\";\n\t\turl += CONFIGURATION.CDA_FILEFULLNAME;\n\t\turl += \"&\";\n\t\turl += \"dataAccessId=\";\n\t\turl += id;\n\t\treturn url;\n\t}", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "private URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "Link createLink();", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "URI createURI();", "private static URL generateUrl(String requestedUrlString) {\n URL url = null;\n\n try {\n url = new URL(requestedUrlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating a URL object : generateURL() block\", e);\n }\n return url;\n }", "Context createContext( Properties properties ) throws NamingException;", "String createContext(PortalControllerContext portalControllerContext, String domain, String code);", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "private String generateURL(Integer instanceID, String key) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/target?targetID=\" + key;\n\t}", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "DD createDD();", "private JDBCMiddler(String controlador, String url) {\n this.controlador = controlador;\n this.url = url;\n }", "Adresse createAdresse();", "protected static ConfigurationOption<URL> createUrlOption(String key, URL dflt) {\r\n return new ConfigurationOption<URL>(key, dflt, PropertyReader.URL_READER);\r\n }", "SimpleLink createSimpleLink();", "public static Intent newIntent (Context context, UUID noteID){\n\n Intent intent = new Intent(context, NoteActivity.class);\n\n intent.putExtra(EXTRA_NOTE_ID, noteID);\n\n return intent;\n }", "private static Context createContext(final Context context)\r\n throws EscidocException, InternalClientException, TransportException, MalformedURLException {\r\n \t\r\n \t// prepare client object\r\n \tAuthentication auth = new Authentication(new URL(Constants.DEFAULT_SERVICE_URL), Constants.USER_NAME_SYSADMIN, Constants.USER_PASSWORD_SYSADMIN);\r\n \tContextHandlerClient chc = new ContextHandlerClient(auth.getServiceAddress());\r\n \tchc.setHandle(auth.getHandle());\r\n\r\n Context createdContext = chc.create(context);\r\n\r\n return createdContext;\r\n }", "private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }", "public static URL buildurl(String url1)\n {\n URL url = null;\n try\n {\n url = new URL(url1.toString());\n\n }\n catch(MalformedURLException e)\n {\n e.printStackTrace();\n }\n return url;\n }", "public GXWebObjectBase(int remoteHandle, ModelContext context)\n\t{\n\t\tsuper(remoteHandle, context);\n\t\tcastHttpContext();\n\t}", "public static GenericUrl getGenericURL(String endPoint) {\n\t\tString tempURL = getURL(endPoint);\n\t\tGenericUrl url = null;\n\t\tif (!(\"\".equalsIgnoreCase(tempURL))) {\n\t\t\turl = new GenericUrl(getURL(endPoint));\n\t\t}\n\n\t\treturn url;\n\t}", "public static Uri createUri(Class<? extends Model> type, Long id) {\n final StringBuilder uri = new StringBuilder();\n uri.append(\"content://\");\n uri.append(sAuthority);\n uri.append(\"/\");\n uri.append(Cache.getTableName(type).toLowerCase());\n\n if (id != null) {\n uri.append(\"/\");\n uri.append(id.toString());\n }\n\n return Uri.parse(uri.toString());\n }", "DL createDL();", "public UvScanUrl(String stringID , String baseUrl)\r\n\t{\r\n\t\tthis.stringID = stringID;\r\n\t\tthis.baseUrl = baseUrl;\r\n\t\t\r\n\t\t\r\n\t\tfollowsConfigUrlPattern = false;\r\n\t\tfollowsConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tfollowsExactConfigUrlPattern = false;\r\n\t\tfollowsExactConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tisBaseUrlLocalized = false;\r\n\t\tisRedirectedUrlLocalized = false;\r\n\t\t\r\n\t\tisDeleted=false;\r\n\t\tisErrorPage= true;\r\n\r\n\t\texceptionType =UrlExceptionLevel.None;\r\n\t\t\r\n\t\tbaseUrlPatternMatchResult = \"\";\r\n\t\tredirectedUrlPatternMatchResult = \"\";\r\n\t\t\r\n\t\texceptionOccurred = \"\";\r\n\t}", "public static ugs.proxies.Activity initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject)\n\t{\n\t\treturn new ugs.proxies.Activity(context, mendixObject);\n\t}", "public Link(String header, String contextPath, String objectClassName, String query) {\n\t\tthis.setValue(header + contextPath + \"/\" + objectClassName + \"/\" + query);\n\t\tthis.setRel(\"self\");\n\t\tthis.setHref(header + contextPath + \"/\" + objectClassName + \"/\" + query);\n\t\tthis.setType(\"application/rdap+json\");\n\t}", "public GXWebObjectBase(HttpContext httpContext)\n\t{\n\t\tsuper(httpContext);\n\t\tcastHttpContext();\n\t}", "public Url getUrl(Oid oid) {\n\t\treturn retrieveByOid(oid);\n\t}", "public <T> Connection<T> createConnection( ConnectionContext<T> context ) throws ConnectionBuildException;", "public static Map<String, Object> createGiftCertificate(DispatchContext dctx, Map<String, ? extends Object> context) {\n LocalDispatcher dispatcher = dctx.getDispatcher();\n Delegator delegator = dctx.getDelegator();\n Locale locale = (Locale) context.get(\"locale\");\n GenericValue userLogin = (GenericValue) context.get(\"userLogin\");\n String productStoreId = (String) context.get(\"productStoreId\");\n String orderId = (String) context.get(\"orderId\");\n BigDecimal initialAmount = (BigDecimal) context.get(\"initialAmount\");\n String currency = (String) context.get(\"currency\");\n String partyId = (String) context.get(\"partyId\");\n if (UtilValidate.isEmpty(partyId)) {\n partyId = \"_NA_\";\n }\n String currencyUom = (String) context.get(\"currency\");\n if (UtilValidate.isEmpty(currencyUom)) {\n currencyUom = EntityUtilProperties.getPropertyValue(\"general\", \"currency.uom.id.default\", \"USD\", delegator);\n }\n\n String cardNumber = null;\n String pinNumber = null;\n String refNum = null;\n String finAccountId = null;\n try {\n final String accountName = \"Gift Certificate Account\";\n final String deposit = \"DEPOSIT\";\n\n GenericValue giftCertSettings = EntityQuery.use(delegator).from(\"ProductStoreFinActSetting\")\n .where(\"productStoreId\", productStoreId, \"finAccountTypeId\", FinAccountHelper.getGiftCertFinAccountTypeId())\n .cache().queryOne();\n Map<String, Object> acctResult = null;\n\n if (\"Y\".equals(giftCertSettings.getString(\"requirePinCode\"))) {\n // TODO: move this code to createFinAccountForStore as well\n int cardNumberLength = CARD_NUMBER_LENGTH;\n int pinNumberLength = PIN_NUMBER_LENGTH;\n if (giftCertSettings.getLong(\"accountCodeLength\") != null) {\n cardNumberLength = giftCertSettings.getLong(\"accountCodeLength\").intValue();\n }\n if (giftCertSettings.getLong(\"pinCodeLength\") != null) {\n pinNumberLength = giftCertSettings.getLong(\"pinCodeLength\").intValue();\n }\n cardNumber = generateNumber(delegator, cardNumberLength, true);\n pinNumber = generateNumber(delegator, pinNumberLength, false);\n\n // in this case, the card number is the finAccountId\n finAccountId = cardNumber;\n\n // create the FinAccount\n Map<String, Object> acctCtx = UtilMisc.<String, Object>toMap(\"finAccountId\", finAccountId);\n acctCtx.put(\"finAccountTypeId\", FinAccountHelper.getGiftCertFinAccountTypeId());\n acctCtx.put(\"finAccountName\", accountName);\n acctCtx.put(\"finAccountCode\", pinNumber);\n acctCtx.put(\"userLogin\", userLogin);\n acctResult = dispatcher.runSync(\"createFinAccount\", acctCtx);\n if (ServiceUtil.isError(acctResult)) {\n return ServiceUtil.returnError(ServiceUtil.getErrorMessage(acctResult));\n }\n } else {\n Map<String, Object> createAccountCtx = new HashMap<>();\n createAccountCtx.put(\"ownerPartyId\", partyId);\n createAccountCtx.put(\"finAccountTypeId\", FinAccountHelper.getGiftCertFinAccountTypeId());\n createAccountCtx.put(\"productStoreId\", productStoreId);\n createAccountCtx.put(\"currencyUomId\", currency);\n createAccountCtx.put(\"finAccountName\", accountName + \" for party [\" + partyId + \"]\");\n createAccountCtx.put(\"userLogin\", userLogin);\n acctResult = dispatcher.runSync(\"createFinAccountForStore\", createAccountCtx);\n if (ServiceUtil.isError(acctResult)) {\n return ServiceUtil.returnError(ServiceUtil.getErrorMessage(acctResult));\n }\n if (acctResult.get(\"finAccountId\") != null) {\n cardNumber = (String) acctResult.get(\"finAccountId\");\n finAccountId = cardNumber;\n }\n if (acctResult.get(\"finAccountCode\") != null) {\n cardNumber = (String) acctResult.get(\"finAccountCode\");\n }\n }\n\n // create the initial (deposit) transaction\n // do something tricky here: run as the \"system\" user\n // that can actually create a financial account transaction\n GenericValue permUserLogin = EntityQuery.use(delegator).from(\"UserLogin\").where(\"userLoginId\", \"system\").cache().queryOne();\n refNum = createTransaction(delegator, dispatcher, permUserLogin, initialAmount, productStoreId,\n partyId, currencyUom, deposit, finAccountId, locale, orderId);\n\n } catch (GenericEntityException | GenericServiceException e) {\n Debug.logError(e, MODULE);\n return ServiceUtil.returnError(UtilProperties.getMessage(RES_ERROR,\n \"AccountingGiftCertificateNumberCreationError\", locale));\n } catch (GeneralException e) {\n Debug.logError(e, MODULE);\n return ServiceUtil.returnError(e.getMessage());\n }\n\n Map<String, Object> result = ServiceUtil.returnSuccess();\n result.put(\"cardNumber\", cardNumber);\n result.put(\"pinNumber\", pinNumber);\n result.put(\"initialAmount\", initialAmount);\n result.put(\"processResult\", Boolean.TRUE);\n result.put(\"responseCode\", \"1\");\n result.put(\"referenceNum\", refNum);\n Debug.logInfo(\"Create GC Result - \" + result, MODULE);\n return result;\n }", "public static URL createURL(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n }\n catch (MalformedURLException m) {\n Log.e(LOG_TAG,\"Error creating URL\",m);\n }\n return url;\n }", "@Override\r\n\tpublic String getObjectURL(String oid, String view) {\n\t\treturn URLUtil.getObjectURL(oid, view) + \"&useruid=\" + this.getCreatedBy().getUid();\r\n\t}", "public Builder setDid(String did) {\n\t\t\treturn setDid(DID.valueOf(did));\n\t\t}", "public static Intent newInstance(Context context, String finalUrlPhoto, String finalPhotoId,\n String finalPhotoUrlNoSecret, String finalPhotoUrlLarge) {\n Intent intent = new Intent(context.getApplicationContext(), PhotoActivity.class);\n intent.putExtra(PhotoActivity.EXTRA_URL_PHOTO, finalUrlPhoto);\n intent.putExtra(PhotoActivity.EXTRA_PHOTO_ID, finalPhotoId);\n intent.putExtra(PhotoActivity.EXTRA_URL_PHOTO_NO_SECRET, finalPhotoUrlNoSecret);\n intent.putExtra(PhotoActivity.EXTRA_URL_PHOTO_LARGE, finalPhotoUrlLarge);\n\n return intent;\n }", "private Uri computeUri(Context param1) {\n }", "public static OfbizUrlBuilder from(ExtWebappInfo extWebappInfo, HttpServletRequest request) throws GenericEntityException, WebAppConfigurationException {\n WebSiteProperties webSiteProps = WebSiteProperties.from(extWebappInfo, request);\n ControllerConfig config = extWebappInfo.getControllerConfig();\n String servletPath = extWebappInfo.getFullControlPath();\n String contextPath = extWebappInfo.getContextPath();\n return new OfbizUrlBuilder(config, webSiteProps, servletPath, contextPath);\n }", "public LiveRef(ObjID paramObjID, int paramInt) {\n/* 93 */ this(paramObjID, TCPEndpoint.getLocalEndpoint(paramInt), true);\n/* */ }", "public BluetoothServiceUtilities(Context theContext)\r\n\t{\r\n\t\t// -------------------------------------------------------------------------\r\n\t\t// 14/10/2015 ECU main constructor\r\n\t\t// -------------------------------------------------------------------------\r\n\t\t// 14/10/2015 ECU create the handler that will be used for communicating with\r\n\t\t// the bluetooth service\r\n\t\t// -------------------------------------------------------------------------\r\n\t\tblueToothHandler\t= new BluetoothHandler(theContext);\r\n\t\t// -------------------------------------------------------------------------\r\n\t\t// 14/10/2015 ECU set the initial remote device and create the meanings\r\n\t\t// list\r\n\t\t// -------------------------------------------------------------------------\r\n\t\tsetRemoteDevice (Television.REMOTE_SAMSUNG_TV);\r\n\t\t// -------------------------------------------------------------------------\r\n\t}", "TO fromObject(CONTEXT context, final FROM obj);", "public LDAPUrl(String host, int port, String dn)\n {\n\t\turl = new com.github.terefang.jldap.ldap.LDAPUrl( host, port, dn);\n\t\treturn;\n }", "private URL createURL() {\n try {\n Log.d(\"URL\", \"create\");\n String urlString = \"http://cs262.cs.calvin.edu:8084/cs262dCleaningCrew/task/cjp27\";\n return new URL(urlString);\n } catch (Exception e) {\n Toast.makeText(this, getString(R.string.connection_error), Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }", "public Urls(IDomainModel model) {\n\t\tsuper(model);\n\t}", "Context createContext();", "Context createContext();", "public static AndroidUsingLinkProperties setup(Context context)\n {\n AndroidUsingLinkProperties androidUsingLinkProperties = new AndroidUsingLinkProperties(context);\n DnsClient.addDnsServerLookupMechanism(androidUsingLinkProperties);\n return androidUsingLinkProperties;\n }", "public PURL(PURL source) {\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.Protocol != null) {\n this.Protocol = new String(source.Protocol);\n }\n if (source.Namespace != null) {\n this.Namespace = new String(source.Namespace);\n }\n if (source.Qualifiers != null) {\n this.Qualifiers = new Qualifier[source.Qualifiers.length];\n for (int i = 0; i < source.Qualifiers.length; i++) {\n this.Qualifiers[i] = new Qualifier(source.Qualifiers[i]);\n }\n }\n if (source.Subpath != null) {\n this.Subpath = new String(source.Subpath);\n }\n if (source.Version != null) {\n this.Version = new String(source.Version);\n }\n }", "private URLHelper() {\n\n }", "private HTMLElement newtdhref(String contenido, String vinculo) {\n/* 356 */ HTMLElement td = (HTMLElement)this.pagHTML.createElement(\"td\");\n/* 357 */ Element enlace = this.pagHTML.createElement(\"a\");\n/* 358 */ Node hijo = this.pagHTML.createTextNode(contenido);\n/* 359 */ enlace.appendChild(hijo);\n/* 360 */ Attr donde = this.pagHTML.createAttribute(\"href\");\n/* 361 */ donde.setValue(vinculo);\n/* 362 */ enlace.setAttributeNode(donde);\n/* 363 */ td.appendChild(enlace);\n/* 364 */ td.setAttributeNode(newAttr(\"class\", \"ctd\"));\n/* 365 */ return td;\n/* */ }", "@Test\r\n public void testCreateMyDid() throws SodiumException {\r\n CryptoService instance = new CryptoService();\r\n Pair<Did, Keys> result = instance.createMyDid(new MyDidInfo(\"NcYxiDXkpYi6ov5FcYDi1e\", null));\r\n assertEquals(result.first.did, \"NcYxiDXkpYi6ov5FcYDi1e\");\r\n }", "Builder addUrl(URL value);", "public UrlEncapsulation() {\r\n\t\t\r\n\t\tthis(null\r\n\t\t\t\t, null, null, null, null\r\n\t\t\t\t, false, null, null, null, null, null, null, null);\r\n\t\t\r\n\t}", "public static URL buildUrl() {\n Uri builtUri = Uri.parse(CONTENT_JSON_URL).buildUpon()\n .build();\n\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }", "public ArticleListWeb(Context context, String url) {\n\t\tsuper(context);\n\t\tmURL = url;\n\t\t\n\t\t\n\t}", "public StorageResource(Long id, UriInfo context) {\n this.id = id;\n this.context = context;\n }", "public NdbAdapter(Context context) {\n this.context = context;\n }", "public static OfbizUrlBuilder from(WebappInfo webAppInfo, WebSiteProperties webSiteProps, Delegator delegator) throws WebAppConfigurationException, IOException, SAXException, GenericEntityException {\n ControllerConfig config = null;\n String servletPath = null;\n String contextPath = null;\n if (webAppInfo != null) {\n Assert.notNull(\"delegator\", delegator);\n config = ConfigXMLReader.getControllerConfig(webAppInfo, true); // SCIPIO: 2017-11-18: controller now optional\n servletPath = WebAppUtil.getControlServletPath(webAppInfo, true); // SCIPIO: 2017-11-18: ControlServlet now optional\n contextPath = webAppInfo.getContextRoot();\n }\n if (webSiteProps == null) {\n webSiteProps = WebSiteProperties.defaults(delegator);\n }\n return new OfbizUrlBuilder(config, webSiteProps, servletPath, contextPath);\n }", "public static URL buildUrl(int id) {\n if (id == R.id.sort_by_popular) {\n SORT_BY = \"popular\";\n }\n if (id == R.id.sort_by_top_rated) {\n SORT_BY = \"top_rated\";\n }\n\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"http\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(SORT_BY)\n .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n .build();\n\n// Uri builtUri = new Uri.Builder().scheme(\"http\")\n// .authority(\"api.themoviedb.org\")\n// .appendPath(\"3\")\n// .appendPath(SORT_BY)\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n//\n// Uri.parse(MOVIE_DB_BASE_URL+SORT_BY).buildUpon()\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n Log.d(\"BUILDURL\", builder.toString());\n URL url = null;\n try {\n url = new URL(builder.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n return url;\n }", "FROM toObject(CONTEXT context, final TO value);", "@Override\n public RedirectUrl registryUrl(RedirectUrl redirectUrlObj, String accountId) {\n String generatedUrl = RandomStringUtils.randomAlphanumeric(6);\n redirectUrlObj.setShortURL(generatedUrl);\n Account account = accountRepository.findByAccountId(accountId);\n if (account == null) {\n throw new IllegalStateException(\"There is no account with such id.\");\n }\n redirectUrlObj.setAccount(account);\n return redirectUrlRepository.save(redirectUrlObj);\n }", "SimpleUniqueValueGenerator(String context) {\n context_ = context;\n }", "public Builder(Activity context) {\n this.context = new WeakReference<>(context);\n this.imageConfig = new ImageConfig();\n }", "Object create(URL url) throws IOException, SAXException, ParserConfigurationException;", "public PContext(PDirective directive, PTarget target, \r\n\t\t\t\t\tPErrorHandler errorHandler) {\r\n\t\tif (directive == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"directive missing\");\r\n\t\t}\r\n\t\tthis.directive = directive;\r\n\t\tthis.target = target;\r\n\t\tthis.errorHandler = errorHandler;\r\n\t}", "TrustedIdProvider create(Context context);", "public static URL buildUrl(Double lat, Double lon) {\n return null;\n }", "public static Builder with(Context context) {\n return new Builder(context);\n }", "DeparturesRecyclerViewAdapter(Context context, String endpoint) {\n this.context = context;\n this.endpoint = endpoint;\n this.mInflater = LayoutInflater.from(context);\n }" ]
[ "0.7368883", "0.7112082", "0.68365693", "0.63018656", "0.6260742", "0.58570623", "0.5742741", "0.57145756", "0.5411781", "0.51212597", "0.50734156", "0.5057941", "0.47941962", "0.4758437", "0.470626", "0.46234152", "0.46053997", "0.458724", "0.45818913", "0.45529732", "0.45139316", "0.4504464", "0.45016184", "0.4470651", "0.44700706", "0.44457296", "0.44329646", "0.44221595", "0.43919736", "0.43847132", "0.43721083", "0.43715397", "0.43687645", "0.43484136", "0.43484136", "0.43310687", "0.43119115", "0.43058804", "0.42791745", "0.42702273", "0.42669216", "0.42581105", "0.42512178", "0.4243797", "0.42334324", "0.42131802", "0.4206307", "0.4204674", "0.420175", "0.41981494", "0.41966927", "0.41911373", "0.41853714", "0.41728213", "0.41521478", "0.4150997", "0.4147407", "0.41461653", "0.4144666", "0.41440386", "0.41375917", "0.41345376", "0.4118929", "0.41168246", "0.41163087", "0.41033712", "0.4093969", "0.40890563", "0.4088298", "0.40869927", "0.40843707", "0.4078734", "0.40771145", "0.406882", "0.4068458", "0.40658975", "0.40658975", "0.40593556", "0.40541905", "0.4049601", "0.40325364", "0.40193307", "0.4018169", "0.4002296", "0.39979565", "0.39953256", "0.399464", "0.39936155", "0.39876112", "0.3975657", "0.39692345", "0.39692163", "0.3962316", "0.3959834", "0.39585412", "0.39521953", "0.39463922", "0.39459667", "0.39441952", "0.39380407" ]
0.7524835
0
Constructs a DIDURL object from DID object.
private DIDURL(DID context) { this(context, (DIDURL)null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public DIDURL(DID context, String url) throws MalformedDIDURLException {\n\t\tParser parser = new Parser();\n\t\tparser.parse(context, url);\n\t}", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "DD createDD();", "Adresse createAdresse();", "public Builder setDid(String did) {\n\t\t\treturn setDid(DID.valueOf(did));\n\t\t}", "URI createURI();", "public T caseURL(URL object)\n {\n return null;\n }", "public String createInternalLinkGoTo(String id, int objectNumber)\n {\n IDNode node = (IDNode)idReferences.get(id); // retrieve id node\n node.createInternalLinkGoTo(objectNumber); // create Internal Link GoTo object\n return node.getInternalLinkGoToReference(); //return Internal Link Go To object reference\n }", "public static URL createURL(String encodedURL) throws MalformedURLException, URISyntaxException {\n\n /* The encoded URL is transformed to an URL representation */\n URL anURL = new URL(encodedURL);\n\n /* And the URL is validated on its syntax */\n anURL.toURI();\n\n return anURL;\n }", "private static URL createURL(String urlString) {\n\n // Create an empty url\n URL url = null;\n\n try {\n // Try to make a url from urlString param\n url = new URL(urlString);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error creating URL: \" + e);\n }\n\n //Return the new url\n return url;\n }", "private URL createUrl(String movieId) {\n URL url = null;\n try {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(movieId)\n .appendQueryParameter(\"api_key\", getString(R.string.moviedb_api_key));\n url = new URL(builder.build().toString());\n } catch (Exception exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "public final String getURL(final String id) {\n\t\tString url = \"\";\n\t\turl += \"http://\";\n\t\turl += CONFIGURATION.PENTAHO_IP;\n\t\turl += \":\";\n\t\turl += CONFIGURATION.PENTAHO_PORTNUMBER;\n\t\turl += CONFIGURATION.CDASOLUTION_ADDRESS;\n\t\turl += CONFIGURATION.CDA_METHOD;\n\t\turl += \"?\";\n\t\turl += \"solution=\";\n\t\turl += CONFIGURATION.CDA_SOLUTION;\n\t\turl += \"&\";\n\t\turl += \"path=\";\n\t\turl += CONFIGURATION.CDA_PATH.replace(\"/\", \"%2F\");\n\t\turl += \"&\";\n\t\turl += \"file=\";\n\t\turl += CONFIGURATION.CDA_FILEFULLNAME;\n\t\turl += \"&\";\n\t\turl += \"dataAccessId=\";\n\t\turl += id;\n\t\treturn url;\n\t}", "private static URL m23464a(Context context, String str) {\n try {\n return new URL(str);\n } catch (MalformedURLException e) {\n C5376d dVar = C5376d.EXCEPTION;\n StringBuilder sb = new StringBuilder();\n sb.append(\"OMSDK: can't create URL - \");\n sb.append(str);\n C5378f.m23016a(context, dVar, sb.toString(), e.getMessage(), \"\");\n return null;\n }\n }", "private static URL createURL(String requestedUrl) {\n URL url = null;\n try {\n url = new URL(requestedUrl);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"createdUrl: Problem building URL\", e);\n }\n return url;\n }", "SimpleLink createSimpleLink();", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Problem building the URL \", e);\n }\n return url;\n }", "public UrlDevice getUrlDeviceById(String id) {\n return mDeviceIdToUrlDeviceMap.get(id);\n }", "public static Uri createUri(Class<? extends Model> type, Long id) {\n final StringBuilder uri = new StringBuilder();\n uri.append(\"content://\");\n uri.append(sAuthority);\n uri.append(\"/\");\n uri.append(Cache.getTableName(type).toLowerCase());\n\n if (id != null) {\n uri.append(\"/\");\n uri.append(id.toString());\n }\n\n return Uri.parse(uri.toString());\n }", "INode newObjectFromID(String objectId);", "Link createLink();", "private URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "DL createDL();", "public static Object decodeURI(final Object self, final Object uri) {\n return URIUtils.decodeURI(self, JSType.toString(uri));\n }", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "public URI getUri(String iden) {\r\n\t\tURI rtn = null;\r\n\t\tString url = null;\r\n\t\tStringBuilder strRtn = new StringBuilder(uriBuilder);\r\n\t\tif(isUri(iden)) {\r\n\t\t\tSystem.out.println(\"isUri\");\r\n\t\t\treturn valueFactory.createURI(iden);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\turl = URLEncoder.encode(iden,\"utf-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tstrRtn.append(url);\r\n\t\t\trtn = valueFactory.createURI(strRtn.toString());\r\n\t\t\treturn rtn;\r\n\t\t}\r\n\t}", "public Url getUrl(Oid oid) {\n\t\treturn retrieveByOid(oid);\n\t}", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "public UrlBuilder compileUrlBuilder(UrlBuilder baseUrl, String resource, String id) {\n UrlBuilder url = new UrlBuilder(baseUrl);\n url.addPathSegment(resource);\n\n if (id != null) {\n url.addParameter(\"id\", id);\n }\n\n return url;\n }", "public static AttendeeDetailFragment newInstance(String url, String userid) {\n AttendeeDetailFragment fragment = new AttendeeDetailFragment();\n Bundle args = new Bundle();\n args.putString(URL, url);\n args.putString(USER_ID, userid);\n fragment.setArguments(args);\n return fragment;\n }", "public static URL buildUrl(int id) {\n if (id == R.id.sort_by_popular) {\n SORT_BY = \"popular\";\n }\n if (id == R.id.sort_by_top_rated) {\n SORT_BY = \"top_rated\";\n }\n\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"http\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(SORT_BY)\n .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n .build();\n\n// Uri builtUri = new Uri.Builder().scheme(\"http\")\n// .authority(\"api.themoviedb.org\")\n// .appendPath(\"3\")\n// .appendPath(SORT_BY)\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n//\n// Uri.parse(MOVIE_DB_BASE_URL+SORT_BY).buildUpon()\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n Log.d(\"BUILDURL\", builder.toString());\n URL url = null;\n try {\n url = new URL(builder.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n return url;\n }", "public static URL convertToUrl(String urlStr) {\n try {\n URL url = new URL(urlStr);\n URI uri = new URI(url.getProtocol(), url.getUserInfo(),\n url.getHost(), url.getPort(), url.getPath(),\n url.getQuery(), url.getRef());\n url = uri.toURL();\n return url;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\r\n\tpublic String getObjectURL(String oid, String view) {\n\t\treturn URLUtil.getObjectURL(oid, view) + \"&useruid=\" + this.getCreatedBy().getUid();\r\n\t}", "public static URL buildUrl(Double lat, Double lon) {\n return null;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "@Test\r\n public void testCreateMyDid() throws SodiumException {\r\n CryptoService instance = new CryptoService();\r\n Pair<Did, Keys> result = instance.createMyDid(new MyDidInfo(\"NcYxiDXkpYi6ov5FcYDi1e\", null));\r\n assertEquals(result.first.did, \"NcYxiDXkpYi6ov5FcYDi1e\");\r\n }", "public LDAPUrl(String host, int port, String dn)\n {\n\t\turl = new com.github.terefang.jldap.ldap.LDAPUrl( host, port, dn);\n\t\treturn;\n }", "private static URL generateUrl(String requestedUrlString) {\n URL url = null;\n\n try {\n url = new URL(requestedUrlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating a URL object : generateURL() block\", e);\n }\n return url;\n }", "public UvScanUrl(String stringID , String baseUrl)\r\n\t{\r\n\t\tthis.stringID = stringID;\r\n\t\tthis.baseUrl = baseUrl;\r\n\t\t\r\n\t\t\r\n\t\tfollowsConfigUrlPattern = false;\r\n\t\tfollowsConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tfollowsExactConfigUrlPattern = false;\r\n\t\tfollowsExactConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tisBaseUrlLocalized = false;\r\n\t\tisRedirectedUrlLocalized = false;\r\n\t\t\r\n\t\tisDeleted=false;\r\n\t\tisErrorPage= true;\r\n\r\n\t\texceptionType =UrlExceptionLevel.None;\r\n\t\t\r\n\t\tbaseUrlPatternMatchResult = \"\";\r\n\t\tredirectedUrlPatternMatchResult = \"\";\r\n\t\t\r\n\t\texceptionOccurred = \"\";\r\n\t}", "@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }", "private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}", "URL toURL() throws IOException;", "public com.autodesk.ws.avro.Call.Builder setTargetObjectUri(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.target_object_uri = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "final DD utilCreateDDObject(TestProperties utilProperties) {\r\n\t\tPage_ myDocumentsPage\t= createPage(utilProperties, \"PAGE_MY_DOWNLOADS_PROPERTIES_FILE\");\r\n\t\tPage_ viewContactPage\t= createPage(utilProperties, \"PAGE_VIEW_CONTACT_PROPERTIES_FILE\");\r\n\r\n \tDD dd = new DD(myDocumentsPopUp, myDocumentsPage, viewContactPage);\r\n\r\n \treturn dd;\r\n }", "protected static ConfigurationOption<URL> createUrlOption(String key, URL dflt) {\r\n return new ConfigurationOption<URL>(key, dflt, PropertyReader.URL_READER);\r\n }", "public static ConnectInfo fromURL(final String authConfig) {\n\t\treturn fromURL(URLHelper.toURL(authConfig));\n\t}", "private static OBREntry convertToOBREntry(ArtifactObject artifactObject, String obrBase) {\n String name = artifactObject.getName();\n String symbolicName = artifactObject.getAttribute(BundleHelper.KEY_SYMBOLICNAME);\n String version = artifactObject.getAttribute(BundleHelper.KEY_VERSION);\n String relativeURL = artifactObject.getURL().substring(obrBase.length());\n return new OBREntry(name, symbolicName, version, relativeURL);\n }", "private static URL stringToUrl(String stringUrl) throws MalformedURLException{\r\n\t\treturn new URL(stringUrl);\r\n\t}", "public Address createAddress(String address);", "private OrdPerson initAddress(String id) {\n\t\t\r\n\t\tUserAddress userAddress = receiverUserServiceAdapter.queryAddressByAddressNo(id);\r\n\t\t \r\n\t\tif (userAddress == null) {\r\n\t\t\tthrow new NullPointerException(\"收件地址不存在\");\r\n\t\t}\r\n\t\t// 地址\r\n\t\tList<OrdAddress> addressList = new ArrayList<OrdAddress>();\r\n\t\tOrdAddress ordAddress = new OrdAddress();\r\n\t\tordAddress.setProvince(userAddress.getProvince());\r\n\t\tordAddress.setCity(userAddress.getCity());\r\n\t\tordAddress.setStreet(userAddress.getAddress());\r\n\t\tordAddress.setPostalCode(userAddress.getPostCode());\r\n\t\taddressList.add(ordAddress);\r\n\r\n\t\t// 游玩人\r\n\t\tOrdPerson ordPerson = new OrdPerson();\r\n\t\tordPerson.setFullName(userAddress.getUserName());\r\n\t\tordPerson.setMobile(userAddress.getMobileNumber());\r\n\t\tordPerson.setObjectType(\"ORD_INVOICE\");\r\n\t\tordPerson.setPersonType(IReceiverUserServiceAdapter.RECEIVERS_TYPE.ADDRESS.name());\r\n\t\tordPerson.setAddressList(addressList);\r\n\t\treturn ordPerson;\r\n\t}", "public Object getObjectInstance(Object obj, Name name, Context ctx, Hashtable environment) throws Exception {\r\n//\t\tContext ctx = getInitialContext(environment);\r\n\t\tReference ref = (Reference)obj;\r\n\t\tString url_string = (String)ref.get(\"URL\").getContent();\r\n\t\tURL url = new URL(url_string);\r\n\t\treturn url.getContent();\r\n }", "public static URL buildUrl() {\n Uri builtUri = Uri.parse(CONTENT_JSON_URL).buildUpon()\n .build();\n\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }", "void addHadithUrl(Object newHadithUrl);", "public java.lang.String getDID() {\r\n return DID;\r\n }", "void decodeHref(Obj obj, String href)\n { \n // set href field\n Uri uri = new Uri(null, href);\n obj.setHref(uri);\n \n // if not fragment then we are done\n if (!uri.isFragment()) return;\n \n // save away in fragments table for \n // resolution in the decodeRefUri() method\n fragIds.put(href, obj);\n \n // it is possible that we've already parsed objects\n // which reference this fragment href, so check that\n FragRefs refs = (FragRefs)fragRefs.get(href);\n if (refs == null) return;\n \n // set the target object for all the uris which \n // forwardly referenced this object\n fragRefs.remove(href);\n for (int i=0; i<refs.uris.size(); ++i)\n ((Uri)refs.uris.get(i)).setResolved(obj);\n }", "URISegment createURISegment();", "public static URL buildurl(String url1)\n {\n URL url = null;\n try\n {\n url = new URL(url1.toString());\n\n }\n catch(MalformedURLException e)\n {\n e.printStackTrace();\n }\n return url;\n }", "public Builder setUserDNBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userDN_ = value;\n\n return this;\n }", "final DD utilCreateDDObject() {\r\n\t\treturn utilCreateDDObject(testProperties);\r\n }", "public IRiakObject fromDomain(Person domainObject, VClock vclock) throws ConversionException\n {\n \n String key = getKey(domainObject);\n \n if (key == null)\n {\n throw new NoKeySpecifedException(domainObject);\n }\n \n Kryo kryo = new Kryo();\n kryo.register(Person.class);\n \n ObjectBuffer ob = new ObjectBuffer(kryo);\n byte[] value = ob.writeObject(domainObject);\n \n Map<String, String> usermetaData = usermetaConverter.getUsermetaData(domainObject);\n RiakIndexes indexes = riakIndexConverter.getIndexes(domainObject);\n Collection<RiakLink> links = riakLinksConverter.getLinks(domainObject);\n \n return RiakObjectBuilder.newBuilder(bucket, key)\n .withValue(value)\n .withVClock(vclock)\n .withUsermeta(usermetaData)\n .withIndexes(indexes)\n .withLinks(links)\n .withContentType(Constants.CTYPE_OCTET_STREAM)\n .build();\n \n \n }", "public static OfbizUrlBuilder from(WebappInfo webAppInfo, WebSiteProperties webSiteProps, Delegator delegator) throws WebAppConfigurationException, IOException, SAXException, GenericEntityException {\n ControllerConfig config = null;\n String servletPath = null;\n String contextPath = null;\n if (webAppInfo != null) {\n Assert.notNull(\"delegator\", delegator);\n config = ConfigXMLReader.getControllerConfig(webAppInfo, true); // SCIPIO: 2017-11-18: controller now optional\n servletPath = WebAppUtil.getControlServletPath(webAppInfo, true); // SCIPIO: 2017-11-18: ControlServlet now optional\n contextPath = webAppInfo.getContextRoot();\n }\n if (webSiteProps == null) {\n webSiteProps = WebSiteProperties.defaults(delegator);\n }\n return new OfbizUrlBuilder(config, webSiteProps, servletPath, contextPath);\n }", "public Cliente fromDTO(ClienteDTO objDTO) {\t\t\r\n\t\treturn new Cliente(objDTO.getId(), objDTO.getNome(), objDTO.getEmail(), null, null);\r\n\t}", "protected void setDid(DID did) {\n\t\tthis.did = did;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == this)\n\t\t\treturn true;\n\n\t\tif (obj instanceof DIDURL) {\n\t\t\tDIDURL id = (DIDURL)obj;\n\t\t\treturn toString().equals(id.toString());\n\t\t}\n\n\t\tif (obj instanceof String) {\n\t\t\tString url = (String)obj;\n\t\t\treturn toString().equals(url);\n\t\t}\n\n\t\treturn false;\n\t}", "public ProductModel getDevice(String did) {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getDevice()\");\r\n\t\treturn deviceData.getDevice(did);\r\n\t}", "private JDBCMiddler(String controlador, String url) {\n this.controlador = controlador;\n this.url = url;\n }", "private Object makeObj(final String item, final int ID) {\n return new Object() {\n\n @Override\n public String toString() {\n return item;\n }\n\n @Override\n public int hashCode() {\n return ID;\n }\n };\n }", "static DefaultUrlBuilder from(URL baseUrl) {\n if (!baseUrl.getProtocol().equals(\"http\") && !baseUrl.getProtocol().equals(\"https\")) {\n throw new SafeIllegalArgumentException(\n \"unsupported protocol\", SafeArg.of(\"protocol\", baseUrl.getProtocol()));\n }\n if (Strings.emptyToNull(baseUrl.getQuery()) != null) {\n throw new SafeIllegalArgumentException(\n \"baseUrl query must be empty\", UnsafeArg.of(\"query\", baseUrl.getQuery()));\n }\n if (Strings.emptyToNull(baseUrl.getRef()) != null) {\n throw new SafeIllegalArgumentException(\n \"baseUrl ref must be empty\", UnsafeArg.of(\"ref\", baseUrl.getRef()));\n }\n if (Strings.emptyToNull(baseUrl.getUserInfo()) != null) {\n // the value of baseUrl.getUserInfo() may contain credential information and mustn't be logged\n throw new SafeIllegalArgumentException(\"baseUrl user info must be empty\");\n }\n return new DefaultUrlBuilder(baseUrl);\n }", "public static URL str2url( String strUrl )\r\n {\r\n try\r\n {\r\n URL url = new URL( strUrl );\r\n return url;\r\n }\r\n catch( MalformedURLException e )\r\n {\r\n Log.e( TAG, \"\", e );\r\n throw new IllegalArgumentException( \"str2url\", e );\r\n } \r\n }", "URISegmentWithParameter createURISegmentWithParameter();", "public static URL createURL(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n }\n catch (MalformedURLException m) {\n Log.e(LOG_TAG,\"Error creating URL\",m);\n }\n return url;\n }", "public Urls(IDomainModel model) {\n\t\tsuper(model);\n\t}", "public Url getUrl(Long oidUniqueNumber) {\n\t\treturn getUrl(new Oid(oidUniqueNumber));\n\t}", "public static OfbizUrlBuilder fromWebSiteId(String webSiteId, Delegator delegator) throws WebAppConfigurationException,\n IOException, SAXException, GenericEntityException, IllegalArgumentException {\n WebappInfo webAppInfo = null;\n WebSiteProperties webSiteProps = null;\n if (webSiteId != null && !webSiteId.isEmpty()) {\n webAppInfo = WebAppUtil.getWebappInfoFromWebsiteId(webSiteId);\n webSiteProps = WebSiteProperties.from(webSiteId, delegator);\n }\n if (webSiteProps == null) {\n webSiteProps = WebSiteProperties.defaults(delegator);\n }\n return from(webAppInfo, webSiteProps, delegator);\n }", "public ExternalLink(String id, final IModel<String> href, final boolean shortUrlAsLabel) {\n this(id, href, new AbstractReadOnlyModel<String>() {\n private static final long serialVersionUID = 1838103890589747027L;\n\n @Override\n public String getObject() {\n String url = href.getObject();\n if (url != null && shortUrlAsLabel) {\n url = url.replaceFirst(\"http://\", \"\").replaceFirst(\"https://\", \"\").replaceFirst(\"ftp://\", \"\");\n }\n return url;\n }\n });\n }", "public NewDigitalMediaObject(String alias) {\n this(DSL.name(alias), NEW_DIGITAL_MEDIA_OBJECT);\n }", "final DD utilCreateDDObject(String utilPropertiesFilenameKey) {\r\n \tTestProperties utilProperties = new TestProperties(getTestPropertiesFilename(utilPropertiesFilenameKey), getTestDataDir(), getTestManifest());\r\n\r\n\t\treturn utilCreateDDObject(utilProperties);\r\n }", "public static URL toURL(String filename) throws MalformedURLException {\n try {\n return new URL(filename);\n }\n catch (Exception e) {\n return new File(filename).toURI().toURL();\n }\n\t}", "public URIBuilder(final String string) {\n super();\n try {\n digestURI(new URI(string));\n } catch (final URISyntaxException e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "public abstract String toUrl(Object inNode);", "URL format(ShortLink shortLink);", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }", "public Link(String url) {\n try {\n uri = new URL(fix(url)).toURI();\n } catch (Exception e) {\n uri = URI.create(\"\");\n }\n }", "public static URL createURL(String stringURL, final Context context) {\n URL url = null;\n try {\n url = new URL(stringURL);\n } catch (MalformedURLException e) {\n //use a handler to create a toast on the UI thread\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(context, \"Error: Check URL is valid.\", Toast.LENGTH_SHORT)\n .show();\n }\n });\n Log.e(LOG_TAG, \"Error: Check URL is valid.\", e);\n }\n return url;\n }", "public PodcastModel(int id, URL url) {\n super();\n this.id = id;\n this.url = url;\n }", "public Object decode(Object obj) throws DecoderException {\n/* 341 */ if (obj == null)\n/* 342 */ return null; \n/* 343 */ if (obj instanceof byte[])\n/* 344 */ return decode((byte[])obj); \n/* 345 */ if (obj instanceof String) {\n/* 346 */ return decode((String)obj);\n/* */ }\n/* 348 */ throw new DecoderException(\"Objects of type \" + obj.getClass().getName() + \" cannot be URL decoded\");\n/* */ }", "protected final static EndpointAddress mkAddress(String destPeer, String serv, String parm) {\r\n\r\n ID asID = ID.create(URI.create(destPeer));\r\n return mkAddress(asID, serv, parm);\r\n }" ]
[ "0.6513077", "0.621307", "0.62061965", "0.61809874", "0.6171016", "0.6080136", "0.59153235", "0.5882095", "0.54224825", "0.5329907", "0.52174616", "0.5071686", "0.48813662", "0.44930914", "0.44539413", "0.44163388", "0.43574676", "0.43344837", "0.43233624", "0.43198448", "0.4267265", "0.42656642", "0.42504397", "0.42503768", "0.424982", "0.42113063", "0.42037502", "0.4195549", "0.41819727", "0.41803554", "0.4167763", "0.41677374", "0.41634792", "0.4154857", "0.41396466", "0.41382718", "0.41372982", "0.41275185", "0.41236955", "0.4116694", "0.4116694", "0.410148", "0.40956387", "0.40896645", "0.40885484", "0.40796623", "0.40760064", "0.40642604", "0.4054068", "0.40533862", "0.40531665", "0.40448478", "0.404358", "0.4040515", "0.40391704", "0.40381318", "0.4026833", "0.4016512", "0.40126204", "0.40117598", "0.40030518", "0.3984669", "0.39696127", "0.39645204", "0.3961239", "0.39597717", "0.3957522", "0.39566213", "0.39533058", "0.3953013", "0.39520422", "0.39425078", "0.3939856", "0.39394155", "0.39363483", "0.39330262", "0.39322835", "0.39311126", "0.39222938", "0.3920036", "0.3913167", "0.39102802", "0.39098004", "0.3907706", "0.39058504", "0.3897454", "0.38838717", "0.38808334", "0.38734803", "0.3867828", "0.38675866", "0.38675815", "0.38658655", "0.38644698", "0.38644323", "0.3862568", "0.38616437", "0.3860887", "0.3859075", "0.3855329" ]
0.58732283
8
Create a DIDURL object from the given string. The method will parse the DIDURL object from the string if the string is not empty. Otherwise will return null. If the parsed DIDURL object is relative, then use context as it's base DID.
public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException { return (url == null || url.isEmpty()) ? null : new DIDURL(context, url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "public DIDURL(DID context, String url) throws MalformedDIDURLException {\n\t\tParser parser = new Parser();\n\t\tparser.parse(context, url);\n\t}", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "private static URL m23464a(Context context, String str) {\n try {\n return new URL(str);\n } catch (MalformedURLException e) {\n C5376d dVar = C5376d.EXCEPTION;\n StringBuilder sb = new StringBuilder();\n sb.append(\"OMSDK: can't create URL - \");\n sb.append(str);\n C5378f.m23016a(context, dVar, sb.toString(), e.getMessage(), \"\");\n return null;\n }\n }", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "@Override\n\t\t\tpublic Device fromString(String arg0) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic Device fromString(String arg0) {\n\t\t\t\treturn null;\n\t\t\t}", "public static URL createURL(String stringURL, final Context context) {\n URL url = null;\n try {\n url = new URL(stringURL);\n } catch (MalformedURLException e) {\n //use a handler to create a toast on the UI thread\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(context, \"Error: Check URL is valid.\", Toast.LENGTH_SHORT)\n .show();\n }\n });\n Log.e(LOG_TAG, \"Error: Check URL is valid.\", e);\n }\n return url;\n }", "private URI findBaseUrl0(String stringUrl) throws URISyntaxException {\n stringUrl = stringUrl.replace(\"\\\\\", \"/\");\n int qindex = stringUrl.indexOf(\"?\");\n if (qindex != -1) {\n // stuff after the ? tends to make the Java URL parser burp.\n stringUrl = stringUrl.substring(0, qindex);\n }\n URI url = new URI(stringUrl);\n URI baseUrl = new URI(url.getScheme(), url.getAuthority(), url.getPath(), null, null);\n\n String path = baseUrl.getPath().substring(1); // toss the leading /\n String[] pieces = path.split(\"/\");\n List<String> urlSlashes = new ArrayList<String>();\n // reverse\n for (String piece : pieces) {\n urlSlashes.add(piece);\n }\n List<String> cleanedSegments = new ArrayList<String>();\n String possibleType = \"\";\n boolean del;\n\n for (int i = 0; i < urlSlashes.size(); i++) {\n String segment = urlSlashes.get(i);\n\n // Split off and save anything that looks like a file type.\n if (segment.indexOf(\".\") != -1) {\n possibleType = segment.split(\"\\\\.\")[1];\n\n /*\n * If the type isn't alpha-only, it's probably not actually a file extension.\n */\n if (!possibleType.matches(\"[^a-zA-Z]\")) {\n segment = segment.split(\"\\\\.\")[0];\n }\n }\n\n /**\n * EW-CMS specific segment replacement. Ugly. Example:\n * http://www.ew.com/ew/article/0,,20313460_20369436,00.html\n **/\n if (segment.indexOf(\",00\") != -1) {\n segment = segment.replaceFirst(\",00\", \"\");\n }\n\n // If our first or second segment has anything looking like a page\n // number, remove it.\n /* Javascript code has some /i's here, we might need to fiddle */\n Matcher pnMatcher = Patterns.PAGE_NUMBER_LIKE.matcher(segment);\n if (pnMatcher.matches() && ((i == 1) || (i == 0))) {\n segment = pnMatcher.replaceAll(\"\");\n }\n\n del = false;\n\n /*\n * If this is purely a number, and it's the first or second segment, it's probably a page number.\n * Remove it.\n */\n if (i < 2 && segment.matches(\"^\\\\d{1,2}$\")) {\n del = true;\n }\n\n /* If this is the first segment and it's just \"index\", remove it. */\n if (i == 0 && segment.toLowerCase() == \"index\")\n del = true;\n\n /*\n * If our first or second segment is smaller than 3 characters, and the first segment was purely\n * alphas, remove it.\n */\n /* /i again */\n if (i < 2 && segment.length() < 3 && !urlSlashes.get(0).matches(\"[a-z]\"))\n del = true;\n\n /* If it's not marked for deletion, push it to cleanedSegments. */\n if (!del) {\n cleanedSegments.add(segment);\n }\n }\n\n String cleanedPath = \"\";\n for (String s : cleanedSegments) {\n cleanedPath = cleanedPath + s;\n cleanedPath = cleanedPath + \"/\";\n }\n URI cleaned = new URI(url.getScheme(), url.getAuthority(), \"/\"\n + cleanedPath.substring(0, cleanedPath\n .length() - 1), null, null);\n return cleaned;\n }", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "private URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "public abstract void fromString(String s, String context);", "public static URL convertToUrl(String urlStr) {\n try {\n URL url = new URL(urlStr);\n URI uri = new URI(url.getProtocol(), url.getUserInfo(),\n url.getHost(), url.getPort(), url.getPath(),\n url.getQuery(), url.getRef());\n url = uri.toURL();\n return url;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "protected URL stringToURL(String urlString){\n try{\n URL url = new URL(urlString);\n return url;\n }catch(MalformedURLException e){\n e.printStackTrace();\n }\n return null;\n }", "@Override\n public WikiReference parse(String str)\n {\n str = str.trim();\n String reference = null;\n String label = null;\n if (str.contains(\"|\")) {\n reference = str.substring(0, str.indexOf('|'));\n label = str.substring(str.indexOf('|') + 1);\n } else {\n reference = str;\n }\n \n // special case images ...\n if (reference.matches(PREFIX_IMAGE) || reference.matches(PREFIX_FILE)) {\n reference = reference.substring(reference.indexOf(':') + 1);\n if (label != null) {\n WikiParameters params = this.generateImageParams(label);\n if (params.getParameter(\"alt\") != null) {\n label = params.getParameter(\"alt\").getValue();\n } else {\n label = \"\";\n }\n // copy ALT attribute to TITLE attribute, cause it's more user friendly\n if (params.getParameter(\"title\") == null && \"\".equals(label)) {\n params.addParameter(\"title\", label);\n }\n return new WikiReference(reference, label, params);\n }\n return new WikiReference(reference);\n }\n\n // External link with label\n // Case: [http://mediawiki.org MediaWiki]\n WikiReference wikiReference;\n if (-1 != str.indexOf(' ') && (str.contains(\"://\") || str.matches(PREFIX_MAILTO))) {\n String link = str.substring(0, str.indexOf(' ')).trim();\n label = str.substring(str.indexOf(' ') + 1).trim();\n wikiReference = new WikiReference(link, label);\n } else {\n wikiReference = new WikiReference(reference, label);\n }\n return wikiReference;\n\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Problem building the URL \", e);\n }\n return url;\n }", "public static String decodePathVariable(String objectId) {\n if (objectId != null) {\n return objectId.replace(FORWARD_SLASH_ENCODED1, FORWARD_SLASH);\n }\n return objectId;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "java.lang.String getDidUri();", "public String getURIInternal(String str) {\n String namespaceURI = this.context.getNamespaceURI(str);\n return namespaceURI == null ? \"\" : namespaceURI;\n }", "public static String extractDNfromURL(String _DN) {\r\n\r\n // ***************************\r\n // Make sure we have a string.\r\n if ((_DN == null) ||\r\n (_DN.equals(\"\"))) {\r\n return (_DN);\r\n }\r\n\r\n // ***************************\r\n // Create an LDAPURL Object\r\n // from the incoming String.\r\n //\r\n LDAPUrl _ldapurl = null;\r\n try {\r\n _ldapurl = new LDAPUrl(_DN);\r\n } catch (java.net.MalformedURLException mue) {\r\n // *******************************\r\n // This is a malformed URL, return\r\n // Null.\r\n return (\"\");\r\n } // End of Exception.\r\n\r\n // ***************************\r\n // Extract the DN.\r\n //\r\n return (_ldapurl.getDN());\r\n }", "@Override\n\tpublic URL getURL(String uri) throws MalformedURLException {\n\t\tif (uri.length() == 0) {\n\t\t\tthrow new MalformedURLException(\"Empty URI\");\n\t\t}\n\t\tURL url;\n\t\tif (uri.indexOf(\"://\") < 0) {\n\t\t\turl = new URL(getBaseURL(), uri);\n\t\t} else {\n\t\t\turl = new URL(uri);\n\t\t}\n\t\treturn url;\n\t}", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "private static URL generateUrl(String requestedUrlString) {\n URL url = null;\n\n try {\n url = new URL(requestedUrlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating a URL object : generateURL() block\", e);\n }\n return url;\n }", "public static String normalizeUrl(final String urlString) {\n if (urlString == null) {\n return null;\n }\n\n // this routine is called from some performance-critical code and creating a URI from a string\n // is slow, so skip it when possible - if we know it's not a relative path (and 99.9% of the\n // time it won't be for our purposes) then we can normalize it without java.net.URI.normalize()\n if (urlString.startsWith(\"http\") &&\n !urlString.contains(\"build/intermediates/exploded-aar/org.wordpress/graphview/3.1.1\")) {\n // return without a trailing slash\n if (urlString.endsWith(\"/\")) {\n return urlString.substring(0, urlString.length() - 1);\n }\n return urlString;\n }\n\n // url is relative, so fall back to using slower java.net.URI normalization\n try {\n URI uri = URI.create(urlString);\n return uri.normalize().toString();\n } catch (IllegalArgumentException e) {\n return urlString;\n }\n }", "private static URL createURL(String urlString) {\n\n // Create an empty url\n URL url = null;\n\n try {\n // Try to make a url from urlString param\n url = new URL(urlString);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error creating URL: \" + e);\n }\n\n //Return the new url\n return url;\n }", "Uri decodeRefUri(String s, XElem elem)\n { \n Uri uri = new Uri(s);\n if (!uri.isFragment()) return uri;\n \n // check if we've already parsed the obj to which\n // this fragment id referneces\n Obj resolved = (Obj)fragIds.get(s); \n if (resolved != null)\n { \n uri.setResolved(resolved);\n return uri;\n } \n \n // if not then this uri is forwardly used (or \n // maybe missing), so just store it away \n FragRefs refs = (FragRefs)fragRefs.get(s);\n if (refs == null) fragRefs.put(s, refs = new FragRefs());\n refs.uris.add(uri);\n refs.elems.add(elem);\n \n return uri;\n }", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public T caseURL(URL object)\n {\n return null;\n }", "public URL makeFullUrl(String scrapedString, URL base);", "private static Uri m63903b(Cursor cursor, String str) {\n try {\n return Uri.parse(m63901a(cursor, str));\n } catch (NullPointerException unused) {\n return null;\n }\n }", "public static URL createURL(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n }\n catch (MalformedURLException m) {\n Log.e(LOG_TAG,\"Error creating URL\",m);\n }\n return url;\n }", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "public static final String m130159a(String str) {\n String str2;\n if (TextUtils.isEmpty(str)) {\n return \"\";\n }\n Uri parse = Uri.parse(str);\n if (parse != null) {\n str2 = parse.getHost();\n } else {\n str2 = null;\n }\n if (TextUtils.equals(str2, C22912d.f60641a)) {\n return \"web_url\";\n }\n return C22912d.f60642b;\n }", "void first_normalize_url(String rawurl, PointerByReference ptr);", "public URL makeBase(URL startingURL);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static GenericUrl getGenericURL(String endPoint) {\n\t\tString tempURL = getURL(endPoint);\n\t\tGenericUrl url = null;\n\t\tif (!(\"\".equalsIgnoreCase(tempURL))) {\n\t\t\turl = new GenericUrl(getURL(endPoint));\n\t\t}\n\n\t\treturn url;\n\t}", "private String resolveAbsoluteURL(String defaultUrlContext, String urlFromConfig, String tenantDomain) throws IdentityProviderManagementServerException {\n\n if (!IdentityTenantUtil.isTenantQualifiedUrlsEnabled() && StringUtils.isNotBlank(urlFromConfig)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Resolved URL:\" + urlFromConfig + \" from file configuration for default url context: \" +\n defaultUrlContext);\n }\n return urlFromConfig;\n }\n\n try {\n ServiceURLBuilder serviceURLBuilder = ServiceURLBuilder.create().setTenant(tenantDomain);\n return serviceURLBuilder.addPath(defaultUrlContext).build().getAbsolutePublicURL();\n } catch (URLBuilderException e) {\n throw IdentityProviderManagementException.error(IdentityProviderManagementServerException.class,\n \"Error while building URL: \" + defaultUrlContext, e);\n }\n }", "public UvScanUrl(String stringID , String baseUrl)\r\n\t{\r\n\t\tthis.stringID = stringID;\r\n\t\tthis.baseUrl = baseUrl;\r\n\t\t\r\n\t\t\r\n\t\tfollowsConfigUrlPattern = false;\r\n\t\tfollowsConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tfollowsExactConfigUrlPattern = false;\r\n\t\tfollowsExactConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tisBaseUrlLocalized = false;\r\n\t\tisRedirectedUrlLocalized = false;\r\n\t\t\r\n\t\tisDeleted=false;\r\n\t\tisErrorPage= true;\r\n\r\n\t\texceptionType =UrlExceptionLevel.None;\r\n\t\t\r\n\t\tbaseUrlPatternMatchResult = \"\";\r\n\t\tredirectedUrlPatternMatchResult = \"\";\r\n\t\t\r\n\t\texceptionOccurred = \"\";\r\n\t}", "public static URL str2url( String strUrl )\r\n {\r\n try\r\n {\r\n URL url = new URL( strUrl );\r\n return url;\r\n }\r\n catch( MalformedURLException e )\r\n {\r\n Log.e( TAG, \"\", e );\r\n throw new IllegalArgumentException( \"str2url\", e );\r\n } \r\n }", "String getBaseUri();", "public final URL mo15944a(String str) {\n try {\n return new URL(String.format(\"https://%s/%s/%s\", new Object[]{\"firebaseinstallations.googleapis.com\", \"v1\", str}));\n } catch (MalformedURLException e) {\n throw new C4291f(e.getMessage(), C4291f.C4292a.UNAVAILABLE);\n }\n }", "public URL standardizeURL(URL startingURL);", "public static IPath createPossiblyRelativePath(String pathString) {\r\n\t\t// canonicalize slashes\r\n\t\tchar[] pathChars = pathString.toCharArray();\r\n\t\tint offset = 0;\r\n\t\tfor (int i = 0; i < pathChars.length; i++) {\r\n\t\t\tif (pathChars[i] == '\\\\')\r\n\t\t\t\tpathChars[i] = '/';\r\n\t\t}\r\n\t\t\r\n\t\t// The problem is, if \"./\" appears, then \"../\"'s after it are dropped,\r\n\t\t// so get rid of \"./\" early. The result will still be relative.\r\n\t\twhile (offset + 2 <= pathChars.length) { \r\n\t\t\tif (pathChars[offset] == '.' && pathChars[offset+1] == '/') {\r\n\t\t\t\toffset += 2;\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn PathUtils.createPath(new String(pathChars, offset, pathChars.length - offset));\r\n\t}", "@Override // com.fasterxml.jackson.databind.deser.std.FromStringDeserializer\n public final Uri A0Q(String str, AbstractC02210iH r3) throws IOException, C03620oC {\n return Uri.parse(str);\n }", "public URIBuilder(final String string) {\n super();\n try {\n digestURI(new URI(string));\n } catch (final URISyntaxException e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "@Test\n public void testMakeRelativeURL3() throws Exception {\n URL base = new URL(\"http://ahost.invalid/a/b/c\");\n assertEquals(new URL(\"http://host.invalid/e\"),ConversionUtils.makeRelativeURL(base ,\"http://host.invalid/e\"));\n assertEquals(new URL(\"https://host.invalid/e\"),ConversionUtils.makeRelativeURL(base ,\"https://host.invalid/e\"));\n assertEquals(new URL(\"http://host.invalid:8081/e\"),ConversionUtils.makeRelativeURL(base ,\"http://host.invalid:8081/e\"));\n assertEquals(new URL(\"https://host.invalid:8081/e\"),ConversionUtils.makeRelativeURL(base ,\"https://host.invalid:8081/e\"));\n }", "public static String getURLString(String str) {\n String str2 = \"\";\n try {\n String substring = str.substring(str.indexOf(\"url\\\">\") + 5);\n return substring.substring(0, substring.indexOf(\"<\"));\n } catch (Exception e) {\n e.printStackTrace();\n return str2;\n }\n }", "public static String decodeParameter(String objectId) {\n if (objectId != null) {\n return objectId.replace(FORWARD_SLASH_ENCODED2, FORWARD_SLASH);\n }\n return objectId;\n }", "public DsSipElementListener elementBegin(int contextId, int elementId)\n throws DsSipParserListenerException {\n if (DsSipMessage.DEBUG) {\n System.out.println(\n \"elementBegin - contextId = [\"\n + contextId\n + \"][\"\n + DsSipMsgParser.HEADER_NAMES[contextId]\n + \"]\");\n System.out.println(\n \"elementBegin - elementId = [\"\n + elementId\n + \"][\"\n + DsSipMsgParser.ELEMENT_NAMES[elementId]\n + \"]\");\n System.out.println();\n }\n DsURI uri = null;\n switch (elementId) {\n /*\n // Not expected\n case NAME_ADDR_ID:\n if (m_nameAddress == null)\n {\n m_nameAddress = new DsSipNameAddress();\n }\n return m_nameAddress;\n */\n case SIP_URL:\n uri = new DsSipURL();\n break;\n case SIPS_URL:\n uri = new DsSipURL(true);\n break;\n case TEL_URL:\n uri = new DsTelURL();\n break;\n case HTTP_URL:\n case UNKNOWN_URL:\n uri = new DsURI();\n break;\n }\n if (null != uri) setURI(uri);\n return uri;\n }", "private static URL stringToUrl(String stringUrl) throws MalformedURLException{\r\n\t\treturn new URL(stringUrl);\r\n\t}", "private static String handleUrl(String s) {\n if (s.endsWith(\"/..\")) {\n int idx = s.lastIndexOf('/');\n s = s.substring(0, idx - 1);\n idx = s.lastIndexOf('/');\n String gs = s.substring(0, idx);\n if (!gs.equals(\"smb:/\")) {\n s = gs;\n }\n }\n if (!s.endsWith(\"/\")) {\n s += \"/\";\n }\n System.out.println(\"now its \" + s);\n return s;\n }", "public static String normalize(String url) {\n try {\n URL absoluteUrl = new URL(url);\n return new URL(\n absoluteUrl.getProtocol(), \n absoluteUrl.getHost(), \n absoluteUrl.getPort(),\n absoluteUrl.getPath())\n .toString();\n } catch (Exception ex) {\n return null;\n }\n }", "private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}", "protected String resolveURL(HttpServletRequest request, DSpaceObject dso) {\n // If no object given then just link to the whole repository,\n // since no offical handle exists so we have to use local resolution.\n if (dso == null) {\n if (baseURL == null) {\n if (request == null) {\n baseURL = configurationService.getProperty(\"dspace.ui.url\");\n } else {\n baseURL = configurationService.getProperty(\"dspace.ui.url\");\n baseURL += request.getContextPath();\n }\n }\n return baseURL;\n } else if (configurationService.getBooleanProperty(\"webui.feed.localresolve\")) {\n // return a link to handle in repository\n return resolveURL(request, null) + \"/handle/\" + dso.getHandle();\n } else {\n // link to the Handle server or other persistent URL source\n return HandleServiceFactory.getInstance().getHandleService().getCanonicalForm(dso.getHandle());\n }\n }", "private URI makeUri(String source) throws URISyntaxException {\n if (source == null)\n source = \"\";\n\n if ((source.length()>0)&&((source.substring(source.length() - 1)).equals(\"/\") ))\n source=source.substring(0, source.length() - 1);\n\n return new URI( source.toLowerCase() );\n }", "public RecordDescriptor getRecordDescriptor(String recordDescriptorIdOrUrl) {\n if (recordDescriptorIdOrUrl == null) {\n return null;\n }\n if (recordDescriptorIdOrUrl.contains(\"#\")) {\n recordDescriptorIdOrUrl = recordDescriptorIdOrUrl.substring(recordDescriptorIdOrUrl.indexOf(\"#\") + 1);\n }\n return recordDescriptorMap.get(recordDescriptorIdOrUrl);\n }", "@Deprecated\r\n\tpublic static URI createURIWithoutChecking(String uriString) {\r\n\t\treturn new URIImpl(uriString, false);\r\n\t}", "@org.junit.Test\n public void constrCompelemBaseuri2() {\n final XQuery query = new XQuery(\n \"fn:base-uri(exactly-one((<elem xml:base=\\\"http://www.example.com\\\">{element a {}}</elem>)/a))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "public static String getWorkRelativePath(String baseURL, String testId) {\n StringBuilder sb = new StringBuilder(baseURL);\n\n // strip off extension\n stripExtn:\n for (int i = sb.length() - 1; i >= 0; i--) {\n switch (sb.charAt(i)) {\n case '.':\n sb.setLength(i);\n break stripExtn;\n case '/':\n break stripExtn;\n }\n }\n\n // add in uniquifying id if\n if (testId != null) {\n sb.append('_');\n sb.append(testId);\n }\n\n sb.append(EXTN);\n\n return sb.toString();\n }", "@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }", "FullUriTemplateString baseUri();", "public Uri bundleToUri(Bundle bundle, String str) {\n if (bundle == null) {\n debugLog(\"bundle is null : bundleToUri\");\n return null;\n }\n String string = bundle.getString(str, (String) null);\n if (!TextUtils.isEmpty(string)) {\n return Uri.parse(string);\n }\n return null;\n }", "public boolean isUri(String obj) {\r\n//\t\treturn obj.matches(\"(([a-zA-Z][0-9a-zA-Z+\\\\\\\\-\\\\\\\\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\\\\\\\\.\\\\\\\\-_!~*'()%]+)?(#[0-9a-zA-Z;/?:@&=+$\\\\\\\\.\\\\\\\\-_!~*'()%]+)?\");\r\n\t\treturn false;\r\n\t}", "protected Source convertString2Source(String param) {\n Source src;\n try {\n src = uriResolver.resolve(param, null);\n } catch (TransformerException e) {\n src = null;\n }\n if (src == null) {\n src = new StreamSource(new File(param));\n }\n return src;\n }", "public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n }\n }", "com.google.protobuf.ByteString\n getDidUriBytes();", "public UUID(String string) {\n FromString(string);\n }", "public URI getUri(String iden) {\r\n\t\tURI rtn = null;\r\n\t\tString url = null;\r\n\t\tStringBuilder strRtn = new StringBuilder(uriBuilder);\r\n\t\tif(isUri(iden)) {\r\n\t\t\tSystem.out.println(\"isUri\");\r\n\t\t\treturn valueFactory.createURI(iden);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\turl = URLEncoder.encode(iden,\"utf-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tstrRtn.append(url);\r\n\t\t\trtn = valueFactory.createURI(strRtn.toString());\r\n\t\t\treturn rtn;\r\n\t\t}\r\n\t}", "private void processUrl (String stringUrl)\n\t{\n\t\tURL correctUrl=null;\n\t\t// we need the URL\n\t\t// we first try to convert it directly\n\t\ttry {\n\t\t\tcorrectUrl=new URL(stringUrl);\n\t\t} catch (MalformedURLException e) {System.out.println(\"Not found : \"+stringUrl);return;}\n\n\t\tallInformation.getNemo().addJcamp(stringUrl);\n\t}", "public static String prettyURL(String string) {\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString normalized = Normalizer.normalize(string.toLowerCase(), Form.NFD);\n\t\tString withoutDiacriticalMarks = PATTERN_DIACRITICAL_MARKS.matcher(normalized).replaceAll(\"\");\n\t\treturn PATTERN_NON_ALPHANUMERIC_CHARS.matcher(withoutDiacriticalMarks).replaceAll(\"-\");\n\t}", "public static String determineBaseUrl(String url) {\r\n\t\t// Determine the index of the first slash after the first period.\r\n\t\tint firstSub = url.indexOf(\"/\", url.indexOf(\".\"));\r\n\t\t\r\n\t\tif (firstSub == -1)\r\n\t\t\t// There were no sub directories included in the URL.\r\n\t\t\treturn url;\r\n\t\telse\r\n\t\t\treturn url.substring(0, firstSub);\r\n\t}", "public static URIElement buildURIElement(String uri) throws AmazonException{\r\n\t\tint questionIndex = uri.indexOf('?');\r\n\t\tif(questionIndex > 0){\r\n\t\t\turi = uri.substring(0, questionIndex);\r\n\t\t}\r\n\t\tString[] uriElements = uri.split(\"/\");\r\n\t\tif(uriElements.length < 4){\r\n\t\t\tthrow new AmazonException(\"InCompatible URI: \" + uri);\r\n\t\t}\r\n\t\tString context = uriElements[1];\r\n\t\tString module = uriElements[2];\r\n\t\tString command = uriElements[3];\r\n\t\tString method = \"execute\";\r\n\t\tif(uriElements.length == 5 ){\r\n\t\t\tif(uriElements[4] != null || !uriElements[4].isEmpty()){\r\n\t\t\t\tmethod = uriElements[4];\r\n\t\t\t}\r\n\t\t}\r\n\t\tint dotIndex = method.indexOf('.');\r\n\t\tif(dotIndex > 0){\r\n\t\t\tmethod = method.substring(0, dotIndex);\r\n\t\t}\r\n\t\t\r\n\t\treturn new URIElement(context, module, command, method);\r\n\t}", "public T caseURDFAttrSTRING(URDFAttrSTRING object) {\r\n\t\treturn null;\r\n\t}", "private Uri m2344g(String str) {\n return mo10091b(str, this.f2759a.mo9868F(), true);\n }", "protected void parseURL(URL paramURL, String paramString, int paramInt1, int paramInt2) {\n/* 126 */ String str1 = paramURL.getProtocol();\n/* 127 */ String str2 = paramURL.getAuthority();\n/* 128 */ String str3 = paramURL.getUserInfo();\n/* 129 */ String str4 = paramURL.getHost();\n/* 130 */ int i = paramURL.getPort();\n/* 131 */ String str5 = paramURL.getPath();\n/* 132 */ String str6 = paramURL.getQuery();\n/* */ \n/* */ \n/* 135 */ String str7 = paramURL.getRef();\n/* */ \n/* 137 */ boolean bool1 = false;\n/* 138 */ boolean bool2 = false;\n/* */ \n/* */ \n/* */ \n/* 142 */ if (paramInt1 < paramInt2) {\n/* 143 */ int k = paramString.indexOf('?');\n/* 144 */ bool2 = (k == paramInt1) ? true : false;\n/* 145 */ if (k != -1 && k < paramInt2) {\n/* 146 */ str6 = paramString.substring(k + 1, paramInt2);\n/* 147 */ if (paramInt2 > k)\n/* 148 */ paramInt2 = k; \n/* 149 */ paramString = paramString.substring(0, k);\n/* */ } \n/* */ } \n/* */ \n/* 153 */ int j = 0;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 159 */ boolean bool3 = (paramInt1 <= paramInt2 - 4 && paramString.charAt(paramInt1) == '/' && paramString.charAt(paramInt1 + 1) == '/' && paramString.charAt(paramInt1 + 2) == '/' && paramString.charAt(paramInt1 + 3) == '/') ? true : false;\n/* 160 */ if (!bool3 && paramInt1 <= paramInt2 - 2 && paramString.charAt(paramInt1) == '/' && paramString\n/* 161 */ .charAt(paramInt1 + 1) == '/') {\n/* 162 */ paramInt1 += 2;\n/* 163 */ j = paramString.indexOf('/', paramInt1);\n/* 164 */ if (j < 0 || j > paramInt2) {\n/* 165 */ j = paramString.indexOf('?', paramInt1);\n/* 166 */ if (j < 0 || j > paramInt2) {\n/* 167 */ j = paramInt2;\n/* */ }\n/* */ } \n/* 170 */ str4 = str2 = paramString.substring(paramInt1, j);\n/* */ \n/* 172 */ int k = str2.indexOf('@');\n/* 173 */ if (k != -1) {\n/* 174 */ if (k != str2.lastIndexOf('@')) {\n/* */ \n/* 176 */ str3 = null;\n/* 177 */ str4 = null;\n/* */ } else {\n/* 179 */ str3 = str2.substring(0, k);\n/* 180 */ str4 = str2.substring(k + 1);\n/* */ } \n/* */ } else {\n/* 183 */ str3 = null;\n/* */ } \n/* 185 */ if (str4 != null) {\n/* */ \n/* */ \n/* 188 */ if (str4.length() > 0 && str4.charAt(0) == '[') {\n/* 189 */ if ((k = str4.indexOf(']')) > 2) {\n/* */ \n/* 191 */ String str = str4;\n/* 192 */ str4 = str.substring(0, k + 1);\n/* */ \n/* 194 */ if (!IPAddressUtil.isIPv6LiteralAddress(str4.substring(1, k))) {\n/* 195 */ throw new IllegalArgumentException(\"Invalid host: \" + str4);\n/* */ }\n/* */ \n/* */ \n/* 199 */ i = -1;\n/* 200 */ if (str.length() > k + 1) {\n/* 201 */ if (str.charAt(k + 1) == ':') {\n/* 202 */ k++;\n/* */ \n/* 204 */ if (str.length() > k + 1) {\n/* 205 */ i = Integer.parseInt(str.substring(k + 1));\n/* */ }\n/* */ } else {\n/* 208 */ throw new IllegalArgumentException(\"Invalid authority field: \" + str2);\n/* */ } \n/* */ }\n/* */ } else {\n/* */ \n/* 213 */ throw new IllegalArgumentException(\"Invalid authority field: \" + str2);\n/* */ } \n/* */ } else {\n/* */ \n/* 217 */ k = str4.indexOf(':');\n/* 218 */ i = -1;\n/* 219 */ if (k >= 0) {\n/* */ \n/* 221 */ if (str4.length() > k + 1) {\n/* 222 */ i = Integer.parseInt(str4.substring(k + 1));\n/* */ }\n/* 224 */ str4 = str4.substring(0, k);\n/* */ } \n/* */ } \n/* */ } else {\n/* 228 */ str4 = \"\";\n/* */ } \n/* 230 */ if (i < -1) {\n/* 231 */ throw new IllegalArgumentException(\"Invalid port number :\" + i);\n/* */ }\n/* 233 */ paramInt1 = j;\n/* */ \n/* */ \n/* 236 */ if (str2 != null && str2.length() > 0) {\n/* 237 */ str5 = \"\";\n/* */ }\n/* */ } \n/* 240 */ if (str4 == null) {\n/* 241 */ str4 = \"\";\n/* */ }\n/* */ \n/* */ \n/* 245 */ if (paramInt1 < paramInt2) {\n/* 246 */ if (paramString.charAt(paramInt1) == '/') {\n/* 247 */ str5 = paramString.substring(paramInt1, paramInt2);\n/* 248 */ } else if (str5 != null && str5.length() > 0) {\n/* 249 */ bool1 = true;\n/* 250 */ int k = str5.lastIndexOf('/');\n/* 251 */ String str = \"\";\n/* 252 */ if (k == -1 && str2 != null) {\n/* 253 */ str = \"/\";\n/* */ }\n/* 255 */ str5 = str5.substring(0, k + 1) + str + paramString.substring(paramInt1, paramInt2);\n/* */ } else {\n/* */ \n/* 258 */ String str = (str2 != null) ? \"/\" : \"\";\n/* 259 */ str5 = str + paramString.substring(paramInt1, paramInt2);\n/* */ } \n/* 261 */ } else if (bool2 && str5 != null) {\n/* 262 */ int k = str5.lastIndexOf('/');\n/* 263 */ if (k < 0)\n/* 264 */ k = 0; \n/* 265 */ str5 = str5.substring(0, k) + \"/\";\n/* */ } \n/* 267 */ if (str5 == null) {\n/* 268 */ str5 = \"\";\n/* */ }\n/* 270 */ if (bool1) {\n/* */ \n/* 272 */ while ((j = str5.indexOf(\"/./\")) >= 0) {\n/* 273 */ str5 = str5.substring(0, j) + str5.substring(j + 2);\n/* */ }\n/* */ \n/* 276 */ j = 0;\n/* 277 */ while ((j = str5.indexOf(\"/../\", j)) >= 0) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 284 */ if (j > 0 && (paramInt2 = str5.lastIndexOf('/', j - 1)) >= 0 && str5\n/* 285 */ .indexOf(\"/../\", paramInt2) != 0) {\n/* 286 */ str5 = str5.substring(0, paramInt2) + str5.substring(j + 3);\n/* 287 */ j = 0; continue;\n/* */ } \n/* 289 */ j += 3;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 294 */ j = str5.indexOf(\"/..\");\n/* 295 */ while (str5.endsWith(\"/..\") && (paramInt2 = str5.lastIndexOf('/', j - 1)) >= 0) {\n/* 296 */ str5 = str5.substring(0, paramInt2 + 1);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 302 */ if (str5.startsWith(\"./\") && str5.length() > 2) {\n/* 303 */ str5 = str5.substring(2);\n/* */ }\n/* */ \n/* 306 */ if (str5.endsWith(\"/.\")) {\n/* 307 */ str5 = str5.substring(0, str5.length() - 1);\n/* */ }\n/* */ } \n/* 310 */ setURL(paramURL, str1, str4, i, str2, str3, str5, str6, str7);\n/* */ }", "public URIImpl(String uriString) {\r\n\t\tthis(uriString, true);\r\n\t}", "private static URL absolutize(URL baseURL, String href) \n throws MalformedURLException, BadHrefAttributeException {\n \n Element parent = new Element(\"c\");\n parent.setBaseURI(baseURL.toExternalForm());\n Element child = new Element(\"c\");\n parent.appendChild(child);\n child.addAttribute(new Attribute(\n \"xml:base\", \"http://www.w3.org/XML/1998/namespace\", href));\n URL result = new URL(child.getBaseURI());\n if (!\"\".equals(href) && result.equals(baseURL)) {\n if (! baseURL.toExternalForm().endsWith(href)) {\n throw new BadHrefAttributeException(href \n + \" is not a syntactically correct IRI\");\n }\n }\n return result;\n \n }", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public final String getURL(final String id) {\n\t\tString url = \"\";\n\t\turl += \"http://\";\n\t\turl += CONFIGURATION.PENTAHO_IP;\n\t\turl += \":\";\n\t\turl += CONFIGURATION.PENTAHO_PORTNUMBER;\n\t\turl += CONFIGURATION.CDASOLUTION_ADDRESS;\n\t\turl += CONFIGURATION.CDA_METHOD;\n\t\turl += \"?\";\n\t\turl += \"solution=\";\n\t\turl += CONFIGURATION.CDA_SOLUTION;\n\t\turl += \"&\";\n\t\turl += \"path=\";\n\t\turl += CONFIGURATION.CDA_PATH.replace(\"/\", \"%2F\");\n\t\turl += \"&\";\n\t\turl += \"file=\";\n\t\turl += CONFIGURATION.CDA_FILEFULLNAME;\n\t\turl += \"&\";\n\t\turl += \"dataAccessId=\";\n\t\turl += id;\n\t\treturn url;\n\t}", "public String reverseLink(String str) {\n int pip = str.indexOf(BundlesDT.DELIM, str.indexOf(BundlesDT.DELIM)+1);\n\treturn str.substring(pip+1,str.length()) + BundlesDT.DELIM + str.substring(0,pip);\n }", "public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String mo88914a(String str) {\n if (!TextUtils.isEmpty(str) && str.indexOf(\"href=\\\"\") != -1) {\n String[] split = str.split(\"href=\\\"\");\n if (split.length > 1 && !TextUtils.isEmpty(split[1])) {\n String str2 = split[1];\n if (str2.indexOf(\"\\\"\") != -1) {\n String[] split2 = str2.split(\"\\\"\");\n if (split2.length > 0 && !TextUtils.isEmpty(split2[0])) {\n return split2[0];\n }\n }\n }\n }\n return null;\n }", "@org.junit.Test\n public void constrCompelemBaseuri1() {\n final XQuery query = new XQuery(\n \"fn:base-uri(element elem {attribute xml:base {\\\"http://www.example.com\\\"}})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "public Builder setDid(String did) {\n\t\t\treturn setDid(DID.valueOf(did));\n\t\t}", "@Override\n protected void parseURL(URL url, String spec, int start, int end) {\n if (end < start) {\n return;\n }\n String parseString = \"\";\n if (start < end) {\n parseString = spec.substring(start, end).replace('\\\\', '/');\n }\n super.parseURL(url, parseString, 0, parseString.length());\n }", "public static String urlDecode(String str) {\n try {\n return URLDecoder.decode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }", "public static ResourceAddress from(String address) {\n if (address == null) {\n throw new IllegalArgumentException(\"Address must not be null\");\n }\n\n ResourceAddress ra;\n if (address.trim().length() == 0) {\n ra = ResourceAddress.root();\n } else {\n String safeAddress = address.startsWith(\"/\") ? address.substring(1) : address;\n if (safeAddress.length() == 0) {\n ra = ResourceAddress.root();\n } else if (!safeAddress.contains(\"/\")) {\n ra = new ResourceAddress();\n String[] parts = safeAddress.split(\"=\");\n if (parts.length != 2) {\n throw new IllegalArgumentException(\"Malformed address: \" + address);\n }\n ra.add(parts[0], parts[1]);\n } else {\n ra = new ResourceAddress();\n String[] parts = safeAddress.split(\"/\");\n if (parts.length == 0) {\n throw new IllegalArgumentException(\"Malformed address: \" + address);\n }\n for (String part : parts) {\n String[] kv = part.split(\"=\");\n if (kv.length != 2) {\n throw new IllegalArgumentException(\"Malformed part '\" + part + \"' in address: \" + address);\n }\n ra.add(kv[0], kv[1]);\n }\n }\n }\n return ra;\n }", "private static UUID uuidFromDSUID(String dsuid) {\n return UUID.fromString(\n dsuid.substring(0, 8) + \"-\" +\n dsuid.substring(8, 12) + \"-\" +\n dsuid.substring(12, 16) + \"-\" +\n dsuid.substring(16, 20) + \"-\" +\n dsuid.substring(20, 32));\n }", "private static URL createURL(String requestedUrl) {\n URL url = null;\n try {\n url = new URL(requestedUrl);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"createdUrl: Problem building URL\", e);\n }\n return url;\n }", "public static String serviceOnlyURL(String url /* , String tenantId */) {\n\n if (/* tenantId == null || */url == null) {\n return url;\n }\n\n /*\n * Use a regular expression to parse the URL and recognize the scheme, ://, host name or ip address, and\n * optional port. Do not recognize anything after the port. Use a capture group (capture group 0 in this case)\n * to extract the recognized portion, which will be the basic URL only less any version, tenant id, or path\n * information.\n */\n Pattern urlPattern = Pattern.compile(\"^http[s]?://[^:/]+(?::[^/]+)\");\n Matcher urlMatcher = urlPattern.matcher(url);\n if (urlMatcher.find()) {\n return urlMatcher.group(0);\n }\n return url;\n //\n // StringBuffer buffer = new StringBuffer(url.trim());\n // int index = buffer.lastIndexOf(tenantId);\n // if (index > -1) {\n // buffer.delete(index, buffer.length());\n // }\n //\n // Pattern pattern = Pattern.compile(\"v[0-9]+(\\\\.[0-9]*)?(/)?$\", Pattern.CASE_INSENSITIVE);\n // Matcher matcher = pattern.matcher(buffer);\n // if (matcher.find()) {\n // buffer.delete(matcher.start(), buffer.length());\n // }\n //\n // return buffer.toString();\n //\n }", "private String m81844c(String str) {\n Uri uri;\n String a = UrlUtil.m84494a(this.f58071c, str);\n return (!TextUtils.isEmpty(a) || (uri = this.f58072d) == null) ? a : UrlUtil.m84494a(uri, str);\n }" ]
[ "0.6763285", "0.5947271", "0.5888981", "0.57389593", "0.56727433", "0.53922343", "0.5245866", "0.5083039", "0.48798037", "0.48527354", "0.48527354", "0.4844862", "0.4834853", "0.46967062", "0.46784037", "0.46548024", "0.46205416", "0.4594441", "0.4555335", "0.4551049", "0.45461348", "0.45116994", "0.44832516", "0.44481298", "0.44481298", "0.4442417", "0.44117597", "0.43825915", "0.43783903", "0.4371493", "0.43364763", "0.43275592", "0.43217626", "0.43170094", "0.43087018", "0.4289399", "0.42775047", "0.42750895", "0.42699078", "0.42697263", "0.42656127", "0.42370087", "0.42080596", "0.4195025", "0.4180238", "0.41796595", "0.4164167", "0.41595048", "0.41327357", "0.41021922", "0.4092559", "0.408963", "0.40725854", "0.40720186", "0.40648282", "0.4064492", "0.40614387", "0.40592238", "0.40331423", "0.4010259", "0.39900547", "0.39750665", "0.39655644", "0.3961112", "0.39545953", "0.39528513", "0.3947613", "0.39399654", "0.3933479", "0.39250913", "0.39205593", "0.39168862", "0.39137644", "0.39132583", "0.39096868", "0.39048213", "0.38977534", "0.38974717", "0.38933617", "0.38838416", "0.38813505", "0.38712686", "0.38628334", "0.38605115", "0.38569513", "0.38552228", "0.3852741", "0.3845827", "0.38405326", "0.38326383", "0.38303372", "0.38235468", "0.3819954", "0.38184157", "0.381386", "0.38133892", "0.38078132", "0.3773549", "0.37711298", "0.3768109" ]
0.6584807
1
Create a DIDURL object from the given string. The method will parse the DIDURL object from the string if the string is not empty. Otherwise will return null. If the parsed DIDURL object is relative, then use context as it's base DID.
public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException { return (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "public DIDURL(DID context, String url) throws MalformedDIDURLException {\n\t\tParser parser = new Parser();\n\t\tparser.parse(context, url);\n\t}", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "private static URL m23464a(Context context, String str) {\n try {\n return new URL(str);\n } catch (MalformedURLException e) {\n C5376d dVar = C5376d.EXCEPTION;\n StringBuilder sb = new StringBuilder();\n sb.append(\"OMSDK: can't create URL - \");\n sb.append(str);\n C5378f.m23016a(context, dVar, sb.toString(), e.getMessage(), \"\");\n return null;\n }\n }", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "@Override\n\t\t\tpublic Device fromString(String arg0) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic Device fromString(String arg0) {\n\t\t\t\treturn null;\n\t\t\t}", "public static URL createURL(String stringURL, final Context context) {\n URL url = null;\n try {\n url = new URL(stringURL);\n } catch (MalformedURLException e) {\n //use a handler to create a toast on the UI thread\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(context, \"Error: Check URL is valid.\", Toast.LENGTH_SHORT)\n .show();\n }\n });\n Log.e(LOG_TAG, \"Error: Check URL is valid.\", e);\n }\n return url;\n }", "private URI findBaseUrl0(String stringUrl) throws URISyntaxException {\n stringUrl = stringUrl.replace(\"\\\\\", \"/\");\n int qindex = stringUrl.indexOf(\"?\");\n if (qindex != -1) {\n // stuff after the ? tends to make the Java URL parser burp.\n stringUrl = stringUrl.substring(0, qindex);\n }\n URI url = new URI(stringUrl);\n URI baseUrl = new URI(url.getScheme(), url.getAuthority(), url.getPath(), null, null);\n\n String path = baseUrl.getPath().substring(1); // toss the leading /\n String[] pieces = path.split(\"/\");\n List<String> urlSlashes = new ArrayList<String>();\n // reverse\n for (String piece : pieces) {\n urlSlashes.add(piece);\n }\n List<String> cleanedSegments = new ArrayList<String>();\n String possibleType = \"\";\n boolean del;\n\n for (int i = 0; i < urlSlashes.size(); i++) {\n String segment = urlSlashes.get(i);\n\n // Split off and save anything that looks like a file type.\n if (segment.indexOf(\".\") != -1) {\n possibleType = segment.split(\"\\\\.\")[1];\n\n /*\n * If the type isn't alpha-only, it's probably not actually a file extension.\n */\n if (!possibleType.matches(\"[^a-zA-Z]\")) {\n segment = segment.split(\"\\\\.\")[0];\n }\n }\n\n /**\n * EW-CMS specific segment replacement. Ugly. Example:\n * http://www.ew.com/ew/article/0,,20313460_20369436,00.html\n **/\n if (segment.indexOf(\",00\") != -1) {\n segment = segment.replaceFirst(\",00\", \"\");\n }\n\n // If our first or second segment has anything looking like a page\n // number, remove it.\n /* Javascript code has some /i's here, we might need to fiddle */\n Matcher pnMatcher = Patterns.PAGE_NUMBER_LIKE.matcher(segment);\n if (pnMatcher.matches() && ((i == 1) || (i == 0))) {\n segment = pnMatcher.replaceAll(\"\");\n }\n\n del = false;\n\n /*\n * If this is purely a number, and it's the first or second segment, it's probably a page number.\n * Remove it.\n */\n if (i < 2 && segment.matches(\"^\\\\d{1,2}$\")) {\n del = true;\n }\n\n /* If this is the first segment and it's just \"index\", remove it. */\n if (i == 0 && segment.toLowerCase() == \"index\")\n del = true;\n\n /*\n * If our first or second segment is smaller than 3 characters, and the first segment was purely\n * alphas, remove it.\n */\n /* /i again */\n if (i < 2 && segment.length() < 3 && !urlSlashes.get(0).matches(\"[a-z]\"))\n del = true;\n\n /* If it's not marked for deletion, push it to cleanedSegments. */\n if (!del) {\n cleanedSegments.add(segment);\n }\n }\n\n String cleanedPath = \"\";\n for (String s : cleanedSegments) {\n cleanedPath = cleanedPath + s;\n cleanedPath = cleanedPath + \"/\";\n }\n URI cleaned = new URI(url.getScheme(), url.getAuthority(), \"/\"\n + cleanedPath.substring(0, cleanedPath\n .length() - 1), null, null);\n return cleaned;\n }", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "private URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "public abstract void fromString(String s, String context);", "public static URL convertToUrl(String urlStr) {\n try {\n URL url = new URL(urlStr);\n URI uri = new URI(url.getProtocol(), url.getUserInfo(),\n url.getHost(), url.getPort(), url.getPath(),\n url.getQuery(), url.getRef());\n url = uri.toURL();\n return url;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "protected URL stringToURL(String urlString){\n try{\n URL url = new URL(urlString);\n return url;\n }catch(MalformedURLException e){\n e.printStackTrace();\n }\n return null;\n }", "@Override\n public WikiReference parse(String str)\n {\n str = str.trim();\n String reference = null;\n String label = null;\n if (str.contains(\"|\")) {\n reference = str.substring(0, str.indexOf('|'));\n label = str.substring(str.indexOf('|') + 1);\n } else {\n reference = str;\n }\n \n // special case images ...\n if (reference.matches(PREFIX_IMAGE) || reference.matches(PREFIX_FILE)) {\n reference = reference.substring(reference.indexOf(':') + 1);\n if (label != null) {\n WikiParameters params = this.generateImageParams(label);\n if (params.getParameter(\"alt\") != null) {\n label = params.getParameter(\"alt\").getValue();\n } else {\n label = \"\";\n }\n // copy ALT attribute to TITLE attribute, cause it's more user friendly\n if (params.getParameter(\"title\") == null && \"\".equals(label)) {\n params.addParameter(\"title\", label);\n }\n return new WikiReference(reference, label, params);\n }\n return new WikiReference(reference);\n }\n\n // External link with label\n // Case: [http://mediawiki.org MediaWiki]\n WikiReference wikiReference;\n if (-1 != str.indexOf(' ') && (str.contains(\"://\") || str.matches(PREFIX_MAILTO))) {\n String link = str.substring(0, str.indexOf(' ')).trim();\n label = str.substring(str.indexOf(' ') + 1).trim();\n wikiReference = new WikiReference(link, label);\n } else {\n wikiReference = new WikiReference(reference, label);\n }\n return wikiReference;\n\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Problem building the URL \", e);\n }\n return url;\n }", "public static String decodePathVariable(String objectId) {\n if (objectId != null) {\n return objectId.replace(FORWARD_SLASH_ENCODED1, FORWARD_SLASH);\n }\n return objectId;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "java.lang.String getDidUri();", "public String getURIInternal(String str) {\n String namespaceURI = this.context.getNamespaceURI(str);\n return namespaceURI == null ? \"\" : namespaceURI;\n }", "public static String extractDNfromURL(String _DN) {\r\n\r\n // ***************************\r\n // Make sure we have a string.\r\n if ((_DN == null) ||\r\n (_DN.equals(\"\"))) {\r\n return (_DN);\r\n }\r\n\r\n // ***************************\r\n // Create an LDAPURL Object\r\n // from the incoming String.\r\n //\r\n LDAPUrl _ldapurl = null;\r\n try {\r\n _ldapurl = new LDAPUrl(_DN);\r\n } catch (java.net.MalformedURLException mue) {\r\n // *******************************\r\n // This is a malformed URL, return\r\n // Null.\r\n return (\"\");\r\n } // End of Exception.\r\n\r\n // ***************************\r\n // Extract the DN.\r\n //\r\n return (_ldapurl.getDN());\r\n }", "@Override\n\tpublic URL getURL(String uri) throws MalformedURLException {\n\t\tif (uri.length() == 0) {\n\t\t\tthrow new MalformedURLException(\"Empty URI\");\n\t\t}\n\t\tURL url;\n\t\tif (uri.indexOf(\"://\") < 0) {\n\t\t\turl = new URL(getBaseURL(), uri);\n\t\t} else {\n\t\t\turl = new URL(uri);\n\t\t}\n\t\treturn url;\n\t}", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "private static URL generateUrl(String requestedUrlString) {\n URL url = null;\n\n try {\n url = new URL(requestedUrlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating a URL object : generateURL() block\", e);\n }\n return url;\n }", "public static String normalizeUrl(final String urlString) {\n if (urlString == null) {\n return null;\n }\n\n // this routine is called from some performance-critical code and creating a URI from a string\n // is slow, so skip it when possible - if we know it's not a relative path (and 99.9% of the\n // time it won't be for our purposes) then we can normalize it without java.net.URI.normalize()\n if (urlString.startsWith(\"http\") &&\n !urlString.contains(\"build/intermediates/exploded-aar/org.wordpress/graphview/3.1.1\")) {\n // return without a trailing slash\n if (urlString.endsWith(\"/\")) {\n return urlString.substring(0, urlString.length() - 1);\n }\n return urlString;\n }\n\n // url is relative, so fall back to using slower java.net.URI normalization\n try {\n URI uri = URI.create(urlString);\n return uri.normalize().toString();\n } catch (IllegalArgumentException e) {\n return urlString;\n }\n }", "private static URL createURL(String urlString) {\n\n // Create an empty url\n URL url = null;\n\n try {\n // Try to make a url from urlString param\n url = new URL(urlString);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error creating URL: \" + e);\n }\n\n //Return the new url\n return url;\n }", "Uri decodeRefUri(String s, XElem elem)\n { \n Uri uri = new Uri(s);\n if (!uri.isFragment()) return uri;\n \n // check if we've already parsed the obj to which\n // this fragment id referneces\n Obj resolved = (Obj)fragIds.get(s); \n if (resolved != null)\n { \n uri.setResolved(resolved);\n return uri;\n } \n \n // if not then this uri is forwardly used (or \n // maybe missing), so just store it away \n FragRefs refs = (FragRefs)fragRefs.get(s);\n if (refs == null) fragRefs.put(s, refs = new FragRefs());\n refs.uris.add(uri);\n refs.elems.add(elem);\n \n return uri;\n }", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public T caseURL(URL object)\n {\n return null;\n }", "public URL makeFullUrl(String scrapedString, URL base);", "private static Uri m63903b(Cursor cursor, String str) {\n try {\n return Uri.parse(m63901a(cursor, str));\n } catch (NullPointerException unused) {\n return null;\n }\n }", "public static URL createURL(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n }\n catch (MalformedURLException m) {\n Log.e(LOG_TAG,\"Error creating URL\",m);\n }\n return url;\n }", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "public static final String m130159a(String str) {\n String str2;\n if (TextUtils.isEmpty(str)) {\n return \"\";\n }\n Uri parse = Uri.parse(str);\n if (parse != null) {\n str2 = parse.getHost();\n } else {\n str2 = null;\n }\n if (TextUtils.equals(str2, C22912d.f60641a)) {\n return \"web_url\";\n }\n return C22912d.f60642b;\n }", "void first_normalize_url(String rawurl, PointerByReference ptr);", "public URL makeBase(URL startingURL);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static GenericUrl getGenericURL(String endPoint) {\n\t\tString tempURL = getURL(endPoint);\n\t\tGenericUrl url = null;\n\t\tif (!(\"\".equalsIgnoreCase(tempURL))) {\n\t\t\turl = new GenericUrl(getURL(endPoint));\n\t\t}\n\n\t\treturn url;\n\t}", "private String resolveAbsoluteURL(String defaultUrlContext, String urlFromConfig, String tenantDomain) throws IdentityProviderManagementServerException {\n\n if (!IdentityTenantUtil.isTenantQualifiedUrlsEnabled() && StringUtils.isNotBlank(urlFromConfig)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Resolved URL:\" + urlFromConfig + \" from file configuration for default url context: \" +\n defaultUrlContext);\n }\n return urlFromConfig;\n }\n\n try {\n ServiceURLBuilder serviceURLBuilder = ServiceURLBuilder.create().setTenant(tenantDomain);\n return serviceURLBuilder.addPath(defaultUrlContext).build().getAbsolutePublicURL();\n } catch (URLBuilderException e) {\n throw IdentityProviderManagementException.error(IdentityProviderManagementServerException.class,\n \"Error while building URL: \" + defaultUrlContext, e);\n }\n }", "public UvScanUrl(String stringID , String baseUrl)\r\n\t{\r\n\t\tthis.stringID = stringID;\r\n\t\tthis.baseUrl = baseUrl;\r\n\t\t\r\n\t\t\r\n\t\tfollowsConfigUrlPattern = false;\r\n\t\tfollowsConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tfollowsExactConfigUrlPattern = false;\r\n\t\tfollowsExactConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tisBaseUrlLocalized = false;\r\n\t\tisRedirectedUrlLocalized = false;\r\n\t\t\r\n\t\tisDeleted=false;\r\n\t\tisErrorPage= true;\r\n\r\n\t\texceptionType =UrlExceptionLevel.None;\r\n\t\t\r\n\t\tbaseUrlPatternMatchResult = \"\";\r\n\t\tredirectedUrlPatternMatchResult = \"\";\r\n\t\t\r\n\t\texceptionOccurred = \"\";\r\n\t}", "public static URL str2url( String strUrl )\r\n {\r\n try\r\n {\r\n URL url = new URL( strUrl );\r\n return url;\r\n }\r\n catch( MalformedURLException e )\r\n {\r\n Log.e( TAG, \"\", e );\r\n throw new IllegalArgumentException( \"str2url\", e );\r\n } \r\n }", "String getBaseUri();", "public final URL mo15944a(String str) {\n try {\n return new URL(String.format(\"https://%s/%s/%s\", new Object[]{\"firebaseinstallations.googleapis.com\", \"v1\", str}));\n } catch (MalformedURLException e) {\n throw new C4291f(e.getMessage(), C4291f.C4292a.UNAVAILABLE);\n }\n }", "public URL standardizeURL(URL startingURL);", "public static IPath createPossiblyRelativePath(String pathString) {\r\n\t\t// canonicalize slashes\r\n\t\tchar[] pathChars = pathString.toCharArray();\r\n\t\tint offset = 0;\r\n\t\tfor (int i = 0; i < pathChars.length; i++) {\r\n\t\t\tif (pathChars[i] == '\\\\')\r\n\t\t\t\tpathChars[i] = '/';\r\n\t\t}\r\n\t\t\r\n\t\t// The problem is, if \"./\" appears, then \"../\"'s after it are dropped,\r\n\t\t// so get rid of \"./\" early. The result will still be relative.\r\n\t\twhile (offset + 2 <= pathChars.length) { \r\n\t\t\tif (pathChars[offset] == '.' && pathChars[offset+1] == '/') {\r\n\t\t\t\toffset += 2;\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn PathUtils.createPath(new String(pathChars, offset, pathChars.length - offset));\r\n\t}", "@Override // com.fasterxml.jackson.databind.deser.std.FromStringDeserializer\n public final Uri A0Q(String str, AbstractC02210iH r3) throws IOException, C03620oC {\n return Uri.parse(str);\n }", "public URIBuilder(final String string) {\n super();\n try {\n digestURI(new URI(string));\n } catch (final URISyntaxException e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "@Test\n public void testMakeRelativeURL3() throws Exception {\n URL base = new URL(\"http://ahost.invalid/a/b/c\");\n assertEquals(new URL(\"http://host.invalid/e\"),ConversionUtils.makeRelativeURL(base ,\"http://host.invalid/e\"));\n assertEquals(new URL(\"https://host.invalid/e\"),ConversionUtils.makeRelativeURL(base ,\"https://host.invalid/e\"));\n assertEquals(new URL(\"http://host.invalid:8081/e\"),ConversionUtils.makeRelativeURL(base ,\"http://host.invalid:8081/e\"));\n assertEquals(new URL(\"https://host.invalid:8081/e\"),ConversionUtils.makeRelativeURL(base ,\"https://host.invalid:8081/e\"));\n }", "public static String getURLString(String str) {\n String str2 = \"\";\n try {\n String substring = str.substring(str.indexOf(\"url\\\">\") + 5);\n return substring.substring(0, substring.indexOf(\"<\"));\n } catch (Exception e) {\n e.printStackTrace();\n return str2;\n }\n }", "public static String decodeParameter(String objectId) {\n if (objectId != null) {\n return objectId.replace(FORWARD_SLASH_ENCODED2, FORWARD_SLASH);\n }\n return objectId;\n }", "public DsSipElementListener elementBegin(int contextId, int elementId)\n throws DsSipParserListenerException {\n if (DsSipMessage.DEBUG) {\n System.out.println(\n \"elementBegin - contextId = [\"\n + contextId\n + \"][\"\n + DsSipMsgParser.HEADER_NAMES[contextId]\n + \"]\");\n System.out.println(\n \"elementBegin - elementId = [\"\n + elementId\n + \"][\"\n + DsSipMsgParser.ELEMENT_NAMES[elementId]\n + \"]\");\n System.out.println();\n }\n DsURI uri = null;\n switch (elementId) {\n /*\n // Not expected\n case NAME_ADDR_ID:\n if (m_nameAddress == null)\n {\n m_nameAddress = new DsSipNameAddress();\n }\n return m_nameAddress;\n */\n case SIP_URL:\n uri = new DsSipURL();\n break;\n case SIPS_URL:\n uri = new DsSipURL(true);\n break;\n case TEL_URL:\n uri = new DsTelURL();\n break;\n case HTTP_URL:\n case UNKNOWN_URL:\n uri = new DsURI();\n break;\n }\n if (null != uri) setURI(uri);\n return uri;\n }", "private static URL stringToUrl(String stringUrl) throws MalformedURLException{\r\n\t\treturn new URL(stringUrl);\r\n\t}", "private static String handleUrl(String s) {\n if (s.endsWith(\"/..\")) {\n int idx = s.lastIndexOf('/');\n s = s.substring(0, idx - 1);\n idx = s.lastIndexOf('/');\n String gs = s.substring(0, idx);\n if (!gs.equals(\"smb:/\")) {\n s = gs;\n }\n }\n if (!s.endsWith(\"/\")) {\n s += \"/\";\n }\n System.out.println(\"now its \" + s);\n return s;\n }", "public static String normalize(String url) {\n try {\n URL absoluteUrl = new URL(url);\n return new URL(\n absoluteUrl.getProtocol(), \n absoluteUrl.getHost(), \n absoluteUrl.getPort(),\n absoluteUrl.getPath())\n .toString();\n } catch (Exception ex) {\n return null;\n }\n }", "private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}", "protected String resolveURL(HttpServletRequest request, DSpaceObject dso) {\n // If no object given then just link to the whole repository,\n // since no offical handle exists so we have to use local resolution.\n if (dso == null) {\n if (baseURL == null) {\n if (request == null) {\n baseURL = configurationService.getProperty(\"dspace.ui.url\");\n } else {\n baseURL = configurationService.getProperty(\"dspace.ui.url\");\n baseURL += request.getContextPath();\n }\n }\n return baseURL;\n } else if (configurationService.getBooleanProperty(\"webui.feed.localresolve\")) {\n // return a link to handle in repository\n return resolveURL(request, null) + \"/handle/\" + dso.getHandle();\n } else {\n // link to the Handle server or other persistent URL source\n return HandleServiceFactory.getInstance().getHandleService().getCanonicalForm(dso.getHandle());\n }\n }", "private URI makeUri(String source) throws URISyntaxException {\n if (source == null)\n source = \"\";\n\n if ((source.length()>0)&&((source.substring(source.length() - 1)).equals(\"/\") ))\n source=source.substring(0, source.length() - 1);\n\n return new URI( source.toLowerCase() );\n }", "public RecordDescriptor getRecordDescriptor(String recordDescriptorIdOrUrl) {\n if (recordDescriptorIdOrUrl == null) {\n return null;\n }\n if (recordDescriptorIdOrUrl.contains(\"#\")) {\n recordDescriptorIdOrUrl = recordDescriptorIdOrUrl.substring(recordDescriptorIdOrUrl.indexOf(\"#\") + 1);\n }\n return recordDescriptorMap.get(recordDescriptorIdOrUrl);\n }", "@Deprecated\r\n\tpublic static URI createURIWithoutChecking(String uriString) {\r\n\t\treturn new URIImpl(uriString, false);\r\n\t}", "@org.junit.Test\n public void constrCompelemBaseuri2() {\n final XQuery query = new XQuery(\n \"fn:base-uri(exactly-one((<elem xml:base=\\\"http://www.example.com\\\">{element a {}}</elem>)/a))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "public static String getWorkRelativePath(String baseURL, String testId) {\n StringBuilder sb = new StringBuilder(baseURL);\n\n // strip off extension\n stripExtn:\n for (int i = sb.length() - 1; i >= 0; i--) {\n switch (sb.charAt(i)) {\n case '.':\n sb.setLength(i);\n break stripExtn;\n case '/':\n break stripExtn;\n }\n }\n\n // add in uniquifying id if\n if (testId != null) {\n sb.append('_');\n sb.append(testId);\n }\n\n sb.append(EXTN);\n\n return sb.toString();\n }", "@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }", "FullUriTemplateString baseUri();", "public Uri bundleToUri(Bundle bundle, String str) {\n if (bundle == null) {\n debugLog(\"bundle is null : bundleToUri\");\n return null;\n }\n String string = bundle.getString(str, (String) null);\n if (!TextUtils.isEmpty(string)) {\n return Uri.parse(string);\n }\n return null;\n }", "public boolean isUri(String obj) {\r\n//\t\treturn obj.matches(\"(([a-zA-Z][0-9a-zA-Z+\\\\\\\\-\\\\\\\\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\\\\\\\\.\\\\\\\\-_!~*'()%]+)?(#[0-9a-zA-Z;/?:@&=+$\\\\\\\\.\\\\\\\\-_!~*'()%]+)?\");\r\n\t\treturn false;\r\n\t}", "protected Source convertString2Source(String param) {\n Source src;\n try {\n src = uriResolver.resolve(param, null);\n } catch (TransformerException e) {\n src = null;\n }\n if (src == null) {\n src = new StreamSource(new File(param));\n }\n return src;\n }", "public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n }\n }", "com.google.protobuf.ByteString\n getDidUriBytes();", "public UUID(String string) {\n FromString(string);\n }", "public URI getUri(String iden) {\r\n\t\tURI rtn = null;\r\n\t\tString url = null;\r\n\t\tStringBuilder strRtn = new StringBuilder(uriBuilder);\r\n\t\tif(isUri(iden)) {\r\n\t\t\tSystem.out.println(\"isUri\");\r\n\t\t\treturn valueFactory.createURI(iden);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\turl = URLEncoder.encode(iden,\"utf-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tstrRtn.append(url);\r\n\t\t\trtn = valueFactory.createURI(strRtn.toString());\r\n\t\t\treturn rtn;\r\n\t\t}\r\n\t}", "private void processUrl (String stringUrl)\n\t{\n\t\tURL correctUrl=null;\n\t\t// we need the URL\n\t\t// we first try to convert it directly\n\t\ttry {\n\t\t\tcorrectUrl=new URL(stringUrl);\n\t\t} catch (MalformedURLException e) {System.out.println(\"Not found : \"+stringUrl);return;}\n\n\t\tallInformation.getNemo().addJcamp(stringUrl);\n\t}", "public static String prettyURL(String string) {\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString normalized = Normalizer.normalize(string.toLowerCase(), Form.NFD);\n\t\tString withoutDiacriticalMarks = PATTERN_DIACRITICAL_MARKS.matcher(normalized).replaceAll(\"\");\n\t\treturn PATTERN_NON_ALPHANUMERIC_CHARS.matcher(withoutDiacriticalMarks).replaceAll(\"-\");\n\t}", "public static String determineBaseUrl(String url) {\r\n\t\t// Determine the index of the first slash after the first period.\r\n\t\tint firstSub = url.indexOf(\"/\", url.indexOf(\".\"));\r\n\t\t\r\n\t\tif (firstSub == -1)\r\n\t\t\t// There were no sub directories included in the URL.\r\n\t\t\treturn url;\r\n\t\telse\r\n\t\t\treturn url.substring(0, firstSub);\r\n\t}", "public static URIElement buildURIElement(String uri) throws AmazonException{\r\n\t\tint questionIndex = uri.indexOf('?');\r\n\t\tif(questionIndex > 0){\r\n\t\t\turi = uri.substring(0, questionIndex);\r\n\t\t}\r\n\t\tString[] uriElements = uri.split(\"/\");\r\n\t\tif(uriElements.length < 4){\r\n\t\t\tthrow new AmazonException(\"InCompatible URI: \" + uri);\r\n\t\t}\r\n\t\tString context = uriElements[1];\r\n\t\tString module = uriElements[2];\r\n\t\tString command = uriElements[3];\r\n\t\tString method = \"execute\";\r\n\t\tif(uriElements.length == 5 ){\r\n\t\t\tif(uriElements[4] != null || !uriElements[4].isEmpty()){\r\n\t\t\t\tmethod = uriElements[4];\r\n\t\t\t}\r\n\t\t}\r\n\t\tint dotIndex = method.indexOf('.');\r\n\t\tif(dotIndex > 0){\r\n\t\t\tmethod = method.substring(0, dotIndex);\r\n\t\t}\r\n\t\t\r\n\t\treturn new URIElement(context, module, command, method);\r\n\t}", "public T caseURDFAttrSTRING(URDFAttrSTRING object) {\r\n\t\treturn null;\r\n\t}", "private Uri m2344g(String str) {\n return mo10091b(str, this.f2759a.mo9868F(), true);\n }", "protected void parseURL(URL paramURL, String paramString, int paramInt1, int paramInt2) {\n/* 126 */ String str1 = paramURL.getProtocol();\n/* 127 */ String str2 = paramURL.getAuthority();\n/* 128 */ String str3 = paramURL.getUserInfo();\n/* 129 */ String str4 = paramURL.getHost();\n/* 130 */ int i = paramURL.getPort();\n/* 131 */ String str5 = paramURL.getPath();\n/* 132 */ String str6 = paramURL.getQuery();\n/* */ \n/* */ \n/* 135 */ String str7 = paramURL.getRef();\n/* */ \n/* 137 */ boolean bool1 = false;\n/* 138 */ boolean bool2 = false;\n/* */ \n/* */ \n/* */ \n/* 142 */ if (paramInt1 < paramInt2) {\n/* 143 */ int k = paramString.indexOf('?');\n/* 144 */ bool2 = (k == paramInt1) ? true : false;\n/* 145 */ if (k != -1 && k < paramInt2) {\n/* 146 */ str6 = paramString.substring(k + 1, paramInt2);\n/* 147 */ if (paramInt2 > k)\n/* 148 */ paramInt2 = k; \n/* 149 */ paramString = paramString.substring(0, k);\n/* */ } \n/* */ } \n/* */ \n/* 153 */ int j = 0;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 159 */ boolean bool3 = (paramInt1 <= paramInt2 - 4 && paramString.charAt(paramInt1) == '/' && paramString.charAt(paramInt1 + 1) == '/' && paramString.charAt(paramInt1 + 2) == '/' && paramString.charAt(paramInt1 + 3) == '/') ? true : false;\n/* 160 */ if (!bool3 && paramInt1 <= paramInt2 - 2 && paramString.charAt(paramInt1) == '/' && paramString\n/* 161 */ .charAt(paramInt1 + 1) == '/') {\n/* 162 */ paramInt1 += 2;\n/* 163 */ j = paramString.indexOf('/', paramInt1);\n/* 164 */ if (j < 0 || j > paramInt2) {\n/* 165 */ j = paramString.indexOf('?', paramInt1);\n/* 166 */ if (j < 0 || j > paramInt2) {\n/* 167 */ j = paramInt2;\n/* */ }\n/* */ } \n/* 170 */ str4 = str2 = paramString.substring(paramInt1, j);\n/* */ \n/* 172 */ int k = str2.indexOf('@');\n/* 173 */ if (k != -1) {\n/* 174 */ if (k != str2.lastIndexOf('@')) {\n/* */ \n/* 176 */ str3 = null;\n/* 177 */ str4 = null;\n/* */ } else {\n/* 179 */ str3 = str2.substring(0, k);\n/* 180 */ str4 = str2.substring(k + 1);\n/* */ } \n/* */ } else {\n/* 183 */ str3 = null;\n/* */ } \n/* 185 */ if (str4 != null) {\n/* */ \n/* */ \n/* 188 */ if (str4.length() > 0 && str4.charAt(0) == '[') {\n/* 189 */ if ((k = str4.indexOf(']')) > 2) {\n/* */ \n/* 191 */ String str = str4;\n/* 192 */ str4 = str.substring(0, k + 1);\n/* */ \n/* 194 */ if (!IPAddressUtil.isIPv6LiteralAddress(str4.substring(1, k))) {\n/* 195 */ throw new IllegalArgumentException(\"Invalid host: \" + str4);\n/* */ }\n/* */ \n/* */ \n/* 199 */ i = -1;\n/* 200 */ if (str.length() > k + 1) {\n/* 201 */ if (str.charAt(k + 1) == ':') {\n/* 202 */ k++;\n/* */ \n/* 204 */ if (str.length() > k + 1) {\n/* 205 */ i = Integer.parseInt(str.substring(k + 1));\n/* */ }\n/* */ } else {\n/* 208 */ throw new IllegalArgumentException(\"Invalid authority field: \" + str2);\n/* */ } \n/* */ }\n/* */ } else {\n/* */ \n/* 213 */ throw new IllegalArgumentException(\"Invalid authority field: \" + str2);\n/* */ } \n/* */ } else {\n/* */ \n/* 217 */ k = str4.indexOf(':');\n/* 218 */ i = -1;\n/* 219 */ if (k >= 0) {\n/* */ \n/* 221 */ if (str4.length() > k + 1) {\n/* 222 */ i = Integer.parseInt(str4.substring(k + 1));\n/* */ }\n/* 224 */ str4 = str4.substring(0, k);\n/* */ } \n/* */ } \n/* */ } else {\n/* 228 */ str4 = \"\";\n/* */ } \n/* 230 */ if (i < -1) {\n/* 231 */ throw new IllegalArgumentException(\"Invalid port number :\" + i);\n/* */ }\n/* 233 */ paramInt1 = j;\n/* */ \n/* */ \n/* 236 */ if (str2 != null && str2.length() > 0) {\n/* 237 */ str5 = \"\";\n/* */ }\n/* */ } \n/* 240 */ if (str4 == null) {\n/* 241 */ str4 = \"\";\n/* */ }\n/* */ \n/* */ \n/* 245 */ if (paramInt1 < paramInt2) {\n/* 246 */ if (paramString.charAt(paramInt1) == '/') {\n/* 247 */ str5 = paramString.substring(paramInt1, paramInt2);\n/* 248 */ } else if (str5 != null && str5.length() > 0) {\n/* 249 */ bool1 = true;\n/* 250 */ int k = str5.lastIndexOf('/');\n/* 251 */ String str = \"\";\n/* 252 */ if (k == -1 && str2 != null) {\n/* 253 */ str = \"/\";\n/* */ }\n/* 255 */ str5 = str5.substring(0, k + 1) + str + paramString.substring(paramInt1, paramInt2);\n/* */ } else {\n/* */ \n/* 258 */ String str = (str2 != null) ? \"/\" : \"\";\n/* 259 */ str5 = str + paramString.substring(paramInt1, paramInt2);\n/* */ } \n/* 261 */ } else if (bool2 && str5 != null) {\n/* 262 */ int k = str5.lastIndexOf('/');\n/* 263 */ if (k < 0)\n/* 264 */ k = 0; \n/* 265 */ str5 = str5.substring(0, k) + \"/\";\n/* */ } \n/* 267 */ if (str5 == null) {\n/* 268 */ str5 = \"\";\n/* */ }\n/* 270 */ if (bool1) {\n/* */ \n/* 272 */ while ((j = str5.indexOf(\"/./\")) >= 0) {\n/* 273 */ str5 = str5.substring(0, j) + str5.substring(j + 2);\n/* */ }\n/* */ \n/* 276 */ j = 0;\n/* 277 */ while ((j = str5.indexOf(\"/../\", j)) >= 0) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 284 */ if (j > 0 && (paramInt2 = str5.lastIndexOf('/', j - 1)) >= 0 && str5\n/* 285 */ .indexOf(\"/../\", paramInt2) != 0) {\n/* 286 */ str5 = str5.substring(0, paramInt2) + str5.substring(j + 3);\n/* 287 */ j = 0; continue;\n/* */ } \n/* 289 */ j += 3;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 294 */ j = str5.indexOf(\"/..\");\n/* 295 */ while (str5.endsWith(\"/..\") && (paramInt2 = str5.lastIndexOf('/', j - 1)) >= 0) {\n/* 296 */ str5 = str5.substring(0, paramInt2 + 1);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 302 */ if (str5.startsWith(\"./\") && str5.length() > 2) {\n/* 303 */ str5 = str5.substring(2);\n/* */ }\n/* */ \n/* 306 */ if (str5.endsWith(\"/.\")) {\n/* 307 */ str5 = str5.substring(0, str5.length() - 1);\n/* */ }\n/* */ } \n/* 310 */ setURL(paramURL, str1, str4, i, str2, str3, str5, str6, str7);\n/* */ }", "private static URL absolutize(URL baseURL, String href) \n throws MalformedURLException, BadHrefAttributeException {\n \n Element parent = new Element(\"c\");\n parent.setBaseURI(baseURL.toExternalForm());\n Element child = new Element(\"c\");\n parent.appendChild(child);\n child.addAttribute(new Attribute(\n \"xml:base\", \"http://www.w3.org/XML/1998/namespace\", href));\n URL result = new URL(child.getBaseURI());\n if (!\"\".equals(href) && result.equals(baseURL)) {\n if (! baseURL.toExternalForm().endsWith(href)) {\n throw new BadHrefAttributeException(href \n + \" is not a syntactically correct IRI\");\n }\n }\n return result;\n \n }", "public URIImpl(String uriString) {\r\n\t\tthis(uriString, true);\r\n\t}", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public final String getURL(final String id) {\n\t\tString url = \"\";\n\t\turl += \"http://\";\n\t\turl += CONFIGURATION.PENTAHO_IP;\n\t\turl += \":\";\n\t\turl += CONFIGURATION.PENTAHO_PORTNUMBER;\n\t\turl += CONFIGURATION.CDASOLUTION_ADDRESS;\n\t\turl += CONFIGURATION.CDA_METHOD;\n\t\turl += \"?\";\n\t\turl += \"solution=\";\n\t\turl += CONFIGURATION.CDA_SOLUTION;\n\t\turl += \"&\";\n\t\turl += \"path=\";\n\t\turl += CONFIGURATION.CDA_PATH.replace(\"/\", \"%2F\");\n\t\turl += \"&\";\n\t\turl += \"file=\";\n\t\turl += CONFIGURATION.CDA_FILEFULLNAME;\n\t\turl += \"&\";\n\t\turl += \"dataAccessId=\";\n\t\turl += id;\n\t\treturn url;\n\t}", "public String reverseLink(String str) {\n int pip = str.indexOf(BundlesDT.DELIM, str.indexOf(BundlesDT.DELIM)+1);\n\treturn str.substring(pip+1,str.length()) + BundlesDT.DELIM + str.substring(0,pip);\n }", "public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String mo88914a(String str) {\n if (!TextUtils.isEmpty(str) && str.indexOf(\"href=\\\"\") != -1) {\n String[] split = str.split(\"href=\\\"\");\n if (split.length > 1 && !TextUtils.isEmpty(split[1])) {\n String str2 = split[1];\n if (str2.indexOf(\"\\\"\") != -1) {\n String[] split2 = str2.split(\"\\\"\");\n if (split2.length > 0 && !TextUtils.isEmpty(split2[0])) {\n return split2[0];\n }\n }\n }\n }\n return null;\n }", "@org.junit.Test\n public void constrCompelemBaseuri1() {\n final XQuery query = new XQuery(\n \"fn:base-uri(element elem {attribute xml:base {\\\"http://www.example.com\\\"}})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "@Override\n protected void parseURL(URL url, String spec, int start, int end) {\n if (end < start) {\n return;\n }\n String parseString = \"\";\n if (start < end) {\n parseString = spec.substring(start, end).replace('\\\\', '/');\n }\n super.parseURL(url, parseString, 0, parseString.length());\n }", "public Builder setDid(String did) {\n\t\t\treturn setDid(DID.valueOf(did));\n\t\t}", "public static String urlDecode(String str) {\n try {\n return URLDecoder.decode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }", "public static ResourceAddress from(String address) {\n if (address == null) {\n throw new IllegalArgumentException(\"Address must not be null\");\n }\n\n ResourceAddress ra;\n if (address.trim().length() == 0) {\n ra = ResourceAddress.root();\n } else {\n String safeAddress = address.startsWith(\"/\") ? address.substring(1) : address;\n if (safeAddress.length() == 0) {\n ra = ResourceAddress.root();\n } else if (!safeAddress.contains(\"/\")) {\n ra = new ResourceAddress();\n String[] parts = safeAddress.split(\"=\");\n if (parts.length != 2) {\n throw new IllegalArgumentException(\"Malformed address: \" + address);\n }\n ra.add(parts[0], parts[1]);\n } else {\n ra = new ResourceAddress();\n String[] parts = safeAddress.split(\"/\");\n if (parts.length == 0) {\n throw new IllegalArgumentException(\"Malformed address: \" + address);\n }\n for (String part : parts) {\n String[] kv = part.split(\"=\");\n if (kv.length != 2) {\n throw new IllegalArgumentException(\"Malformed part '\" + part + \"' in address: \" + address);\n }\n ra.add(kv[0], kv[1]);\n }\n }\n }\n return ra;\n }", "private static UUID uuidFromDSUID(String dsuid) {\n return UUID.fromString(\n dsuid.substring(0, 8) + \"-\" +\n dsuid.substring(8, 12) + \"-\" +\n dsuid.substring(12, 16) + \"-\" +\n dsuid.substring(16, 20) + \"-\" +\n dsuid.substring(20, 32));\n }", "private static URL createURL(String requestedUrl) {\n URL url = null;\n try {\n url = new URL(requestedUrl);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"createdUrl: Problem building URL\", e);\n }\n return url;\n }", "public static String serviceOnlyURL(String url /* , String tenantId */) {\n\n if (/* tenantId == null || */url == null) {\n return url;\n }\n\n /*\n * Use a regular expression to parse the URL and recognize the scheme, ://, host name or ip address, and\n * optional port. Do not recognize anything after the port. Use a capture group (capture group 0 in this case)\n * to extract the recognized portion, which will be the basic URL only less any version, tenant id, or path\n * information.\n */\n Pattern urlPattern = Pattern.compile(\"^http[s]?://[^:/]+(?::[^/]+)\");\n Matcher urlMatcher = urlPattern.matcher(url);\n if (urlMatcher.find()) {\n return urlMatcher.group(0);\n }\n return url;\n //\n // StringBuffer buffer = new StringBuffer(url.trim());\n // int index = buffer.lastIndexOf(tenantId);\n // if (index > -1) {\n // buffer.delete(index, buffer.length());\n // }\n //\n // Pattern pattern = Pattern.compile(\"v[0-9]+(\\\\.[0-9]*)?(/)?$\", Pattern.CASE_INSENSITIVE);\n // Matcher matcher = pattern.matcher(buffer);\n // if (matcher.find()) {\n // buffer.delete(matcher.start(), buffer.length());\n // }\n //\n // return buffer.toString();\n //\n }", "private String m81844c(String str) {\n Uri uri;\n String a = UrlUtil.m84494a(this.f58071c, str);\n return (!TextUtils.isEmpty(a) || (uri = this.f58072d) == null) ? a : UrlUtil.m84494a(uri, str);\n }" ]
[ "0.6585609", "0.594758", "0.58890975", "0.57384026", "0.567361", "0.5391243", "0.52467537", "0.5084414", "0.48791772", "0.48530298", "0.48530298", "0.48458263", "0.48357072", "0.4694861", "0.46764007", "0.4655256", "0.46200132", "0.45954785", "0.45558128", "0.4551678", "0.45455915", "0.4511899", "0.44834244", "0.44482914", "0.44482914", "0.44425303", "0.44114378", "0.43833628", "0.43791592", "0.43705913", "0.4336747", "0.43287247", "0.4322038", "0.43160793", "0.43085432", "0.4291879", "0.42776996", "0.4274802", "0.42701802", "0.4267509", "0.42649835", "0.42376748", "0.420899", "0.4195552", "0.41819978", "0.41805434", "0.41639432", "0.41598657", "0.4133713", "0.41009152", "0.40934402", "0.40891585", "0.40720806", "0.4070179", "0.40652803", "0.4064632", "0.4061621", "0.40596265", "0.403328", "0.4010592", "0.39917845", "0.39744723", "0.3966088", "0.3961285", "0.39545554", "0.39528978", "0.39480928", "0.3940556", "0.39334297", "0.39262077", "0.39210704", "0.39168048", "0.3913573", "0.39130285", "0.39091396", "0.39026016", "0.3897459", "0.3897313", "0.38932955", "0.388468", "0.38822067", "0.3871731", "0.3861883", "0.3861842", "0.38555413", "0.38553455", "0.38516888", "0.3845348", "0.38398206", "0.3832211", "0.38303936", "0.38237223", "0.38192588", "0.38174888", "0.38131613", "0.38119304", "0.38055247", "0.37743673", "0.37723845", "0.37672552" ]
0.6763645
0
Create a DIDURL object from the given string. The method will parse the DIDURL object from the string if the string is not empty. Otherwise will return null.
public static DIDURL valueOf(String url) throws MalformedDIDURLException { return (url == null || url.isEmpty()) ? null : new DIDURL(url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "@Override\n\t\t\tpublic Device fromString(String arg0) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic Device fromString(String arg0) {\n\t\t\t\treturn null;\n\t\t\t}", "private URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "public static URL convertToUrl(String urlStr) {\n try {\n URL url = new URL(urlStr);\n URI uri = new URI(url.getProtocol(), url.getUserInfo(),\n url.getHost(), url.getPort(), url.getPath(),\n url.getQuery(), url.getRef());\n url = uri.toURL();\n return url;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "protected URL stringToURL(String urlString){\n try{\n URL url = new URL(urlString);\n return url;\n }catch(MalformedURLException e){\n e.printStackTrace();\n }\n return null;\n }", "public DIDURL(DID context, String url) throws MalformedDIDURLException {\n\t\tParser parser = new Parser();\n\t\tparser.parse(context, url);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Problem building the URL \", e);\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "private static URL m23464a(Context context, String str) {\n try {\n return new URL(str);\n } catch (MalformedURLException e) {\n C5376d dVar = C5376d.EXCEPTION;\n StringBuilder sb = new StringBuilder();\n sb.append(\"OMSDK: can't create URL - \");\n sb.append(str);\n C5378f.m23016a(context, dVar, sb.toString(), e.getMessage(), \"\");\n return null;\n }\n }", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public static URL createURL(String stringURL, final Context context) {\n URL url = null;\n try {\n url = new URL(stringURL);\n } catch (MalformedURLException e) {\n //use a handler to create a toast on the UI thread\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(context, \"Error: Check URL is valid.\", Toast.LENGTH_SHORT)\n .show();\n }\n });\n Log.e(LOG_TAG, \"Error: Check URL is valid.\", e);\n }\n return url;\n }", "public static URL createURL(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n }\n catch (MalformedURLException m) {\n Log.e(LOG_TAG,\"Error creating URL\",m);\n }\n return url;\n }", "private static URL createURL(String urlString) {\n\n // Create an empty url\n URL url = null;\n\n try {\n // Try to make a url from urlString param\n url = new URL(urlString);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error creating URL: \" + e);\n }\n\n //Return the new url\n return url;\n }", "public static HashMediaDesc stringToHMD (String str)\n {\n String[] data = str.split(\":\");\n if (data.length != 3) {\n return null;\n }\n byte[] hash = stringToHash(data[0]);\n if (hash == null) {\n return null;\n }\n byte mimeType = MediaMimeTypes.INVALID_MIME_TYPE;\n byte constraint = 0;\n try {\n mimeType = Byte.parseByte(data[1]);\n } catch (NumberFormatException nfe) {\n // don't care\n }\n try {\n constraint = Byte.parseByte(data[2]);\n } catch (NumberFormatException nfe) {\n // don't care\n }\n\n return new HashMediaDesc(hash, mimeType, constraint);\n }", "public static URL str2url( String strUrl )\r\n {\r\n try\r\n {\r\n URL url = new URL( strUrl );\r\n return url;\r\n }\r\n catch( MalformedURLException e )\r\n {\r\n Log.e( TAG, \"\", e );\r\n throw new IllegalArgumentException( \"str2url\", e );\r\n } \r\n }", "public static String extractDNfromURL(String _DN) {\r\n\r\n // ***************************\r\n // Make sure we have a string.\r\n if ((_DN == null) ||\r\n (_DN.equals(\"\"))) {\r\n return (_DN);\r\n }\r\n\r\n // ***************************\r\n // Create an LDAPURL Object\r\n // from the incoming String.\r\n //\r\n LDAPUrl _ldapurl = null;\r\n try {\r\n _ldapurl = new LDAPUrl(_DN);\r\n } catch (java.net.MalformedURLException mue) {\r\n // *******************************\r\n // This is a malformed URL, return\r\n // Null.\r\n return (\"\");\r\n } // End of Exception.\r\n\r\n // ***************************\r\n // Extract the DN.\r\n //\r\n return (_ldapurl.getDN());\r\n }", "private static URL stringToUrl(String stringUrl) throws MalformedURLException{\r\n\t\treturn new URL(stringUrl);\r\n\t}", "public static final String m130159a(String str) {\n String str2;\n if (TextUtils.isEmpty(str)) {\n return \"\";\n }\n Uri parse = Uri.parse(str);\n if (parse != null) {\n str2 = parse.getHost();\n } else {\n str2 = null;\n }\n if (TextUtils.equals(str2, C22912d.f60641a)) {\n return \"web_url\";\n }\n return C22912d.f60642b;\n }", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public UUID(String string) {\n FromString(string);\n }", "public static String urlDecode(String str) {\n try {\n return URLDecoder.decode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "public final URL mo15944a(String str) {\n try {\n return new URL(String.format(\"https://%s/%s/%s\", new Object[]{\"firebaseinstallations.googleapis.com\", \"v1\", str}));\n } catch (MalformedURLException e) {\n throw new C4291f(e.getMessage(), C4291f.C4292a.UNAVAILABLE);\n }\n }", "private static URL convertStringToURL(String url) {\n try {\n return new URL(url);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"String could not be converted into URL object\");\n e.printStackTrace();\n return null;\n }\n }", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "private static URL generateUrl(String requestedUrlString) {\n URL url = null;\n\n try {\n url = new URL(requestedUrlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating a URL object : generateURL() block\", e);\n }\n return url;\n }", "public static UUID Parse(String val) {\n return new UUID(val);\n }", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "Optional<T> parse(@Nonnull String s);", "@Override\n\tpublic UUID decode(String urn) {\n\t\tif (!isUuidUrn(urn)) {\n\t\t\tthrow InvalidUuidException.newInstance(urn);\n\t\t}\n\t\treturn StringCodec.INSTANCE.decode(urn);\n\t}", "public static UUID getUUID(String potentialUUID) {\n\t\tif (potentialUUID == null || potentialUUID.length() != 36)\n\t\t\treturn null;\t\t\n\t\t\n\t\ttry {\n\t\t\treturn UUID.fromString(potentialUUID);\n\t\t} catch (Exception ex) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String mo88914a(String str) {\n if (!TextUtils.isEmpty(str) && str.indexOf(\"href=\\\"\") != -1) {\n String[] split = str.split(\"href=\\\"\");\n if (split.length > 1 && !TextUtils.isEmpty(split[1])) {\n String str2 = split[1];\n if (str2.indexOf(\"\\\"\") != -1) {\n String[] split2 = str2.split(\"\\\"\");\n if (split2.length > 0 && !TextUtils.isEmpty(split2[0])) {\n return split2[0];\n }\n }\n }\n }\n return null;\n }", "@Test(expected = NullPointerException.class)\n public void testInvalidValueOfNullString() {\n Ip4Address ipAddress;\n\n String fromString = null;\n ipAddress = Ip4Address.valueOf(fromString);\n }", "@Deprecated\r\n\tpublic static URI createURIWithoutChecking(String uriString) {\r\n\t\treturn new URIImpl(uriString, false);\r\n\t}", "@Override // com.fasterxml.jackson.databind.deser.std.FromStringDeserializer\n public final Uri A0Q(String str, AbstractC02210iH r3) throws IOException, C03620oC {\n return Uri.parse(str);\n }", "private void processUrl (String stringUrl)\n\t{\n\t\tURL correctUrl=null;\n\t\t// we need the URL\n\t\t// we first try to convert it directly\n\t\ttry {\n\t\t\tcorrectUrl=new URL(stringUrl);\n\t\t} catch (MalformedURLException e) {System.out.println(\"Not found : \"+stringUrl);return;}\n\n\t\tallInformation.getNemo().addJcamp(stringUrl);\n\t}", "private static Uri m63903b(Cursor cursor, String str) {\n try {\n return Uri.parse(m63901a(cursor, str));\n } catch (NullPointerException unused) {\n return null;\n }\n }", "@Override\n public WikiReference parse(String str)\n {\n str = str.trim();\n String reference = null;\n String label = null;\n if (str.contains(\"|\")) {\n reference = str.substring(0, str.indexOf('|'));\n label = str.substring(str.indexOf('|') + 1);\n } else {\n reference = str;\n }\n \n // special case images ...\n if (reference.matches(PREFIX_IMAGE) || reference.matches(PREFIX_FILE)) {\n reference = reference.substring(reference.indexOf(':') + 1);\n if (label != null) {\n WikiParameters params = this.generateImageParams(label);\n if (params.getParameter(\"alt\") != null) {\n label = params.getParameter(\"alt\").getValue();\n } else {\n label = \"\";\n }\n // copy ALT attribute to TITLE attribute, cause it's more user friendly\n if (params.getParameter(\"title\") == null && \"\".equals(label)) {\n params.addParameter(\"title\", label);\n }\n return new WikiReference(reference, label, params);\n }\n return new WikiReference(reference);\n }\n\n // External link with label\n // Case: [http://mediawiki.org MediaWiki]\n WikiReference wikiReference;\n if (-1 != str.indexOf(' ') && (str.contains(\"://\") || str.matches(PREFIX_MAILTO))) {\n String link = str.substring(0, str.indexOf(' ')).trim();\n label = str.substring(str.indexOf(' ') + 1).trim();\n wikiReference = new WikiReference(link, label);\n } else {\n wikiReference = new WikiReference(reference, label);\n }\n return wikiReference;\n\n }", "private static UUID uuidFromDSUID(String dsuid) {\n return UUID.fromString(\n dsuid.substring(0, 8) + \"-\" +\n dsuid.substring(8, 12) + \"-\" +\n dsuid.substring(12, 16) + \"-\" +\n dsuid.substring(16, 20) + \"-\" +\n dsuid.substring(20, 32));\n }", "public static String parseUuidOrDefault(String s, String defaultStr) {\n Matcher m = UUID_PATTERN.matcher(s.toLowerCase());\n if (m.matches()) {\n return m.group(1);\n }\n return defaultStr;\n }", "@TypeConverter\n public UUID toUUID(String string){\n return UUID.fromString(string);\n }", "public T caseURL(URL object)\n {\n return null;\n }", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "@Deprecated\r\n\tpublic static URI create(String uriString) {\r\n\t\treturn new URIImpl(uriString);\r\n\t}", "public static String getURLString(String str) {\n String str2 = \"\";\n try {\n String substring = str.substring(str.indexOf(\"url\\\">\") + 5);\n return substring.substring(0, substring.indexOf(\"<\"));\n } catch (Exception e) {\n e.printStackTrace();\n return str2;\n }\n }", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public void decodeFromUrlString(String newValue) throws IOException {\n decodeWritable(this, newValue);\n }", "public static TableId parse(String str) {\n return parse(str, true);\n }", "public URIBuilder(final String string) {\n super();\n try {\n digestURI(new URI(string));\n } catch (final URISyntaxException e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "public RecordDescriptor getRecordDescriptor(String recordDescriptorIdOrUrl) {\n if (recordDescriptorIdOrUrl == null) {\n return null;\n }\n if (recordDescriptorIdOrUrl.contains(\"#\")) {\n recordDescriptorIdOrUrl = recordDescriptorIdOrUrl.substring(recordDescriptorIdOrUrl.indexOf(\"#\") + 1);\n }\n return recordDescriptorMap.get(recordDescriptorIdOrUrl);\n }", "@Override\n\tpublic Object fromXMLString(String arg0) {\n\t\treturn null;\n\t}", "private Object string2Object (final String str)\n throws IllegalArgumentException,\n IOException,\n SecurityException,\n ClassNotFoundException {\n\n Object object = null;\n\n ObjectInputStream objectInputStream = null;\n\n try {\n\n final byte [] data;\n\n // might throw an IllegalArgumentException;\n data = Base64Coder.decode(str);\n\n final ByteArrayInputStream byteArrayInputStream =\n new ByteArrayInputStream(data);\n\n // might throw a StreamCorrupted-, IO-, Security-, or\n // NullPointerException (StreamCorrupted- is an IOException,\n // NullPointerException should never happen here);\n // note: might additionally throw an EOFException!\n objectInputStream = new ObjectInputStream(byteArrayInputStream);\n\n // might throw a ClassNotFound-, InvalidClass-, StreamCorrupted-,\n // OptionalData- or IOException (InvalidClass-, StreamCorrupted-,\n // OptionalDataException denote IOExceptions);\n object = objectInputStream.readObject();\n\n } catch (final EOFException ex) {\n\n final String message = String.format(\n ObjectStringConverter.ERROR_DECODING_FAILED,\n str);\n\n throw new IOException (message);\n\n } finally {\n\n if (objectInputStream != null) {\n\n try {\n\n // might throw an IOException;\n objectInputStream.close();\n\n } catch (final IOException ex) {\n\n // ignore exception, since this is the \"finally\" block;\n // TODO: exception message should be written to log file;\n }\n }\n }\n\n return object;\n }", "@Override\n\tpublic function initFromString(String s) {\n\t\treturn null;\n\t}", "private static URL createURL(String requestedUrl) {\n URL url = null;\n try {\n url = new URL(requestedUrl);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"createdUrl: Problem building URL\", e);\n }\n return url;\n }", "@Nullable\n private static X509Certificate certificateFromPemString(@Nullable String certStr)\n throws CertificateException {\n if (certStr == null || EMPTY_CERT.equals(certStr)) {\n return null;\n }\n\n try {\n final List<X509Certificate> certs =\n Credentials.convertFromPem(certStr.getBytes(StandardCharsets.US_ASCII));\n return certs.isEmpty() ? null : certs.get(0);\n } catch (IOException e) {\n throw new CertificateException(e);\n }\n }", "void first_normalize_url(String rawurl, PointerByReference ptr);", "private String extractHostFromDBUrl(String url) throws Exception {\n\t\tint start = url.indexOf(\"sid=\") + 4;\n\t\tif (start > 3) {\n\t\t\tint stop = url.indexOf(\")\", start);\n\t\t\tif (stop > -1) {\n\t\t\t\treturn url.substring(start, stop);\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"Try to extract sid from short url\");\n\t\t\tstart = url.lastIndexOf(\":\") + 1;\n\t\t\tif (start > 0) {\n\t\t\t\treturn url.substring(start, url.length());\n\t\t\t}\n\t\t}\n\t\tthrow new Exception(\"Unable to extract the SID from the URL \" + url);\n\t}", "public static URL buildurl(String url1)\n {\n URL url = null;\n try\n {\n url = new URL(url1.toString());\n\n }\n catch(MalformedURLException e)\n {\n e.printStackTrace();\n }\n return url;\n }", "private URI findBaseUrl0(String stringUrl) throws URISyntaxException {\n stringUrl = stringUrl.replace(\"\\\\\", \"/\");\n int qindex = stringUrl.indexOf(\"?\");\n if (qindex != -1) {\n // stuff after the ? tends to make the Java URL parser burp.\n stringUrl = stringUrl.substring(0, qindex);\n }\n URI url = new URI(stringUrl);\n URI baseUrl = new URI(url.getScheme(), url.getAuthority(), url.getPath(), null, null);\n\n String path = baseUrl.getPath().substring(1); // toss the leading /\n String[] pieces = path.split(\"/\");\n List<String> urlSlashes = new ArrayList<String>();\n // reverse\n for (String piece : pieces) {\n urlSlashes.add(piece);\n }\n List<String> cleanedSegments = new ArrayList<String>();\n String possibleType = \"\";\n boolean del;\n\n for (int i = 0; i < urlSlashes.size(); i++) {\n String segment = urlSlashes.get(i);\n\n // Split off and save anything that looks like a file type.\n if (segment.indexOf(\".\") != -1) {\n possibleType = segment.split(\"\\\\.\")[1];\n\n /*\n * If the type isn't alpha-only, it's probably not actually a file extension.\n */\n if (!possibleType.matches(\"[^a-zA-Z]\")) {\n segment = segment.split(\"\\\\.\")[0];\n }\n }\n\n /**\n * EW-CMS specific segment replacement. Ugly. Example:\n * http://www.ew.com/ew/article/0,,20313460_20369436,00.html\n **/\n if (segment.indexOf(\",00\") != -1) {\n segment = segment.replaceFirst(\",00\", \"\");\n }\n\n // If our first or second segment has anything looking like a page\n // number, remove it.\n /* Javascript code has some /i's here, we might need to fiddle */\n Matcher pnMatcher = Patterns.PAGE_NUMBER_LIKE.matcher(segment);\n if (pnMatcher.matches() && ((i == 1) || (i == 0))) {\n segment = pnMatcher.replaceAll(\"\");\n }\n\n del = false;\n\n /*\n * If this is purely a number, and it's the first or second segment, it's probably a page number.\n * Remove it.\n */\n if (i < 2 && segment.matches(\"^\\\\d{1,2}$\")) {\n del = true;\n }\n\n /* If this is the first segment and it's just \"index\", remove it. */\n if (i == 0 && segment.toLowerCase() == \"index\")\n del = true;\n\n /*\n * If our first or second segment is smaller than 3 characters, and the first segment was purely\n * alphas, remove it.\n */\n /* /i again */\n if (i < 2 && segment.length() < 3 && !urlSlashes.get(0).matches(\"[a-z]\"))\n del = true;\n\n /* If it's not marked for deletion, push it to cleanedSegments. */\n if (!del) {\n cleanedSegments.add(segment);\n }\n }\n\n String cleanedPath = \"\";\n for (String s : cleanedSegments) {\n cleanedPath = cleanedPath + s;\n cleanedPath = cleanedPath + \"/\";\n }\n URI cleaned = new URI(url.getScheme(), url.getAuthority(), \"/\"\n + cleanedPath.substring(0, cleanedPath\n .length() - 1), null, null);\n return cleaned;\n }", "Contract decodeContract(String s, XElem elem)\n { \n StringTokenizer st = new StringTokenizer(s, \" \");\n ArrayList acc = new ArrayList(); \n while(st.hasMoreTokens()) acc.add(decodeRefUri(st.nextToken(), elem));\n return new Contract((Uri[])acc.toArray(new Uri[acc.size()]));\n }", "java.lang.String getDidUri();", "public static Command parse(String str) throws DukeException {\n\n String[] arr = str.split(\" \", 2);\n if (arr.length < 1) {\n throw new DukeException(\"No command was given.\");\n }\n String firstWord = arr[0];\n if (str.equalsIgnoreCase(\"bye\")) {\n return new ExitCommand();\n } else if (str.equalsIgnoreCase(\"list\")) {\n return new ListCommand();\n } else {\n Action action = parseFirstWord(firstWord.toLowerCase());\n\n if (arr.length < 2 && (action == Action.Done || action == Action.Delete)) {\n throw new DukeException(\"duke.task.Task number for \" + firstWord + \" is not given.\");\n } else if (arr.length < 2 || arr[1].isBlank()) {\n throw new DukeException(\"The description of \" + firstWord + \" cannot be empty\");\n } else {\n return actionToCommand(action, arr[1]);\n }\n }\n }", "public static String prettyURL(String string) {\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString normalized = Normalizer.normalize(string.toLowerCase(), Form.NFD);\n\t\tString withoutDiacriticalMarks = PATTERN_DIACRITICAL_MARKS.matcher(normalized).replaceAll(\"\");\n\t\treturn PATTERN_NON_ALPHANUMERIC_CHARS.matcher(withoutDiacriticalMarks).replaceAll(\"-\");\n\t}", "public static URL createURL(String encodedURL) throws MalformedURLException, URISyntaxException {\n\n /* The encoded URL is transformed to an URL representation */\n URL anURL = new URL(encodedURL);\n\n /* And the URL is validated on its syntax */\n anURL.toURI();\n\n return anURL;\n }", "public String c(String str) {\n String str2;\n String str3 = null;\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n try {\n String host = Uri.parse(str).getHost();\n String aBTestValue = TUnionTradeSDK.getInstance().getABTestService().getABTestValue(\"config\");\n if (!TextUtils.isEmpty(aBTestValue)) {\n String optString = new JSONObject(aBTestValue).optString(\"domain\");\n TULog.d(\"abTestRequestUrl, url: \" + str + \" host: \" + host + \" domains: \" + optString, new Object[0]);\n if (!TextUtils.isEmpty(host) && !TextUtils.isEmpty(optString)) {\n JSONArray jSONArray = new JSONArray(optString);\n if (jSONArray.length() > 0) {\n int length = jSONArray.length();\n int i = 0;\n while (true) {\n if (i >= length) {\n break;\n } else if (host.contains(jSONArray.getString(i))) {\n String encode = URLEncoder.encode(str, \"utf-8\");\n try {\n TULog.d(\"abTestRequestUrl, loginJumpUrl :\" + str2, new Object[0]);\n } catch (Exception unused) {\n }\n str3 = str2;\n break;\n } else {\n i++;\n }\n }\n }\n }\n }\n } catch (Exception unused2) {\n }\n return str3;\n }", "public static String getDomain(String dn) {\n if (Strings.isNullOrEmpty(dn)) {\n return null;\n }\n Iterable<String> str =\n Splitter.on(',').trimResults().omitEmptyStrings().split(dn);\n StringBuilder strBuilder = new StringBuilder();\n for (String substr : str) {\n if (substr.startsWith(\"dc\") || substr.startsWith(\"DC\")) {\n strBuilder.append(substr.substring(3)).append(\".\");\n }\n }\n String strDomain = strBuilder.toString();\n if (Strings.isNullOrEmpty(strDomain)) {\n return null;\n }\n return strDomain.substring(0, strDomain.length() - 1);\n }", "public static ResourceAddress from(String address) {\n if (address == null) {\n throw new IllegalArgumentException(\"Address must not be null\");\n }\n\n ResourceAddress ra;\n if (address.trim().length() == 0) {\n ra = ResourceAddress.root();\n } else {\n String safeAddress = address.startsWith(\"/\") ? address.substring(1) : address;\n if (safeAddress.length() == 0) {\n ra = ResourceAddress.root();\n } else if (!safeAddress.contains(\"/\")) {\n ra = new ResourceAddress();\n String[] parts = safeAddress.split(\"=\");\n if (parts.length != 2) {\n throw new IllegalArgumentException(\"Malformed address: \" + address);\n }\n ra.add(parts[0], parts[1]);\n } else {\n ra = new ResourceAddress();\n String[] parts = safeAddress.split(\"/\");\n if (parts.length == 0) {\n throw new IllegalArgumentException(\"Malformed address: \" + address);\n }\n for (String part : parts) {\n String[] kv = part.split(\"=\");\n if (kv.length != 2) {\n throw new IllegalArgumentException(\"Malformed part '\" + part + \"' in address: \" + address);\n }\n ra.add(kv[0], kv[1]);\n }\n }\n }\n return ra;\n }", "@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }", "private String m81844c(String str) {\n Uri uri;\n String a = UrlUtil.m84494a(this.f58071c, str);\n return (!TextUtils.isEmpty(a) || (uri = this.f58072d) == null) ? a : UrlUtil.m84494a(uri, str);\n }", "public static Map<String, String> strToMap(String str, String delim, boolean trim, String pairsSeparator) {\n if (UtilValidate.isEmpty(str)) {\n return null;\n }\n Map<String, String> decodedMap = new HashMap<>();\n List<String> elements = split(str, delim);\n pairsSeparator = pairsSeparator == null ? \"=\" : pairsSeparator;\n\n for (String s: elements) {\n\n List<String> e = split(s, pairsSeparator);\n if (e.size() != 2) {\n continue;\n }\n String name = e.get(0);\n String value = e.get(1);\n if (trim) {\n if (name != null) {\n name = name.trim();\n }\n if (value != null) {\n value = value.trim();\n }\n }\n\n try {\n if (value != null && name != null) {\n decodedMap.put(URLDecoder.decode(name, \"UTF-8\"), URLDecoder.decode(value, \"UTF-8\"));\n }\n } catch (UnsupportedEncodingException e1) {\n Debug.logError(e1, MODULE);\n }\n }\n return decodedMap;\n }", "public Object decode(Object obj) throws DecoderException {\n/* 341 */ if (obj == null)\n/* 342 */ return null; \n/* 343 */ if (obj instanceof byte[])\n/* 344 */ return decode((byte[])obj); \n/* 345 */ if (obj instanceof String) {\n/* 346 */ return decode((String)obj);\n/* */ }\n/* 348 */ throw new DecoderException(\"Objects of type \" + obj.getClass().getName() + \" cannot be URL decoded\");\n/* */ }", "private void badStringEthernetAddressConstructorHelper(\n String ethernetAddressString)\n {\n try\n {\n /*EthernetAddress ethernet_address =*/\n new EthernetAddress(ethernetAddressString);\n // if we reached here we failed because we didn't get an exception\n fail(\"Expected exception not caught\");\n }\n catch (NumberFormatException ex)\n {\n // this is the success case so do nothing\n }\n catch (Exception ex)\n {\n fail(\"Caught unexpected exception: \" + ex);\n }\n }", "public UrlDevice getUrlDeviceById(String id) {\n return mDeviceIdToUrlDeviceMap.get(id);\n }", "@Override\n\tpublic URL getURL(String uri) throws MalformedURLException {\n\t\tif (uri.length() == 0) {\n\t\t\tthrow new MalformedURLException(\"Empty URI\");\n\t\t}\n\t\tURL url;\n\t\tif (uri.indexOf(\"://\") < 0) {\n\t\t\turl = new URL(getBaseURL(), uri);\n\t\t} else {\n\t\t\turl = new URL(uri);\n\t\t}\n\t\treturn url;\n\t}", "public SocketRemoteIdentifier(String str) {\n int index = str.indexOf(\"0:0:0:0:0:0:0:0:\");\n\n if (index >= 0) {\n String host = str.substring(0, 15);\n int port = Integer.parseInt(str.substring(index+16));\n this.addr = new InetSocketAddress(host, port);\n } else {\n index = str.indexOf(\":\");\n if (index <= 0) {\n throw new RemoteRuntimeException(\"Invalid name \" + str);\n }\n String host = str.substring(0, index);\n int port = Integer.parseInt(str.substring(index+1));\n this.addr = new InetSocketAddress(host, port);\n } \n }", "public String decode(String shortUrl) {\n return shortToLongUrl.getOrDefault(shortUrl.replace(\"http://tinyurl.com/\", \"\"), \"\");\n }", "public UvScanUrl(String stringID , String baseUrl)\r\n\t{\r\n\t\tthis.stringID = stringID;\r\n\t\tthis.baseUrl = baseUrl;\r\n\t\t\r\n\t\t\r\n\t\tfollowsConfigUrlPattern = false;\r\n\t\tfollowsConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tfollowsExactConfigUrlPattern = false;\r\n\t\tfollowsExactConfigRedirectedUrlPattern = false;\r\n\t\t\r\n\t\tisBaseUrlLocalized = false;\r\n\t\tisRedirectedUrlLocalized = false;\r\n\t\t\r\n\t\tisDeleted=false;\r\n\t\tisErrorPage= true;\r\n\r\n\t\texceptionType =UrlExceptionLevel.None;\r\n\t\t\r\n\t\tbaseUrlPatternMatchResult = \"\";\r\n\t\tredirectedUrlPatternMatchResult = \"\";\r\n\t\t\r\n\t\texceptionOccurred = \"\";\r\n\t}", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }", "public String decode(String shortUrl) {\n int index = shortUrl.lastIndexOf(SEPERATE);\n int pos = Integer.parseInt(shortUrl.substring(index+ 1));\n String encode = shortUrl.substring(PREFIX.length(), index);\n List<String> list = shortToLong.getOrDefault(encode, new ArrayList<>());\n if (list.size() <= pos) {\n throw new RuntimeException();\n }\n return list.get(pos);\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic OrdineTestata fromString(String ordineTestata) {\n\t\treturn null;\n\t}", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "Uri decodeRefUri(String s, XElem elem)\n { \n Uri uri = new Uri(s);\n if (!uri.isFragment()) return uri;\n \n // check if we've already parsed the obj to which\n // this fragment id referneces\n Obj resolved = (Obj)fragIds.get(s); \n if (resolved != null)\n { \n uri.setResolved(resolved);\n return uri;\n } \n \n // if not then this uri is forwardly used (or \n // maybe missing), so just store it away \n FragRefs refs = (FragRefs)fragRefs.get(s);\n if (refs == null) fragRefs.put(s, refs = new FragRefs());\n refs.uris.add(uri);\n refs.elems.add(elem);\n \n return uri;\n }", "public Builder setDeviceId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n deviceId_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n url_ = value;\n onChanged();\n return this;\n }", "public static GithubLocation fromString(String location) {\n return new GithubLocation(location);\n }", "public static RecordSchema buildDatahubSchema(String str) {\n if (str == null || str.isEmpty()) {\n return new RecordSchema();\n }\n String remain = str;\n ArrayList<Field> cols = new ArrayList<Field>();\n int pos;\n while (remain.length() > 0) {\n pos = remain.indexOf(SEPERATOR);\n if (pos < 0) {\n // Last one\n pos = remain.length();\n }\n String tok = remain.substring(0, pos);\n String[] knv = tok.split(DELIMITER, 2);\n if (knv.length != 2) {\n throw new IllegalArgumentException(\n \"Malformed schema definition, expecting \\\"name:type\\\" but was \\\"\" + tok + \"\\\"\");\n }\n if (pos == remain.length()) {\n remain = \"\";\n } else {\n remain = remain.substring(pos + 1);\n }\n cols.add(new Field(knv[0], FieldType.valueOf(knv[1].toUpperCase())));\n }\n RecordSchema schema = new RecordSchema();\n schema.setFields(cols);\n return schema;\n }", "public Builder setUserDN(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userDN_ = value;\n\n return this;\n }", "private static ApplicationId parseApplicationId(String appIdStr) {\n try {\n return ApplicationId.fromString(appIdStr);\n } catch (IllegalArgumentException e) {\n return null;\n }\n }", "public T caseURDFAttrSTRING(URDFAttrSTRING object) {\r\n\t\treturn null;\r\n\t}", "private static String m35846a(String str) {\n StringBuilder sb = new StringBuilder(\"http://ib.snssdk.com\");\n sb.append(str);\n return sb.toString();\n }", "public static String normalize(String url) {\n try {\n URL absoluteUrl = new URL(url);\n return new URL(\n absoluteUrl.getProtocol(), \n absoluteUrl.getHost(), \n absoluteUrl.getPort(),\n absoluteUrl.getPath())\n .toString();\n } catch (Exception ex) {\n return null;\n }\n }" ]
[ "0.64418507", "0.6372744", "0.6205544", "0.56847095", "0.56847095", "0.53686255", "0.5322994", "0.530668", "0.5271163", "0.52110183", "0.52077967", "0.51999855", "0.5194602", "0.5159875", "0.5159875", "0.51397926", "0.5087844", "0.5073897", "0.50605035", "0.50024986", "0.4992411", "0.4972495", "0.49128622", "0.4854728", "0.4749434", "0.47448632", "0.47444022", "0.4723114", "0.46865597", "0.4665708", "0.46573704", "0.46485513", "0.4564002", "0.45425314", "0.44633925", "0.4445751", "0.44336796", "0.44304362", "0.44253504", "0.44249666", "0.43982667", "0.43901503", "0.43682495", "0.43191943", "0.43074813", "0.42941198", "0.4269564", "0.42668203", "0.42625657", "0.42519322", "0.42515364", "0.4242228", "0.4241372", "0.4236626", "0.42342126", "0.42302603", "0.42124304", "0.42056504", "0.42024356", "0.4191397", "0.41867003", "0.4182737", "0.41718087", "0.41637298", "0.41519564", "0.41469115", "0.41414705", "0.4124383", "0.41035765", "0.41025868", "0.4094376", "0.409411", "0.40921545", "0.4091495", "0.40808165", "0.40803206", "0.40767056", "0.40757564", "0.40567425", "0.405375", "0.40514827", "0.40415046", "0.40299362", "0.40268853", "0.40237823", "0.4022762", "0.40185925", "0.40020862", "0.4001787", "0.40013447", "0.3994218", "0.3990355", "0.39854133", "0.39795643", "0.3977447", "0.39748", "0.3974182", "0.3973692", "0.3971369", "0.39653903" ]
0.7156736
0
Get the base DID of the DIDURL object.
public DID getDid() { return did; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDID() {\r\n return DID;\r\n }", "public String getBaseDomain(String url)\r\n\t{\r\n\t\tString host = getHost(url);\r\n\r\n\t\tint startIndex = 0;\r\n\t\tint nextIndex = host.indexOf('.');\r\n\t\tint lastIndex = host.lastIndexOf('.');\r\n\t\twhile (nextIndex < lastIndex)\r\n\t\t{\r\n\t\t\tstartIndex = nextIndex + 1;\r\n\t\t\tnextIndex = host.indexOf('.', startIndex);\r\n\t\t}\r\n\t\tif(startIndex > 0)\r\n\t\t{\r\n\t\t\treturn host.substring(startIndex);\r\n\t\t} else\r\n\t\t{\r\n\t\t\treturn host;\r\n\t\t}\r\n\t}", "public String getBaseId() {\n return baseId;\n }", "@Override\n\tpublic URL getBaseURL() {\n\t\tURL url = null;\n\t\tString buri = getBaseURI();\n\t\tif (buri != null) {\n\t\t\ttry {\n\t\t\t\turl = new URL(buri);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\ttry {\n\t\t\t\t\tString docuri = document.getDocumentURI();\n\t\t\t\t\tif (docuri != null) {\n\t\t\t\t\t\tURL context = new URL(docuri);\n\t\t\t\t\t\turl = new URL(context, buri);\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}", "public String getBaseId();", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "public String getBaseIdentifier() {\n return baseIdentifier;\n }", "public static String getBaseURL() {\n\t\t\n\t\treturn (ZmailURI.getBaseURI().toString());\n\t\t\n\t}", "public String getBaseDirectoryName() {\n return mBaseDirectoryName;\n }", "public String getBaseAddress() {\n return base_address.getAddress();\n }", "String getBaseUri();", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public Long getBaseId() {\n return baseId;\n }", "public String getBaseURL() {\n\n\t\treturn baseURL;\n\n\t}", "public static String determineBaseUrl(String url) {\r\n\t\t// Determine the index of the first slash after the first period.\r\n\t\tint firstSub = url.indexOf(\"/\", url.indexOf(\".\"));\r\n\t\t\r\n\t\tif (firstSub == -1)\r\n\t\t\t// There were no sub directories included in the URL.\r\n\t\t\treturn url;\r\n\t\telse\r\n\t\t\treturn url.substring(0, firstSub);\r\n\t}", "public String getDN() {\n\t\treturn url.getDN();\n }", "public String getBaseURL() {\n return baseURL;\n }", "public String getBaseURL() {\n return baseURL;\n }", "private String getBaseURL(Document dom) {\n String baseURLValue = null;\n \n //get the root element\n Element element = dom.getDocumentElement();\n \n //get a nodelist of elements\n \n NodeList nl = element.getElementsByTagName(\"baseURL\");\n if(nl != null && nl.getLength() > 0) {\n for(int i = 0 ; i < nl.getLength();i++) {\n //get the list element\n Element baseURL = (Element)nl.item(i);\n baseURLValue = baseURL.getTextContent();\n }\n }\n \n return baseURLValue;\n }", "public String getBaseUrl() {\n return (String) get(\"base_url\");\n }", "public String getBaseUri() {\n\t\treturn baseUri;\n\t}", "public String getBase()\n {\n return base;\n }", "public URL getBaseHref() {\n return baseHref;\n }", "public static String getBaseURL(URL url) throws MalformedURLException {\n return new URL(url.getProtocol(), url.getHost(), url.getPort(), \"/\").toString();\n }", "com.google.protobuf.ByteString\n getDidUriBytes();", "static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public String getBaseLinkUrl() {\n return (String) get(\"base_link_url\");\n }", "public static String getDeviceUUID(){\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n String uuid = adapter.getAddress();\n return uuid;\n }", "public List<String> getBaseDNs()\n {\n return baseDNs;\n }", "public UUID getBaseBuilderUUID() {\n\t\treturn baseBuilder;\n\t}", "java.lang.String getDidUri();", "protected String getBaseUrl(HttpServletRequest request) {\n\t\tString retVal = \"\";\n\t\tif (request != null && request.getRequestURL() != null) {\n\t\t\tStringBuffer url = request.getRequestURL();\n\t\t\tString uri = request.getRequestURI();\n\t\t\t\n\t\t\tretVal = url.substring(0, url.length() - uri.length());\n\t\t}\n\t\t\n\t\treturn retVal;\n\t}", "public static String getBaseURL()\r\n {\r\n String savedUrl = P.getChoreoServicesUrl();\r\n return savedUrl.length() > 0 ? savedUrl : Config.DEFAULT_SERVER_URL;\r\n }", "public String getBaseUrl() {\n return builder.getBaseUrl();\n }", "public URL makeBase(URL startingURL);", "com.google.protobuf.ByteString getUserDNBytes();", "public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }", "public static String GetBaseAddress() {\n\t\t// Load Projects Settings XML file\n\t\tDocument doc = Utilities.LoadDocumentFromFilePath(IDE.projectFolderPath + \"\\\\ProjectSettings.xml\");\n\t\tString baseAddress = \"\";\n\t\tif (doc != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList baseAddressNode = doc.getDocumentElement().getElementsByTagName(\"baseAddress\");\n\t\t\t// Handle result\n\t\t\tif (baseAddressNode.getLength() > 0) {\n\t\t\t\tbaseAddress = Utilities.getXmlNodeAttribute(baseAddressNode.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn baseAddress;\n\t}", "public static String getBaseUrl() {\r\n if (baseUrl == null) {\r\n baseUrl = Constants.HTTP_PROTOCOL + \"://\" + getBaseHost() + \":\" + getBasePort();\r\n }\r\n return baseUrl;\r\n }", "public Record getComponentIdAndBaseId(Record record);", "private String getBaseUri() {\n\t\treturn null;\n\t}", "public String getDeviceUDID() {\r\n\t\tTelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\r\n\t\treturn telephonyManager.getDeviceId();\r\n\t}", "public String getBaseUrl()\r\n {\r\n return this.url;\r\n }", "public String getBaseName() {\n return baseName;\n }", "public String appBaseUrl() {\n int amtToTrim = request.getServletPath().length() + request.getPathInfo().length();\n String appBase = requestURL.substring(0, requestURL.length()-amtToTrim);\n return appBase;\n }", "public LocatorIF getBase() {\n return base_address;\n }", "public Address getFilebase() {\n return new Address(m_module.getConfiguration().getFileBase().toBigInteger());\n }", "protected Path getBasePathForUser(User owner) {\n return getDirectories().getDevicesPath().resolve(owner.getName());\n }", "public URL getCodeBase() {\n/* 169 */ return this.stub.getCodeBase();\n/* */ }", "public static String getFirstDNComponent(String dn) {\n List<String> components = CertTools.getX500NameComponents(dn);\n if (components.size() == 0 || StringUtils.isEmpty(components.get(0))) return \"\";\n else return LDAPDN.escapeRDN(components.get(0));\n }", "public int getRequiredBase() {\n return requiredBase;\n }", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public String getBaseUrl()\n\t{\n\t\treturn baseUrl;\n\t}", "public abstract String getDnForPerson(String inum);", "public Address getImagebase() {\n return new Address(m_module.getConfiguration().getImageBase().toBigInteger());\n }", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "public int getBaseNumber() {\r\n\t\treturn baseNumber;\r\n\t}", "public static String getWorkRelativePath(String baseURL, String testId) {\n StringBuilder sb = new StringBuilder(baseURL);\n\n // strip off extension\n stripExtn:\n for (int i = sb.length() - 1; i >= 0; i--) {\n switch (sb.charAt(i)) {\n case '.':\n sb.setLength(i);\n break stripExtn;\n case '/':\n break stripExtn;\n }\n }\n\n // add in uniquifying id if\n if (testId != null) {\n sb.append('_');\n sb.append(testId);\n }\n\n sb.append(EXTN);\n\n return sb.toString();\n }", "public String _get_codebase() {\n org.omg.CORBA.portable.Delegate delegate = _get_delegate();\n if (delegate instanceof Delegate)\n return ((Delegate) delegate).get_codebase(this);\n return null;\n }", "public abstract String getBaseURL();", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public String getHyperlinkBase()\r\n {\r\n return (m_hyperlinkBase);\r\n }", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }", "@Override\r\n public String getBaseName() {\r\n if (baseName == null) {\r\n final int idx = getPath().lastIndexOf(SEPARATOR_CHAR);\r\n if (idx == -1) {\r\n baseName = getPath();\r\n } else {\r\n baseName = getPath().substring(idx + 1);\r\n }\r\n }\r\n\r\n return baseName;\r\n }", "public String getHandleServiceBaseUrl();", "private static String getDirectoryBase(String parentBase) {\n if (parentBase.endsWith(\"/\")) return parentBase;\n int lastSlash = parentBase.lastIndexOf('/');\n return parentBase.substring(0, lastSlash+1);\n }", "@Override\r\n public String getCodeBase() {\r\n return getAttributeWithDefault(\"codebase\", \".\");\r\n }", "public String getSearchBaseDn()\n {\n return searchBaseDn;\n }", "public URL getDocumentBase() {\n/* 158 */ return this.stub.getDocumentBase();\n/* */ }", "public String getBaseUrl()\n {\n return baseUrl;\n }", "public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private static URI determineDocBaseURI(URI docURI, Document doc) {\n\n // Note: The first base element with a href attribute is considered\n // valid in HTML. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base.\n var baseElem = doc.selectFirst(\"base[href]\");\n return baseElem != null ? docURI.resolve(baseElem.attr(\"href\")) : docURI;\n }", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "public Address getStartAddress() {\n\t\treturn baseAddress;\n\t}", "public final int getDeviceID() {\n return device.getDeviceID();\n }", "public String getDerivedFrom()\n {\n return derivedFrom;\n }", "public String getWalletFileBaseName() {\r\n return walletFileBaseName;\r\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public String getBaseUrl() {\r\n return baseUrl;\r\n }", "public String getBaseDirectory()\n {\n return m_baseDirectory;\n }", "public static String getBaseUrl() {\n return baseUrl;\n }", "protected String getIdentifier() {\n return getBaseUrl() + normalizePath(getRequest().getPath());\n }", "@Override\n public String getBase() {\n return base;\n }", "public final int getDevice()\n\t{\n\t\treturn address & 0xFF;\n\t}", "@Override\n public long getUUID() {\n return endpointHandler.getUUID();\n }", "public TDataObject getBaseDataObject(\n )\n {return baseDataObject;}", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "static String getBasePath(URL url) {\n\t\tString file = url.getFile().replaceAll(\"\\\\*\", \"\");\n\n\t\ttry {\n\t\t\treturn url.getPath().replaceAll(file, \"\");\n\t\t} catch (PatternSyntaxException pe) {\n\t\t\tLOG.error(pe.getMessage());\n\t\t\treturn \"\";\n\t\t}\n\n\t}", "public static String getCaseBase() {\n\t\treturn casebase;\n\t}", "public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n }\n }", "public String getBaseMediaUrl() {\n return (String) get(\"base_media_url\");\n }", "@Nullable\n public String getDn() {\n return dn;\n }", "org.hl7.fhir.String getDeviceIdentifier();", "public int getSueldoBase() {\n return sueldoBase;\n }", "FullUriTemplateString baseUri();", "java.lang.String getUserDN();" ]
[ "0.5899009", "0.55824775", "0.5569004", "0.5565459", "0.5535013", "0.5506784", "0.5459783", "0.5360246", "0.53472376", "0.53447646", "0.5342863", "0.5325474", "0.5303834", "0.52922714", "0.5254994", "0.52484286", "0.5218677", "0.5199465", "0.5199465", "0.5194194", "0.5185596", "0.51557463", "0.51356596", "0.50689757", "0.5027393", "0.49869594", "0.49841622", "0.49621713", "0.495133", "0.4947225", "0.49296927", "0.4913109", "0.49015206", "0.48966026", "0.48749635", "0.4871083", "0.4868113", "0.48526797", "0.48400286", "0.48372295", "0.4832222", "0.48258", "0.48124647", "0.4806708", "0.4772916", "0.47554952", "0.47548595", "0.4750645", "0.4739565", "0.47310606", "0.473012", "0.47177944", "0.46981338", "0.469666", "0.469666", "0.46928126", "0.4691811", "0.46838924", "0.46815124", "0.46683106", "0.4668299", "0.4655942", "0.46538317", "0.46524528", "0.46487093", "0.4639509", "0.4630439", "0.4626556", "0.46093833", "0.4605834", "0.46042848", "0.45986143", "0.4586433", "0.4573734", "0.4572379", "0.45683846", "0.45610496", "0.45602378", "0.45547184", "0.4554228", "0.45528322", "0.45528322", "0.45495135", "0.45474967", "0.45404226", "0.4538317", "0.45252687", "0.45122236", "0.4503388", "0.45009264", "0.4498001", "0.44821206", "0.44814703", "0.44735208", "0.44660985", "0.44594514", "0.44573972", "0.4456879", "0.44557014", "0.4451655" ]
0.5187847
20
Set the base DID of the DIDURL object.
protected void setDid(DID did) { this.did = did; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setBaseUri(String baseUri);", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public void setBase(LocatorIF base_address) {\n this.base_address = base_address;\n }", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "public void setBaseAddress(String base_address) {\n try {\n this.base_address = new URILocator(base_address);\n } catch (MalformedURLException e) {\n throw new OntopiaRuntimeException(e);\n }\n }", "public void setBaseId(String baseId) {\n this.baseId = baseId;\n }", "public void setBaseURL(String val) {\n\n\t\tbaseURL = val;\n\n\t}", "public void setCodebase(URL _codebase) {\r\n\t\tcodebase = _codebase;\r\n\t}", "public void setCodebase(final String codebase) {\n this.codebase = codebase;\n if(this.codebase!=null) {\n if(!this.codebase.endsWith(\"/\"))\n this.codebase = this.codebase+\"/\";\n }\n }", "public Builder setBaseDirectoryName(String val) {\n mBaseDirectoryName = val;\n return this;\n }", "public static void SetBaseAddress(String baseAddress) {\n\t\t// Load Projects Settings XML file\n\t\tDocument doc = Utilities.LoadDocumentFromFilePath(IDE.projectFolderPath + \"\\\\ProjectSettings.xml\");\n\t\t// Get the <root> element of the Document\n\t\torg.w3c.dom.Element root = doc.getDocumentElement();\n\t\t// Remove previous entry\n\t\tNode previousBaseAddress = null;\n\t\ttry {\n\t\t\tpreviousBaseAddress = root.getElementsByTagName(\"baseAddress\").item(0);\n\t\t}\n\t\tcatch (Exception ex) { /* do nothing */ }\n\t\tif (previousBaseAddress != null) {\n\t\t\troot.removeChild(previousBaseAddress);\n\t\t}\n\t\t// Create a child node for <baseAddress value=\"{baseAddress}\">\n\t\torg.w3c.dom.Element baseAddressNode = doc.createElement(\"baseAddress\");\n\t\tbaseAddressNode.setAttribute(\"value\", baseAddress);\n\t root.appendChild(baseAddressNode);\n\t // Save document to disk\n\t Utilities.writeDocumentToFile(doc, new File(IDE.projectFolderPath + \"\\\\ProjectSettings.xml\"));\n\t}", "public void setBasePath(final String value)\n {\n basePath = value;\n }", "public void setBasedir(String baseD) throws BuildException {\n setBaseDir(new File(baseD));\n }", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "public void setBaseId(Long baseId) {\n this.baseId = baseId;\n }", "public void setBaseAddress(int targetAddress, int baseAddress);", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "public void setBase(boolean base)\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(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.setBooleanValue(base);\r\n }\r\n }", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public void setDescriptorBase(Ed descriptorBase) {\n\n this.descriptorBase = descriptorBase;\n //Se descriptorBase existe, atribui este como seu parente\n// if(this.descriptorBase != null)\n// this.descriptorBase.setParent(this);\n }", "public URL makeBase(URL startingURL);", "public Builder setDid(String did) {\n\t\t\treturn setDid(DID.valueOf(did));\n\t\t}", "public void setBase(double base) {\n\t\tthis.base = base;\n\t}", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public void setBaseURL(final String url) {\r\n String location = url;\r\n //-- remove filename if necessary:\r\n if (location != null) { \r\n int idx = location.lastIndexOf('/');\r\n if (idx < 0) idx = location.lastIndexOf('\\\\');\r\n if (idx >= 0) {\r\n int extIdx = location.indexOf('.', idx);\r\n if (extIdx > 0) {\r\n location = location.substring(0, idx);\r\n }\r\n }\r\n }\r\n \r\n try {\r\n _resolver.setBaseURL(new URL(location));\r\n } catch (MalformedURLException except) {\r\n // try to parse the url as an absolute path\r\n try {\r\n LOG.info(Messages.format(\"mapping.wrongURL\", location));\r\n _resolver.setBaseURL(new URL(\"file\", null, location));\r\n } catch (MalformedURLException except2) { }\r\n }\r\n }", "public void setDocumentoBase(DocumentoBase documentoBase)\r\n/* 135: */ {\r\n/* 136:158 */ this.documentoBase = documentoBase;\r\n/* 137: */ }", "public void changeToBaseOne() {\r\n\t\tthis.numberBase = 1;\r\n\t}", "public void setBase(Integer base);", "public void xsetBase(org.apache.xmlbeans.XmlBoolean base)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.set(base);\r\n }\r\n }", "public RestAPI setBaseURL(String url) throws APIException {\n\t\tthis.url = url;\n\t\tcheckBaseURL();\n\n\t\treturn this;\n\t}", "public static void setBaseURL() {\n\n\t\tRestAssured.baseURI = DataReader.dataReader(\"baseURL\");\n\t}", "public void setHyperlinkBase(String hyperlinkBase)\r\n {\r\n m_hyperlinkBase = hyperlinkBase;\r\n }", "public Builder setUserDNBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userDN_ = value;\n\n return this;\n }", "public void setBaseNumber(int baseNumber) {\r\n\t\tthis.baseNumber = baseNumber;\r\n\t}", "public void setBasedir( String basedir )\n {\n setBasedir( new File( basedir.replace( '/', File.separatorChar ).replace( '\\\\', File.separatorChar ) ) );\n }", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public void setBaseUrl(final String baseUrl) {\n this.baseUrl = baseUrl;\n }", "public void setFilebase(final Address address) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setFileBase(new CAddress(address.toLong()));\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n throw new CouldntSaveDataException(e);\n }\n }", "public void setBaseUrl(java.lang.String mBaseUrl) {\n bugQuery.setBaseUrl(mBaseUrl);\n }", "public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }", "public Builder setUserDN(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userDN_ = value;\n\n return this;\n }", "public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}", "public Builder setBaseDirectoryPath(File val) {\n mBaseDirectoryPath = val;\n return this;\n }", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public void setRequiredBase(int value) {\n this.requiredBase = value;\n }", "public void setImagebase(final Address address) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setImageBase(new CAddress(address.toLong()));\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n throw new CouldntSaveDataException(e);\n }\n }", "public void setBaseInfo(BaseInfo baseInfo) {\n this.baseInfo = baseInfo;\n }", "public void setProxyBaseUrl(String baseURL) {\n this.proxyBaseUrl = baseURL;\n }", "public void setEndpoint(org.hl7.fhir.Uri endpoint)\n {\n generatedSetterHelperImpl(endpoint, ENDPOINT$8, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public void setBaseName(String baseName) {\n this.baseName = baseName == null ? null : baseName.trim();\n }", "IParser setServerBaseUrl(String theUrl);", "public java.lang.String getDID() {\r\n return DID;\r\n }", "public void setBaseUrl(String baseUrl) {\n this.baseUrl = baseUrl;\n }", "public void setShBaseURL(String val) {\n\n\t\tshBaseURL = val;\n\n\t}", "@java.lang.SuppressWarnings(\"all\")\n\t@javax.annotation.Generated(\"lombok\")\n\tpublic void setCoinbase(final String coinbase) {\n\t\tthis.coinbase = coinbase;\n\t}", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setBASECURRENCYID(java.lang.Long value) {\n validate(fields()[2], value);\n this.BASE_CURRENCY_ID = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public void setBase(double baseWidth, double baseLength) {\n setBaseWidth(baseWidth);\n setBaseLength(baseLength);\n }", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public void setBaseLength(double baseLength) {\n this.baseLength = baseLength;\n }", "public com.autodesk.ws.avro.Call.Builder setTargetObjectUri(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.target_object_uri = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "public String getBaseId() {\n return baseId;\n }", "@ZAttr(id=775)\n public void setDomainAliasTargetId(String zimbraDomainAliasTargetId) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainAliasTargetId, zimbraDomainAliasTargetId);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setIdDireccion(String idDireccion) {\r\n\t\tthis.idDireccion = idDireccion;\r\n\t}", "public void setDPURL(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPURL)));\n\t\tthis.m_sDPURL=value;\n\t}", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public void setDerivedFrom(String derivedFrom)\n {\n this.derivedFrom = derivedFrom;\n }", "public void setDeviceName(String dn) {\r\n \tthis.deviceName = dn;\r\n }", "void setForPersistentMapping_BaseType(Type baseType) {\n this.baseType = baseType;\n }", "public void unsetBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(BASE$18);\r\n }\r\n }", "public void setBaseContract(String baseContract) {\n this.baseContract = baseContract;\n }", "@ZAttr(id=44)\n public void setAuthLdapBindDn(String zimbraAuthLdapBindDn) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraAuthLdapBindDn, zimbraAuthLdapBindDn);\n getProvisioning().modifyAttrs(this, attrs);\n }", "@Override\n\tpublic void setEndPoint(Point endPoint) {\n\t\tthis.endPoint=endPoint;\n\t}", "public void prefix( String base ) {\r\n\t\tthis.prefix = base;\r\n\t\ts.prefix( base );\r\n\t}", "public String getBaseURL() {\n return baseURL;\n }", "public String getBaseURL() {\n return baseURL;\n }", "public void set_addr(int value) {\n setUIntElement(offsetBits_addr(), 16, value);\n }", "public void setPersonURI(String PersonURI) {\n\t\tthis.personURI = PersonURI;\n\t\tif(PersonURI.contains(\"#\"))\n\t\t\tthis.personURI = \":\" + PersonURI.substring(PersonURI.indexOf(\"#\")+1);\n\t}", "public void setBaseRepositoryUrl(String baseRepositoryUrl) {\n\t\tthis.baseRepositoryUrl = baseRepositoryUrl;\n\t}", "private void setDirInternal(File dir) {\n if (dir == null) {\n baseDir = null;\n return;\n }\n\n ReplicaDirInfo dirInfo = parseBaseDir(dir, getBlockId());\n this.hasSubdirs = dirInfo.hasSubidrs;\n\n synchronized (internedBaseDirs) {\n if (!internedBaseDirs.containsKey(dirInfo.baseDirPath)) {\n // Create a new String path of this file and make a brand new File object\n // to guarantee we drop the reference to the underlying char[] storage.\n File baseDir = new File(dirInfo.baseDirPath);\n internedBaseDirs.put(dirInfo.baseDirPath, baseDir);\n }\n this.baseDir = internedBaseDirs.get(dirInfo.baseDirPath);\n }\n }", "public void setDireccion(String direccion);", "public void setBase(Double x, Double y) {\n\t\tconfig[0] = x;\n\t\tconfig[1] = y;\n\t}", "public void setBaseDir(File baseDir) throws BuildException {\n baseDir = FILE_UTILS.normalize(baseDir.getAbsolutePath());\n if (!baseDir.exists()) {\n throw new BuildException(\"Basedir \" + baseDir.getAbsolutePath()\n + \" does not exist\");\n }\n if (!baseDir.isDirectory()) {\n throw new BuildException(\"Basedir \" + baseDir.getAbsolutePath()\n + \" is not a directory\");\n }\n this.baseDir = baseDir;\n setPropertyInternal(\"basedir\", this.baseDir.getPath());\n String msg = \"Project base dir set to: \" + this.baseDir;\n log(msg, MSG_VERBOSE);\n }", "@Override\n\tpublic String beforeSetting(String acronym) {\n\t\tacronym = this.upperCaseModifier.beforeSetting(acronym);\n\t\t\n\t\treturn idService.getUriForAcronym(acronym);\n\t}", "public static void setCoreId(ExtendedRecord er, ALATaxonRecord tr) {\n Optional.ofNullable(er.getCoreId()).ifPresent(tr::setCoreId);\n }", "public void setBaseMP5(int baseMP5)\r\n {\r\n this.mBaseMP5 = baseMP5;\r\n }", "public Builder setBaseTable(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public void setISBN(String uniqueID) {\r\n super.setUniqueID(uniqueID);\r\n }", "public void setTableBase(Double tableBase) {\r\n this.tableBase = tableBase;\r\n }", "public TestState baseUrl(String baseUrl) {\n this.baseUrl = baseUrl;\n return this;\n }", "@Override\n\tpublic void set(SocketAddress v) {\n\t\tsuper.set(Objects.requireNonNull(v));\n\t}", "public String getBaseURL() {\n\n\t\treturn baseURL;\n\n\t}", "public void setStd_Base (String Std_Base);", "public void setDN(java.lang.String DN) {\n this.DN = DN;\n }", "public void setUpdipaddr(String updipaddr) {\r\n this.updipaddr = updipaddr;\r\n }", "public void setSynBaseUrl(String synBaseUrl) {\r\n \tthis.synBaseUrl = synBaseUrl;\r\n }", "public void setSpriteBase(SpriteBase spriteBase) {\n this.spriteBase = spriteBase;\n }" ]
[ "0.58695024", "0.5861819", "0.582321", "0.5793527", "0.57680756", "0.567124", "0.5608456", "0.554603", "0.5503427", "0.53712887", "0.5355589", "0.5325972", "0.5307659", "0.53070116", "0.5294385", "0.5276132", "0.52573013", "0.52043855", "0.52025664", "0.5192689", "0.5126668", "0.5110106", "0.510749", "0.51008487", "0.5051344", "0.50116706", "0.500151", "0.49838528", "0.49697375", "0.49661872", "0.49315196", "0.49262866", "0.49049792", "0.4879086", "0.48640928", "0.48547912", "0.48534644", "0.4853383", "0.4846084", "0.4818043", "0.48066166", "0.47562772", "0.47004554", "0.46784127", "0.46715367", "0.46669286", "0.4649181", "0.46468908", "0.4643138", "0.46426967", "0.4633738", "0.4629079", "0.45982862", "0.45820153", "0.455662", "0.4555162", "0.45494986", "0.45395803", "0.45286205", "0.45097515", "0.45093432", "0.44982907", "0.44646057", "0.44633436", "0.44615152", "0.44582954", "0.4440805", "0.44363877", "0.44219258", "0.44199774", "0.44157308", "0.44097996", "0.4399112", "0.43876007", "0.437456", "0.43671232", "0.43652987", "0.43628615", "0.43628615", "0.43628544", "0.4361882", "0.43565947", "0.43454087", "0.4342105", "0.43404916", "0.43326858", "0.4324106", "0.431251", "0.43034548", "0.43020937", "0.43016836", "0.42971292", "0.42824098", "0.42813435", "0.42812413", "0.42807996", "0.42744824", "0.42680153", "0.42599016", "0.4253399" ]
0.5516858
8
Get the decoded path component of this DIDURL.
public String getPath() { return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEncodedPath() {\n return getEncodedPath(false);\n }", "@Override\r\n public String getPathDecoded() throws FileSystemException {\r\n if (decodedAbsPath == null) {\r\n decodedAbsPath = UriParser.decode(getPath());\r\n }\r\n\r\n return decodedAbsPath;\r\n }", "public abstract String getPath(boolean urlEncode, boolean includeOwner) throws\n\t\t\tUnsupportedEncodingException;", "public String get() {\n final String[] parts = this.origin.string().replaceAll(\"/$\", \"\").split(\"/\");\n return parts[parts.length - 1];\n }", "Uri decryptedPath();", "public static String decodePath(String href) {\r\n\t\t// For IPv6\r\n\t\thref = href.replace(\"[\", \"%5B\").replace(\"]\", \"%5D\");\r\n\r\n\t\t// Seems that some client apps send spaces.. maybe..\r\n\t\thref = href.replace(\" \", \"%20\");\r\n\t\ttry {\r\n\t\t\tif (href.startsWith(\"/\")) {\r\n\t\t\t\tURI uri = new URI(\"http://anything.com\" + href);\r\n\t\t\t\treturn uri.getPath();\r\n\t\t\t} else {\r\n\t\t\t\tURI uri = new URI(\"http://anything.com/\" + href);\r\n\t\t\t\tString s = uri.getPath();\r\n\t\t\t\treturn s.substring(1);\r\n\t\t\t}\r\n\t\t} catch (URISyntaxException ex) {\r\n\t\t\tthrow new RuntimeException(ex);\r\n\t\t}\r\n\t}", "public static String decodePath(String href) {\r\n // For IPv6\r\n href = href.replace(\"[\", \"%5B\").replace(\"]\", \"%5D\");\r\n\r\n // Seems that some client apps send spaces.. maybe..\r\n href = href.replace(\" \", \"%20\");\r\n // ok, this is milton's bad. Older versions don't encode curly braces\r\n href = href.replace(\"{\", \"%7B\").replace(\"}\", \"%7D\");\r\n try {\r\n if (href.startsWith(\"/\")) {\r\n URI uri = new URI(\"http://anything.com\" + href);\r\n return uri.getPath();\r\n } else {\r\n URI uri = new URI(\"http://anything.com/\" + href);\r\n String s = uri.getPath();\r\n return s.substring(1);\r\n }\r\n } catch (URISyntaxException ex) {\r\n throw new RuntimeException(ex);\r\n }\r\n }", "public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "public String getPath() {\n\t\treturn getString(\"path\");\n\t}", "@JsonIgnore\n\tpublic String getAbsoluteURI() {\n\t\treturn path.toUri().toString();\n\t}", "public String getPath()\n\t{\n\t\treturn letter + \":/\";\n\t}", "public String getPath() {\n if (fileType == HTTP) {\n return fileName.substring(0, fileName.lastIndexOf(\"/\"));\n } else {\n return fileName.substring(0, fileName.lastIndexOf(File.separator));\n }\n }", "public String getURI() {\n if (filePath == null) {\n return null;\n }\n int ind = filePath.lastIndexOf(\"/\");\n if (ind != -1) {\n //int ind2 = filePath.substring(0, ind-1).lastIndexOf(\"/\");\n //if (ind2 != -1)\n // return filePath.substring(ind2+1, filePath.length());\n return filePath.substring(ind+1, filePath.length());\n }\n\n return new File(filePath).getName();\n }", "@Override\r\n public String getPath() {\r\n if (VFS.isUriStyle()) {\r\n return absPath + getUriTrailer();\r\n }\r\n return absPath;\r\n }", "java.lang.String getDidUri();", "public static String decodePathVariable(String objectId) {\n if (objectId != null) {\n return objectId.replace(FORWARD_SLASH_ENCODED1, FORWARD_SLASH);\n }\n return objectId;\n }", "public java.lang.String getTargetPath() {\n java.lang.Object ref = targetPath_;\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 targetPath_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getRealPath(String path);", "public final String getPath() {\n\t return m_path;\n\t}", "public String toPathString() {\n return path();\n }", "com.google.protobuf.ByteString\n getDidUriBytes();", "public java.lang.String getTargetPath() {\n java.lang.Object ref = targetPath_;\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 targetPath_ = s;\n return s;\n }\n }", "public String getPath() {\n\n\t\treturn this.path;\n\n\t}", "public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }", "public String getPath() {\n\t\treturn this.path;\n\t}", "Uri encryptedPath();", "protected String path() {\n return path(getName());\n }", "public final String getPath()\n {\n return path;\n }", "public com.google.protobuf.ByteString\n getTargetPathBytes() {\n java.lang.Object ref = targetPath_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n targetPath_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTargetPathBytes() {\n java.lang.Object ref = targetPath_;\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 targetPath_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null || this.getId() == 1)\n {\n buff.insert(0, '/');\n }\n }\n return buff.toString();\n }", "private char[] getPath() {\n\t\treturn null;\n\t}", "String getPath() {\n return this.path;\n }", "public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n }\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getUPath() {\n return uPath;\n }", "public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}", "public String getPath() {\n return this.path;\n }", "private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "public String getPath(){\n\t\t\treturn this.path;\n\t\t}", "@Nullable public String getPath() {\n return path;\n }", "public String getPath();", "public String getPath();", "public String getPath();", "public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }", "String getPath() {\r\n\t\treturn path;\r\n\t}", "public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getAbsPath();", "public String getStringID() {\r\n\t\treturn uri.getPath();\r\n\t}", "public String getPath()\n {\n\n return _path;\n }", "public String getPath() {\r\n return path;\r\n }", "public String getPath() {\r\n return path;\r\n }", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPathName();", "@Nullable String getPath();", "public String getPath() {\r\n\t\t\treturn path;\r\n\t\t}", "String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String decode(String shortUrl) {\n return keyToUrl.get(shortUrl.replace(BASE_HOST, \"\"));\n }", "IPath getPath();", "Path getPath();", "public String getFullPath()\n {\n return( fullPath );\n }", "public Path resolve(String part) {\n return Paths.get(part);\n }", "String getPath() {\n return mPath;\n }", "public String getEncodedNewPagePath() {\r\n \treturn getEncodedPagePath(this.newPagePath);\r\n }", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }" ]
[ "0.7116172", "0.67712176", "0.64210564", "0.64091927", "0.6386332", "0.63755333", "0.6298091", "0.6174265", "0.616515", "0.61621165", "0.6018261", "0.59923923", "0.5964059", "0.5948022", "0.58771867", "0.5845214", "0.5817858", "0.5792533", "0.5746912", "0.5730773", "0.5716261", "0.56823486", "0.567263", "0.5653513", "0.563603", "0.5609058", "0.5596333", "0.5594093", "0.5585106", "0.5578606", "0.5564986", "0.5558577", "0.5557888", "0.5551873", "0.5551219", "0.55510396", "0.55510396", "0.55510396", "0.55510396", "0.55510396", "0.55510396", "0.55510396", "0.55510396", "0.55510396", "0.55510396", "0.55510396", "0.55510396", "0.55510396", "0.55448663", "0.5542731", "0.55345106", "0.5533883", "0.55261606", "0.55261606", "0.55261606", "0.55261606", "0.55261606", "0.55200773", "0.5516033", "0.5509528", "0.5509528", "0.5509528", "0.55045587", "0.5502451", "0.5498158", "0.54907835", "0.54818606", "0.5480692", "0.5479286", "0.5479286", "0.54773366", "0.54773366", "0.54773366", "0.5471729", "0.54715735", "0.5467332", "0.54656756", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5463158", "0.5462885", "0.5461554", "0.5458342", "0.5453004", "0.5444464", "0.5422553", "0.54221386", "0.5421315" ]
0.5491448
65
Get the decoded query component of this DIDURL.
public String getQueryString() { if (query.isEmpty()) return null; if (queryString == null) queryString = mapToString(query, "&"); return queryString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getQuery() {\n java.lang.Object ref = query_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n query_ = s;\n }\n return s;\n }\n }", "public java.lang.String getQuery() {\n java.lang.Object ref = query_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();\n query_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString getQueryBytes() {\n java.lang.Object ref = query_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n query_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString getQueryBytes() {\n java.lang.Object ref = query_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n query_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString getQueryBytes();", "com.google.protobuf.ByteString\n getQueryBytes();", "java.lang.String getQuery();", "java.lang.String getQuery();", "public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }", "public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }", "public java.lang.String getQueryString() {\n return bugQuery.getQueryString();\n }", "public final String getQuery() {\n return this.query;\n }", "public String getQuery() {\n return query;\n }", "public String getQuery() {\r\n return query;\r\n }", "public String getQuery() {\n return _query;\n }", "public String getQuery() {\r\n\t\treturn query;\r\n\t}", "String getQuery();", "com.google.protobuf.ByteString getQueryMessage();", "public String getQuery() {\n return query;\n }", "public String getQuery() {\n return query;\n }", "public String getQuery() {\n return query;\n }", "public String getQuery()\n\t{\n\t\tVRL loc=getLocation();\n\t\t\n\t\tif (loc==null)\n\t\t\treturn null;\n\t\t\n\t\treturn loc.getQuery();\n\t}", "com.google.protobuf.ByteString getQueryAddress();", "public String getQuery() {\n return this.query;\n }", "public String getQueryString() {\n return _query;\n }", "public java.lang.String getQuery() {\r\n return query;\r\n }", "@JsonIgnore\n public String getQuery() {\n return _query;\n }", "public com.google.protobuf.ByteString getQueryAddress() {\n return queryAddress_;\n }", "public java.lang.CharSequence getQuery() {\n return query;\n }", "public com.google.protobuf.ByteString getQueryAddress() {\n return queryAddress_;\n }", "public java.lang.CharSequence getQuery() {\n return query;\n }", "private String getQueryStringFromParser() {\n return (getString() == null) ? \"\" : getString();\n }", "public String getQueryRequest()\n {\n return m_queryRequest;\n }", "public java.lang.String getQuery()\n {\n return this.query;\n }", "com.google.protobuf.ByteString\n getQueryIdBytes();", "public com.google.protobuf.ByteString getQueryMessage() {\n return queryMessage_;\n }", "public com.google.protobuf.ByteString getQueryMessage() {\n return queryMessage_;\n }", "public String getQuery(){\n return this.query;\n }", "public String getQueryString() {\n return queryString;\n }", "public String query() {\n return this.query;\n }", "@Override\n public String getQueryString() {\n return queryString;\n }", "public String getQueryString() {\n\t\treturn queryString;\n\t}", "@NonNull\n public String getQuery() {\n return searchView.getQuery().toString();\n }", "com.google.protobuf.ByteString getQueryNameBytes();", "String getQueryString ();", "public static String decodeQueryValue(String query) {\n String retString;\n\n retString = replaceString(query, \"%25\", \"%\");\n retString = replaceString(retString, \"%20\", \" \");\n retString = replaceString(retString, \"%26\", \"&\");\n retString = replaceString(retString, \"%3F\", \"?\");\n retString = replaceString(retString, \"%3D\", \"=\");\n return retString;\n }", "public java.lang.String getQueryName() {\n java.lang.Object ref = queryName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n queryName_ = s;\n }\n return s;\n }\n }", "public String toQueryUrl() {\n StringBuilder urlBuilder = new StringBuilder();\n Set<Map.Entry<String, Object>> entrySet = params.entrySet();\n int i = entrySet.size();\n for (Map.Entry<String, Object> entry : entrySet) {\n try {\n if (null != entry.getValue()) {\n urlBuilder.append(entry.getKey()).append('=')\n .append(URLEncoder.encode(String.valueOf(entry.getValue()), DEFAULT_ENC));\n if (i > 1) {\n urlBuilder.append('&');\n }\n }\n i--;\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n \n return urlBuilder.toString();\n }", "public String getQueryString() {\n return m_queryString;\n }", "com.cmpe275.grpcComm.QueryParams getQueryParams();", "public String getQueryParameter(){\n return this.queryParameter;\n }", "public org.hl7.rim.QuerySpec getQuerySpec() {\n return _querySpec;\n }", "@Override\n\t\tpublic String getQueryString() {\n\t\t\treturn null;\n\t\t}", "public Map<String, String> getQuery() {\n\t\treturn Collections.unmodifiableMap(query);\n\t}", "public java.lang.String getQueryName() {\n java.lang.Object ref = queryName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();\n queryName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getQueryString(){\n return this.queryString;\n }", "@NonNull\n public String getQueryParameters() throws UnsupportedEncodingException {\n return getPostDataString(Collections.singletonList(\"alt\"), Collections.singletonList(\"media\"), true);\n }", "String getQuery() throws RemoteException;", "com.google.protobuf.ByteString getQueryZone();", "java.lang.String getQueryId();", "public String getQueryParamsAsString() {\n\t\tStringBuffer params = new StringBuffer(30);\n\t\tString key, value;\n\t\tfor (Iterator it = validQueryParams.keySet().iterator(); it.hasNext();) {\n\t\t\tkey = (String) it.next();\n\t\t\tvalue = (String) validQueryParams.get(key);\n\t\t\tparams.append(key).append(\"=\").append(value);\n//\t\t\tif (it.hasNext()) {\n\t\t\t\tparams.append(\"&\");\n//\t\t\t}\n\t\t}\n\t\t// add extral value(used in web page)\n\t\tparams.append(\"hasQueried=true\");\n\t\treturn params.toString();\n\t}", "protected String getQuery(String query) {\r\n\t\treturn query;\r\n\t}", "public com.google.protobuf.ByteString getQueryNameBytes() {\n java.lang.Object ref = queryName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n queryName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString getQueryNameBytes() {\n java.lang.Object ref = queryName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n queryName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@DISPID(1097) //= 0x449. The runtime will prefer the VTID if present\n @VTID(20)\n java.lang.String urlUnencoded();", "public java.lang.String getQ() {\n java.lang.Object ref = q_;\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 q_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getUnspecified(final String query) {\n try {\n String url = getApiUrl(\"\");\n return url + URLEncoder.encode(query, \"utf-8\") + \"&Key=\" + ACCESS_KEY;\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n return null;\n }\n }", "public ws.cl.gov.fonasa.certificadorprevisional.QueryTO getQueryTO() {\n return queryTO;\n }", "@java.lang.Override\n public java.lang.String getQ() {\n java.lang.Object ref = q_;\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 q_ = s;\n return s;\n }\n }", "public String customQueryString() {\n return this.customQueryString;\n }", "IQuery getQuery();", "public String createQueryString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tSet<Map.Entry<String, Object>> set = queryParams.entrySet();\r\n\t\tEnumeration<Map.Entry<String, Object>> en = Collections.enumeration(set);\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (en.hasMoreElements())\r\n\t\t\t{\r\n\t\t\t\tMap.Entry<String, Object> entry = en.nextElement();\r\n\t\t\t\tString key = entry.getKey();\r\n\t\t\t\tObject val = entry.getValue();\r\n\t\t\t\tif (val instanceof String)\r\n\t\t\t\t{\r\n\t\t\t\t\tString s = null;\r\n\t\t\t\t\ts = (String) val;\r\n\t\t\t\t\ts = URLEncoder.encode(s, \"US-ASCII\");\r\n\t\t\t\t\tsb.append(\"&\").append(key).append(\"=\").append(s);\r\n\t\t\t\t}\r\n\t\t\t\telse if (val instanceof String[])\r\n\t\t\t\t\tsb.append(\"&\").append(getNameValueString(key, (String[]) val));\r\n\t\t\t}\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\r\n\t\treturn sb.substring(1);\r\n\t}", "public String queryId() {\n return queryId;\n }", "String query();", "public Integer getQuery() {\n return this.query;\n }", "java.lang.String getQueryName();", "com.cmpe275.grpcComm.QueryParamsOrBuilder getQueryParamsOrBuilder();", "public String getQueryString() {\n if (CoreUtil.isEmpty(sql)) {\n return \"\";\n }\n if(bind == null) {\n return sql;\n }\n StringBuilder buf = new StringBuilder();\n StringTokenizer tok = new StringTokenizer(sql + \" \", \"?\");\n int x = 0;\n while (tok.hasMoreTokens()) {\n String oneChunk = tok.nextToken();\n buf.append(oneChunk);\n Object value = null;\n if(x < bind.length) {\n value = bind[x];\n if(value instanceof java.util.Date) {\n value = \"'\"+CoreUtil.formatDateTime(\"yyyy.MM.dd\", (java.util.Date)value)+\"'\";\n }else if(value instanceof java.sql.Date) {\n value = \"'\"+CoreUtil.formatDateTime(\"yyyy.MM.dd\", (java.sql.Date)value)+\"'\";\n }else if(value instanceof String) {\n value = \"'\"+value+\"'\";\n }\n buf.append(value);\n }\n x++;\n }\n return buf.toString().trim();\n }", "public com.google.protobuf.ByteString getQueryZone() {\n return queryZone_;\n }", "public com.google.protobuf.ByteString getQueryZone() {\n return queryZone_;\n }", "public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser);", "protected String getQueryIdentifier() {\n \t\treturn null;\n \t}", "public static String getRawQuery(String uri) {\n return createUri(uri).getRawQuery();\n }", "String getQueryRequestUrl();", "public String query() {\n return this.innerProperties() == null ? null : this.innerProperties().query();\n }", "public Query getQuery()\n {\n return query;\n }", "public com.google.protobuf.ByteString\n getQBytes() {\n java.lang.Object ref = q_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n q_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getEncodedPath() {\n return getEncodedPath(false);\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getQBytes() {\n java.lang.Object ref = q_;\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 q_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getQueryId()\n {\n\n return (this.id & 0xFFFF);\n }", "public String getQueriedJMBAG() {\n if (!isDirectQuery()) {\n throw new IllegalStateException(\"Query type is not direct.\");\n }\n\n return query.get(0).getStringLiteral();\n }", "private String getQuery(List<NameValuePair> params) throws UnsupportedEncodingException\n {\n StringBuilder result = new StringBuilder();\n boolean first = true;\n\n for (NameValuePair pair : params)\n {\n if (first)\n first = false;\n else\n result.append(\"&\");\n\n result.append(URLEncoder.encode(pair.getName(), \"UTF-8\"));\n result.append(\"=\");\n result.append(URLEncoder.encode(pair.getValue(), \"UTF-8\"));\n }\n\n return result.toString();\n }", "public AddressQuery getAddressQueryFrame() {\r\n return addressQueryFrame;\r\n }", "public Query getQuery ()\n {\n\n\treturn this.q;\n\n }", "String getBarcharDataQuery();", "T getQueryInfo();", "public String decode(String shortUrl) {\n return mapper.get(shortUrl); \n }", "public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {\n if (queryIdBuilder_ == null) {\n return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;\n } else {\n return queryIdBuilder_.getMessage();\n }\n }", "public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() {\n if (queryIdBuilder_ == null) {\n return queryId_ == null ? org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance() : queryId_;\n } else {\n return queryIdBuilder_.getMessage();\n }\n }", "public String getDecoded()\n\t{\n\t\treturn this.decodedText;\n\t}" ]
[ "0.70136344", "0.69760466", "0.6964511", "0.6930095", "0.6728501", "0.6517513", "0.6415172", "0.6415172", "0.6364842", "0.6364842", "0.6243974", "0.6219238", "0.61666435", "0.6164829", "0.61391836", "0.613875", "0.6128647", "0.6121898", "0.61176205", "0.61176205", "0.61176205", "0.60686034", "0.60581625", "0.60545164", "0.6042734", "0.6031164", "0.5977588", "0.5970531", "0.5944283", "0.59402746", "0.5912416", "0.59077424", "0.5905431", "0.5892768", "0.5828947", "0.57967955", "0.5779631", "0.5739061", "0.5680587", "0.56542367", "0.56537074", "0.55928123", "0.557585", "0.5568691", "0.55622", "0.5548742", "0.55418915", "0.55349237", "0.54989946", "0.54682744", "0.5462473", "0.5434108", "0.5421083", "0.5419157", "0.5400759", "0.5374537", "0.5369838", "0.53618956", "0.5339621", "0.5324512", "0.53191847", "0.53142357", "0.5300275", "0.5294614", "0.52791554", "0.5244918", "0.523829", "0.52009416", "0.5168798", "0.51526415", "0.5144749", "0.5141683", "0.51156247", "0.5106085", "0.5105809", "0.51044303", "0.510126", "0.5067431", "0.5059018", "0.5052331", "0.5035129", "0.49976036", "0.4990817", "0.49895602", "0.49842483", "0.49831143", "0.49616215", "0.4955437", "0.4933996", "0.49316514", "0.4920717", "0.49158153", "0.48952168", "0.4885275", "0.4872769", "0.48701638", "0.48398054", "0.48337576", "0.48337576", "0.48282236" ]
0.595842
28
Get the query component of this DIDURL as a map.
public Map<String, String> getQuery() { return Collections.unmodifiableMap(query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map getQueryParameterMap() {\n return queryParams;\n }", "public Map<String, Object> getParameterMap() {\n\t\treturn queryParameters;\n\t}", "public Map getQueryParameterMap(PortletWindow window) {\n return queryParams;\n }", "public static Map<String, String> getQueryMap(String query) { \n Map<String, String> qmap = new HashMap<String, String>(); \n if (StringUtils.isEmpty(query)) {\n return qmap;\n }\n String[] params = query.split(\"&\"); \n for (String param : params) {\n String[] pair = param.split(\"=\");\n String name = pair[0];\n String value = \"\";\n if (pair.length > 1) {\n value = StringUtil.urlDecode(pair[1]);\n }\n qmap.put(name, value); \n } \n return qmap; \n }", "public Map<String, DataModel> getQuery() {\n if (queries == null) {\n queries = FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<String, DataModel>() {\n @Override\n public DataModel get(Object key) {\n try {\n final FxResultSet result = EJBLookup.getSearchEngine().search((String) key, 0, -1, null);\n return new FxResultSetDataModel(result);\n } catch (FxApplicationException e) {\n throw e.asRuntimeException();\n }\n }\n }, true);\n }\n return queries;\n }", "public Map getNamedQueryParams() {\n\t\treturn namedQueryParams;\n\t}", "Map<UrlParameterName, List<String>> urlParameters() {\n return this.url().query().parameters();\n }", "public static Map<String, String> queryToMap(String query){\n Map<String, String> result = new HashMap<String, String>();\n for (String param : query.split(\"&\")) {\n String pair[] = param.split(\"=\");\n if (pair.length>1) {\n result.put(pair[0], pair[1]);\n }else{\n result.put(pair[0], \"\");\n }\n }\n return result;\n }", "@Override\r\n public MultivaluedMap<String, String> getQueryParameters() {\n return queryParameters;\r\n }", "public Map<String, String> getInitialQuery() {\n return mInitialQuery;\n }", "public static Map<String, String> queryToMap(String query) {\n\t\tMap<String, String> result = new HashMap<String, String>();\n\t\tfor (String param : query.split(\"&\")) {\n\t\t\tString pair[] = param.split(\"=\");\n\t\t\tif (pair.length > 1) {\n\t\t\t\tresult.put(pair[0], pair[1]);\n\t\t\t} else {\n\t\t\t\tresult.put(pair[0], \"\");\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static Map<String, String> queryToMap(String query) {\n\t\tMap<String, String> result = new HashMap<String, String>();\n\t\tfor (String param : query.split(\"&\")) {\n\t\t\tString pair[] = param.split(\"=\");\n\t\t\tif (pair.length > 1) {\n\t\t\t\tresult.put(pair[0], pair[1]);\n\t\t\t} else {\n\t\t\t\tresult.put(pair[0], \"\");\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static Map<String, String> getQueryMapFromUrl(String url) { \n URL theUrl;\n try {\n theUrl = new URL(url);\n } catch (MalformedURLException e) {\n return new HashMap<String, String>();\n }\n \n return getQueryMap(theUrl.getQuery());\n }", "public Map getMQLMap(){\n\t\treturn this.mql_map;\n\t}", "com.cmpe275.grpcComm.QueryParams getQueryParams();", "public Map<String, String> getQueryParams(QueryInfo queryInfo) {\n Map<String, String> queryParams = super.getQueryParams(queryInfo);\n String str = queryParams.get(\"query\");\n if (!TextUtils.isEmpty(str)) {\n String queryExtras = SearchConfig.get().getSuggestionConfig().getQueryExtras(str);\n if (!TextUtils.isEmpty(queryExtras)) {\n queryParams.put(\"extraInfo\", queryExtras);\n Log.d(\"SearchSource\", \"On append extra [%s] to query [%s]\", queryExtras, str);\n }\n }\n queryParams.remove(\"enableShortcut\");\n return queryParams;\n }", "public static Map<String, String> getQueryMap(String query) throws UnsupportedEncodingException\n {\n String[] params = query.split(\"&\");\n Map<String, String> map = new HashMap<String, String>(params.length);\n for (String param : params)\n {\n String[] keyValue = param.split(\"=\");\n map.put(keyValue[0], URLDecoder.decode(keyValue[1], \"UTF-8\"));\n }\n return map;\n }", "com.google.protobuf.ByteString getQueryBytes();", "private HashMap<String,String> createQueryMap() {\n\t\t\n\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\n\t\t// Only include Pages with the CenterNet Event template\n\t\tmap.put(\"type\",\"cq:Page\");\n\t\tmap.put(\"path\", Constants.EVENTS);\n\t\tmap.put(\"property\",\"jcr:content/cq:template\");\n\t map.put(\"property.value\", Constants.EVENT_TEMPLATE);\n\n\t if (tags != null) {\n\t \tmap = addTagFilter(map);\n\t }\n\n\t // Only include Events whose start time is in the future\n\t map.put(\"relativedaterange.property\", PN_QUERY_START_TIME);\n\t map.put(\"relativedaterange.lowerBound\", \"-0d\");\n\t \n\t // Include all hits\n\t //map.put(\"p.limit\", maxNum.toString());\n\t map.put(\"p.limit\", maxNum);\n\t map.put(\"p.guessTotal\", \"true\");\n\t \n\t // Order by Start Time\n\t map.put(\"orderby\", PN_QUERY_START_TIME);\n\t map.put(\"orderby.sort\", \"asc\");\n\t \n\t\treturn map;\n\t\t\n\t}", "Map<String, String> getEndpointMap();", "public Map<String, Object> getInfoMap() {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tthis.putInMap(paramMap);\n\t\treturn paramMap;\n\t}", "public Map<String, Object> getInfoMap()\n {\n Map<String, Object> paramMap = new HashMap<String, Object>();\n this.putInMap(paramMap);\n return paramMap;\n }", "public Map<String, ?> getUrlMap()\r\n/* 27: */ {\r\n/* 28: 93 */ return this.urlMap;\r\n/* 29: */ }", "public com.google.protobuf.ByteString getQueryBytes() {\n java.lang.Object ref = query_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n query_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString getQueryBytes() {\n java.lang.Object ref = query_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n query_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getQueryBytes();", "public String getQueryString() {\n\t\tif (query.isEmpty())\n\t\t\treturn null;\n\n\t\tif (queryString == null)\n\t\t\tqueryString = mapToString(query, \"&\");\n\n\t\treturn queryString;\n\t}", "public Map<String, String> params() {\n return Collections.unmodifiableMap(params);\n }", "private static Map<String, String> getQueryParams(final URI uri) {\n final String[] params = uri.getQuery().split(\"&\");\n return new HashMap<String, String>(params.length) {{\n for (String param : params) {\n final String[] kv = param.split(\"=\");\n final String name = kv[0];\n final String value;\n if (kv.length == 2) {\n value = kv[1];\n } else {\n value = \"\";\n }\n\n put(name,\n value);\n }\n }};\n }", "public Map<String, Object> getParams() {\n return params;\n }", "public String getQuery() {\r\n return query;\r\n }", "public Map getParameterMap() {\n return params;\n }", "@Override\r\n public MultivaluedMap<String, String> getQueryParameters(boolean arg0) {\n return queryParameters;\r\n }", "public String getQuery() {\n return query;\n }", "public String getQueryString() {\n return _query;\n }", "public String getQuery() {\n return query;\n }", "public String getQuery() {\n return query;\n }", "public String getQuery() {\n return query;\n }", "public Map<String, List<String>> parameters() {\n return parameters;\n }", "public String getQuery() {\r\n\t\treturn query;\r\n\t}", "public Properties getQueryProperties() {\n\t\treturn queryProperties;\n\t}", "public String getQuery() {\n return _query;\n }", "public Map getParameters()\n\t{\n\t\tMap returnValue = null;\n\n\t\tif (params == null)\n\t\t{\n\t\t\treturnValue = new HashMap();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = params;\n\t\t}\n\n\t\treturn returnValue;\n\t}", "public final String getQuery() {\n return this.query;\n }", "com.cmpe275.grpcComm.QueryParamsOrBuilder getQueryParamsOrBuilder();", "public Map<String, String[]> getParaMap() {\n\t\treturn request.getParameterMap();\n\t}", "public String getQuery() {\n return this.query;\n }", "private Optional<MultiMap> getQueryParams(RoutingContext routingContext,\n HttpServerResponse response) {\n MultiMap queryParams = null;\n try {\n queryParams = MultiMap.caseInsensitiveMultiMap();\n // Internally + sign is dropped and treated as space, replacing + with %2B do the trick\n String uri = routingContext.request().uri().toString().replaceAll(\"\\\\+\", \"%2B\");\n Map<String, List<String>> decodedParams =\n new QueryStringDecoder(uri, HttpConstants.DEFAULT_CHARSET, true, 1024, true).parameters();\n for (Map.Entry<String, List<String>> entry : decodedParams.entrySet()) {\n queryParams.add(entry.getKey(), entry.getValue());\n }\n LOGGER.debug(\"Info: Decoded multimap\");\n } catch (IllegalArgumentException ex) {\n response.putHeader(CONTENT_TYPE, APPLICATION_JSON)\n .setStatusCode(ResponseType.BadRequestData.getCode())\n .end(generateResponse(ResponseType.BadRequestData, MSG_BAD_QUERY).toString());\n\n\n }\n return Optional.of(queryParams);\n }", "java.lang.String getQuery();", "java.lang.String getQuery();", "T getQueryInfo();", "public ArrayList<QueryInfo> getQueryList()\n\t{\n\t\treturn queryList;\n\t}", "com.google.protobuf.ByteString getQueryAddress();", "public Map getParams() {\n\t\treturn _params;\n\t}", "public Map<String, Object> uriToValueMap();", "public String getQueryString() {\n return queryString;\n }", "@Override\n public String getQueryString() {\n return queryString;\n }", "protected Map<String, DataFilter> getFilterMap()\r\n {\r\n return getFilterMap(getQueryableDataTypeKeys());\r\n }", "public com.google.protobuf.ByteString getQueryAddress() {\n return queryAddress_;\n }", "@JsonIgnore\n public String getQuery() {\n return _query;\n }", "public com.google.protobuf.ByteString getQueryAddress() {\n return queryAddress_;\n }", "public String getQueryRequest()\n {\n return m_queryRequest;\n }", "String getQuery();", "public java.util.List<ConnectionQueryStringParameter> getQueryStringParameters() {\n return queryStringParameters;\n }", "private static Map<String, String> parseQueryString(String queryString) throws UnsupportedEncodingException {\n if (queryString == null || queryString.isEmpty()) {\n return Collections.EMPTY_MAP;\n }\n\n String[] queryParams = queryString.split(\"&\");\n Map<String, String> map = new HashMap<>();\n\n for (String queryParam : queryParams) {\n int index = queryParam.indexOf('=');\n String key = queryParam.substring(0, index);\n key = URLDecoder.decode(key, \"UTF-8\");\n\n String value = null;\n\n if (index > 0) {\n value = queryParam.substring(index + 1);\n value = URLDecoder.decode(value, \"UTF-8\");\n }\n\n map.put(key, value);\n }\n\n return map;\n }", "public java.lang.String getQuery() {\n java.lang.Object ref = query_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n query_ = s;\n }\n return s;\n }\n }", "public Map<String,String[]> getParameterMap() {\n if (isMultipart()) {\n Map parameterMap = new HashMap();\n Enumeration names = this.multipart.getParameterNames();\n \n while (names.hasMoreElements()) {\n String name = (String) names.nextElement();\n parameterMap.put(name, getParameterValues(name));\n }\n \n return parameterMap;\n }\n else {\n return super.getParameterMap();\n }\n }", "public java.lang.String getQuery() {\n java.lang.Object ref = query_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();\n query_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }", "public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }", "public static Map<String, String> getParameters() {\r\n return null;\r\n }", "public java.lang.String getQuery() {\r\n return query;\r\n }", "public MultiValueMap<String, String> getMap() {\r\n\t\tMultiValueMap<String, String> map = new LinkedMultiValueMap<String, String>();\r\n\t\t\r\n\t\tif(this.country != null) \t\tmap.add(\"country\", this.getCountry().getValue());\r\n\t\tif(this.operation != null) \t\tmap.add(\"operation\", this.getOperation().getValue());\r\n\t\tif(this.propertyType != null) \tmap.add(\"propertyType\", this.getPropertyType().getValue());\r\n\t\tif(this.center != null) \t\tmap.add(\"center\", this.getCenter().getCoordinates());\r\n\t\tif(this.locale != null) \t\tmap.add(\"locale\", this.getLocale().getValue());\r\n\t\tif(this.distance != null) \t\tmap.add(\"distance\", this.getDistance().toString());\r\n\t\tif(this.locationId != null) \tmap.add(\"locationId\", this.getLocationId().getValue());\r\n\t\tif(this.maxItems != null) \t\tmap.add(\"maxItems\", this.getMaxItems().toString());\r\n\t\tif(this.numPage != null) \t\tmap.add(\"numPage\", this.getNumPage().toString());\r\n\t\tif(this.maxPrice != null) \t\tmap.add(\"maxPrice\", this.getMaxPrice().toString());\r\n\t\tif(this.sinceDate != null) \t\tmap.add(\"sinceDate\", this.getSinceDate().getValue());\r\n\t\tif(this.order != null) \t\t\tmap.add(\"order\", this.getOrder().getValue());\r\n\t\tif(this.sort != null) \t\t\tmap.add(\"sort\", this.getSort().getValue());\r\n\t\tif(this.adIds != null) {\r\n\t\t\tfor(Integer id: adIds) {\r\n\t\t\t\tmap.add(\"adIds\", id.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.hasMultimedia != null) \tmap.add(\"hasMultimedia\", this.getHasMultimedia().toString());\r\n\t\t\r\n\t\treturn map;\r\n\t}", "public Map<String, String> getData() {\n if (data == null) data = new HashMap<>();\n return data;\n }", "public Map getParameterMap()\r\n {\r\n Map copyMap = new HashMap(this.parameters.size());\r\n copyMap.putAll(this.parameters);\r\n return copyMap;\r\n }", "public String getQueryString() {\n\t\treturn queryString;\n\t}", "public String generateQueryParams() {\n if (petition.getParamsMap().entrySet().size() == 0)\n return \"\";\n else {\n boolean first = true;\n StringBuffer queryParams = new StringBuffer(\"?\");\n Iterator<Map.Entry<String, String>> it = petition.getParamsMap()\n .entrySet().iterator();\n // just iterate the map and fill the httpParams with its content\n while (it.hasNext()) {\n if (!first)\n queryParams.append(\"&\");\n else\n first = false;\n Map.Entry<String, String> e = (Entry<String, String>) it.next();\n String key = URLEncoder.encode(e.getKey());\n String value = URLEncoder.encode(e.getValue());\n queryParams.append(String.format(\"%s=%s\", key, value));\n\n }\n return queryParams.toString();\n }\n }", "public Map<String, String> parameters() {\n return this.parameters;\n }", "String getQueryString ();", "public Map<String, ?> toUri() {\n\t\treturn null;\n\t}", "public java.lang.String getQueryString() {\n return bugQuery.getQueryString();\n }", "public String getQuery(){\n return this.query;\n }", "private Map<String, String> getReportMap(final Map<String, String> request) {\r\n\t\tMap<String, String> reportMap;\r\n\t\treportMap = new LinkedHashMap<String, String>();\r\n\t\treportMap.put(CommonConstants.KEYWORD,\r\n\t\t\t\trequest.get(RequestAttributeConstant.QUERY_SEARCH));\r\n\t\treportMap.put(DomainConstants.REFINEMENT_ID,\r\n\t\t\t\trequest.get(RequestAttributeConstant.REFINEMENT_ID));\r\n\t\treportMap.put(DomainConstants.LIMIT,\r\n\t\t\t\trequest.get(RequestAttributeConstant.LIMIT));\r\n\t\treportMap.put(DomainConstants.OFFSET,\r\n\t\t\t\trequest.get(RequestAttributeConstant.OFFSET));\r\n\t\treturn reportMap;\r\n\t}", "public Map<String, String> getParameters() {\r\n return _parameters;\r\n }", "public Map getValues() {\r\n return this.params;\r\n }", "Map<String, String[]> getParameterMap();", "public String query() {\n return this.query;\n }", "public HashMap<Integer,NeurolexPageId> runSelectQueryBAMS() {\n\t\tString queryString = getComposedQuery();\n\n\t\ttry {\n\t\t\t// URL encode query string\n\t\t\tqueryString = URLEncoder.encode(queryString, \"UTF-8\");\n\n\t\t\t// compose the final URL\n\t\t\tURL sparqlConnection = new URL(this.sparqlEndPointURL + \n\t\t\t\t\t\"?query=\" + queryString);\n\n\t\t\tHttpURLConnection httpConnection = (HttpURLConnection)sparqlConnection.openConnection();\n\t\t\thttpConnection.setRequestProperty(\"accept\", \"application/sparql-results+xml\");\n\t\t\tInputStream queryResult = httpConnection.getInputStream();\n\n\t\t\treturn parseSPARQLResultBAMS(queryResult);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public Map<String, String> splitQuery(URI uri) throws UnsupportedEncodingException {\r\n\t\tfinal Map<String, String> query_pairs = new LinkedHashMap<String, String>();\r\n\r\n\t\ttry {\r\n\t\t\tif (uri.getRawQuery() != null) {\r\n\t\t\t\tfinal String[] pairs = uri.getRawQuery().split(\"&\");\r\n\r\n\t\t\t\tfor (String pair : pairs) {\r\n\t\t\t\t\tfinal int idx = pair.indexOf(\"=\");\r\n\t\t\t\t\tfinal String key = idx > 0 ? URLDecoder.decode(pair.substring(0, idx), \"UTF-8\") : pair;\r\n\t\t\t\t\tfinal String value = idx > 0 && pair.length() > idx + 1 ? URLDecoder.decode(pair.substring(idx + 1), \"UTF-8\") : null;\r\n\t\t\t\t\tquery_pairs.put(key, value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception exc) {\r\n\t\t\tLOGGER.log(Level.SEVERE, \"Expand URI Query failed\", exc);\r\n\t\t}\r\n\r\n\t\treturn query_pairs;\r\n\t}", "@NonNull\n public Map<String, Object> getParameters() {\n return parameters;\n }", "public static Map<String, String> getMapping() {\r\n\t\treturn data.get();\r\n\t}", "@Override\n\tpublic JSONObject query(HashMap<String,Object> map) {\n\t\treturn queryExpress(map);\n\t}", "public Map<String, String> toMap() {\n Map<String, String> result = new HashMap<String, String>();\n if (identifier != null) result.put(\"specidentifier\", identifier);\n result.put(\"specversion\", version.getVersion());\n result.put(\"specuri\", uri);\n return result;\n }", "@Override\n public String toString() {\n if (this.map.getMap().isEmpty()) return \"\";\n final StringBuilder param = new StringBuilder(this.map.getMap().size() * 40);\n for (final Map.Entry<String, String> entry: entrySet()) {\n param.append(MultiProtocolURL.escape(entry.getKey()))\n .append('=')\n .append(MultiProtocolURL.escape(entry.getValue()))\n .append('&');\n }\n param.setLength(param.length() - 1);\n return param.toString();\n }", "public String getQueryParamsAsString() {\n\t\tStringBuffer params = new StringBuffer(30);\n\t\tString key, value;\n\t\tfor (Iterator it = validQueryParams.keySet().iterator(); it.hasNext();) {\n\t\t\tkey = (String) it.next();\n\t\t\tvalue = (String) validQueryParams.get(key);\n\t\t\tparams.append(key).append(\"=\").append(value);\n//\t\t\tif (it.hasNext()) {\n\t\t\t\tparams.append(\"&\");\n//\t\t\t}\n\t\t}\n\t\t// add extral value(used in web page)\n\t\tparams.append(\"hasQueried=true\");\n\t\treturn params.toString();\n\t}", "Map<String, String> getParameters();", "public HashMap getQueries(String code) {\n\t\t// TODO Auto-generated method stub\n\t\tHashMap queriesMap = new HashMap();\n\t\tConnection connection = null;\n\t\ttry {\n\t\t\tconnection = getConnection();\n\t\t\tif (connection != null) {\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement\n\t\t\t\t\t\t.executeQuery(\"SELECT SQL_Code, SQL_Query, SQL_Type FROM dbo.M3Apps_Query\");\n\t\t\t\tString queryCode = null;\n\t\t\t\tString query = null;\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tqueryCode = resultSet.getString(\"SQL_Code\");\n\t\t\t\t\tquery = resultSet.getString(\"SQL_Query\");\n\t\t\t\t\tqueriesMap.put(queryCode, query);\n\t\t\t\t}\n\t\t\t\tresultSet.close();\n\t\t\t\tresultSet = null;\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Error: No active Connection\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tcloseConnection(connection);\n\t\t}\n\t\treturn queriesMap;\n\t}", "public String getQueryString(){\n return this.queryString;\n }", "@UnsupportedAppUsage\n public Map<String, Object> getMap() {\n return this.mMap;\n }", "Map<String, String> findAllInMap();" ]
[ "0.70165515", "0.66128325", "0.6522289", "0.63555187", "0.6176877", "0.61408114", "0.6133714", "0.6015737", "0.600783", "0.598133", "0.59630597", "0.59630597", "0.5918032", "0.5782217", "0.57468456", "0.5744005", "0.5691691", "0.56492347", "0.5604416", "0.5592883", "0.5583384", "0.55555433", "0.5552647", "0.5547772", "0.5544058", "0.55393416", "0.5532318", "0.5514909", "0.55063075", "0.5499413", "0.5448399", "0.5439562", "0.5426579", "0.5422285", "0.54185784", "0.5390361", "0.5390361", "0.5390361", "0.5380069", "0.5377032", "0.5375178", "0.53622955", "0.53350997", "0.5302688", "0.53016067", "0.5292817", "0.5291096", "0.5290781", "0.5274641", "0.5274641", "0.52746105", "0.52666736", "0.5258218", "0.5254794", "0.5252919", "0.52465844", "0.52404255", "0.5222698", "0.5218277", "0.52144885", "0.5210756", "0.520962", "0.51961046", "0.5190807", "0.5188187", "0.51845324", "0.51845324", "0.5174372", "0.51549506", "0.51549506", "0.51464397", "0.5145747", "0.51350415", "0.51303095", "0.5128492", "0.51282555", "0.5122658", "0.5113381", "0.51016915", "0.509278", "0.5091375", "0.5076758", "0.50722474", "0.50653", "0.5064505", "0.5063539", "0.50583035", "0.50576097", "0.5050372", "0.50479805", "0.50454336", "0.50423425", "0.50412863", "0.5040763", "0.50361425", "0.5030685", "0.5011364", "0.5004695", "0.50046545", "0.50032055" ]
0.78342146
0
Get the value of the given query parameter.
public String getQueryParameter(String name) { checkArgument(name != null && !name.isEmpty(), "Invalid parameter name"); return query.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getParameter(String name) {\n String[] values = getParameterValues(name);\n return (values != null) ? values[0] : null;\n }", "public String getParam(String name) {\n // For now, we ignore multiple instances of the same parameter (which is otherwise valid).\n // Also, this is O(n). If it ever becomes important, switch to HashMap<LinkedList>, though\n // order will be lost.\n\n for (NameValuePair pair : queryValues) {\n if (pair.name.equals(name)) {\n return pair.value;\n }\n }\n\n return null;\n }", "Parameter getParameter();", "public String getParameter(String name) {\n String[] values = getParameterValues(name);\n if (values != null && values.length > 0) {\n return values[0];\n }\n else {\n return null;\n }\n }", "public static String getQueryValue(String name) {\n String result = null;\n Map<String, ArrayList<String>> query = getQuery();\n\n if (query != null) {\n result = query.get(name).get(0);\n }\n\n return result;\n }", "Object getParameter(String name);", "String getParameter(String key);", "public String getParameterFromP();", "public String getParameter( String name )\n {\n return getParameter(VAL, name, null, false);\n }", "public String getParamValue(String name) {\n\t\treturn params.get(name);\n\t}", "public Object getParam(String param) {\n\t\treturn applicationParams.get(param);\n\t}", "public String getQueryParameter(){\n return this.queryParameter;\n }", "public String getParameter(String name)\n {\n return parameters.get(name);\n }", "protected String getParameter() {\r\n return this.parameter;\r\n }", "public String getCGIParam(String param) {\n\t\tString retour = cgiParams.get(param);\n\t\tif( param == null || retour == null) {\n\t\t\treturn \"not set\";\n\t\t}\n\t\telse return retour;\n\t}", "public final String getParameter(String name) {\n return getParameter(name, false);\n }", "public String getParameter(String name) {\r\n\t\treturn parameters.get(name);\r\n\t}", "public Object getParam(String key) {\n return getParams().get(key);\n }", "private String getValueFromRequest(String key, HttpServletRequest request) {\n if (!StringUtils.isEmpty(key) && null != request) {\n return request.getParameter(key);\n }\n return null;\n }", "public String getParameterValue(int key){\n return parameters.get(key).value;\n }", "public String getParameter(String name) {\r\n return _parameters.get(name);\r\n }", "public String getParameter(String name) {\n\t\treturn parameters.get(name);\n\t}", "public String getParam(String name) {\n\t\treturn getParam(name, null);\n\t}", "public Object getValue(final String name) {\r\n return this.params.get(name);\r\n }", "public String retrieveParam(String key) {\n return this.argsDict.get(key);\n }", "private String getParameter(String name, HttpServletRequest request) {\r\n String value = request.getParameter(name);\r\n if (value == null || \"\".equals(value)) {\r\n return null;\r\n\r\n } else {\r\n return value;\r\n }\r\n }", "String getParameter(HttpServletRequest request, String name) throws ValidationException;", "public String param() {\n\tif (param_count >= params.size())\n\t return null;\n\treturn (String) params.elementAt(param_count++);\n }", "public Value getValue()\r\n\t{\r\n\t\treturn paramValue;\r\n\t}", "public static String getParam(String key) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return null;\n }\n return cur.get(key);\n }", "public String getParameterString(String key) {\n return this.getParameter(key);\n }", "public String getParameter(String name) throws IOException {\n if(form == null) {\n form = builder.getInstance();\n }\n return form.get(name);\n }", "String getVal();", "protected String getStringParam(HttpServletRequest request, String name) {\r\n String[] p = request.getParameterValues(name);\r\n \r\n if (p == null) {\r\n return null;\r\n } else {\r\n return p[0];\r\n }\r\n }", "public String getParam() {\n return param;\n }", "public String getParam() {\n return param;\n }", "String getValue(String param)\n\t{\n\t\tString value = null;\n\n\t\tif (userSupplied != null && (value = this.userSupplied.get(param)) != null)\n\t\t{\n\t\t\treturn value;\n\t\t}\n\n\t\tElement element = this.parameters.get(param);\n\t\tif (element == null)\n\t\t{\n\t\t\tlog.debug(\"PISE FILE ERROR, expression uses undefined parameter: \" + param);\n\t\t\treturn null;\n\t\t} \n\t\t// When one parameter has an expression that references the value of a disabled parameter\n\t\t// return \"0\" if it's a switch or \"\" for anything else. Similar to what the gui does in\n\t\t// code generator pise2JSP.ftl getValue() function.\n\t\tif (!element.enabled) \n\t\t{\n\t\t\tif (element.type.equals(\"Switch\"))\n\t\t\t{\n\t\t\t\tlog.debug(\"\\tGETVALUE of disabled parameter: \" + param + \" returns '0'\");\n\t\t\t\treturn \"0\";\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlog.debug(\"\\tGETVALUE of disabled parameter: \" + param + \" returns ''\");\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t\treturn element.value;\n\t}", "public Object getParameter(String name) {\n\t\tIterator itr = this.parameters.getInParameters().iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tParameterExtendedImpl param = ((ParameterExtendedImpl)itr.next());\n\t\t\t\n\t\t\tif(param.getName() != null && param.getName().equalsIgnoreCase(name)){\t\t\t\t\n\t\t\t\treturn param.value;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "java.lang.String getSearchValue();", "public Object getParameter(String paramKey)\n\t{\n\t\tObject returnValue = null;\n\n\t\tif (params != null)\n\t\t{\n\t\t\treturnValue = params.get(paramKey);\n\t\t}\n\n\t\treturn returnValue;\n\t}", "public static String getParam(String paramName) {\n \treturn FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(paramName);\n }", "java.lang.String getParameterId();", "public String getParameter(String paramName) {\n Log.v(TAG, \"getParameter\");\n return mActivity.getIntent().getStringExtra(paramName);\n }", "public String getParameter(String pname) {\n\t\treturn getParameter(pname, null);\n\t}", "public Object getParamValue(int i);", "T getOrderedQueryParameterFirstValue();", "String getRequestParam(HttpServletRequest request, String param)\n {\n\t if (request != null) \n { \n\t String paramVal = request.getParameter(param); \n\t\t return paramVal;\n\t }\n\t return null;\n }", "protected Object getSingleValueFromRequest(HttpServletRequest request_p, String strID_p)\r\n {\r\n return request_p.getParameter(strID_p);\r\n }", "protected String getParamFromRequest(HttpServletRequest request, String key) {\n return request.getParameter(key);\n }", "public Value<?> getParameter(String name) {\n\t\tfor (Value<?> parameter : parameters) {\n\t\t\tif (parameter.getName().equals(name)) {\n\t\t\t\treturn parameter;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getParameterValue(String name) {\n\t\treturn _parameters.getParameterValue(name);\n\t}", "public String getParameterFromH();", "public String getThisParameter(String parameterName) {\r\n\t\tlog.debug(\"in GeneListAnalysis.getThisParameter\");\r\n\r\n\t\tParameterValue[] myParameterValues = this.getParameterValues();\r\n\t\t//log.debug(\"parmavalues len = \"+myParameterValues.length);\r\n \tString parameterValue= null;\r\n \tfor (int i=0; i<myParameterValues.length; i++) {\r\n\t\t\tif (myParameterValues[i].getParameter().equals(parameterName)) {\r\n \t\tparameterValue = myParameterValues[i].getValue();\r\n\t\t\t\t//log.debug(\"parameter value = \"+parameterValue);\r\n \t}\r\n \t}\r\n\t\treturn parameterValue;\r\n\t}", "public StringParameter getParameter() {\n return parameter;\n }", "public static String getQueryString(String key) {\n String value = Http.Context.current().request().getQueryString(key);\n if (value != null) {\n value = value.trim();\n }\n return value;\n }", "IParameter getParameter();", "public String getParameter( String parm ) {\n return System.getProperty( parm );\n }", "public String readParameter(String simKey, String paramKey) {\n String query = \"\";\n String returnVal = null;\n try {\n query = \"SELECT param_value FROM simulation_parameters WHERE sim_key= '\" + simKey + \"' AND param_key ='\" +\n paramKey + \"'\";\n ResultSet rs = dbCon.executeQuery(query, this);\n\n if (rs.next()) {\n returnVal = rs.getString(\"param_value\");\n }\n rs.close();\n\n\n } catch (SQLException e) {\n System.err.println(\n this.getClass().getCanonicalName() + \" readParameters: SQL-Error during statement: \" + query);\n e.printStackTrace();\n }\n return returnVal;\n }", "java.lang.String getQuery();", "java.lang.String getQuery();", "public String getParameterValue(String name) {\n\treturn (String) _parameters.get(name);\n }", "public static int getNumber(String query);", "public String getParameterFromX();", "public java.lang.String getSipParamValue() {\r\n return sipParamValue;\r\n }", "public String getParameterValue() {\r\n return parameterValue;\r\n }", "public String getParameterFromR();", "public int get(String parameter, int offset)\n {\n int paramIndex = getAkParamIndex(parameter);\n int i = getAkSettingIndex(paramIndex, offset);\n if (i == -1)\n throw new IllegalArgumentException(\"The parameter and offset combination is not allowed\");\n\n return values_[i];\n }", "String getValue(Key key) {\n return this.parameters.get(key);\n }", "public double getParam(String paramName);", "String getParam( String paraName );", "public static String getParameter( HttpServletRequest request, String paramName ) {\n return getParameter( request, paramName, false );\n }", "public static String getParameter( HttpServletRequest request, String paramName ) {\n return getParameter( request, paramName, false );\n }", "public static String getRequestParameter(String key) {\r\n\t\treturn FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(key);\r\n\t}", "public String getParam() {\n\t\treturn getTextContent(paramElem);\n\t}", "public String getParameter(Parameter p) {\n\t\treturn parameters.get(p);\n\t}", "public String getParam(int index) {\n\t\treturn params.get(index);\n\t}", "public Object getParameter(String name) {\n/* 192 */ Args.notNull(name, \"Parameter name\");\n/* */ \n/* 194 */ Object result = null;\n/* */ \n/* 196 */ if (this.overrideParams != null) {\n/* 197 */ result = this.overrideParams.getParameter(name);\n/* */ }\n/* 199 */ if (result == null && this.requestParams != null) {\n/* 200 */ result = this.requestParams.getParameter(name);\n/* */ }\n/* 202 */ if (result == null && this.clientParams != null) {\n/* 203 */ result = this.clientParams.getParameter(name);\n/* */ }\n/* 205 */ if (result == null && this.applicationParams != null) {\n/* 206 */ result = this.applicationParams.getParameter(name);\n/* */ }\n/* 208 */ return result;\n/* */ }", "java.lang.String getParameterValue();", "@Test\n public void getRequestParam_validParameterName_returnParameterValue() throws Exception {\n when(httpServletRequest.getParameter(\"myKey\")).thenReturn(\"myValue\");\n\n Optional<String> parameter =\n ServletUtils.getRequestParam(httpServletRequest, httpServletResponse, \"myKey\");\n Assert.assertTrue(parameter.isPresent());\n Assert.assertEquals(parameter.get(), \"myValue\");\n }", "String get(Integer key);", "public Object getParam() {\n return param;\n }", "public static String getParam(String key, String dfault) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return dfault;\n }\n return cur.get(key, dfault);\n }", "private String getParameter(HttpServletRequest request, String name, String defaultValue) {\n String value = request.getParameter(name);\n if (value == null) {\n return defaultValue;\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();", "String getQuery();", "public String getValQuery () {\n return valQuery;\n }", "public String getParameter( String name, String default_value )\n {\n return getParameter(VALDEF, name, default_value, false);\n }", "String getQueryString ();", "String getValue(String type, String key);", "public String get(int key) {\n String sql = \"SELECT data_val FROM data_map WHERE data_key = ?\";\n\n String value = null;\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n ResultSet rs = pstmt.executeQuery();\n\n if (!rs.isClosed()) {\n value = rs.getString(\"data_val\");\n rs.close();\n }\n }\n catch (SQLException e) {\n value = null;\n }\n\n return value;\n }", "public Object getParamValue(String label);" ]
[ "0.6634909", "0.6595928", "0.6547249", "0.65016466", "0.6340169", "0.6310827", "0.63004684", "0.62768024", "0.62533015", "0.61884576", "0.6165158", "0.61603934", "0.6078037", "0.60608405", "0.6059686", "0.6026699", "0.59804654", "0.5976574", "0.5969808", "0.59458774", "0.5912774", "0.5900711", "0.5889633", "0.5879281", "0.5860829", "0.5845282", "0.58344746", "0.5832461", "0.5822068", "0.5815482", "0.58138067", "0.5795228", "0.5746691", "0.5736299", "0.57361406", "0.57361406", "0.5720791", "0.5716937", "0.5714901", "0.5709981", "0.57014817", "0.56951517", "0.5670159", "0.56690425", "0.5641257", "0.56056964", "0.55966455", "0.5589548", "0.5588367", "0.5584762", "0.5558424", "0.55467415", "0.55311185", "0.5521312", "0.55189943", "0.5516128", "0.5509269", "0.5502068", "0.5498072", "0.5498072", "0.5496358", "0.54941034", "0.5493794", "0.54919124", "0.5490404", "0.5489702", "0.5485963", "0.5483168", "0.54646534", "0.54633355", "0.5461942", "0.5461942", "0.5461777", "0.54586804", "0.54461896", "0.5444242", "0.5438975", "0.5409686", "0.5409276", "0.5393976", "0.53761697", "0.53709966", "0.5328996", "0.53281444", "0.53281444", "0.53281444", "0.53281444", "0.53281444", "0.53281444", "0.53281444", "0.53281444", "0.53281444", "0.53281444", "0.5313224", "0.5312672", "0.5312393", "0.52989084", "0.5294896", "0.5293151", "0.5275154" ]
0.61555535
12
Check whether the given parameter exists in the query component.
public boolean hasQueryParameter(String name) { checkArgument(name != null && !name.isEmpty(), "Invalid parameter name"); return query.containsKey(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasParam(String name)\r\n {\r\n try {\r\n return lookup.get(name) != null;\r\n } catch(Exception e) {}\r\n \r\n return false;\r\n }", "public boolean hasParam(String paramName);", "private boolean hasParam(SearchCriteria sc, final String param) {\n final Object obj = sc.getParam(param);\n return obj != null && !obj.toString().isEmpty();\n }", "@Override\n\tpublic boolean isHaveParam() {\n\t\treturn param !=null;\n\t}", "public boolean hasParameter(String name) throws IllegalArgumentException {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameter() \");\n Via via=(Via)sipHeader;\n \n if(name == null) throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: null parameter\");\n return via.hasParameter(name);\n }", "public boolean hasParameter(){\n\t\tif (parameterType==null)\n\t\t\treturn false;\n\t\telse{\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean hasParameter(String parameter) {\r\n\t\tString regexp = \".*:\"+parameter+\"\\b.*\";\r\n\t\tfor (String whereCondition : whereConditions) {\r\n\t\t\tif (whereCondition.matches(regexp)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (String havingCondition : havingConditions) {\r\n\t\t\tif (havingCondition.matches(regexp)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean containsTypedParameter(Parameter typedParameter);", "boolean hasParameterValue();", "@Override\n\tpublic boolean hasParameter(String id) {\n\t\treturn false;\n\t}", "public boolean contains(CParamImpl param);", "public boolean hasParameterName()\n {\n return this.paramName != null;\n }", "public boolean containsIndependentParameter(String name);", "boolean hasParameterName();", "public boolean isSetParam() {\n return this.param != null;\n }", "public boolean containsParameter(String userCommand, String parameter) {\n\t\tif (userCommand == null || userCommand.equals(\"\") || parameter == null\n\t\t\t\t|| parameter.equals(\"\")) {\n\t\t\tlogger.log(Level.WARNING, Global.MESSAGE_ILLEGAL_ARGUMENTS);\n\t\t\treturn false;\n\t\t}\n\t\tString userCommandWithoutCommandType = removeCommandType(userCommand);\n\t\tString userCommandWithoutTaskNameAndCommandType = removeTaskName(userCommandWithoutCommandType);\n\n\t\treturn userCommandWithoutTaskNameAndCommandType.matches(\"(?i).*\\\\b\"\n\t\t\t\t+ parameter + \"\\\\b.*\");\n\t}", "boolean hasAdParameter();", "public boolean isParameterProvided();", "public boolean hasStringParam(String paramName);", "boolean hasQueryParams();", "protected abstract boolean isValidParameter(String parameter);", "boolean hasParameters();", "private boolean isServletParam(String name)\n {\n if (name == null)\n return false;\n if (name.startsWith(PARAM_PREFIX))\n return true;\n return false;\n }", "boolean hasSearchValue();", "private boolean paramCanBeInjected(Parameter parameter, Injector injector) {\n\t\treturn parameter.isBound(injector);\n\t}", "boolean hasQuery();", "boolean hasQueryName();", "public boolean isparam(String param, String... pvalues) {\n\t\tif (ArrayUtils.isEmpty(pvalues)) {\n\t\t\treturn getParameter(param) != null;\n\t\t}\n\t\tfor(String value : pvalues) {\n\t\t\tif (StringUtils.equalsIgnoreCase(value, getParameter(param))) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void checkExistingParameter() {\n parameterList.clear();\n if (!attribute[13].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"HB000\"));\n }\n\n if (!attribute[14].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"WBC00\"));\n }\n\n if (!attribute[15].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"PLT00\"));\n }\n\n if (!attribute[16].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"RBC00\"));\n }\n\n if (!attribute[20].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"IgGAN\"));\n }\n }", "private static boolean isParamSettable(String parameter)\n {\n if (parameter.equalsIgnoreCase(\"vdhe\") ||\n parameter.equalsIgnoreCase(\"vspe\") ||\n parameter.equalsIgnoreCase(\"dvle\") ||\n parameter.equalsIgnoreCase(\"dvme\") ||\n parameter.equalsIgnoreCase(\"ngon\") ||\n parameter.equalsIgnoreCase(\"ieon\") ||\n parameter.equalsIgnoreCase(\"deon\") ||\n parameter.equalsIgnoreCase(\"geon\") ||\n parameter.equalsIgnoreCase(\"dhsb\") ||\n parameter.equalsIgnoreCase(\"dhrg\") ||\n parameter.equalsIgnoreCase(\"dssb\") ||\n parameter.equalsIgnoreCase(\"dssa\") ||\n parameter.equalsIgnoreCase(\"dssf\") ||\n parameter.equalsIgnoreCase(\"dvla\") ||\n parameter.equalsIgnoreCase(\"iebt\") ||\n parameter.equalsIgnoreCase(\"iea\") ||\n parameter.equalsIgnoreCase(\"dea\") ||\n parameter.equalsIgnoreCase(\"ded\") ||\n parameter.equalsIgnoreCase(\"gebg\") ||\n parameter.equalsIgnoreCase(\"aoon\") ||\n parameter.equalsIgnoreCase(\"plb\") ||\n parameter.equalsIgnoreCase(\"plmd\") ||\n parameter.equalsIgnoreCase(\"vmon\") ||\n parameter.equalsIgnoreCase(\"vmb\") ||\n parameter.equalsIgnoreCase(\"dvli\") ||\n parameter.equalsIgnoreCase(\"dvlo\") ||\n parameter.equalsIgnoreCase(\"dvmc\") ||\n parameter.equalsIgnoreCase(\"ienb\") ||\n parameter.equalsIgnoreCase(\"iebf\") ||\n parameter.equalsIgnoreCase(\"genb\") ||\n parameter.equalsIgnoreCase(\"gebf\") ||\n parameter.equalsIgnoreCase(\"aonb\") ||\n parameter.equalsIgnoreCase(\"aobf\") ||\n parameter.equalsIgnoreCase(\"aobg\") ||\n parameter.equalsIgnoreCase(\"arnb\") ||\n parameter.equalsIgnoreCase(\"arbf\") ||\n parameter.equalsIgnoreCase(\"aocc\") ||\n parameter.equalsIgnoreCase(\"arbi\") ||\n parameter.equalsIgnoreCase(\"arbl\") ||\n parameter.equalsIgnoreCase(\"arbh\") ||\n parameter.equalsIgnoreCase(\"arod\") ||\n parameter.equalsIgnoreCase(\"artp\") )\n return true;\n else\n return false;\n }", "public boolean validateParameter(Parameter oParameter) {\r\n boolean bRet = true;\r\n for (Parameter cat : this.lstParameters) {\r\n if (cat.getDescriptionP().equalsIgnoreCase(oParameter.getDescriptionP())) {\r\n bRet = false;\r\n }\r\n }\r\n return bRet;\r\n }", "private static boolean paramValid(String paramName,String paramValue){\n return paramName!=null&&paramName.length()>0&&paramValue!=null&&paramValue.length()>0;\n }", "public boolean registerParameter(Parameter oParameter) {\r\n if (this.validateParameter(oParameter)) {\r\n return this.lstParameters.add(oParameter);\r\n } else {\r\n out.println(\"Parameter \" + oParameter.toString() + \" already exists\");\r\n return false;\r\n }\r\n }", "public static boolean check(String param) {\r\n\t\tboolean result = false;\r\n\t\tif (param != null && (!param.isEmpty())) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private void checkForMissingParameter(Object param, String paramName)\n\t\t\tthrows MissingParameterException {\n\t\tif (param == null) {\n\t\t\tthrow new MissingParameterException(paramName + \" can not be null\");\n\t\t}\n\t}", "public boolean hasParameterValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameters()\");\n Via via=(Via)sipHeader;\n \n return via.hasParameters();\n }", "public boolean isParameterOffset(int offset);", "boolean hasQueryId();", "boolean hasQueryId();", "public boolean hasParameterValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "private boolean hasBindValue(Command command) {\n if (!CollectorVisitor.collectObjects(Parameter.class, command).isEmpty()) {\n return true;\n }\n for (Literal l : CollectorVisitor.collectObjects(Literal.class, command)) {\n if (isBindEligible(l)) {\n return true;\n }\n }\n return false;\n }", "public boolean containsByReference(ParameterReference ref);", "Object getPropertyexists();", "private boolean isParameter() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameterDeclaration())\n\t\t{\n\t\t\tupdateToken();\n\t\t\tif(isParameterMark())\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "public boolean hasComponent( final Object hint )\n {\n boolean componentExists = false;\n\n try\n {\n this.release( this.select( hint ) );\n componentExists = true;\n }\n catch( Throwable t )\n {\n // Ignore all throwables--we want a yes or no answer.\n }\n\n return componentExists;\n }", "static boolean Requested(HttpServletRequest request, String paramName)\n {\n \n String value = request.getParameter(paramName);\n Logging.debug(\"Got parameter \"+paramName+\"=\" + value);\n \n if (value != null) {\n if (yesMatcher.matcher(value).lookingAt()) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }", "@Override\r\n\tpublic boolean exists(Integer arg0) {\n\t\treturn false;\r\n\t}", "boolean containsValue(Object value) throws NullPointerException;", "@Override\n\tpublic boolean exists(Integer arg0) {\n\t\treturn false;\n\t}", "boolean hasSearchRequest();", "public boolean isSet(String name) {\n\t\treturn paramElem.getElementsByTagName(name).getLength() > 0;\n\t}", "@Description(\"request has query parameter '{param}' with value '{value}'\")\n public static Criteria<HarEntry> recordedRequestQueryParam(@DescriptionFragment(\"param\") String queryParam,\n @DescriptionFragment(\"value\") String value) {\n checkArgument(isNotBlank(queryParam), \"Query parameter should not be blank or null string\");\n checkArgument(isNotBlank(value), \"Value of query parameter should not be blank or null string\");\n\n return condition(entry -> {\n List<HarQueryParam> queryParams = entry.getRequest().getQueryString();\n\n return ofNullable(queryParams)\n .map(parameters ->\n parameters.stream()\n .anyMatch(param ->\n param.getName().equals(queryParam) && param.getValue().equals(value)))\n .orElse(false);\n });\n }", "boolean containsProperty(String name);", "@Override\n\tpublic boolean exists(String arg0) {\n\t\treturn false;\n\t}", "public static boolean hasSideEffectOnParameter(FunctionCall fcall) {\n if (!contains(fcall)) {\n return false;\n }\n return (modIdxMap.get(fcall.getName().toString()) != null);\n }", "public boolean hasParameterName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "Condition equal(QueryParameter parameter, Object value);", "boolean existsByNameAndId(String name, int id);", "boolean hasProperty(String key);", "private void checkValue(Variable toBeVariable) throws MethodCallWithNonexistentParameter {\n if (!toBeVariable.hasValue()) {\n throw new MethodCallWithNonexistentParameter();\n }\n }", "@Override\n\tpublic boolean hasParameterGuard() {\n\t\treturn true;\n\t}", "public boolean hasParameterName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean exists(String arg0) {\n\t\treturn false;\n\t}", "public boolean exists(String arg0) {\n\t\treturn false;\n\t}", "public boolean exists(String arg0) {\n\t\treturn false;\n\t}", "public boolean isSetParams() {\n return this.params != null;\n }", "@Override\r\n\tpublic boolean exists(Long arg0) {\n\t\treturn false;\r\n\t}", "boolean hasQueryPort();", "@Override\n\tpublic boolean exists(Long arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean exists(Long arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean exists(Long arg0) {\n\t\treturn false;\n\t}", "public boolean hasProperty( String key );", "public boolean verifyExists(String value, String column);", "public boolean containsItem(int par1)\n {\n return this.lookupEntry(par1) != null;\n }", "boolean hasValue(PropertyValue<?, ?> value);", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "protected boolean isEmptyValue(final String parameter) {\n // String value = parameters.get(parameter);\n // return isEmptyString(value);\n return false;\n }", "@Override\n\tpublic boolean isParam() {\n\t\treturn false;\n\t}", "@Test(expected=IllegalArgumentException.class)\n public void testNamedValueMustExistValidation() {\n query.named().setValue(NAMED_PARAM_1, Collections.singletonList(10D));\n }", "private void checkForEmptyParameter(String param, String paramName)\n\t\t\tthrows MissingParameterException, InvalidParameterException {\n\t\tif (param != null && param.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(paramName + \" can not be empty\");\n\t\t}\n\t}", "public boolean hasSearchValue() {\n return searchValue_ != null;\n }", "boolean hasProperty(String propertyName);", "public boolean hasProperty(String key) {\n return commandData.containsKey(key);\n }", "public boolean hasQuery() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasQuery() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "protected int checkParam(Object o, String name)\n {\n if (o == null) {\n System.err.println(format(\"Parameter %s is not set\", name));\n return 1;\n }\n return 0;\n }", "boolean hasQueryMessage();", "String getPropertyExists();", "boolean hasQueryLogicName();", "protected boolean hasArgument(Node node, int idx)\n {\n return idx < node.jjtGetNumChildren();\n }", "public static boolean Param(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Param\")) return false;\n if (!nextTokenIs(b, DOLLAR_SIGN)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, DOLLAR_SIGN);\n r = r && VarName(b, l + 1);\n r = r && Param_2(b, l + 1);\n exit_section_(b, m, PARAM, r);\n return r;\n }", "public boolean canAddParameters() {\n final PluginWrapper plugin = Hudson.getInstance().getPluginManager().getPlugin(\"parameterized-trigger\"); //$NON-NLS-1$\n return plugin != null && plugin.isActive();\n }", "boolean existsByName(String name);", "boolean propertyExists(Object name) throws JMSException;", "public boolean exists() {\n \t\treturn (type != UNASKED && isValid() && ((type == STRING) ? !sVal.equals(\"\") : true));\n \t}" ]
[ "0.7393851", "0.7379185", "0.73715943", "0.72155976", "0.6861768", "0.68092406", "0.6771326", "0.66999644", "0.6688405", "0.6687131", "0.6634414", "0.6594915", "0.6498394", "0.64828503", "0.64516854", "0.62436354", "0.6202579", "0.6201278", "0.6161725", "0.61363053", "0.60992295", "0.6090847", "0.60813546", "0.6031511", "0.5918367", "0.59073675", "0.58627313", "0.5848866", "0.58383083", "0.58334535", "0.57629794", "0.57545286", "0.5747401", "0.568177", "0.56716645", "0.5660717", "0.56559676", "0.56464225", "0.5645875", "0.5645875", "0.5641997", "0.5616887", "0.5615767", "0.5562947", "0.55516946", "0.55438083", "0.55149317", "0.5503191", "0.550071", "0.54990464", "0.549816", "0.54849714", "0.54838073", "0.548362", "0.5424092", "0.5421836", "0.54148555", "0.54092675", "0.53995836", "0.53907675", "0.53881997", "0.53835756", "0.5381978", "0.53803855", "0.53803855", "0.53803855", "0.5356349", "0.5355667", "0.53548586", "0.53504384", "0.53504384", "0.53504384", "0.5348227", "0.53367424", "0.5335716", "0.53294057", "0.5297535", "0.5297535", "0.5297535", "0.5297535", "0.5297535", "0.5286321", "0.5285671", "0.52801335", "0.5275957", "0.5263", "0.52608734", "0.5250423", "0.52440435", "0.5222207", "0.52109975", "0.5197356", "0.51913625", "0.5188918", "0.51854235", "0.51836646", "0.51746625", "0.5171785", "0.5165964", "0.51651704" ]
0.75371224
0
Get the decoded fragment component of this DIDURL.
public String getFragment() { return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected String decodeFragment(String encodedFragment) {\n return encodedFragment;\n }", "public String getFragment() {\n return m_fragment;\n }", "String fragment();", "public Fragment getFragment() {\n return fragment;\n }", "public String getFragmentPath() {\n return fragmentPath;\n }", "public String getUfrag() {\n\t\treturn ufrag;\n\t}", "public abstract Fragment getFragment();", "public Long getFragments() {\n return this.fragments;\n }", "Uri decodeRefUri(String s, XElem elem)\n { \n Uri uri = new Uri(s);\n if (!uri.isFragment()) return uri;\n \n // check if we've already parsed the obj to which\n // this fragment id referneces\n Obj resolved = (Obj)fragIds.get(s); \n if (resolved != null)\n { \n uri.setResolved(resolved);\n return uri;\n } \n \n // if not then this uri is forwardly used (or \n // maybe missing), so just store it away \n FragRefs refs = (FragRefs)fragRefs.get(s);\n if (refs == null) fragRefs.put(s, refs = new FragRefs());\n refs.uris.add(uri);\n refs.elems.add(elem);\n \n return uri;\n }", "public String customFragment() {\n return this.customFragment;\n }", "@Override\n public Fragment getFragment() {\n// uuid = (UUID)getIntent().getSerializableExtra(UUID);\n// return GoalDetailViewFragment.newInstance(uuid);\n return null;\n }", "public String getDecoded()\n\t{\n\t\treturn this.decodedText;\n\t}", "com.google.protobuf.ByteString\n getDidUriBytes();", "public String get() {\n final String[] parts = this.origin.string().replaceAll(\"/$\", \"\").split(\"/\");\n return parts[parts.length - 1];\n }", "public boolean getFragment()\n\t{\n\t\treturn mFragment;\n\t}", "public String decode(String shortUrl) {\n return mapper.get(shortUrl); \n }", "public abstract String getFragmentName();", "public d getCurrentBaseFragment() {\n Fragment findFragmentById = getFragmentManager().findFragmentById(16908290);\n if (findFragmentById == null || !(findFragmentById instanceof d)) {\n return null;\n }\n return (d) findFragmentById;\n }", "com.google.protobuf.ByteString\n getUriBytes();", "com.google.protobuf.ByteString\n getUriBytes();", "@DISPID(1097) //= 0x449. The runtime will prefer the VTID if present\n @VTID(20)\n java.lang.String urlUnencoded();", "public String fragmentAt(int index) {\n\t\treturn pathFragments.get(index);\n\t}", "private Fragment getLast() {\n Fragment last;\n switch (lastFragment) {\n case \"userHomeFragment\":\n last = userHomeFragment;\n break;\n case \"scheduleFragment\":\n last = scheduleFragment;\n break;\n case \"medicineFragment\":\n last = medicineFragment;\n break;\n default:\n last = calendarFragment;\n }\n return last;\n }", "public String decode(String shortUrl) {\n return keyToUrl.get(shortUrl.replace(BASE_HOST, \"\"));\n }", "public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String decode(String shortUrl) {\n return code2url.containsKey(shortUrl) ? code2url.get(shortUrl) : \"\";\n }", "public String decode(String shortUrl) {\n\t int key = Integer.parseInt(shortUrl);\n\t return map.get(key);\n\t }", "public ProgramFragment getFragment(String treeName, Address addr);", "public String decode(String shortUrl) {\n String key = shortUrl.substring(shortUrl.length()-keyLength, shortUrl.length());\n if (shortToLong.containsKey(key)) {\n return shortToLong.get(key);\n } else {\n return \"\";\n }\n }", "int getMinorFragmentId();", "protected String decodeByte(String given) {\n if (given == null || given.length() % 8 != 0 || given.isEmpty()) {\n return \"\";\n }\n StringBuilder source = new StringBuilder(given);\n StringBuilder target = new StringBuilder();\n while (source.length() > 0) {\n String pair = source.substring(0, 2);\n source.delete(0, 2);\n if (pair.charAt(0) == pair.charAt(1)) {\n target.append(pair.charAt(0));\n } else {\n target.append(\"?\");\n }\n }\n if (target.substring(0,4).contains(\"?\")) {\n target = new StringBuilder(decodeByteWithParity(target.toString()));\n }\n while (target.length() > 3) {\n target.deleteCharAt(target.length() - 1);\n }\n\n return target.toString();\n }", "private String removeFragment(String uri) {\n String result = uri;\n int hashPos = uri.indexOf(\"#\");\n if (hashPos >= 0) {\n result = uri.substring(0, hashPos);\n }\n return result;\n }", "int getSendingMinorFragmentId();", "String decodeString();", "public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n }\n }", "public String decode(String shortUrl) {\n\n return list.get(Integer.valueOf(shortUrl) - 1);\n\n }", "public String decode(String shortUrl) {\n int index = shortUrl.lastIndexOf(SEPERATE);\n int pos = Integer.parseInt(shortUrl.substring(index+ 1));\n String encode = shortUrl.substring(PREFIX.length(), index);\n List<String> list = shortToLong.getOrDefault(encode, new ArrayList<>());\n if (list.size() <= pos) {\n throw new RuntimeException();\n }\n return list.get(pos);\n }", "public DsByteString getURIAsString() {\n DsURI uri = null;\n return (m_nameAddress != null && (uri = m_nameAddress.getURI()) != null)\n ? uri.getValue()\n : null;\n }", "java.lang.String getDidUri();", "public final Process getFragmentProcess()\n\t{\n\t\treturn rProcess;\n\t}", "protected abstract Fragment getFragmentByPosition(int position);", "public String decode(String shortUrl) {\n return map.get(shortUrl);\n }", "public String decode(String shortUrl) {\n return map.get(shortUrl);\n }", "@JsonProperty(PROP_FRAGMENT_OFFSETS)\n public SortedSet<SubRange> getFragmentOffsets() {\n return _fragmentOffsets;\n }", "byte decodeByte();", "int getReceivingMajorFragmentId();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String decode(String shortUrl) {\n return shortToLongUrl.getOrDefault(shortUrl.replace(\"http://tinyurl.com/\", \"\"), \"\");\n }", "public String getSequence() {\r\n return mySequenceFragment;\r\n }", "com.google.protobuf.ByteString getQueryAddress();", "public void onFragment( Framedata fragment ) {\n\t\tlog.info( \"received fragment: \" + new String( fragment.getPayloadData().array() ) );\n\t}", "public String decode(String shortUrl) {\n if (!map.containsKey(shortUrl)) return \"\";\n return map.get(shortUrl);\n }", "@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }", "public LiveData<Boolean> getInFormatFragmentLD() {\n return inFormatFragment;\n }", "public final String mo60917a() {\n return \"tag_fragment_discover\";\n }", "void fragment(String fragment);", "void fragment(String fragment);", "public S6Fragment getBaseFragment()\t\t\t{ return base_node; }", "public ProgramFragment getFragment(String treeName, String name);", "public String getFragmentTag() {\n return this.getClass().getSimpleName();\n }", "private GraphFragment getGraphFragment() {\n String tag = this.getString(R.string.fragment_graph_tag);\n Fragment fragment = this.getSupportFragmentManager().findFragmentByTag(tag);\n\n if(fragment == null)\n return null;\n\n return (GraphFragment) fragment;\n }", "public EndPointUnnumberedDataPathTLV getEndPointUnnumberedDataPathTLV() {\r\n\t\treturn endPointUnnumberedDataPathID;\r\n\t}", "int getSendingMajorFragmentId();", "public abstract int getFragmentView();", "public long frag_length() {\r\n\t\treturn frag_length_;\r\n\t}", "@org.jetbrains.annotations.NotNull()\n public final android.net.Uri component1() {\n return null;\n }", "public boolean is_fragment() {\r\n\t\treturn is_fragment_;\r\n\t}", "String getLastNavFragment(Context context) {\n\t\treturn null;\n\t}", "int getMajorFragmentId();", "public String get_nat46fragheader() throws Exception {\n\t\treturn this.nat46fragheader;\n\t}", "public String decode(String message) {\n if (message == null || message.isEmpty()) {\n return \"\";\n }\n StringBuilder source = new StringBuilder(message);\n StringBuilder target = new StringBuilder();\n while (source.length() >= 8) {\n String substring = source.substring(0,8);\n source.delete(0, 8);\n target.append(decodeByte(substring));\n }\n int bitOverlap = target.length() % 8;\n if (bitOverlap > 0 && target.length() > 8) {\n target.delete(target.length() - bitOverlap, target.length());\n }\n return target.toString();\n }", "public String getUrl() {\n Object ref = url_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n url_ = s;\n }\n return s;\n }\n }", "public String decode(String shortUrl) {\n return map.get(Integer.valueOf(shortUrl.replace(\"http://tinyurl.com/\", \"\")));\n }", "public byte[] uri() {\n return uri;\n }", "public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n }\n }", "public static StringBuffer getVxlFragment() {\n\t\treturn vxlFragment;\n\t}", "public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public static Fragment Instance() {\n\t\t\n\t\treturn new GCourtInfoDetailsFragment();\n\t}", "public byte[] getDatagramFragment() {\n\t\tbyte[] datagram=new byte[icmp_body.length-4];\n\t\tSystem.arraycopy(icmp_body,4,datagram,0,datagram.length);\n\t\treturn datagram;\n\t\t\n\t}", "private String base64Decode(String token) {\n\t\t \tBase64 base64 = new Base64();\n\t \tbyte[] decodedBytes = base64.decode(token.getBytes()); \t\n\t \tString decodeString = new String(decodedBytes, Charset.forName(\"UTF-8\"));\t\t\n\t \tint index1 = decodeString.indexOf(\"3du\");\n\t \tint index2 = decodeString.indexOf(\"l0g\");\n\t \tint lengthChar = decodeString.length();\n//\t \tif(lengthChar %4 != 0) {\n//\t \t\treturn \"\";\n//\t \t}\n\t \tif((index1 < 3) & (index2 >=3))\n\t \t{\n\t \t\tlengthChar = lengthChar - 3;\n\t \t}\n\t \tif(lengthChar > 0) {\n\t \t\tdecodeString = decodeString.substring(3, lengthChar);\n\t \t} \t\n\t \treturn decodeString;\n\t\t}", "String getBaseUri();", "public byte[] getCompleteMD();", "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n }\n return s;\n }\n }", "public String getUrl() {\n Object ref = url_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public E3DVector2F getTextureCoordDetail0B(){\r\n return vertices[1].getTextureCoordDetail0();\r\n }", "private Fragment getLessonFragment() {\n\t\treturn MediaPlayerFragmentFactory.getMediaPlayerFragment(lesson);\n\t}", "public Fragment(Element elt, URI u, Definitions def)\n throws Exception {\n m_absoluteUri = u;\n m_Element = elt;\n m_def = def;\n\n // the scripts encoding as default:\n m_encoding = elt.getOwnerDocument().getXmlEncoding();\n if (m_encoding == null) {\n m_encoding = def.getScriptHandler().getOption(Options.DEFAULT_ENCODING);\n }\n if (elt.hasAttribute(\"encoding\")) {\n m_encoding = elt.getAttribute(\"encoding\");\n }\n\n // id\n if (elt.hasAttribute(Definitions.ID)) {\n m_id = elt.getAttribute(Definitions.ID);\n } else {\n throw new Exception(reporter.getBundleString(\"missing_fragment_id\"));\n }\n\n // short\n if (elt.hasAttribute(Definitions.SHORT)) {\n m_short = elt.getAttribute(Definitions.SHORT);\n } else {\n m_short = m_id; // thus we always a short value\n }\n // we get hold of the text either from a file or directly as quoted in the element\n if (m_absoluteUri != null) {\n // load it from file\n m_txt = accessutils.getBOMSafeTextFile(m_absoluteUri, m_encoding);\n } else {\n // we pick it up from the element itself\n // and we use the scriptaddress as referenceUri\n m_referenceUri = def.getScriptHandler().getScriptAbsoluteUri();\n m_txt = getContentFromElement();\n }\n\n\n\n // content defaults to short value\n if ((m_txt == null) || (m_txt.isEmpty())) {\n m_txt = m_short;\n } else {\n m_txt = m_def.substituteFragments(m_txt);\n }\n\n m_txt = m_txt.trim();\n\n //-----------------------\n // ok we have the text. Now we must make an XML-fragment\n\n // first we make sure we dont have any bad &'s\n m_txt = accessutils.fixUriParameterEntities(m_txt);\n\n\n // should we fix encoding so it match that of the script ?\n /*\n if(!encoderutils.sameEncoding(m_encoding,elt.getOwnerDocument().getXmlEncoding()))\n {\n m_txt=encoderutils.reEncode(m_txt,m_encoding,elt.getOwnerDocument().getXmlEncoding(),false);\n m_encoding=elt.getOwnerDocument().getXmlEncoding();\n }*/\n\n try {\n m_docfrag = domer.produceDocFragmentFromString(m_txt, elt.getOwnerDocument().getXmlEncoding(), def.getReporter());\n } catch (Exception e) {\n throw new Exception(\"fragment id:\" + m_id + \" / \" + e.getMessage());\n }\n }", "int getReceivingMinorFragmentId(int index);", "protected abstract int getFirstFrag();", "protected Message unfragment(Message msg, FragHeader hdr) {\n Address sender=msg.getSrc();\n Message assembled_msg=null;\n\n ConcurrentMap<Long,FragEntry> frag_table=fragment_list.get(sender);\n if(frag_table == null) {\n frag_table=Util.createConcurrentMap(16, .075f, 16);\n ConcurrentMap<Long,FragEntry> tmp=fragment_list.putIfAbsent(sender, frag_table);\n if(tmp != null) // value was already present\n frag_table=tmp;\n }\n num_frags_received.increment();\n\n FragEntry entry=frag_table.get(hdr.id);\n if(entry == null) {\n entry=new FragEntry(hdr.num_frags, hdr.needs_deserialization, msg_factory);\n FragEntry tmp=frag_table.putIfAbsent(hdr.id, entry);\n if(tmp != null)\n entry=tmp;\n }\n\n Lock lock=entry.lock;\n lock.lock();\n try {\n entry.set(hdr.frag_id, msg);\n if(entry.isComplete()) {\n assembled_msg=assembleMessage(entry.fragments, entry.needs_deserialization, hdr);\n frag_table.remove(hdr.id);\n if(log.isTraceEnabled())\n log.trace(\"%s: unfragmented message from %s (size=%d) from %d fragments\",\n local_addr, sender, assembled_msg.getLength(), entry.number_of_frags_recvd);\n }\n }\n catch(Exception ex) {\n log.error(\"%s: failed unfragmenting message: %s\", local_addr, ex);\n }\n finally {\n lock.unlock();\n }\n return assembled_msg;\n }", "public final String getHeight() {\n return this.height;\n }", "public String getDst() {\r\n\t\treturn dst;\r\n\t}", "com.google.protobuf.ByteString\n getFormUriBytes();", "public Fragment findFragment(int position) {\n return fragments[position];\n }", "public CodeFragment getCode() {\n\t\treturn code;\n\t}", "public static Object decodeURIComponent(final Object self, final Object uri) {\n return URIUtils.decodeURIComponent(self, JSType.toString(uri));\n }", "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }" ]
[ "0.68632674", "0.6369017", "0.62476915", "0.5892083", "0.58274645", "0.57380474", "0.55568475", "0.54423755", "0.53878933", "0.535021", "0.5266268", "0.52549297", "0.52494043", "0.52296317", "0.5204579", "0.5178503", "0.51647615", "0.51344687", "0.50452954", "0.50452954", "0.503898", "0.50383806", "0.5023884", "0.50234216", "0.50097704", "0.49858272", "0.49808538", "0.49491918", "0.49298558", "0.48903197", "0.4866277", "0.48579895", "0.4849705", "0.4847801", "0.48430946", "0.48091555", "0.48002112", "0.4798347", "0.47711957", "0.47691172", "0.4754588", "0.47489068", "0.47489068", "0.47323212", "0.47166854", "0.470228", "0.46910235", "0.46757045", "0.46733403", "0.4670904", "0.4644931", "0.46367037", "0.46351412", "0.46302608", "0.4616962", "0.46151146", "0.46151146", "0.46132937", "0.46063673", "0.46061978", "0.45776668", "0.45737576", "0.45507208", "0.45473516", "0.45406497", "0.45404193", "0.45379335", "0.45309076", "0.45122313", "0.45022056", "0.4497608", "0.4493205", "0.44839412", "0.44818398", "0.44790217", "0.44759727", "0.4475249", "0.445911", "0.4450675", "0.4438738", "0.4433576", "0.44289708", "0.4426577", "0.44260293", "0.44260293", "0.44253588", "0.44245487", "0.4412031", "0.44088838", "0.44064182", "0.44059712", "0.44044563", "0.4396798", "0.43876356", "0.43814376", "0.43784514", "0.43759817", "0.43740544", "0.43728855", "0.43682516" ]
0.6566584
1
Check if the DIDURL object is full qualified.
public boolean isQualified() { return (did != null && fragment != null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDidUri();", "boolean hasUri();", "private static boolean belongs(URL base, URL derived) {\n return derived.toString().startsWith(base.toString());\n }", "public static boolean isFullyQualified(String key) {\n return isFullyQualified(key, false);\n }", "public boolean hasDidUri() {\n return deliveryMethodCase_ == 2;\n }", "boolean hasHadithBookUrl();", "public boolean hasURL() {\n return fieldSetFlags()[2];\n }", "public boolean hasTargetObjectUri() {\n return fieldSetFlags()[5];\n }", "boolean hasHadithUrl();", "public boolean isGenericURI() {\n // presence of the host (whether valid or empty) means\n // double-slashes which means generic uri\n return (m_host != null);\n }", "public boolean isUri(String obj) {\r\n//\t\treturn obj.matches(\"(([a-zA-Z][0-9a-zA-Z+\\\\\\\\-\\\\\\\\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\\\\\\\\.\\\\\\\\-_!~*'()%]+)?(#[0-9a-zA-Z;/?:@&=+$\\\\\\\\.\\\\\\\\-_!~*'()%]+)?\");\r\n\t\treturn false;\r\n\t}", "public boolean isNilUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URLNAME$12, 0);\r\n if (target == null) return false;\r\n return target.isNil();\r\n }\r\n }", "public boolean isURL() {\n\t\treturn filename.charAt(0) == '?';\n\t}", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "@Override\n\tpublic boolean isSafeOrigin(URL linkedURL) {\n\t\tURL base = getBaseURL();\n\t\tString docHost = base.getHost();\n\t\tint docPort = base.getPort();\n\t\tif (docPort == -1) {\n\t\t\tdocPort = base.getDefaultPort();\n\t\t}\n\t\tString linkedHost = linkedURL.getHost();\n\t\tint linkedPort = linkedURL.getPort();\n\t\tif (linkedPort == -1) {\n\t\t\tlinkedPort = linkedURL.getDefaultPort();\n\t\t}\n\t\treturn (docHost.equalsIgnoreCase(linkedHost) || linkedHost.endsWith(docHost)) && docPort == linkedPort;\n\t}", "public boolean hasReqUri() {\n return fieldSetFlags()[4];\n }", "boolean hasUserDN();", "boolean hasOriginName();", "@java.lang.Override\n public boolean hasDidUri() {\n return deliveryMethodCase_ == 2;\n }", "public boolean isSetUri() {\n return this.uri != null;\n }", "private static boolean _inNamespace(Resource resource, String namespace) {\n\t\tString resourceNamespace = resource.getNameSpace();\n\t\t\n\t\tif ( namespace.endsWith(\"/\") || namespace.endsWith(\"#\") ) {\n\t\t\treturn namespace.equals(resourceNamespace);\n\t\t}\n\t\telse {\n\t\t\treturn resourceNamespace != null && namespace.equals(resourceNamespace.replaceAll(\"(/|#)$\", \"\"));\n\t\t}\n\t}", "public boolean inDomain(final A resource) {\n return convert(resource) != null;\n }", "@Override\r\n public boolean isDescendent(final FileName descendent, final NameScope scope) {\r\n if (!descendent.getRootURI().equals(getRootURI())) {\r\n return false;\r\n }\r\n return checkName(getPath(), descendent.getPath(), scope);\r\n }", "public boolean isNilFriendlyName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FRIENDLYNAME$2, 0);\r\n if (target == null) return false;\r\n return target.isNil();\r\n }\r\n }", "private boolean pathMatch(URL realmUrl, URL returnToUrl)\n {\n String realmPath = realmUrl.getPath();\n String returnToPath = returnToUrl.getPath();\n\n if (!realmPath.endsWith(\"/\"))\n realmPath += \"/\";\n\n if (!returnToPath.endsWith(\"/\"))\n returnToPath += \"/\";\n\n // return realmPath.startsWith(returnToPath);\n return returnToPath.startsWith(realmPath);\n }", "protected boolean isSurt(String s) {\n return s.charAt(0) == '(' || s.indexOf(\"://\") == s.indexOf(\"://(\");\n }", "public boolean m1183a(Uri uri) {\n if (uri == null) {\n throw new NullPointerException();\n }\n try {\n String host = uri.getHost();\n for (String endsWith : this.kf) {\n if (host.endsWith(endsWith)) {\n return true;\n }\n }\n return false;\n } catch (NullPointerException e) {\n return false;\n }\n }", "boolean isNamespace(Object object);", "public abstract boolean isQualifiedName(@Nullable String text);", "public static boolean validateRef(String ref)\n {\n final Pattern URL = Pattern.compile(\"https?:\\\\/\\\\/(www\\\\.)?[-a-zA-Z0-9@:%._\\\\+~#=]{2,256}\\\\.[a-z]{2,6}\\\\b([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)\");\n Matcher matcher = URL.matcher(ref);\n if(!matcher.matches())\n return false;\n else\n return true;\n }", "public boolean hasUrl() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasPictureUri();", "public boolean mo62322a(String str) {\n return str != null && str.startsWith(\"mraid://\");\n }", "public boolean hasUrl() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasUrl() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasUserDN() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public static native boolean nativeIsGoogleSubDomainUrl(String url);", "protected boolean containsName(String full, String prefixes) {\n String[] prefixArray = StringUtils.split(prefixes, \",\");\n for (String prefix : prefixArray) {\n if (StringUtils.startsWith(full, StringUtils.trimToEmpty(prefix))) {\n return true;\n }\n }\n return false;\n }", "public boolean hasPath() {\n return carrier.findPath(getCarrierTarget()) != null;\n }", "public boolean hasUserDN() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "private boolean check_only_call_relatives(Element element){\n\t\tArrayList<Element> relatives = new ArrayList<Element>();\n\t\tfor(Element elem_called : element.getRefFromThis()){\n\t\t\t//if they are brothers\n\t\t\tif(element.getParentName() != null && elem_called.getParentName() != null && element.getParentName().equals(elem_called.getParentName())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\n\t\t\t//if they are son - father\n\t\t\tif(element.getParentName() != null && element.getParentName().equals(elem_called.getIdentifier())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\t\t\t\n\t\t}\n\t\tif (relatives.size() == element.getRefFromThis().size()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isTargetNamespace(String prefix) {\r\n return prefix.equals(getDefinitions().getTargetNamespace());\r\n }", "public boolean isUrl( String resourceLocation ) {\n\t\tif ( resourceLocation == null ) {\n\t\t\treturn false;\n\t\t}\n\t\tif ( resourceLocation.startsWith(URL_PREFIX_CLASSPATH) ) {\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tnew URL(resourceLocation);\n\t\t\treturn true;\n\t\t} catch ( MalformedURLException ex ) {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == this)\n\t\t\treturn true;\n\n\t\tif (obj instanceof DIDURL) {\n\t\t\tDIDURL id = (DIDURL)obj;\n\t\t\treturn toString().equals(id.toString());\n\t\t}\n\n\t\tif (obj instanceof String) {\n\t\t\tString url = (String)obj;\n\t\t\treturn toString().equals(url);\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean hasUrl() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasUrl() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasUrl() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public abstract boolean isOwner (String url);", "public boolean isSetUrl() {\n return this.url != null;\n }", "public boolean isCompanyShortNameTaken(String shortName);", "@java.lang.Override\n public boolean hasUrl() {\n return instance.hasUrl();\n }", "@java.lang.Override\n public boolean hasUrl() {\n return instance.hasUrl();\n }", "public boolean hasUrl() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "java.lang.String getDidUri();", "public boolean isSetUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(URLNAME$12) != 0;\r\n }\r\n }", "public boolean hasUrl() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "private boolean verifyUrlFormat( String editorUrl )\n {\n if ( null == editorUrl )\n return false;\n String normalized = editorUrl.replace('\\\\', '/');\n if ( !normalized.startsWith(CE_URL_PREFIX))\n return false;\n normalized = normalized.substring(3);\n int pos = normalized.indexOf(\"/\");\n if ( pos < 0 )\n return false;\n normalized = normalized.substring(pos+1);\n pos = normalized.indexOf(\"/\");\n if ( pos >= 0 )\n return false;\n return true;\n }", "private boolean constrainedOnValidUnitName(String unitNameWithoutPrefix){\n if(unitNameWithoutPrefix.isEmpty())\n return false;\n\n return unitsDataModel != null && unitsDataModel.getUnitsContentQuerier().containsUnit(unitNameWithoutPrefix);\n }", "public static boolean m18365a(String str) {\n return str != null && (str.startsWith(\"http://\") || str.startsWith(\"https://\"));\n }", "public boolean isUri() {\n return isUri;\n }", "boolean isPrefix(String potentialPrefix);", "public boolean contains(String prefix) {\n\t\tSet<String> prefixes = prefixToURIMap.keySet();\n\t\treturn prefixes.contains(prefix);\n\t}", "private boolean testURLIsValid(String itemName) {\n if (itemName.endsWith(\".html\")) {\n if (itemName.contains(\"manual\") || itemName.contains(\"MediaRecorder-iframe\")) {\n // return itemName.contains(\"none-manual\");\n return false;\n } else {\n return true;\n }\n }\n\n return false;\n }", "public boolean isMine(HttpServletRequest request) {\r\n String path = request.getPathInfo();\r\n return path.startsWith(\"/thredds/obis/\");\r\n }", "public static boolean isURI(String string) {\n\t\treturn string.startsWith(\"http://\") && string.length() > 7;\n\t}", "private static boolean checkURL(String file) {\n\t\tFile myFile = new File(file);\n\t\treturn myFile.exists() && !myFile.isDirectory();\n\t}", "protected boolean isApplicable(SPRequest req) {\n\n Log.debug(\"isApplicable ? \" + req.getPath() + \" vs \" + getRoute());\n\n if (!req.getMethod().equals(getHttpMethod()))\n return false;\n\n String[] uri = req.getSplitUri();\n String[] tok = splitPath;\n if (uri.length != tok.length && splatIndex == -1)\n return false;\n\n if (uri.length <= splatIndex)\n return false;\n\n for (int i = 0; i < tok.length; i++) {\n if (tok[i].charAt(0) != ':' && tok[i].charAt(0) != '*' && !tok[i].equals(uri[i]))\n return false;\n }\n\n return true;\n }", "public boolean mo43872l() {\n return ((String) this.f42902g.get(C13822a.Domain)).endsWith(\"in-addr.arpa\");\n }", "private static boolean isURIString(String p_uric) {\n if (p_uric == null) {\n return false;\n }\n int end = p_uric.length();\n char testChar = '\\0';\n for (int i = 0; i < end; i++) {\n testChar = p_uric.charAt(i);\n if (testChar == '%') {\n if (i+2 >= end ||\n !isHex(p_uric.charAt(i+1)) ||\n !isHex(p_uric.charAt(i+2))) {\n return false;\n }\n else {\n i += 2;\n continue;\n }\n }\n if (isURICharacter(testChar)) {\n continue;\n }\n else {\n return false;\n }\n }\n return true;\n }", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "public final boolean isThereSomeQualifierUri() {\n\t\treturn !qualifiersList.isEmpty();\n\t}", "public boolean isSetUcarpicwholepath() {\n return this.ucarpicwholepath != null;\n }", "private static boolean isAssetControlledByWebsite(URI hrefURI, URI websiteBaseURI, URI docBaseURI) {\n var hrefURIHasHost = hrefURI.getHost() != null;\n var docBaseURIHasHost = docBaseURI.getHost() != null;\n if (hrefURIHasHost) {\n return hrefURI.getHost().equals(websiteBaseURI.getHost());\n } else if (isDocumentRelativeURI(hrefURI) && docBaseURIHasHost) {\n return docBaseURI.getHost().equals(websiteBaseURI.getHost());\n } else {\n return true;\n }\n }", "private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }", "private boolean pathContainsDevice(List<ConnectPoint> completePath, DeviceId deviceId) {\n for (ConnectPoint cp : completePath) {\n if (cp.deviceId().equals(deviceId)) {\n return true;\n }\n }\n return false;\n }", "public boolean validarDireccion() {\n\t\treturn direccion != null;\n\t}", "boolean existsPath(String requestedUrl);", "boolean isForDomain();", "boolean hasRouteDest();", "boolean hasPaymentUrl();", "boolean hasReference();", "protected boolean isReferenced() {\r\n return mReferenced || mUsers.size() > 0;\r\n }", "private boolean startsWithAny(List<String> packagesToTreatAsOpaque, String qualifiedTypeName) {\n for (String packageName : packagesToTreatAsOpaque) {\n if (!Strings.isNullOrEmpty(packageName) && qualifiedTypeName.startsWith(packageName)) {\n return true;\n }\n }\n return false;\n }", "public static boolean isWildcard(String format) {\n String routerUrl = cleanUrl(format);\n String[] routerParts = routerUrl.split(\"/\");\n\n for (String routerPart : routerParts) {\n if (routerPart.length() > 2\n && routerPart.charAt(0) == ':'\n && routerPart.charAt(routerPart.length() - 1) == ':') {\n return true;\n }\n }\n return false;\n }", "public final boolean isDeepAttributeReference ()\r\n {\r\n return _value.hasXmlTreePath();\r\n }", "public boolean isSetFriendlyName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FRIENDLYNAME$2) != 0;\r\n }\r\n }", "@java.lang.Override\n public boolean hasUrl() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public boolean isVehiclesListLinkPathPresent() {\r\n\t\treturn isElementPresent(vehicleLinkPath, SHORTWAIT);\r\n\t}", "boolean hasDestination();", "boolean hasDestination();", "@Override\n public boolean isReferenceTo(PsiElement element) {\n if (isLocalScope(element)) {\n return false;\n }\n\n if (resolve() == element) {\n return true;\n }\n final String referencedName = myElement.getReferencedName();\n if (element instanceof PyFunction && Comparing.equal(referencedName, ((PyFunction)element).getName()) &&\n ((PyFunction)element).getContainingClass() != null && !PyNames.INIT.equals(referencedName)) {\n final PyExpression qualifier = myElement.getQualifier();\n if (qualifier != null) {\n final TypeEvalContext context = TypeEvalContext.fast();\n PyType qualifierType = qualifier.getType(context);\n if (qualifierType == null || qualifierType instanceof PyTypeReference) {\n return true;\n }\n }\n }\n return false;\n }", "boolean hasOrigin();", "boolean hasOrigin();", "public boolean hasOrigin() {\n return originBuilder_ != null || origin_ != null;\n }", "public boolean hasOrigin() {\n return originBuilder_ != null || origin_ != null;\n }", "@java.lang.Override\n public boolean hasUrl() {\n return ((bitField0_ & 0x00000002) != 0);\n }" ]
[ "0.65258", "0.63351446", "0.6214335", "0.6193109", "0.60831326", "0.6050317", "0.6039035", "0.599871", "0.5977273", "0.5869459", "0.58677024", "0.58114177", "0.5678887", "0.5640577", "0.5640577", "0.5640577", "0.5640577", "0.5640577", "0.5620589", "0.5597009", "0.5533886", "0.55209816", "0.55172753", "0.54960185", "0.54901034", "0.54556364", "0.5453334", "0.5450586", "0.5448412", "0.54354095", "0.5354997", "0.53451097", "0.53303665", "0.53274256", "0.5318447", "0.5308705", "0.5308317", "0.5305314", "0.5302343", "0.52926934", "0.52912647", "0.52882886", "0.5286287", "0.5285871", "0.5276891", "0.52753097", "0.5272397", "0.5269263", "0.52650166", "0.52650166", "0.52538073", "0.5249998", "0.52439344", "0.5234984", "0.52264595", "0.52264595", "0.52249736", "0.5218582", "0.52127945", "0.52056926", "0.52040434", "0.5202993", "0.5192472", "0.51862705", "0.518281", "0.51546764", "0.514726", "0.5130723", "0.51251423", "0.51207066", "0.5110311", "0.51097083", "0.5098221", "0.5087455", "0.5084187", "0.5077263", "0.50761616", "0.50744843", "0.5070298", "0.50604814", "0.50483555", "0.50469685", "0.50283253", "0.5021719", "0.50214416", "0.50099146", "0.50049484", "0.49824345", "0.49813345", "0.49665767", "0.49619195", "0.49571052", "0.49561957", "0.49561957", "0.49544692", "0.49479952", "0.49479952", "0.49407533", "0.49407533", "0.49379033" ]
0.69355756
0
Set the metadata that related with this DIDURL object.
protected void setMetadata(AbstractMetadata metadata) { this.metadata = metadata; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMetaData(MetaData newMetaData);", "public void setMetadata(gov.ucore.ucore._2_0.ContentMetadataType metadata)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.ContentMetadataType target = null;\n target = (gov.ucore.ucore._2_0.ContentMetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n target = (gov.ucore.ucore._2_0.ContentMetadataType)get_store().add_element_user(METADATA$0);\n }\n target.set(metadata);\n }\n }", "public void setMetadata(gov.niem.niem.structures._2_0.MetadataType metadata)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.niem.niem.structures._2_0.MetadataType target = null;\n target = (gov.niem.niem.structures._2_0.MetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n target = (gov.niem.niem.structures._2_0.MetadataType)get_store().add_element_user(METADATA$0);\n }\n target.set(metadata);\n }\n }", "public void setMetadata(PDMetadata meta) {\n/* 557 */ this.stream.setItem(COSName.METADATA, meta);\n/* */ }", "@Override\n public Object setMetadata(String key, Object value) {\n return null;\n }", "@JsonSetter(\"metadata\")\n public void setMetadata (Object value) {\n this.metadata = value;\n }", "public void setMetadata(PDMetadata meta)\n {\n stream.setItem(COSName.METADATA, meta);\n }", "public void setMetadata(@Nullable MediaMetadata2 metadata) {\n if (metadata != null && !TextUtils.equals(mId, metadata.getMediaId())) {\n throw new IllegalArgumentException(\"metadata's id should be matched with the mediaId\");\n }\n mMetadata = metadata;\n }", "public void setMetaData(MetaData metaData) {\n this.metaData = metaData;\n }", "public void setMetadata(String metadataKey, MetadataValue newMetadataValue) {\n/* 787 */ this.server.getEntityMetadata().setMetadata(this, metadataKey, newMetadataValue);\n/* */ }", "public void setMetadata(@Nullable final Metadata metadata) {\n mMetadata = metadata;\n }", "public void setMetadata ( String metadataKey , MetadataValue newMetadataValue ) {\n\t\texecute ( handle -> handle.setMetadata ( metadataKey , newMetadataValue ) );\n\t}", "public void setMetadata(Map<String, String> metadata) {\n this.metadata = metadata;\n }", "void setMetadataValue(String name, String value) throws IOException;", "public void setMetadata(RavenJObject metadata) {\n this.metadata = metadata;\n }", "public void setMetaData(HashMap pMetaData) ;", "public void setMetaUrl(String newMetaUrl) {\r\n metaUrl = newMetaUrl;\r\n }", "private void setMetadata(org.chromium.components.paint_preview.common.proto.PaintPreview.MetadataProto value) {\n value.getClass();\n metadata_ = value;\n bitField0_ |= 0x00000002;\n }", "@NonNull\n public Builder setMetadata(@NonNull ElementMetadata metadata) {\n mImpl.setMetadata(metadata.toProto());\n mFingerprint.recordPropertyUpdate(\n 6, checkNotNull(metadata.getFingerprint()).aggregateValueAsInt());\n return this;\n }", "public void setMetadata(MediaMetadataCompat param1) {\n }", "public void setMeta(Object aKey, Object aValue) {\n if (iIdentificationsMetaData == null) {\n iIdentificationsMetaData = new HashMap();\n }\n iIdentificationsMetaData.put(aKey, aValue);\n }", "protected void setMetdata(HashMap<PageMetadataEnum,String> m ){\r\n\t\tthis.metadata = m; \r\n\t}", "public DaprSubscriptionBuilder setMetadata(Map<String, String> metadata) {\n this.metadata = metadata;\n return this;\n }", "public Builder setMetadataJson(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n metadataJson_ = value;\n onChanged();\n return this;\n }", "@Override\n public void setDetailAttributes(MetaData metaData, String[] attributes)\n {\n }", "public Builder setMetadata(io.grafeas.v1.Metadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n } else {\n metadataBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public void setMeta(org.thdl.lex.component.Meta meta);", "public NotebookCell setMetadata(Object metadata) {\n this.metadata = metadata;\n return this;\n }", "public void setMetadataText(String metadataText)\n {\n myMetadataText = metadataText;\n reset();\n }", "<E extends CtElement> E setAllMetadata(Map<String, Object> metadata);", "@Nonnull\n public Builder setMetadata(@Nonnull String metadata) {\n this.metadata = metadata;\n return this;\n }", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public Builder setMetadata(com.google.protobuf.Struct value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "@ZAttr(id=675)\n public Map<String,Object> setHelpDelegatedURL(String zimbraHelpDelegatedURL, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraHelpDelegatedURL, zimbraHelpDelegatedURL);\n return attrs;\n }", "void setMetadataComplete(boolean metadataComplete);", "public String getMetadataURL();", "protected void setDid(DID did) {\n\t\tthis.did = did;\n\t}", "void addMetaData(MetaDataDescriptor mdd);", "public Builder setMetadata(int index, MetadataEntry value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureMetadataIsMutable();\n metadata_.set(index, value);\n onChanged();\n } else {\n metadataBuilder_.setMessage(index, value);\n }\n return this;\n }", "public void setMetadata(@Nullable DocumentType metadata) {\n this.metadata = metadata;\n }", "private void addMetadataByProperty(Metadata metadata, Property property, String value) {\n if (value != null) {\n metadata.set(property, value);\n }\n }", "@Required\n public void setAssetMetadataProperty(String assetMetadataProperty) {\n this.assetMetadataProperty = assetMetadataProperty;\n }", "@JsonIgnore\n public void setDataUrl(String dataUrl) {\n this.dataUrl = dataUrl;\n }", "public void setMetaId(java.lang.Integer metaId);", "public Builder putMetadata(\n java.lang.String key,\n java.lang.String value) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n if (value == null) { throw new java.lang.NullPointerException(); }\n internalGetMutableMetadata().getMutableMap()\n .put(key, value);\n return this;\n }", "public Builder putMetadata(\n java.lang.String key,\n java.lang.String value) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n if (value == null) { throw new java.lang.NullPointerException(); }\n internalGetMutableMetadata().getMutableMap()\n .put(key, value);\n return this;\n }", "<E extends CtElement> E putMetadata(String key, Object val);", "public DataURL setData(String data){\n if(data != null){\n this.data = data;\n }\n return this;\n }", "@IcalProperty(pindex = PropertyInfoIndex.URL,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true)\n public void setLink(final String val) {\n link = val;\n }", "public static void setFixedMetadata(Metadatable m, String tag, Object value, Plugin owner) {\r\n\t\tm.setMetadata(tag, new FixedMetadataValue(owner, value));\r\n\t}", "public Builder setMetadataJsonBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n metadataJson_ = value;\n onChanged();\n return this;\n }", "public Builder setMetadata(org.chromium.components.paint_preview.common.proto.PaintPreview.MetadataProto value) {\n copyOnWrite();\n instance.setMetadata(value);\n return this;\n }", "public static void setLazyMetadata(Metadatable m, String tag, Object value, Plugin owner) {\r\n\t\tm.setMetadata(tag, new LazyMetadataValue(owner, new Callable<Object>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Object call() throws Exception {\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t}));\r\n\t}", "void modifyMetadata(MetadataID mid, CellID cid, Metadata metadata){\n db.removeMetadata(mid);\n db.addMetadata(cid, metadata);\n metadataModification(cid, metadata);\n }", "public Metadata(String key, String value) {\n mJSONObject = new JSONObject();\n insert(key, value);\n }", "public void setMetadataResolver(@Nullable final MetadataResolver resolver) {\n checkSetterPreconditions();\n metadataResolver = resolver;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setMetadata(org.apache.calcite.avatica.proto.Responses.RpcMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n onChanged();\n } else {\n metadataBuilder_.setMessage(value);\n }\n\n return this;\n }", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "@Override\n public void setPhotoDetails() {\n mView.loadPhoto();\n mView.setPhotoDescription();\n }", "public void setMetaData(final String pattern, final Object value) {\n metaData.put(pattern, value);\n }", "public void setPost(JSONObject post) {\n try {\n JSONObject metadata = new JSONObject();\n Iterator<String> i = this.prefHelper_.getRequestMetadata().keys();\n while (i.hasNext()) {\n String k = (String) i.next();\n metadata.put(k, this.prefHelper_.getRequestMetadata().get(k));\n }\n if (post.has(Jsonkey.Metadata.getKey())) {\n Iterator<String> postIter = post.getJSONObject(Jsonkey.Metadata.getKey()).keys();\n while (postIter.hasNext()) {\n String key = (String) postIter.next();\n metadata.put(key, post.getJSONObject(Jsonkey.Metadata.getKey()).get(key));\n }\n }\n post.put(Jsonkey.Metadata.getKey(), metadata);\n } catch (JSONException e) {\n Log.e(\"BranchSDK\", \"Could not merge metadata, ignoring user metadata.\");\n }\n this.params_ = post;\n DeviceInfo.getInstance(this.prefHelper_.getExternDebug(), this.systemObserver_, this.disableAndroidIDFetch_).updateRequestWithDeviceParams(this.params_);\n }", "public void setDescription(String description) {\n metadata_.description = description;\n deferredSyncMetadata();\n }", "public void setURL(String url);", "public void setLink(java.lang.String newLink) {\n\t\tif (instanceExtension.needValuesOnMarkDirty())\n\t\t\tinstanceExtension.markDirty(1,getLink(),newLink);\n\t\telse\n\t\t\tinstanceExtension.markDirty(1);\n\t\tdataCacheEntry.setLink(newLink);\n\t}", "public ImagingStudy setUrl( String theUri) {\n\t\tmyUrl = new UriDt(theUri); \n\t\treturn this; \n\t}", "protected void populateObjectMetadata(CosHttpResponse response, ObjectMetadata metadata) {\n for (Entry<String, String> header : response.getHeaders().entrySet()) {\n String key = header.getKey();\n if (StringUtils.beginsWithIgnoreCase(key, Headers.COS_USER_METADATA_PREFIX)) {\n key = key.substring(Headers.COS_USER_METADATA_PREFIX.length());\n metadata.addUserMetadata(key, header.getValue());\n } else if (ignoredHeaders.contains(key)) {\n // ignore...\n } else if (key.equalsIgnoreCase(Headers.LAST_MODIFIED)) {\n try {\n metadata.setHeader(key, DateUtils.parseRFC822Date(header.getValue()));\n } catch (Exception pe) {\n log.warn(\"Unable to parse last modified date: \" + header.getValue(), pe);\n }\n } else if (key.equalsIgnoreCase(Headers.CONTENT_LENGTH)) {\n try {\n metadata.setHeader(key, Long.parseLong(header.getValue()));\n } catch (NumberFormatException nfe) {\n log.warn(\"Unable to parse content length: \" + header.getValue(), nfe);\n }\n } else if (key.equalsIgnoreCase(Headers.DELETE_MARKER)) {\n metadata.setDeleteMarker(Boolean.parseBoolean(header.getValue()));\n } else if (key.equalsIgnoreCase(Headers.ETAG)) {\n metadata.setETag(StringUtils.removeQuotes(header.getValue()));\n } else if (key.equalsIgnoreCase(Headers.EXPIRES)) {\n try {\n metadata.setHttpExpiresDate(DateUtils.parseRFC822Date(header.getValue()));\n } catch (Exception pe) {\n log.warn(\"Unable to parse http expiration date: \" + header.getValue(), pe);\n }\n } else if (key.equalsIgnoreCase(Headers.EXPIRATION)) {\n new ObjectExpirationHeaderHandler<ObjectMetadata>().handle(metadata, response);\n } else if (key.equalsIgnoreCase(Headers.RESTORE)) {\n new ObjectRestoreHeaderHandler<ObjectRestoreResult>().handle(metadata, response);\n } else if (key.equalsIgnoreCase(Headers.FILE_MODE_DIR)) { // used for merge bucket\n metadata.setFileModeDir(true);\n } else {\n metadata.setHeader(key, header.getValue());\n }\n }\n }", "public String getMetaUrl() {\r\n return metaUrl;\r\n }", "public void setElement_infos_metadata(int index1, short value) {\n setUIntBEElement(offsetBits_infos_metadata(index1), 8, value);\n }", "public Series setUrl( String theUri) {\n\t\tmyUrl = new UriDt(theUri); \n\t\treturn this; \n\t}", "public ElementMetadataHandler(String uri, String localName, Metadata metadata,\n Property targetProperty) {\n super(metadata, targetProperty);\n this.uri = uri;\n this.localName = localName;\n this.metadata = metadata;\n this.targetProperty = targetProperty;\n this.name = targetProperty.getName();\n this.allowDuplicateValues = false;\n this.allowEmptyValues = false;\n LOG.trace(\"created property handler for {}\", this.name);\n }", "@NoProxy\n @NoWrap\n @NoDump\n @IcalProperty(pindex = PropertyInfoIndex.LOCATION_HREF,\n jname = \"locationHref\",\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setLocationHref(final String val) {\n locationHref = val;\n }", "@objid (\"cd72633c-53d3-4556-b5de-b52113e3a225\")\n void setLink(Link value);", "public void setInfo(final URL info) {\n this.info = info;\n }", "private void assignMetadataHandle(String xmlRecord, String collectionSetSpec, DcsDataRecord dcsDataRecord, String handleServiceBaseUrl) throws Exception {\n\n\t\torg.dom4j.Document record = Dom4jUtils.getXmlDocument(xmlRecord);\n\t\tCollectionRecord collectionRecord = new NcsCollectCollectionRecord(record, handleServiceBaseUrl);\n\n\t\tString partnerId = collectionRecord.getId();\n\t\tString mdHandle = collectionRecord.getMetadataHandle(collectionSetSpec);\n\t\tString setSpec = collectionRecord.getSetSpec();\n\n\t\t// updfate dcsDataRecord\n\t\tdcsDataRecord.setSetSpec(setSpec);\n\t\tdcsDataRecord.setCollectionMetadataHandle(mdHandle);\n\t}", "public void updateMetadata(String Artiste, String Titre, String Show) {\r\n\t if (remoteControlClient != null) {\r\n\t android.media.RemoteControlClient.MetadataEditor editor = remoteControlClient.editMetadata(false);\r\n\t \r\n\t editor.putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, Artiste);\r\n\t editor.putString(MediaMetadataRetriever.METADATA_KEY_TITLE, Titre);\r\n\t editor.putString(MediaMetadataRetriever.METADATA_KEY_ALBUM, Show);\r\n\t editor.apply();\r\n\t } \r\n\t }", "public Type setProfile( String theUri) {\n\t\tmyProfile = new UriDt(theUri); \n\t\treturn this; \n\t}", "@ZAttr(id=675)\n public void setHelpDelegatedURL(String zimbraHelpDelegatedURL) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraHelpDelegatedURL, zimbraHelpDelegatedURL);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setPDMessageMetadataExtensionAbstract(org.apache.xmlbeans.XmlObject pdMessageMetadataExtensionAbstract)\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(PDMESSAGEMETADATAEXTENSIONABSTRACT$1, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(PDMESSAGEMETADATAEXTENSIONABSTRACT$0);\n }\n target.set(pdMessageMetadataExtensionAbstract);\n }\n }", "public void setURL(String URL) {\n mURL = URL;\n }", "public Builder setMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadata value) {\n if (metadataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n metadata_ = value;\n } else {\n metadataBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }", "public void setMetaId(Long metaId) {\n this.metaId = metaId;\n }", "public ImagingStudy setUrl(UriDt theValue) {\n\t\tmyUrl = theValue;\n\t\treturn this;\n\t}", "public void setMetaFile(String newMetaFile) {\r\n metaFile = newMetaFile;\r\n }", "public void setOwnerPhotoURL(String photoURL){\n mEditor.putString(USER_PHOTO_URL, photoURL);\n mEditor.commit();\n }", "public SeriesInstance setUrl( String theUri) {\n\t\tmyUrl = new UriDt(theUri); \n\t\treturn this; \n\t}", "public abstract void setContentDescription(String description);" ]
[ "0.64088875", "0.62133324", "0.61521846", "0.6086242", "0.60339916", "0.60184497", "0.6004469", "0.5960781", "0.595904", "0.59579843", "0.58018905", "0.5731079", "0.56848544", "0.5662319", "0.565273", "0.5638146", "0.5541388", "0.5540446", "0.5486297", "0.5441235", "0.5420322", "0.5365117", "0.53320986", "0.5271807", "0.5228972", "0.52172464", "0.5178664", "0.5172497", "0.51605725", "0.51095855", "0.5102785", "0.5076687", "0.5066154", "0.50616646", "0.5015974", "0.49993783", "0.49970585", "0.49905556", "0.49873337", "0.4978685", "0.49724957", "0.4954345", "0.49354944", "0.48877215", "0.48429662", "0.48426676", "0.48426676", "0.4823387", "0.48216608", "0.48216572", "0.48111728", "0.47874817", "0.47853822", "0.47749215", "0.47714412", "0.47689086", "0.4765674", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47445932", "0.47379163", "0.47298327", "0.47045457", "0.46937793", "0.4693727", "0.4681662", "0.46683803", "0.46667928", "0.46618894", "0.46597338", "0.4657783", "0.4635539", "0.46332362", "0.46311888", "0.46275604", "0.46067423", "0.46014133", "0.45870325", "0.45845312", "0.45791838", "0.4577558", "0.45729804", "0.45637754", "0.4551848", "0.45461163", "0.4538329", "0.45358464", "0.45348912", "0.45189935" ]
0.62830806
1
Get the metadata object that associated with this DIDURL object.
public AbstractMetadata getMetadata() { return metadata; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMetadataURL();", "public Object getMetadata() {\n return this.metadata;\n }", "public PDMetadata getMetadata()\n {\n PDMetadata retval = null;\n COSBase mdStream = stream.getDictionaryObject(COSName.METADATA);\n if (mdStream instanceof COSStream)\n {\n retval = new PDMetadata((COSStream) mdStream);\n } \n else if (mdStream instanceof COSNull)\n {\n // null is authorized\n } \n else if (mdStream != null)\n {\n throw new IllegalStateException(\"Expected a COSStream but was a \"\n + mdStream.getClass().getSimpleName());\n }\n return retval;\n }", "MediaMetadata get(String uuid);", "public gov.ucore.ucore._2_0.ContentMetadataType getMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.ContentMetadataType target = null;\n target = (gov.ucore.ucore._2_0.ContentMetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public gov.niem.niem.structures._2_0.MetadataType getMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.niem.niem.structures._2_0.MetadataType target = null;\n target = (gov.niem.niem.structures._2_0.MetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public PDMetadata getMetadata() {\n/* 528 */ PDMetadata retval = null;\n/* 529 */ COSBase mdStream = this.stream.getDictionaryObject(COSName.METADATA);\n/* 530 */ if (mdStream != null)\n/* */ {\n/* 532 */ if (mdStream instanceof COSStream) {\n/* */ \n/* 534 */ retval = new PDMetadata((COSStream)mdStream);\n/* */ }\n/* 536 */ else if (!(mdStream instanceof org.apache.pdfbox.cos.COSNull)) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 542 */ throw new IllegalStateException(\"Expected a COSStream but was a \" + mdStream\n/* */ \n/* 544 */ .getClass().getSimpleName());\n/* */ } \n/* */ }\n/* 547 */ return retval;\n/* */ }", "public @Nullable MediaMetadata getMetadata() {\n try {\n return mSessionBinder.getMetadata();\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling getMetadata.\", e);\n return null;\n }\n }", "Metadata getMetaData();", "public ObjectMetadata getObjectMetadata(String inKey);", "public MetadataDescriptor getMetadataDescriptor() {\n\t\treturn metadataDescriptor;\n\t}", "public @Nullable MediaMetadata2 getMetadata() {\n return mMetadata;\n }", "public SongMetada getMetadata() {\n\t\treturn metadata;\n\t}", "public static Metadata getMetadata(final String url) throws IOException {\n if (url.startsWith(\"htsget://\")) {\n try {\n return getMetadata(url.replace(\"htsget://\", \"https://\"));\n } catch (IOException e) {\n return getMetadata(url.replace(\"htsget://\", \"http://\"));\n }\n }\n\n URL headerURL = addQueryString(url, \"class=header\");\n String ticket = HttpUtils.getInstance().getContentsAsJSON(headerURL);\n JsonParser parser = new JsonParser();\n JsonObject json = null;\n try {\n json = parser.parse(ticket).getAsJsonObject();\n } catch (JsonSyntaxException e) {\n return null; // Not an htsget server\n }\n\n if (!json.has(\"htsget\")) {\n // TODO -- throw exception?\n return null;\n } else {\n String format = json.get(\"htsget\").getAsJsonObject().get(\"format\").getAsString();\n return new Metadata(url, format);\n }\n }", "public MetaData getMetaData() {\n return metaData;\n }", "@JsonGetter(\"metadata\")\n public Object getMetadata ( ) {\n return this.metadata;\n }", "public MetaData getMetaData();", "@Override\n\tpublic X3DMetadataObject getMetadata();", "@Override\n public RavenJObject getMetadata() {\n return metadata;\n }", "public static Optional<Map<String, String>> getMetadata()\n {\n final Optional<Map<String, String>> metadata = metadataRef.get();\n if (metadata != null) {\n return metadata;\n }\n if (hypervisorAbsent()) {\n metadataRef.set(Optional.<Map<String, String>>absent());\n return metadataRef.get();\n }\n\n final ObjectMapper mapper = new ObjectMapper();\n try {\n final URL url = new URL(INSTANCE_DATA_URL);\n final URLConnection connection = url.openConnection();\n connection.setConnectTimeout(CONNECT_TIMEOUT_MS);\n connection.connect();\n final Map<String, String> response\n = mapper.readValue(\n connection.getInputStream(),\n new TypeReference<Map<String, String>>() {});\n metadataRef.set(Optional.fromNullable(\n response != null\n ? Collections.unmodifiableMap(response)\n : null));\n }\n catch (IOException e) {\n metadataRef.set(Optional.<Map<String, String>>absent());\n }\n return metadataRef.get();\n }", "public Map<String, Object> getMetadata() {\n return metadata;\n }", "public MetaDataHolder getMetaOfMeta ()\n\t{\n\t\treturn metaData;\n\t}", "public MetaData getMetaData() {\r\n \treturn metaData;\r\n }", "@Nullable\n public Metadata getMetadata() {\n return mMetadata;\n }", "Object getMetadata(String key);", "public Map getMetadata() {\n return metadata;\n }", "public abstract Object getMetadata(String key);", "public Object readMetadataContentFromURL( InvDataset dataset, java.net.URI uri) throws java.io.IOException {\r\n Element elem = readContentFromURL(uri);\r\n Object contentObject = readMetadataContent(dataset, elem);\r\n if (debugMetadataRead) System.out.println(\" convert to \" + contentObject.getClass().getName());\r\n return contentObject;\r\n }", "public io.grafeas.v1.Metadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? io.grafeas.v1.Metadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata();", "public Map<String, String> getMetadata() {\n return metadata;\n }", "public Map<String, String> getMetadata() {\n return metadata;\n }", "@java.lang.Override\n public io.grafeas.v1.Metadata getMetadata() {\n return metadata_ == null ? io.grafeas.v1.Metadata.getDefaultInstance() : metadata_;\n }", "public Metadata getMetadata( MetadataType type )\n\t{\n\t\tfor( Metadata metadata: mMetadata )\n\t\t{\n\t\t\tif( metadata.getMetadataType() == type )\n\t\t\t{\n\t\t\t\treturn metadata;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public String getMetaUrl() {\r\n return metaUrl;\r\n }", "public String metadataClass() {\n return this.metadataClass;\n }", "@NonNull\n JsonMap getMetadata();", "public DefaultMetaData getMetaData() {\n\t\treturn this.metaData;\n\t}", "com.google.cloud.compute.v1.Metadata getMetadata();", "public MetadataEntry getMetadata(int index) {\n return metadata_.get(index);\n }", "public com.google.protobuf.Struct getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public Object getMeta() {\n return meta;\n }", "public DataSetMetaData getMetaData() {\n return this.metadata;\n }", "public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }", "public Object getMeta(Object aKey) {\n if (iIdentificationsMetaData == null) {\n return null;\n } else {\n return this.iIdentificationsMetaData.get(aKey);\n }\n }", "public URL getURLObject() {\n\t\treturn url;\n\t}", "public ResourceContent getMetadata() throws IOException;", "public edu.ustb.sei.mde.morel.resource.morel.IMorelMetaInformation getMetaInformation();", "public Map<String, Object> getMetaData() {\n\t\treturn metaData;\n\t}", "public Cache<ImmutableBytesPtr,PMetaDataEntity> getMetaDataCache() {\n Cache<ImmutableBytesPtr,PMetaDataEntity> result = metaDataCache;\n if (result == null) {\n synchronized(this) {\n result = metaDataCache;\n if(result == null) {\n long maxTTL = config.getLong(\n QueryServices.MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS);\n long maxSize = config.getLongBytes(\n QueryServices.MAX_SERVER_METADATA_CACHE_SIZE_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_SIZE);\n metaDataCache = result = CacheBuilder.newBuilder()\n .maximumWeight(maxSize)\n .expireAfterAccess(maxTTL, TimeUnit.MILLISECONDS)\n .weigher(new Weigher<ImmutableBytesPtr, PMetaDataEntity>() {\n @Override\n public int weigh(ImmutableBytesPtr key, PMetaDataEntity table) {\n return SizedUtil.IMMUTABLE_BYTES_PTR_SIZE + key.getLength() + table.getEstimatedSize();\n }\n })\n .build();\n }\n }\n }\n return result;\n }", "@Override\n\tpublic Meta_data get_Meta_data() {\n\t\tMeta_data meta_data = new Meta_data_layer(elements);\n\t\treturn meta_data;\n\t}", "@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata();", "@java.lang.Override\n public com.google.protobuf.Struct getMetadata() {\n return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;\n }", "T getObject() {\n\t\t\treturn data;\n\t\t}", "@Override\r\n\tpublic Map<String, Object> getMetadata() {\n\t\treturn null;\r\n\t}", "public Object getObject() {\n return getObject(null);\n }", "@Override\n public Object getMetadata(String key) {\n return null;\n }", "private OWSMetadata getOWSMetadata( Element element, String xPath, NamespaceContext nsContext )\n throws XMLParsingException {\n\n Element child = (Element) XMLTools.getNode( element, xPath, nsContext );\n\n if ( child == null ) {\n return null;\n }\n\n // attrib about\n URI about = XMLTools.getNodeAsURI( child, \"@about\", nsContext, null );\n\n // attribs for SimpleLink\n URI href = XMLTools.getNodeAsURI( child, \"@xlink:href\", nsContext, null );\n URI role = XMLTools.getNodeAsURI( child, \"@xlink:role\", nsContext, null );\n URI arcrole = XMLTools.getNodeAsURI( child, \"@xlink:arcrole\", nsContext, null );\n String title = XMLTools.getNodeAsString( child, \"@xlink:title\", nsContext, null );\n String show = XMLTools.getNodeAsString( child, \"@xlink:show\", nsContext, null );\n String actuate = XMLTools.getNodeAsString( child, \"@xlink:actuate\", nsContext, null );\n\n // ows:name (ows:AbstractMetaData)\n String name = XMLTools.getNodeAsString( child, \"text()\", nsContext, null );\n\n SimpleLink link = new SimpleLink( href, role, arcrole, title, show, actuate );\n\n return new OWSMetadata( about, link, name );\n }", "public URL getInfo() {\n return info;\n }", "@Nullable\n public ElementMetadata getMetadata() {\n if (mImpl.hasMetadata()) {\n return ElementMetadata.fromProto(mImpl.getMetadata());\n } else {\n return null;\n }\n }", "@Deprecated\n public V1ObjectMeta getMetadata() {\n return this.metadata!=null ?this.metadata.build():null;\n }", "public java.lang.CharSequence getTargetObjectUri() {\n return target_object_uri;\n }", "@JsonProperty(\"metadata\")\n @ApiModelProperty(value = \"The metadata for the dialog node.\")\n public Object getMetadata() {\n return metadata;\n }", "public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }", "public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }", "public JobMetadata getMetaData() {\n return this.metaData;\n }", "public WorkspaceUserMetadata getMetadata() {\n\t\t\treturn meta;\n\t\t}", "public org.apache.xmlbeans.XmlObject getPDMessageMetadataExtensionAbstract()\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(PDMESSAGEMETADATAEXTENSIONABSTRACT$1, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }", "public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }", "public DBMetaDataSet getMetaData()\n\t{\n\t\treturn _MetaData;\n\t}", "public java.lang.CharSequence getTargetObjectUri() {\n return target_object_uri;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"{\\\"jira\\\":{\\\"issue_id\\\":\\\"value\\\"}}\", value = \"Metadata attached to the incident. Top level values must be objects.\")\n\n public Object getMetadata() {\n return metadata;\n }", "public WorkspaceUserMetadata getMetadata() {\n\t\treturn meta;\n\t}", "@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() {\n return this.metadata!=null ?this.metadata.build():null;\n }", "public MetadataEntry getMetadata(int index) {\n if (metadataBuilder_ == null) {\n return metadata_.get(index);\n } else {\n return metadataBuilder_.getMessage(index);\n }\n }", "public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null\n ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()\n : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "public ManagedConnectionMetaData getMetaData() throws ResourceException {\n checkIfDestroyed();\n return new ManagedConnectionMetaDataImpl(this);\n }", "@Override\n public String getMetadata(DOI doi) throws DoiException {\n Response<String> response = dataCiteClient.getMetadata(doi.getDoiName());\n throwExceptionOnBadResponse(response);\n return response.body();\n }", "public List<Metadata> getMetadata()\n\t{\n\t\treturn mMetadata;\n\t}", "public ObjectReference getObjectReference() {\n return new ObjectReferenceBuilder()\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withNamespace(getMetaspace())\n .withUid(getMetadata().getUid())\n .build();\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "public org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? org.apache.calcite.avatica.proto.Responses.RpcMetadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();" ]
[ "0.63428324", "0.6197722", "0.60987693", "0.60084593", "0.59983957", "0.59555644", "0.5939654", "0.5906317", "0.58233744", "0.5800869", "0.5778253", "0.56996655", "0.56665105", "0.565169", "0.5591946", "0.5581464", "0.55804783", "0.5561097", "0.5559915", "0.55162454", "0.5489068", "0.54783785", "0.5473158", "0.54689395", "0.5467224", "0.5456781", "0.53893894", "0.53880864", "0.53842324", "0.53490615", "0.53386116", "0.53386116", "0.52820945", "0.5257015", "0.5237284", "0.522936", "0.5208709", "0.5182143", "0.5175843", "0.51449716", "0.5124519", "0.51199263", "0.51144", "0.51035964", "0.5095953", "0.50849414", "0.50794435", "0.5062715", "0.5037933", "0.49997458", "0.49987736", "0.49927092", "0.49844724", "0.49835393", "0.49779758", "0.4968697", "0.49569634", "0.49554646", "0.49512005", "0.49275982", "0.49266455", "0.49245837", "0.4920929", "0.49167973", "0.49167973", "0.49132863", "0.4895021", "0.4888675", "0.4883986", "0.4883986", "0.48599127", "0.4859887", "0.4859072", "0.48568124", "0.48473677", "0.4846433", "0.48438326", "0.48430863", "0.48430863", "0.48294523", "0.48268926", "0.4820194", "0.48077592", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.47998467", "0.479038", "0.479038", "0.479038" ]
0.5830736
8
Return the string representation of this DIDURL object. If the base DID isn't null, the result will be a relative representation.
protected String toString(DID context) { StringBuilder builder = new StringBuilder(512); if (did != null && (context == null || !did.equals(context))) builder.append(did); if (path != null && !path.isEmpty()) builder.append(path); if (query != null && !query.isEmpty()) builder.append("?").append(getQueryString()); if (fragment != null && !fragment.isEmpty()) builder.append("#").append(getFragment()); return builder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getURLStringToPersist() {\n return getURLStringImpl(null, null, false);\n }", "public String toString() {\n return getURLString();\n }", "public DsByteString getURIAsString() {\n DsURI uri = null;\n return (m_nameAddress != null && (uri = m_nameAddress.getURI()) != null)\n ? uri.getValue()\n : null;\n }", "@Override\n\tpublic String toString() {\n\t\treturn getFullPath();\n\t}", "@Override\n public String toString() {\n return ArrayHelper.join(this.toArray(new Part[0]), \"/\");\n }", "public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}", "public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String toString()\n {\n return url.toString();\n }", "@Override\r\n public String toString() {\r\n return getURI();\r\n }", "public String toString() {\n return (isRelative() ? \"\" : \"(not relative)\") + getName() + \": \" +\n getClassName();\n }", "public String encodeToUrlString() throws IOException {\n return encodeWritable(this);\n }", "@Override\n public String toString() {\n final ToString ts = new ToString(this);\n\n ts.append(\"path\", getPath());\n\n return ts.toString();\n }", "java.lang.String getDidUri();", "@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }", "public String getBaseUri() {\n\t\treturn baseUri;\n\t}", "@XmlElement\r\n\tpublic String getMyUrl() {\r\n\t\tString ret = null;\r\n\t\tif (null != getId()) {\r\n\t\t\tret = String.format(\"%s/category/%s-%s\", SuperContainer.BaseUrl, getId() + \"\", getUrl());\r\n\t\t\t\r\n\t\t\t// Always add html to the end\r\n\t\t\tif(!getUrl().endsWith(\".html\")) {\r\n\t\t\t\tret = ret + \".html\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn path.toString();\n\t}", "@JsonIgnore\n\tpublic String getAbsoluteURI() {\n\t\treturn path.toUri().toString();\n\t}", "public String toString() {\n StringBuffer buf = new StringBuffer();\n\n // Append context-path\n buf.append(contextPath);\n\n // Append real path (path besides control params, think \"niceuri\")\n if (realPath != null) {\n buf.append(realPath);\n }\n\n // Append \"control-parameters\"\n if (!pathParams.isEmpty()) {\n buf.append(\"/\");\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n String[] values = (String[]) pathParams.get(name);\n buf.append(name);\n buf.append(\"/\");\n buf.append(PathParser.encodeValues(values));\n\n if (iter.hasNext()) {\n buf.append(\"/\");\n }\n }\n }\n\n // Append servlet-path (infoglue-action)\n if (webWorkAction != null) {\n buf.append(\"/\");\n buf.append(webWorkAction);\n }\n\n // Append query-parameters\n if (!queryParams.isEmpty()) {\n buf.append(\"?\");\n for (Iterator iter = queryParams.keySet().iterator(); iter.hasNext();) {\n // Iterating over names\n String name = (String) iter.next();\n String[] values = (String[]) queryParams.get(name);\n for (int i = 0; i < values.length; i++) {\n // Iterating over values\n buf.append(name);\n buf.append(\"=\");\n buf.append(values[i]);\n if (i < values.length - 1) {\n buf.append(\"&\");\n }\n }\n if (iter.hasNext()) {\n buf.append(\"&\");\n }\n }\n }\n\n // Append local navigation (reference)\n if (local != null && local.length() > 0) {\n buf.append(\"#\");\n buf.append(local);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Generated URL: \" + buf.toString());\n }\n return buf.toString();\n }", "public String toFQN() {\n return MessageFormat.format(\"{0}/{1}:{2}\", this.getUser(), this.getRepository(), this.getReference());\n }", "public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String toPathString() {\n return path();\n }", "com.google.protobuf.ByteString\n getDidUriBytes();", "public String getEncodedPath() {\n return getEncodedPath(false);\n }", "@Override\n public String toString()\n {\n return extensionURI.toString() + \";\" + getDirection();\n }", "@Override\n\tpublic String toString() {\n\t\tif (m_URL != null) {\n\t\t\tString path = m_URL.getPath();\n\t\t\tString rt = null;\n\t\t\tif (path.endsWith(ServerConstants.CONSUMER_SERVICE_NAME)) {\n\t\t\t\trt = \"C\";\n\t\t\t} else if (path.endsWith(ServerConstants.PRIMARY_PRODUCER_SERVICE_NAME)) {\n\t\t\t\trt = \"PP\";\n\t\t\t} else if (path.endsWith(ServerConstants.SECONDARY_PRODUCER_SERVICE_NAME)) {\n\t\t\t\trt = \"SP\";\n\t\t\t} else if (path.endsWith(ServerConstants.ONDEMAND_PRODUCER_SERVICE_NAME)) {\n\t\t\t\trt = \"ODP\";\n\t\t\t}\n\t\t\treturn \"[\" + rt + \":\" + m_URL.getHost() + \"/\" + m_resourceID + \"]\";\n\t\t}\n\t\treturn \"[null/\" + m_resourceID + \"]\";\n\t}", "public abstract String getPath(boolean urlEncode, boolean includeOwner) throws\n\t\t\tUnsupportedEncodingException;", "public String toString() {\n StringBuffer uriSpecString = new StringBuffer();\n \n if (m_scheme != null) {\n uriSpecString.append(m_scheme);\n uriSpecString.append(':');\n }\n uriSpecString.append(getSchemeSpecificPart());\n return uriSpecString.toString();\n }", "public String toString() {\r\n\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n\t\tbuffer.append(\"iddiaryresource=[\").append(iddiaryresource).append(\"] \");\r\n\t\tbuffer.append(\"typediaryresource=[\").append(typediaryresource).append(\"] \");\r\n\t\tbuffer.append(\"urldiaryresource=[\").append(urldiaryresource).append(\"] \");\r\n\r\n\t\treturn buffer.toString();\r\n\t}", "@Override\n public String toString() {\n StringBuilder buff = new StringBuilder();\n\n buff.append(\" refex:\");\n buff.append(informAboutUuid(this.refexUuid));\n buff.append(\" component:\");\n buff.append(informAboutUuid(this.componentUuid));\n buff.append(\" \");\n buff.append(super.toString());\n\n return buff.toString();\n }", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public String toString(boolean encode) {\n StringBuilder url = new StringBuilder();\n boolean addSlash = true;\n\n //Protocol\n url.append(super.getProtocol());\n\n //Media-Type\n if(mediaType != null){\n url.append(mediaType);\n }\n\n //Base64\n if(base64){\n url.append(\";base64\");\n }\n\n //Data\n //# Throw an error if the data is null or empty\n if(data == null || data.isEmpty())\n throw new URLBuildException(\"Data is null or empty. Data must be set to build a data url.\");\n\n String dataPrepared = data;\n\n if(base64)\n dataPrepared = Base64.getEncoder().encodeToString(dataPrepared.getBytes());\n\n if(encode && !base64)\n dataPrepared = encode(dataPrepared);\n\n url.append(\",\").append(dataPrepared);\n\n return url.toString();\n }", "public String toString() {\n if (this.data.isEmpty()) {\n return super.toString();\n }\n return BytesUtil.bytes2HexString(toBinary());\n }", "@Override\r\n public String getURI() {\r\n if (uriString == null) {\r\n uriString = createURI();\r\n }\r\n return uriString;\r\n }", "String getBaseUri();", "public String getURLString() {\n StringBuffer text = new StringBuffer(\"jms:/\");\n text.append(getDestination());\n text.append(\"?\");\n Map props = (Map)properties.clone();\n boolean firstEntry = true;\n for(Iterator itr=properties.keySet().iterator(); itr.hasNext();) {\n String key = (String)itr.next();\n if (!firstEntry) {\n text.append(\"&\");\n }\n if (appProperties.contains(key)) {\n text.append(JMSConstants._MSG_PROP_PREFIX);\n }\n text.append(key);\n text.append(\"=\");\n text.append(props.get(key));\n firstEntry = false;\n }\n return text.toString();\n }", "public NameValue<String, String> getDestURL() {\n return getDestURL(false);\n }", "public String get() {\n final String[] parts = this.origin.string().replaceAll(\"/$\", \"\").split(\"/\");\n return parts[parts.length - 1];\n }", "public String href() {\r\n if (parent == null) {\r\n return name;\r\n //return encodedName();\r\n } else {\r\n //return parent.href() + encodedName();\r\n return parent.href() + name;\r\n }\r\n }", "public String toString() {\n return this.address.toString();\n }", "public String getBaseLinkUrl() {\n return (String) get(\"base_link_url\");\n }", "protected String getDestinationString() {\n return getClass().getName() + \".\" + getName(true);\n }", "private String getBaseUri() {\n\t\treturn null;\n\t}", "@Override\n public String toString() {\n return MoreObjects.toStringHelper(this) //\n .add(\"name\", getName()) //\n .add(\"phNumber\", getPhNumber()) //\n .add(\"emailId\", getEmailId()) //\n .add(\"parent\", getParent()) //\n .toString();\n }", "public URL getBaseHref() {\n return baseHref;\n }", "public String url() {\n return server.baseUri().toString();\n }", "public final String getPathDescription()\n {\n if (tryGetHost() == null)\n {\n return getCanonicalPath();\n } else\n {\n if (tryGetRsyncModule() == null)\n {\n return tryGetHost() + HOST_FILE_SEP + getPath();\n } else\n {\n return tryGetHost() + HOST_FILE_SEP + tryGetRsyncModule() + HOST_FILE_SEP\n + getPath();\n }\n }\n }", "public String getFullPath()\n {\n return( fullPath );\n }", "java.lang.String getUri();", "java.lang.String getUri();", "@Override\n public String toString() {\n return endpoint;\n }", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"(relation \" +\n\t\t\t\t(this.source != null ? this.source.getId() : \"nil\") + \" \" +\n\t\t\t\tthis.name.toString() + \" \" +\n\t\t\t\t(this.dest != null ? this.dest.toString() : \"nil\") + \")\";\n\t}", "public String getRelativePath() {\n if (repository == null) {\n return name;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(name);\n return b.toString();\n }\n }", "public String toString() { return stringify(this, true); }", "public String getDN() {\n\t\treturn url.getDN();\n }", "public String toString() {\n StringBuffer aBuffer = new StringBuffer(super.toString());\n aBuffer.append(\"[id=\").append(_theId).\n append(\" parent=\").append(_theParent).\n append(\" paths=\").append(_thePaths).\n append(\"]\");\n\n return aBuffer.toString();\n }", "public java.lang.String getProfileURL() {\n java.lang.Object ref = profileURL_;\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 profileURL_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getUriBytes();", "com.google.protobuf.ByteString\n getUriBytes();", "@Override\n public String getUrl() {\n StringBuilder sb = new StringBuilder(baseUrl);\n if (mUrlParams.size() > 0) {\n sb.append(\"?\");\n for (String key : mUrlParams.keySet()) {\n sb.append(key);\n sb.append(\"=\");\n sb.append(mUrlParams.get(key));\n sb.append(\"&\");\n }\n }\n String result = sb.substring(0, sb.length() - 1);\n return result;\n }", "public String asRelativeReference() {\n return member == null ? name : name + \"$\" + member;\n }", "public String toString() {\n\t\tcheckRep();\n\t\treturn (this.getLabel() + \" pointing to \" + this.getChild());\n\t}", "public java.lang.CharSequence getURL() {\n return URL;\n }", "public String getQualifiedName() {\n if (probe.getHost() != null) {\n return probe.getHost().getName() + \"/\" + getName();\n } else {\n return \"/\" + getName();\n }\n }", "public String getStringID() {\r\n\t\treturn uri.getPath();\r\n\t}", "public String getPhysicalURI()\n {\n return physicalURI;\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.getFullName();\n\t}", "public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor (String str : this) {\r\n\t\t\tif (sb.length() > 0) {\r\n\t\t\t\tsb.append(PATH_SEPARATOR);\r\n\t\t\t}\r\n\t\t\tsb.append(str);\r\n\t\t}\r\n\t\treturn sb.toString().toLowerCase();\r\n\t}", "public String toString()\n {\n return id() + location().toString() + direction().toString();\n }", "public String getBase()\n {\n return base;\n }", "public java.lang.String getTargetPath() {\n java.lang.Object ref = targetPath_;\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 targetPath_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCurrentURL () {\n synchronized (currentLock) {\n if (currentURL != null) {\n return currentURL;\n }\n }\n DataObject[] nodes = (DataObject[])resDataObject.allInstances().toArray(new DataObject[0]);\n // Lookup, as a side-effect, can call lookup listeners and do whatever it wants. Do not call under a lock.\n synchronized (currentLock) {\n if (currentURL == null) {\n currentURL = \"\";\n if (nodes.length != 1)\n return currentURL;\n \n DataObject dO = nodes[0];\n if (dO instanceof DataShadow)\n dO = ((DataShadow) dO).getOriginal ();\n \n try {\n currentURL = dO.getPrimaryFile ().getURL ().toString ();\n } catch (FileStateInvalidException ex) {\n //noop\n }\n }\n \n return currentURL;\n }\n }", "public String toString() {\n return \"/\" + toIdent(0);\n }", "public String getQualifiedName() {\n if(probe.getHost() != null) {\n return probe.getHost().getName() + \"/\" + getName();\n } else {\n return \"/\" + getName();\n }\n }", "public String toString() {\n\t\treturn BlobUtil.string(buffer, offset, size);\n\t}", "public String toString() {\n return this.UID;\n }", "@ZAttr(id=675)\n public String getHelpDelegatedURL() {\n return getAttr(Provisioning.A_zimbraHelpDelegatedURL, null);\n }", "public java.lang.CharSequence getURL() {\n return URL;\n }", "public String toString()\r\n {\r\n StringBuffer buffer = new StringBuffer(30);\r\n\r\n buffer.append(this.url);\r\n\r\n if (this.parameters.size() > 0)\r\n {\r\n buffer.append('?');\r\n Set parameterSet = this.parameters.entrySet();\r\n\r\n Iterator iterator = parameterSet.iterator();\r\n\r\n while (iterator.hasNext())\r\n {\r\n Map.Entry entry = (Map.Entry) iterator.next();\r\n\r\n Object key = entry.getKey();\r\n Object value = entry.getValue();\r\n\r\n if (value == null)\r\n {\r\n buffer.append(key).append('='); // no value\r\n }\r\n else if (value.getClass().isArray())\r\n {\r\n Object[] values = (Object[]) value;\r\n for (int i = 0; i < values.length; i++)\r\n {\r\n if (i > 0)\r\n {\r\n buffer.append(TagConstants.AMPERSAND);\r\n }\r\n\r\n buffer.append(key).append('=').append(values[i]);\r\n }\r\n }\r\n else\r\n {\r\n buffer.append(key).append('=').append(value);\r\n }\r\n\r\n if (iterator.hasNext())\r\n {\r\n buffer.append(TagConstants.AMPERSAND);\r\n }\r\n }\r\n }\r\n\r\n if (this.anchor != null)\r\n {\r\n buffer.append('#');\r\n buffer.append(this.anchor);\r\n }\r\n\r\n return buffer.toString();\r\n }", "public String toLocalPath() {\n\n String parentPath = parent.toLocalPath();\n return StringUtils.isBlank(parentPath)\n ? element.getElement()\n : new StringBuilder()\n .append(parentPath)\n .append('.')\n .append(element.getElement())\n .toString();\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tString _infoReferencia = String.format(\"INFORMACIÓN DE REFERENCIA:\\n--------------------------------------\\n\"\r\n\t\t\t\t\t\t\t\t\t\t\t + \"Código de referencias: %s\\n\", this._codigoReferencia);\r\n\t\t\r\n\t\treturn _infoReferencia + super.toString();\r\n\t}", "public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null || this.getId() == 1)\n {\n buff.insert(0, '/');\n }\n }\n return buff.toString();\n }", "public java.lang.String getProfileURL() {\n java.lang.Object ref = profileURL_;\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 profileURL_ = s;\n return s;\n }\n }", "public String getUrl() {\n Object ref = url_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public final String toString() {\n\n\t\t// Build the file information string\n\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Add the file information string\n\n\t\tstr.append(m_info.toString());\n\n\t\t// Append the SMB file id\n\n\t\tstr.append(\" ,FID=\");\n\t\tstr.append(m_FID);\n\n\t\t// Return the string\n\n\t\treturn str.toString();\n\t}", "public java.lang.String getURL() {\n return uRL;\n }", "public String toString() {\n return path + RegistryConstants.URL_SEPARATOR + \"version:\" + version;\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.f.getPath();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn this.filePath.toString();\n\t}", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn MoreObjects.toStringHelper(this) //\r\n\t\t\t\t.add(\"id\", getId()) //\r\n\t\t\t\t.add(\"parameter\", getParameter()) //\r\n\t\t\t\t.add(\"value\", getValue()) //\r\n\t\t\t\t.add(\"hieraAddress\", getHieraAddress()) //\r\n\t\t\t\t.toString();\r\n\t}", "public String getUrl() {\n Object ref = url_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getUrl() {\n Object ref = url_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n url_ = s;\n }\n return s;\n }\n }", "public String getHyperlinkBase()\r\n {\r\n return (m_hyperlinkBase);\r\n }", "public String toStringWithRelation() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(toString());\r\n String l = \"\\n \";\r\n if (_member != null)\r\n { sb.append(l).append(xbRDS(_member, \"member\")); }\r\n if (_region != null)\r\n { sb.append(l).append(xbRDS(_region, \"region\")); }\r\n return sb.toString();\r\n }" ]
[ "0.62573624", "0.62072694", "0.6113777", "0.60970336", "0.6013392", "0.59069616", "0.5822439", "0.58046913", "0.57899517", "0.5775824", "0.57530516", "0.5659652", "0.5651059", "0.55726993", "0.55656725", "0.5530991", "0.552559", "0.5516717", "0.549702", "0.54726464", "0.5449334", "0.54485106", "0.5437367", "0.54286486", "0.54259294", "0.542054", "0.53852075", "0.5382383", "0.537931", "0.5376518", "0.5376453", "0.53632265", "0.5361831", "0.53451616", "0.5340986", "0.53353006", "0.53258014", "0.53253704", "0.5318811", "0.531754", "0.53162056", "0.53050727", "0.5295705", "0.5280341", "0.52727133", "0.5260504", "0.52603453", "0.5255086", "0.52356786", "0.5232009", "0.5230804", "0.5230804", "0.5225913", "0.52252036", "0.522263", "0.52194357", "0.5219068", "0.5210096", "0.519997", "0.5199901", "0.519775", "0.519775", "0.51964355", "0.5177048", "0.5167104", "0.51646847", "0.5158987", "0.5155181", "0.51539594", "0.5151667", "0.5146801", "0.51431984", "0.5114154", "0.5112467", "0.51053566", "0.5103825", "0.51034296", "0.5100587", "0.5100562", "0.5099343", "0.5099158", "0.5094512", "0.5094377", "0.5090708", "0.50874203", "0.5080207", "0.5079457", "0.5075176", "0.50742185", "0.50739366", "0.5073179", "0.5072193", "0.5062932", "0.5062601", "0.50524867", "0.50345564", "0.5028526", "0.5027727", "0.50264984", "0.50131744" ]
0.57053095
11
Return the string representation of this DIDURL object.
@Override public String toString() { if (repr == null) repr = toString(null); return repr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n return getURLString();\n }", "public String toString()\n {\n return url.toString();\n }", "String getURLStringToPersist() {\n return getURLStringImpl(null, null, false);\n }", "@Override\r\n public String toString() {\r\n return getURI();\r\n }", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "public String toString()\r\n {\r\n StringBuffer buffer = new StringBuffer(30);\r\n\r\n buffer.append(this.url);\r\n\r\n if (this.parameters.size() > 0)\r\n {\r\n buffer.append('?');\r\n Set parameterSet = this.parameters.entrySet();\r\n\r\n Iterator iterator = parameterSet.iterator();\r\n\r\n while (iterator.hasNext())\r\n {\r\n Map.Entry entry = (Map.Entry) iterator.next();\r\n\r\n Object key = entry.getKey();\r\n Object value = entry.getValue();\r\n\r\n if (value == null)\r\n {\r\n buffer.append(key).append('='); // no value\r\n }\r\n else if (value.getClass().isArray())\r\n {\r\n Object[] values = (Object[]) value;\r\n for (int i = 0; i < values.length; i++)\r\n {\r\n if (i > 0)\r\n {\r\n buffer.append(TagConstants.AMPERSAND);\r\n }\r\n\r\n buffer.append(key).append('=').append(values[i]);\r\n }\r\n }\r\n else\r\n {\r\n buffer.append(key).append('=').append(value);\r\n }\r\n\r\n if (iterator.hasNext())\r\n {\r\n buffer.append(TagConstants.AMPERSAND);\r\n }\r\n }\r\n }\r\n\r\n if (this.anchor != null)\r\n {\r\n buffer.append('#');\r\n buffer.append(this.anchor);\r\n }\r\n\r\n return buffer.toString();\r\n }", "public String toString() { return stringify(this, true); }", "public String toString() {\n return this.address.toString();\n }", "public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString()\r\n\t{\r\n\t\tString UrlValues = \"\"+this.stringID+\";\"+this.baseUrl+\";\"+this.redirectedUrl+\";\"+this.responseCode+\";\"+this.exceptionOccurred+\";\"+this.configUrlPattern+\";\"+this.configRedirectedUrlPattern+\";\"+this.configEngUrl+\";\"+this.configEngRedirectedUrl+\";\"+this.isErrorPage+\";\"+this.isDeleted+\";\"+this.baseUrlPatternMatchResult+\";\"+this.redirectedUrlPatternMatchResult+\";\"+this.isBaseUrlLocalized+\";\"+this.isRedirectedUrlLocalized+\";\"+this.followsConfigUrlPattern+\";\"+this.followsConfigRedirectedUrlPattern+\";\";\r\n\t\treturn UrlValues;\r\n\t}", "public String encodeToUrlString() throws IOException {\n return encodeWritable(this);\n }", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" {\");\n sb.append(\" \\\"fileid\\\":\\\"\").append(fileid);\n sb.append(\", \\\"filename\\\":\\\"\").append(filename);\n sb.append(\", \\\"fileupdate\\\":\\\"\").append(fileupdate);\n sb.append(\", \\\"filepath\\\":\\\"\").append(filepath);\n sb.append(\", \\\"fileuploader\\\":\\\"\").append(fileuploader);\n sb.append(\", \\\"isdelete\\\":\\\"\").append(isdelete);\n sb.append(\", \\\"filedesc\\\":\\\"\").append(filedesc);\n sb.append(\", \\\"filetype\\\":\\\"\").append(filetype);\n sb.append(\"\\\"}\");\n return sb.toString();\n }", "public String toString() {\r\n\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n\t\tbuffer.append(\"iddiaryresource=[\").append(iddiaryresource).append(\"] \");\r\n\t\tbuffer.append(\"typediaryresource=[\").append(typediaryresource).append(\"] \");\r\n\t\tbuffer.append(\"urldiaryresource=[\").append(urldiaryresource).append(\"] \");\r\n\r\n\t\treturn buffer.toString();\r\n\t}", "@Override\n public String toString() {\n return curlRepresentation();\n }", "public String toString() {\n if (this.data.isEmpty()) {\n return super.toString();\n }\n return BytesUtil.bytes2HexString(toBinary());\n }", "public String toString() {\n\t\treturn BlobUtil.string(buffer, offset, size);\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\treturn new String(bytes);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s %s %s %b %s\", this.email, this.photoURL, this.getDisplayName(), this.isEmailVerified(),\n\t\t\t\tthis.getAccessToken());\n\t}", "public String toString(boolean encode) {\n StringBuilder url = new StringBuilder();\n boolean addSlash = true;\n\n //Protocol\n url.append(super.getProtocol());\n\n //Media-Type\n if(mediaType != null){\n url.append(mediaType);\n }\n\n //Base64\n if(base64){\n url.append(\";base64\");\n }\n\n //Data\n //# Throw an error if the data is null or empty\n if(data == null || data.isEmpty())\n throw new URLBuildException(\"Data is null or empty. Data must be set to build a data url.\");\n\n String dataPrepared = data;\n\n if(base64)\n dataPrepared = Base64.getEncoder().encodeToString(dataPrepared.getBytes());\n\n if(encode && !base64)\n dataPrepared = encode(dataPrepared);\n\n url.append(\",\").append(dataPrepared);\n\n return url.toString();\n }", "public DsByteString getURIAsString() {\n DsURI uri = null;\n return (m_nameAddress != null && (uri = m_nameAddress.getURI()) != null)\n ? uri.getValue()\n : null;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}", "public String toString() {\n return Util.bytesToHex(getByteArray());\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn MoreObjects.toStringHelper(this) //\r\n\t\t\t\t.add(\"id\", getId()) //\r\n\t\t\t\t.add(\"parameter\", getParameter()) //\r\n\t\t\t\t.add(\"value\", getValue()) //\r\n\t\t\t\t.add(\"hieraAddress\", getHieraAddress()) //\r\n\t\t\t\t.toString();\r\n\t}", "public String toString() {\r\n\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\r\n\t\tbuffer.append(\"title=[\").append(title).append(\"] \");\r\n\t\tbuffer.append(\"content=[\").append(content).append(\"] \");\r\n\t\tbuffer.append(\"shareDate=[\").append(shareDate).append(\"] \");\r\n\t\tbuffer.append(\"isPrivate=[\").append(isPrivate).append(\"] \");\r\n\r\n\t\treturn buffer.toString();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tif (m_URL != null) {\n\t\t\tString path = m_URL.getPath();\n\t\t\tString rt = null;\n\t\t\tif (path.endsWith(ServerConstants.CONSUMER_SERVICE_NAME)) {\n\t\t\t\trt = \"C\";\n\t\t\t} else if (path.endsWith(ServerConstants.PRIMARY_PRODUCER_SERVICE_NAME)) {\n\t\t\t\trt = \"PP\";\n\t\t\t} else if (path.endsWith(ServerConstants.SECONDARY_PRODUCER_SERVICE_NAME)) {\n\t\t\t\trt = \"SP\";\n\t\t\t} else if (path.endsWith(ServerConstants.ONDEMAND_PRODUCER_SERVICE_NAME)) {\n\t\t\t\trt = \"ODP\";\n\t\t\t}\n\t\t\treturn \"[\" + rt + \":\" + m_URL.getHost() + \"/\" + m_resourceID + \"]\";\n\t\t}\n\t\treturn \"[null/\" + m_resourceID + \"]\";\n\t}", "public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}", "public String getURLString() {\n StringBuffer text = new StringBuffer(\"jms:/\");\n text.append(getDestination());\n text.append(\"?\");\n Map props = (Map)properties.clone();\n boolean firstEntry = true;\n for(Iterator itr=properties.keySet().iterator(); itr.hasNext();) {\n String key = (String)itr.next();\n if (!firstEntry) {\n text.append(\"&\");\n }\n if (appProperties.contains(key)) {\n text.append(JMSConstants._MSG_PROP_PREFIX);\n }\n text.append(key);\n text.append(\"=\");\n text.append(props.get(key));\n firstEntry = false;\n }\n return text.toString();\n }", "@Override\n public String toString() {\n return endpoint;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn Base64.encode(mByteList);\r\n\t}", "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tJsonObject jo = new JsonObject();\r\n\t\t\r\n\t\tjo.addProperty(\"IssuerInfo\", issuerInfo.toString());\r\n\t\tjo.addProperty(\"SubjectInfo\", subjectInfo.toString());\r\n\t\tjo.addProperty(\"AccessRights\", accessRights.toString());\r\n\t\tjo.addProperty(\"ResourceID\", resourceId);\r\n\t\tjo.addProperty(\"ValidityCondition\", validityCondition.toString());\r\n\t\tjo.addProperty(\"RevocationURL\", revocationUrl);\r\n\t\tString sig = \"\";\r\n\t\tfor(byte b : digitalSignature){\r\n\t\t\tsig = sig + Integer.toHexString(0xFF & b);\r\n\t\t}\r\n\t\tjo.addProperty(\"DigitalSignature\", sig);\r\n\t\t\r\n\t\treturn jo.toString();\r\n\t}", "@Override\n public String toString() {\n return gson.toJson(this);\n }", "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "public String toString() {\n \t\tStringBuffer retval = new StringBuffer();\r\n \t\tretval.append(address.toString());\r\n \t\tif ( parameters.size() != 0 ) retval.append(\";\").append(parameters.toString());\r\n \t\treturn retval.toString();\r\n \t}", "@Override\n public String toString() {\n final ToString ts = new ToString(this);\n\n ts.append(\"path\", getPath());\n\n return ts.toString();\n }", "public String toString() {\r\n\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\r\n\r\n\t\treturn buffer.toString();\r\n\t}", "public String toString() {\n return this.UID;\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String getAsString() {\n\t\treturn new String(this.getAsBytes());\n\t}", "@Override\n public String toString() {\n return encodedHash.get();\n }", "@Override\n public String toString() {\n return ArrayHelper.join(this.toArray(new Part[0]), \"/\");\n }", "public String toString() {\n StringBuffer buf = new StringBuffer();\n\n // Append context-path\n buf.append(contextPath);\n\n // Append real path (path besides control params, think \"niceuri\")\n if (realPath != null) {\n buf.append(realPath);\n }\n\n // Append \"control-parameters\"\n if (!pathParams.isEmpty()) {\n buf.append(\"/\");\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n String[] values = (String[]) pathParams.get(name);\n buf.append(name);\n buf.append(\"/\");\n buf.append(PathParser.encodeValues(values));\n\n if (iter.hasNext()) {\n buf.append(\"/\");\n }\n }\n }\n\n // Append servlet-path (infoglue-action)\n if (webWorkAction != null) {\n buf.append(\"/\");\n buf.append(webWorkAction);\n }\n\n // Append query-parameters\n if (!queryParams.isEmpty()) {\n buf.append(\"?\");\n for (Iterator iter = queryParams.keySet().iterator(); iter.hasNext();) {\n // Iterating over names\n String name = (String) iter.next();\n String[] values = (String[]) queryParams.get(name);\n for (int i = 0; i < values.length; i++) {\n // Iterating over values\n buf.append(name);\n buf.append(\"=\");\n buf.append(values[i]);\n if (i < values.length - 1) {\n buf.append(\"&\");\n }\n }\n if (iter.hasNext()) {\n buf.append(\"&\");\n }\n }\n }\n\n // Append local navigation (reference)\n if (local != null && local.length() > 0) {\n buf.append(\"#\");\n buf.append(local);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Generated URL: \" + buf.toString());\n }\n return buf.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}", "public String toString() {\n StringBuffer uriSpecString = new StringBuffer();\n \n if (m_scheme != null) {\n uriSpecString.append(m_scheme);\n uriSpecString.append(':');\n }\n uriSpecString.append(getSchemeSpecificPart());\n return uriSpecString.toString();\n }", "@Override\n public String toString() {\n return (this.str);\n }", "@Override\n\tpublic String toString() {\n\t\treturn getFullPath();\n\t}", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public String toString() {\n return MoreObjects.toStringHelper(this) //\n .add(\"name\", getName()) //\n .add(\"phNumber\", getPhNumber()) //\n .add(\"emailId\", getEmailId()) //\n .add(\"parent\", getParent()) //\n .toString();\n }", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"socket://\");\n builder.append(addr.getHostString());\n builder.append(\":\");\n builder.append(addr.getPort());\n return builder.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn path.toString();\n\t}", "public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n }\n }", "@Override\n public String toString() {\n return Objects.toStringHelper(this)\n .addValue(this.id)\n .addValue(this.name)\n .addValue(this.author)\n .addValue(this.description)\n .addValue(this.pictureOfCover)\n .toString();\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn this.str;\n\t}", "public String toString()\n {\n return id() + location().toString() + direction().toString();\n }", "public String toString() {\n\t\treturn toString(this);\n\t}", "@Override\n public String toString()\n {\n return extensionURI.toString() + \";\" + getDirection();\n }", "@java.lang.Override\n public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public final String toString() {\n return asString(0, 4);\n }", "@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "public String getUrl() {\n Object ref = url_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Override\n public String toString()\n {\n StringBuffer buffer = new StringBuffer();\n Enumeration<String> hosts;\n\n buffer.append('<');\n\n hosts = _path.elements();\n\n if (hosts.hasMoreElements())\n {\n buffer.append('@');\n buffer.append(hosts.nextElement());\n\n while (hosts.hasMoreElements())\n {\n buffer.append(\",@\");\n buffer.append(hosts.nextElement());\n }\n buffer.append(':');\n }\n\n buffer.append(_emailAddress);\n buffer.append('>');\n\n return buffer.toString();\n }", "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "public String toString() {\n StringBuffer result = new StringBuffer(this.m_content.length() + 2);\n result.append('\"');\n if (this.m_content != null) result.append(escape(this.m_content));\n result.append('\"');\n return result.toString();\n }", "@Override\n public String toString() {\n byte[] buffer = toBuffer();\n return (buffer == null) ? null : new String(buffer, StandardCharsets.UTF_8);\n }", "public String toStr() {\r\n return value.toString();\r\n }", "@Override\n public String toString() {\n\treturn ByteUtils.toHexString(toByteArray(), true);\n }", "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "public String convertToString() {\n return mJSONObject.toString();\n }", "@Override String toString();", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getId() != null)\n sb.append(\"Id: \").append(getId()).append(\",\");\n if (getDocumentId() != null)\n sb.append(\"DocumentId: \").append(getDocumentId()).append(\",\");\n if (getDocumentTitle() != null)\n sb.append(\"DocumentTitle: \").append(getDocumentTitle()).append(\",\");\n if (getContent() != null)\n sb.append(\"Content: \").append(getContent()).append(\",\");\n if (getDocumentURI() != null)\n sb.append(\"DocumentURI: \").append(getDocumentURI()).append(\",\");\n if (getDocumentAttributes() != null)\n sb.append(\"DocumentAttributes: \").append(getDocumentAttributes());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getStringRepresentation() {\n JSONObject obj = new JSONObject();\n obj.put(\"title\", title);\n obj.put(\"authors\", authors);\n return obj.toString();\n }", "public String getUrl() {\n Object ref = url_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String toString() {\n\t\treturn toString(true);\n\t}", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "public String toString() {\n return \"\" + data;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(this.getName());\n sb.append(\"\\n name=\").append(this.getName());\n sb.append(\"\\n type=\").append(this.getType());\n sb.append(\"\\n parentType=\").append(this.getParentType());\n sb.append(\"\\n resourceUrl=\").append(this.getResourceUrl());\n sb.append(\"\\n restUrl=\").append(this.getRestUrl());\n sb.append(\"\\n soapUrl=\").append(this.getSoapUrl());\n sb.append(\"\\n thumbnailUrl=\").append(this.getThumbnailUrl());\n sb.append(\"\\n capabilities=\").append(this.getCapabilities());\n sb.append(\"\\n creator=\").append(this.getCreator());\n sb.append(\"\\n description=\").append(this.getDescription());\n sb.append(\"\\n keywords=\").append(this.getKeywords());\n if (this.getEnvelope() != null) {\n if (this.getEnvelope() instanceof EnvelopeN) {\n EnvelopeN envn = (EnvelopeN) this.getEnvelope();\n sb.append(\"\\n envelope=\");\n sb.append(envn.getXMin()).append(\", \").append(envn.getYMin()).append(\", \");\n sb.append(envn.getXMax()).append(\", \").append(envn.getYMax());\n if (envn.getSpatialReference() != null) {\n sb.append(\" wkid=\").append(envn.getSpatialReference().getWKID());\n }\n }\n }\n return sb.toString();\n }", "public String toString() {\n\t\treturn \"{\\\"username\\\":\\\"\" + this.username + \"\\\",\\\"apiKey\\\":\\\"\"\n\t\t\t\t+ this.apiKey + \"\\\",\\\"apiSecret:\\\"\" + this.apiSecret\n\t\t\t\t+ \"\\\",\\\"nonce:\\\"\" + this.nonce + \"\\\"}\";\n\t}", "@Override\n public String toString() {\n final StringBuilder buffer = new StringBuilder(90);\n InetAddressUtils.formatAddress(buffer, localAddress);\n buffer.append(\"<->\");\n InetAddressUtils.formatAddress(buffer, remoteAddress);\n return buffer.toString();\n }", "public String toString() {\n\t\treturn adaptee.toString();\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\n\t\treturn this.id +\" \" +\" \" + this.host +\" \" + this.url +\" flag = \"+this.flag +\" type=\"+this.type + \" lastCrawled = \" +this.lastCrawled;\r\n\t}", "public String toExternalString() {\n\t\treturn new String(signature, US_ASCII);\n\t}", "public java.lang.String toString() {\n return this.stringValue;\n }", "public String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"<div>\");\r\n\t\tsb.append(\"Names: \").append(this.getNames().toString()).append(\",<br/>\");\r\n\t\tsb.append(\"Addresses: \").append(this.getAddresses().toString()).append(\",<br/>\");\r\n\t\tsb.append(\"Contacts: \").append(this.getContacts().toString()).append (\",<br/>\");\r\n\t\tsb.append(\"Identifiers: \").append(this.getIdentifiers().toString()).append(\",<br/>\");\r\n\t\tsb.append(\"</div>\");\r\n\t\treturn sb.toString();\r\n\t}", "public String toString() {\n\t\treturn toString(0, 0);\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", title=\").append(title);\n sb.append(\", url=\").append(url);\n sb.append(\", avatar=\").append(avatar);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "public final String toJson( )\n\t{\n\t\tString json = \"\";\n\t\tif ( getHref( ) != null )\n\t\t{\n\t\t\tthis.data.put( \"id\", getHref( ).substring( getHref( ).lastIndexOf( \"/\" ) + 1 ) );\n\t\t\tjson = this.data.toString( );\n\t\t\tthis.data.remove( \"id\" );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tjson = this.data.toString( );\n\t\t}\n\t\treturn json;\n\t}", "@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }", "@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder()\n\t\t\t.append(this.getClass().getSimpleName())\n\t\t\t.append(\" { id:\").append(id)\n\t\t\t.append(\", version:\").append(version)\n\t\t\t.append(\" }\")\n\t\t\t.toString();\n\t}" ]
[ "0.7302779", "0.7095098", "0.6686046", "0.63623756", "0.63451123", "0.6334461", "0.63325423", "0.6331862", "0.6277877", "0.62281287", "0.62281287", "0.62129205", "0.61841697", "0.6119327", "0.61075824", "0.61032754", "0.6079472", "0.6064186", "0.6026566", "0.60197914", "0.60149115", "0.6006042", "0.60048497", "0.6003471", "0.59816885", "0.5976269", "0.5972472", "0.5969018", "0.59659547", "0.5958746", "0.595543", "0.5950152", "0.59348524", "0.5930043", "0.59019667", "0.58946794", "0.58839446", "0.5883578", "0.58789074", "0.5877769", "0.58734417", "0.58734417", "0.58709925", "0.58689743", "0.5868715", "0.58556825", "0.58519304", "0.5845496", "0.58406365", "0.5830623", "0.58203226", "0.581993", "0.58128923", "0.58128506", "0.5809458", "0.5802978", "0.5796254", "0.5795201", "0.5788213", "0.5776918", "0.57656157", "0.57591754", "0.57523555", "0.5752211", "0.57481045", "0.5745632", "0.5745632", "0.5745632", "0.57426274", "0.5738383", "0.5733322", "0.5730231", "0.57187873", "0.57107717", "0.5707301", "0.56924415", "0.56924415", "0.5691599", "0.5685432", "0.5682725", "0.568088", "0.568088", "0.5676621", "0.56740457", "0.56722146", "0.56691873", "0.5666736", "0.5664578", "0.565789", "0.5657437", "0.56569064", "0.56536996", "0.5653399", "0.5648022", "0.56473655", "0.5644748", "0.5640515", "0.5634928", "0.56330305", "0.5629646", "0.56295747" ]
0.0
-1
Compares this DIDURL to the specified object. The result is true if and only if the argument is not null and is a DIDURL object that represents the same resource.
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj instanceof DIDURL) { DIDURL id = (DIDURL)obj; return toString().equals(id.toString()); } if (obj instanceof String) { String url = (String)obj; return toString().equals(url); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Url)) {\n return false;\n }\n Url other = (Url) object;\n if ((this.idURL == null && other.idURL != null) || (this.idURL != null && !this.idURL.equals(other.idURL))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj instanceof ResourceEndpoint) {\n\t\t\tResourceEndpoint e = (ResourceEndpoint) obj;\n\t\t\treturn e.getResourceID() == m_resourceID && e.getURL().equals(m_URL);\n\t\t}\n\t\treturn false;\n\t}", "public boolean equals(Object obj) \n {\n if(obj instanceof Resource) \n {\n Resource delegate = ((Resource)obj).getDelegate();\n if(delegate == null) \n {\n return super.equals(obj);\n }\n else\n {\n return super.equals(delegate);\n }\n }\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DownloadRequest)) {\n return false;\n }\n DownloadRequest other = (DownloadRequest) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (obj instanceof Link) {\r\n\t\t\tLink other = (Link) obj;\r\n\t\t\treturn extendedId.equals(other.getExtendedId());\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean equals(Object obj) {\n if (obj == null || !(obj instanceof Photo)) {\n return false;\n }\n\n Photo p = (Photo) obj;\n\n if(this.urlString.equals(p.urlString)){\n return true;\n }\n\n return false;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Direccion)) {\r\n return false;\r\n }\r\n Direccion other = (Direccion) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "protected boolean equals(URL paramURL1, URL paramURL2) {\n/* 336 */ String str1 = paramURL1.getRef();\n/* 337 */ String str2 = paramURL2.getRef();\n/* 338 */ return ((str1 == str2 || (str1 != null && str1.equals(str2))) && \n/* 339 */ sameFile(paramURL1, paramURL2));\n/* */ }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Direccion)) {\n return false;\n }\n Direccion other = (Direccion) object;\n if ((this.idDireccion == null && other.idDireccion != null) || (this.idDireccion != null && !this.idDireccion.equals(other.idDireccion))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Direccion)) {\n return false;\n }\n Direccion other = (Direccion) object;\n if ((this.idDireccion == null && other.idDireccion != null) || (this.idDireccion != null && !this.idDireccion.equals(other.idDireccion))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object that) {\n\t\tUrl other = (Url)that;\n\t\treturn this.link.equals(other.link);\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComplaintImageDTO)) {\n return false;\n }\n ComplaintImageDTO other = (ComplaintImageDTO) object;\n if ((this.complaintImageID == null && other.complaintImageID != null) || (this.complaintImageID != null && !this.complaintImageID.equals(other.complaintImageID))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DrtDirectorio)) {\n return false;\n }\n DrtDirectorio other = (DrtDirectorio) object;\n if ((this.idDir == null && other.idDir != null) || (this.idDir != null && !this.idDir.equals(other.idDir))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Dia3)) {\n return false;\n }\n Dia3 other = (Dia3) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public boolean isEqual(Card card) {\n\t\treturn imageLink.equals(card.getURL());\n\t}", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsAccessResultDiff) {\n BsAccessResultDiff other = (BsAccessResultDiff)obj;\n if (!xSV(_id, other._id)) { return false; }\n if (!xSV(_sessionId, other._sessionId)) { return false; }\n if (!xSV(_ruleId, other._ruleId)) { return false; }\n if (!xSV(_url, other._url)) { return false; }\n if (!xSV(_parentUrl, other._parentUrl)) { return false; }\n if (!xSV(_status, other._status)) { return false; }\n if (!xSV(_httpStatusCode, other._httpStatusCode)) { return false; }\n if (!xSV(_method, other._method)) { return false; }\n if (!xSV(_mimeType, other._mimeType)) { return false; }\n if (!xSV(_contentLength, other._contentLength)) { return false; }\n if (!xSV(_executionTime, other._executionTime)) { return false; }\n if (!xSV(_createTime, other._createTime)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Doktori)) {\n return false;\n }\n Doktori other = (Doktori) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object obj) {\n\t\tif (obj instanceof Trip) {\n\t\t\treturn getTripID().equalsIgnoreCase(\n\t\t\t\t((Trip) obj).getTripID());\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Transfer)) {\n return false;\n }\n Transfer other = (Transfer) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TransferItem)) {\r\n return false;\r\n }\r\n TransferItem other = (TransferItem) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "boolean hasSameAs();", "@Override\n\tpublic boolean equals(Object arg0) {\n\t\tproduit p = (produit) arg0;\n\t\treturn this.reference.equals(p.reference);\n\t}", "public boolean equals(Object paramObject) {\n/* 124 */ if (paramObject != null && paramObject instanceof BinaryRefAddr) {\n/* 125 */ BinaryRefAddr binaryRefAddr = (BinaryRefAddr)paramObject;\n/* 126 */ if (this.addrType.compareTo(binaryRefAddr.addrType) == 0) {\n/* 127 */ if (this.buf == null && binaryRefAddr.buf == null)\n/* 128 */ return true; \n/* 129 */ if (this.buf == null || binaryRefAddr.buf == null || this.buf.length != binaryRefAddr.buf.length)\n/* */ {\n/* 131 */ return false; } \n/* 132 */ for (byte b = 0; b < this.buf.length; b++) {\n/* 133 */ if (this.buf[b] != binaryRefAddr.buf[b])\n/* 134 */ return false; \n/* 135 */ } return true;\n/* */ } \n/* */ } \n/* 138 */ return false;\n/* */ }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Zusria)) {\r\n return false;\r\n }\r\n Zusria other = (Zusria) object;\r\n if ((this.idDokument == null && other.idDokument != null) || (this.idDokument != null && !this.idDokument.equals(other.idDokument))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof RevResultado)) {\n return false;\n }\n RevResultado other = (RevResultado) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (!(obj instanceof ParsedURLInfo))\n\t\t\treturn false;\n\t\telse {\n\t\t\tParsedURLInfo o = (ParsedURLInfo) obj;\n\t\t\treturn this.getSeqTime().equals(o.getSeqTime());\n\t\t}\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserUploadDocument)) {\n return false;\n }\n UserUploadDocument other = (UserUploadDocument) object;\n return (this.id != null || other.id == null) && (this.id == null || this.id.equals(other.id));\n }", "public boolean equals (Object object)\n {\n return\n ( object instanceof RefDocTypePair &&\n ((RefDocTypePair)object).getFromDocType() == this.fromDocType &&\n ((RefDocTypePair)object).getToDocType() == this.toDocType );\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Cdrbrdta)) {\n return false;\n }\n Cdrbrdta other = (Cdrbrdta) object;\n if ((this.cdrbrdtaPK == null && other.cdrbrdtaPK != null) || (this.cdrbrdtaPK != null && !this.cdrbrdtaPK.equals(other.cdrbrdtaPK))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Rdv)) {\n return false;\n }\n Rdv other = (Rdv) object;\n if ((this.idRdv == null && other.idRdv != null) || (this.idRdv != null && !this.idRdv.equals(other.idRdv))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Rolistafit)) {\n return false;\n }\n Rolistafit other = (Rolistafit) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object o)\n {\n return (o instanceof RTPExtension)\n && ((RTPExtension)o).getURI().equals(getURI());\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Usr)) {\r\n return false;\r\n }\r\n Usr other = (Usr) object;\r\n if ((this.idUsr == null && other.idUsr != null) || (this.idUsr != null && !this.idUsr.equals(other.idUsr))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CityDTO)) {\n return false;\n }\n CityDTO other = (CityDTO) object;\n if ((this.cityID == null && other.cityID != null) || (this.cityID != null && !this.cityID.equals(other.cityID))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(@Nullable Object object) {\n // TODO: Warning - this method won't work in the case the id fields are not set\n if (!(object instanceof XBENodeTree)) {\n return false;\n }\n\n XBENodeTree other = (XBENodeTree) object;\n return this.getId() == other.getId();\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof LinkPersonAdress)) {\n return false;\n }\n LinkPersonAdress other = (LinkPersonAdress) object;\n if ((this.idPA == null && other.idPA != null) || (this.idPA != null && !this.idPA.equals(other.idPA))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Docteur)) {\r\n return false;\r\n }\r\n Docteur other = (Docteur) object;\r\n if ((this.idDocteur == null && other.idDocteur != null) || (this.idDocteur != null && !this.idDocteur.equals(other.idDocteur))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TaskDTO)) {\n return false;\n }\n TaskDTO other = (TaskDTO) object;\n if ((this.taskID == null && other.taskID != null) || (this.taskID != null && !this.taskID.equals(other.taskID))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object obj) {\r\n\t\treturn (obj == this ||\r\n\t\t (obj instanceof Resource && ((Resource) obj).getDescription().equals(getDescription())));\r\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Dist)) {\r\n return false;\r\n }\r\n Dist other = (Dist) object;\r\n if ((this.distId == null && other.distId != null) || (this.distId != null && !this.distId.equals(other.distId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Descarga)) {\r\n return false;\r\n }\r\n Descarga other = (Descarga) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UTS)) {\n return false;\n }\n UTS other = (UTS) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object obj)\n {\n return obj instanceof ForeignDestination;\n }", "public boolean equals(Object object);", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Route)) {\n return false;\n }\n Route other = (Route) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Attachment)) {\n return false;\n }\n Attachment other = (Attachment) object;\n return !((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof GrnRetrunDetail)) {\n return false;\n }\n GrnRetrunDetail other = (GrnRetrunDetail) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Adres)) {\n return false;\n }\n Adres other = (Adres) object;\n if ((this.idAdres == null && other.idAdres != null) || (this.idAdres != null && !this.idAdres.equals(other.idAdres))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Car)) {\n return false;\n }\n Car other = (Car) object;\n return (this.id != null || other.id == null) && (this.id == null || this.id.equals(other.id));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Photo)) {\n return false;\n }\n Photo other = (Photo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object object) {\n if (object instanceof ImageFile) {\n ImageFile imageFile = (ImageFile) object;\n return imageFile.getOpenable() == this.getOpenable() &&\n imageFile.getPlayable() == this.getPlayable() &&\n imageFile.animated() == this.animated() &&\n imageFile.getFileSizeInBytes() == this.getFileSizeInBytes() &&\n imageFile.getImageHeight() == this.getImageHeight() &&\n imageFile.getImageWidth() == this.getImageWidth() &&\n imageFile.getOpensWith().equals(this.getOpensWith()) &&\n imageFile.getFile() == this.getFile();\n }\n return false;\n }", "public boolean equals(Object obj);", "public static boolean defaultEquals(DataValue obj1, Object obj2) {\r\n if (obj1 == obj2) return true;\r\n if (obj2 == null) return false;\r\n if (!(obj2 instanceof DataValue)) return false;\r\n DataValue other = (DataValue) obj2;\r\n if (!obj1.getName().equals(other.getName())) return false;\r\n if (obj1.getObject() == null) {\r\n if (other.getObject() != null) return false;\r\n } else if (obj1.getObject().getClass().isArray()) {\r\n if (!other.getObject().getClass().isArray()) return false;\r\n return Arrays.equals((byte[]) obj1.getObject(), (byte[]) other.getObject());\r\n } else {\r\n if (!obj1.getObject().equals(other.getObject())) return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Lektor)) {\r\n return false;\r\n }\r\n Lektor other = (Lektor) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(final Object object) {\n if(!(object instanceof Course)) return false;\n\n return this.uuid.hashCode()== ((Course)object).uuid.hashCode();\n // END\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Condominios)) {\r\n return false;\r\n }\r\n Condominios other = (Condominios) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Pagos)) {\n return false;\n }\n Pagos other = (Pagos) object;\n if ((this.idPago == null && other.idPago != null) || (this.idPago != null && !this.idPago.equals(other.idPago))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Certificado)) {\n return false;\n }\n Certificado other = (Certificado) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Cda)) {\n return false;\n }\n Cda other = (Cda) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Route)) {\n return false;\n }\n Route other = (Route) object;\n if ((this.iDRoute == null && other.iDRoute != null) || (this.iDRoute != null && !this.iDRoute.equals(other.iDRoute))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ConcesionPagoSri)) {\n return false;\n }\n ConcesionPagoSri other = (ConcesionPagoSri) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Pageviews)) {\n return false;\n }\n Pageviews other = (Pageviews) object;\n if ((this.pageviewid == null && other.pageviewid != null) || (this.pageviewid != null && !this.pageviewid.equals(other.pageviewid))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Surenchere)) {\r\n return false;\r\n }\r\n Surenchere other = (Surenchere) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof NetworkInterface)) {\n return false;\n }\n NetworkInterface other = (NetworkInterface) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals (Object obj) {\n\t\tif (!(obj instanceof CD)) {\n\t\t\treturn false;\n\t\t}\n\t\tCD cd2 = (CD) obj;\n\t\t\n\t\treturn tituloCD.equals(cd2.getTituloCD()) && autorCD.equals(cd2.getAutorCD());\n\t}", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean equals(Object ob){\n\t\tItem itemob=(Item)ob;\t//transfer object type to Item type\r\n\t\tif(this.UID==itemob.UID && this.TITLE==itemob.TITLE && this.NOOFCOPIES==itemob.NOOFCOPIES) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean equals(Object object) {\r\n\t\tif (object instanceof Posting) {\r\n\t\t\tPosting posting = (Posting) object;\r\n\t\t\tif (object instanceof Posting && this.getDocId() != null\r\n\t\t\t\t\t&& this.getDocId().equals(posting.getDocId())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Certificado)) {\r\n return false;\r\n }\r\n Certificado other = (Certificado) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof LookupCountry)) {\r\n return false;\r\n }\r\n LookupCountry other = (LookupCountry) object;\r\n if ((this.dbid == null && other.dbid != null) || (this.dbid != null && !this.dbid.equals(other.dbid))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(Object otherObject) {\n if (!(otherObject instanceof ID)) {\n return false;\n }\n return (this.UID.equals(otherObject.toString()));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TarefaCondominio)) {\n return false;\n }\n TarefaCondominio other = (TarefaCondominio) object;\n if ((this.tarefaCondominioId == null && other.tarefaCondominioId != null) || (this.tarefaCondominioId != null && !this.tarefaCondominioId.equals(other.tarefaCondominioId))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object ob)\n {\n if (this == ob) return true;\n\n if (!(ob instanceof DTD)) return false;\n\n DTD otherDTD = (DTD) ob;\n\n return items.equals(otherDTD.items);\n }", "@Override\n public boolean equals(Object objectToCompare)\n {\n if (this == objectToCompare)\n {\n return true;\n }\n if (objectToCompare == null || getClass() != objectToCompare.getClass())\n {\n return false;\n }\n if (!super.equals(objectToCompare))\n {\n return false;\n }\n ValidValueImplAssetElement that = (ValidValueImplAssetElement) objectToCompare;\n return Objects.equals(referenceDataAsset, that.referenceDataAsset) &&\n Objects.equals(referenceDataConnections, that.referenceDataConnections);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Kanri)) {\n return false;\n }\n Kanri other = (Kanri) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "private static boolean equiv(VObject src, VObject dst)\n {\n return ((src.getId() != null && src.getId().equals(dst.getId()))\n || (src.getSid() != null && src.getSid().equals(dst.getSid())) \n || (src.getName() != null && src.getName().equals(dst.getName())));\n }", "@Override\n\tpublic int compareTo(DIDURL id) {\n\t\tcheckNotNull(id, \"id is null\");\n\n\t\treturn toString().compareTo(id.toString());\n\t}", "boolean canEqual(Object obj);", "@Override\n\tpublic boolean equals(Object obj) {\n\t\t// TODO Auto-generated method stub\n\t\tboolean bool = false;\n\t\tif(obj instanceof Video) {\n\t\t\tif(this.titulo.equalsIgnoreCase(((Video)obj).titulo)) {\n\t\t\t bool = true;\n\t\t\t}\n\t\t}\t\n\t\treturn bool;\n\t}", "public boolean equals( Object obj );", "public boolean equals(Object o) {\n if (o == null || !(o instanceof UrlPattern)) {\n return false;\n } else {\n UrlPattern url2 = (UrlPattern) o;\n\n return pattern == null && url2.getPattern() == null ||\n pattern != null && pattern.equals(url2.getPattern());\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof FastTrans)) {\n return false;\n }\n FastTrans other = (FastTrans) object;\n if ((this.tranferIdTransfer == null && other.tranferIdTransfer != null) || (this.tranferIdTransfer != null && !this.tranferIdTransfer.equals(other.tranferIdTransfer))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\r\n // TODO: Warning - this method won't work in the case the id fields are not set\r\n if (!(object instanceof ContactedUsComments)) {\r\n return false;\r\n }\r\n ContactedUsComments other = (ContactedUsComments)object;\r\n if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) return false;\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TraChequeDetale)) {\n return false;\n }\n TraChequeDetale other = (TraChequeDetale) object;\n if ((this.cdeId == null && other.cdeId != null) || (this.cdeId != null && !this.cdeId.equals(other.cdeId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Archivo)) {\n return false;\n }\n Archivo other = (Archivo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ContratTache)) {\n return false;\n }\n ContratTache other = (ContratTache) object;\n if ((this.contratTachePK == null && other.contratTachePK != null) || (this.contratTachePK != null && !this.contratTachePK.equals(other.contratTachePK))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (object != null && object instanceof Epoch)\n return (this.id == ((Epoch) object).getId());\n return false;\n }", "public static boolean m66061a(Object obj, Object obj2) {\n return obj == obj2 || (obj != null && obj.equals(obj2));\n }", "@Override public boolean equals(final Object value) {\n if (value == null) {\n return false;\n }\n //if (Tools.isStringClass(value)) {\n // return getDrbdResource().getValue(DRBD_RES_PARAM_DEV).equals(\n // value.toString());\n //} else {\n if (toString() == null) {\n return false;\n }\n return toString().equals(value.toString());\n //}\n }", "public boolean equals(Object ob){\n return name.equals(((PhoneRecord)ob).getName());\n }", "public boolean equals(Object obj) {\n // we must deproxy objects before comparison, because hibernate proxy could be received here\n AbstractEntity<ID> thisEntity = HibernateUtils.deproxy(this);\n Object otherEntity = HibernateUtils.deproxy(obj);\n\n ID id = thisEntity.getId();\n\n if (id != null && otherEntity != null && otherEntity.getClass().getName().equals(getClass().getName())) {\n return id.equals(((AbstractEntity) otherEntity).getId());\n }\n\n // fallback to reference equality, original object instance should be used there\n return super.equals(obj);\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tNode another = (Node) obj;\r\n\t\treturn (this.id == another.getId());\r\n\t}", "@Override\n public boolean equals(Object o)\n {\n //thanks to GeeksforGeeks for general form https://www.geeksforgeeks.org/overriding-equals-method-in-java/\n if (o == this)\n return true;\n if (!(o instanceof Thumbnail))\n return false;\n \n Thumbnail t = (Thumbnail) o;\n return imagePath.equals(t.getImagePath());\n }", "@Override\r\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof CTrackedRule)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tCTrackedRule other = (CTrackedRule) object;\r\n\t\tif ((this.ruleID == null && other.ruleID != null)\r\n\t\t\t\t|| (this.ruleID != null && !this.ruleID.equals(other.ruleID))) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean equals(Object object) {\n if ( !getClass().isInstance(object)) {\n return false;\n }\n\n DocumentBase other = (DocumentBase)object;\n if (this.getId() != other.getId() && (this.getId() == null || !this.getId().equals(other.getId()))) return false;\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof History)) {\n return false;\n }\n History other = (History) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof MejObra)) {\n return false;\n }\n MejObra other = (MejObra) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Certificat)) {\r\n return false;\r\n }\r\n Certificat other = (Certificat) object;\r\n if ((this.idCertificat == null && other.idCertificat != null) || (this.idCertificat != null && !this.idCertificat.equals(other.idCertificat))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Test)) {\n return false;\n }\n Test other = (Test) object;\n if ((this.idtest == null && other.idtest != null) || (this.idtest != null && !this.idtest.equals(other.idtest))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Receta)) {\n return false;\n }\n Receta other = (Receta) object;\n if ((this.idReceta == null && other.idReceta != null) || (this.idReceta != null && !this.idReceta.equals(other.idReceta))) {\n return false;\n }\n return true;\n }" ]
[ "0.6527215", "0.62349635", "0.5867995", "0.5852439", "0.58435065", "0.5755775", "0.57331705", "0.5647664", "0.5613652", "0.5613652", "0.55955356", "0.556028", "0.555618", "0.55411685", "0.54912937", "0.5484162", "0.5478277", "0.5471635", "0.5464949", "0.5461452", "0.5444994", "0.54264253", "0.5425352", "0.5408678", "0.5398918", "0.5382165", "0.5381961", "0.5371907", "0.53697467", "0.5368677", "0.53655654", "0.5357437", "0.5351574", "0.53375036", "0.5334387", "0.5330603", "0.5313084", "0.5310926", "0.5309365", "0.5308699", "0.5306549", "0.53062785", "0.53001285", "0.52944887", "0.52899146", "0.52796775", "0.5277181", "0.5262711", "0.52597725", "0.52588296", "0.52577496", "0.52506053", "0.52407587", "0.52375877", "0.5234771", "0.52322066", "0.52300054", "0.52242744", "0.5220538", "0.52197737", "0.5218977", "0.5218139", "0.521493", "0.52104664", "0.52097785", "0.5209041", "0.5206504", "0.5205382", "0.52053815", "0.519755", "0.51939005", "0.5193307", "0.5188816", "0.5184606", "0.51841336", "0.51781464", "0.51750696", "0.51750505", "0.5173381", "0.51726806", "0.5172453", "0.5171011", "0.5169962", "0.5164124", "0.51589304", "0.5155901", "0.5154127", "0.5153374", "0.5147936", "0.51474625", "0.51455617", "0.51383555", "0.51291436", "0.5128796", "0.51279813", "0.5126157", "0.5125746", "0.51238906", "0.5122375", "0.51220465" ]
0.6783692
0
Compares this DIDURL with the specified DIDURL.
@Override public int compareTo(DIDURL id) { checkNotNull(id, "id is null"); return toString().compareTo(id.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == this)\n\t\t\treturn true;\n\n\t\tif (obj instanceof DIDURL) {\n\t\t\tDIDURL id = (DIDURL)obj;\n\t\t\treturn toString().equals(id.toString());\n\t\t}\n\n\t\tif (obj instanceof String) {\n\t\t\tString url = (String)obj;\n\t\t\treturn toString().equals(url);\n\t\t}\n\n\t\treturn false;\n\t}", "protected boolean equals(URL paramURL1, URL paramURL2) {\n/* 336 */ String str1 = paramURL1.getRef();\n/* 337 */ String str2 = paramURL2.getRef();\n/* 338 */ return ((str1 == str2 || (str1 != null && str1.equals(str2))) && \n/* 339 */ sameFile(paramURL1, paramURL2));\n/* */ }", "public int compare(Entry o1, Entry o2) {\n\tString url1 = o1.getUrl();\n\tString url2 = o2.getUrl();\n\treturn StringUtil.compareToNullHigh(url1, url2);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Url)) {\n return false;\n }\n Url other = (Url) object;\n if ((this.idURL == null && other.idURL != null) || (this.idURL != null && !this.idURL.equals(other.idURL))) {\n return false;\n }\n return true;\n }", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "@Override\r\n\tpublic int compareTo(urlObject o) {\n\t\treturn this.counts-o.getCounts()==0?this.getUrl().compareTo(o.getUrl()):\r\n\t\t\to.getCounts()-this.getCounts();\r\n\t}", "public int compareTo(DSUID val) {\n return this.uuid.compareTo(val.uuid);\n }", "protected boolean hostsEqual(URL paramURL1, URL paramURL2) {\n/* 461 */ InetAddress inetAddress1 = getHostAddress(paramURL1);\n/* 462 */ InetAddress inetAddress2 = getHostAddress(paramURL2);\n/* */ \n/* 464 */ if (inetAddress1 != null && inetAddress2 != null) {\n/* 465 */ return inetAddress1.equals(inetAddress2);\n/* */ }\n/* 467 */ if (paramURL1.getHost() != null && paramURL2.getHost() != null) {\n/* 468 */ return paramURL1.getHost().equalsIgnoreCase(paramURL2.getHost());\n/* */ }\n/* 470 */ return (paramURL1.getHost() == null && paramURL2.getHost() == null);\n/* */ }", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "protected boolean sameFile(URL paramURL1, URL paramURL2) {\n/* 400 */ if (paramURL1.getProtocol() != paramURL2.getProtocol() && (paramURL1\n/* 401 */ .getProtocol() == null || \n/* 402 */ !paramURL1.getProtocol().equalsIgnoreCase(paramURL2.getProtocol()))) {\n/* 403 */ return false;\n/* */ }\n/* */ \n/* 406 */ if (paramURL1.getFile() != paramURL2.getFile() && (paramURL1\n/* 407 */ .getFile() == null || !paramURL1.getFile().equals(paramURL2.getFile()))) {\n/* 408 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 412 */ int i = (paramURL1.getPort() != -1) ? paramURL1.getPort() : paramURL1.handler.getDefaultPort();\n/* 413 */ int j = (paramURL2.getPort() != -1) ? paramURL2.getPort() : paramURL2.handler.getDefaultPort();\n/* 414 */ if (i != j) {\n/* 415 */ return false;\n/* */ }\n/* */ \n/* 418 */ if (!hostsEqual(paramURL1, paramURL2)) {\n/* 419 */ return false;\n/* */ }\n/* 421 */ return true;\n/* */ }", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "@Override\n\tpublic boolean isPhotoCorrect(URL url) {\n\t\tboolean isCorrect = false;\n\t\tString currentPhoto = encodeurl(url.toString());\n\t\t\n\t\tfor (URL validImage : images) {\n\t\t\tisCorrect = isCorrect || (currentPhoto.equals(encodeurl(validImage.toString())));\n\t\t}\n\t\t\n\t\treturn isCorrect;\n\t}", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "@Test\n public void codonCompare2(){\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(c);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(d);\n int expected = 1;\n assertEquals(expected, first.codonCompare(second));\n\n }", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "@Override\n\tpublic boolean equals(Object that) {\n\t\tUrl other = (Url)that;\n\t\treturn this.link.equals(other.link);\n\t}", "@Override\n public boolean equals(Object obj) {\n if (obj == null || !(obj instanceof Photo)) {\n return false;\n }\n\n Photo p = (Photo) obj;\n\n if(this.urlString.equals(p.urlString)){\n return true;\n }\n\n return false;\n }", "@Test public void equalTest() {\n Dog d = new Dog(\"Owner 1\", \"Rex\", \"Boxer\", 90.0, 7);\n Dog d2 = new Dog(\"Owner 2\", \"Spot\", \"Pit Bull\", 90.0, 7);\n Assert.assertEquals(0, test.compare(d, d2));\n }", "@Test\n\tpublic void testCaseInsensitiveCompare() {\n\t\tStreetAddress s5 = new StreetAddress();\n\n\t\ts5.setCity(s4.getCity().toLowerCase());\n\t\ts5.setState(s4.getState().toLowerCase());\n\t\ts5.setLine1(s4.getLine1().toLowerCase());\n\t\ts5.setLine2(s4.getLine2().toLowerCase());\n\t\ts5.setZip(s4.getZip());\n\t\tassertFalse(s4.equals(s5));\n\t\tassertTrue(comparator.compare(s4, s5) == 0);\n\n\t\t// for the sake of comparison zip+9 should conceptually equal zip-5 for\n\t\t// all zip-9 zip codes that have the same zip-5 prefix\n\n\t\ts5.setZip(s4.getZip() + \"-1234\");\n\t\tassertTrue(comparator.compare(s4, s5) == 0);\n\t}", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "@Override\n\tpublic int compareTo(ParsedURLInfo o) {\n\t\treturn this.seqTime.compareTo(o.getSeqTime());\n\t}", "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}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (!(obj instanceof ParsedURLInfo))\n\t\t\treturn false;\n\t\telse {\n\t\t\tParsedURLInfo o = (ParsedURLInfo) obj;\n\t\t\treturn this.getSeqTime().equals(o.getSeqTime());\n\t\t}\n\t}", "@Test\n public void codonCompare1(){\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(a);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(b);\n int expected = 0;\n assertEquals(expected, first.codonCompare(second));\n }", "protected int hashCode(URL paramURL) {\n/* 351 */ int i = 0;\n/* */ \n/* */ \n/* 354 */ String str1 = paramURL.getProtocol();\n/* 355 */ if (str1 != null) {\n/* 356 */ i += str1.hashCode();\n/* */ }\n/* */ \n/* 359 */ InetAddress inetAddress = getHostAddress(paramURL);\n/* 360 */ if (inetAddress != null) {\n/* 361 */ i += inetAddress.hashCode();\n/* */ } else {\n/* 363 */ String str = paramURL.getHost();\n/* 364 */ if (str != null) {\n/* 365 */ i += str.toLowerCase().hashCode();\n/* */ }\n/* */ } \n/* */ \n/* 369 */ String str2 = paramURL.getFile();\n/* 370 */ if (str2 != null) {\n/* 371 */ i += str2.hashCode();\n/* */ }\n/* */ \n/* 374 */ if (paramURL.getPort() == -1) {\n/* 375 */ i += getDefaultPort();\n/* */ } else {\n/* 377 */ i += paramURL.getPort();\n/* */ } \n/* */ \n/* 380 */ String str3 = paramURL.getRef();\n/* 381 */ if (str3 != null) {\n/* 382 */ i += str3.hashCode();\n/* */ }\n/* 384 */ return i;\n/* */ }", "@Override\n public int hashCode() {\n int result = doi.hashCode();\n result = 31 * result + mappedUrl.hashCode();\n result = 31 * result + status.hashCode();\n result = 31 * result + message.hashCode();\n result = 31 * result + date.hashCode();\n return result;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj instanceof ResourceEndpoint) {\n\t\t\tResourceEndpoint e = (ResourceEndpoint) obj;\n\t\t\treturn e.getResourceID() == m_resourceID && e.getURL().equals(m_URL);\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals (Object obj) {\n\t\tif (!(obj instanceof CD)) {\n\t\t\treturn false;\n\t\t}\n\t\tCD cd2 = (CD) obj;\n\t\t\n\t\treturn tituloCD.equals(cd2.getTituloCD()) && autorCD.equals(cd2.getAutorCD());\n\t}", "public boolean compareAuthDptOptr (java.lang.String org_optr_cde, \n java.lang.String trgt_optr_cde) throws com.mcip.orb.CoException {\n return this._delegate.compareAuthDptOptr(org_optr_cde, trgt_optr_cde);\n }", "public static boolean doubleCompare(double accuracy, double d1, double d2)\n {\n if (Math.abs(d1 - d2) < accuracy) { return true; }\n return false;\n }", "public boolean equals(Object ob)\n {\n if (this == ob) return true;\n\n if (!(ob instanceof DTD)) return false;\n\n DTD otherDTD = (DTD) ob;\n\n return items.equals(otherDTD.items);\n }", "@Override\n public boolean connected(Station station1, Station station2) {\n if (station1.id() >= links.length || station2.id() >= links.length) {\n return station1.id() == station2.id();\n }\n return links[station1.id()] == links[station2.id()];\n }", "public boolean verifyUrl(String url) {\n\t\tif (getter().getCurrentUrl().equals(url)) {\r\n\t\t\tSystem.out.println(\"The url: \"+url+\" matched successfully\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"The url: \"+url+\" not matched\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean wasPreviouslyVerified(String url);", "public boolean isEqual(Card card) {\n\t\treturn imageLink.equals(card.getURL());\n\t}", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsAccessResultDiff) {\n BsAccessResultDiff other = (BsAccessResultDiff)obj;\n if (!xSV(_id, other._id)) { return false; }\n if (!xSV(_sessionId, other._sessionId)) { return false; }\n if (!xSV(_ruleId, other._ruleId)) { return false; }\n if (!xSV(_url, other._url)) { return false; }\n if (!xSV(_parentUrl, other._parentUrl)) { return false; }\n if (!xSV(_status, other._status)) { return false; }\n if (!xSV(_httpStatusCode, other._httpStatusCode)) { return false; }\n if (!xSV(_method, other._method)) { return false; }\n if (!xSV(_mimeType, other._mimeType)) { return false; }\n if (!xSV(_contentLength, other._contentLength)) { return false; }\n if (!xSV(_executionTime, other._executionTime)) { return false; }\n if (!xSV(_createTime, other._createTime)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public void compareAddress()\n {\n Address a = new Address(\"Amapolas\",1500,\"Providencia\",\"Santiago\");\n Address b = new Address(\"amapolas\",1500, \"providencia\",\"santiago\");\n Address c = new Address(\"Hernando Aguirre\",1133,\"Providencia\", \"Santiago\");\n \n boolean d = a.equals(b); \n }", "@Override\n public int compare(Hive o1, Hive o2) {\n if ((o1 == null) && (o2 != null))\n return -1;\n else if ((o1 != null) && (o2 == null))\n return 1;\n else if ((o1 == null) && (o2 == null))\n return 0;\n\n int m1 = 0;\n int m2 = 0;\n\n if ((o1.getPublicChat() != null) && (o1.getPublicChat().getConversation() != null))\n m1 = o1.getPublicChat().getConversation().getCount();\n if ((o2.getPublicChat() != null) && (o2.getPublicChat().getConversation() != null))\n m2 = o2.getPublicChat().getConversation().getCount();\n\n int res = m2-m1;\n\n return ((res==0)?o1.getNameUrl().compareToIgnoreCase(o2.getNameUrl()):res);\n }", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "@Override\n public boolean update(String token, String did) {\n DIDUpdateDao didUpdateDao = DIDToken.of(token).toUpdateDto();\n\n // get DID Document from resolver\n DIDDocument targetDidDocument = resolverRepository.getDIDDocument(did);\n\n // To DIDDocument Entity\n DIDDocument updatedDIDDocument = didUpdateDao.getUpdatedDIDDocument(targetDidDocument);\n\n // TODO : DID Document validation check ( duplicated check )\n\n return registrarRepository.saveDIDDocument(updatedDIDDocument);\n }", "@Test\n public void aminoCompareTest1(){\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(c);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(d);\n int expected = 1;\n assertEquals(expected, first.aminoAcidCompare(second));\n }", "public DIDURL(DID context, String url) throws MalformedDIDURLException {\n\t\tParser parser = new Parser();\n\t\tparser.parse(context, url);\n\t}", "private static boolean validateUrl(String urlString, List<String> extensions) {\n for (String extension: extensions) {\n if (urlString.length() > extension.length()) {\n if (urlString.substring(urlString.length() - extension.length()).equals(extension)) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean equals(String incomingDonorID) {\n return this.donorID.equals(incomingDonorID);\n }", "public boolean equals(Complex that, double d) {\r\n double delta = d;\r\n double deltaReal = Math.abs(this.getReal() - that.getReal());\r\n double deltaImag = Math.abs(this.getImag() - that.getImag());\r\n \r\n if (deltaReal > delta || deltaImag > delta)\r\n return false;\r\n \r\n return true; \r\n }", "public boolean comparable(DataTypeDescriptor compareWithDTD, boolean forEquals) {\r\n TypeId compareWithTypeID = compareWithDTD.getTypeId();\r\n int compareWithJDBCTypeId = compareWithTypeID.getJDBCTypeId();\r\n\r\n // Incomparable types include:\r\n // XML (SQL/XML[2003] spec, section 4.2.2)\r\n // ref types\r\n if (!typeId.isComparable() || !compareWithTypeID.isComparable())\r\n return false;\r\n \r\n // if the two types are equal, they should be comparable\r\n if (typeId.equals(compareWithTypeID))\r\n return true;\r\n \r\n //If this DTD is not user defined type but the DTD to be compared with \r\n //is user defined type, then let the other DTD decide what should be the\r\n //outcome of the comparable method.\r\n if (!(typeId.isUserDefinedTypeId()) && \r\n (compareWithTypeID.isUserDefinedTypeId()))\r\n return compareWithDTD.comparable(this, forEquals);\r\n\r\n //Numeric types are comparable to numeric types\r\n if (typeId.isNumericTypeId())\r\n return (compareWithTypeID.isNumericTypeId());\r\n\r\n //CHAR, VARCHAR and LONGVARCHAR are comparable to strings, boolean, \r\n //DATE/TIME/TIMESTAMP and to comparable user types\r\n if (typeId.isStringTypeId()) {\r\n if((compareWithTypeID.isDateTimeTimeStampTypeID() ||\r\n compareWithTypeID.isBooleanTypeId()))\r\n return true;\r\n //If both the types are string types, then we need to make sure\r\n //they have the same collation set on them\r\n if (compareWithTypeID.isStringTypeId() && typeId.isStringTypeId()) {\r\n return true; // TODO: compareCollationInfo(compareWithDTD);\r\n } \r\n else\r\n return false; //can't be compared\r\n }\r\n\r\n //Are comparable to other bit types and comparable user types\r\n if (typeId.isBitTypeId()) \r\n return (compareWithTypeID.isBitTypeId()); \r\n\r\n //Booleans are comparable to Boolean, string, and to \r\n //comparable user types. As part of the work on DERYB-887,\r\n //I removed the comparability of booleans to numerics; I don't\r\n //understand the previous statement about comparable user types.\r\n //I suspect that is wrong and should be addressed when we\r\n //re-enable UDTs (see DERBY-651).\r\n if (typeId.isBooleanTypeId())\r\n return (compareWithTypeID.getSQLTypeName().equals(typeId.getSQLTypeName()) ||\r\n compareWithTypeID.isStringTypeId()); \r\n\r\n //Dates are comparable to dates, strings and to comparable\r\n //user types.\r\n if (typeId.getJDBCTypeId() == Types.DATE)\r\n if (compareWithJDBCTypeId == Types.DATE || \r\n compareWithJDBCTypeId == Types.TIMESTAMP || \r\n compareWithTypeID.isStringTypeId())\r\n return true;\r\n else\r\n return false;\r\n\r\n //Times are comparable to times, strings and to comparable\r\n //user types.\r\n if (typeId.getJDBCTypeId() == Types.TIME)\r\n if (compareWithJDBCTypeId == Types.TIME || \r\n compareWithTypeID.isStringTypeId())\r\n return true;\r\n else\r\n return false;\r\n\r\n //Timestamps are comparable to timestamps, strings and to\r\n //comparable user types.\r\n if (typeId.getJDBCTypeId() == Types.TIMESTAMP)\r\n if (compareWithJDBCTypeId == Types.TIMESTAMP || \r\n compareWithJDBCTypeId == Types.DATE || \r\n compareWithTypeID.isStringTypeId())\r\n return true;\r\n else\r\n return false;\r\n\r\n return false;\r\n }", "private int compareUniqueness(double val1, double val2) {\n return Integer.compare((int) (val1 * 10000d), (int) (val2 * 10000d));\n }", "@Override\r\n\t\tpublic int compare(Device o1, Device o2) {\n\t\t\treturn o1.getdName().compareTo(o2.getdName());\r\n\t\t}", "@Override\n public int compare(Hive o1, Hive o2) {\n if ((o1 == null) && (o2 != null))\n return -1;\n else if ((o1 != null) && (o2 == null))\n return 1;\n else if ((o1 == null) && (o2 == null))\n return 0;\n\n long d1 = 0;\n long d2 = 0;\n\n if (o1.getCreationDate() != null)\n d1 = o1.getCreationDate().getTime();\n if (o2.getCreationDate() != null)\n d2 = o2.getCreationDate().getTime();\n\n long res = d2-d1;\n\n return ((res > Integer.MAX_VALUE)?Integer.MAX_VALUE:((res < Integer.MIN_VALUE)?Integer.MIN_VALUE:((res==0)?o1.getNameUrl().compareToIgnoreCase(o2.getNameUrl()):(int)res)));\n }", "public int compare(Data d, Data d1) {\n return (int) d.character - (int) d1.character;\n }", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "private void addUrl(int urlID)\n\t{\n\t\tfor(int i=0;i<urlIDs.size();i++)\n\t\t{\n\t\t\tif(urlIDs.get(i)==urlID)\n\t\t\t{\n\t\t\t\tisUrlIDAssociatedWithSetInDatabase.set(i, false);//this will need to be updated\n\t\t\t\tthis.urlCount.set(i, urlCount.get(i)+1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tisUrlIDAssociatedWithSetInDatabase.add(false);\n\t\turlIDs.add(urlID);\n\t\tthis.urlCount.add(1);\n\t}", "@Override\n public int compare(String str1, String str2) {\n int count1 = mSSIDMatchCounts.containsKey(str1) ? mSSIDMatchCounts.get(str1) : 0;\n int count2 = mSSIDMatchCounts.containsKey(str2) ? mSSIDMatchCounts.get(str2) : 0;\n\n\n int result = -Integer.valueOf(count1).compareTo(count2);\n if (result == 0) {\n // Secondary order: lexicographical, ascending\n result = str1.compareTo(str2);\n }\n return result;\n }", "@Test\n public void hashCodeTest() {\n Device device2 = new Device(deviceID, token);\n assertEquals(device.hashCode(), device2.hashCode());\n }", "@Override\r\n\t\t\tpublic int compare(DjikstraPair o1, DjikstraPair o2) {\n\t\t\t\treturn o2.csf - o1.csf;\r\n\t\t\t}", "private boolean translateWith2ExchangedChars(String input1, String input2) {\n if (StringUtils.isBlank(input1) || StringUtils.isBlank(input2) || input1.length() != input2.length()) {\n return false;\n }\n if (input1.equals(input2)) {\n for (int i = 0; i < input1.length(); i++) {\n char current = input1.charAt(i);\n if (input1.lastIndexOf(current) != i) {\n return true;\n }\n }\n return false;\n } else {\n int first = -1, second = -1;\n for (int i = 0; i < input1.length(); i++) {\n if (input1.charAt(i) != input2.charAt(i)) {\n if (first == -1) {\n first = i;\n } else if (second == -1) {\n second = i;\n } else {\n return false;\n }\n }\n }\n return input1.charAt(first) == input2.charAt(second)\n && input1.charAt(second) == input2.charAt(first);\n }\n }", "public boolean addUrlField(Document document, DetailedUrl dUrl, boolean asSingleToken) {\n boolean result = false;\n\n if (dUrl != null) {\n // normalized if asSingleToken; otherwise, not normalized so we can key off camel casing\n final String nUrl = asSingleToken ? dUrl.getNormalizedUrl() : dUrl.getOriginal();\n result = addField(document, nUrl);\n }\n\n return result;\n }", "private boolean compareChatUsers(ID id1, ID id2) {\n IChatID cid1 = (IChatID) id1.getAdapter(IChatID.class);\n IChatID cid2 = (IChatID) id2.getAdapter(IChatID.class);\n if (cid1 == null || cid2 == null)\n return false;\n return (cid1.getUsername().equals(cid2.getUsername()) && cid1.getHostname().equals(cid2.getHostname()));\n }", "public final boolean zza(zzdxo<?> zzdxo, zzd zzd, zzd zzd2) {\n return zzhwj.compareAndSwapObject(zzdxo, zzhwk, zzd, zzd2);\n }", "@Override\n public int compare(Todo td1, Todo td2) {\n\n // if td1 is null, then it should come after td2\n if (td1.getDueDate() == null && td2.getDueDate()!= null) {\n return GREATER;\n }\n // if td2 is null, then it should come after td1\n if (td1.getDueDate() != null && td2.getDueDate() == null) {\n return LESS;\n }\n // if both null, they are equal\n if (td1.getDueDate() == null && td2.getDueDate() == null) {\n return EQUAL;\n }\n // else, make into date object\n String td1Due = td1.getDueDate();\n String td2Due = td2.getDueDate();\n String[] td1DateRes = td1Due.split(\"/\");\n String[] td2DateRes = td2Due.split(\"/\");\n\n // Not caring about invalid formatting yet here\n // if both not null ,we create a date object, and let it compare themselves\n Date td1Date = new Date(td1DateRes[MONTH_INDEX],td1DateRes[DAY_INDEX],td1DateRes[YEAR_INDEX]);\n Date td2Date = new Date(td2DateRes[MONTH_INDEX],td2DateRes[DAY_INDEX],td2DateRes[YEAR_INDEX]);\n\n return td1Date.compareTo(td2Date);\n }", "private static boolean belongs(URL base, URL derived) {\n return derived.toString().startsWith(base.toString());\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DrtDirectorio)) {\n return false;\n }\n DrtDirectorio other = (DrtDirectorio) object;\n if ((this.idDir == null && other.idDir != null) || (this.idDir != null && !this.idDir.equals(other.idDir))) {\n return false;\n }\n return true;\n }", "public void compareCity (List<Doctor> dl, Doctor d)\n\t{\n\t\tfor(Doctor ld: dl)\n\t\t{\n\t\t\tif(d.getCity().equals(ld.getCity()))\n\t\t\t\trnkMap.put(ld,rnkMap.get(ld)+5);\n\t\t}\n\t\t\n\t}", "@Test\n public void equalsSameTest() {\n Device device2 = new Device(deviceID, token);\n assertEquals(device, device2);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Certificat)) {\r\n return false;\r\n }\r\n Certificat other = (Certificat) object;\r\n if ((this.idCertificat == null && other.idCertificat != null) || (this.idCertificat != null && !this.idCertificat.equals(other.idCertificat))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public int compare(Description o1, Description o2) {\n\t\t\tif (isNew(o1))\n\t\t\t\treturn -1;\n\t\t\tif (isNew(o2))\n\t\t\t\treturn 1;\n\t\t\t// Then most recently failed first\n\t\t\tint result= getFailure(o2).compareTo(getFailure(o1)); \n\t\t\treturn result != 0\n\t\t\t\t? result\n\t\t\t\t// Then shorter tests first\n\t\t\t\t: fDurations.get(o1).compareTo(fDurations.get(o2));\n\t\t}", "@Override\n public int compare(Hive o1, Hive o2) {\n if ((o1 == null) && (o2 != null))\n return -1;\n else if ((o1 != null) && (o2 == null))\n return 1;\n else if ((o1 == null) && (o2 == null))\n return 0;\n\n int u1 = 0;\n int u2 = 0;\n\n if (HiveUserSubscriptions != null) {\n if ((HiveUserSubscriptions.containsKey(o1.getNameUrl())) && (HiveUserSubscriptions.get(o1.getNameUrl()) != null))\n u1 = HiveUserSubscriptions.get(o1.getNameUrl()).size();\n if ((HiveUserSubscriptions.containsKey(o2.getNameUrl())) && (HiveUserSubscriptions.get(o2.getNameUrl()) != null))\n u2 = HiveUserSubscriptions.get(o2.getNameUrl()).size();\n }\n\n int res = u2-u1;\n\n return ((res==0)?o1.getNameUrl().compareToIgnoreCase(o2.getNameUrl()):res);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Direccion)) {\r\n return false;\r\n }\r\n Direccion other = (Direccion) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\t\tpublic int compare(String string1, String string2) {\n\t\t\treturn string1.length() - string2.length();\n\t\t}", "public final boolean zza(zzdxo<?> zzdxo, zzd zzd, zzd zzd2) {\n return this.listenersUpdater.compareAndSet(zzdxo, zzd, zzd2);\n }", "@Override\n\t\tpublic int compare(String string1, String string2) {\n\t\t\treturn string2.length() - string1.length();\n\t\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (obj instanceof Link) {\r\n\t\t\tLink other = (Link) obj;\r\n\t\t\treturn extendedId.equals(other.getExtendedId());\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void sortDNAs() {\n DNAs = TLArrayList.sort(DNAs);\n }", "private boolean linkIsViableDSRC(Location v1, AdhocPacket other) {\n\t\tLocation v2 = other.getLocation();\n\n\t\tif (v1 == null || v2 == null) {\n\t\t\tlog_nodisplay(\"Link not viable: GPS disabled\");\n\t\t\treturn false;\n\t\t}\n\n\t\tfloat distance = v1.distanceTo(v2);\n\t\tlong threshold = 250;\n\t\tboolean viable = (distance < threshold);\n\n\t\tlog_nodisplay(String.format(\n\t\t\t\t\"Link %s: %.1f meters apart (threshold %d). v1=%s v2=%s\",\n\t\t\t\tviable ? \"viable\" : \"not viable\", distance, threshold, v1, v2));\n\n\t\treturn viable;\n\t}", "public boolean isTheSame(String titolo, String autore, String desc, String prezzo, String editore, String url, String nCopie){\n return (current.getTitolo().equals(titolo) && current.getAutore().equals(autore) && current.getDescrizione().equals(desc)\n && current.getPrezzo().equals(Double.parseDouble(prezzo)) && current.getEditore().equals(editore) && url.equals(current.getUrl()) && Integer.parseInt(nCopie) == (current.getCopie()));\n }", "public void xsetUrlValue(org.biocatalogue.x2009.xml.rest.TagsParameters.Sort.UrlValue urlValue)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.TagsParameters.Sort.UrlValue target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.TagsParameters.Sort.UrlValue)get_store().find_attribute_user(URLVALUE$2);\r\n if (target == null)\r\n {\r\n target = (org.biocatalogue.x2009.xml.rest.TagsParameters.Sort.UrlValue)get_store().add_attribute_user(URLVALUE$2);\r\n }\r\n target.set(urlValue);\r\n }\r\n }", "private boolean requestTagUrlIsSurveyUrl(final @NonNull Pair<Request, String> projectRequestAndSurveyUrl) {\n return ((Request) projectRequestAndSurveyUrl.first.tag()).url().toString()\n .equals(projectRequestAndSurveyUrl.second);\n }", "public TestCaseSimilarity(String updatedTestCaseId, String originalTestCaseId, double sim,\r\n String UCId)\r\n {\r\n updatedId = updatedTestCaseId;\r\n originalId = originalTestCaseId;\r\n similarity = sim;\r\n ucId = UCId;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Direccion)) {\n return false;\n }\n Direccion other = (Direccion) object;\n if ((this.idDireccion == null && other.idDireccion != null) || (this.idDireccion != null && !this.idDireccion.equals(other.idDireccion))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Direccion)) {\n return false;\n }\n Direccion other = (Direccion) object;\n if ((this.idDireccion == null && other.idDireccion != null) || (this.idDireccion != null && !this.idDireccion.equals(other.idDireccion))) {\n return false;\n }\n return true;\n }", "public boolean contains(URL url) {\n return super.contains(normalize(url));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DownloadRequest)) {\n return false;\n }\n DownloadRequest other = (DownloadRequest) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public boolean equals(IPv4 other) {\n return this.address.equals(other);\n }", "@Override\n public boolean delete(String did) {\n DIDDocument didDocument = resolverRepository.getDIDDocument(did);\n\n didDocument.setJsonObjectKeyValue(\"publicKey\", \"\");\n didDocument.setJsonObjectKeyValue(\"authentication\", \"\");\n didDocument.setJsonObjectKeyValue(\"assertionMethod\", \"\");\n\n return registrarRepository.saveDIDDocument(didDocument);\n }", "public int compare(String record1, String record2)\n\t{\n\t\tint id1=0;\n\t\tint id2=0;\n\t\ttry\n\t\t{\n\t\t\tid1 = Integer.parseInt(record1);\n\t\t\tid2 = Integer.parseInt(record2);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t}\n\t\treturn id1-id2;\n\t}", "public void xsetUrlKey(org.biocatalogue.x2009.xml.rest.TagsParameters.Sort.UrlKey urlKey)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.TagsParameters.Sort.UrlKey target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.TagsParameters.Sort.UrlKey)get_store().find_attribute_user(URLKEY$0);\r\n if (target == null)\r\n {\r\n target = (org.biocatalogue.x2009.xml.rest.TagsParameters.Sort.UrlKey)get_store().add_attribute_user(URLKEY$0);\r\n }\r\n target.set(urlKey);\r\n }\r\n }", "private static int compareDuration(Duration duration1, Duration duration2) {\n return XSDDuration.durationCompare(duration1, duration2);\n }", "protected void setDid(DID did) {\n\t\tthis.did = did;\n\t}", "public static JwComparator<AcWebServiceRequestData> getUrlComparator()\n {\n return AcWebServiceRequestDataTools.instance.getUrlComparator();\n }", "@Test\n public void testCompareEqual() {\n System.out.println(\"compare\");\n FileNameComparator instance = new FileNameComparator();\n int expResult = 0;\n int result = instance.compare(testFileA, testFileA);\n Assert.assertEquals(expResult, result);\n }", "@Override\r\n public int compareTo(Address secondCAddress) {\r\n \r\n if(this.street.equals(secondCAddress.street) &&\r\n this.postcode.equals(secondCAddress.postcode)&&\r\n this.townORcity.equals(secondCAddress.townORcity))\r\n {\r\n \r\n return 0;\r\n \r\n } else \r\n {\r\n return 1;\r\n }\r\n \r\n \r\n }", "@Override\n public int compare(UserData o1, UserData o2) {\n if (\"Distance\".equals(sort)) {\n return calcDistanceToMatch(o1) > calcDistanceToMatch(o2) ? 1 : -1;\n\n } else {\n return calcSchedulePercentage(o1) < calcSchedulePercentage(o2) ? 1 : -1;\n }\n }", "@Override\r\n\t\t\tpublic int compare(Entry<Integer, LinkedList<Link>> o1, Entry<Integer, LinkedList<Link>> o2) {\n\t\t\t\treturn o1.getKey() - o2.getKey();\r\n\t\t\t}", "@Test\n @DisplayName(\"Matched\")\n public void testEqualsMatched() throws BadAttributeException {\n Settings settings = new Settings();\n assertEquals(new Settings().hashCode(), settings.hashCode());\n }", "private static boolean less(String v, String w, int d) {\n assert v.substring(0, d).equals(w.substring(0, d));\n for (int i = d; i < Math.min(v.length(), w.length()); i++) {\n if (v.charAt(i) < w.charAt(i)) return true;\n if (v.charAt(i) > w.charAt(i)) return false;\n }\n return v.length() < w.length();\n }", "@Test\n public void aminoCompareTest2() {\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(c);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(c);\n int expected = 0;\n assertEquals(expected, first.aminoAcidCompare(second));\n }", "@Override\n public int compare(String o1, String o2) {\n return Integer.compare(o2.length(), o1.length());\n }", "private boolean isEqualDate(DateStruct d1, DateStruct d2)\n {\n boolean isEqual = false;\n if ( d1.year == d2.year && d1.month == d2.month && d1.day == d2.day )\n {\n isEqual = true;\n }\n return isEqual;\n }" ]
[ "0.5692205", "0.48933327", "0.47696075", "0.47238368", "0.46611214", "0.46404672", "0.46341988", "0.45703515", "0.45059323", "0.43940625", "0.4339652", "0.432812", "0.43077338", "0.4306435", "0.42739135", "0.42158756", "0.41659743", "0.4160107", "0.41546988", "0.4097859", "0.40890822", "0.40731782", "0.40597597", "0.4046508", "0.40311193", "0.40219983", "0.40189743", "0.40057772", "0.39701244", "0.39352873", "0.39324772", "0.39058885", "0.3901263", "0.38618806", "0.38427746", "0.38426033", "0.38420653", "0.3839418", "0.3835161", "0.3812419", "0.3806222", "0.3797071", "0.37967694", "0.37782183", "0.37536675", "0.37301803", "0.3727763", "0.37186563", "0.37159765", "0.3715491", "0.37121648", "0.37042066", "0.37040883", "0.37011024", "0.36953562", "0.36916986", "0.3689295", "0.36834872", "0.36739004", "0.36737478", "0.3664008", "0.3661741", "0.36595014", "0.36551318", "0.36510378", "0.36500448", "0.364337", "0.36413708", "0.36381748", "0.36280894", "0.36274537", "0.36228794", "0.36198634", "0.3618423", "0.361499", "0.3612519", "0.3608502", "0.36075023", "0.3605618", "0.35993692", "0.3595298", "0.3595298", "0.3592408", "0.3591551", "0.35911202", "0.3590218", "0.35884005", "0.35871908", "0.3585113", "0.3581701", "0.35759255", "0.35695228", "0.35599887", "0.3559262", "0.35581803", "0.3558062", "0.35560524", "0.3552164", "0.3550948", "0.35495117" ]
0.5671368
1
Returns a hash code for this DIDURL object.
@Override public int hashCode() { return toString().hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHash();", "public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }", "public int getHash() {\n return hash_;\n }", "public int getHash() {\n return hash_;\n }", "public String getHash() {\n byte[] bArr = new byte[21];\n bArr[0] = (byte) getCTxDestinationType().getValue();\n System.arraycopy(this.mData, 0, bArr, 1, 20);\n return StringToolkit.bytesToString(bArr);\n }", "public int hashCode() {\n try {\n int res = 0;\n byte[] array = getEncoded();\n for (int i=0; i<array.length; i++) {\n res += array[i] & 0xFF;\n }\n return res;\n } catch (CRLException e) {\n return 0;\n }\n }", "String getHash();", "String getHash();", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "public int hashcode();", "public String getHash() {\n return hash;\n }", "public String getHash() {\n return hash;\n }", "public String getHash() {\n return hash;\n }", "public String getHash()\n {\n return hash;\n }", "public String getHash() {\n return hash;\n }", "public String getHashCode();", "public int hashCode() {\n int result = 17;\n\n if (_address != null) {\n result = 37 * result + _address.hashCode();\n }\n\n return result;\n }", "protected int hashCode(URL paramURL) {\n/* 351 */ int i = 0;\n/* */ \n/* */ \n/* 354 */ String str1 = paramURL.getProtocol();\n/* 355 */ if (str1 != null) {\n/* 356 */ i += str1.hashCode();\n/* */ }\n/* */ \n/* 359 */ InetAddress inetAddress = getHostAddress(paramURL);\n/* 360 */ if (inetAddress != null) {\n/* 361 */ i += inetAddress.hashCode();\n/* */ } else {\n/* 363 */ String str = paramURL.getHost();\n/* 364 */ if (str != null) {\n/* 365 */ i += str.toLowerCase().hashCode();\n/* */ }\n/* */ } \n/* */ \n/* 369 */ String str2 = paramURL.getFile();\n/* 370 */ if (str2 != null) {\n/* 371 */ i += str2.hashCode();\n/* */ }\n/* */ \n/* 374 */ if (paramURL.getPort() == -1) {\n/* 375 */ i += getDefaultPort();\n/* */ } else {\n/* 377 */ i += paramURL.getPort();\n/* */ } \n/* */ \n/* 380 */ String str3 = paramURL.getRef();\n/* 381 */ if (str3 != null) {\n/* 382 */ i += str3.hashCode();\n/* */ }\n/* 384 */ return i;\n/* */ }", "public int hashCode() {\n if (hash == -1) {\n hash = 0;\n byte b[] = packet.getData();\n int len = b.length;\n for (int ix = 0; ix < len; ix++) {\n\thash = 31 * hash + b[ix];\n }\n hash ^= (packet.getAddress().hashCode() ^\n\t (packet.getPort() << 15) ^\n\t (packet.getLength() << 3) ^\n\t (packet.getOffset() << 8));\n }\n return hash;\n }", "public abstract int getHash();", "public String getHash() {\n\t\treturn hash;\n\t}", "@Override\n public int hashCode() {\n if (hash == 0)\n hash = MD5.getHash(owner.getLogin() + description).hashCode();\n return hash;\n }", "@Override\r\n\tpublic int hashCode() {\n\t\tint result = 17;\r\n\t\tresult = 37*result+(int) (id ^ (id>>>32));\r\n\t\t//result = 37*result+(name==null?0:name.hashCode());\r\n\t\t//result = 37*result+displayOrder;\r\n\t\t//result = 37*result+(this.url==null?0:url.hashCode());\r\n\t\treturn result;\r\n\t}", "public String getHash() {\n\t\treturn _hash;\n\t}", "int computeHashCode(byte val);", "public byte[] getHash() {\n\t\treturn _hash.getDataID();\n\t}", "public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }", "public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}", "public int hashCode()\n {\n int code = 0;\n int i;\n int shift = 0;\n \n \t\tint byteLength = getLengthInBytes();\n for( i = 0; i < byteLength; i++)\n {\n code ^= (value[i] & 0xff)<<shift;\n shift += 8;\n if( 32 <= shift)\n shift = 0;\n }\n return code;\n }", "public int hashCode() {\n return HashFunction.hashCode(new int[] { statusUuid.hashCode(), pathUuid.hashCode(), (int) time });\n }", "public int hashCode()\n {\n if (this.hashValue == 0)\n {\n int result = 17;\n int wsidValue = this.getWsid() == null ? 0 : this.getWsid().hashCode();\n result = result * 37 + wsidValue;\n this.hashValue = result;\n }\n return this.hashValue;\n }", "private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}", "public String identityHash() {\n return Integer.toHexString(System.identityHashCode(this));\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }", "public int getHashCode(){\n return hashCode();\n }", "public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }", "public int hashCode(){\n int hash = HashCodeUtil.SEED;\n\n hash = HashCodeUtil.hash(hash,getEventTimeMillis());\n hash = HashCodeUtil.hash(hash,getEventId());\n hash = HashCodeUtil.hash(hash,getAuthenticationType());\n hash = HashCodeUtil.hash(hash,getServiceHost());\n hash = HashCodeUtil.hash(hash,getRequesterIp());\n hash = HashCodeUtil.hash(hash,getSessionId());\n hash = HashCodeUtil.hash(hash,getResourceHost());\n hash = HashCodeUtil.hash(hash,getPrincipalName());\n hash = HashCodeUtil.hash(hash,getEventType());\n hash = HashCodeUtil.hash(hash,getServiceId());\n hash = HashCodeUtil.hash(hash,getResourceId());\n\n\n return hash;\n\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }", "public int hashCode() {\n\t\treturn BeanTools.createHashcode(id, consultContent, consultTime);\r\n\t}", "public int hashCode()\n {\n return hash;\n }", "public int hashCode() {\r\n int result = 17;\r\n result = xCH(result, getTableDbName());\r\n result = xCH(result, getMemberAddressId());\r\n return result;\r\n }", "public int hashCode() {\n\t\treturn this.eid + 25;\n\t}", "@Override\n public int hashCode ()\n {\n int hash = 7;\n hash = 53 * hash + Arrays.hashCode (this.bytes);\n return hash;\n }", "public int hashCode() {\r\n\t\treturn Objects.hash(this.description, this.destination);\r\n\t}", "String getHashAlgorithm();", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "public int hashCode() {\n int result = 1;\n Object $pageSize = this.getPageSize();\n result = result * 59 + ($pageSize == null ? 43 : $pageSize.hashCode());\n Object $pageNo = this.getPageNo();\n result = result * 59 + ($pageNo == null ? 43 : $pageNo.hashCode());\n Object $sort = this.getSort();\n result = result * 59 + ($sort == null ? 43 : $sort.hashCode());\n Object $orderByField = this.getOrderByField();\n result = result * 59 + ($orderByField == null ? 43 : $orderByField.hashCode());\n return result;\n }", "public byte[] getHash() {\n\t\treturn generatedHash;\n\t}", "private int getHash() {\n return (name + FluentIterable.from(getDimensions()).transform(new Function<CloudConfigurationDimension, String>() {\n @Override\n public String apply(CloudConfigurationDimension dimension) {\n return getStringRepresentation(dimension);\n }\n }).toString()).hashCode();\n }", "public int hashCode() {\n\t\treturn hashString.hashCode();\n\t}", "public int hash(String item);", "@Override\n public int hashCode()\n {\n return getURI().hashCode();\n }", "public int hashCode() {\n\t\t// simple recipe for generating hashCode given by\n\t\t// Effective Java (Addison-Wesley, 2001)\n\t\tint result = 17;\n\t\tresult = 37 * result + methodName.hashCode();\n\t\treturn result;\n\t}", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public String getHashValue() {\n return hashValue;\n }", "public int hashCode() {\r\n\t\treturn this.iD;\r\n\t}", "public int getHashLength() {\n\t\treturn hashLength;\n\t}", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "public String getHash()\n\t{\n\t\tif(isModified) generateHash();\n\t\treturn hash;\n\t}", "public int hashCode() {\n return hash.hashCode();\n }", "public String getMD5() {\n return hash;\n }", "public String getHashType() {\n\t\treturn _hash_type;\n\t}", "public int hashCode()\n {\n int hash = 7;\n hash = 83 * hash + (counter != null ? counter.hashCode() : 0);\n return hash;\n }", "@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\thash = hash * a + tmp;\n\t\t\ta *= b;\n\t\t}\n\t\treturn hash;\n\t}", "public static final int nextHashCodeEntropy() {\n\t\tint hash = 17;\n\t\tfor (int i = 0; i < 11; i++) {\n\t\t\thash = 37 * hash + new Object().hashCode();\n\t\t}\n\t\treturn hash = 37 * hash + new Object().hashCode();\n\t}", "@Override\n public int hashCode() {\n \n final int code = 24;\n int result = 1;\n result = code * result + ((id == null) ? 0 : id.hashCode());\n return result;\n }", "public int hashCode() {\n return 37 * 17;\n }", "public int hashCode() {\n int hash = 0;\n hash = width;\n hash <<= 8;\n hash ^= height;\n hash <<= 8;\n hash ^= numBands;\n hash <<= 8;\n hash ^= dataType;\n hash <<= 8;\n for (int i = 0; i < bandOffsets.length; i++) {\n hash ^= bandOffsets[i];\n hash <<= 8;\n }\n for (int i = 0; i < bankIndices.length; i++) {\n hash ^= bankIndices[i];\n hash <<= 8;\n }\n hash ^= numBands;\n hash <<= 8;\n hash ^= numBanks;\n hash <<= 8;\n hash ^= scanlineStride;\n hash <<= 8;\n hash ^= pixelStride;\n return hash;\n }", "public int hashCode() {\n\t\treturn 14356 + historyIndex * 373 + dimension; \n\t\t// return some arbitrary number related to historyIndex and dimension\n\t}", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "public int hashCode() {\n return this.asn;\n }", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (projectId != null ? projectId.hashCode() : 0);\n return hash;\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public int hashCode() {\n\t\treturn toString().hashCode();\n\t}", "public int hashCode()\n {\n int i = 0;\n if ( hasCode() )\n i ^= getCode().hashCode();\n return i;\n }", "public int hashCode() {\n return new HashCodeBuilder(7, 29)\n .append(meaning)\n .append(type)\n .append(target)\n .toHashCode(); \n }", "public int hashCode() {\n /*\n r7 = this;\n com.unboundid.ldap.matchingrules.CaseIgnoreStringMatchingRule r0 = com.unboundid.ldap.matchingrules.CaseIgnoreStringMatchingRule.getInstance()\n byte r1 = r7.filterType\n r2 = -121(0xffffffffffffff87, float:NaN)\n if (r1 == r2) goto L_0x009a\n r2 = 0\n switch(r1) {\n case -96: goto L_0x008b;\n case -95: goto L_0x008b;\n case -94: goto L_0x0084;\n case -93: goto L_0x006e;\n case -92: goto L_0x0034;\n case -91: goto L_0x006e;\n case -90: goto L_0x006e;\n default: goto L_0x000e;\n }\n L_0x000e:\n switch(r1) {\n case -88: goto L_0x006e;\n case -87: goto L_0x0013;\n default: goto L_0x0011;\n }\n L_0x0011:\n goto L_0x00a5\n L_0x0013:\n java.lang.String r2 = r7.attrName\n if (r2 == 0) goto L_0x0020\n java.lang.String r2 = com.unboundid.util.StaticUtils.toLowerCase(r2)\n int r2 = r2.hashCode()\n int r1 = r1 + r2\n L_0x0020:\n java.lang.String r2 = r7.matchingRuleID\n if (r2 == 0) goto L_0x002d\n java.lang.String r2 = com.unboundid.util.StaticUtils.toLowerCase(r2)\n int r2 = r2.hashCode()\n int r1 = r1 + r2\n L_0x002d:\n boolean r2 = r7.dnAttributes\n if (r2 == 0) goto L_0x0079\n int r1 = r1 + 1\n goto L_0x0079\n L_0x0034:\n java.lang.String r3 = r7.attrName\n java.lang.String r3 = com.unboundid.util.StaticUtils.toLowerCase(r3)\n int r3 = r3.hashCode()\n int r1 = r1 + r3\n com.unboundid.asn1.ASN1OctetString r3 = r7.subInitial\n if (r3 == 0) goto L_0x004e\n r4 = -128(0xffffffffffffff80, float:NaN)\n com.unboundid.asn1.ASN1OctetString r3 = r0.normalizeSubstring(r3, r4)\n int r3 = r3.hashCode()\n int r1 = r1 + r3\n L_0x004e:\n com.unboundid.asn1.ASN1OctetString[] r3 = r7.subAny\n int r4 = r3.length\n L_0x0051:\n if (r2 >= r4) goto L_0x0063\n r5 = r3[r2]\n r6 = -127(0xffffffffffffff81, float:NaN)\n com.unboundid.asn1.ASN1OctetString r5 = r0.normalizeSubstring(r5, r6)\n int r5 = r5.hashCode()\n int r1 = r1 + r5\n int r2 = r2 + 1\n goto L_0x0051\n L_0x0063:\n com.unboundid.asn1.ASN1OctetString r2 = r7.subFinal\n if (r2 == 0) goto L_0x00a5\n r3 = -126(0xffffffffffffff82, float:NaN)\n com.unboundid.asn1.ASN1OctetString r0 = r0.normalizeSubstring(r2, r3)\n goto L_0x007f\n L_0x006e:\n java.lang.String r2 = r7.attrName\n java.lang.String r2 = com.unboundid.util.StaticUtils.toLowerCase(r2)\n int r2 = r2.hashCode()\n int r1 = r1 + r2\n L_0x0079:\n com.unboundid.asn1.ASN1OctetString r2 = r7.assertionValue\n com.unboundid.asn1.ASN1OctetString r0 = r0.normalize(r2)\n L_0x007f:\n int r0 = r0.hashCode()\n goto L_0x00a4\n L_0x0084:\n com.unboundid.ldap.sdk.Filter r0 = r7.notComp\n int r0 = r0.hashCode()\n goto L_0x00a4\n L_0x008b:\n com.unboundid.ldap.sdk.Filter[] r0 = r7.filterComps\n int r3 = r0.length\n L_0x008e:\n if (r2 >= r3) goto L_0x00a5\n r4 = r0[r2]\n int r4 = r4.hashCode()\n int r1 = r1 + r4\n int r2 = r2 + 1\n goto L_0x008e\n L_0x009a:\n java.lang.String r0 = r7.attrName\n java.lang.String r0 = com.unboundid.util.StaticUtils.toLowerCase(r0)\n int r0 = r0.hashCode()\n L_0x00a4:\n int r1 = r1 + r0\n L_0x00a5:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.ldap.sdk.Filter.hashCode():int\");\n }", "public int hashCode() {\n return Objects.hashCode(this);\n }", "@Override\n public int hashCode() {\n int result = doi.hashCode();\n result = 31 * result + mappedUrl.hashCode();\n result = 31 * result + status.hashCode();\n result = 31 * result + message.hashCode();\n result = 31 * result + date.hashCode();\n return result;\n }", "int getClientHashLength();", "@ApiModelProperty(value = \"The unique identifier for this entity. Guaranteed to be unique for the type of entity, but not globally. When entities refer to each other in Destiny content, it is this hash that they are referring to.\")\n public Long getHash() {\n return hash;\n }", "public int hashCode()\n {\n return 37 * 17 + this.EAS_event_ID;\n }", "@Override\n public int hashCode() {\n int hash = 5;\n hash = 41 * hash + this.emailID;\n hash = 41 * hash + this.folderKey;\n hash = 41 * hash + Objects.hashCode(this.receivedDate);\n hash = 41 * hash + Objects.hashCode(this.email.from());\n hash = 41 * hash + Objects.hashCode(this.email.to());\n hash = 41 * hash + Objects.hashCode(this.email.cc());\n hash = 41 * hash + Objects.hashCode(this.email.bcc());\n hash = 41 * hash + Objects.hashCode(this.email.subject());\n hash = 41 * hash + Objects.hashCode(this.email.messages());\n hash = 41 * hash + Objects.hashCode(this.email.attachments());\n return hash;\n }", "public int hashCode() {\n long hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getProject());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getUser());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getStatus());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getLastActivityDate());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasPiSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasDpSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasAdminSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasRequestorSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getEmailStatus());\n return (int)(hash % Integer.MAX_VALUE);\n }", "int hashCode();", "int hashCode();", "public int hashCode() {\n if (hashCode != 0){\n return hashCode;\n }\n return hashCode = computeHash();\n }", "@Override\n public int hashCode() {\n int hash = 0;\n hash += (id != null ? id.hashCode() : 0);\n return hash;\n }", "public int hash(T input);", "private int calculateHash(int id, String uri) {\n\t\treturn uri.hashCode() * Constants.HASH_PRIMES[0]\n\t\t\t\t+ Integer.toString(id).hashCode() * Constants.HASH_PRIMES[1];\n\t}", "public static int calculateHash(final Class klass) {\n return klass.getName().hashCode();\n }" ]
[ "0.66338176", "0.6630933", "0.6627184", "0.6604147", "0.65384126", "0.65181804", "0.65126324", "0.65126324", "0.6477759", "0.6477759", "0.6459003", "0.6450833", "0.6450833", "0.6450833", "0.6447473", "0.6435267", "0.64213747", "0.6390469", "0.6387872", "0.6368066", "0.6357865", "0.63494617", "0.6330178", "0.6293395", "0.62898535", "0.62539095", "0.62476563", "0.6215444", "0.62089944", "0.61776006", "0.61661947", "0.61352694", "0.6119157", "0.609632", "0.60938394", "0.60938394", "0.608907", "0.6062041", "0.60607046", "0.6057156", "0.6057156", "0.6023929", "0.60163397", "0.6001081", "0.5999322", "0.59969145", "0.5991914", "0.5985439", "0.59836215", "0.59778214", "0.5974095", "0.5971216", "0.5967241", "0.59557474", "0.5955681", "0.5939623", "0.59259516", "0.59259516", "0.59202856", "0.59134746", "0.59076816", "0.5904542", "0.58612037", "0.58481896", "0.58465433", "0.5841766", "0.58338416", "0.5829789", "0.58247185", "0.58243984", "0.5823734", "0.5821797", "0.5808132", "0.5793175", "0.57831365", "0.57806647", "0.57806647", "0.57806647", "0.57806647", "0.5774969", "0.5774754", "0.5770752", "0.57666135", "0.5764603", "0.5759948", "0.5758137", "0.5757094", "0.57525", "0.5751416", "0.5750871", "0.5748677", "0.57467896", "0.5737784", "0.5735484", "0.5715893", "0.5715893", "0.5713009", "0.57105887", "0.57016385", "0.57016027", "0.5696911" ]
0.0
-1
Create DIDURL builder object with given url as default pattern.
public Builder(DIDURL url) { this.url = url.deepClone(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "Builder addUrl(String value);", "static DefaultUrlBuilder from(URL baseUrl) {\n if (!baseUrl.getProtocol().equals(\"http\") && !baseUrl.getProtocol().equals(\"https\")) {\n throw new SafeIllegalArgumentException(\n \"unsupported protocol\", SafeArg.of(\"protocol\", baseUrl.getProtocol()));\n }\n if (Strings.emptyToNull(baseUrl.getQuery()) != null) {\n throw new SafeIllegalArgumentException(\n \"baseUrl query must be empty\", UnsafeArg.of(\"query\", baseUrl.getQuery()));\n }\n if (Strings.emptyToNull(baseUrl.getRef()) != null) {\n throw new SafeIllegalArgumentException(\n \"baseUrl ref must be empty\", UnsafeArg.of(\"ref\", baseUrl.getRef()));\n }\n if (Strings.emptyToNull(baseUrl.getUserInfo()) != null) {\n // the value of baseUrl.getUserInfo() may contain credential information and mustn't be logged\n throw new SafeIllegalArgumentException(\"baseUrl user info must be empty\");\n }\n return new DefaultUrlBuilder(baseUrl);\n }", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "@NotNull public Builder url(@NotNull String url) {\n putValue(\"url\", url);\n return this;\n }", "@NotNull public Builder url(@NotNull String url) {\n putValue(\"url\", url);\n return this;\n }", "@NotNull public Builder url(@NotNull String url) {\n putValue(\"url\", url);\n return this;\n }", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "Builder addUrl(URL value);", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n url_ = value;\n onChanged();\n return this;\n }", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "protected static ConfigurationOption<URL> createUrlOption(String key, URL dflt) {\r\n return new ConfigurationOption<URL>(key, dflt, PropertyReader.URL_READER);\r\n }", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "abstract UrlPatternMatcher create( String pattern );", "public URL makeBase(URL startingURL);", "@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public Builder clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000004);\n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "public Builder clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000001);\n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "private static URL createURL(String requestedUrl) {\n URL url = null;\n try {\n url = new URL(requestedUrl);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"createdUrl: Problem building URL\", e);\n }\n return url;\n }", "public Builder clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000001);\n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "public Builder clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000002);\n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public Builder url(String url) {\n this.url = url;\n return this;\n }", "protected UrlPattern() {\n }", "public Builder clearUrl() {\n \n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "public Builder clearUrl() {\n \n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "@Api(1.1)\n public Builder url(String url) {\n url(url, null, null);\n return this;\n }", "Builder addDiscussionUrl(String value);", "public String urlBuilder(int year, int month, int day){\n\t\tStringBuilder url = new StringBuilder(baseUrl);\n\t\turl.append(year);\n\t\turl.append(\"/\");\n\t\tif(month<10)url.append('0');//if month is one digit we pad zero to url\n\t\turl.append(month);\n\t\turl.append(\"/\");\n\t\tif(day<10)url.append('0');//if day is one digit we pad zero to url\n\t\turl.append(day);\n\t\turl.append(\".xml\");\n\t\treturn url.toString();\n\t}", "Builder addDiscussionUrl(URL value);", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "public Builder clearUrl() {\n\n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "private DataHandler createDataHandler(URL url) throws MalformedURLException {\n return new DataHandler(url);\n }", "public Builder url(URI endpoint) {\n return server(endpoint);\n }", "public DIDURL(DID context, String url) throws MalformedDIDURLException {\n\t\tParser parser = new Parser();\n\t\tparser.parse(context, url);\n\t}", "public URIBuilder() {\n super();\n this.port = -1;\n }", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n url_ = value;\n onChanged();\n return this;\n }", "private static URL generateUrl(String requestedUrlString) {\n URL url = null;\n\n try {\n url = new URL(requestedUrlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating a URL object : generateURL() block\", e);\n }\n return url;\n }", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "private ApiUrlCreator() {\n }", "interface UrlModifier {\n\n String createUrl(String url);\n\n }", "public Builder withUrl(final String url) {\n this.url = url;\n return this;\n }", "public static URL buildurl(String url1)\n {\n URL url = null;\n try\n {\n url = new URL(url1.toString());\n\n }\n catch(MalformedURLException e)\n {\n e.printStackTrace();\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Problem building the URL \", e);\n }\n return url;\n }", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "public Builder(final String url, final String key) {\n\t\t\tthis.key = key;\n\t\t\tthis.url = url;\n\t\t}", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "private static URL createURL(String urlString) {\n\n // Create an empty url\n URL url = null;\n\n try {\n // Try to make a url from urlString param\n url = new URL(urlString);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error creating URL: \" + e);\n }\n\n //Return the new url\n return url;\n }", "public Builder setApiUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n apiUrl_ = value;\n onChanged();\n return this;\n }", "private URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "private String createUrlWithPort(String gadgetUrl) {\n try {\n URL origUrl = new URL(gadgetUrl);\n URL urlWithPort = null;\n String origHost = origUrl.getHost();\n if (origUrl.getPort() <= 0 && origHost != null && origHost.length() != 0\n && !STAR.equals(origHost)) {\n if (origUrl.getProtocol().equalsIgnoreCase(HTTP)) {\n urlWithPort = new URL(origUrl.getProtocol(), origUrl.getHost(), HTTP_PORT, origUrl.getFile());\n }\n else if (origUrl.getProtocol().equalsIgnoreCase(HTTPS)) {\n urlWithPort = new URL(origUrl.getProtocol(), origUrl.getHost(), HTTPS_PORT, origUrl.getFile());\n }\n return urlWithPort == null ? origUrl.toString() : urlWithPort.toString();\n } else {\n return origUrl.toString();\n }\n } catch (MalformedURLException e) {\n return gadgetUrl;\n }\n }", "Builder addIsBasedOnUrl(String value);", "public static SitemapGeneratorBuilder<GoogleNewsSitemapGenerator> builder(String baseUrl, File baseDir) throws MalformedURLException {\n\t\tSitemapGeneratorBuilder<GoogleNewsSitemapGenerator> builder = \n\t\t\tnew SitemapGeneratorBuilder<GoogleNewsSitemapGenerator>(baseUrl, baseDir, GoogleNewsSitemapGenerator.class);\n\t\tbuilder.maxUrls = GoogleNewsSitemapGenerator.MAX_URLS_PER_SITEMAP;\n\t\treturn builder;\n\t}", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error with creating URL \", e);\n }\n return url;\n }", "URI createURI();", "public static Constraints.Validator<String> url() {\n return new UrlValidator();\n }", "public sparqles.avro.discovery.DGETInfo.Builder clearURL() {\n URL = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "Builder addIsBasedOnUrl(URL value);", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n url_ = value;\n onChanged();\n return this;\n }", "public URL makeFullUrl(String scrapedString, URL base);", "private HttpDataSource.Factory buildHttpDataSourceFactory(DefaultBandwidthMeter bandwidthMeter) {\n return new DefaultHttpDataSourceFactory(userAgent, bandwidthMeter);\n }", "public Urls(IDomainModel model) {\n\t\tsuper(model);\n\t}", "private URLHelper() {\n\n }", "public void setDefaultUrl(String url) {\n\t\tthis.defaultUrl = url;\n\t}", "public Link(String url) {\n try {\n uri = new URL(fix(url)).toURI();\n } catch (Exception e) {\n uri = URI.create(\"\");\n }\n }", "private static URL createUrl(String stringUrl) {\n URL url = null;\n try {\n url = new URL(stringUrl);\n } catch (MalformedURLException exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "interface UriBuilderFactory {\n UriBuilder fromLink(Link link);\n\n UriBuilder fromPath(String s);\n\n UriBuilder fromUri(URI uri);\n}", "public static URL buildUrl(int id) {\n if (id == R.id.sort_by_popular) {\n SORT_BY = \"popular\";\n }\n if (id == R.id.sort_by_top_rated) {\n SORT_BY = \"top_rated\";\n }\n\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"http\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(SORT_BY)\n .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n .build();\n\n// Uri builtUri = new Uri.Builder().scheme(\"http\")\n// .authority(\"api.themoviedb.org\")\n// .appendPath(\"3\")\n// .appendPath(SORT_BY)\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n//\n// Uri.parse(MOVIE_DB_BASE_URL+SORT_BY).buildUpon()\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n Log.d(\"BUILDURL\", builder.toString());\n URL url = null;\n try {\n url = new URL(builder.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n return url;\n }", "@Nonnull public URL buildURL() throws MalformedURLException {\n installTrustStore();\n \n if (disableNameChecking) {\n final HostnameVerifier allHostsValid = new HostnameVerifier() {\n public boolean verify(final String hostname, final SSLSession session) {\n return true;\n }\n }; \n HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid); \n }\n \n final StringBuilder builder = new StringBuilder(getURL());\n if (getPath() != null) {\n builder.append(getPath());\n }\n\n return new URL(doBuildURL(builder).toString());\n }", "public Builder setSchemaUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n schemaUrl_ = value;\n onChanged();\n return this;\n }", "public Builder clearUrl() {\n copyOnWrite();\n instance.clearUrl();\n return this;\n }", "public Builder clearUrl() {\n copyOnWrite();\n instance.clearUrl();\n return this;\n }", "public interface UrlArgumentBuilder {\n\n /**\n * Sets next element of a chain.\n *\n * @param next next element of a chain\n */\n void setNext(final UrlArgumentBuilder next);\n\n /**\n * Builds URL argument that is used by Yandex static API.\n *\n * @param yandexMap yandex map\n * @return URL part\n */\n String build(final YandexMap yandexMap);\n\n}", "public test_SDURL(String n) {\n super(n);\n }", "private DataSource.Factory buildDataSourceFactory(DefaultBandwidthMeter bandwidthMeter) {\n return new DefaultDataSourceFactory(this, bandwidthMeter, buildHttpDataSourceFactory(bandwidthMeter));\n }", "public DefaultHref(String baseUrl)\r\n {\r\n this.parameters = new HashMap();\r\n setFullUrl(baseUrl);\r\n }", "public Builder setApiUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n apiUrl_ = value;\n onChanged();\n return this;\n }", "public UrlEncapsulation() {\r\n\t\t\r\n\t\tthis(null\r\n\t\t\t\t, null, null, null, null\r\n\t\t\t\t, false, null, null, null, null, null, null, null);\r\n\t\t\r\n\t}", "private JDBCMiddler(String controlador, String url) {\n this.controlador = controlador;\n this.url = url;\n }", "@Returns(\"targetId\")\n String createTarget(\n @ParamName(\"url\") String url,\n @Optional @ParamName(\"width\") Integer width,\n @Optional @ParamName(\"height\") Integer height,\n @Optional @ParamName(\"browserContextId\") String browserContextId,\n @Experimental @Optional @ParamName(\"enableBeginFrameControl\") Boolean enableBeginFrameControl,\n @Optional @ParamName(\"newWindow\") Boolean newWindow,\n @Optional @ParamName(\"background\") Boolean background);", "public Builder setSchemaUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n schemaUrl_ = value;\n onChanged();\n return this;\n }", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setUrlBytes(value);\n return this;\n }" ]
[ "0.63474506", "0.6006289", "0.5897573", "0.58093745", "0.57532954", "0.5668184", "0.5668184", "0.5668184", "0.5604306", "0.5571057", "0.5568433", "0.55555224", "0.5550629", "0.5548426", "0.5534233", "0.55305105", "0.55221623", "0.55221623", "0.550855", "0.54761183", "0.5475295", "0.54414475", "0.54067385", "0.5400688", "0.5395851", "0.5383918", "0.53780997", "0.5357297", "0.53510267", "0.5345178", "0.53399485", "0.5312149", "0.5301982", "0.5185622", "0.5185622", "0.51691717", "0.5159676", "0.5151423", "0.5144193", "0.51407695", "0.51100785", "0.5106416", "0.5090853", "0.50805813", "0.5080377", "0.507923", "0.507764", "0.50621355", "0.50595105", "0.50444907", "0.5040709", "0.5040577", "0.5031622", "0.5028596", "0.5019458", "0.5017145", "0.5012381", "0.50039434", "0.49759558", "0.49689344", "0.4955446", "0.4955446", "0.49499837", "0.49210182", "0.48891073", "0.4887271", "0.4879007", "0.48736694", "0.48511514", "0.48511514", "0.48448223", "0.4819768", "0.48194346", "0.4810585", "0.48076922", "0.48076922", "0.4806923", "0.48041984", "0.4802206", "0.47935924", "0.47928712", "0.47922572", "0.47871688", "0.47763", "0.47612405", "0.47519907", "0.47462702", "0.47403246", "0.47344175", "0.47344175", "0.47306028", "0.47232306", "0.47138393", "0.46931347", "0.46683958", "0.46567228", "0.46555853", "0.46537414", "0.46531618", "0.46490642" ]
0.6500033
0
Create DIDURL builder object with given did as base DID.
public Builder(DID did) { this(new DIDURL(did)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public Builder setDid(String did) {\n\t\t\treturn setDid(DID.valueOf(did));\n\t\t}", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public UrlBuilder compileUrlBuilder(UrlBuilder baseUrl, String resource, String id) {\n UrlBuilder url = new UrlBuilder(baseUrl);\n url.addPathSegment(resource);\n\n if (id != null) {\n url.addParameter(\"id\", id);\n }\n\n return url;\n }", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "public URL makeBase(URL startingURL);", "private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public PersonAddressBuilderDFB(PersonDFB person){\n //only one person we are building up but need a reference to it in every sub builder\n this.person = person;\n }", "public Builder setBaseDirectoryName(String val) {\n mBaseDirectoryName = val;\n return this;\n }", "public UrlBuilder compileBaseUrl(HttpServletRequest request, String repositoryId) {\n String baseUrl = (String) request.getAttribute(Dispatcher.BASE_URL_ATTRIBUTE);\n if (baseUrl != null) {\n int repIdPos = baseUrl.indexOf(REPOSITORY_PLACEHOLDER);\n if (repIdPos < 0) {\n return new UrlBuilder(baseUrl);\n } else {\n return new UrlBuilder(baseUrl.substring(0, repIdPos) + repositoryId\n + baseUrl.substring(repIdPos + REPOSITORY_PLACEHOLDER.length()));\n }\n }\n\n UrlBuilder url = new UrlBuilder(request.getScheme(), request.getServerName(), request.getServerPort(), null);\n\n url.addPath(request.getContextPath());\n url.addPath(request.getServletPath());\n\n if (repositoryId != null) {\n url.addPathSegment(repositoryId);\n }\n\n return url;\n }", "static DefaultUrlBuilder from(URL baseUrl) {\n if (!baseUrl.getProtocol().equals(\"http\") && !baseUrl.getProtocol().equals(\"https\")) {\n throw new SafeIllegalArgumentException(\n \"unsupported protocol\", SafeArg.of(\"protocol\", baseUrl.getProtocol()));\n }\n if (Strings.emptyToNull(baseUrl.getQuery()) != null) {\n throw new SafeIllegalArgumentException(\n \"baseUrl query must be empty\", UnsafeArg.of(\"query\", baseUrl.getQuery()));\n }\n if (Strings.emptyToNull(baseUrl.getRef()) != null) {\n throw new SafeIllegalArgumentException(\n \"baseUrl ref must be empty\", UnsafeArg.of(\"ref\", baseUrl.getRef()));\n }\n if (Strings.emptyToNull(baseUrl.getUserInfo()) != null) {\n // the value of baseUrl.getUserInfo() may contain credential information and mustn't be logged\n throw new SafeIllegalArgumentException(\"baseUrl user info must be empty\");\n }\n return new DefaultUrlBuilder(baseUrl);\n }", "public static DeviceIdentifierBuilder builder() {\n return new DeviceIdentifierBuilder();\n }", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "Builder forDevice(DeviceId deviceId);", "protected void setDid(DID did) {\n\t\tthis.did = did;\n\t}", "public abstract ManagedChannelBuilder<?> builderForAddress(String str, int i);", "private URLConnection urlConnBuilder(URI base, URI resource) throws IOException {\n if (!resource.isAbsolute() && base != null) {\n resource = base.resolve(resource);\n }\n URL specURL = resource.toURL();\n URLConnection connection = specURL.openConnection();\n connection.setRequestProperty(\"Accept\", \"application/json\");\n connection.setRequestProperty(\"user-agent\", \"spymemcached vbucket client\");\n connection.setRequestProperty(\"X-memcachekv-Store-Client-Specification-Version\", CLIENT_SPEC_VER);\n\tif (restUsr != null) {\n\t try {\n\t\tconnection.setRequestProperty(\"Authorization\", buildAuthHeader(restUsr, restPwd));\n\t } catch (UnsupportedEncodingException ex) {\n\t\tthrow new IOException(\"Could not encode specified credentials for HTTP request.\", ex);\n\t }\n\t}\n\n return connection;\n\n }", "@Nonnull protected StringBuilder doBuildURL(@Nonnull final StringBuilder builder) {\n return builder;\n }", "DD createDD();", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "private DnsEndpoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder basePath(String basePath) {\n this.basePath = basePath;\n\t\t\t\t\treturn this.me();\n }", "public static SitemapGeneratorBuilder<GoogleNewsSitemapGenerator> builder(String baseUrl, File baseDir) throws MalformedURLException {\n\t\tSitemapGeneratorBuilder<GoogleNewsSitemapGenerator> builder = \n\t\t\tnew SitemapGeneratorBuilder<GoogleNewsSitemapGenerator>(baseUrl, baseDir, GoogleNewsSitemapGenerator.class);\n\t\tbuilder.maxUrls = GoogleNewsSitemapGenerator.MAX_URLS_PER_SITEMAP;\n\t\treturn builder;\n\t}", "public abstract ManagedChannelBuilder<?> builderForTarget(String str);", "public teledon.network.protobuffprotocol.TeledonProtobufs.Donatie.Builder getDonatieBuilder() {\n\n onChanged();\n return getDonatieFieldBuilder().getBuilder();\n }", "public Builder url(URI endpoint) {\n return server(endpoint);\n }", "public Builder setEndpoint(\n io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder builderForValue) {\n if (endpointBuilder_ == null) {\n endpoint_ = builderForValue.build();\n onChanged();\n } else {\n endpointBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public Builder setUserDNBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userDN_ = value;\n\n return this;\n }", "public abstract Endpoint createEndpoint(String bindingId, Object implementor);", "public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder getEndpointBuilder() {\n \n onChanged();\n return getEndpointFieldBuilder().getBuilder();\n }", "public Builder setDobBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n dob_ = value;\n onChanged();\n return this;\n }", "public static OfbizUrlBuilder fromWebSiteId(String webSiteId, Delegator delegator) throws WebAppConfigurationException,\n IOException, SAXException, GenericEntityException, IllegalArgumentException {\n WebappInfo webAppInfo = null;\n WebSiteProperties webSiteProps = null;\n if (webSiteId != null && !webSiteId.isEmpty()) {\n webAppInfo = WebAppUtil.getWebappInfoFromWebsiteId(webSiteId);\n webSiteProps = WebSiteProperties.from(webSiteId, delegator);\n }\n if (webSiteProps == null) {\n webSiteProps = WebSiteProperties.defaults(delegator);\n }\n return from(webAppInfo, webSiteProps, delegator);\n }", "@Test\r\n public void testCreateMyDid() throws SodiumException {\r\n CryptoService instance = new CryptoService();\r\n Pair<Did, Keys> result = instance.createMyDid(new MyDidInfo(\"NcYxiDXkpYi6ov5FcYDi1e\", null));\r\n assertEquals(result.first.did, \"NcYxiDXkpYi6ov5FcYDi1e\");\r\n }", "public Builder setDob(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n dob_ = value;\n onChanged();\n return this;\n }", "public DerivCdRecord(java.lang.String derivCd, java.lang.String derivDesc) {\n\t\tsuper(com.glennbech.usda.model.tables.DerivCd.DERIV_CD);\n\n\t\tsetValue(0, derivCd);\n\t\tsetValue(1, derivDesc);\n\t}", "private OfbizUrlBuilder(ControllerConfig config, WebSiteProperties webSiteProps, String servletPath, String contextPath) {\n this.config = config;\n this.webSiteProps = webSiteProps;\n // SCIPIO: 2018-08-01: this comes in with a trailing slash half the time, strip it here\n // because it complicates everything else for no reason...\n if (servletPath != null && servletPath.endsWith(\"/\")) {\n servletPath = servletPath.substring(0, servletPath.length() - 1);\n }\n this.servletPath = servletPath;\n this.contextPath = contextPath;\n }", "public static JoinRequest buildJoinRequest(Integer chatRoomID, Integer userID) {\n JoinRequest.Data joinRequestData = JoinRequest.Data.builder()\n .chatRoomID(chatRoomID)\n .userID(userID)\n .build();\n return JoinRequest.builder()\n .request(\"join\")\n .data(joinRequestData)\n .build();\n }", "public teledon.network.protobuffprotocol.TeledonProtobufs.Donatie.Builder getDonatieBuilder() {\n return getDonatieFieldBuilder().getBuilder();\n }", "public void setBaseId(String baseId) {\n this.baseId = baseId;\n }", "public static SitemapGeneratorBuilder<GoogleNewsSitemapGenerator> builder(URL baseUrl, File baseDir) {\n\t\tSitemapGeneratorBuilder<GoogleNewsSitemapGenerator> builder = \n\t\t\tnew SitemapGeneratorBuilder<GoogleNewsSitemapGenerator>(baseUrl, baseDir, GoogleNewsSitemapGenerator.class);\n\t\tbuilder.maxUrls = 1000;\n\t\treturn builder;\n\t}", "public Determiner(String id, String baseform) {\n\t\tthis(baseform);\n\t\tsetID(id);\n\t}", "private DnsVirtualDomain(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@org.junit.Test\n public void constrCompelemBaseuri2() {\n final XQuery query = new XQuery(\n \"fn:base-uri(exactly-one((<elem xml:base=\\\"http://www.example.com\\\">{element a {}}</elem>)/a))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "public URL makeFullUrl(String scrapedString, URL base);", "public PersonAddressBuilderDFB lives(){\n return new PersonAddressBuilderDFB(person);\n }", "public Builder setDeviceIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n deviceId_ = value;\n onChanged();\n return this;\n }", "@org.junit.Test\n public void constrCompelemBaseuri1() {\n final XQuery query = new XQuery(\n \"fn:base-uri(element elem {attribute xml:base {\\\"http://www.example.com\\\"}})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "private static String buildUrlString(String base, Map<String, String> params) {\n if (params == null || params.isEmpty()) return API_URL + base;\n //construct get parameters list\n StringBuilder get = new StringBuilder();\n boolean first = true;\n for (String param : params.keySet()) {\n if (!first) get.append('&'); else first = false;\n //add the parameter\n get.append(param);\n String value = params.get(param);\n if (value != null) {\n get.append('=');\n get.append(value);\n }\n }\n //return the full string\n if (get.length() == 0) return API_URL + base;\n return API_URL + base + \"?\" + get.toString();\n }", "private D(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<com.xubao.test.simpleTest.protobufTest.ForExtendTest.D, ?> builder) {\n super(builder);\n }", "public io.lightcone.data.types.AccountID.Builder getWalletIdBuilder() {\n \n onChanged();\n return getWalletIdFieldBuilder().getBuilder();\n }", "public UUID getBaseBuilderUUID() {\n\t\treturn baseBuilder;\n\t}", "public static LinkBuilder builder() {\n return new LinkBuilder();\n }", "Adresse createAdresse();", "protected final static EndpointAddress mkAddress(String destPeer, String serv, String parm) {\r\n\r\n ID asID = ID.create(URI.create(destPeer));\r\n return mkAddress(asID, serv, parm);\r\n }", "public java.lang.String getDID() {\r\n return DID;\r\n }", "private DnsServiceTarget(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "protected Name buildDn(Person user) {\n return buildDn(user.getUsername());\n }", "public NewDeviceRequest(String deviceId) {\n super();\n setId(deviceId);\n }", "public static OfbizUrlBuilder from(ExtWebappInfo extWebAppInfo, WebSiteProperties webSiteProps, Delegator delegator) throws WebAppConfigurationException, IOException, SAXException, GenericEntityException {\n ControllerConfig config = null;\n String servletPath = null;\n String contextPath = null;\n if (extWebAppInfo != null) {\n Assert.notNull(\"delegator\", delegator);\n config = extWebAppInfo.getControllerConfig();\n servletPath = extWebAppInfo.getFullControlPath();\n contextPath = extWebAppInfo.getContextPath();\n }\n if (webSiteProps == null) {\n webSiteProps = WebSiteProperties.defaults(delegator);\n }\n return new OfbizUrlBuilder(config, webSiteProps, servletPath, contextPath);\n }", "public Builder setDonatie(teledon.network.protobuffprotocol.TeledonProtobufs.Donatie value) {\n if (donatieBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n payload_ = value;\n onChanged();\n } else {\n donatieBuilder_.setMessage(value);\n }\n payloadCase_ = 5;\n return this;\n }", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "public File createContainingDir(File basedir) {\n String dirname = FileUtils.toSafeFileName(_url.getHost()+\"_\"+_layerName);\n File dir = new File(basedir, dirname );\n \n for(int i=1; dir.exists(); i++){\n dir = new File(basedir, dirname+\"_\"+i);\n }\n return dir;\n }", "public static OfbizUrlBuilder from(WebappInfo webAppInfo, WebSiteProperties webSiteProps, Delegator delegator) throws WebAppConfigurationException, IOException, SAXException, GenericEntityException {\n ControllerConfig config = null;\n String servletPath = null;\n String contextPath = null;\n if (webAppInfo != null) {\n Assert.notNull(\"delegator\", delegator);\n config = ConfigXMLReader.getControllerConfig(webAppInfo, true); // SCIPIO: 2017-11-18: controller now optional\n servletPath = WebAppUtil.getControlServletPath(webAppInfo, true); // SCIPIO: 2017-11-18: ControlServlet now optional\n contextPath = webAppInfo.getContextRoot();\n }\n if (webSiteProps == null) {\n webSiteProps = WebSiteProperties.defaults(delegator);\n }\n return new OfbizUrlBuilder(config, webSiteProps, servletPath, contextPath);\n }", "public DerivCdRecord() {\n\t\tsuper(com.glennbech.usda.model.tables.DerivCd.DERIV_CD);\n\t}", "public URIBuilder() {\n super();\n this.port = -1;\n }", "public Builder setDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n d_ = value;\n onChanged();\n return this;\n }", "public teledon.network.protobuffprotocol.TeledonProtobufs.Donator.Builder getDonatorBuilder() {\n\n onChanged();\n return getDonatorFieldBuilder().getBuilder();\n }", "public static Node buildBNode(final String id) {\n\t\treturn NodeFactory.createAnon(AnonId.create(id));\n\t}", "public static URL buildUrl(int id) {\n if (id == R.id.sort_by_popular) {\n SORT_BY = \"popular\";\n }\n if (id == R.id.sort_by_top_rated) {\n SORT_BY = \"top_rated\";\n }\n\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"http\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(SORT_BY)\n .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n .build();\n\n// Uri builtUri = new Uri.Builder().scheme(\"http\")\n// .authority(\"api.themoviedb.org\")\n// .appendPath(\"3\")\n// .appendPath(SORT_BY)\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n//\n// Uri.parse(MOVIE_DB_BASE_URL+SORT_BY).buildUpon()\n// .appendQueryParameter(PARAM_QUERY, Constants.API_KEY)\n// .build();\n Log.d(\"BUILDURL\", builder.toString());\n URL url = null;\n try {\n url = new URL(builder.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n return url;\n }", "protected String pathBuilder(String... segments) {\n\t\t\n\t\tStringBuffer path = new StringBuffer();\n\t\tfor(String seg : segments){\n\t\t\tif(seg != null){\n\t\t\t\tpath.append(seg);\n\t\t\t\tpath.append(\"/\");\n\t\t\t}\n\t\t}\n\t\treturn path.toString();\n\t}", "@Override\n public boolean delete(String did) {\n DIDDocument didDocument = resolverRepository.getDIDDocument(did);\n\n didDocument.setJsonObjectKeyValue(\"publicKey\", \"\");\n didDocument.setJsonObjectKeyValue(\"authentication\", \"\");\n didDocument.setJsonObjectKeyValue(\"assertionMethod\", \"\");\n\n return registrarRepository.saveDIDDocument(didDocument);\n }", "public Builder setDeriverNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n AbstractMessageLite.checkByteStringIsUtf8(value);\n \n deriverName_ = value;\n onChanged();\n return this;\n }", "public DIDURL(DID context, String url) throws MalformedDIDURLException {\n\t\tParser parser = new Parser();\n\t\tparser.parse(context, url);\n\t}", "public void buildPathPart(Appendable buffer, String uri) throws WebAppConfigurationException, IOException {\n buildPathPart(buffer, uri, null);\n }", "public Builder dlzh(String dlzh) {\n obj.setDlzh(dlzh);\n return this;\n }", "public PeerBuilder(final Number160 peerId) {\n\t\tthis.peerId = peerId;\n\t}", "public Builder setBididBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bidid_ = value;\n onChanged();\n return this;\n }", "public Builder setEndpoint(String endpoint) {\n this.endpoint = Preconditions.checkNotNull(endpoint, \"Endpoint is null.\");\n return this;\n }", "public Builder setWalletIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) { throw new NullPointerException(); }\n checkByteStringIsUtf8(value);\n walletId_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public void setBaseAddress(int targetAddress, int baseAddress);", "UMOImmutableEndpoint createOutboundEndpoint(UMOEndpointBuilder builder, UMOManagementContext managementContext) throws UMOException;", "public URIBuilder(final URI uri) {\n super();\n digestURI(uri);\n }", "public AlpacaAPI(String apiVersion, String keyId, String secret, String baseAccountUrl) {\n this(apiVersion, keyId, secret, baseAccountUrl, AlpacaProperties.BASE_DATA_URL_VALUE);\n }", "void setBaseUri(String baseUri);", "public BaseRelease (\n\t\tjava.lang.String id,\n\t\tcom.myconnector.domain.UserData createdBy) {\n\n\t\tthis.setId(id);\n\t\tthis.setCreatedBy(createdBy);\n\t\tinitialize();\n\t}", "public static OfbizUrlBuilder from(HttpServletRequest request) throws GenericEntityException, WebAppConfigurationException {\n Assert.notNull(\"request\", request);\n OfbizUrlBuilder builder = (OfbizUrlBuilder) request.getAttribute(\"_OFBIZ_URL_BUILDER_\");\n if (builder == null) {\n WebSiteProperties webSiteProps = WebSiteProperties.from(request);\n URL url = ConfigXMLReader.getControllerConfigURL(request.getServletContext());\n ControllerConfig config = (url != null) ? ConfigXMLReader.getControllerConfig(url, true) : null; // SCIPIO: 2017-11-18: controller now fully optional (2 change)\n // SCIPIO: Use more reliable call\n //String servletPath = (String) request.getAttribute(\"_CONTROL_PATH_\");\n String servletPath = RequestHandler.getControlPath(request);\n String contextPath = request.getContextPath();\n builder = new OfbizUrlBuilder(config, webSiteProps, servletPath, contextPath); // SCIPIO\n request.setAttribute(\"_OFBIZ_URL_BUILDER_\", builder);\n }\n return builder;\n }", "private DataSource.Factory buildDataSourceFactory(DefaultBandwidthMeter bandwidthMeter) {\n return new DefaultDataSourceFactory(this, bandwidthMeter, buildHttpDataSourceFactory(bandwidthMeter));\n }", "@Test\r\n public void testCreateMyDidSeed() throws SodiumException {\r\n CryptoService instance = new CryptoService();\r\n MyDidInfo did_info_with_seed = new MyDidInfo(\"NcYxiDXkpYi6ov5FcYDi1e\", \"00000000000000000000000000000My1\");\r\n MyDidInfo did_info_without_seed = new MyDidInfo(\"NcYxiDXkpYi6ov5FcYDi1e\", null);\r\n\r\n Pair<Did, Keys> did_with_seed = instance.createMyDid(did_info_with_seed);\r\n Pair<Did, Keys> did_without_seed = instance.createMyDid(did_info_without_seed);\r\n\r\n assertNotEquals(did_with_seed.second.verkey, did_without_seed.second.verkey);\r\n }", "public Builder setWalletId(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n walletId_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public void setBasedir(String baseD) throws BuildException {\n setBaseDir(new File(baseD));\n }", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "private DnsTable(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static Builder between(Entity.ID sourceID, Entity.ID targetID) {\n return new Builder(sourceID,targetID);\n }" ]
[ "0.6830306", "0.62020975", "0.6039319", "0.5666008", "0.5187659", "0.517837", "0.5122599", "0.5108639", "0.505424", "0.50005645", "0.4964872", "0.49559787", "0.48764455", "0.48544997", "0.4823069", "0.48074085", "0.47144833", "0.47138008", "0.46652764", "0.46081385", "0.4573311", "0.45565882", "0.44894996", "0.4476543", "0.44368145", "0.43973538", "0.43725199", "0.4351942", "0.43422192", "0.42908958", "0.42756385", "0.42752865", "0.42561603", "0.42120036", "0.42070502", "0.41921046", "0.4189679", "0.4167768", "0.41521263", "0.41514435", "0.41436762", "0.41428065", "0.41424862", "0.4129685", "0.41281652", "0.41267127", "0.41239187", "0.41214553", "0.41193607", "0.41139734", "0.41020244", "0.40918136", "0.40731776", "0.4065832", "0.4052769", "0.4048414", "0.40418544", "0.40385655", "0.4030671", "0.4030192", "0.40225205", "0.40181953", "0.4011393", "0.4006817", "0.39998442", "0.3991567", "0.39909583", "0.39863414", "0.3967374", "0.39655173", "0.39569575", "0.39541492", "0.39472324", "0.39410487", "0.39388126", "0.3938565", "0.39338258", "0.39295867", "0.39279282", "0.3924364", "0.39241502", "0.39148232", "0.39122826", "0.3906017", "0.39007473", "0.38966733", "0.38942882", "0.38916883", "0.3888701", "0.38852423", "0.38848785", "0.3881984", "0.38809702", "0.38761076", "0.3871971", "0.3869705", "0.38664332", "0.38621086", "0.38603863", "0.38584816" ]
0.7710971
0
Set the base DID object of the DIDURL that to be build.
public Builder setDid(DID did) { url.setDid(did); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "void setBaseUri(String baseUri);", "public void setBase(LocatorIF base_address) {\n this.base_address = base_address;\n }", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public Builder setBaseDirectoryName(String val) {\n mBaseDirectoryName = val;\n return this;\n }", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "protected void setDid(DID did) {\n\t\tthis.did = did;\n\t}", "public Builder setDid(String did) {\n\t\t\treturn setDid(DID.valueOf(did));\n\t\t}", "public void setBaseAddress(String base_address) {\n try {\n this.base_address = new URILocator(base_address);\n } catch (MalformedURLException e) {\n throw new OntopiaRuntimeException(e);\n }\n }", "public void setBaseId(String baseId) {\n this.baseId = baseId;\n }", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public void setBaseAddress(int targetAddress, int baseAddress);", "public void setCodebase(URL _codebase) {\r\n\t\tcodebase = _codebase;\r\n\t}", "public void setBaseURL(String val) {\n\n\t\tbaseURL = val;\n\n\t}", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "public URL makeBase(URL startingURL);", "public static void SetBaseAddress(String baseAddress) {\n\t\t// Load Projects Settings XML file\n\t\tDocument doc = Utilities.LoadDocumentFromFilePath(IDE.projectFolderPath + \"\\\\ProjectSettings.xml\");\n\t\t// Get the <root> element of the Document\n\t\torg.w3c.dom.Element root = doc.getDocumentElement();\n\t\t// Remove previous entry\n\t\tNode previousBaseAddress = null;\n\t\ttry {\n\t\t\tpreviousBaseAddress = root.getElementsByTagName(\"baseAddress\").item(0);\n\t\t}\n\t\tcatch (Exception ex) { /* do nothing */ }\n\t\tif (previousBaseAddress != null) {\n\t\t\troot.removeChild(previousBaseAddress);\n\t\t}\n\t\t// Create a child node for <baseAddress value=\"{baseAddress}\">\n\t\torg.w3c.dom.Element baseAddressNode = doc.createElement(\"baseAddress\");\n\t\tbaseAddressNode.setAttribute(\"value\", baseAddress);\n\t root.appendChild(baseAddressNode);\n\t // Save document to disk\n\t Utilities.writeDocumentToFile(doc, new File(IDE.projectFolderPath + \"\\\\ProjectSettings.xml\"));\n\t}", "public void setDocumentoBase(DocumentoBase documentoBase)\r\n/* 135: */ {\r\n/* 136:158 */ this.documentoBase = documentoBase;\r\n/* 137: */ }", "public void setBaseId(Long baseId) {\n this.baseId = baseId;\n }", "public Builder setUserDNBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userDN_ = value;\n\n return this;\n }", "public com.autodesk.ws.avro.Call.Builder setTargetObjectUri(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.target_object_uri = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public void setBasedir(String baseD) throws BuildException {\n setBaseDir(new File(baseD));\n }", "public void setDescriptorBase(Ed descriptorBase) {\n\n this.descriptorBase = descriptorBase;\n //Se descriptorBase existe, atribui este como seu parente\n// if(this.descriptorBase != null)\n// this.descriptorBase.setParent(this);\n }", "public void setCodebase(final String codebase) {\n this.codebase = codebase;\n if(this.codebase!=null) {\n if(!this.codebase.endsWith(\"/\"))\n this.codebase = this.codebase+\"/\";\n }\n }", "public void assignBaseBuilder(Ship ship) {\n\t\tbaseBuilder = ship.getId();\n\t}", "public void setBaseURL(final String url) {\r\n String location = url;\r\n //-- remove filename if necessary:\r\n if (location != null) { \r\n int idx = location.lastIndexOf('/');\r\n if (idx < 0) idx = location.lastIndexOf('\\\\');\r\n if (idx >= 0) {\r\n int extIdx = location.indexOf('.', idx);\r\n if (extIdx > 0) {\r\n location = location.substring(0, idx);\r\n }\r\n }\r\n }\r\n \r\n try {\r\n _resolver.setBaseURL(new URL(location));\r\n } catch (MalformedURLException except) {\r\n // try to parse the url as an absolute path\r\n try {\r\n LOG.info(Messages.format(\"mapping.wrongURL\", location));\r\n _resolver.setBaseURL(new URL(\"file\", null, location));\r\n } catch (MalformedURLException except2) { }\r\n }\r\n }", "public void setBase(boolean base)\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(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.setBooleanValue(base);\r\n }\r\n }", "public void setDerivedFrom(String derivedFrom)\n {\n this.derivedFrom = derivedFrom;\n }", "public void setImagebase(final Address address) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setImageBase(new CAddress(address.toLong()));\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n throw new CouldntSaveDataException(e);\n }\n }", "public Builder setUserDN(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userDN_ = value;\n\n return this;\n }", "private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}", "public void changeToBaseOne() {\r\n\t\tthis.numberBase = 1;\r\n\t}", "public void setBasePath(final String value)\n {\n basePath = value;\n }", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public void setFilebase(final Address address) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setFileBase(new CAddress(address.toLong()));\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n throw new CouldntSaveDataException(e);\n }\n }", "public void setBaseInfo(BaseInfo baseInfo) {\n this.baseInfo = baseInfo;\n }", "public void xsetBase(org.apache.xmlbeans.XmlBoolean base)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.set(base);\r\n }\r\n }", "public Builder setBaseDirectoryPath(File val) {\n mBaseDirectoryPath = val;\n return this;\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setBASECURRENCYID(java.lang.Long value) {\n validate(fields()[2], value);\n this.BASE_CURRENCY_ID = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public static void setBaseURL() {\n\n\t\tRestAssured.baseURI = DataReader.dataReader(\"baseURL\");\n\t}", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "void setForPersistentMapping_BaseType(Type baseType) {\n this.baseType = baseType;\n }", "IParser setServerBaseUrl(String theUrl);", "public String getBaseId() {\n return baseId;\n }", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "public abstract Builder setBaseOptions(BaseOptions value);", "public RestAPI setBaseURL(String url) throws APIException {\n\t\tthis.url = url;\n\t\tcheckBaseURL();\n\n\t\treturn this;\n\t}", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setTargetObjectUri(java.lang.CharSequence value) {\n this.target_object_uri = value;\n }", "public PersonAddressBuilderDFB(PersonDFB person){\n //only one person we are building up but need a reference to it in every sub builder\n this.person = person;\n }", "public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}", "public void setHyperlinkBase(String hyperlinkBase)\r\n {\r\n m_hyperlinkBase = hyperlinkBase;\r\n }", "@ZAttr(id=775)\n public void setDomainAliasTargetId(String zimbraDomainAliasTargetId) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainAliasTargetId, zimbraDomainAliasTargetId);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setBaseUrl(final String baseUrl) {\n this.baseUrl = baseUrl;\n }", "public Builder setProfileURLBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n profileURL_ = value;\n onChanged();\n return this;\n }", "public void setBaseNumber(int baseNumber) {\r\n\t\tthis.baseNumber = baseNumber;\r\n\t}", "public UUID getBaseBuilderUUID() {\n\t\treturn baseBuilder;\n\t}", "public Builder setDeviceIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n deviceId_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getDID() {\r\n return DID;\r\n }", "public void setUpId( byte[] upId )\n {\n setUpId( upId, attributeType );\n }", "public Builder setDob(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n dob_ = value;\n onChanged();\n return this;\n }", "public void setDeviceName(String dn) {\r\n \tthis.deviceName = dn;\r\n }", "public Builder setBaseTable(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public void setBase(Integer base);", "public Builder basePath(String basePath) {\n this.basePath = basePath;\n\t\t\t\t\treturn this.me();\n }", "public DefaultAttribute( byte[] upId )\n {\n setUpId( upId );\n }", "@Override\n protected void set(org.tair.db.locusdetail.ILocusDetail dto) {\n locusLocus = dto;\n }", "public void setProxyBaseUrl(String baseURL) {\n this.proxyBaseUrl = baseURL;\n }", "public UrlBuilder compileBaseUrl(HttpServletRequest request, String repositoryId) {\n String baseUrl = (String) request.getAttribute(Dispatcher.BASE_URL_ATTRIBUTE);\n if (baseUrl != null) {\n int repIdPos = baseUrl.indexOf(REPOSITORY_PLACEHOLDER);\n if (repIdPos < 0) {\n return new UrlBuilder(baseUrl);\n } else {\n return new UrlBuilder(baseUrl.substring(0, repIdPos) + repositoryId\n + baseUrl.substring(repIdPos + REPOSITORY_PLACEHOLDER.length()));\n }\n }\n\n UrlBuilder url = new UrlBuilder(request.getScheme(), request.getServerName(), request.getServerPort(), null);\n\n url.addPath(request.getContextPath());\n url.addPath(request.getServletPath());\n\n if (repositoryId != null) {\n url.addPathSegment(repositoryId);\n }\n\n return url;\n }", "public Builder setUUIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n uUID_ = value;\n onChanged();\n return this;\n }", "public void setShBaseURL(String val) {\n\n\t\tshBaseURL = val;\n\n\t}", "public void setBaseUrl(java.lang.String mBaseUrl) {\n bugQuery.setBaseUrl(mBaseUrl);\n }", "public static void setCoreId(ExtendedRecord er, ALATaxonRecord tr) {\n Optional.ofNullable(er.getCoreId()).ifPresent(tr::setCoreId);\n }", "public Builder setDeviceId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n deviceId_ = value;\n onChanged();\n return this;\n }", "public com.autodesk.ws.avro.Call.Builder clearTargetObjectUri() {\n target_object_uri = null;\n fieldSetFlags()[5] = false;\n return this;\n }", "public abstract void setUp(@NonNull T baseObject);", "public void unsetBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(BASE$18);\r\n }\r\n }", "public void setDbtag(gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag dbtag)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag target = null;\r\n target = (gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag)get_store().find_element_user(DBTAG$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag)get_store().add_element_user(DBTAG$0);\r\n }\r\n target.set(dbtag);\r\n }\r\n }", "public void setDbtag(gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag dbtag)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag target = null;\r\n target = (gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag)get_store().find_element_user(DBTAG$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag)get_store().add_element_user(DBTAG$0);\r\n }\r\n target.set(dbtag);\r\n }\r\n }", "public void setRequiredBase(int value) {\n this.requiredBase = value;\n }", "public Builder setProfileURL(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n profileURL_ = value;\n onChanged();\n return this;\n }", "public Builder setGuidBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n guid_ = value;\n onChanged();\n return this;\n }", "public Long getBaseId() {\n return baseId;\n }", "public void setToRefid(String targetid) {\n this.targetid = targetid;\n }", "protected void setProxiedClient(URL paramURL, String paramString, int paramInt) throws IOException {\n/* 127 */ this.delegate.setProxiedClient(paramURL, paramString, paramInt);\n/* */ }", "public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }", "public void setISBN(String uniqueID) {\r\n super.setUniqueID(uniqueID);\r\n }", "public String getBaseId();", "public void setBASE_UOM(java.lang.String BASE_UOM) {\r\n this.BASE_UOM = BASE_UOM;\r\n }", "public void setBase(double base) {\n\t\tthis.base = base;\n\t}", "public DataURL setBase64(boolean base64){\n this.base64 = base64;\n return this;\n }", "@ZAttr(id=775)\n public Map<String,Object> setDomainAliasTargetId(String zimbraDomainAliasTargetId, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainAliasTargetId, zimbraDomainAliasTargetId);\n return attrs;\n }", "public void xsetOID(org.apache.xmlbeans.XmlString oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(OID$12);\r\n }\r\n target.set(oid);\r\n }\r\n }", "public Builder clearDidUri() {\n if (deliveryMethodCase_ == 2) {\n deliveryMethodCase_ = 0;\n deliveryMethod_ = null;\n onChanged();\n }\n return this;\n }", "void xsetSetupID(com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces setupID);", "public TDataObject getBaseDataObject(\n )\n {return baseDataObject;}" ]
[ "0.64087087", "0.616104", "0.5744041", "0.57240164", "0.5644222", "0.56093335", "0.55992174", "0.5579684", "0.5532664", "0.5523466", "0.5510053", "0.54768693", "0.5422002", "0.5414313", "0.5359514", "0.5286497", "0.5271605", "0.52587956", "0.52497244", "0.52242255", "0.5191405", "0.5188736", "0.5134724", "0.5110424", "0.507059", "0.5067771", "0.49322385", "0.49131975", "0.4890594", "0.4867079", "0.48333752", "0.48185396", "0.4796661", "0.47804332", "0.47610268", "0.4757777", "0.47455698", "0.47283566", "0.47113317", "0.47017443", "0.46938908", "0.4689263", "0.46800122", "0.46661088", "0.46375066", "0.46296328", "0.46247533", "0.46161276", "0.46127445", "0.46014506", "0.45920235", "0.45876813", "0.45828748", "0.45747483", "0.45540082", "0.45382035", "0.45247853", "0.44978446", "0.4496813", "0.44925123", "0.44891888", "0.4485527", "0.447892", "0.44743997", "0.4447246", "0.44414282", "0.4438408", "0.44380465", "0.44375092", "0.44334808", "0.44334352", "0.4417499", "0.4415105", "0.44107172", "0.44048288", "0.44044417", "0.43883651", "0.43811485", "0.43795094", "0.43775374", "0.43764365", "0.43744394", "0.43744394", "0.43645054", "0.43604344", "0.4359632", "0.43492454", "0.43487737", "0.43265888", "0.432625", "0.43255037", "0.43244958", "0.43224388", "0.43222687", "0.4322093", "0.43220198", "0.4318087", "0.43172508", "0.4311754", "0.4307238" ]
0.6272726
1
Set the base DID object of the DIDURL that to be build.
public Builder setDid(String did) { return setDid(DID.valueOf(did)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public void setDID(java.lang.String DID) {\r\n this.DID = DID;\r\n }", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "void setBaseUri(String baseUri);", "public void setBase(LocatorIF base_address) {\n this.base_address = base_address;\n }", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public Builder setBaseDirectoryName(String val) {\n mBaseDirectoryName = val;\n return this;\n }", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "protected void setDid(DID did) {\n\t\tthis.did = did;\n\t}", "public void setBaseAddress(String base_address) {\n try {\n this.base_address = new URILocator(base_address);\n } catch (MalformedURLException e) {\n throw new OntopiaRuntimeException(e);\n }\n }", "public void setBaseId(String baseId) {\n this.baseId = baseId;\n }", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public void setBaseAddress(int targetAddress, int baseAddress);", "public void setCodebase(URL _codebase) {\r\n\t\tcodebase = _codebase;\r\n\t}", "public void setBaseURL(String val) {\n\n\t\tbaseURL = val;\n\n\t}", "public DIDURL(String url) throws MalformedDIDURLException {\n\t\tthis(null, url);\n\t}", "public URL makeBase(URL startingURL);", "public static void SetBaseAddress(String baseAddress) {\n\t\t// Load Projects Settings XML file\n\t\tDocument doc = Utilities.LoadDocumentFromFilePath(IDE.projectFolderPath + \"\\\\ProjectSettings.xml\");\n\t\t// Get the <root> element of the Document\n\t\torg.w3c.dom.Element root = doc.getDocumentElement();\n\t\t// Remove previous entry\n\t\tNode previousBaseAddress = null;\n\t\ttry {\n\t\t\tpreviousBaseAddress = root.getElementsByTagName(\"baseAddress\").item(0);\n\t\t}\n\t\tcatch (Exception ex) { /* do nothing */ }\n\t\tif (previousBaseAddress != null) {\n\t\t\troot.removeChild(previousBaseAddress);\n\t\t}\n\t\t// Create a child node for <baseAddress value=\"{baseAddress}\">\n\t\torg.w3c.dom.Element baseAddressNode = doc.createElement(\"baseAddress\");\n\t\tbaseAddressNode.setAttribute(\"value\", baseAddress);\n\t root.appendChild(baseAddressNode);\n\t // Save document to disk\n\t Utilities.writeDocumentToFile(doc, new File(IDE.projectFolderPath + \"\\\\ProjectSettings.xml\"));\n\t}", "public void setDocumentoBase(DocumentoBase documentoBase)\r\n/* 135: */ {\r\n/* 136:158 */ this.documentoBase = documentoBase;\r\n/* 137: */ }", "public void setBaseId(Long baseId) {\n this.baseId = baseId;\n }", "public Builder setUserDNBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userDN_ = value;\n\n return this;\n }", "public com.autodesk.ws.avro.Call.Builder setTargetObjectUri(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.target_object_uri = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public void setBasedir(String baseD) throws BuildException {\n setBaseDir(new File(baseD));\n }", "public void setDescriptorBase(Ed descriptorBase) {\n\n this.descriptorBase = descriptorBase;\n //Se descriptorBase existe, atribui este como seu parente\n// if(this.descriptorBase != null)\n// this.descriptorBase.setParent(this);\n }", "public void setCodebase(final String codebase) {\n this.codebase = codebase;\n if(this.codebase!=null) {\n if(!this.codebase.endsWith(\"/\"))\n this.codebase = this.codebase+\"/\";\n }\n }", "public void assignBaseBuilder(Ship ship) {\n\t\tbaseBuilder = ship.getId();\n\t}", "public void setBaseURL(final String url) {\r\n String location = url;\r\n //-- remove filename if necessary:\r\n if (location != null) { \r\n int idx = location.lastIndexOf('/');\r\n if (idx < 0) idx = location.lastIndexOf('\\\\');\r\n if (idx >= 0) {\r\n int extIdx = location.indexOf('.', idx);\r\n if (extIdx > 0) {\r\n location = location.substring(0, idx);\r\n }\r\n }\r\n }\r\n \r\n try {\r\n _resolver.setBaseURL(new URL(location));\r\n } catch (MalformedURLException except) {\r\n // try to parse the url as an absolute path\r\n try {\r\n LOG.info(Messages.format(\"mapping.wrongURL\", location));\r\n _resolver.setBaseURL(new URL(\"file\", null, location));\r\n } catch (MalformedURLException except2) { }\r\n }\r\n }", "public void setBase(boolean base)\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(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.setBooleanValue(base);\r\n }\r\n }", "public void setDerivedFrom(String derivedFrom)\n {\n this.derivedFrom = derivedFrom;\n }", "public void setImagebase(final Address address) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setImageBase(new CAddress(address.toLong()));\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n throw new CouldntSaveDataException(e);\n }\n }", "public Builder setUserDN(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n userDN_ = value;\n\n return this;\n }", "private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}", "public void changeToBaseOne() {\r\n\t\tthis.numberBase = 1;\r\n\t}", "public void setBasePath(final String value)\n {\n basePath = value;\n }", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public void setFilebase(final Address address) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setFileBase(new CAddress(address.toLong()));\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n throw new CouldntSaveDataException(e);\n }\n }", "public void setBaseInfo(BaseInfo baseInfo) {\n this.baseInfo = baseInfo;\n }", "public void xsetBase(org.apache.xmlbeans.XmlBoolean base)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.set(base);\r\n }\r\n }", "public Builder setBaseDirectoryPath(File val) {\n mBaseDirectoryPath = val;\n return this;\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setBASECURRENCYID(java.lang.Long value) {\n validate(fields()[2], value);\n this.BASE_CURRENCY_ID = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public static void setBaseURL() {\n\n\t\tRestAssured.baseURI = DataReader.dataReader(\"baseURL\");\n\t}", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "void setForPersistentMapping_BaseType(Type baseType) {\n this.baseType = baseType;\n }", "IParser setServerBaseUrl(String theUrl);", "public String getBaseId() {\n return baseId;\n }", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "public abstract Builder setBaseOptions(BaseOptions value);", "public RestAPI setBaseURL(String url) throws APIException {\n\t\tthis.url = url;\n\t\tcheckBaseURL();\n\n\t\treturn this;\n\t}", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setTargetObjectUri(java.lang.CharSequence value) {\n this.target_object_uri = value;\n }", "public PersonAddressBuilderDFB(PersonDFB person){\n //only one person we are building up but need a reference to it in every sub builder\n this.person = person;\n }", "public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}", "public void setHyperlinkBase(String hyperlinkBase)\r\n {\r\n m_hyperlinkBase = hyperlinkBase;\r\n }", "@ZAttr(id=775)\n public void setDomainAliasTargetId(String zimbraDomainAliasTargetId) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainAliasTargetId, zimbraDomainAliasTargetId);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setBaseUrl(final String baseUrl) {\n this.baseUrl = baseUrl;\n }", "public Builder setProfileURLBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n profileURL_ = value;\n onChanged();\n return this;\n }", "public void setBaseNumber(int baseNumber) {\r\n\t\tthis.baseNumber = baseNumber;\r\n\t}", "public UUID getBaseBuilderUUID() {\n\t\treturn baseBuilder;\n\t}", "public Builder setDeviceIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n deviceId_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getDID() {\r\n return DID;\r\n }", "public void setUpId( byte[] upId )\n {\n setUpId( upId, attributeType );\n }", "public Builder setDob(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n dob_ = value;\n onChanged();\n return this;\n }", "public void setDeviceName(String dn) {\r\n \tthis.deviceName = dn;\r\n }", "public Builder setBaseTable(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public void setBase(Integer base);", "public Builder basePath(String basePath) {\n this.basePath = basePath;\n\t\t\t\t\treturn this.me();\n }", "public DefaultAttribute( byte[] upId )\n {\n setUpId( upId );\n }", "@Override\n protected void set(org.tair.db.locusdetail.ILocusDetail dto) {\n locusLocus = dto;\n }", "public void setProxyBaseUrl(String baseURL) {\n this.proxyBaseUrl = baseURL;\n }", "public UrlBuilder compileBaseUrl(HttpServletRequest request, String repositoryId) {\n String baseUrl = (String) request.getAttribute(Dispatcher.BASE_URL_ATTRIBUTE);\n if (baseUrl != null) {\n int repIdPos = baseUrl.indexOf(REPOSITORY_PLACEHOLDER);\n if (repIdPos < 0) {\n return new UrlBuilder(baseUrl);\n } else {\n return new UrlBuilder(baseUrl.substring(0, repIdPos) + repositoryId\n + baseUrl.substring(repIdPos + REPOSITORY_PLACEHOLDER.length()));\n }\n }\n\n UrlBuilder url = new UrlBuilder(request.getScheme(), request.getServerName(), request.getServerPort(), null);\n\n url.addPath(request.getContextPath());\n url.addPath(request.getServletPath());\n\n if (repositoryId != null) {\n url.addPathSegment(repositoryId);\n }\n\n return url;\n }", "public Builder setUUIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n uUID_ = value;\n onChanged();\n return this;\n }", "public void setShBaseURL(String val) {\n\n\t\tshBaseURL = val;\n\n\t}", "public void setBaseUrl(java.lang.String mBaseUrl) {\n bugQuery.setBaseUrl(mBaseUrl);\n }", "public static void setCoreId(ExtendedRecord er, ALATaxonRecord tr) {\n Optional.ofNullable(er.getCoreId()).ifPresent(tr::setCoreId);\n }", "public Builder setDeviceId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n deviceId_ = value;\n onChanged();\n return this;\n }", "public com.autodesk.ws.avro.Call.Builder clearTargetObjectUri() {\n target_object_uri = null;\n fieldSetFlags()[5] = false;\n return this;\n }", "public abstract void setUp(@NonNull T baseObject);", "public void unsetBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(BASE$18);\r\n }\r\n }", "public void setDbtag(gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag dbtag)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag target = null;\r\n target = (gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag)get_store().find_element_user(DBTAG$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag)get_store().add_element_user(DBTAG$0);\r\n }\r\n target.set(dbtag);\r\n }\r\n }", "public void setDbtag(gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag dbtag)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag target = null;\r\n target = (gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag)get_store().find_element_user(DBTAG$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag)get_store().add_element_user(DBTAG$0);\r\n }\r\n target.set(dbtag);\r\n }\r\n }", "public void setRequiredBase(int value) {\n this.requiredBase = value;\n }", "public Builder setProfileURL(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n profileURL_ = value;\n onChanged();\n return this;\n }", "public Builder setGuidBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n guid_ = value;\n onChanged();\n return this;\n }", "public Long getBaseId() {\n return baseId;\n }", "public void setToRefid(String targetid) {\n this.targetid = targetid;\n }", "protected void setProxiedClient(URL paramURL, String paramString, int paramInt) throws IOException {\n/* 127 */ this.delegate.setProxiedClient(paramURL, paramString, paramInt);\n/* */ }", "public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }", "public void setISBN(String uniqueID) {\r\n super.setUniqueID(uniqueID);\r\n }", "public String getBaseId();", "public void setBASE_UOM(java.lang.String BASE_UOM) {\r\n this.BASE_UOM = BASE_UOM;\r\n }", "public void setBase(double base) {\n\t\tthis.base = base;\n\t}", "public DataURL setBase64(boolean base64){\n this.base64 = base64;\n return this;\n }", "@ZAttr(id=775)\n public Map<String,Object> setDomainAliasTargetId(String zimbraDomainAliasTargetId, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainAliasTargetId, zimbraDomainAliasTargetId);\n return attrs;\n }", "public void xsetOID(org.apache.xmlbeans.XmlString oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(OID$12);\r\n }\r\n target.set(oid);\r\n }\r\n }", "public Builder clearDidUri() {\n if (deliveryMethodCase_ == 2) {\n deliveryMethodCase_ = 0;\n deliveryMethod_ = null;\n onChanged();\n }\n return this;\n }", "void xsetSetupID(com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces setupID);", "public TDataObject getBaseDataObject(\n )\n {return baseDataObject;}" ]
[ "0.64087087", "0.6272726", "0.616104", "0.5744041", "0.57240164", "0.5644222", "0.56093335", "0.55992174", "0.5579684", "0.5532664", "0.5523466", "0.5510053", "0.5422002", "0.5414313", "0.5359514", "0.5286497", "0.5271605", "0.52587956", "0.52497244", "0.52242255", "0.5191405", "0.5188736", "0.5134724", "0.5110424", "0.507059", "0.5067771", "0.49322385", "0.49131975", "0.4890594", "0.4867079", "0.48333752", "0.48185396", "0.4796661", "0.47804332", "0.47610268", "0.4757777", "0.47455698", "0.47283566", "0.47113317", "0.47017443", "0.46938908", "0.4689263", "0.46800122", "0.46661088", "0.46375066", "0.46296328", "0.46247533", "0.46161276", "0.46127445", "0.46014506", "0.45920235", "0.45876813", "0.45828748", "0.45747483", "0.45540082", "0.45382035", "0.45247853", "0.44978446", "0.4496813", "0.44925123", "0.44891888", "0.4485527", "0.447892", "0.44743997", "0.4447246", "0.44414282", "0.4438408", "0.44380465", "0.44375092", "0.44334808", "0.44334352", "0.4417499", "0.4415105", "0.44107172", "0.44048288", "0.44044417", "0.43883651", "0.43811485", "0.43795094", "0.43775374", "0.43764365", "0.43744394", "0.43744394", "0.43645054", "0.43604344", "0.4359632", "0.43492454", "0.43487737", "0.43265888", "0.432625", "0.43255037", "0.43244958", "0.43224388", "0.43222687", "0.4322093", "0.43220198", "0.4318087", "0.43172508", "0.4311754", "0.4307238" ]
0.54768693
12
Set the path component of the DIDURL object.
public Builder setPath(String path) { url.path = path == null || path.isEmpty() ? null : path; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPath(String path);", "public void setPath(String path)\n {\n try\n {\n // Tokenize the path\n pathArray = getPathResolved(path);\n \n // Set path property\n this.path = path;\n }\n catch (NumberFormatException nfe)\n {\n // Reset path property\n this.path = \"\";\n }\n }", "void setPath(DrivePath path);", "public void setPath(String path)\r\n/* 21: */ {\r\n/* 22:53 */ this.path = path;\r\n/* 23: */ }", "public void setPath(String path);", "public void setPath(String path) {\n if (!path.startsWith(\"/\")) {\n this.path = \"/\" + path;\n } else {\n this.path = path;\n }\n }", "public void setPath(String path){\n mPath = path;\n }", "public URIBuilder setPath(final String path) {\n this.path = path;\n this.encodedSchemeSpecificPart = null;\n this.encodedPath = null;\n return this;\n }", "public free_args setPath(String path) {\n this.path = path;\n return this;\n }", "public void\nsetPath(SoPath path)\n{\n // ref the input path\n if (path != null)\n path.ref();\n\n // nuke the old path\n if (pathOfInterest != null) {\n pathOfInterest.unref();\n pathOfInterest = null;\n }\n // and copy the new path\n if (path != null) {\n pathOfInterest = path.copy();\n pathOfInterest.ref();\n }\n\n // unref the input path\n if (path != null)\n path.unref();\n\n}", "public Builder setCurrentPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n currentPath_ = value;\n onChanged();\n return this;\n }", "public void setPath (\r\n String strPath) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void setRelPath (\r\n String strRelPath) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void changePath(String newPath){\n this.path=newPath;\n }", "public void setPath(Path path) {\n this.path = path;\n }", "public ElementDefinitionDt setPath( String theString) {\n\t\tmyPath = new StringDt(theString); \n\t\treturn this; \n\t}", "public Builder setTargetPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n targetPath_ = value;\n onChanged();\n return this;\n }", "public ElementDefinitionDt setPath(StringDt theValue) {\n\t\tmyPath = theValue;\n\t\treturn this;\n\t}", "public EndpointBuilder _path_(String _path_) {\n this.endpointImpl.setPath(_path_);\n return this;\n }", "public Builder setPath(final String value) {\n _path = value;\n return self();\n }", "public HttpBuilder<E,T> setPath (String path)\n\t{\n\t\tthis.path = String.format(path);\n\t\treturn this;\n\t}", "public void setFullPath( String path )\n {\n if( file != null )\n {\n throw new RuntimeException( \"The path has already been set for this object.\" );\n }\n\n // Parse out multiple directories as needed.\n StringTokenizer st = new StringTokenizer( path, \"/\\\\\" );\n\n String current = st.nextToken();\n while( st.hasMoreTokens() )\n {\n this.parent = new FileIndex( this.parent, current );\n current = st.nextToken();\n }\n\n this.file = current;\n\n // Cache our full path\n if( parent == null )\n fullPath = this.file;\n else\n fullPath = parent.getFullPath() + \"/\" + this.file;\n }", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path)\n {\n this.path = path;\n }", "@Override\n public void setPath( final Path path ) {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "public void setPath(Path path)\n\t{\n\t\tpathList.clear();\n\t\tpathList.add(path);\n\t}", "public void updatePath() {\n\t\tString oldPath = this.path;\n\t\tif (materializePath()) {\n\t\t\tPageAlias.create(this, oldPath);\n\t\t\tupdateChildPaths();\n\t\t}\n\t}", "public void setPath(String p_path) throws MalformedURIException {\n if (p_path == null) {\n m_path = null;\n m_queryString = null;\n m_fragment = null;\n }\n else {\n initializePath(p_path, 0);\n }\n }", "public void setPath(String newPath) {\n String id = PREF_DEFAULTDIR + getId();\n idv.getStateManager().writePreference(id, newPath);\n }", "public void setPath(String path) {\r\n this.path = path;\r\n }", "public void setIdPath(String idPath) {\n\t\tthis.idPath = idPath;\n\t\tthis.handleConfig(\"idPath\", idPath);\n\t}", "public void setPath(String path) {\r\n this.path = path == null ? null : path.trim();\r\n }", "@Override\n public DefaultUrlBuilder pathSegment(String thePath) {\n this.pathSegments.add(BaseUrl.UrlEncoder.encodePathSegment(thePath));\n return this;\n }", "public void setsFilePath(String value) {\n sFilePath = value;\n // // initialize these two\n CurrentFile = null;\n CurrentUri = null;\n // // If we have something real, setup the file and the Uri.\n if (!sFilePath.equalsIgnoreCase(\"\")) {\n CurrentFile = new File(sFilePath);\n CurrentUri = Uri.fromFile(CurrentFile);\n }\n }", "@Override\n\tpublic void setValue(String path, Object value) {\n\t\tif (path.indexOf('.') >= 0 || path.indexOf('(') >= 0 ) {\n\t\t\tFlexDataAccess access = new FlexDataAccess(this, path, true);\n\t\t\taccess.setToPath(value);\n\t\t} else {\n\t\t\tsetValueMap(path, value);\n\t\t}\n\t}", "public final native void setPath(JsArray<LatLng> value) /*-{\n\t\tthis.setPath(value);\n\t}-*/;", "public void setValue(String value) {\n\t\tif (value.contains(URL_TYPE_ABSOLUTE)) {\n\t\t\tthis.type = UrlType.ABSOLUTE;\n\t\t\tthis.value = value;\n\t\t}\n\t\telse if (value.startsWith(\"/\")) {\n\t\t\tthis.type = UrlType.CONTEXT_RELATIVE;\n\t\t\tthis.value = value;\n\t\t}\n\t\telse {\n\t\t\tthis.type = UrlType.RELATIVE;\n\t\t\tthis.value = value;\n\t\t}\n\t}", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public void setPath(String path) {\n this.path = path == null ? null : path.trim();\n }", "public void setPath(String path) {\n this.path = path == null ? null : path.trim();\n }", "public void setPath(String path) {\n this.path = path == null ? null : path.trim();\n }", "public void setPathname(String s) {this.pathname = s;}", "@Override\n void setPath(String sessionId, String path) {\n if (sessionsInfoManager.getPath(sessionId).isEmpty())\n {\n sessionsInfoManager.setPath(sessionId, path);\n }\n }", "public void setPath(Tile path) {\n\t\tthis.path = path;\n\t}", "public NcrackClient onPath(String path) {\n this.path = Optional.of(path);\n return this;\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) {\n this.path = path;\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}", "@Override\n public void setUrl(String url) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Directory manager \" + directoryManager);\n }\n try {\n super.setUrl(directoryManager.replacePath(url));\n } catch (Exception e) {\n LOGGER.error(\"Exception thrown when setting URL \", e);\n throw new IllegalStateException(e);\n }\n }", "public void setDPURL(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPURL)));\n\t\tthis.m_sDPURL=value;\n\t}", "public void setPath(java.lang.String path) {\n\t\t this.path = path;\n\t }", "public void setPath(String path) {\n\n this.path = path;\n }", "public Builder setCurrentPathBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n currentPath_ = value;\n onChanged();\n return this;\n }", "public Builder setPath(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePathIsMutable();\n path_.set(index, value);\n onChanged();\n return this;\n }", "void setFilePath(Path filePath);", "public void setPath(Path inputPath) {\n path = inputPath;\n node = path.getNodes().getFirst();\n }", "public com.autodesk.ws.avro.Call.Builder setTargetObjectUri(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.target_object_uri = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public void setPath(String path) {\n // We know that URL arguments should always be encoded in UTF-8 according to spec\n setPath(path, EncoderCache.URL_ARGUMENT_ENCODING);\n }", "public void setPath(String path) {\n // We know that URL arguments should always be encoded in UTF-8 according to spec\n setPath(path, EncoderCache.URL_ARGUMENT_ENCODING);\n }", "Config set(String path, Object value);", "public void setUrlPath(String urlPath) {\r\n this.urlPath = urlPath;\r\n }", "private void setAssetPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n assetPath_ = value;\n }", "public void setDirAddress(String dirAddress) {\n String oDirAddress = getDirAddress();\n this.dirAddress = dirAddress;\n firePropertyChange(PROPNAME_DIRADDRESS, oDirAddress, this.dirAddress);\n }", "public void setPath(int path){\n\t\tthis.path = path;\n\t}", "public void setDireccion(String direccion);", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public void setCatalogPathRef(Reference r) {\n if (isReference()) {\n throw tooManyAttributes();\n }\n createCatalogPath().setRefid(r);\n setChecked(false);\n }", "public void setUrlPathHelper(UrlPathHelper urlPathHelper)\n/* */ {\n/* 537 */ this.urlPathHelper = urlPathHelper;\n/* */ }", "public void setPath(Position[] path) {\n\t\tif(path != null)\n\t\t\tthis.path = path;\n\t}", "void setPath() {\n\t\tif(from.getSelectedItem() != null){\n\t\t\tint ifrom = (int) from.getSelectedItem();\n\t\t\tint ito = (int) to.getSelectedItem();\n\t\t\tPathFinder finder = new BellmanFord(this.app.graph, ifrom-1);\n\t\t\tfinder.findAll();\n\t\t\tArrayList<Integer> path = finder.getPath(ito-1);\n\t\t\tStringBuilder pathStr = new StringBuilder(\"[\");\n\t\t\tif(path != null){\n\t\t\t\tfor(int i = path.size()-1; i >= 0 ; i--){\n\t\t\t\t\tpathStr.append((path.get(i)+1) + \" \");\n\t\t\t\t}\n\t\t\t\tpathStr.append(\"]\");\n\t\t\t\t\n\t\t\t}\n\t\t\tthis.pathLabel.setText(pathStr.toString());\n\t\t}\n\t\t\n\t}", "public void setURL(java.lang.CharSequence value) {\n this.URL = value;\n }", "public void set(String path, Object value) {\n yml.set(path, value);\n save();\n }", "public void setRing(String path);", "public setAttribute_args setPath(String path) {\n this.path = path;\n return this;\n }", "public void setURL(String key, URL value) {\n\t\tif (value != null && !value.equals(getDefault(key)))\n\t\t\tinternal.setProperty(key, value.toString());\n\t\telse\n\t\t\tinternal.remove(key);\n\t}", "public void setPath(File path) {\n this.path = path;\n }", "public void setPathOrigin(int x, int y);", "public void setPath(ArrayList<String> newPath) {\n list = newPath;\n }", "void setFilePath(String filePath);", "public void setDir(String dir) {\n // Do this before setting the value\n boolean dirChanged = dir != null && !dir.equals(this.getDir());\n this.dir = Paths.get(dir);\n if(dirChanged) {\n this.dirChanged();\n }\n }", "public Builder setSrcPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n srcPath_ = value;\n onChanged();\n return this;\n }", "public Builder addPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePathIsMutable();\n path_.add(value);\n onChanged();\n return this;\n }", "public void setLocalMusicPath(String val) {\n\t\tref.edit().putString(COL_LOCAL_MP3_PATH, val).commit();\n\t}", "public static void setPathCache(String pathCache)\r\n/* 50: */ throws IOException\r\n/* 51: */ {\r\n/* 52: 49 */ log.finest(\"OSHandler.setPathCache\");\r\n/* 53: 50 */ setProperty(\"path\", pathCache);\r\n/* 54: */ }", "public void setBasePath(final String value)\n {\n basePath = value;\n }", "@JsonProperty(\"path\")\r\n public void setPath(String path) {\r\n this.path = path;\r\n }", "@JsonProperty(\"path\")\r\n public void setPath(String path) {\r\n this.path = path;\r\n }", "public void setLoadPath(final String p_path) {\n m_path = p_path;\n\n // trim / at the end\n if (m_path.charAt(m_path.length() - 1) == '/') {\n m_path = m_path.substring(0, m_path.length() - 1);\n }\n }", "@Override\r\n protected void setPath() {\r\n filePath = CARD_PATH;\r\n }" ]
[ "0.65771675", "0.6516193", "0.64598083", "0.6351641", "0.6340136", "0.61280644", "0.61150175", "0.6090701", "0.607667", "0.6042797", "0.6016845", "0.59704834", "0.5966146", "0.5944346", "0.59267026", "0.592081", "0.5860231", "0.5859165", "0.58193254", "0.5771887", "0.57611835", "0.57440203", "0.57265055", "0.571247", "0.571058", "0.56851053", "0.56839937", "0.5632935", "0.56302476", "0.56271577", "0.56251025", "0.56205046", "0.5617268", "0.56162727", "0.56158286", "0.5602525", "0.56004244", "0.5597078", "0.5591841", "0.5589889", "0.5589889", "0.5589889", "0.5573512", "0.55523753", "0.5551043", "0.55218965", "0.5519824", "0.5519824", "0.5519824", "0.5519824", "0.5519824", "0.5519824", "0.5519824", "0.5519824", "0.5519824", "0.5506349", "0.5506349", "0.5506349", "0.54873276", "0.5483609", "0.54773706", "0.5471442", "0.5464011", "0.54609483", "0.54536706", "0.54500633", "0.5444084", "0.54267967", "0.54267967", "0.5399354", "0.5397421", "0.53927714", "0.53795344", "0.53475356", "0.5344398", "0.533399", "0.53127736", "0.5304425", "0.5303414", "0.52922755", "0.52560455", "0.5251714", "0.5245703", "0.5225745", "0.52229214", "0.5222891", "0.5215965", "0.52147925", "0.5214723", "0.5212598", "0.52083206", "0.52062684", "0.5186234", "0.5175758", "0.5173132", "0.5164556", "0.5161284", "0.5161284", "0.51522845", "0.5146504" ]
0.58946073
16
Sets a query parameter with given value.
public Builder setQueryParameter(String name, String value) { checkArgument(name != null && !name.isEmpty(), "Invalid parameter name"); url.query.put(name, value); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParameter(String paramName, Object value, Query query) {\r\n\t\tif (hasParameter(paramName)) {\r\n\t\t\tquery.setParameter(paramName, value);\r\n\t\t}\r\n\t}", "void setQueryParam(String name, @Nullable Object value) {\n removeQueryParam(name);\n if (value != null) {\n appendQueryParam(name, String.valueOf(value));\n }\n }", "protected void setParameter(Query query, String hqlParamName, Object parameterValue) throws Exception\r\n {\r\n //ClassLoader cl = MainFrame.getMainInstance().getReportClassLoader();\r\n \r\n if (parameterValue == null)\r\n {\r\n query.setParameter( getLiteral( hqlParamName ), parameterValue);\r\n return;\r\n }\r\n \r\n query.setParameter(hqlParamName, parameterValue);\r\n }", "void setParameter(String name, String value);", "public void setParam(String paramName, String value);", "void setOrderedQueryParameter(Query query, T value);", "void setParameter(String name, Object value);", "void setQueryParam(DriveRequest<?> request, String queryParam);", "public void setQueryParameter(String queryParameter){\n this.queryParameter = queryParameter;\n }", "@Override\n public DefaultUrlBuilder queryParam(String name, String value) {\n this.queryNamesAndValues.put(\n BaseUrl.UrlEncoder.encodeQueryNameOrValue(name), BaseUrl.UrlEncoder.encodeQueryNameOrValue(value));\n return this;\n }", "public URIBuilder setParameter(final String param, final String value) {\n if (this.queryParams == null) {\n this.queryParams = new ArrayList<BasicNameValuePair>();\n }\n if (!this.queryParams.isEmpty()) {\n for (final Iterator<BasicNameValuePair> it = this.queryParams.iterator(); it.hasNext(); ) {\n final BasicNameValuePair nvp = it.next();\n if (nvp.getName().equals(param)) {\n it.remove();\n }\n }\n }\n this.queryParams.add(new BasicNameValuePair(param, value));\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n this.query = null;\n return this;\n }", "public void setParameter(String key, String value) {\n\t\tsetField(\"Param.\" + key, value);\n\t}", "public void setParameter(String name, Object value) {\n \tParameterExtendedImpl param = parameters.getParameter(name);\n \tif(param != null){\n\t\t\tparam.setValue(value);\n\t\t\treturn;\n \t}\n \t\t\n \tparam = new ParameterExtendedImpl();\n \tparam.setIndex(parameters.getParameter().size()+1);\n \tparam.setName(name);\n \tparam.setValue(value);\n \tparam.setDirection(ParameterExtendedImpl.IN);\n \tparameters.getParameter().add(param);\n \tparameters.getInParameters().add(param);\n\t}", "protected void addParameter(Query query, String name, Object value) {\n\t\tif (value != null) {\n\t\t\tquery.setParameter(name, value);\n\t\t}\n\t}", "Statement setParameter(String name, Object param);", "public void setParameter(String name,String value) throws \n IllegalArgumentException, SipParseException {\n\t if ( LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameter() \" \n\t\t\t+ name + \" value \" + value);\n Via via=(Via)sipHeader;\n \n if (name == null || value == null) {\n throw new \n IllegalArgumentException\n (\"JAIN-EXCEPTION: Name or value is null!\");\n }\n else via.setParameter(name,value);\n }", "RequestBuilder addQueryParameter(String key, String value);", "public void setValue(final String name, final Object value) {\r\n this.params.put(name, value);\r\n }", "void setQueryString (String string);", "public void setParamValue(String label, Object value);", "private void setParameterAtWhereString(Query qry, UserGroupAssignment parameter){\r\n\t\tif(parameter.getGroupId() != null){\r\n\t\t\tqry.setParameter(\"GROUP_ID\", parameter.getGroupId());\r\n\t\t}\r\n\t\tif(parameter.getId() != null){\t\t\t\r\n\t\t\tqry.setParameter(\"ID\", parameter.getId());\r\n\t\t}\r\n\t}", "public void setParamValue(String label, int value);", "@Override\n\tpublic <P> ProcedureCallImplementor<R> setParameter(QueryParameter<P> parameter, P value) {\n\t\tparamBindings.getBinding( getParameterMetadata().resolve( parameter ) ).setBindValue( value );\n\t\treturn this;\n\t}", "public void setParam(String param, Object value) {\n\t\tapplicationParams.put(param, value);\n\t}", "public void setParameter(String name, String value) throws IOException {\r\n boundary();\r\n writeName(name);\r\n newline();\r\n newline();\r\n writeln(value);\r\n }", "protected void set(String name, String value) {\n\t\tParameter param = new Parameter(name, value);\n\t\t_parameters.set(param);\n\t}", "public void putParameter(final String name, final Object value) {\n\t\tif (name == null) {\n\t\t\tthrow new IllegalArgumentException(\"name must not be null\");\n\t\t}\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException(\"value must not be null\");\n\t\t}\n\n\t\tqueryParameters.put(name, value);\n\t}", "public void setParamValue(int i, Object value);", "public void setString(String name, String value) {\n parameters.get(name).setValue(value);\n }", "@Override\n public boolean setParameter(String parameterName, String value) {\n return false;\n }", "public void setQueryString(String query) {\n if (query != null && _convertPositionalParametersToNamed && JPQLParser.LANG_JPQL.equals(_language)) {\n query = query.replaceAll(\"[\\\\?]\", \"\\\\:_\");\n }\n _query = query;\n }", "public void setParameter(String pname, String pvalue) {\n\t\tif (pvalue == null || pvalue.isEmpty()) {\n\t\t\tparameters.remove(pname);\n\t\t} else {\n\t\t\tparameters.put(pname, pvalue);\n\t\t}\n\t}", "void appendQueryParam(String name, Object value) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n if (value == null) {\n throw new IllegalArgumentException(\"Value cannot be null\");\n }\n queryParams.add(new Param(name, String.valueOf(value)));\n }", "private void setParam(int param, int value) {\n bind();\n glTexParameteri(GL_TEXTURE_2D, param, value);\n }", "public void setParameter(String parName, Object parVal) throws HibException ;", "public HttpParams setParameter(String name, Object value) throws UnsupportedOperationException {\n/* 228 */ throw new UnsupportedOperationException(\"Setting parameters in a stack is not supported.\");\n/* */ }", "Statement setParameter(int index, Object param);", "public TedHttpSession parameter(String key, String value) {\n this.req.parameter(key, value);\n return this;\n }", "public void setPersistentParameter(String name, String value) {\r\n\t\tpersistentParameters.put(name, value);\r\n\t}", "public void setParameter(SPParameter parameter){\n if(parameter == null){\n throw new IllegalArgumentException(QueryPlugin.Util.getString(\"ERR.015.010.0011\")); //$NON-NLS-1$\n }\n\n Integer key = parameter.getIndex();\n if(parameter.getParameterType() == ParameterInfo.RESULT_SET){\n resultSetParameterKey = key;\n }\n\n mapOfParameters.put(key, parameter);\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "public void addQueyParameter(String query) {\n\t\tParameter param = RestFactoryImpl.eINSTANCE.createParameter();\n\t\tparam.setParameterName(PARAMETER_QUERY);\n\t\tparam.setParameterValue(query);\n\t\tparam.setName(\"Query\");\n\t\tthis.listOfParameters.add(param);\t\t\n\t}", "public void setPersistentParameter(String name, String value) {\n\t\tpersistentParameters.put(name, value);\n\t}", "public void setQuery(java.lang.CharSequence value) {\n this.query = value;\n }", "public Builder setParameterValue(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n parameterValue_ = value;\n\n return this;\n }", "public static void setCustomMethodParameter(String key, String value) {\n if (active) {\n TransactionAccess.setMethodParameter(key, value);\n }\n }", "private void setValue(String parameterName, String valueAsString) throws SAXException {\n if (currentNode == null)\n throw new SAXException(\"There is no current node.\");\n Parameter parameter;\n try {\n parameter = currentNode.getParameter(parameterName);\n } catch (NotFoundException e) {\n throw new SAXException(\"Node \" + currentNode.getName() + \" has no parameter '\" + parameterName + \"'\", e);\n }\n Object value;\n try {\n value = parameter.parseValue(valueAsString);\n } catch (NumberFormatException e) {\n throw new SAXException(parameter.getAbsolutePath() + \": could not parse value '\" + valueAsString + \"'\", e);\n }\n try {\n parameter.setValue(value);\n } catch (ValueError e) {\n throw new SAXException(parameter.getAbsolutePath() + \": value '\" + valueAsString + \"' invalid for parameter\", e);\n }\n }", "public Object setParam(Parameter p, Object value) throws InvalidParameterException{\n\t\tvalue = ParamUtil.checkValue(p,value);\r\n\t\t\r\n\t\t//Store\r\n\t\treturn params.put(p, value);\r\n\t}", "public void setParameterValue(String name, String value) {\n\tgetLogger().finest(\"Setting: \"+name+\" = \"+value);\n\tif (name.equals(\"genie.restart\")) {\n\t _parameters.put(name,value.substring(0,CHARS_RESTART));\n\t} else if (name.equals(\"genie.lout\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LOUT));\n\t} else if (name.equals(\"genie.lin\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LIN));\n\t} else {\n\t _parameters.put(name,value);\n\t}\n }", "public boolean setParameter(String parameterName, String value) {\n\t\t\n\t\t if (parameterName.equals(\"mu\")) {\n\t\t\t mu = Double.parseDouble(value);\n\t\t } else if (parameterName.equals(\"lambda\")) {\n\t\t\t lambda = Double.parseDouble(value);\n\t\t } else {\n\t\t\treturn false;\n\t\t }\n\t\t \n\t\treturn true;\n\t}", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void addParameter(String key, Object value) {\n if (!super.requestURL.contains(\"?\")) {\n super.requestURL = super.requestURL + \"?\";\n }\n String strValue = \"\";\n try{\n strValue = Uri.encode(value.toString(), \"utf-8\");\n super.requestURL = super.requestURL + key + \"=\" + strValue + \"&\";\n } catch (Exception e){\n Log.e(TAG, e.getMessage());\n }\n }", "public void setValue(final String value) throws JspException\n\t{\n\t\tthis.value = evaluateString(\"parameter\", \"value\", value);\n\t}", "public void setQuery(String query) {\n _query = checkNotNull(query, \"query is null\");\n }", "public void setQueryString(String queryString) {\n if (queryString != null) {\n super.setQueryString('?' + queryString);\n } else {\n super.setQueryString(queryString);\n }\n }", "public void setParam(String paramName, double value);", "public void setQuery(String query) {\n this.query = Optional.ofNullable(query);\n }", "void setQueryRequestUrl(String queryRequestUrl);", "RequestBuilder setQueryParameters(Map<String, String> queryParams);", "public void setParameterValue(int index, String value) {\n\tString name = getParameterName(index);\n\tif (name!=null) {\n\t setParameterValue(name,value);\n\t} else {\n\t getLogger().warning(\"Parameter does not exist at index \"+index);\n\t}\n }", "public void setValQuery (String valQuery) {\n this.valQuery = valQuery;\n }", "public void addParameter(String name, Object value) {\n t.setParameter(name, value);\n }", "public void setParameter(String key, String value)\n {\n if (SAVE_AS_PARAM.equalsIgnoreCase(key))\n _saveAsExtension = value;\n else if (START_PARAM.equalsIgnoreCase(key))\n _startDirectory = value;\n else if (STOP_PARAM.equalsIgnoreCase(key))\n _stopDirectory = value;\n else if (TRIM_CONTRIBUTIONS_PARAM.equalsIgnoreCase(key))\n _trimModuleContributions = Boolean.parseBoolean(value);\n else if (AST_GENERATOR.equalsIgnoreCase(key))\n {\n value = value.trim();\n if (value.equalsIgnoreCase(\"default\") || value.equals(\"\"))\n _astGenerator = _defaultASTGenerator;\n else\n try\n {\n _astGenerator = (Function<IModel, CommonTree>) ParameterHandler\n .classInstance().coerce(value).newInstance();\n }\n catch (Exception e)\n {\n LOGGER.error(\n String.format(\"Failed to set ast generator to %s \", value), e);\n _astGenerator = _defaultASTGenerator;\n }\n }\n else if (LOGGER.isWarnEnabled())\n LOGGER.warn(\"No clue what to do with \" + key + \"=\" + value);\n }", "void setValue(String value);", "void setValue(String value);", "public void setValue(Object value) { this.value = value; }", "public static void setCustomTransactionParameter(String key, String value) {\n if (active) {\n TransactionAccess.setTransactionParameter(key, value);\n }\n }", "@Override\n public boolean setParameter(String parameterName, double value) {\n return false;\n }", "@Override\n public void addParam(String param, Object value) {\n request.addProperty(param, value);\n }", "public void setParameters(Query query) {\r\n\t\tfor (String name : parameters.keySet()) {\r\n\t\t\tthis.setParameter(name, parameters.get(name), query);\r\n\t\t}\r\n\t}", "public void setValue(Object value);", "public InfluxDBParameter setQuery(String query) {\n this.query = query;\n return this;\n }", "public void setQuery(Integer query) {\n this.query = query;\n }", "public BreezeRequestForm param(String key, String value) {\n params.put(key, value == null ? \"\" : value);\n return this;\n }", "public Builder setQuery(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n query_ = value;\n\n return this;\n }", "public void setRequest(QueryDoctor param) {\r\n localRequestTracker = param != null;\r\n\r\n this.localRequest = param;\r\n }", "void setQueryRequest(com.exacttarget.wsdl.partnerapi.QueryRequest queryRequest);", "public void setValue(Value value) {\n this.value = value;\n }", "public void setTemporaryParameter(String name, String value) {\r\n\t\ttemporaryParameters.put(name, value);\r\n\t}", "public void setParameterValue(final int position, final String value) {\n parameterValues.set(position-1,value);\n }", "public void setInt(String name, Integer value) {\n parameters.get(name).setValue(value);\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParamValue(String label, double value);", "public void setValue(Object value) {\n this.value = value;\n }", "public ParameterDefinition setValue(String value) {\n this.value = value;\n return this;\n }", "void setQueryArgs(QueryArgs queryArgs);", "public com.example.DNSLog.Builder setQuery(java.lang.CharSequence value) {\n validate(fields()[8], value);\n this.query = value;\n fieldSetFlags()[8] = true;\n return this;\n }", "public void setParam(String str) {\n\t\tSystem.out.println(\" --IndexDao 传送值 = \"+str);\n\t}", "@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }", "public void setParamName (String value) {\n\tthis.paramName = value;\n }", "public void setValue(String value)\n {\n this.value = value;\n }", "public void setTemporaryParameter(String name, String value) {\n\t\ttemporaryParameters.put(name, value);\n\t}", "public void setValue(LoginMessageRequest param) {\n localValueTracker = true;\n\n this.localValue = param;\n }", "public void setValue(LoginMessageRequest param) {\n localValueTracker = true;\n\n this.localValue = param;\n }" ]
[ "0.7318701", "0.729371", "0.70674276", "0.70297843", "0.70293105", "0.6984925", "0.6858343", "0.6820262", "0.6768196", "0.6658912", "0.66210747", "0.6515277", "0.6489246", "0.6488245", "0.63807195", "0.6373305", "0.6361244", "0.6353159", "0.6336875", "0.6306914", "0.6280012", "0.62608355", "0.62573844", "0.6245402", "0.62272567", "0.62138814", "0.6191553", "0.61775833", "0.6175284", "0.61497587", "0.61388326", "0.6130449", "0.61217", "0.6087674", "0.60743237", "0.6007798", "0.60056776", "0.5995709", "0.5985592", "0.5972897", "0.5966245", "0.59617966", "0.5958813", "0.59513235", "0.59361696", "0.58954406", "0.5893625", "0.5878432", "0.5856964", "0.585572", "0.5853232", "0.5853232", "0.5853232", "0.5853232", "0.58216214", "0.5811464", "0.581039", "0.57942384", "0.5781856", "0.57779884", "0.5754", "0.57539463", "0.5739402", "0.57330775", "0.5723469", "0.5715254", "0.57113445", "0.57113445", "0.57103616", "0.56973773", "0.5695361", "0.56846815", "0.56801766", "0.56652826", "0.56597877", "0.5644851", "0.564373", "0.56428003", "0.5641009", "0.563507", "0.5631171", "0.56236094", "0.56225115", "0.56212693", "0.56208867", "0.56208867", "0.56208867", "0.56208867", "0.5598893", "0.5597322", "0.5589389", "0.55871713", "0.55771196", "0.55769426", "0.5574949", "0.55698067", "0.5569025", "0.5566603", "0.55332047", "0.55332047" ]
0.7130076
2
Sets query parameters with given map object. All the previous parameters and values will be clear.
public Builder setQueryParameters(Map<String, String> params) { url.query.clear(); if (params != null && params.size() > 0) url.query.putAll(params); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setParameters(Map<String, String[]> parameters);", "RequestBuilder setQueryParameters(Map<String, String> queryParams);", "@Override\n public void setParameterMap(Map arg0) {\n\n }", "void setParameters(Map<String, Object> propertyValues);", "public Parameters(Map<String, String[]> map) {\n\t\trequireNonNull(map, \"Parameters map not speicifed\");\n\t\tthis.store = new ParametersMap(map);\n\t}", "public void setParameters(Query query) {\r\n\t\tfor (String name : parameters.keySet()) {\r\n\t\t\tthis.setParameter(name, parameters.get(name), query);\r\n\t\t}\r\n\t}", "public Query initParams(Map<String, String> params) {\n if (MapUtil.isNotEmpty(params)) {\n for (Map.Entry<String, String> entry : params.entrySet()) {\n addParam(entry.getKey(), entry.getValue());\n }\n }\n return this;\n }", "Statement setParameters(Map<String, Object> params);", "public void setParameterMap(Map parametersMap)\r\n {\r\n // create a new HashMap\r\n this.parameters = new HashMap(parametersMap.size());\r\n\r\n // copy the parameters\r\n addParameterMap(parametersMap);\r\n }", "protected final void setParameters(Map<String, String> parameters) {\n m_parameters = parameters;\n if (m_parameters == null) {\n m_parameters = new HashMap<String, String>();\n }\n }", "public void setParameters(@NonNull Map<String, Object> parameters) {\n this.parameters = new HashMap<>(parameters);\n }", "public void setParameterMap(Map<String, ?> parameterMap) {\n\t\tthis.parameterMap = parameterMap;\n\t}", "@Override\r\n\tpublic void setParameters(Map<String, String[]> parameters){\n\t\tthis.parameters=parameters;\r\n\t}", "public void setParameters(Map<String, String> parameters) throws IOException {\r\n if (parameters == null)\r\n return;\r\n for (Iterator i = parameters.entrySet().iterator(); i.hasNext();) {\r\n Map.Entry entry = (Map.Entry) i.next();\r\n setParameter(entry.getKey().toString(), entry.getValue());\r\n }\r\n }", "public void setUrlMap(Map<String, ?> urlMap)\r\n/* 22: */ {\r\n/* 23: 82 */ this.urlMap.putAll(urlMap);\r\n/* 24: */ }", "public URIParameters(Map<String, String[]> parameters) {\r\n this._parameters = new HashMap<String, String[]>(parameters);\r\n }", "@Override\n public void setParameters(Map<Enum<?>, Object> parameters) {\n }", "void setMap(Map aMap);", "public void setCGIParams(Map<String, String[]> cgi_params ){\n\t\t/*\n\t\t * Make a Map copy because it could be altered \n\t\t */\n\t\tif( cgi_params != null ) {\n\t\t\tfor( Entry<String, String[]> e: cgi_params.entrySet()) {\n\t\t\t\tString v;\n\t\t\t\tif( e.getValue().length == 0 ) {\n\t\t\t\t\tv = \"\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tv = e.getValue()[0];\n\t\t\t\t}\n\t\t\t\tcgiParams.put(e.getKey().toLowerCase(),v);\n\t\t\t}\n\t\t}\n\t}", "void updateParamMap (List<BindParameter> bindParams);", "public JbootVoModel set(Map<String, Object> map) {\n super.putAll(map);\n return this;\n }", "@Override\n\tpublic Map getParameterMap() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}", "public void filterBy(Map<String, List<String>> queryMap) {\n }", "@Override\n\t\tpublic Map getParameterMap() {\n\t\t\treturn null;\n\t\t}", "private void setParameters(final PreparedStatement statement, final Map<Integer, Object> params)\n throws SQLException {\n\n if (params != null) {\n for (Map.Entry<Integer, Object> entry : params.entrySet()) {\n statement.setObject(entry.getKey(), entry.getValue());\n }\n }\n\n }", "public void putInMap(Map<String, Object> paramMap)\n {\n paramMap.put(\"wms_cre_rev_info_comp_id\", this.wms_cre_rev_info_comp_id);\n paramMap.put(\"wms_cre_credit_head_id\", this.wms_cre_credit_head_id);\n paramMap.put(\"wms_cre_credit_line_customer_change_head_id\", this.wms_cre_credit_line_customer_change_head_id);\n paramMap.put(\"has_enterprise\", this.has_enterprise);\n paramMap.put(\"enterprise_reason\", this.enterprise_reason);\n paramMap.put(\"company_type\", this.company_type);\n paramMap.put(\"register_money\", this.register_money);\n paramMap.put(\"operation_state\", this.operation_state);\n paramMap.put(\"date_of_issue\", this.date_of_issue);\n paramMap.put(\"date_of_issue_str\", this.date_of_issue_str);\n paramMap.put(\"issue_begin_date\", this.issue_begin_date);\n paramMap.put(\"issue_begin_date_str\", this.issue_begin_date_str);\n paramMap.put(\"issue_end_date\", this.issue_end_date);\n paramMap.put(\"issue_end_date_str\", this.issue_end_date_str);\n paramMap.put(\"shareholders_num\", this.shareholders_num);\n paramMap.put(\"way_of_contribution\", this.way_of_contribution);\n paramMap.put(\"is_inspection\", this.is_inspection);\n paramMap.put(\"is_same_organ_code\", this.is_same_organ_code);\n paramMap.put(\"is_inspection_organ_code\", this.is_inspection_organ_code);\n paramMap.put(\"is_same_other\", this.is_same_other);\n paramMap.put(\"is_taxpayer\", this.is_taxpayer);\n paramMap.put(\"pay_taxes_status\", this.pay_taxes_status);\n paramMap.put(\"comp_remark\", this.comp_remark);\n }", "public void setQueryParameter(PortletWindow window, String name, String[] values) {\n String nsName = name; // Prepared for namespaced params\n if (values == null || values.length == 0) {\n queryParams.remove(nsName);\n } else {\n queryParams.put(nsName, values);\n }\n }", "public Map getQueryParameterMap() {\n return queryParams;\n }", "public void clearParameters() {\n\t\tqueryParameters.clear();\n\t}", "@Override\n\tprotected void generateParams(HashMap<String, String> map) {\n\t\tmap.put(\"vuid\", vUid);\n\t\tif(page>0)map.put(\"page\", \"\"+page);\n\t\tif(size>0)map.put(\"size\", \"\"+size);\n\t}", "public void setParameterValues(Map<String, Object> parameterValues) {\r\n\t\tLOG.info(DOLLAR + INSIDE_METHOD + DOLLAR);\r\n\t\tthis.parameterValues = parameterValues;\r\n\t\tLOG.info(DOLLAR + OUTSIDE_METHOD + DOLLAR);\r\n\t}", "@Override\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\tmap=arg0;\n\t\t\n\t}", "void setQueryArgs(QueryArgs queryArgs);", "@Override\n\tpublic void setRequest(Map<String, Object> arg0) {\n\n\t}", "@Override\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\tmap=arg0;\n\t\t\n\t\t\n\t}", "Map<String, String[]> getParameterMap();", "public void putInMap(Map<String, Object> paramMap) {\n\t\tparamMap.put(\"wms_cre_credit_service_type_id\", this.wms_cre_credit_service_type_id);\n\t\tparamMap.put(\"wms_cre_credit_head_id\", this.wms_cre_credit_head_id);\n\t\tparamMap.put(\"pre_wms_cre_credit_head_id\", this.pre_wms_cre_credit_head_id);\n\t\tparamMap.put(\"old_wms_cre_credit_head_id\", this.old_wms_cre_credit_head_id);\n\t\tparamMap.put(\"wms_cre_credit_notary_warn_id\", this.wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"pre_wms_cre_credit_notary_warn_id\", this.pre_wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"old_wms_cre_credit_notary_warn_id\", this.old_wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"bill_code\", this.bill_code);\n\t\tparamMap.put(\"operating_time\", this.operating_time);\n\t\tparamMap.put(\"operating_time_str\", this.operating_time_str);\n\t\tparamMap.put(\"the_number\", this.the_number);\n\t\tparamMap.put(\"create_user_id\", this.create_user_id);\n\t\tparamMap.put(\"create_user_name\", this.create_user_name);\n\t\tparamMap.put(\"create_timestamp\", this.create_timestamp);\n\t\tparamMap.put(\"create_timestamp_str\", this.create_timestamp_str);\n\t\tparamMap.put(\"last_update_user_id\", this.last_update_user_id);\n\t\tparamMap.put(\"last_update_timestamp\", this.last_update_timestamp);\n\t\tparamMap.put(\"last_update_timestamp_str\", this.last_update_timestamp_str);\n\t\tparamMap.put(\"enable_flag\", this.enable_flag);\n\t\tparamMap.put(\"isExcludePKFlag\", this.isExcludePKFlag);\n\t}", "public Parameterized(Map<String, String> parameters) {\n setParameters(parameters);\n }", "@Deprecated\n public void setParameters(Map<String, String> param) {\n parameters.putAll(param);\n }", "public abstract void setWorkflowParameters(Map<String,List<Parameter>> lParams);", "public DocumentLifecycleWorkflowRequest setQueryParams(Map<String, Object> queryParams) {\n\t\tthis.queryParams = queryParams;\n\t\treturn this;\n\t}", "public Map getQueryParameterMap(PortletWindow window) {\n return queryParams;\n }", "@Override\n\tpublic void setRequest(Map<String, Object> arg0) {\n\t\tthis.request = arg0;\n\t}", "@SuppressWarnings(\"unchecked\")\n public ParametersImpl(Map<String, Object> parameters) {\n parameters.forEach((parameterName, parameterValues) -> {\n if (parameterValues == null) {\n String nullValuedParameters = parameters\n .entrySet()\n .stream()\n .filter(entry -> isNull(entry.getValue()))\n .map(Entry::getKey)\n .sorted()\n .collect(joining(\", \"));\n throw new IllegalArgumentException(String.format(\n \"parameters must not have null values: %s\",\n nullValuedParameters));\n }\n\n this.parameters.put(parameterName, (V) parameterValues);\n });\n }", "public void setProperties(HashMap<String, String> map)\n {\n this.properties = map;\n }", "private Map<String,Object> buildParamsMap(Map<String, Object> map, HostelDTO hostelDTO){\r\n\t\tmap.put(\"hostelName\", hostelDTO.getHostelName());\r\n\t\tmap.put(\"adrStreet\", hostelDTO.getAdrStreet());\r\n\t\tmap.put(\"adrCity\", hostelDTO.getAdrCity());\r\n\t\tmap.put(\"adrState\", hostelDTO.getAdrState());\r\n\t\tmap.put(\"adrPostalCode\", hostelDTO.getAdrPostalCode());\r\n\t\tmap.put(\"adrCountry\", hostelDTO.getAdrCountry());\r\n\t\tmap.put(\"phone\", hostelDTO.getPhone());\r\n\t\tmap.put(\"email\", hostelDTO.getEmail());\r\n\t\tmap.put(\"facebook\", hostelDTO.getFacebook());\r\n\t\tmap.put(\"web\", hostelDTO.getWeb());\r\n\t\tmap.put(\"checkInTime\", hostelDTO.getCheckInTime());\r\n\t\tmap.put(\"checkOutTime\", hostelDTO.getCheckOutTime());\r\n\t\tmap.put(\"smoking\", hostelDTO.getSmoking());\r\n\t\tmap.put(\"alcohol\", hostelDTO.getAlcohol());\r\n\t\tmap.put(\"orderCancellationHoursLimit\", hostelDTO.getOrderCancellationHoursLimit());\r\n\t\tmap.put(\"cancellationFeePercant\", hostelDTO.getCancellationFeePercant());\t\r\n\t\treturn map;\r\n\t}", "public FilterBuilder setFilters(HashMap<FilterBy, String> hashmap){\n for ( Map.Entry e : hashmap.entrySet() ){\n instance.arguments.put(((FilterBy)e.getKey()).getFilterKey(), (String) e.getValue());\n }\n return this;\n }", "@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}", "@GET(\"updatelocation\")\n Call<ResponseBody> updateLocation(@QueryMap HashMap<String, String> hashMap);", "private void setMap(final Map map) {\n\t\tthis.map = map;\n\t\tthis.setChanged();\n\t\tthis.notifyObservers();\n\t}", "private Map<String, Object> dealWithMap(Map<String, Object> paramMap) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tfor (String colName : defaultValColArr) {\n\t\t\tset.add(colName);\n\t\t}\n\t\tfor (String colName : pkColArr) {\n\t\t\tset.add(colName);\n\t\t}\n\t\tIterator<String> iterator = set.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tString colName = iterator.next();\n\t\t\tif(paramMap.get(colName) == null) {\n\t\t\t\tparamMap.remove(colName);\n\t\t\t}\n\t\t}\n\t\treturn paramMap;\n\t}", "public void setNamedParameterValues(final Map<String, Object> namedParameterValues) {\r\n\t\tthis.namedParameterValues = namedParameterValues;\r\n\t}", "private void setQueryParameters(final Query q, final List parameters) {\r\n\t\tint i = 0;\r\n\t\tfor (final Iterator iter = parameters.iterator(); iter.hasNext();) {\r\n\t\t\tfinal Object p = iter.next();\r\n\t\t\tif (p instanceof List) {\r\n\t\t\t\tfinal List parameter = (List) p;\r\n\t\t\t\tif (parameter.get(1) instanceof Collection) {\r\n\t\t\t\t\tq.setParameterList((String) parameter.get(0),\r\n\t\t\t\t\t\t\t(Collection) parameter.get(1));\r\n\t\t\t\t} else if (parameter.get(1) instanceof Object[]) {\r\n\t\t\t\t\tq.setParameterList((String) parameter.get(0),\r\n\t\t\t\t\t\t\t(Object[]) parameter.get(1));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tq.setParameter((String) parameter.get(0), parameter.get(1));\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tq.setParameter(i, p);\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "private Map<String, String> paramHandler(Map<String, String> params){\n\t\t\n\t\treturn params;\n\t}", "public void setRunParams(final Map<String, Object> runParams0) {\n this.runParams = runParams0;\n }", "public URIParameters() {\r\n this._parameters = new HashMap<String, String[]>();\r\n }", "@Override\n public void setConfigParams(Map<String, Object> params) {\n\n }", "private Map<String, Object> dealWithMap(Map<String, Object> paramMap)\n {\n Set<String> set = new HashSet<String>();\n for (String colName : defaultValColArr)\n {\n set.add(colName);\n }\n for (String colName : pkColArr)\n {\n set.add(colName);\n }\n Iterator<String> iterator = set.iterator();\n while (iterator.hasNext())\n {\n String colName = iterator.next();\n if (paramMap.get(colName) == null)\n {\n paramMap.remove(colName);\n }\n }\n return paramMap;\n }", "void setQueryParam(String name, @Nullable Object value) {\n removeQueryParam(name);\n if (value != null) {\n appendQueryParam(name, String.valueOf(value));\n }\n }", "@Override\n\tprotected void setParameterValues() {\n\t}", "public void setRequest(Map<String, Object> request)\r\n\t{\n\t\tthis.request = request;\r\n\t}", "public void addParameterMap(Map parametersMap)\r\n {\r\n // handle nulls\r\n if (parametersMap == null)\r\n {\r\n return;\r\n }\r\n\r\n // copy value, escaping html\r\n Iterator mapIterator = parametersMap.entrySet().iterator();\r\n while (mapIterator.hasNext())\r\n {\r\n Map.Entry entry = (Map.Entry) mapIterator.next();\r\n String key = StringEscapeUtils.escapeHtml((String) entry.getKey());\r\n\r\n // don't overwrite parameters\r\n if (!this.parameters.containsKey(key))\r\n {\r\n Object value = entry.getValue();\r\n\r\n if (value != null)\r\n {\r\n if (value.getClass().isArray())\r\n {\r\n String[] values = (String[]) value;\r\n for (int i = 0; i < values.length; i++)\r\n {\r\n values[i] = StringEscapeUtils.escapeHtml(values[i]);\r\n }\r\n }\r\n else\r\n {\r\n value = StringEscapeUtils.escapeHtml(value.toString());\r\n }\r\n }\r\n\r\n this.parameters.put(key, value);\r\n }\r\n }\r\n }", "public void setParameters(Map parameters) {\n super.setParameters(parameters);\n if (parameters != null) {\n _displayURL = (String) parameters.get(PROP_IR_DISPLAY_URL);\n _serverIP = (String) parameters.get(PROP_IR_SERVER_IP);\n _importDir = (String) parameters.get(PROP_IR_COLD_IMPORT);\n _displayMode = (String) parameters.get(PROP_IR_DISPLAY_MODE);\n _urlPrefix = (String) parameters.get(PROP_IR_URL_PREFIX);\n }\n }", "void setQueryParam(DriveRequest<?> request, String queryParam);", "public void setParameter(String paramName, Object value, Query query) {\r\n\t\tif (hasParameter(paramName)) {\r\n\t\t\tquery.setParameter(paramName, value);\r\n\t\t}\r\n\t}", "public static String mapToUtf8FormParam(Map<String, Object> map) {\n\n if (map == null)\n return null;\n\n StringBuilder builder = new StringBuilder();\n try {\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n\n if (builder.length() > 0) {\n builder.append(\"&\");\n }\n\n Object value = entry.getValue();\n if (value instanceof String) {\n value = URLEncoder.encode((String) value, \"UTF-8\");\n }\n\n builder.append(String.format(\"%s=%s\", entry.getKey(), value));\n }\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n return builder.toString();\n }", "public void clearParams() {\n setParams((String[]) null);\n }", "public void setParamValues(Object[] values);", "public Map<String, Object> getParameterMap() {\n\t\treturn queryParameters;\n\t}", "void add( Map< String, Object > paramMap );", "public URIBuilder setParameters(final BasicNameValuePair... nvps) {\n if (this.queryParams == null) {\n this.queryParams = new ArrayList<BasicNameValuePair>();\n } else {\n this.queryParams.clear();\n }\n for (final BasicNameValuePair nvp : nvps) {\n this.queryParams.add(nvp);\n }\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n this.query = null;\n return this;\n }", "void setOrderedQueryParameter(Query query, T value);", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "void updateMap(MapData map);", "public void search(Map<String, String> searchParam);", "ParamMap createParamMap();", "@Override\n\tpublic void setInputMap(HashMap<String, Controller> map)\n\t{\n\t\tthis.map = map;\n\t}", "public void setQueryString(String query) {\n if (query != null && _convertPositionalParametersToNamed && JPQLParser.LANG_JPQL.equals(_language)) {\n query = query.replaceAll(\"[\\\\?]\", \"\\\\:_\");\n }\n _query = query;\n }", "public void params(ibc.applications.transfer.v1.QueryParamsRequest request,\n io.grpc.stub.StreamObserver<ibc.applications.transfer.v1.QueryParamsResponse> responseObserver) {\n asyncUnimplementedUnaryCall(getParamsMethod(), responseObserver);\n }", "public Map getParameterMap() {\n return params;\n }", "void setOrganizationsMap(Map<String, Result> organizationsMap);", "public void setParameters(Map<String, String> param) {\n\n // check the occurrence of required parameters\n if(!(param.containsKey(\"Indri:mu\") && param.containsKey(\"Indri:lambda\"))){\n throw new IllegalArgumentException\n (\"Required parameters for IndriExpansion model were missing from the parameter file.\");\n }\n\n this.mu = Double.parseDouble(param.get(\"Indri:mu\"));\n if(this.mu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:mu\") + \", mu is a real number >= 0\");\n\n this.lambda = Double.parseDouble(param.get(\"Indri:lambda\"));\n if(this.lambda < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:lambda\") + \", lambda is a real number between 0.0 and 1.0\");\n\n if((param.containsKey(\"fb\") && param.get(\"fb\").equals(\"true\"))) {\n this.fb = \"true\";\n\n this.fbDocs = Integer.parseInt(param.get(\"fbDocs\"));\n if (this.fbDocs <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbDocs\") + \", fbDocs is an integer > 0\");\n\n this.fbTerms = Integer.parseInt(param.get(\"fbTerms\"));\n if (this.fbTerms <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbTerms\") + \", fbTerms is an integer > 0\");\n\n this.fbMu = Integer.parseInt(param.get(\"fbMu\"));\n if (this.fbMu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbMu\") + \", fbMu is an integer >= 0\");\n\n this.fbOrigWeight = Double.parseDouble(param.get(\"fbOrigWeight\"));\n if (this.fbOrigWeight < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbOrigWeight\") + \", fbOrigWeight is a real number between 0.0 and 1.0\");\n\n if (param.containsKey(\"fbInitialRankingFile\") && param.get(\"fbInitialRankingFile\") != \"\") {\n this.fbInitialRankingFile = param.get(\"fbInitialRankingFile\");\n try{\n this.initialRanking = readRanking();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n if (param.containsKey(\"fbExpansionQueryFile\") && param.get(\"fbExpansionQueryFile\") != \"\")\n this.fbExpansionQueryFile = param.get(\"fbExpansionQueryFile\");\n }\n }", "public Builder clearQueryParameters() {\n\t\t\turl.query.clear();\n\t\t\treturn this;\n\t\t}", "public void setValues(Map map)\n\t\t{\n\t\t\tm_structuredArtifact = map;\n\n\t\t}", "private void configureMapping(final UrlMappingInfo mapping, final GrailsWebRequest grailsRequest,\n \t\t\tfinal Map<String, Object> savedParams) {\n \t\tGrailsParameterMap params = grailsRequest.getParams();\n \t\tparams.clear();\n \t\tparams.putAll(savedParams);\n \n \t\tmapping.configure(grailsRequest);\n \t}", "public void setMapBean(MapBean aMap) {\n theMap = aMap;\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "private void decodeParms(String parms, Map<String, String> p) {\n\t\t\tif (parms == null) {\n\t\t\t\tthis.queryParameterString = \"\";\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.queryParameterString = parms;\n\t\t\tStringTokenizer st = new StringTokenizer(parms, \"&\");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString e = st.nextToken();\n\t\t\t\tint sep = e.indexOf('=');\n\t\t\t\tif (sep >= 0) {\n\t\t\t\t\tp.put(decodePercent(e.substring(0, sep)).trim(),\n\t\t\t\t\t\t\tdecodePercent(e.substring(sep + 1)));\n\t\t\t\t} else {\n\t\t\t\t\tp.put(decodePercent(e).trim(), \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\tpublic void setSession(Map<String, Object> map) {\n\t\tsessionMap=(SessionMap<String, Object>) map;\n\t}", "public URIBuilder setParameters(final List<BasicNameValuePair> nvps) {\n this.queryParams = new ArrayList<BasicNameValuePair>();\n this.queryParams.addAll(nvps);\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n this.query = null;\n return this;\n }", "public abstract void configureBean(Map<String, String[]> requestParamsMap);", "public void setServiceParams(Hashtable<ID, ? extends Element<?>> params) {\n serviceParams.clear();\n\n if (params == null) {\n return;\n }\n\n for (Map.Entry<ID, ? extends Element<?>> anEntry : params.entrySet()) {\n Element<?> e = anEntry.getValue();\n StructuredDocument<?> newDoc = StructuredDocumentUtils.copyAsDocument(e);\n\n serviceParams.put(anEntry.getKey(), newDoc);\n }\n\n incModCount();\n }", "void setQueryString (String string);", "private void clearQueryString() {\n this.setQueryString(\"\");\n }", "QueryExpansion(Map<String, FreqAndLists> map, ScoringFunction sf, int qryId) {\n\t\tthis.map = map;\n\t\tthis.sf = sf;\n\t\tscoreMap = new HashMap<Double, List<String>>();\n\t\tthis.qryId = qryId;\n\t}", "public void params(ibc.applications.transfer.v1.QueryParamsRequest request,\n io.grpc.stub.StreamObserver<ibc.applications.transfer.v1.QueryParamsResponse> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(getParamsMethod(), getCallOptions()), request, responseObserver);\n }", "public void setMap(java.util.Map map)\n {\n _assert(map != null && getMap() == null, \"Map is not resettable\");\n __m_Map = (map);\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n\n params.put(\"resortName\", resortName);\n params.put(\"latitude\", String.valueOf(lat));\n params.put(\"longitude\", String.valueOf(lon));\n\n\n return params;\n }", "public void setProperties(Map properties);" ]
[ "0.6956326", "0.69420046", "0.68651646", "0.67257035", "0.6659943", "0.66554457", "0.66458833", "0.6603572", "0.6591646", "0.6583453", "0.6547236", "0.64931595", "0.6389251", "0.6345707", "0.6211158", "0.61824465", "0.60912985", "0.6091135", "0.60741293", "0.6063481", "0.59873074", "0.5963752", "0.5939096", "0.59168893", "0.58835095", "0.5882571", "0.58753955", "0.5872131", "0.5852505", "0.58291566", "0.5818655", "0.58020306", "0.5759741", "0.57376504", "0.57376415", "0.572454", "0.5719612", "0.56976193", "0.568372", "0.56823033", "0.5656736", "0.5655936", "0.56528944", "0.5642944", "0.5642098", "0.5634464", "0.56295276", "0.56264323", "0.56224495", "0.56179994", "0.56001604", "0.5585193", "0.5562357", "0.55622685", "0.5556712", "0.5548429", "0.55469435", "0.5540664", "0.55294615", "0.55252355", "0.5518841", "0.5517789", "0.5517475", "0.55154055", "0.55018955", "0.54977906", "0.54878485", "0.5475333", "0.54608524", "0.5454555", "0.5446244", "0.54084194", "0.54055446", "0.5394075", "0.5350228", "0.5350151", "0.5337154", "0.53302896", "0.5324266", "0.5322881", "0.5321566", "0.5320124", "0.53199136", "0.5292813", "0.5291882", "0.52848357", "0.5282376", "0.52809155", "0.5271818", "0.5268682", "0.52684575", "0.5264525", "0.5254371", "0.5249572", "0.5238212", "0.5229118", "0.52258873", "0.5214703", "0.52055585", "0.52019393" ]
0.68342024
3
Remove the specific parameter from the query parameters.
public Builder removeQueryParameter(String name) { checkArgument(name != null && !name.isEmpty(), "Invalid parameter name"); url.query.remove(name); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeQueryParam(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n Iterator<Param> iter = queryParams.iterator();\n while (iter.hasNext()) {\n Param p = iter.next();\n if (p.key.equals(name)) {\n iter.remove();\n }\n }\n }", "public void removeParameter(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tlong paramId = Long.parseLong(params.get(\"parameterId\"));\r\n\t\tthis.getLog().info(\"parameterId:\" + paramId);\r\n\t\t\r\n\t\tif(paramId != 0){\r\n\t\t\ttry {\r\n\t\t\t\tConnectionFactory.createConnection().deleteParameter(paramId);\r\n\t\t\t\tthis.getSelectedAlgorithm().setParameters(ConnectionFactory.createConnection().getAlgorithmParameterArray(getSelectedAlgorithm().getId()));\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void removeParameter(final String name) {\n\t\tqueryParameters.remove(name);\n\t}", "public void removeParam(int index) {\n params = Lists.remove(params, index);\n }", "public void removeParameter(int key){\n\n int i = 0;\n boolean found = false;\n while (i < parameters.size() && !found){\n if (parameters.get(i).getKey() == key) {\n parameters.remove(i);\n found = true;\n }\n }\n\n }", "public void removeParameter(String name)\r\n {\r\n // warning, param names are escaped\r\n this.parameters.remove(StringEscapeUtils.escapeHtml(name));\r\n }", "public void removeParam(int pos) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length - 1];\n\n for (int i = 0, index = 0; i < origParams.length; i++)\n if (i != pos)\n params[index++] = origParams[i];\n setParams(params);\n }", "public void removeParam(Object obj) {\n\t\tparams.remove(obj);\n\t}", "public Object removeValue(final String name) {\r\n return this.params.remove(name);\r\n }", "public void removeParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeParameters() \");\n Via via=(Via)sipHeader;\n \n via.removeParameters();\n }", "boolean removeTypedParameter(Parameter typedParameter);", "public void clearParameters() {\n\t\tqueryParameters.clear();\n\t}", "public void removeIndependentParameter(String name)\n throws ParameterException;", "public void removePersistentParameter(String name) {\r\n\t\tpersistentParameters.remove(name);\r\n\t}", "public void removeTemporaryParameter(String name) {\n\t\ttemporaryParameters.remove(name);\n\t}", "public void remove(String key){\n urlParams.remove(key);\n mJsonmap.remove(key);\n }", "public void removePersistentParameter(String name) {\n\t\tpersistentParameters.remove(name);\n\t}", "public void removeParameter(String name) throws IllegalArgumentException {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeParameter() \");\n Via via=(Via)sipHeader;\n \n if( name==null )\n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: parameter is null\");\n else via.removeParameter(name); \n }", "private void remove(String paramString) {\n }", "void deleteParameter(long id);", "public void removeFromParameterNameValuePairs(entity.LoadParameter element);", "private String removeQueryString(String historyToken)\r\n \t{\r\n \t\tif (historyToken.contains(\"?\"))\r\n \t\t{\r\n \t\t\tint index = historyToken.indexOf('?');\r\n \t\t\thistoryToken = historyToken.substring(0, index);\r\n \r\n \t\t}\r\n \t\treturn historyToken;\r\n \t}", "private void supprimerParametre() {\n if (getSelectedParamatre() == null) return;\n parametreListView.getItems().remove(parametreListView.getSelectionModel().getSelectedItem());\n }", "public void remove(String fieldName) {\n Object key = null;\n for (Object[] param : paramList) {\n if (param[0].toString().equals(fieldName)) {\n key = param;\n break;\n }\n }\n paramList.remove(key);\n }", "private static String removeQuery(String url) {\n if (url == null) {\n return null;\n }\n int query = url.indexOf('?');\n String noQuery = url;\n if (query != -1) {\n noQuery = url.substring(0, query);\n }\n return noQuery;\n }", "public void removeProperty(String name) {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session != null) {\n session.removeAttribute(name);\n \n // Also remove it from the input parameter list.\n Map inputParameters = (Map) session.getAttribute(\"_inputs\");\n if (inputParameters != null) {\n inputParameters.remove(name);\n }\n }\n }", "public void removeParam(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PARAM$14, i);\r\n }\r\n }", "public void removeAPIParameter(String apiParameterGUID) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n apiManagerClient.removeAPIParameter(userId, apiManagerGUID, apiManagerName, apiParameterGUID);\n }", "public void removeFilter(String arg) {\n\t\tqueries = null;\n\t\tsessionBean.removeFilter(arg);\n\t}", "public boolean removeParameter(String name) {\n/* 247 */ throw new UnsupportedOperationException(\"Removing parameters in a stack is not supported.\");\n/* */ }", "public void removeParameter(String sName)\r\n {\r\n for (int iCount = 0; iCount < m_alParameters.size(); iCount++)\r\n {\r\n Parameter c = m_alParameters.get(iCount);\r\n\r\n if (c.getName().equals(sName))\r\n {\r\n m_alParameters.remove(iCount);\r\n fireTableRowsDeleted(iCount, iCount);\r\n }\r\n }\r\n }", "@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}", "public QueryMethodType<T> removeMethodParams()\n {\n childNode.remove(\"method-params\");\n return this;\n }", "Statement clearParameters();", "public StructuredDocument<?> removeServiceParam(ID key) {\n Element<?> param = serviceParams.remove(key);\n\n if (param == null) {\n return null;\n }\n\n incModCount();\n\n // It sound silly to clone it, but remember that we could be sharing\n // this element with a clone of ours, so we have the duty to still\n // protect it.\n\n return StructuredDocumentUtils.copyAsDocument(param);\n }", "RemoveTokenParameter getRemoveTokenParameter();", "public URIBuilder clearParameters() {\n this.queryParams = null;\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n return this;\n }", "@Override\n\tpublic RequestParams onParams(int paramFlag) {\n\t\treturn null;\n\t}", "public static String stripUrlParams(String str, String... toRemove) {\n\n String[] url = str.split(\"\\\\?\");\n StringBuilder builder = new StringBuilder(url[0] + \"?\");\n String[] query = url[1].split(\"&\");\n Map<String, String> map = new HashMap<>(query.length);\n for (String p : query) {\n String[] param = p.split(\"=\");\n map.put(param[0], param[1]);\n }\n for (String param : toRemove)\n map.remove(param);\n for (String key : map.keySet()) {\n builder.append(key).append(\"=\").append(map.get(key)).append(\"&\");\n }\n return builder.subSequence(0, builder.length() - 1).toString();\n }", "@Override\n\t\tpublic String getParameter(String name) {\n\t\t\treturn null;\n\t\t}", "public static String removeParameterKeys(String sql, Map<String, Object>\n parameters) {\n String s = sql;\n for (String key : parameters.keySet())\n s = s.replaceAll(key, \"?\");\n return s;\n }", "public Builder clearParameterId() {\n parameterId_ = getDefaultInstance().getParameterId();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public void removeParameterValue(String serviceProviderCode, String parameterName, String parameterValue,\r\n\t\t\tString callerID) throws AAException, RemoteException;", "public String removeQueryString(String string) {\n\t\tString pathWithoutQueryString = string;\n\t\tif (string != null && string.matches(\".*\\\\?.*\")) {\n\t\t\tpathWithoutQueryString = string.split(\"\\\\?\")[0];\n\t\t}\n\t\treturn pathWithoutQueryString;\n\t}", "public static void remove(String n) {\r\n\t\tif (runtimePars.remove(n) == null)\r\n\t\t\tnew ParameterNameError(\"Parameter \" + n + \" does not exist.\");\r\n\t\t// System.out.println(\"Parameter \" + n +\r\n\t\t// \" removed from the runtime table. \");\r\n\t}", "public void clearParams() {\n setParams((String[]) null);\n }", "public Builder clearParameterValue() {\n bitField0_ = (bitField0_ & ~0x00000002);\n parameterValue_ = getDefaultInstance().getParameterValue();\n\n return this;\n }", "public void eliminarParametro() throws Exception;", "private void clearQueryString() {\n this.setQueryString(\"\");\n }", "@Override\r\n public void removeFilterValue(String value) {\n }", "public AnnotatedTypeBuilder<X> removeFromParameter(AnnotatedParameter<? super X> parameter,\n\t\t\tClass<? extends Annotation> annotationType) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn removeFromMethodParameter(method, parameter.getPosition(), annotationType);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn removeFromConstructorParameter(constructor, parameter.getPosition(), annotationType);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "public Builder clearQueryParameters() {\n\t\t\turl.query.clear();\n\t\t\treturn this;\n\t\t}", "@Override\r\n\tpublic void delParamInfoById(String id) {\n\t\tpm.deleteByPrimaryKey(id);\r\n\t\t\r\n\t}", "void removeValue(String key);", "void clearParameters() throws SQLException;", "public void clearRenderParameters(PortletWindow window) {\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n if (name.startsWith(RENDER + window.getId())) {\n //pathParams.remove(name);\n iter.remove();\n }\n }\n }", "public static String removeQuery(final String urlString) {\n if (urlString == null) {\n return null;\n }\n return Uri.parse(urlString).buildUpon().clearQuery().toString();\n }", "public void removeParameters(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PARAMETERS$16, i);\n }\n }", "public void removeAPIParameterList(String apiParameterListGUID,\n String qualifiedName) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n apiManagerClient.removeAPIParameterList(userId, apiManagerGUID, apiManagerName, apiParameterListGUID, qualifiedName);\n }", "public Builder clearParameterName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n parameterName_ = getDefaultInstance().getParameterName();\n\n return this;\n }", "void removeAllParameterViews();", "protected abstract void removeRequest ();", "private void removeCommentsFromParameters(final Collection<String> collection) {\n final List<String> itemsToRemove = new ArrayList<String>();\n\n for (final String parameter : collection) {\n if (parameter.indexOf(\"#\") == 0) {\n itemsToRemove.add(parameter);\n }\n }\n collection.removeAll(itemsToRemove);\n }", "@java.lang.Deprecated\n public void removeFromParameterNameValuePairs(gw.pl.persistence.core.Key elementID);", "public Builder removeParameters(int index) {\n if (parametersBuilder_ == null) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n onChanged();\n } else {\n parametersBuilder_.remove(index);\n }\n return this;\n }", "public Builder removeParameters(int index) {\n if (parametersBuilder_ == null) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n onChanged();\n } else {\n parametersBuilder_.remove(index);\n }\n return this;\n }", "public Builder removeParams(int index) {\n if (paramsBuilder_ == null) {\n ensureParamsIsMutable();\n params_.remove(index);\n onChanged();\n } else {\n paramsBuilder_.remove(index);\n }\n return this;\n }", "void setQueryParam(String name, @Nullable Object value) {\n removeQueryParam(name);\n if (value != null) {\n appendQueryParam(name, String.valueOf(value));\n }\n }", "public void clearParameters() throws SQLException {\n currentPreparedStatement.clearParameters();\n }", "public void removeRParameters(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(RPARAMETERS$20, i);\n }\n }", "@Override\n\tpublic void removeValue(String arg0) {\n\t}", "@Override\n\tpublic Parameter<?> getParameter(String id) {\n\t\treturn null;\n\t}", "public Builder removeParameters(int index) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n\n return this;\n }", "private static void removeHealthCheckParams(final Long healthCheckId) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.DB_QUERY_DELETE_HEALTH_CHECK_PARAMS);\n\t\tquery.setLong(\"healthCheckId\", healthCheckId).executeUpdate();\n\t\ttxn.commit();\n\t}", "void clearTypedParameters();", "void deleteQueryKey(String key);", "public static String getAtcMapUrlWithParamRemoved(String url, String paramName) throws Exception {\n int divPos = url.indexOf(\"?\");\n String firstPart = url.substring(0, divPos);\n String secondPart = url.substring(divPos + 1);\n \n List<NameValuePair> params = URLEncodedUtils.parse(secondPart, Charset.forName(\"UTF-8\"));\n List<NameValuePair> modParams = new ArrayList<NameValuePair>(params.size());\n \n for (NameValuePair p : params) {\n if (!p.getName().equals(paramName)) {\n modParams.add(p);\n }\n }\n \n String resultUrl = firstPart + \"?\" + URLEncodedUtils.format(modParams, Charset.forName(\"UTF-8\"));\n return resultUrl;\n }", "default void remove(String key, Object value) {\n\t\tSearchCritera searchCritera = new SearchCritera(key, value);\n\t\tremove(() -> searchCritera);\n\t}", "public void setParamRepeat(List<String> parametersToExclude) {\n\t\tif (null == this._reqCtx) {\n\t\t\treturn;\n\t\t}\n\t\tHttpServletRequest req = this._reqCtx.getRequest();\n\t\tMap params = req.getParameterMap();\n\t\tif (null != params && !params.isEmpty()) {\n\t\t\tIterator keyIter = params.keySet().iterator();\n\t\t\twhile (keyIter.hasNext()) {\n\t\t\t\tString key = (String) keyIter.next();\n\t\t\t\tif (null == parametersToExclude || !parametersToExclude.contains(key)) {\n\t\t\t\t\tthis.addParam(key, req.getParameter(key));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic String[] getParameterValues(String name) {\n\t\treturn null;\n\t}", "Form removeProperty(String key);", "public Builder clearParameters() {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000800);\n\n return this;\n }", "@Override\n\tpublic String delete(Set<String> filterField) {\n\t\treturn null;\n\t}", "protected void addInputParameterWithoutChecks(Parameter parameter) {\n\t\tparameters.add(parameter);\n\t\tupdateStructureHash();\n\t}", "@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }", "@Override\n\tpublic Map getParameterMap() {\n\t\treturn null;\n\t}", "public void clearStatement() {\n\t\tif (pstmt != null) {\n\t\t\ttry {\n\t\t\t\tpstmt.clearParameters();\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t} \t\n\t\t}\n\t}", "public DefaultCurveMetadataBuilder clearParameterMetadata() {\n this.parameterMetadata = null;\n return this;\n }", "public Builder clearParameters() {\n if (parametersBuilder_ == null) {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n parametersBuilder_.clear();\n }\n return this;\n }", "public Builder clearParams() {\n if (paramsBuilder_ == null) {\n params_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n paramsBuilder_.clear();\n }\n return this;\n }", "public Return removeMember(Parameter _parameter) {\n Instance instance = (Instance) _parameter.get(ParameterValues.INSTANCE);\n String tempID = ((Long) instance.getId()).toString();\n\n Context context = null;\n try {\n context = Context.getThreadContext();\n\n String abstractid =\n context.getParameter(\"oid\").substring(\n context.getParameter(\"oid\").indexOf(\".\") + 1);\n\n SearchQuery query = new SearchQuery();\n query.setQueryTypes(\"TeamWork_MemberRights\");\n query.addWhereExprEqValue(\"ID\", tempID);\n query.addWhereExprEqValue(\"AbstractLink\", abstractid);\n query.addSelect(\"UserAbstractLink\");\n query.executeWithoutAccessCheck();\n\n if (query.next()) {\n Long Userid = ((Person) query.get(\"UserAbstractLink\")).getId();\n query.close();\n\n query = new SearchQuery();\n query.setQueryTypes(\"TeamWork_Abstract2Abstract\");\n query.addWhereExprEqValue(\"AncestorLink\", abstractid);\n query.addSelect(\"AbstractLink\");\n query.executeWithoutAccessCheck();\n\n while (query.next()) {\n SearchQuery query2 = new SearchQuery();\n query2.setQueryTypes(\"TeamWork_Member\");\n query2.addWhereExprEqValue(\"AbstractLink\", query.get(\"AbstractLink\")\n .toString());\n query2.addWhereExprEqValue(\"UserAbstractLink\", Userid);\n query2.addSelect(\"OID\");\n query2.executeWithoutAccessCheck();\n if (query2.next()) {\n String delOID = (String) query2.get(\"OID\");\n Delete delete = new Delete(delOID);\n delete.execute();\n }\n query2.close();\n }\n query.close();\n } else {\n LOG.error(\"no\");\n }\n\n } catch (EFapsException e) {\n LOG.error(\"removeMember(ParameterInterface)\", e);\n }\n\n return null;\n\n }", "public Builder clearParameters() {\n if (parametersBuilder_ == null) {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n parametersBuilder_.clear();\n }\n return this;\n }", "public void updateEditParameter(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tint paramId = Integer.parseInt(params.get(\"parameterId\"));\r\n\t\tthis.getLog().info(\"parameterId:\" + paramId);\r\n\t\t\r\n\t\tif(paramId == 0){\r\n\t\t\teditParameter = new AdditionalParametersDTO();\r\n\t\t}else{\r\n\t\t\tfor (AdditionalParametersDTO p : this.getParameterList()) {\r\n\t\t\t\tif(p.getId() == paramId){\r\n\t\t\t\t\teditParameter = p;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "public void setQueryParameter(String queryParameter){\n this.queryParameter = queryParameter;\n }", "Property removeValue(PropertyValue<?, ?> value);", "public String queryProjectExceptUserId(Map<String, Object> parameter) {\n return new SQL() {{\n SELECT(\"*\");\n FROM(TABLE_NAME);\n WHERE(\"flag = 1 AND user_id <> #{userId}\");\n }}.toString();\n }", "@Test\n\tpublic void testGetFirstParameterNameFromCombinedRemoveParameterIssue() {\n\t\t// arrange\n\t\tList<String> locationMsgs = new ArrayList<>();\n\t\tlocationMsgs.add(\"Remove this unused method parameter filter\\\".\");\n\t\tlocationMsgs.add(\"Remove this unused method parameter orderBy\\\".\");\n\t\tlocationMsgs.add(\"Remove this unused method parameter orderDirection\\\".\");\n\t\tSonarIssue issue = createSonarIssue(\"Remove these unused method parameters.\", locationMsgs);\n\n\t\t// act\n\t\tSonarQubeObjectTranslator translator = new SonarQubeObjectTranslator();\n\t\tString paramName = translator.getNameOfFirstUnusedParameterInIssue(issue);\n\n\t\t// assert\n\t\tassertThat(paramName).isEqualTo(\"filter\");\n\t}", "private void removePreference(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tLong userId = Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER));\n\t\t\tLong contentId = Long.parseLong(req.getParameter(Constants.CONTENT));\n\t\t\tString nameOfContent = ContentDB.getTitleOfContent(contentId);\n\t\t\tif (userId != null && contentId != null) {\n\t\t\t\tif (PreferenceDB.userHaveContent(userId, contentId)) {\n\t\t\t\t\tmyRecommender.removePreference(contentId, userId);\n\t\t\t\t\tLOGGER.info(\"Eliminamos la valoración del usuario \" + UserDB.getnameOfUser(userId)\n\t\t\t\t\t\t\t+ \" para el contenido \" + nameOfContent);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLOGGER.warning(\"Usuario u objeto no encontrado\");\n\t\t\t}\n\t\t\tout.print(\"ok\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@DeleteMapping(path=\"/api/private/admin/delete/speciality\")\n\t\n\tpublic void removeSpeciality(@RequestParam String specialityName){\n\t\t\n\t\tthis.commonServices.removeSpeciality(specialityName);\n\t\t\n\t}", "public void setParam(String param) {\n this.param = param == null ? null : param.trim();\n }" ]
[ "0.7827335", "0.77854705", "0.77481925", "0.70975035", "0.70005983", "0.6958394", "0.6819335", "0.6808876", "0.6720645", "0.66068554", "0.6547617", "0.6540366", "0.6523423", "0.65094876", "0.6502988", "0.6464321", "0.6453625", "0.6429079", "0.63983953", "0.63699555", "0.63446695", "0.6256023", "0.6224938", "0.6215158", "0.6204051", "0.6200597", "0.6192734", "0.60530686", "0.6031779", "0.60280955", "0.60016197", "0.59448886", "0.59193665", "0.59157133", "0.5896563", "0.58671385", "0.5853309", "0.5852244", "0.58002687", "0.57883173", "0.5782729", "0.5774795", "0.5768696", "0.5752754", "0.5752136", "0.5740687", "0.57254195", "0.56636804", "0.56555015", "0.56120354", "0.56008047", "0.55633223", "0.5562242", "0.55427814", "0.55118954", "0.5473286", "0.5467595", "0.54631895", "0.54566514", "0.5449189", "0.54401135", "0.54316986", "0.54316074", "0.54023606", "0.5397534", "0.5397534", "0.53811586", "0.53804654", "0.5345723", "0.5343683", "0.533389", "0.53102744", "0.5307278", "0.5298611", "0.52979034", "0.52693355", "0.5258051", "0.52378213", "0.5229785", "0.5227009", "0.52152467", "0.5213016", "0.52052814", "0.51967525", "0.5191221", "0.518539", "0.517217", "0.51682615", "0.51478773", "0.5147234", "0.5146173", "0.5141108", "0.5130808", "0.51302415", "0.51239824", "0.51120836", "0.510945", "0.50944257", "0.5094017", "0.5089236" ]
0.7311073
3
Remove all the existing parameters from the query parameters component.
public Builder clearQueryParameters() { url.query.clear(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearParameters() {\n\t\tqueryParameters.clear();\n\t}", "void removeQueryParam(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n Iterator<Param> iter = queryParams.iterator();\n while (iter.hasNext()) {\n Param p = iter.next();\n if (p.key.equals(name)) {\n iter.remove();\n }\n }\n }", "public URIBuilder clearParameters() {\n this.queryParams = null;\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n return this;\n }", "public void clearParams() {\n setParams((String[]) null);\n }", "public void removeParameter(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tlong paramId = Long.parseLong(params.get(\"parameterId\"));\r\n\t\tthis.getLog().info(\"parameterId:\" + paramId);\r\n\t\t\r\n\t\tif(paramId != 0){\r\n\t\t\ttry {\r\n\t\t\t\tConnectionFactory.createConnection().deleteParameter(paramId);\r\n\t\t\t\tthis.getSelectedAlgorithm().setParameters(ConnectionFactory.createConnection().getAlgorithmParameterArray(getSelectedAlgorithm().getId()));\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "Statement clearParameters();", "public Builder clearParams() {\n if (paramsBuilder_ == null) {\n params_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n paramsBuilder_.clear();\n }\n return this;\n }", "public void removeParameter(final String name) {\n\t\tqueryParameters.remove(name);\n\t}", "public Builder clearParameters() {\n if (parametersBuilder_ == null) {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n parametersBuilder_.clear();\n }\n return this;\n }", "public Builder clearParameters() {\n if (parametersBuilder_ == null) {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n parametersBuilder_.clear();\n }\n return this;\n }", "public Builder clearParameters() {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000800);\n\n return this;\n }", "public void removeParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeParameters() \");\n Via via=(Via)sipHeader;\n \n via.removeParameters();\n }", "void clearParameters() throws SQLException;", "private void clearQueryString() {\n this.setQueryString(\"\");\n }", "public Builder removeQueryParameter(String name) {\n\t\t\tcheckArgument(name != null && !name.isEmpty(), \"Invalid parameter name\");\n\n\t\t\turl.query.remove(name);\n\t\t\treturn this;\n\t\t}", "void clearTypedParameters();", "public void clearParameters() throws SQLException {\n currentPreparedStatement.clearParameters();\n }", "void removeAllParameterViews();", "public QueryMethodType<T> removeMethodParams()\n {\n childNode.remove(\"method-params\");\n return this;\n }", "public void removeParameter(int key){\n\n int i = 0;\n boolean found = false;\n while (i < parameters.size() && !found){\n if (parameters.get(i).getKey() == key) {\n parameters.remove(i);\n found = true;\n }\n }\n\n }", "public void clearRenderParameters(PortletWindow window) {\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n if (name.startsWith(RENDER + window.getId())) {\n //pathParams.remove(name);\n iter.remove();\n }\n }\n }", "void onClearAllParametersButtonClick();", "public void removeFromParameterNameValuePairs(entity.LoadParameter element);", "public void clearStatement() {\n\t\tif (pstmt != null) {\n\t\t\ttry {\n\t\t\t\tpstmt.clearParameters();\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t} \t\n\t\t}\n\t}", "public static String removeParameterKeys(String sql, Map<String, Object>\n parameters) {\n String s = sql;\n for (String key : parameters.keySet())\n s = s.replaceAll(key, \"?\");\n return s;\n }", "public void removeParam(int index) {\n params = Lists.remove(params, index);\n }", "public void reset()\n {\n Iterator i;\n\n i = params.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n\n i = options.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n }", "public void removeParam(int pos) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length - 1];\n\n for (int i = 0, index = 0; i < origParams.length; i++)\n if (i != pos)\n params[index++] = origParams[i];\n setParams(params);\n }", "public void removeParameter(String name)\r\n {\r\n // warning, param names are escaped\r\n this.parameters.remove(StringEscapeUtils.escapeHtml(name));\r\n }", "public void clear()\r\n {\r\n m_alParameters.clear();\r\n fireTableDataChanged();\r\n }", "public void removeParameters(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PARAMETERS$16, i);\n }\n }", "public Builder clearParameterValue() {\n bitField0_ = (bitField0_ & ~0x00000002);\n parameterValue_ = getDefaultInstance().getParameterValue();\n\n return this;\n }", "public Builder clearParameterId() {\n parameterId_ = getDefaultInstance().getParameterId();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "private void supprimerParametre() {\n if (getSelectedParamatre() == null) return;\n parametreListView.getItems().remove(parametreListView.getSelectionModel().getSelectedItem());\n }", "public void remove(String key){\n urlParams.remove(key);\n mJsonmap.remove(key);\n }", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void removePersistentParameter(String name) {\r\n\t\tpersistentParameters.remove(name);\r\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void removeParam(Object obj) {\n\t\tparams.remove(obj);\n\t}", "public void removeRParameters(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(RPARAMETERS$20, i);\n }\n }", "public Builder clearArguments() {\n arguments_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public void removePersistentParameter(String name) {\n\t\tpersistentParameters.remove(name);\n\t}", "public void removeTemporaryParameter(String name) {\n\t\ttemporaryParameters.remove(name);\n\t}", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void clear() {\r\n oredCriteria.clear();\r\n orderByClause = null;\r\n distinct = false;\r\n }", "public void setParamRepeat(List<String> parametersToExclude) {\n\t\tif (null == this._reqCtx) {\n\t\t\treturn;\n\t\t}\n\t\tHttpServletRequest req = this._reqCtx.getRequest();\n\t\tMap params = req.getParameterMap();\n\t\tif (null != params && !params.isEmpty()) {\n\t\t\tIterator keyIter = params.keySet().iterator();\n\t\t\twhile (keyIter.hasNext()) {\n\t\t\t\tString key = (String) keyIter.next();\n\t\t\t\tif (null == parametersToExclude || !parametersToExclude.contains(key)) {\n\t\t\t\t\tthis.addParam(key, req.getParameter(key));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic List<?> delete(JsonRequestParams params, Query query) {\n\t\treturn null;\r\n\t}", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public Object removeValue(final String name) {\r\n return this.params.remove(name);\r\n }", "public void clear() {\n \tsuper.clear();\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "private List<String> getCleanedParameters(final List<String> parameters) {\n final List<String> params = new ArrayList<String>(parameters);\n removeEmptyElements(params);\n removeCommentsFromParameters(params);\n return params;\n }", "public DefaultCurveMetadataBuilder clearParameterMetadata() {\n this.parameterMetadata = null;\n return this;\n }", "public Builder removeParameters(int index) {\n if (parametersBuilder_ == null) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n onChanged();\n } else {\n parametersBuilder_.remove(index);\n }\n return this;\n }", "public Builder removeParameters(int index) {\n if (parametersBuilder_ == null) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n onChanged();\n } else {\n parametersBuilder_.remove(index);\n }\n return this;\n }", "public Builder removeParams(int index) {\n if (paramsBuilder_ == null) {\n ensureParamsIsMutable();\n params_.remove(index);\n onChanged();\n } else {\n paramsBuilder_.remove(index);\n }\n return this;\n }", "public void removeParam(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PARAM$14, i);\r\n }\r\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }" ]
[ "0.81621855", "0.7417402", "0.73708266", "0.7045414", "0.6964985", "0.6836707", "0.6805194", "0.67844605", "0.6756326", "0.6751649", "0.67435926", "0.65476763", "0.65475523", "0.6539145", "0.6520653", "0.64371455", "0.6414248", "0.63808906", "0.6329144", "0.6318143", "0.6198568", "0.61092615", "0.61050326", "0.6078039", "0.6009802", "0.5958709", "0.5894101", "0.5870215", "0.5826134", "0.5802894", "0.5779922", "0.5733207", "0.5690105", "0.5666233", "0.5654062", "0.56300586", "0.56300586", "0.56300586", "0.56300586", "0.56300586", "0.56191003", "0.5613603", "0.5613603", "0.5613603", "0.5613603", "0.5613603", "0.5613603", "0.5613603", "0.5613603", "0.5613603", "0.5613603", "0.5613603", "0.55713564", "0.55626285", "0.5555406", "0.5553133", "0.55518395", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55280674", "0.55251014", "0.5514493", "0.5514039", "0.55094564", "0.55093163", "0.5500287", "0.54999757", "0.54954875", "0.54954875", "0.5495322", "0.5473015", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085", "0.5466085" ]
0.69757533
4
Set the fragment component.
public Builder setFragment(String fragment) { url.fragment = fragment == null || fragment.isEmpty() ? null : fragment; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract FragmentComponent setupComponent();", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_layout, fragment);\n fragmentTransaction.commit();\n\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, fragment);\n fragmentTransaction.commit();\n\n }", "private void setViewFragment(Fragment fragment) {\n currentFragment = fragment;\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.replace(R.id.container, fragment);\n transaction.commit();\n }", "@Override\r\n\tpublic void setFragment(FragmentManager fragmentManager) {\n\t\t\r\n\t}", "protected void setFragment(Fragment fragment)\n {\n Log.d(TAG, \"setFragment\");\n Bundle args = new Bundle();\n args.putInt(\"index\", itemClicked);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n fragmentTransaction.add(R.id.details_frame, fragment);\n fragmentTransaction.commit();\n frameLayout.setVisibility(View.VISIBLE);\n }", "public void setFragment(String p_fragment) throws MalformedURIException {\n if (p_fragment == null) {\n m_fragment = null;\n }\n else if (!isGenericURI()) {\n throw new MalformedURIException(\n \"Fragment can only be set for a generic URI!\");\n }\n else if (getPath() == null) {\n throw new MalformedURIException(\n \"Fragment cannot be set when path is null!\");\n }\n else if (!isURIString(p_fragment)) {\n throw new MalformedURIException(\n \"Fragment contains invalid character!\");\n }\n else {\n m_fragment = p_fragment;\n }\n }", "protected abstract void injectFragment(FragmentComponent fragmentComponent);", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.main_frame, fragment);\n// fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }", "@Override\n\tprotected void setupFragmentComponent(AppComponent appComponent) {\n\t}", "private void setFragment(Fragment fragment, String tag){\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n //fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n //fragmentTransaction.add(R.id.content, fragment, tag);\n fragmentTransaction.replace(R.id.content, fragment);\n fragmentTransaction.commit();\n }", "public URIBuilder setFragment(final String fragment) {\n this.fragment = fragment;\n this.encodedFragment = null;\n return this;\n }", "private void setFragment(Fragment fragment) {\n Log.d(\"setFragments\", \"setFragments: start\");\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Log.d(\"setFragments\", \"setFragments: begin\");\n Fragment hideFragment = getLast();\n fragmentTransaction.hide(hideFragment);\n fragmentTransaction.show(fragment);\n if (userHomeFragment.equals(fragment)) {\n lastFragment = \"userHomeFragment\";\n } else if (scheduleFragment.equals(fragment)) {\n lastFragment = \"scheduleFragment\";\n } else if (medicineFragment.equals(fragment)) {\n lastFragment = \"medicineFragment\";\n } else {\n lastFragment = \"calendarFragment\";\n }\n fragmentTransaction.commit();\n }", "private void setFragment() {\r\n dataModelArrayList.clear();\r\n fm = getSupportFragmentManager();\r\n mTaskFragment = (ViewPagerAsyncTask) fm.findFragmentByTag(TAG_TASK_FRAGMENT);\r\n\r\n // If the Fragment is non-null, then it is currently being\r\n // retained across a configuration change.\r\n if (mTaskFragment == null) {\r\n mTaskFragment = new ViewPagerAsyncTask();\r\n fm.beginTransaction().add(mTaskFragment, TAG_TASK_FRAGMENT).commit();\r\n }\r\n }", "private void setFragment(Fragment fragments) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.framelayout,fragments);\n fragmentTransaction.commit();\n }", "@Override\r\n public void setFragment(FragmentManager fragmentManager) {\n\r\n }", "public static void setActualFragment(Fragment actualFragment) {\n MainActivity.actualFragment = actualFragment;\n }", "public void setBaseFragment(Fragment fragment) {\n FragmentTransaction ft = mFragmentManager.beginTransaction();\n ft.add(mContentViewId, fragment, FRAGMENT_TAG + \"_\" + mFragmentManager.getBackStackEntryCount());\n ft.commit();\n }", "private void setFragmentMovie(Fragment fragmentMovie){\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentMovie)\n .addToBackStack(null)\n .commit();\n }", "public void setVideoFragment(Fragment fragment) {\n this.videoRoom = (RoomActivityVideoFragment) fragment;\n eventHandler = new VideoEngineEventHandler();\n eventHandler.addEventHandler(this.videoRoom);\n mRtcEngine.addHandler(eventHandler);\n\n mRtcEngine.enableVideo();\n mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(\n VideoEncoderConfiguration.VD_1280x720,\n VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_30,\n VideoEncoderConfiguration.STANDARD_BITRATE,\n VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT));\n mRtcEngine.enableLocalVideo(false);\n }", "public void set_is_fragment(boolean is_fragment) {\r\n\t\tis_fragment_ = is_fragment;\r\n\t}", "protected void setFragmentTag(String tag) {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof BaseActivity) {\n\t\t\tBaseActivity activity = (BaseActivity) mContext;\n\t\t\tactivity.setCurrentFragment(tag);\n\t\t}\n\t}", "private void setFragment(Fragment fragment){\n FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(R.anim.slide_from_right,R.anim.slideout_from_left);\n fragmentTransaction.replace(parentFrameLayout.getId(),fragment);\n fragmentTransaction.commit();\n }", "private void setStartFragment() {\n Fragment startFragment = getFragment(APPLICATION_FRAGMENTS[0]);\n changeFragment(startFragment);\n }", "public void setFragmentChat(FragmentChat fragmentChat) {\n this.fragmentChat = fragmentChat;\n }", "Builder setComponent(String component);", "private void fragmentChange(){\n HCFragment newFragment = new HCFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.hc_layout, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "private void setFragmentParameter(String productId) {\n\t\tString fragmentParameter;\n\t\tif (productId == null || productId.isEmpty()) {\n\t\t\tfragmentParameter = \"\";\n\t\t} else {\n\t\t\tfragmentParameter = productId;\n\t\t}\n\n\t\tPage page = MyUI.get().getPage();\n\t\tpage.setUriFragment(\"!\" + JobsView.VIEW_NAME + \"/\" + fragmentParameter, false);\n\t}", "public void setParticipantFragment(Fragment fragment) {\n this.room = (RoomActivityParticipantsFragment) fragment;\n }", "private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }", "@Override\n public void setRegisterFragment() {\n setTitle(R.string.register_account);\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.containerView, new RegisterFragment())\n .commit();\n }", "@Override\n protected Fragment setFragment() {\n Bundle extras = getIntent().getExtras();\n String photoUrl = extras.getString(EXTRA_URL_PHOTO, \"https://www.flickr.com/images/buddyicon.gif\");\n String photoId = extras.getString(EXTRA_PHOTO_ID);\n String photoUrlNoSecret = extras.getString(EXTRA_URL_PHOTO_NO_SECRET);\n String photoUrlLarge = extras.getString(EXTRA_URL_PHOTO_LARGE);\n\n return PhotoFragment.newInstance(photoUrl, photoId, photoUrlNoSecret, photoUrlLarge);\n }", "public abstract void updateFragmentUI();", "private void setFragmentParameter(String id) {\n String fragmentParameter;\n if (id == null || id.isEmpty()) {\n fragmentParameter = \"\";\n } else {\n fragmentParameter = id;\n }\n\n UI.getCurrent().navigate(MachinesView.class, fragmentParameter);\n }", "public String getFragment() {\n\t\treturn fragment;\n\t}", "private void changeFragment() {\n TeacherAddNotificationFragment fragment = new TeacherAddNotificationFragment();\n // Put classIds to bundle and set bundle to fragment\n Bundle bundle = new Bundle();\n bundle.putString(\"ListIDs\", classesIds);\n fragment.setArguments(bundle);\n\n // Replace fragment\n getFragmentManager().beginTransaction().replace(R.id.main, fragment)\n .addToBackStack(null)\n .commit();\n }", "public Installer on(@NonNull Fragment fragment) {\n rootView = (ViewGroup) fragment.getView().getRootView();\n return this;\n }", "public HmsPickerBuilder setTargetFragment(Fragment targetFragment) {\n this.targetFragment = targetFragment;\n return this;\n }", "private void switchFragment(Fragment fragment, Bundle arguments) {\n // replace the current showed fragment\n Fragment current = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT);\n if (current != fragment) {\n fragment.setArguments(arguments);\n getSupportFragmentManager().beginTransaction().\n replace(R.id.frame_layout, fragment, CURRENT_FRAGMENT).commit();\n }\n }", "public String getFragment() {\n return m_fragment;\n }", "@Override\r\n public void changeFragment() {\r\n fm.beginTransaction()\r\n .replace(R.id.fragmentContainer, new ListWonderFragment())\r\n .commit();\r\n }", "private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }", "public void createFragment() {\n\n }", "public CuartoFragment() {\n }", "private void fillUpFragment() {\n try {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n sensorFragment = getSensorFragment();\n transaction.replace(R.id.sensor_frame, sensorFragment, getSensorName());\n transaction.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public SettingFragment() {\n // Required empty public constructor\n }", "protected abstract void fragmentTrigger(Fragment fragment);", "private void setFragmentTv(Fragment fragmentTv) {\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentTv)\n .addToBackStack(null)\n .commit();\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public CarModifyFragment() {\n }", "private void displaySelectedFragment(Fragment fragment) {\n// if (fragmentName == null || !fragment.getClass().getSimpleName().equals(fragmentName)) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_container, fragment);\n fragmentTransaction.commit();\n fragmentName = fragment.getClass().getSimpleName();\n// }\n }", "private void setupFragment(Bundle savedInstanceState) {\n if (findViewById(R.id.fl_caller) != null) {\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (savedInstanceState != null) {\n return;\n }\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fl_caller, getActiveFragment())\n .commit();\n }\n }", "private int setLayoutResId(){\n return R.layout.activity_fragment;\n }", "@PerFragment\n@Subcomponent(modules = FragmentModule.class)\npublic interface FragmentComponent {\n}", "public Fragment getFragment() {\n return fragment;\n }", "public RegisterFragment() {\n }", "private void loadFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(com.limkee1.R.id.flContent, fragment);\n fragmentTransaction.commit();\n\n }", "private void initFragment(Fragment newsFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.fl_news, newsFragment);\n transaction.commit();\n\n }", "public StintFragment() {\n }", "private void updateFragment() {\n Fragment fragment = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT);\n if (fragment != null) {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.detach(fragment).attach(fragment).commit();\n }\n }", "private void showFragment(Fragment fragment) {\n Log.d(TAG, \"showFragment: Run selected fragment\");\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.content_frame, fragment)\n .commit();\n }", "private void addBaseFragment(Fragment fragment) {\n\n if (mFragmentManager == null)\n mFragmentManager = getSupportFragmentManager();\n\n FragmentTransaction mFragmentTransaction = mFragmentManager.beginTransaction();\n mFragmentTransaction.replace(R.id.content_frame, fragment, fragment.getClass().getSimpleName().toString()).commit();\n\n }", "private void setLastFragment() {\n Log.d(\"setLastFragments\", \"setLastFragments: start\");\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Log.d(\"setLastFragments\", \"setLastFragments: begin\");\n Fragment showFragment = getLast();\n fragmentTransaction.show(showFragment);\n Log.d(\"setLastFragments\", \"setLastFragments: show\");\n fragmentTransaction.commit();\n }", "private void changeFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.flContainer, fragment);\n fragmentTransaction.commit();\n closeDrawer();\n }", "private void loadFragment(Fragment fragment, String tag) {\n\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.frame_tut, fragment, tag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n ft.commit();\n }", "@Override\r\n\tpublic void setFragmentTokens(Hashtable fragmentTokens) {\n\r\n\t}", "public progFragment() {\n }", "public void setUIComponent(Component c) {}", "void fragment(String fragment);", "void fragment(String fragment);", "protected void setComponent(Component newComponent) {\n\tcomponent = newComponent;\n}", "@Override\n public void refreshFragment() {\n }", "private void switchToFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(binding.frame.getId(), fragment);\n fragmentTransaction.commit();\n }", "public void showFragment(Fragment fragment, String tagFragment) {\n // In tablet layout, do not try to display the Home Fragment again. Show empty fragment.\n if (isDualPanel() && tagFragment.equalsIgnoreCase(BudgetListFragment.class.getName())) {\n fragment = new Fragment();\n tagFragment = \"Empty\";\n }\n\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_left, R.anim.slide_in_right,\n R.anim.slide_out_left);\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack.\n if (isDualPanel()) {\n transaction.replace(R.id.fragmentDetail, fragment, tagFragment);\n } else {\n // Single panel UI.\n transaction.replace(R.id.fragmentMain, fragment, tagFragment);\n\n // todo: enable going back only if showing the list.\n// boolean showingList = tagFragment.equals(BudgetListFragment.class.getName());\n// setDisplayHomeAsUpEnabled(showingList);\n\n transaction.addToBackStack(null);\n }\n\n // Commit the transaction\n transaction.commit();\n }", "public void changeFragment(Fragment nextFragment) {\n actualFragment = nextFragment;\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.mainActivityFrameLayout, nextFragment, nextFragment.getClass()\n .getSimpleName());\n fragmentTransaction.commitAllowingStateLoss();\n }", "public void setContentViewFragment(int containerId, Fragment fragment, String tag) {\n\t\tgetSupportFragmentManager().beginTransaction().add(containerId, fragment, tag).commit();\r\n\t}", "@Override\n public void onBoomButtonClick(int index) {\n fragment = null;\n fragmentClass = MeteoFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Météo\");\n ((AppCompatActivity)getActivity()).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#660099\")));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getActivity().getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.parseColor(\"#660099\"));\n }\n mNavigationView = (NavigationView)getActivity().findViewById(R.id.nvView);\n Menu nv = mNavigationView.getMenu();\n MenuItem item = nv.findItem(R.id.nav_meteo_fragment);\n item.setChecked(true);\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n }", "public DisplayFragment() {\n\n }", "private void configureAndShowDetailFragment(){\n detailFragment = (DetailFragment) getSupportFragmentManager().findFragmentById(R.id.frame_layout_detail);\n\n if (detailFragment == null) {\n // Create new main fragment\n detailFragment = new DetailFragment();\n // Add it to FrameLayout container\n getSupportFragmentManager().beginTransaction()\n .add(R.id.frame_layout_detail, detailFragment)\n .commit();\n }\n }", "public void setFragMode(String fragMode) {\n this.fragMode = fragMode;\n }", "public void setListener(final Fragment fragment, final AdvancedWebviewListener listener,\n final int requestCodeFilePicker) {\n if (fragment != null) {\n mFragment = new WeakReference<Fragment>(fragment);\n } else {\n mFragment = null;\n }\n\n setListener(listener, requestCodeFilePicker);\n }", "@Override\n public void onFragmentAttached() {\n }", "public abstract Fragment getFragment();", "@Override\n public void setUpdateFragment(DataServices.Account account) {\n setTitle(R.string.update_account);\n getSupportFragmentManager().beginTransaction()\n .addToBackStack(null)\n .replace(R.id.containerView, UpdateFragment.newInstance(account))\n .commit();\n }", "public SettingsFragment(){}", "void setXML(String path, DocumentFragment fragment)\n throws ProcessingException;", "public VehicleFragment() {\r\n }", "@Override\n public void onBoomButtonClick(int index) {\n fragment = null;\n fragmentClass = HorlogeAtomiqueFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Horloge\");\n ((AppCompatActivity)getActivity()).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#660099\")));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getActivity().getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.parseColor(\"#660099\"));\n }\n mNavigationView = (NavigationView)getActivity().findViewById(R.id.nvView);\n Menu nv = mNavigationView.getMenu();\n MenuItem item = nv.findItem(R.id.nav_horloge_atomique_fragment);\n item.setChecked(true);\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n }", "@Override\n public void attachFragment(Fragment fragment) {\n\n this.playerFragment = fragment; // Attaches the playerFragment to this class.\n\n // If the service has disconnected, the SSMusicService is restarted.\n if (!serviceBound) {\n setUpAudioService(); // Sets up the SSMusicService.\n }\n\n // Attaches the SSPlayerFragment.\n else {\n musicService.attachPlayerFragment(fragment);\n }\n }", "public BackEndFragment() {\n }", "public void launchFragment(String str, Bundle bundle) {\n getFragmentManager().beginTransaction().replace(16908290, Fragment.instantiate(this, str, bundle)).commit();\n Log.i(TAG, String.format(\"Fragment %s Displayed\", new Object[]{str}));\n }", "private void attachFragment(String tag){\n floatingActionButton.hide();\n if (tag == null){\n return;\n }\n\n cache.setFragmentTAG(tag);\n fragmentTAG = tag;\n fragment = SelectDataTypeFragment.newInstance(tag);\n\n makeFragmentAttach();\n\n pageTitle = getString(utils.getPageTitleID(fragmentTAG));\n setPageTitle();\n }", "public void setComponentEditPart(Object componentEditPart) {\n\t\tthis.componentEditPart = componentEditPart;\n\t}", "private void defaultFragment() {\n\n Fragment fragment = new Helpline();\n FragmentManager fm = getFragmentManager();\n //TODO: try this with add\n fm.beginTransaction().replace(R.id.content_frame,fragment).commit();\n }", "@FragmentScope\n@Component(dependencies = AppComponent.class, modules = FragmentModule.class)\npublic interface FragmentComponent {\n\n Activity getActivity();\n\n void inject(SceneFragment sceneFragment);\n void inject(AmuseFragment amuseFragment);\n\n}", "public abstract Vector4fc setComponent(int component, float value);", "private void loadFragment(Fragment fragment){\n FragmentTransaction trans = getSupportFragmentManager().beginTransaction();\n trans.replace(R.id.frame_event, fragment);\n trans.commit();\n\n appbar.setExpanded(true);\n }", "void onFragmentInteraction(Object ref);", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public void setListener(final Fragment fragment, final AdvancedWebviewListener listener) {\n setListener(fragment, listener, REQUEST_CODE_FILE_PICKER);\n }" ]
[ "0.72012645", "0.68339914", "0.6833191", "0.6695322", "0.65257996", "0.64900506", "0.6470561", "0.6414226", "0.6398626", "0.6348027", "0.631835", "0.62476254", "0.62189025", "0.6217881", "0.6124751", "0.6058418", "0.6020609", "0.6002513", "0.59988123", "0.5987173", "0.5965355", "0.59359336", "0.5922523", "0.59113914", "0.5855939", "0.58474874", "0.58390677", "0.57933545", "0.5789643", "0.5781208", "0.57018846", "0.5685832", "0.5643988", "0.5629881", "0.56133705", "0.5612758", "0.55895334", "0.5555549", "0.5549352", "0.5538365", "0.55269784", "0.55260044", "0.55217063", "0.5519698", "0.55065644", "0.5505796", "0.5488634", "0.5484619", "0.5483758", "0.54565746", "0.54524755", "0.54387033", "0.54372257", "0.54348934", "0.54188585", "0.5397842", "0.53803504", "0.5371725", "0.5349718", "0.5348103", "0.53469455", "0.534174", "0.5330846", "0.53201437", "0.5286087", "0.52819806", "0.52746034", "0.5263671", "0.5252751", "0.5252751", "0.5231423", "0.5225043", "0.5223313", "0.5214788", "0.5203092", "0.5201679", "0.518875", "0.51770496", "0.51708525", "0.51698214", "0.5166146", "0.51645255", "0.5162837", "0.51599365", "0.5156998", "0.5154001", "0.5153232", "0.51522726", "0.5145779", "0.514258", "0.5142032", "0.51402533", "0.51387894", "0.51340854", "0.51322794", "0.5130776", "0.51246625", "0.51130635", "0.51065105", "0.51051193" ]
0.6107241
15
Get the DIDURL instance that created by this builder object. After build a DIDURL object from this Builder object, the builder still available with the same status that before call the build method.
public DIDURL build() { return url.deepClone(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setDid(DID did) {\n\t\t\turl.setDid(did);\n\t\t\treturn this;\n\t\t}", "public Builder(DID did) {\n\t\t\tthis(new DIDURL(did));\n\t\t}", "public Builder(DIDURL url) {\n\t\t\tthis.url = url.deepClone(false);\n\t\t}", "public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder getEndpointBuilder() {\n \n onChanged();\n return getEndpointFieldBuilder().getBuilder();\n }", "public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "@Nonnull protected StringBuilder doBuildURL(@Nonnull final StringBuilder builder) {\n return builder;\n }", "public Builder setDidUri(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public Builder setDidUriBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n deliveryMethodCase_ = 2;\n deliveryMethod_ = value;\n onChanged();\n return this;\n }", "public static LinkBuilder builder() {\n return new LinkBuilder();\n }", "public static DOMAXIDBuilder getInstance() {\n\n\t\tif (builder == null) {\n\t\t\tsynchronized (lockObj) {\n\t\t\t\tif (builder == null) {\n\t\t\t\t\tbuilder = new DOMAXIDBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn builder;\n\t}", "public entities.Torrent.DownloadRequest.Builder getDownloadRequestBuilder() {\n\n onChanged();\n return getDownloadRequestFieldBuilder().getBuilder();\n }", "public entities.Torrent.DownloadResponse.Builder getDownloadResponseBuilder() {\n\n onChanged();\n return getDownloadResponseFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder> \n getEndpointFieldBuilder() {\n if (endpointBuilder_ == null) {\n endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder>(\n getEndpoint(),\n getParentForChildren(),\n isClean());\n endpoint_ = null;\n }\n return endpointBuilder_;\n }", "public io.dstore.values.BooleanValue.Builder getDeleteCampaignBuilder() {\n \n onChanged();\n return getDeleteCampaignFieldBuilder().getBuilder();\n }", "public static DeviceIdentifierBuilder builder() {\n return new DeviceIdentifierBuilder();\n }", "public teledon.network.protobuffprotocol.TeledonProtobufs.Donatie.Builder getDonatieBuilder() {\n\n onChanged();\n return getDonatieFieldBuilder().getBuilder();\n }", "public Device build() {\n return new Device(name, active);\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.EndpointInfo,\n com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder>\n getEndpointFieldBuilder() {\n if (endpointBuilder_ == null) {\n if (!(stepInfoCase_ == 8)) {\n stepInfo_ = com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance();\n }\n endpointBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.EndpointInfo,\n com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder>(\n (com.google.cloud.networkmanagement.v1beta1.EndpointInfo) stepInfo_,\n getParentForChildren(),\n isClean());\n stepInfo_ = null;\n }\n stepInfoCase_ = 8;\n onChanged();\n return endpointBuilder_;\n }", "public com.google.protobuf.StringValue.Builder getProfilePictureUrlBuilder() {\n \n onChanged();\n return getProfilePictureUrlFieldBuilder().getBuilder();\n }", "public Builder clearUrl() {\n copyOnWrite();\n instance.clearUrl();\n return this;\n }", "public Builder clearUrl() {\n copyOnWrite();\n instance.clearUrl();\n return this;\n }", "public Builder clearUrl() {\n \n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "public Builder clearUrl() {\n \n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "public Builder clearUrl() {\n\n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static DIDURL valueOf(DID context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(context, url);\n\t}", "public Builder clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000004);\n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString\n getDidUriBytes();", "public io.dstore.values.IntegerValue.Builder getActiveBuilder() {\n \n onChanged();\n return getActiveFieldBuilder().getBuilder();\n }", "public Builder clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000001);\n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "public Builder clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000002);\n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getUrlBytes() {\n return instance.getUrlBytes();\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getUrlBytes() {\n return instance.getUrlBytes();\n }", "public teledon.network.protobuffprotocol.TeledonProtobufs.Donatie.Builder getDonatieBuilder() {\n return getDonatieFieldBuilder().getBuilder();\n }", "com.github.terefang.jldap.ldap.LDAPUrl getWrappedObject()\n {\n return url;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> \n getProfilePictureUrlFieldBuilder() {\n if (profilePictureUrlBuilder_ == null) {\n profilePictureUrlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(\n getProfilePictureUrl(),\n getParentForChildren(),\n isClean());\n profilePictureUrl_ = null;\n }\n return profilePictureUrlBuilder_;\n }", "public com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder getEndpointBuilder() {\n return getEndpointFieldBuilder().getBuilder();\n }", "public DIDURL(DID context, DIDURL url) {\n\t\tcheckArgument(context != null || url != null, \"Invalid context and url\");\n\n\t\tif (context != null)\n\t\t\tthis.did = context;\n\n\t\tif (url != null) {\n\t\t\tif (url.did != null)\n\t\t\t\tthis.did = url.did;\n\t\t\tthis.path = url.path;\n\t\t\tthis.query = url.query;\n\t\t\tthis.queryString = url.queryString;\n\t\t\tthis.fragment = url.fragment;\n\t\t\tthis.repr = url.repr;\n\t\t\tthis.metadata = url.metadata;\n\t\t} else {\n\t\t\tthis.query = Collections.emptyMap();\n\t\t}\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n teledon.network.protobuffprotocol.TeledonProtobufs.Donatie, teledon.network.protobuffprotocol.TeledonProtobufs.Donatie.Builder, teledon.network.protobuffprotocol.TeledonProtobufs.DonatieOrBuilder>\n getDonatieFieldBuilder() {\n if (donatieBuilder_ == null) {\n if (!(payloadCase_ == 5)) {\n payload_ = teledon.network.protobuffprotocol.TeledonProtobufs.Donatie.getDefaultInstance();\n }\n donatieBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n teledon.network.protobuffprotocol.TeledonProtobufs.Donatie, teledon.network.protobuffprotocol.TeledonProtobufs.Donatie.Builder, teledon.network.protobuffprotocol.TeledonProtobufs.DonatieOrBuilder>(\n (teledon.network.protobuffprotocol.TeledonProtobufs.Donatie) payload_,\n getParentForChildren(),\n isClean());\n payload_ = null;\n }\n payloadCase_ = 5;\n onChanged();;\n return donatieBuilder_;\n }", "public Builder clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000001);\n url_ = getDefaultInstance().getUrl();\n onChanged();\n return this;\n }", "public static DIDURL valueOf(String context, String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(DID.valueOf(context), url);\n\t}", "public com.google.protobuf.StringValue.Builder getDistrictBuilder() {\n \n onChanged();\n return getDistrictFieldBuilder().getBuilder();\n }", "public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}", "public URL getURL() {\r\n try {\r\n return new URL(\"http://www.bluej.org/doc/writingextensions.html\");\r\n } catch (Exception eee) {\r\n // The link is either dead or otherwise unreachable\r\n System.out.println(\"Simple extension: getURL: Exception=\" + eee.getMessage());\r\n return null;\r\n }\r\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public UUID getBaseBuilderUUID() {\n\t\treturn baseBuilder;\n\t}", "public Builder clearBookingURL() {\n \n bookingURL_ = getDefaultInstance().getBookingURL();\n onChanged();\n return this;\n }", "public io.lightcone.data.types.AccountID.Builder getWalletIdBuilder() {\n \n onChanged();\n return getWalletIdFieldBuilder().getBuilder();\n }", "private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}", "public Builder clearDidUri() {\n if (deliveryMethodCase_ == 2) {\n deliveryMethodCase_ = 0;\n deliveryMethod_ = null;\n onChanged();\n }\n return this;\n }", "public phaseI.Hdfs.DataNodeLocation.Builder getLocationBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getLocationFieldBuilder().getBuilder();\n }", "public static Builder builder(){ return new Builder(); }", "public io.dstore.values.IntegerValue.Builder getCampaignIdBuilder() {\n \n onChanged();\n return getCampaignIdFieldBuilder().getBuilder();\n }", "public io.dstore.values.IntegerValue.Builder getCampaignIdBuilder() {\n \n onChanged();\n return getCampaignIdFieldBuilder().getBuilder();\n }", "public teledon.network.protobuffprotocol.TeledonProtobufs.Donator.Builder getDonatorBuilder() {\n\n onChanged();\n return getDonatorFieldBuilder().getBuilder();\n }", "public String getTargetUrl() {\n return targetUrl;\n }", "public static DIDURL valueOf(String url) throws MalformedDIDURLException {\n\t\treturn (url == null || url.isEmpty()) ? null : new DIDURL(url);\n\t}", "public com.bingo.server.msg.REQ.DdzConfirmRuleRequest.Builder getDdzConfirmRuleBuilder() {\n \n onChanged();\n return getDdzConfirmRuleFieldBuilder().getBuilder();\n }", "public String statusUrl() {\n return this.statusUrl;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> \n getStatusFieldBuilder() {\n if (statusBuilder_ == null) {\n statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>(\n getStatus(),\n getParentForChildren(),\n isClean());\n status_ = null;\n }\n return statusBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder> \n getStatusFieldBuilder() {\n if (statusBuilder_ == null) {\n statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.clarifai.grpc.api.status.Status, com.clarifai.grpc.api.status.Status.Builder, com.clarifai.grpc.api.status.StatusOrBuilder>(\n getStatus(),\n getParentForChildren(),\n isClean());\n status_ = null;\n }\n return statusBuilder_;\n }", "static Builder builder() {\n return new Builder();\n }", "public Builder setEndpoint(\n io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder builderForValue) {\n if (endpointBuilder_ == null) {\n endpoint_ = builderForValue.build();\n onChanged();\n } else {\n endpointBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadRequest, entities.Torrent.DownloadRequest.Builder, entities.Torrent.DownloadRequestOrBuilder>\n getDownloadRequestFieldBuilder() {\n if (downloadRequestBuilder_ == null) {\n downloadRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadRequest, entities.Torrent.DownloadRequest.Builder, entities.Torrent.DownloadRequestOrBuilder>(\n getDownloadRequest(),\n getParentForChildren(),\n isClean());\n downloadRequest_ = null;\n }\n return downloadRequestBuilder_;\n }", "@Nonnull public String getURL() {\n return url;\n }", "public PersonAddressBuilderDFB lives(){\n return new PersonAddressBuilderDFB(person);\n }", "public com.google.openrtb.OpenRtb.BidRequest.Builder getRequestBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }", "public Builder setBookingURLBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n bookingURL_ = value;\n onChanged();\n return this;\n }", "public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\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 (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n }\n }", "public com.google.openrtb.OpenRtb.BidRequest.Builder getBidrequestBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBidrequestFieldBuilder().getBuilder();\n }", "Object getBuilderObject() {\n if (isBuilt) {\n throw new YobException(E_OBJ_IS_ALREADY_BUILT_NOT_FETCH);\n }\n\n if (builderOrBuiltObject == null) {\n throw new YobException(E_BUILDER_IS_NOT_SET);\n }\n\n return builderOrBuiltObject;\n }", "public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.Builder getDestinationBuilder() {\n \n onChanged();\n return getDestinationFieldBuilder().getBuilder();\n }", "public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() {\n \n onChanged();\n return getStatusFieldBuilder().getBuilder();\n }", "public com.clarifai.grpc.api.status.Status.Builder getStatusBuilder() {\n \n onChanged();\n return getStatusFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n teledon.network.protobuffprotocol.TeledonProtobufs.Donator, teledon.network.protobuffprotocol.TeledonProtobufs.Donator.Builder, teledon.network.protobuffprotocol.TeledonProtobufs.DonatorOrBuilder>\n getDonatorFieldBuilder() {\n if (donatorBuilder_ == null) {\n if (!(payloadCase_ == 3)) {\n payload_ = teledon.network.protobuffprotocol.TeledonProtobufs.Donator.getDefaultInstance();\n }\n donatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n teledon.network.protobuffprotocol.TeledonProtobufs.Donator, teledon.network.protobuffprotocol.TeledonProtobufs.Donator.Builder, teledon.network.protobuffprotocol.TeledonProtobufs.DonatorOrBuilder>(\n (teledon.network.protobuffprotocol.TeledonProtobufs.Donator) payload_,\n getParentForChildren(),\n isClean());\n payload_ = null;\n }\n payloadCase_ = 3;\n onChanged();;\n return donatorBuilder_;\n }", "public io.dstore.values.IntegerValue.Builder getUnitIdBuilder() {\n \n onChanged();\n return getUnitIdFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n teledon.network.protobuffprotocol.TeledonProtobufs.Donatie, teledon.network.protobuffprotocol.TeledonProtobufs.Donatie.Builder, teledon.network.protobuffprotocol.TeledonProtobufs.DonatieOrBuilder>\n getDonatieFieldBuilder() {\n if (donatieBuilder_ == null) {\n donatieBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n teledon.network.protobuffprotocol.TeledonProtobufs.Donatie, teledon.network.protobuffprotocol.TeledonProtobufs.Donatie.Builder, teledon.network.protobuffprotocol.TeledonProtobufs.DonatieOrBuilder>(\n getDonatie(),\n getParentForChildren(),\n isClean());\n donatie_ = null;\n }\n return donatieBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadResponse, entities.Torrent.DownloadResponse.Builder, entities.Torrent.DownloadResponseOrBuilder>\n getDownloadResponseFieldBuilder() {\n if (downloadResponseBuilder_ == null) {\n downloadResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.DownloadResponse, entities.Torrent.DownloadResponse.Builder, entities.Torrent.DownloadResponseOrBuilder>(\n getDownloadResponse(),\n getParentForChildren(),\n isClean());\n downloadResponse_ = null;\n }\n return downloadResponseBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.AccountID, io.lightcone.data.types.AccountID.Builder, io.lightcone.data.types.AccountIDOrBuilder> \n getWalletIdFieldBuilder() {\n if (walletIdBuilder_ == null) {\n walletIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n io.lightcone.data.types.AccountID, io.lightcone.data.types.AccountID.Builder, io.lightcone.data.types.AccountIDOrBuilder>(\n getWalletId(),\n getParentForChildren(),\n isClean());\n walletId_ = null;\n }\n return walletIdBuilder_;\n }", "public java.lang.String getDID() {\r\n return DID;\r\n }", "public io.dstore.values.StringValue.Builder getCampaignDescriptionBuilder() {\n \n onChanged();\n return getCampaignDescriptionFieldBuilder().getBuilder();\n }", "public sparqles.avro.discovery.DGETInfo.Builder clearURL() {\n URL = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.Builder getProtocolBuilder() {\n \n onChanged();\n return getProtocolFieldBuilder().getBuilder();\n }", "public io.dstore.values.IntegerValue.Builder getForumIdBuilder() {\n \n onChanged();\n return getForumIdFieldBuilder().getBuilder();\n }", "public HttpUrl url() {\n return url;\n }", "public com.uzak.inter.bean.test.TestRequest.TestBeanRequest.Builder getRequestBuilder() {\n \n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }", "public google.maps.fleetengine.v1.TripWaypoint.Builder getCurrentRouteSegmentEndPointBuilder() {\n \n onChanged();\n return getCurrentRouteSegmentEndPointFieldBuilder().getBuilder();\n }", "public com.google.cloud.datafusion.v1beta1.NetworkConfig.Builder getNetworkConfigBuilder() {\n bitField0_ |= 0x00000040;\n onChanged();\n return getNetworkConfigFieldBuilder().getBuilder();\n }", "public Builder setPaymentUrlBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setPaymentUrlBytes(value);\n return this;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getPaymentUrlBytes() {\n return instance.getPaymentUrlBytes();\n }", "public io.dstore.values.BooleanValue.Builder getDeleteCharacteristicBuilder() {\n \n onChanged();\n return getDeleteCharacteristicFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificateOuterClass.Certificate.Builder getCertificateBuilder() {\n \n onChanged();\n return getCertificateFieldBuilder().getBuilder();\n }", "public Builder setUrlBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setUrlBytes(value);\n return this;\n }" ]
[ "0.6209893", "0.55939835", "0.5525003", "0.5341805", "0.5242124", "0.5242124", "0.5242124", "0.5168875", "0.5168875", "0.5168875", "0.51365876", "0.51270354", "0.5060698", "0.5035887", "0.5024402", "0.5010817", "0.495868", "0.49516088", "0.49232158", "0.4919206", "0.4916368", "0.49140045", "0.49017596", "0.48982155", "0.48944584", "0.48944584", "0.48792836", "0.48792836", "0.4861501", "0.48342147", "0.4795822", "0.47673032", "0.47624886", "0.47616497", "0.47190806", "0.47177994", "0.47115636", "0.47115636", "0.47106248", "0.47008136", "0.4699034", "0.46812373", "0.46770954", "0.46714687", "0.46588638", "0.46583578", "0.46579537", "0.4646169", "0.4643965", "0.46220222", "0.46016398", "0.45951188", "0.4594614", "0.45937654", "0.45919302", "0.4586643", "0.45814177", "0.4572172", "0.4572172", "0.4570614", "0.45696247", "0.4558848", "0.45571876", "0.4551065", "0.4543337", "0.4543337", "0.45329925", "0.45299986", "0.4526419", "0.45264035", "0.4519188", "0.45161316", "0.45130008", "0.45123574", "0.44982356", "0.44867128", "0.44866386", "0.44849613", "0.44849613", "0.4483684", "0.44786698", "0.4474667", "0.44724563", "0.44670904", "0.4465488", "0.4457241", "0.44559294", "0.44554162", "0.44554162", "0.44485503", "0.4447676", "0.44472146", "0.4447081", "0.44436875", "0.4436465", "0.4431356", "0.44311368", "0.44277743", "0.44252095", "0.44236195" ]
0.71090055
0
NOTE: IT IS IMPORTANT THAT THIS IS IMPLEMENTED IN THE LOOP FUNCTION OF THE OPMODE
public void Loop() { //if the drive mode is encoders then mirror the rear motors so that we just use the encoders of the front motors if(driveMode == DriveMode.Run_With_Encoders){ rearLeftDrive.setVelocity(frontLeftDrive.getVelocity()); rearRightDrive.setVelocity(frontRightDrive.getVelocity()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "private void closedLoopAlgo() {\n\t\tsimonsSimpleAlgo();\n\t}", "private void outer_loop( int max_bits,\n\t\t\tint ix[], /* vector of frequency values */\n\t\t\tint gr, int ch, SideInfoEnc side_info ) {\n\n\t\tint bits = 0;\n\t\tEChannel cod_info = side_info.gr[gr].ch[ch];\n\n\t\tcod_info.part2_length = part2_length(gr,ch,side_info);\n\t\tbits = inner_loop( ix, cod_info, max_bits );\n\t\t// cod_info.part2_3_length = cod_info.part2_length + bits;\n\n\t}", "public void advance()\n\t{\n\t\t//calling copy function\n\t\tcopy(); \n\t\t//for loop for row \n\t\tfor(int row =0; row<this.currentVersion.length; row++)\n\t\t{\t//for loop for column\n\t\t\tfor(int column =0; column<this.currentVersion[row].length; column++)\n\t\t\t{\n\t\t\t\t//if statements to implement 2D CA rules\n\t\t\t\tif (column == 0 && row == 0)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row+1][column] == currentVersion[row][column] + 1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column];\n\t\t\t\t\telse if(currentVersion[row][column+1] == currentVersion[row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column +1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif (row == 0 && column == currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row][column - 1] == currentVersion[row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column - 1];\n\t\t\t\t\telse if (currentVersion[row+1][column] == currentVersion [row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif (row == 0 && column > 0 && column < currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row][column-1] == currentVersion[row][column] + 1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column-1];\n\t\t\t\t\telse if(currentVersion[row+1][column] == currentVersion[row][column] + 1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column];\n\t\t\t\t\telse if(currentVersion[row][column+1] == currentVersion[row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column+1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif (row == currentVersion.length-1 && column == 0)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row-1][column] == currentVersion[row][column] + 1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row -1][column]; \n\t\t\t\t\telse if(currentVersion[row][column+1] == currentVersion[row][column] + 1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column+1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif (row > 0 && column ==0 && row < currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row+1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column];\n\t\t\t\t\tif(currentVersion[row][column+1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column+1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif(row == currentVersion.length-1 && column == currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row-1][column] == currentVersion[row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row-1][column];\n\t\t\t\t\telse if(currentVersion[row][column-1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column-1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(row == currentVersion.length-1 && column > 0 && column < currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row-1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row-1][column];\n\t\t\t\t\telse if(currentVersion[row][column-1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column-1]; \n\t\t\t\t\telse if(currentVersion[row][column+1] == currentVersion[row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column+1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\t\n\t\t\t\tif(row>0 && row < currentVersion.length-1 && column == currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif (currentVersion[row-1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row-1][column];\n\t\t\t\t\telse if(currentVersion[row+1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column]; \n\t\t\t\t\telse if(currentVersion[row][column-1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column-1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif(row>0 && row < currentVersion.length-1 && column > 0 && column < currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif (currentVersion[row-1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row-1][column];\n\t\t\t\t\telse if(currentVersion[row+1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column]; \n\t\t\t\t\telse if(currentVersion[row][column-1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column-1];\n\t\t\t\t\telse if(currentVersion[row][column+1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column+1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0;\n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t//passing new nextVersion array to currentVersion array\n\tsetUniverse(nextVersion);\n\t}", "private static void test() {\n\t\tint i = 0;\n\t\tArrays.fill(arr, -1);\n\t\tarr[++i] = 0;\n\t\tprintArray(arr);\n\t\ti = 0;\n\t\tArrays.fill(arr, -1);\n\t\tarr[i++] = 0;\n\t\tprintArray(arr);\n\t\t\n\t}", "public boolean eliminateLoop(){ return false; }", "public int getIteration();", "public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }", "private boolean next(int[] elements) {\n for (int i = 0; i < elements.length; i++) {\n elements[i]++;\n if (elements[i] == universeSize) {\n elements[i] = 0;\n } else {\n return true;\n }\n }\n return false;\n }", "public boolean foundLoop();", "public void loop(){\n\t\t\n\t}", "@Override public void init_loop() {\n loop_cnt_++;\n }", "@Override\n\t\tpublic void reset(int iteration) {\n\t\t\t\n\t\t}", "@Override \n protected void engineUpdate(byte[] input, int offset, int len) {\n for (int index = offset; index < offset + len; index++) \n engineUpdate(input[index]); \n }", "@Override\n\tpublic void reset(int iteration) {\n\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "@Override\n public void loop()\n {\n }", "abstract int[] crossOver();", "@Override\n\tpublic void algorithm() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\t\n\t\tint change = 2;\n\t\t\n\t\tfor(int i=0; i<this.getGridGame().getGridRow(); i++) {\n\t\t\t\n\t\t\tfor(int j=0; j<this.getGridGame().getGridCol(); j++) {\n\t\t\t\t\n\t\t\t\tif(j > 0 && j < this.getGridGame().getGridCol()) {\n\t\t\t\t\t\n\t\t\t\t\tif(this.getGridGame().getPattern(i,j-1) != this.getGridGame().getPattern(i,j)) {\n\t\t\t\t\t\n\t\t\t\t\t\tchange--;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(change > 0) {\n\t\t\t\t\t\n\t\t\t\t\tthis.getArray()[i][0] += this.getGridGame().getPattern(i,j);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tthis.getArray()[i][1] += this.getGridGame().getPattern(i,j);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(change + \" \");\n\t\t\tchange = 2;\n\t\t\t\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0; i<this.getGridGame().getGridRow(); i++) {\n\t\t\t\n\t\t\tif(this.getArray()[i][1] == 0) {\n\t\t\t\t\n\t\t\t\tthis.getArray()[i][1] = this.getArray()[i][0];\n\t\t\t\tthis.getArray()[i][0] = 0;\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0; i<this.getGridGame().getGridRow(); i++) {\n\t\t\t\n\t\t\tfor(int j=0; j<2; j++) {\n\t\t\t\n\t\t\t\tSystem.out.print(this.getArray()[i][j] + \" \");\n\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t\t\n\t\t}\n\t\t\n\t\n\t}", "protected abstract void recombineNext();", "@Override\n protected void runOneIteration() throws Exception {\n }", "static void findI1s(final int length, int[] B) {\r\n\t final long max = 1 << length;\r\n\t for (long i = 0; i < max; i++) {\r\n\t long currentNumber = i;\r\n\t final int[] buffer = new int[length];\r\n\t boolean[] I1 = new boolean[length]; // I1 to be passed to next method\r\n\t int bufferPosition = buffer.length;\r\n\t while (bufferPosition > 0) {\r\n\t buffer[--bufferPosition] = (int) (currentNumber & 1);\r\n\t currentNumber >>>= 1;\r\n\t }\r\n\t for(int x = 0; x < buffer.length; x++) {\r\n\t \tif(buffer[x] == 1) {\r\n\t \t\tI1[x] = true;\r\n\t \t}\r\n\t \telse {\r\n\t \t\tI1[x] = false;\r\n\t \t}\r\n\t \tSystem.out.print(buffer[x]);\r\n\t }\r\n\t\t System.out.println();\r\n\t }\r\n\t}", "private void iterativeDataPropertyMetrics() {\n\t}", "public OpIterator iterator() {\n // some code goes here\n // throw new\n // UnsupportedOperationException(\"please implement me for lab2\");\n return new InterAggrIterator();\n }", "private void fletcher_loop(){\r\n\t\tfor(; i.getPosition() < array1.getLength(); i.increment(null, duration)){\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(2,3);\r\n\t\t\tshowCalc_1(sum1.get(), array1.getData(i.getPosition()));\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum1.add(array1.getData(i.getPosition())); sum1.mod(255); sum1.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(3,4);\r\n\t\t\tsum1.switchHighlight(); \r\n\t\t\tshowCalc_1(sum2.get(), sum1.get());\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum2.add(sum1.get()); sum2.mod(255); sum2.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsum2.switchHighlight();\r\n\t\t\tsc.toggleHighlight(4,2);\r\n\t\t}\r\n\t}", "protected boolean advance()\n/* */ {\n/* 66 */ while (++this.m_offset < this.m_array.length) {\n/* 67 */ if (this.m_array[this.m_offset] != null) {\n/* 68 */ return true;\n/* */ }\n/* */ }\n/* 71 */ return false;\n/* */ }", "ForLoopRule createForLoopRule();", "public boolean iterate() {\n\t\tupdated = false;\n//\t\tSystem.out.println(\"QN iterations \"+iterations);\n\t\tif( mode == 0 ) {\n\t\t\treturn computeSearchDirection();\n\t\t} else {\n\t\t\treturn performLineSearch();\n\t\t}\n\t}", "@Override\n public void loop() {\n\n }", "@Override\n public void loop() {\n\n }", "private void sampleOfTheGeneratedWindowedAggregate() {\n Iterator<Integer[]> iterator = null;\n\n // builder3\n Integer[] rows = iterator.next();\n\n int prevStart = -1;\n int prevEnd = -1;\n\n for ( int i = 0; i < rows.length; i++ ) {\n // builder4\n Integer row = rows[i];\n\n int start = 0;\n int end = 100;\n if ( start != prevStart || end != prevEnd ) {\n // builder5\n int actualStart = 0;\n if ( start != prevStart || end < prevEnd ) {\n // builder6\n // recompute\n actualStart = start;\n // implementReset\n } else { // must be start == prevStart && end > prevEnd\n actualStart = prevEnd + 1;\n }\n prevStart = start;\n prevEnd = end;\n\n if ( start != -1 ) {\n for ( int j = actualStart; j <= end; j++ ) {\n // builder7\n // implementAdd\n }\n }\n // implementResult\n // list.add(new Xxx(row.deptno, row.empid, sum, count));\n }\n }\n // multiMap.clear(); // allows gc\n // source = Linq4j.asEnumerable(list);\n }", "@Override\n public void visit(LoopControlNode loopControlNode) {\n }", "public void loop(){\n \n \n }", "private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}", "private int advance(int[] n, int i) {\n i += n[i];\n i%=len;\n while (i<0) i+=len;\n return i;\n }", "@Override public void loop () {\n }", "@Override public void loop() {\n }", "protected boolean iterate()\n {\n switch (stoCri)\n {\n case 1:\n if (isDFltdFMin()) return false;\n // continue to check the maximum number of iteration\n default:\n return (nIntRed == nIntRedMax) ? false : true;\n }\n }", "static void core_state_transition_loop(ShortWrapper p, byte[] memblock, int[] track_counts, int[] final_counts) {\n\t\twhile (memblock[p.value]!=0) {\n\t\t\tbyte fstate=core_state_transition(p,memblock,track_counts);\n\t\t\tfinal_counts[fstate]++;\n\t\t}\n\t}", "public abstract void completeIteration();", "private static void drukaf()\n\t{\n\t\tint a;\n\t\tint oplossing;\n\t\tfor(a=1; a<10; a++)\n\t\t{\n\t\t\tint b;\n\t\t\tfor(b=1; b<10; b++)\n\t\t\t{\n\t\t\t\toplossing = a*b;\n\t\t\t\tSystem.out.println(a + \" x \" + b + \" = \" + oplossing);\n\t\t\t}\t\n\t\t}\n\t}", "public void testF() {\n\t\tfor (int k = 0; k < usedSS; k++) {\n\t\t\tList<Integer> subStr = vals.subList(k*compSize, (k+1)*compSize);\n\t\t\tint sum = (int) subStr.stream().filter(i -> i != BipartiteMatching.FREE).count();\n\t\t\tfData.add(sum);\t\t\t\n\t\t}\n\t}", "private int elementNC(int i) {\n return first + i * stride;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}", "public void nextIteration() {t++;}", "public void inOrderTraverseIterative();", "protected void runBeforeIteration() {}", "public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }", "IEmpleado next();", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmLc.iterate() ;\n\t\t\t\t}", "Boolean incremental();", "public boolean isLoopMode();", "public void loop(){\n\t}", "public void iterate() {\n\n\t\tArrayList<int[]> pts = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < POINTS_PER_ITER; i++) {\n\t\t\tint x = Window.mathRandom.nextInt(width);\n\t\t\tint y = Window.mathRandom.nextInt(width);\n\t\t\tpts.add(new int[] { x, y });\n\t\t}\n\n\t\tint[] bestPoint = new int[] {};\n\t\tdouble maxDist = 0;\n\t\tfor (int[] point : pts) {\n\t\t\tdouble dist = getDistFromOthers(point);\n\t\t\tif (dist > maxDist) {\n\t\t\t\tmaxDist = dist;\n\t\t\t\tbestPoint = point;\n\t\t\t}\n\t\t}\n\t\tif (check(bestPoint)) {\n\t\t\tpoints.add(bestPoint);\n\t\t} else {\n\t\t\tremainingPoints += 1;\n\t\t}\n\t}", "public int[][] iterate()\n {\n Random r = new Random();\n for (int i = 0; i < buffersize; i++) {\n if (unprocessed.isEmpty()) \n {\n finished = true;\n break;\n }\n int randomIndex = r.nextInt(unprocessed.size());\n nodemap.changeColor(unprocessed.get(randomIndex), 1);\n unprocessed.remove(randomIndex);\n }\n return nodemap.getIntMap();\n }", "private int advanceFeature(ArrayList<byte[]> lines){\n\t\tfor(num++; num<lines.size(); num++){\n\t\t\tbyte[] line=lines.get(num);\n\t\t\tif(line!=null && line.length>0 && (line[0]!=' ' || line[5]!=' ')){break;}\n\t\t}\n\t\treturn num;\n\t}", "public void loop() {\n this.instructionList.restart();\t\n }", "@Test\r\n\tpublic void testArrayPos(){\n\t\tfor(int y=0;y<5;y++){\r\n\t\t\tfor(int x=0;x<5;x++){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static Object[] m59444a(Iterable<?> iterable, Object[] objArr) {\n int i = 0;\n for (Object obj : iterable) {\n int i2 = i + 1;\n objArr[i] = obj;\n i = i2;\n }\n return objArr;\n }", "@Test\n public void loopTest() {\n Object[] resultActual = new Object[] {this.work1, this.work2, this.work3, this.work4};\n Object[] resultExpected = new Object[4];\n int index = 0;\n while (this.it.hasNext()) {\n resultExpected[index++] = this.it.next();\n }\n assertThat(resultActual, is(resultExpected));\n }", "public static void main(String[] args) {\n\r\n for (int x = 1; x < 10; x++) {// x=1\r\n\r\n for (int h = 1; h < 10; h++) { // h=1+1+1...8+1\r\n\r\n System.out.println(x + \"*\" + h \"=\" +x*h);// 1-2-3....8-9\r\n\r\n if(h==2){\r\n break;\r\n }\r\n }\r\n\r\n if(x==4){\r\n continue;\r\n }\r\n\r\n }\r\n\r\n }", "public abstract GF2nElement increase();", "void mo21050ml(int i);", "public void resetIteration(){\n\t\titeration = 0;\n\t}", "@Override\n\tpublic int getRepeatMode()\n\t{\n\t\treturn 0;\n\t}", "@Override\n\tpublic void run() {\n\t\tresult =\n\t\t\tStream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]})\n\t\t\t\t.limit(limit)\n\t\t\t\t.map(n -> n[0])\n\t\t\t\t.collect(toList());\n\n\t}", "public static void main(String[]args){\n\r\n int []arr = new int[100];\r\n int []arr2 = new int[50];\r\n int []arr3 = {1,2,3,4,5,6,7,8};\r\n int number = 5;\r\n LogicalOp op = new LogicalOp();\r\n// op.writeOnArray(arr);\r\n\r\n// arr2 = op.evenArray(arr2);\r\n// for(int i=0;i<arr2.length;i++)\r\n// System.out.println(arr2[i]);\r\n\r\n //System.out.println(\"Mean value: \"+op.meanValue(arr3));\r\n\r\n// String[] arrOfStr = {\"ana\",\"are\",\"mere\",\"pere\",\"mere\"};\r\n// String str = \"mere\";\r\n// System.out.println(op.isContaingString(arrOfStr,str));\r\n\r\n// System.out.println(op.findPosition(arr3,number));\r\n\r\n //op.displayLines();\r\n\r\n// int[]modifArr = op.modifiedArr(arr3,number);\r\n// for(int item: modifArr)\r\n// System.out.print(item+\" \");\r\n\r\n\r\n //System.out.println(\"Second minimum: \"+op.secondMin(arr3));\r\n\r\n int[] empty = new int[arr3.length];\r\n empty = op.populateArray(arr3,empty);\r\n for(int item:empty)\r\n System.out.print(item+\" \");\r\n\r\n\r\n\r\n }", "public static void main(String[] args) throws IOException {\n File file = new File(\"input.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n String line;\n String [] tokens;\n int accumulator = 0;\n String operation;\n int argument;\n int index;\n int goestoIndex;\n Set<Integer> doneIndex = new HashSet<>(); \n Stack<Integer> loopIndex = new Stack<Integer>();\n ArrayList<Node> instructions = new ArrayList<>();\n\n\n // Read lines to an Array\n while( (line = br.readLine()) != null ){\n tokens = line.split(\" \");\n instructions.add(new Node(tokens[0], Integer.parseInt(tokens[1])));\n }\n\n int instructionsSize = instructions.size();\n\n\n // Find the index of operation to change\n for( index = instructionsSize-1; index>=0; index--){\n operation = instructions.get(index).operation;\n argument = instructions.get(index).argument;\n if(operation.equals(\"jmp\") && argument<0){\n loopIndex.push(index);\n }\n if(operation.equals(\"jmp\") && argument>0){\n goestoIndex = index+argument;\n while ( !loopIndex.empty() ){\n System.out.println(loopIndex);\n System.out.println(loopIndex.peek());\n System.out.println(goestoIndex);\n if(loopIndex.peek() >= goestoIndex) break;\n loopIndex.pop();\n }\n }\n }\n\n System.out.println(loopIndex);\n\n\n if(loopIndex.size() == 1){\n instructions.set(loopIndex.peek(), new Node(\"nop\", instructions.get(loopIndex.peek()).argument));\n }\n else{\n int minIndex = loopIndex.empty() ? 0 : loopIndex.pop();\n int maxIndex = minIndex;\n while (!loopIndex.empty()){\n maxIndex = loopIndex.pop();\n }\n for( index = maxIndex; index >=0; index--){\n operation = instructions.get(index).operation;\n argument = instructions.get(index).argument;\n if(operation.equals(\"nop\") && argument+index > maxIndex){\n instructions.set(index, new Node(\"jmp\", instructions.get(index).argument));\n break;\n }\n }\n }\n\n\n index = 0; \n\n while( !doneIndex.contains(index)){\n // System.out.println(index);\n if (index > instructionsSize-1 ) break;\n doneIndex.add(index);\n operation = instructions.get(index).operation;\n argument = instructions.get(index).argument;\n\n if(operation.equals(\"acc\")){\n accumulator = accumulator + argument;\n index = index + 1;\n }\n else if(operation.equals(\"nop\")){\n index = index + 1;\n }\n else if(operation.equals(\"jmp\")){\n index = index + argument;\n }\n }\n System.out.println(index);\n System.out.println(accumulator);\n br.close();\n\n }", "@Test\n public void testKMP() {\n\n int[] next = getNextArr(modeStr);\n ////int[] next = getNext2(modeStr);\n ////int[] next = getNext(modeStr);\n log.info(JSON.toJSONString(next));\n\n final char[] charArr = mainStr.toCharArray();\n final char[] modeCharArr = modeStr.toCharArray();\n final int charLen = charArr.length;\n final int modeCharLen = modeCharArr.length;\n int match = 0;\n int compareCount = 0;\n for (int i = 0; i < charLen - modeCharLen +1; ) {\n int offset = 1;\n for (int j = 0, startIndex = i; j < modeCharLen; j++) {\n int indexToBeMoved = next[j];\n compareCount++;\n log.info(\"{}与{}比较\", modeCharArr[j], charArr[startIndex]);\n if (charArr[startIndex] == modeCharArr[j]) {\n match++;\n startIndex++;\n if (match == modeCharLen) {\n //计算最终串的初始下标\n int initIndex = (--startIndex) - (modeCharLen - 1);\n log.info(\"找到下标【\" + initIndex + \"】,值为【\" + charArr[initIndex] + \"】\");\n log.info(\"比较次数:{}\", compareCount);\n return;\n }\n } else if (indexToBeMoved == -1) {\n startIndex++;\n match = 0;\n break;\n } else if (indexToBeMoved >= 0) {\n //log.error(\"记录下标{}\",i+match);\n offset = (modeCharLen - indexToBeMoved - 1);\n offset = offset > (charLen - modeCharLen) ? 1 : offset;\n match = 0;\n break;\n }\n }\n i += offset;\n }\n }", "BasicSet NextLClosure(BasicSet M,BasicSet A){\r\n\t\t//ConceptLattice cp=new ConceptLattice(context);\r\n\t\t//ApproximationSimple ap=new ApproximationSimple(cp);\r\n\t\tMap <String,Integer> repbin=this.RepresentationBinaire(M);\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tSet<String> key=repbin.keySet();\r\n\t\tObject[] items= key.toArray();\r\n\r\n\t\t/* on recupere la position i qui correspond a la derniere position de M*/\r\n\t\tint i=M.size()-1;\r\n\t\tboolean success=false;\r\n\t\tBasicSet plein=new BasicSet();\r\n\t\tVector <String> vv=context.getAttributes();\r\n\t\tplein.addAll(vv);\r\n\r\n\r\n\t\twhile(success==false ){\t\t\r\n\r\n\t\t\tString item=items[i].toString();\r\n\r\n\t\t\tif(!A.contains(item)){\t\r\n\r\n\t\t\t\t/* Ensemble contenant item associe a i*/\r\n\t\t\t\tBasicSet I=new BasicSet();\r\n\t\t\t\tI.add(item);\r\n\r\n\t\t\t\t/*A union I*/\t\r\n\t\t\t\tA=A.union(I);\r\n\t\t\t\tBasicSet union=(BasicSet) A.clone();\r\n\t\t\t\t//System.out.println(\" union \"+union);\r\n\r\n\t\t\t\t//fermes.add(union);\r\n\r\n\t\t\t\tfermes.add(union);\r\n\r\n\r\n\t\t\t\t/* Calcul du ferme de A*/\r\n\r\n\r\n\t\t\t\tBasicSet b=this.LpClosure(A);\r\n\t\t\t\t//System.out.println(\"b procchain \"+b);\r\n\r\n\t\t\t\tBasicSet diff=new BasicSet();\r\n\t\t\t\tdiff=b.difference(A);\r\n\t\t\t\tMap <String,Integer> repB=this.RepresentationBinaire(diff);\r\n\t\t\t\tBasicSet test=new BasicSet();\r\n\t\t\t\tMap <String,Integer> testt=RepresentationBinaire(test);\r\n\t\t\t\ttestt.put(item, 1);\r\n\r\n\t\t\t\t/* on teste si l ensemble B\\A est plus petit que l ensemble contenant i\r\n\t\t\t\t * Si B\\A est plus petit alors on affecte B à A.\r\n\t\t\t\t **/\r\n\r\n\t\t\t\tif(item.equals(b.first())||LecticOrder(repB,testt)){\r\n\t\t\t\t\t//System.out.println(\"A succes=true \"+ A);\r\n\t\t\t\t\tA=b;\r\n\t\t\t\t\tsuccess=true;\t \r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tA.remove(item);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tA.remove(item);\r\n\t\t\t}\t\t\t\r\n\t\t\ti--;\r\n\t\t}\t\t\r\n\t\treturn A;\r\n\t}", "Couple[] Exchange (Couple[] v,Gift[] G) throws IOException{\n \n \n int i;\n String y;\n int s = 0;\n int e = 99;\n \n for (i = 0; i < 10; i++) {\n \n y = v[i].btype;\n \n \n if (\"Generous\" == y) {\n \n if ((v[i].spend <= v[i].bd)) {\n \n if (v[i].spend <= v[i].m) {\n \n v[i].lc = v[i].lc + 1;\n v[i].lv = v[i].lv + G[e].price;\n v[i].spend = v[i].spend +G[e].price;\n e--;\n \n }else {\n \n v[i].lc = v[i].lc + 1;\n v[i].lv = v[i].lv + G[e].price;\n v[i].spend = v[i].spend +G[e].price;\n v[i].extra = v[i].extra + G[e].price;\n e--;\n \n \n }\n \n }\n \n }else if (\"Miser\" == y) {\n \n if (v[i].spend <= v[i].m) {\n \n v[i].spend = v[i].spend + G[s].price;\n s++;\n }\n \n \n }else if (\"Geeky\" == y) {\n \n if (v[i].spend <= v[i].m) {\n \n v[i].spend = v[i].spend + G[s].price;\n s++;\n }else {\n \n v[i].spend = v[i].spend + G[e].price;\n v[i].extra = v[i].extra + G[e].price;\n \n } \n }\n \n \n \n }\n\n return v;\n}", "abstract void mo4366a(int i, zzwt zzwt, cu cuVar);", "public CustomForLoop(Node forLoopNode, int position, CustomClassObject theForLoopsClass, ArrayList<CustomClassObject> allTheClasses){\n this.positon = position;\n //System.out.println(\"this is for loop12345 \" + forLoopNode);\n String loopIteratorType = \"\";\n String declaratorVar = \"\";\n String declaratorVal = \"\";\n String fullRelationalExpression = \"\";\n String rightHandVar = \"\";\n String incrementor;\n String postfixExpression = \"\";\n\n for (int i = 0; i < forLoopNode.getNode(0).size(); i++) {\n\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"Type\")){\n //System.out.println(\"$FOR TYPE\");\n Node getType = forLoopNode.getNode(0).getNode(i);\n loopIteratorType = getType.getNode(0).getString(0);\n CppDataLayout.typeTranslate trans = new CppDataLayout.typeTranslate();\n loopIteratorType = trans.translateType(loopIteratorType);\n }\n\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"Declarators\")){\n\n\n Node declarator = forLoopNode.getNode(0).getNode(i).getNode(0);\n declaratorVar = declarator.getString(0);\n declaratorVal = declarator.getNode(2).getString(0);\n }\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"RelationalExpression\")){\n\n Node relationalExpression = forLoopNode.getNode(0).getNode(i);\n String primaryId = relationalExpression.getNode(0).getString(0);\n String operator = relationalExpression.getString(1);\n Node selectionExpressionNode = relationalExpression.getNode(2);\n String selectionExpression = \"\";\n if (selectionExpressionNode.getNode(0).getName().equals(\"SubscriptExpression\")){\n Node subscriptExpression = selectionExpressionNode.getNode(0);\n selectionExpression += subscriptExpression.getNode(0).getString(0);\n for (int s = 1; s < subscriptExpression.size(); s++){\n selectionExpression += \"[\" + subscriptExpression.getNode(s).getString(0) + \"]\";\n }\n }else {\n selectionExpression = selectionExpressionNode.getNode(0).getString(0);\n }\n String lengthField = \"\";\n if (selectionExpressionNode.getString(1) != null) {\n lengthField = \".\" + selectionExpressionNode.getString(1);\n }\n //for (int32_t i = 0; i < ({__rt::checkNotNull(args); args->length; }); i++) {\n fullRelationalExpression += primaryId + \" \" + operator + \"({__rt::checkNotNull(\"+ selectionExpression +\"); \"+selectionExpression+\"->length; })\";\n }\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"ExpressionList\")){\n //System.out.println(\"$FOR EXPRESSION\");\n Node expressionList = forLoopNode.getNode(0).getNode(i);\n Node postfixExpressionNode = expressionList.getNode(0);\n postfixExpression = postfixExpressionNode.getNode(0).getString(0) + postfixExpressionNode.getString(1);\n }\n } // end of get for loop header\n this.forLoopDecLine = \"for (\" + loopIteratorType + \" \" + declaratorVar + \" = \" + declaratorVal + \"; \" + fullRelationalExpression + \"; \" + postfixExpression + \")\";\n //System.out.println(\"fullForLoop1234678 \" + forLoopDecLine);\n for (int i = 0; i < forLoopNode.size(); i++) {\n //Use this to find the for loops block\n if(forLoopNode.getNode(i).getName().equals(\"Block\")){\n //This is the for loops block\n this.forLoopsTranslatedBlock = new TranslatedBlock(forLoopNode.getNode(i), false, theForLoopsClass, allTheClasses);\n }\n }\n }", "int incCapacity()\r\n\t{\r\n\t\tint i,j;\r\n\t\tfor (i=0; i<=state; ++i)\r\n\t\t\tfor (j=0; j<=symbol; ++j)\r\n\t\t\t\tg[i][j][state]=g[state][j][i]=false;\r\n\t\treturn (state++);\r\n\t}", "int fillCount();", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "@Override\n void advance() {\n }", "private void arretes_fO(){\n\t\tthis.cube[40] = this.cube[37]; \n\t\tthis.cube[37] = this.cube[39];\n\t\tthis.cube[39] = this.cube[43];\n\t\tthis.cube[43] = this.cube[41];\n\t\tthis.cube[41] = this.cube[40];\n\t}", "public void doAll() {\n for (int i = 0; i < Integer.MAX_VALUE; i++) {\n sum += sumLoop(sumLoopArray);\n sum += sumIfEvenLoop(sumLoopArray);\n sum += sumIfPredicate(sumLoopArray);\n sum += sumShifted(3, 0x7f, sumLoopArray);\n addXtoArray(i, addXArray);\n sum += sumLoop(addXArray);\n addArraysIfEven(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n addArraysIfPredicate(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n sum += sumLoop(addArraysIfEvenArrayA);\n }\n }", "public void nextIteration()\n {\n actuelIteration++;\n }", "private void m5281e(C1070b op) {\n int tmpStart = op.f3540b;\n int tmpCount = 0;\n int tmpEnd = op.f3540b + op.f3542d;\n int type = -1;\n for (int position = op.f3540b; position < tmpEnd; position++) {\n if (this.f3534d.mo7300a(position) != null || m5280d(position)) {\n if (type == 0) {\n m5282f(mo8468a(4, tmpStart, tmpCount, op.f3541c));\n tmpCount = 0;\n tmpStart = position;\n }\n type = 1;\n } else {\n if (type == 1) {\n m5283g(mo8468a(4, tmpStart, tmpCount, op.f3541c));\n tmpCount = 0;\n tmpStart = position;\n }\n type = 0;\n }\n tmpCount++;\n }\n if (tmpCount != op.f3542d) {\n Object payload = op.f3541c;\n mo8470a(op);\n op = mo8468a(4, tmpStart, tmpCount, payload);\n }\n if (type == 0) {\n m5282f(op);\n } else {\n m5283g(op);\n }\n }", "private int[] enquadramentoInsercaoDeBits(int[] quadro) throws Exception {\n System.out.println(\"\\n\\t[Insercao de Bits]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Insercao de Bits]\\n\");\n Thread.sleep(velocidade);\n\n //Byte Flag que contem a sequencia de bits \"0111110\"\n final int byteFlag = 126;//00000000 00000000 00000000 01111110\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\t[Bits de Flag [01111110] = 126]\\n\\n\");\n Thread.sleep(velocidade);\n\n String auxiliar = \"\";\n Boolean SE = true;\n\n for (int inteiro : quadro) {\n //System.out.println(\"Quadro\");\n int quantidadeByte = ManipuladorDeBit.quantidadeDeBytes(inteiro);\n ManipuladorDeBit.imprimirBits(inteiro);\n //System.out.println(\"Bits deslocados\");\n inteiro = ManipuladorDeBit.deslocarBits(inteiro);\n ManipuladorDeBit.imprimirBits(inteiro);\n int inteiroByte = ManipuladorDeBit.getPrimeiroByte(inteiro);\n\n if (inteiroByte == byteFlag) {//Inicio do Quadro\n SE = !SE;//Iniciar a Busca pelo Byte de Fim de Quadro\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n quantidadeByte--;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\tIC [\" + inteiroByte + \"] \");\n }\n\n if (!SE) {\n\n ManipuladorDeBit.imprimirBits(inteiro);\n\n for (int i=1; i<=quantidadeByte; i++) {\n int dado = ManipuladorDeBit.getPrimeiroByte(inteiro);\n System.out.println(\"asdfasdf\\n\");\n ManipuladorDeBit.imprimirBits(dado);\n\n if (dado == byteFlag) {//Verificando se encontrou o Byte de Flag\n SE = !SE;//Encontrou o Byte de Fim de Quadro\n } else {\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [ \");\n\n int novoQuadro = 0;\n\n Boolean cincoBits1 = ManipuladorDeBit.cincoBitsSequenciais(dado,1);\n if (cincoBits1) {\n\n dado = ManipuladorDeBit.deslocarBits(dado);\n ManipuladorDeBit.imprimirBits(dado);\n\n //Cria um inteiro com 1 no bit mais a esquerda e 0s em outros locais\n int displayMask = 1 << 31;//10000000 00000000 00000000 00000000\n //Para cada bit exibe 0 ou 1\n for (int b=1, cont=0; b<=8; b++) {\n //Utiliza displayMask para isolar o bit\n int bit = (dado & displayMask) == 0 ? 0 : 1;\n\n if (cont == 5) {\n cont = 0;//Zerando o contador\n dado <<= 1;//Desloca 1 bit para a esquerda\n bit = (dado & displayMask) == 0 ? 0 : 1;\n }\n\n if (b == 8) {//Quando chegar no Ultimo Bit\n inteiro <<= 8;//Deslocando 8 bits para esquerda\n dado = ManipuladorDeBit.getPrimeiroByte(inteiro);\n dado = ManipuladorDeBit.deslocarBits(dado);\n ManipuladorDeBit.imprimirBits(dado);\n\n novoQuadro <<= 1;//Deslocando 1 bit para a esquerda\n novoQuadro |= ManipuladorDeBit.pegarBitNaPosicao(dado,1);//Adicionando o bit ao novoDado\n\n ManipuladorDeBit.imprimirBits(novoQuadro);\n\n auxiliar += (char) novoQuadro;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(novoQuadro + \" ]\\n\");\n Thread.sleep(velocidade);\n i++;\n\n } else {//Colocando o Bit no novoQuadro\n novoQuadro <<= 1;//Deslocando 1 bit para a esquerda\n novoQuadro |= bit;//Adicionando o bit ao novoDado\n dado <<= 1;//Desloca 1 bit para a esquerda\n }\n\n if (bit == 1) {//Quando for um bit 1\n cont++;\n } else {//Caso vinher um bit 0\n cont = 0;\n }\n }\n\n } else {//Caso nao tem uma sequencia de 5 Bits 1's\n auxiliar += (char) dado;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(dado + \" ]\\n\");\n Thread.sleep(velocidade);\n }\n }\n \n inteiro <<= 8;//Deslocando 8 bits para a esquerda;\n }\n\n }\n }\n\n //Novo Quadro de Carga Util\n int[] quadroDesenquadrado = new int[auxiliar.length()];\n //Adicionando as informacoes de Carga Util no QuadroDesenquadrado\n for (int i=0; i<auxiliar.length(); i++) {\n quadroDesenquadrado[i] = (int) auxiliar.charAt(i);\n ManipuladorDeBit.imprimirBits(quadroDesenquadrado[i]);\n }\n\n return quadroDesenquadrado;\n }", "@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "public abstract void mo4379b(int i, zzwt zzwt);", "public int getOutputPositionIncrement () { return 1; }", "@Override\n protected int getNumRepetitions() {\n return 1;\n }", "Loop createLoop();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void function() {\n App.memory.setMemory(op2, Memory.convertBSToBoolArr(Memory.length32(Integer.toBinaryString(\n op1 * Integer.parseInt(App.memory.getMemory(op2, 1 << 2 + 2 + 1), 2)))));\n }", "public static void code_fragment(){\n int[] a = new int[10];\n for(int i = 0; i < 10 ; i++){\n a[i] = 9 - i;\n // Custom code to print values\n print_value(i, a[i]);\n }\n for(int i = 0; i < 10 ; i++){\n a[i] = a[a[i]];\n // Custom code to print values\n print_value(i, a[i]);\n }\n for(int i = 0; i < 10 ; i++){\n System.out.println(i);\n }\n }", "public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}", "private CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst) {\n byte[] srcArray = src.array();\n int srcPosition = src.arrayOffset() + src.position();\n int srcLength = src.arrayOffset() + src.limit();\n\n char[] destArray = dst.array();\n int destPosition = dst.arrayOffset() + dst.position();\n int destLength = dst.arrayOffset() + dst.limit();\n int destLengthASCII = destPosition + Math.min(srcLength - srcPosition, destLength - destPosition);\n\n // ASCII only loop\n while (destPosition < destLengthASCII && srcArray[srcPosition] >= 0) {\n destArray[destPosition++] = (char) srcArray[srcPosition++];\n }\n\n while (srcPosition < srcLength) {\n int b1 = srcArray[srcPosition];\n if (b1 >= 0) {\n // 1 byte, 7 bits: 0xxxxxxx\n if (destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 1);\n }\n destArray[destPosition++] = (char) b1;\n srcPosition++;\n } else if ((b1 >> 5) == -2) {\n // 2 bytes, 11 bits: 110xxxxx 10xxxxxx\n if (srcLength - srcPosition < 2 || destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 2);\n }\n int b2 = srcArray[srcPosition + 1];\n if (isMalformed2(b1, b2)) {\n return malformed(src, srcPosition, dst, destPosition, 2);\n }\n destArray[destPosition++] = (char) (((b1 << 6) ^ b2) ^ 0x0f80);\n srcPosition += 2;\n } else if ((b1 >> 4) == -2) {\n // 3 bytes, 16 bits: 1110xxxx 10xxxxxx 10xxxxxx\n if (srcLength - srcPosition < 3 || destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 3);\n }\n int b2 = srcArray[srcPosition + 1];\n int b3 = srcArray[srcPosition + 2];\n if (isMalformed3(b1, b2, b3)) {\n return malformed(src, srcPosition, dst, destPosition, 3);\n }\n destArray[destPosition++] = (char) (((b1 << 12) ^ (b2 << 6) ^ b3) ^ 0x1f80);\n srcPosition += 3;\n } else if ((b1 >> 3) == -2) {\n // 4 bytes, 21 bits: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx\n if (srcLength - srcPosition < 4 || destLength - destPosition < 2) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 4);\n }\n int b2 = srcArray[srcPosition + 1];\n int b3 = srcArray[srcPosition + 2];\n int b4 = srcArray[srcPosition + 3];\n int uc = ((b1 & 0x07) << 18) | ((b2 & 0x3f) << 12) | ((b3 & 0x3f) << 06) | (b4 & 0x3f);\n if (isMalformed4(b2, b3, b4) || !((uc >= 0x10000) && (uc <= 1114111))) {\n return malformed(src, srcPosition, dst, destPosition, 4);\n }\n destArray[destPosition++] = (char) (0xd800 | (((uc - 0x10000) >> 10) & 0x3ff));\n destArray[destPosition++] = (char) (0xdc00 | ((uc - 0x10000) & 0x3ff));\n srcPosition += 4;\n } else {\n return malformed(src, srcPosition, dst, destPosition, 1);\n }\n }\n return xflow(src, srcPosition, srcLength, dst, destPosition, 0);\n }", "@Override\n public Iterator<T> preOrden(){\n return (super.preOrden());\n }", "protected int getIteration() {\n\t\treturn iteration;\n\t}", "protected void update(byte[] b, int off, int len) {\n/* 56 */ for (int i = off; i < off + len; i++) {\n/* 57 */ update(b[i]);\n/* */ }\n/* */ }", "public interface C28041Ke extends Iterable {\n void A2T(C32781bq r1);\n\n void clear();\n}", "private static Status loopTransformable(\n ImmutableMap<CSimpleDeclaration, TransformableArray> pTransformableArrayMap,\n TransformableLoop pLoop) {\n\n ImmutableSet<MemoryLocation> innerLoopDeclarations =\n pLoop.getInnerLoopDeclarations().stream()\n .map(MemoryLocation::forDeclaration)\n .collect(ImmutableSet.toImmutableSet());\n MemoryLocation loopIndexMemLoc =\n MemoryLocation.forDeclaration(pLoop.getIndex().getVariableDeclaration());\n\n EdgeDefUseData.Extractor defUseDataExtractor = EdgeDefUseData.createExtractor(true);\n for (CFAEdge edge : pLoop.getInnerLoopEdges()) {\n\n Set<MemoryLocation> arrayMemoryLocations = new HashSet<>();\n\n // non-transformable arrays in a transformable loop make the loop non-transformable\n for (CSimpleDeclaration arrayDeclaration : ArrayAccess.findArrayOccurences(edge)) {\n if (!pTransformableArrayMap.containsKey(arrayDeclaration)) {\n return Status.UNCHANGED;\n }\n\n arrayMemoryLocations.add(MemoryLocation.forDeclaration(arrayDeclaration));\n }\n\n EdgeDefUseData edgeDefUseData = defUseDataExtractor.extract(edge);\n for (MemoryLocation def : edgeDefUseData.getDefs()) {\n if (!innerLoopDeclarations.contains(def)\n && !arrayMemoryLocations.contains(def)\n && !def.equals(loopIndexMemLoc)) {\n return Status.UNCHANGED;\n }\n }\n\n // any pointee def make a loop non-transformable\n if (!edgeDefUseData.getPointeeDefs().isEmpty()) {\n return Status.UNCHANGED;\n }\n }\n\n return Status.PRECISE;\n }", "@Test\n public void test8() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1354,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test8\");\n Integer[] integerArray0 = new Integer[9];\n ResettableListIterator<Integer> resettableListIterator0 = IteratorUtils.arrayListIterator(integerArray0);\n assertEquals(true, resettableListIterator0.hasNext());\n }", "public static void main(String[] args) {\n DGIM[] dgim = new DGIM[5];\n //从0到4分别代表2^4到2^0的位\n for (int i = 0; i < 5; i++) {\n dgim[i] = new DGIM(1000);\n }\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(\"cmsc5741_stream_data2.txt\")));) {\n while (true) {\n boolean isEnd = false;\n StringBuilder builder = new StringBuilder();\n int c1 = reader.read();\n builder.append((char) c1);\n while (true) {\n int c2 = reader.read();\n if ((char) c2 == ' ') {\n break;\n }\n if (c2 == -1) {\n isEnd = true;\n break;\n }\n builder.append((char) c2);\n }\n if (isEnd) {\n break;\n }\n char[] binary = Integer.toBinaryString(Integer.parseInt(builder.toString())).toCharArray();\n //寻找开始的位\n int start = 5 - binary.length;\n DGIM.number++;\n for (int i = 0; i < binary.length; i++) {\n if (binary[i] == '1') {\n dgim[start].add();\n }\n start++;\n }\n }\n Iterator<Bucket> iterator_16 = dgim[0].getQueue().iterator();\n Iterator<Bucket> iterator_8 = dgim[1].getQueue().iterator();\n Iterator<Bucket> iterator_4 = dgim[2].getQueue().iterator();\n Iterator<Bucket> iterator_2 = dgim[3].getQueue().iterator();\n Iterator<Bucket> iterator_1 = dgim[4].getQueue().iterator();\n\n\n while(iterator_16.hasNext()){\n System.out.println(\"Buckets for 16 :\"+iterator_16.next());\n }\n System.out.println(\"There are \"+dgim[0].getContent()+\" count of 16\");\n while(iterator_8.hasNext()){\n System.out.println(\"Buckets for 8 :\"+iterator_8.next());\n }\n System.out.println(\"There are \"+dgim[1].getContent()+\" count of 8\");\n while(iterator_4.hasNext()){\n System.out.println(\"Buckets for 4 :\"+iterator_4.next());\n }\n System.out.println(\"There are \"+dgim[2].getContent()+\" count of 4\");\n while(iterator_2.hasNext()){\n System.out.println(\"Buckets for 2 :\"+iterator_2.next());\n }\n System.out.println(\"There are \"+dgim[3].getContent()+\" count 2\");\n\n while(iterator_1.hasNext()){\n System.out.println(\"Buckets for 1 :\"+iterator_1.next());\n }\n System.out.println(\"There are \"+dgim[4].getContent()+\" times 1\");\n\n int result = (dgim[0].getContent()*16 + dgim[1].getContent()*8\n + dgim[2].getContent()*4 + dgim[3].getContent()*2 + dgim[4].getContent())/1000;\n System.out.println(\"The average price: \"+result);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }" ]
[ "0.58558184", "0.58008945", "0.55523634", "0.5488059", "0.5426405", "0.5406266", "0.53871536", "0.53583354", "0.5341777", "0.5328434", "0.52859133", "0.52716786", "0.5250363", "0.5244315", "0.5240082", "0.52176076", "0.52159345", "0.51988727", "0.5188341", "0.5185389", "0.5169053", "0.5164049", "0.5154991", "0.5151339", "0.5143938", "0.51233566", "0.511908", "0.50924665", "0.50879234", "0.50878483", "0.50878483", "0.5075374", "0.5072266", "0.5065936", "0.50606465", "0.50531614", "0.50517464", "0.5045371", "0.50258976", "0.5023349", "0.50209904", "0.50106376", "0.49935022", "0.49767372", "0.4969609", "0.49617723", "0.49587595", "0.4956785", "0.49510595", "0.49480018", "0.49418956", "0.49381545", "0.49302793", "0.49298084", "0.4929215", "0.49283013", "0.49270427", "0.4923371", "0.49034256", "0.4895003", "0.48929614", "0.48877653", "0.48863676", "0.48846948", "0.4878963", "0.48788697", "0.48770064", "0.48739177", "0.4873176", "0.48692638", "0.4866664", "0.48571706", "0.48557878", "0.48548517", "0.48532784", "0.48532414", "0.4852746", "0.48452082", "0.48366615", "0.48343447", "0.48303106", "0.48259583", "0.48258704", "0.48225784", "0.4815867", "0.481038", "0.4807983", "0.48036575", "0.4794019", "0.47924128", "0.478851", "0.4788042", "0.4787755", "0.478729", "0.4787279", "0.4785797", "0.47825527", "0.47767043", "0.4769252", "0.47691804", "0.47650248" ]
0.0
-1
endregion IMU region DriveEncoders
public void SetDriveModeNoEncoders() { frontLeftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); frontRightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); rearLeftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); rearRightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); driveMode = DriveMode.Run_Without_Encoders; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void resetDriveEncoders() {\n driverFR.resetEncoder();\n driverFL.resetEncoder();\n driverBR.resetEncoder();\n driverBL.resetEncoder();\n }", "public void resetDriveEncoders() {\r\n motorLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n motorRight.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n\r\n motorLeft.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n motorRight.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n }", "protected void initializeEncoders() throws InterruptedException {\n motorFrontRight.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorFrontRight.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorFrontLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorFrontLeft.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorBackRight.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorBackRight.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorBackLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorBackLeft.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorGlyphTower.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorGlyphTower.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorBackRight.setDirection(DcMotorSimple.Direction.REVERSE);\n motorBackLeft.setDirection(DcMotorSimple.Direction.FORWARD);\n motorFrontLeft.setDirection(DcMotorSimple.Direction.FORWARD);\n motorFrontRight.setDirection(DcMotorSimple.Direction.REVERSE);\n\n Thread.sleep(200);\n Log.d(\"RHTP\",\"wheel encoder settings set\");\n }", "public void ConfigEncoder() {\n\t\tRobotMap.backLeft.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1, 1);\n\t\tRobotMap.backLeft.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 1);\n\t\tRobotMap.backLeft.setSelectedSensorPosition(0, 0, 1);\n\t\tRobotMap.backLeft.setSensorPhase(true);\n\t\tRobotMap.backLeft.setSafetyEnabled(false);\n\t\tRobotMap.frontLeft.setInverted(true);\n\t\tRobotMap.backLeft.setInverted(true);\n\n\t\tRobotMap.frontRight.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1, 1);\n\t\tRobotMap.frontRight.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 1);\n\t\tRobotMap.frontRight.setSelectedSensorPosition(0, 0, 1);\n\t\tRobotMap.frontRight.setSensorPhase(true);\n\t\tRobotMap.frontRight.setSafetyEnabled(false);\n\n\t\tRobotMap.frontLeft.setSafetyEnabled(false);\n\t\tRobotMap.backLeft.setSafetyEnabled(false);\n\n\t\tSystem.out.println(\"encoder initialize\");\n\t}", "@Override\n public void combinedIMU(int ax, int ay, int az, int gx, int gy, int gz, int timestamp) {\n }", "@Override\n public void init() {\n // Get references to dc motors and set initial mode and direction\n // It appears all encoders are reset upon robot startup, but just in case, set all motor\n // modes to Stop-And-Reset-Encoders during initialization.\n motorLeftA = hardwareMap.dcMotor.get(MOTOR_DRIVE_LEFT_A);\n motorLeftA.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorLeftA.setDirection(DcMotor.Direction.FORWARD);\n\n motorLeftB = hardwareMap.dcMotor.get(MOTOR_DRIVE_LEFT_B);\n motorLeftB.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorLeftB.setDirection(DcMotor.Direction.FORWARD);\n\n motorRightA = hardwareMap.dcMotor.get(MOTOR_DRIVE_RIGHT_A);\n motorRightA.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorRightA.setDirection(DcMotor.Direction.REVERSE);\n\n motorRightB = hardwareMap.dcMotor.get(MOTOR_DRIVE_RIGHT_B);\n motorRightB.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n motorRightB.setDirection(DcMotor.Direction.REVERSE);\n\n //motorGlyphLift = hardwareMap.dcMotor.get(GLYPH_LIFT);\n //motorGlyphLift.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n //motorGlyphLift.setDirection(DcMotor.Direction.FORWARD);\n\n sGlyphL = hardwareMap.servo.get(GLYPH_LEFT);\n //sGlyphL.scaleRange(0,180);\n\n sGlyphR = hardwareMap.servo.get(GLYPH_RIGHT);\n sGem = hardwareMap.servo.get(Gem);\n\n //Initialize vex motor\n sGLift = hardwareMap.crservo.get(Servo_GlyphLift);\n\n //sGLift.setPower(0);\n\n //sGLift2 = hardwareMap.servo.get(Servo_GlyphLift);\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n imu = hardwareMap.get(BNO055IMU.class,\"imu\");\n imu.initialize(parameters);\n\n //servoGlyph1.setPosition(180);\n //servoGlyph2.setPosition(180);\n\n bDirection = true;\n }", "private void setupSteeringEncoders() {\n //12.8:1\n steeringFR.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringBR.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringFL.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringBL.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n }", "protected void initialize() {\n \tRobot.drive.resetEncoder();\n }", "private void testEncoder() {\n\n flMotor.setPower(0.50);\n frMotor.setPower(0.50);\n blMotor.setPower(0.50);\n brMotor.setPower(0.50);\n\n // wait while opmode is active and left motor is busy running to position.\n\n while (opModeIsActive() && flMotor.isBusy()) {\n telemetry.addData(\"encoder-fwd-left\", flMotor.getCurrentPosition() + \" busy=\" + flMotor.isBusy());\n telemetry.addData(\"encoder-fwd-right\", frMotor.getCurrentPosition() + \" busy=\" + frMotor.isBusy());\n telemetry.addData(\"encoder-bck-left\", blMotor.getCurrentPosition() + \" busy=\" + blMotor.isBusy());\n telemetry.addData(\"encoder-bck-right\", brMotor.getCurrentPosition() + \" busy=\" + brMotor.isBusy());\n telemetry.update();\n idle();\n }\n\n // set motor power to zero to turn off motors. The motors stop on their own but\n // power is still applied so we turn off the power.\n\n flMotor.setPower(0.0);\n frMotor.setPower(0.0);\n blMotor.setPower(0.0);\n brMotor.setPower(0.0);\n\n // wait 5 sec to you can observe the final encoder position.\n\n resetStartTime();\n\n while (opModeIsActive() && getRuntime() < 5) {\n telemetry.addData(\"encoder-fwd-left-end\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-fwd-right-end\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-bck-left-end\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-bck-right-end\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n\n // From current position back up to starting point. In this example instead of\n // having the motor monitor the encoder we will monitor the encoder ourselves.\n\n flMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n frMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n blMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n brMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n flMotor.setTargetPosition(0);\n frMotor.setTargetPosition(0);\n blMotor.setTargetPosition(0);\n brMotor.setTargetPosition(0);\n\n // Power sign matters again as we are running without encoder.\n flMotor.setPower(-0.50);\n frMotor.setPower(-0.50);\n blMotor.setPower(-0.50);\n brMotor.setPower(-0.50);\n\n while (opModeIsActive() && flMotor.getCurrentPosition() > flMotor.getTargetPosition()) {\n telemetry.addData(\"encoder-back-left\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-left\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n\n // set motor power to zero to stop motors.\n flMotor.setPower(0.0);\n frMotor.setPower(0.0);\n blMotor.setPower(0.0);\n brMotor.setPower(0.0);\n\n resetStartTime();\n\n while (opModeIsActive() && getRuntime() < 5) {\n telemetry.addData(\"encoder-back-left-end\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right-end\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-left-end\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right-end\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n }", "public void setupIMU() {\n // Initalize IMU\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n\n parameters.mode = BNO055IMU.SensorMode.IMU;\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\";\n parameters.loggingEnabled = false;\n\n // Retrieve and initialize the IMU. We expect the IMU to be attached to an I2C port\n // on a Core Device Interface Module, configured to be a sensor of type \"AdaFruit IMU\",\n // and named \"imu\".\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n\n imu.initialize(parameters);\n\n\n // Set PID proportional value to start reducing power at about 50 degrees of rotation.\n pidRotate = new PIDController(.005, 0, 0); // Kp was 0 1/24/19\n\n // Set PID proportional value to produce non-zero correction value when robot veers off\n // straight line. P value controls how sensitive the correction is.\n pidDrive = new PIDController(0.02, 0, 0); // Kp was .02 1/24/19\n\n telemetry.addData(\"Mode\", \"calibrating IMU.....\");\n telemetry.update();\n\n // make sure the imu gyro is calibrated before continuing.\n while (!isStopRequested() && !imu.isGyroCalibrated()) {\n sleep(50);\n idle();\n }\n\n telemetry.addData(\"Mode\", \"waiting for start\");\n telemetry.addData(\"imu calib status\", imu.getCalibrationStatus().toString());\n telemetry.update();\n }", "public void encoderDrive(double speed, double aInches, double bInches, double cInches, double dInches) {\n double ad = 720 * (aInches / 12.57);\n int aDistance = (int) ad;\n double bd = 720 * (bInches / 12.57);\n int bDistance = (int) bd;\n double cd = 720 * (cInches / 12.57);\n int cDistance = (int) cd;\n double dd = 720 * (dInches / 12.57);\n int dDistance = (int) dd;\n\n aDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n aDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n bDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n bDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n cDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n cDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n dDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n dDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n aDrive.setTargetPosition(aDistance);\n bDrive.setTargetPosition(bDistance);\n cDrive.setTargetPosition(cDistance);\n dDrive.setTargetPosition(dDistance);\n aDrive.setPower(speed);\n bDrive.setPower(speed);\n cDrive.setPower(speed);\n dDrive.setPower(speed);\n\n while (aDrive.isBusy() && bDrive.isBusy() && cDrive.isBusy() && dDrive.isBusy() && opModeIsActive()) {\n idle();\n }\n aDrive.setPower(0);\n bDrive.setPower(0);\n cDrive.setPower(0);\n dDrive.setPower(0);\n }", "public void updateEncoders() {\n leftEnc.updateRate();\n rightEnc.updateRate();\n }", "int getMotorEncoder( MotorName m ) {\n int enc = 0;\n if( motor_read_mode_==MotorBulkReadMode.BULK_READ_MANUAL && loop_cnt_!=last_motor_read_loop_id_ ) {\n // Important Step 4: If you are using MANUAL mode, you must clear the BulkCache once per control cycle\n for( LynxModule module : all_hubs_ ) {\n module.clearBulkCache();\n }\n }\n switch ( m ) {\n case MOTOR_LF:\n enc = motorLF_.getCurrentPosition();\n break;\n case MOTOR_LB:\n enc = motorLB_.getCurrentPosition();\n break;\n case MOTOR_RF:\n enc = motorRF_.getCurrentPosition();\n break;\n case MOTOR_RB:\n enc = motorRB_.getCurrentPosition();\n break;\n case MOTOR_LEFT_INTAKE:\n enc = motor_left_intake_.getCurrentPosition();\n break;\n case MOTOR_RIGHT_INTAKE:\n enc = motor_right_intake_.getCurrentPosition();\n break;\n case MOTOR_LIFT:\n enc = motor_lift_.getCurrentPosition();\n break;\n default:\n break;\n }\n last_motor_read_loop_id_ = loop_cnt_ ;\n return enc;\n }", "private void resetSteeringEncoders() {\n steeringFR.resetEncoder();\n steeringBR.resetEncoder();\n steeringFL.resetEncoder();\n steeringBL.resetEncoder();\n }", "private byte[] getImageEncodingParameter() {\n final byte[] encodingData = new byte[] {\n (byte)0x95, // ID\n 0x02, // Length\n encoding,\n (byte)(encoding == COMPID_JPEG ? 0xFE : 0x01), // RECID\n };\n return encodingData;\n }", "private void m4808d() {\n if (f3853k.m4870e()) {\n if (f3853k.m4846M() == -1) {\n m4807c();\n }\n try {\n Thread.sleep(50);\n return;\n } catch (InterruptedException e) {\n e.printStackTrace();\n return;\n }\n }\n m4810f();\n JniMethod.convert(f3831d, f3852j, Recorder.f3861b, Recorder.f3862c);\n int flag = f3853k.m4852a(f3852j);\n if (flag == -2 && !f3853k.m4843J()) {\n m4807c();\n }\n LogUtil.m4440c(f3850h, \"input2Encoder success flag= \" + flag);\n }", "private void resampleAbdomenVOI() {\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n \r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n int x = xcm;\r\n int y = ycm;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && curve.contains(x, y)) {\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && curve.contains(x, y)) {\r\n\r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && curve.contains(x, y)) {\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && curve.contains(x, y)) {\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n }\r\n } // end for (angle = 0; ...\r\n \r\n// ViewUserInterface.getReference().getMessageFrame().append(\"resample VOI number of points: \" +xValsAbdomenVOI.size());\r\n curve.clear();\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n curve.add( new Vector3f( xValsAbdomenVOI.get(idx), yValsAbdomenVOI.get(idx), 0 ) );\r\n }\r\n }", "@Override\n public void initialize() {\n drivetrain.resetEncoders();\n }", "public void rasterScanning(){\r\n ReadParameter embedPara = new ReadParameter();\r\n QuantisationEmbedding subband = new QuantisationEmbedding();\r\n int i,j,k,p;\r\n double[] coeffStream, modCoeffStream;\r\n //Modification in selected subband only\r\n if(embedPara.getSubbandChoice().compareTo(\"LF\") == 0){\r\n //Embed in low low subband only\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n coeffStream[k++] = subband.getSubbandLL()[i][j];\r\n }\r\n }\r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n // Write it back in proper order\r\n k = 0; // Reset k value\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n \r\n } else if(embedPara.getSubbandChoice().compareTo(\"HF\") == 0){\r\n //Embed in high frequency subband only\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length * 3];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n \r\n // Make it fir three high frequency subbands\r\n for(p=0; p<3; p++){\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n if(p==0){ //Get LH Subband values\r\n coeffStream[k++] = subband.getSubbandLH()[i][j];\r\n \r\n } else if(p==1){ //Get HL Subband values\r\n coeffStream[k++] = subband.getSubbandHL()[i][j];\r\n \r\n } else if(p==2){ //Get HH Subband values\r\n coeffStream[k++] = subband.getSubbandHH()[i][j];\r\n \r\n } // End of if-else condition \r\n } // End of inner loop\r\n } \r\n } // End of outer loop\r\n \r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n \r\n // Write it back in proper order\r\n k=0; // Reset k value\r\n //Write back LH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n \r\n \r\n } else if(embedPara.getSubbandChoice().compareTo(\"AF\") == 0){\r\n //Embed in all subbands\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length * 4];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n \r\n // Make it fir three high frequency subbands\r\n for(p=0; p<4; p++){\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n if(p==0){ //Get LL Subband values\r\n coeffStream[k++] = subband.getSubbandLL()[i][j];\r\n \r\n } else if(p==1){ //Get LH Subband values\r\n coeffStream[k++] = subband.getSubbandLH()[i][j];\r\n \r\n } else if(p==2){ //Get HL Subband values\r\n coeffStream[k++] = subband.getSubbandHL()[i][j];\r\n \r\n } else if(p==3){ //Get HH Subband values\r\n coeffStream[k++] = subband.getSubbandHH()[i][j];\r\n \r\n } // End of if-else condition \r\n } // End of inner loop\r\n } \r\n } // End of outer loop\r\n \r\n \r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n \r\n \r\n // Write it back in proper order\r\n k = 0; //Reset k value\r\n //Write back LL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back LH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n } // End subband choice if-else condition\r\n \r\n }", "public void encoderDrive(double speed,\r\n double leftInches, \r\n double rightInches,\r\n String name) \r\n {\n int newLeftTarget = robot.leftDrive.getCurrentPosition() + (int)(leftInches * COUNTS_PER_INCH);\r\n int newRightTarget = robot.rightDrive.getCurrentPosition() + (int)(rightInches * COUNTS_PER_INCH);\r\n robot.leftDrive.setTargetPosition(newLeftTarget);\r\n robot.rightDrive.setTargetPosition(newRightTarget);\r\n\r\n // Turn On RUN_TO_POSITION\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n\r\n // reset the timeout time and start motion.\r\n ElapsedTime localTimer = new ElapsedTime();\r\n localTimer.reset();\r\n robot.leftDrive.setPower(Math.abs(speed));\r\n robot.rightDrive.setPower(Math.abs(speed));\r\n\r\n // keep looping while we are still active, and there is time left, and both motors are running.\r\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\r\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\r\n // always end the motion as soon as possible.\r\n // However, if you require that BOTH motors have finished their moves before the robot continues\r\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\r\n while (localTimer.seconds() < EncoderDrive_Timeout_Second \r\n && (robot.leftDrive.isBusy() || robot.rightDrive.isBusy())) {\r\n\r\n // Display it for the driver.\r\n telemetry.addData(\"\", \"%s @ %s\", name, localTimer.toString());\r\n telemetry.addData(\"To\", \"%7d :%7d\", newLeftTarget, newRightTarget);\r\n telemetry.addData(\"At\", \"%7d :%7d\",\r\n robot.leftDrive.getCurrentPosition(),\r\n robot.rightDrive.getCurrentPosition());\r\n telemetry.update();\r\n idle();\r\n }\r\n\r\n // Stop all motion;\r\n robot.leftDrive.setPower(0);\r\n robot.rightDrive.setPower(0);\r\n\r\n // Turn off RUN_TO_POSITION\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n }", "public Encoder getEncoderRight() {\n return encoderRight;\n }", "private Encoder() {}", "private List<Region> experimentFullRegions() {\n\t\tList<Region> rs = new ArrayList<Region>();\n\t\tRegion r;\n\n\t\t// Vassar St\n\t\tr = new Region(\"Vassar-1\");\n\t\tr.addVertex(42.36255147026933, -71.09034599930573);\n\t\tr.addVertex(42.36240877523236, -71.08975591332245);\n\t\tr.addVertex(42.36013353836458, -71.09434785515595);\n\t\tr.addVertex(42.360442721730834, -71.0948091951065);\n\t\trs.add(r);\n\n\t\t// Windsor-1\n\t\tr = new Region(\"Windsor-1\");\n\t\tr.addVertex(42.36302711805193, -71.09707297951508);\n\t\tr.addVertex(42.36297955343571, -71.09641852051544);\n\t\tr.addVertex(42.3615288153431, -71.09657945305634);\n\t\tr.addVertex(42.36186970216797, -71.09723391205597);\n\t\trs.add(r);\n\n\t\t// Mass-1\n\t\tr = new Region(\"Mass-1\");\n\t\tr.addVertex(42.362678310030105, -71.0995620694809);\n\t\tr.addVertex(42.3629954083118, -71.09918656021881);\n\t\tr.addVertex(42.36179042632724, -71.09720172554779);\n\t\tr.addVertex(42.361322696830854, -71.09736265808868);\n\t\trs.add(r);\n\n\t\t// Mass-2\n\t\tr = new Region(\"Mass-2\");\n\t\tr.addVertex(42.36114036066024, -71.09588207871246);\n\t\tr.addVertex(42.360791542163774, -71.09660091072845);\n\t\tr.addVertex(42.36106901157985, -71.0969335046463);\n\t\tr.addVertex(42.36156052582344, -71.09657945305634);\n\t\trs.add(r);\n\n\t\t// Mass-3\n\t\tr = new Region(\"Mass-3\");\n\t\tr.addVertex(42.36035551632001, -71.09489502579498);\n\t\tr.addVertex(42.3601731773427, -71.09523834854889);\n\t\tr.addVertex(42.360577493491306, -71.095978638237);\n\t\tr.addVertex(42.36077568673155, -71.0955816713028);\n\t\trs.add(r);\n\n\t\t/*\n\t\t * Albany-1-full r = new Region(\"Albany-1\");\n\t\t * r.addVertex(42.36087874696942, -71.09530272156525);\n\t\t * r.addVertex(42.361227564981775, -71.0956353154831);\n\t\t * r.addVertex(42.362678310030105, -71.092556139534);\n\t\t * r.addVertex(42.362527687785665, -71.09185876519012); rs.add(r);\n\t\t */\n\n\t\t// Albany-1\n\t\tr = new Region(\"Albany-1\");\n\t\tr.addVertex(42.36172700558263, -71.09442295700836);\n\t\tr.addVertex(42.3614891772202, -71.09410109192658);\n\t\tr.addVertex(42.360823253016186, -71.09553875595856);\n\t\tr.addVertex(42.361084866938036, -71.09590353638458);\n\t\trs.add(r);\n\n\t\t// Albany-2\n\t\tr = new Region(\"Albany-2\");\n\t\tr.addVertex(42.362678310030105, -71.09243812233734);\n\t\tr.addVertex(42.36253561528121, -71.09191240937042);\n\t\tr.addVertex(42.36180628150339, -71.09342517525482);\n\t\tr.addVertex(42.36223436974708, -71.09344663292694);\n\t\trs.add(r);\n\n\t\t// Portland-1\n\t\tr = new Region(\"Portland-1\");\n\t\tr.addVertex(42.362757584750575, -71.09386505753326);\n\t\tr.addVertex(42.36273380234492, -71.09342517525482);\n\t\tr.addVertex(42.36217887699113, -71.09354319245148);\n\t\tr.addVertex(42.36198861574153, -71.09409036309052);\n\t\trs.add(r);\n\n\t\t// Main-2\n\t\tr = new Region(\"Main-1\");\n\t\tr.addVertex(42.36321737615673, -71.09918656021881);\n\t\tr.addVertex(42.36356618118581, -71.09917583138275);\n\t\tr.addVertex(42.36342348845344, -71.0969335046463);\n\t\tr.addVertex(42.363042972916034, -71.09699787766266);\n\t\trs.add(r);\n\n\t\t// Main-2\n\t\tr = new Region(\"Main-2\");\n\t\tr.addVertex(42.36318566651262, -71.09384359986115);\n\t\tr.addVertex(42.36278929461076, -71.09392943054962);\n\t\tr.addVertex(42.36297162599619, -71.09643997818756);\n\t\tr.addVertex(42.36336799674776, -71.09641852051544);\n\t\trs.add(r);\n\n\t\t// Main-3\n\t\tr = new Region(\"Main-3\");\n\t\tr.addVertex(42.36300333574834, -71.09216990143585);\n\t\tr.addVertex(42.36271794740286, -71.09249176651764);\n\t\tr.addVertex(42.36277343968266, -71.09333934456635);\n\t\tr.addVertex(42.363106392332284, -71.09324278504181);\n\t\trs.add(r);\n\n\t\t// Main-4\n\t\tr = new Region(\"Main-4\");\n\t\tr.addVertex(42.36289235154579, -71.09035672814178);\n\t\tr.addVertex(42.36259110772208, -71.09038891464996);\n\t\tr.addVertex(42.36264660011392, -71.09166564614105);\n\t\tr.addVertex(42.36303504548448, -71.09157981545258);\n\t\trs.add(r);\n\n\t\tLocation l;\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36035940296916);\n\t\tl.setLongitude(-71.0944926738739);\n\t\tlog(String.format(\"Test point on Vassar is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36081921192526);\n\t\tl.setLongitude(-71.09338760375977);\n\t\tlog(String.format(\"Test point on Vassar is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36160405047349);\n\t\tl.setLongitude(-71.0919177532196);\n\t\tlog(String.format(\"Test point on Vassar is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.3619370093201);\n\t\tl.setLongitude(-71.09123110771179);\n\t\tlog(String.format(\"Test point on Vassar is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36234924163794);\n\t\tl.setLongitude(-71.09039425849915);\n\t\tlog(String.format(\"Test point on Vassar is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.3631736981596);\n\t\tl.setLongitude(-71.09626293182373);\n\t\tlog(String.format(\"Test point on Main-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36303893196785);\n\t\tl.setLongitude(-71.09436392784119);\n\t\tlog(String.format(\"Test point on Main-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.362935875273244);\n\t\tl.setLongitude(-71.09288334846497);\n\t\tlog(String.format(\"Test point on Main-2 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.362785253646265);\n\t\tl.setLongitude(-71.09100580215454);\n\t\tlog(String.format(\"Test point on Main-3 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.362476081807);\n\t\tl.setLongitude(-71.0936987400055);\n\t\tlog(String.format(\"Test point on Portland-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36099362133876);\n\t\tl.setLongitude(-71.09561920166016);\n\t\tlog(String.format(\"Test point on Albany-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36154855716084);\n\t\tl.setLongitude(-71.0943853855133);\n\t\tlog(String.format(\"Test point on Albany-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.362008357414815);\n\t\tl.setLongitude(-71.093430519104);\n\t\tlog(String.format(\"Test point on Albany-2 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.362610849206014);\n\t\tl.setLongitude(-71.09221816062927);\n\t\tlog(String.format(\"Test point on Albany-2 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.3611521749309);\n\t\tl.setLongitude(-71.09653115272522);\n\t\tlog(String.format(\"Test point on Mass-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.3604862471552);\n\t\tl.setLongitude(-71.09537243843079);\n\t\tlog(String.format(\"Test point on Mass-2 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\tl = new Location(\"\");\n\t\tl.setLatitude(42.36238887921827);\n\t\tl.setLongitude(-71.09683156013489);\n\t\tlog(String.format(\"Test point on Windsor-1 is in region %s\",\n\t\t\t\tgetRegion(rs, l)));\n\n\t\treturn rs;\n\t}", "public BCDToSevenSegDecoder(Pin PinGrid[][], int x, int y) {\n super (x, y, 10, 13 , 3, 1, 4, 11, 7, 7); // x,y,w,h HitBox x,y,w,h,I,O\n IPin[LE] = new InputPin(\"LE\", 1, 2, 2, 0, 0, 0, ComponentPin.PIN_NEGATIVE); // name, x, y, w, h, inv\n IPin[BI] = new InputPin(\"BI\", 1, 4, 2, 0, 0, 0, ComponentPin.PIN_NEGATIVE); // name, x, y, w, h, inv\n IPin[LT] = new InputPin(\"LT\", 1, 6, 2, 0, 0, 0, ComponentPin.PIN_NEGATIVE); // name, x, y, w, h, inv\n IPin[A] = new InputPin(\"A\", 1, 8, 2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n IPin[B] = new InputPin(\"B\", 1, 9, 2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n IPin[C] = new InputPin(\"C\", 1, 10, 2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n IPin[D] = new InputPin(\"D\", 1, 11, 2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n\n OPin[a] = new OutputPin(\"a\", 9, 3, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[b] = new OutputPin(\"b\", 9, 4, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[c] = new OutputPin(\"c\", 9, 5, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[d] = new OutputPin(\"d\", 9, 6, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[e] = new OutputPin(\"e\", 9, 7, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[f] = new OutputPin(\"f\", 9, 8, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[g] = new OutputPin(\"g\", 9, 9, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n\n ComponentName = \"BCD to 7-segment decoder\";\n ClassName = \"BCDToSevenSegDecoder\";\n RegisterPins (PinGrid, x, y);\n }", "public void ResetClimbEncoders() {\n leftClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n }", "public DitheredTankDriveController(RobotHardware hardware) {\n leftEncoder = hardware.drivetrainHardware.leftEncoder;\n rightEncoder = hardware.drivetrainHardware.rightEncoder;\n }", "@Override\r\n protected void initialize() {\r\n //colorMotor = new CANSparkMax(leftDeviceID, MotorType.kBrushless);\r\n //colorEncoder = colorMotor.getEncoder();\r\n \r\n RobotMap.colorEncoder.setPosition(0); // set the encoder to its \"home\" position or zero \r\n }", "private void createRegions() {\n\t\t// create pitch regions\n\t\tfor (int column = 0; column < REGION_COLUMNS; column++) {\n\t\t\tfor (int row = 0; row < REGION_ROWS; row++) {\n\t\t\t\tthis.regions.add(new Rectangle(column * REGION_WIDTH_IN_PX, row * REGION_HEIGHT_IN_PX,\n\t\t\t\t\t\t REGION_WIDTH_IN_PX, REGION_HEIGHT_IN_PX));\n\t\t\t}\n\t\t}\n\t}", "public Drivetrain() {\n // Use inches as unit for encoder distances\n m_leftEncoder.setDistancePerPulse(initialDistancePerPulse);\n m_rightEncoder.setDistancePerPulse(initialDistancePerPulse);\n resetEncoders();\n }", "@Override\n public void init() {\n imu = new IMU(hardwareMap, \"imu\");\n left = hardwareMap.get(DcMotor.class, \"left\");\n right = hardwareMap.get(DcMotor.class, \"right\");\n\n left.setDirection(DcMotorSimple.Direction.FORWARD);\n right.setDirection(DcMotorSimple.Direction.REVERSE);\n }", "public void resetEncoders() {\n m_frontLeft.resetEncoders();\n m_rearLeft.resetEncoders();\n m_frontRight.resetEncoders();\n m_rearRight.resetEncoders();\n }", "private void setIMUParameters(){\n BNO055IMU.Parameters parameters = getIMUParameters();\n imu.initialize(parameters);\n }", "C7716a mo24085b();", "public final void mo115216i() {\n this.f119285d = null;\n this.f119303w = null;\n Arrays.fill(this.f119297q, -1);\n this.f119298r = 0;\n mo115190b();\n }", "public SwerveDrive() {\n //TODO:properly construct the swerve modules, and put then in an array, int already in Constants\n // frontLeft = new SwerveModule();\n // rearLeft = new SwerveModule();\n // rearRight = new SwerveModule();\n // frontRight = new SwerveModule();\n ////This may seem repetitive, but it makes clear which module is which.\n // swerveModules = new SwerveModule[]{\n // frontLeft,\n // rearLeft,\n // rearRight,\n // frontRight\n // };\n \n //TODO:Construct the IMU object, alreeady named imu\n\n }", "public void init(HardwareMap ahwMap) {\n // Save reference to Hardware map\n hwMap = ahwMap;\n\n // Define and Initialize Motors\n leftDriveBack = hwMap.get(DcMotor.class, \"left_drive_back\");\n rightDriveBack = hwMap.get(DcMotor.class, \"right_drive_back\");\n leftDriveFront = hwMap.get(DcMotor.class, \"left_drive_front\");\n rightDriveFront = hwMap.get(DcMotor.class, \"right_drive_front\");\n leftDriveBack.setDirection(DcMotor.Direction.REVERSE);\n rightDriveBack.setDirection(DcMotor.Direction.FORWARD);\n leftDriveFront.setDirection(DcMotor.Direction.REVERSE);\n rightDriveFront.setDirection(DcMotor.Direction.FORWARD);\n\n resetEncoders();\n\n initMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Set all motors to zero power\n leftDriveBack.setPower(0);\n rightDriveBack.setPower(0);\n leftDriveFront.setPower(0);\n rightDriveFront.setPower(0);\n\n\n //arm\n arm = hwMap.get(DcMotor.class, \"arm\");\n //wrist = hwMap.get(Servo.class, \"wrist\");\n\n //wrist.setDirection(Servo.Direction.REVERSE);\n //wrist.scaleRange(0, 1);\n //wrist.setPosition(WRIST_DEFAULT_VALUE);\n\n arm.setDirection(DcMotor.Direction.REVERSE);\n arm.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n arm.setPower(0);\n\n //claws\n leftClaw = hwMap.get(Servo.class, \"left_claw\");\n rightClaw = hwMap.get(Servo.class, \"right_claw\");\n this.leftClaw.scaleRange(0, 1);\n this.rightClaw.scaleRange(0, 1);\n\n this.leftClaw.setPosition(LEFT_CLAW_START);\n this.rightClaw.setPosition(RIGHT_CLAW_START);\n\n //jewelkicker\n jewelKicker = hwMap.get(Servo.class, \"kicker\");\n this.jewelKicker.scaleRange(0, 1);\n this.jewelKicker.setPosition(KICKER_UP_VALUE);\n\n }", "private void driveForwardEnc()\r\n\t{\r\n\t\t//drive.setPos(0, 0, Config.Auto.encDriveForwardDistance, Config.Auto.encDriveForwardDistance);\r\n\t}", "public void runOpMode() {\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n robot.leftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n idle();\n\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Send telemetry message to indicate successful Encoder reset\n telemetry.addData(\"Path0\", \"Starting at %7d :%7d\",\n robot.leftMotor.getCurrentPosition(),\n robot.rightMotor.getCurrentPosition());\n telemetry.addData(\"Gyro Heading:\", \"%.4f\", getHeading());\n telemetry.update();\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n\n parameters.vuforiaLicenseKey = \"Adiq0Gb/////AAAAme76+E2WhUFamptVVqcYOs8rfAWw8b48caeMVM89dEw04s+/mRV9TqcNvLkSArWax6t5dAy9ISStJNcnGfxwxfoHQIRwFTqw9i8eNoRrlu+8X2oPIAh5RKOZZnGNM6zNOveXjb2bu8yJTQ1cMCdiydnQ/Vh1mSlku+cAsNlmfcL0b69Mt2K4AsBiBppIesOQ3JDcS3g60JeaW9p+VepTG1pLPazmeBTBBGVx471G7sYfkTO0c/W6hyw61qmR+y7GJwn/ECMmXZhhHkNJCmJQy3tgAeJMdKHp62RJqYg5ZLW0FsIh7cOPRkNjpC0GmMCMn8AbtfadVZDwn+MPiF02ZbthQN1N+NEUtURP0BWB1CmA\";\n\n\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.FRONT;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n telemetry.addData(\">\", \"Press Play to start\");\n telemetry.update();\n\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n relicTrackables.activate();\n\n //while (opModeIsActive()) {\n\n /**\n * See if any of the instances of {@link relicTemplate} are currently visible.\n * {@link RelicRecoveryVuMark} is an enum which can have the following values:\n * UNKNOWN, LEFT, CENTER, and RIGHT. When a VuMark is visible, something other than\n * UNKNOWN will be returned by {@link RelicRecoveryVuMark#from(VuforiaTrackable)}.\n */\n RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.from(relicTemplate);\n while (vuMark == RelicRecoveryVuMark.UNKNOWN) {\n vuMark = RelicRecoveryVuMark.from(relicTemplate);\n /* Found an instance of the template. In the actual game, you will probably\n * loop until this condition occurs, then move on to act accordingly depending\n * on which VuMark was visible. */\n }\n telemetry.addData(\"VuMark\", \"%s visible\", vuMark);\n telemetry.update();\n sleep(550);\n\n //switch (vuMark) {\n // case LEFT: //RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.LEFT;\n // coLumn = 2;\n // case CENTER:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.CENTER;\n // coLumn = 1;\n // case RIGHT:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.RIGHT;\n // coLumn = 0;\n //}\n if ( vuMark == RelicRecoveryVuMark.LEFT) {\n coLumn = 2;\n }\n else if(vuMark == RelicRecoveryVuMark.RIGHT){\n coLumn = 0;\n }\n else if(vuMark == RelicRecoveryVuMark.CENTER){\n coLumn = 1;\n }\n\n\n telemetry.addData(\"coLumn\", \"%s visible\", coLumn);\n telemetry.update();\n sleep(550);\n\n\n\n//if jewej is red 1 if jewel is blue 2\n\n // if(jewel == 1) {\n // gyroturn(-10, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //gyroturn(-2, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n //else if(jewel == 2){\n // gyroturn(10, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n // gyroturn(-2, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[0][coLumn], disandTurn[0][coLumn], 5.0); // S1: Forward 24 Inches with 5 Sec timeout shoot ball\n\n gyroturn(disandTurn[1][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[0], -turndistance[0], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[2][coLumn], disandTurn[2][coLumn], 5.0); // S3: Forward 43.3 iNCHES\n\n gyroturn(disandTurn[3][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[4][coLumn], disandTurn[4][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n gyroturn(disandTurn[5][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[6][coLumn], disandTurn[6][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n\n Outake();\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[7][coLumn], disandTurn[7][coLumn], 5.0);// S6: Forward 48 inches with 4 Sec timeout\n }", "public void execute(OutputManager om) {\n\n int numRegions = allROIs.length;\n \n \n // get the voxel classification\n // either from a voxel class map or from a brain / background segmentation\n int[][][] vc = new int[xDataDim][yDataDim][zDataDim];\n \n // number of PDs in each voxel (for Bayesian images)\n int[][][] voxelNumPDs = new int[xDataDim][yDataDim][zDataDim];\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n vc[i][j][k] = 2;\n voxelNumPDs[i][j][k] = 1;\n }\n }\n }\n \n if (CL_Initializer.bgMaskFile != null) {\n \n if (ImageHeader.imageExists(CL_Initializer.bgMaskFile)) {\n if ( !CL_Initializer.headerTemplate.sameSpace(CL_Initializer.bgMaskFile) ) {\n throw new LoggedException(\"Brain mask must be in the same voxel space as the input data\");\n }\n }\n\n CL_Initializer.initMaskSource();\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n \n double maskValue = CL_Initializer.bgMask.nextVoxel()[0];\n \n vc[i][j][k] = maskValue > 0.0 ? 2 : -1;\n voxelNumPDs[i][j][k] = maskValue > 0.0 ? 1 : 0;\n }\n }\n }\n \n }\n \n \n // use VC from file if we have it - note this overrides the bgmask\n\n // This needs generalizing to support NIfTI files / other formats. Ideally it should be decoupled from the\n // SH order (which is ambiguous over order 4 anyhow), it should be simply the number of PDs in the voxel\n //\n // Actually doing this will require work to the TractographyImage tree and other classes\n //\n if (CL_Initializer.voxelClassMap != null) {\n vc = new int[xDataDim][yDataDim][zDataDim];\n \n DataSource vcSource = ExternalDataSource.getDataSource(CL_Initializer.voxelClassMap, 1, \"int\");\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n vc[i][j][k] = (int)vcSource.nextVoxel()[0];\n }\n }\n }\n }\n \n // get the anisotropy map, if any\n //\n // Could be FA or any scalar image where we cease tracking below a threshold\n double[][][] anisMap = null;\n \n if (anisMapFile != null) {\n if (ImageHeader.imageExists(anisMapFile)) {\n try {\n \n ImageHeader ih = ImageHeader.readHeader(anisMapFile);\n\n \n if (!CL_Initializer.headerTemplate.sameSpace(ih)) {\n throw new LoggedException(\"Anisotropy image must be in the same voxel space as the input data\");\n }\n\n\n anisMap = ih.readSingleVolumeData();\n }\n catch (IOException e) {\n throw new LoggedException(e);\n }\n }\n else {\n anisMap = new double[xDataDim][yDataDim][zDataDim];\n \n DataSource anisSource =\n ExternalDataSource.getDataSource(anisMapFile, 1, CL_Initializer.inputDataType);\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n anisMap[i][j][k] = anisSource.nextVoxel()[0];\n }\n }\n }\n \n }\n }\n\n\n // set up the image\n \n TractographyImage image = null;\n \n switch (imageType) {\n\n\tcase BEDPOSTX : case BEDPOSTX_DYAD :\n\n\t boolean probabilistic = ( imageType == ImageType.BEDPOSTX ); \n\t \n\t image = BedpostxTractographyImage.getTractographyImage(bedpostxDir, probabilistic, bedpostxMinF, anisMap, anisThresh,\n\t\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n\t \n\t break;\n\n \n case REPBS_DT: case REPBS_MULTITENSOR: \n \n CL_Initializer.initImagingScheme();\n \n \n image =\n RepBS_DWI_TractographyImage.getTractographyImage(CL_Initializer.bsDataFiles,\n CL_Initializer.inputDataType,\n CL_Initializer.imPars,\n CL_Initializer.inversionIndices,\n vc, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n break;\n \n \n case WILDBS_DT:\n\t CL_Initializer.initImagingScheme();\n \n\t image =\n\t\tDT_WildBS_DWI_TractographyImage.getTractographyImage(CL_Initializer.inputFile,\n\t\t\t\t\t\t\t\t CL_Initializer.inputDataType,\n\t\t\t\t\t\t\t\t CL_Initializer.imPars,\n\t\t\t\t\t\t\t\t vc, anisMap, anisThresh, \n\t\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n\t break;\n \n \n \n case PICO :\n \n image = PICoTractographyImage.getTractographyImage\n (CL_Initializer.inputFile, CL_Initializer.inputDataType, CL_Initializer.numPDsIO,\n picoPDF, anisMap, anisThresh, new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n break;\n \n case BAYESDIRAC: case BAYESDIRAC_DT :\n \n CL_Initializer.initImagingScheme();\n \n // Friman Bayesian method\n // add anisotropy map option\n\n BayesDataModel dataModel = imageType == ImageType.BAYESDIRAC ? BayesDataModel.BALL_STICK : BayesDataModel.CYL_SYMM_DT;\n\n BayesDiracTractographyImage bi = BayesDiracTractographyImage.getTractographyImage\n (CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.imPars, dataModel, voxelNumPDs, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, CL_Initializer.pointSetInd, ran);\n \n if (curvePriorK > 0.0) {\n bi.setCurvePriorKappa(curvePriorK);\n }\n if (curvePriorG > 0.0) {\n bi.setCurvePriorGamma(curvePriorG);\n }\n \n if (externalPriorImageFile != null) {\n PICoTractographyImage ePrior = PICoTractographyImage.getTractographyImage\n (externalPriorImageFile, externalPriorDataType, CL_Initializer.numPDsIO,\n picoPDF, anisMap, anisThresh, new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n bi.setExternalPriors(ePrior);\n }\n \n image = bi;\n \n break;\n \n case SF_PEAK :\n image =\n SF_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.numPDsIO, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n \n case DT: case MULTITENSOR :\n image =\n DT_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.maxTensorComponents, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n\n case DWI_DT : case DWI_MULTITENSOR:\n\n CL_Initializer.initImagingScheme();\n\n image =\n DWI_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.imPars, CL_Initializer.inversionIndices,\n vc, anisMap, anisThresh, \n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n\n\tcase VECTOR : \n\n\t image = PD_TractographyImage.getTractographyImage(vectorFiles, CL_Initializer.inputDataType,\n\t\t\t\t\t\t\t anisMap, anisThresh, \n\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n\t break;\n \n default : throw new LoggedException(\"Unsupported image type : \" + imageType);\n \n }\n \n \n // Set up the interpolation\n\n ImageInterpolator interp = null;\n\n \n switch (dataInterpolation) {\n\n\n case NEAREST_NEIGHBOUR: \n \n interp = new NearestNeighbourInterpolator(image);\n\n break;\n\n case NEIGHBOUR_CHOICE: \n\n interp = new NeighbourChoiceInterpolator(image, ran);\n\n break;\n\n case DWI_TRILINEAR: \n\n interp = new DWI_LinearInterpolator((DWI_TractographyImage)image);\n\n break;\n\n case VECTOR_TRILINEAR: \n\n interp = new VectorLinearInterpolator(image);\n\n break;\n\n case TEND_NN: case TEND_NC:\n\n // how to interpolate the tensor data itself, in order to provide\n // the tensor for the TEND term\n TensorInterpolator dataInterp = null;\n\n if (dataInterpolation == DataInterpolation.TEND_NC) {\n dataInterp = new DT_NC_Interpolator((TensorTractographyImage)image, ran);\n }\n else {\n dataInterp = new DT_NN_Interpolator((TensorTractographyImage)image);\n }\n\n if (tendF_File != null) {\n try { \n ImageHeader ih = ImageHeader.readHeader(tendF_File);\n \n interp = new TendInterpolator((TensorTractographyImage)image, dataInterp, ih.readSingleVolumeData(), tendG);\n }\n catch (IOException e) {\n throw new LoggedException(e);\n\n }\n \n }\n else {\n interp = new TendInterpolator((TensorTractographyImage)image, dataInterp, tendF, tendG); \n }\n \n break;\n\n default: throw new LoggedException(\"Unsupported interpolation : \" + dataInterpolation);\n\n\n }\n\n \n // set up the tracker\n\n FibreTracker tracker = null;\n\n\n switch (trackingAlgorithm) {\n\n case FACT:\n \n tracker = new FACT_FibreTracker(image);\n \n break;\n \n case EULER: \n \n tracker = new EulerFibreTracker(interp, stepSize); \n\n break;\n\n case RK4: \n\n tracker = new RK4FibreTracker(interp, stepSize);\n\n break;\n }\n\n tracker.setCurveCheckInterval(checkCurveLength);\n tracker.setIP_Threshold(ipThresh);\n \n \n // And finally, do the tracking\n \n regions : for (int region = 0; region < allROIs.length; region++) {\n\n RegionOfInterest roi = allROIs[region];\n \n if (regionIndex > -1) {\n if (roi.getRegionLabel() != regionIndex) {\n continue;\n }\n }\n \n \n int outputRegionID = roi.getRegionLabel();\n \n \n // points defined in Camino space\n Point3D[] seeds = roi.getSeedPoints();\n \n if (!silent) {\n System.err.println(\"Processing ROI \" + (region + 1) + \" of \" + numRegions);\n }\n \n FileOutputStream fout = null;\n DataOutputStream dout = null;\n \n try {\n \n if (outputRoot == null) {\n dout = om.getOutputStream();\n }\n else {\n \n if (gzip) {\n fout = new FileOutputStream(outputRoot + outputRegionID + \".Bfloat.gz\");\n dout = new DataOutputStream(new GZIPOutputStream(fout, 1024*1024*16));\n \n }\n else {\n fout = new FileOutputStream(outputRoot + outputRegionID + \".Bfloat\");\n dout = new DataOutputStream\n (new BufferedOutputStream(fout, 1024*1024*16));\n }\n }\n \n \n \n \n seed: for (int sp = 0; sp < seeds.length; sp++) {\n \n if (!silent) {\n System.err.print(\"\\rProcessing seed \" + (sp + 1) + \" of \" + seeds.length);\n }\n \n Point3D seedPoint = seeds[sp];\n \n if (!tracker.inBounds(seedPoint)) {\n logger.warning(\"Seed point \\n\\t\" + seedPoint + \"\\n is outside the diffusion image space, ignoring\");\n continue seed;\n }\n\n int xVox = (int)(seedPoint.x / xVoxelDim);\n int yVox = (int)(seedPoint.y / yVoxelDim);\n int zVox = (int)(seedPoint.z / zVoxelDim);\n \n int numPDs = image.numberOfPDs(xVox, yVox, zVox);\n \n // if number of PDs is zero, track once\n // tracker will return the seed point\n numPDs = numPDs == 0 ? 1 : numPDs;\n \n for (int p = 0; p < numPDs; p++) {\n \n for (int i = 0; i < iterations; i++) {\n \n Tract t = tracker.trackFromSeed(seedPoint, p);\n \n // warp tracts to physical space\n t.transformToPhysicalSpace(voxelToPhysicalTrans, xVoxelDim, yVoxelDim, zVoxelDim);\n \n t.writeRaw(dout);\n \n }\n \n }\n \n } // end for seedpoints\n \n if (!silent) {\n System.err.println(\"\\n\");\n }\n \n if (outputRoot != null) {\n // want to close file\n dout.close();\n }\n \n }\n catch(IOException e) {\n throw new LoggedException(e);\n }\n \n } // end for all ROIs\n \n // close om stream\n if(om != null)\n om.close();\n \n }", "public void resetEncoders() {\n leftEncoder.setPosition(0);\n rightEncoder.setPosition(0);\n }", "@Override\n public void init() {\n leftDrive = hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = hardwareMap.get(DcMotor.class, \"right_drive\");\n }", "public boolean encoderDrive(int encoderDelta, driveStyle drive, double motorPower, double timeout, DcMotor[] motors)\n {\n\n\n switch(drive)\n {\n case FORWARD:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, -motorPower, 0)[0]);\n motors[1].setPower(setPower(0, -motorPower, 0)[1]);\n motors[2].setPower(setPower(0, -motorPower, 0)[2]);\n motors[3].setPower(setPower(0, -motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n\n\n }\n\n case BACKWARD:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, motorPower, 0)[0]);\n motors[1].setPower(setPower(0, motorPower, 0)[1]);\n motors[2].setPower(setPower(0, motorPower, 0)[2]);\n motors[3].setPower(setPower(0, motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case STRAFE_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (encoderReadingLB - encoderDelta))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case STRAFE_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(motorPower, 0, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case FORWARD_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, -motorPower, 0)[0]);\n motors[1].setPower(setPower(-motorPower, -motorPower, 0)[1]);\n motors[2].setPower(setPower(-motorPower, -motorPower, 0)[2]);\n motors[3].setPower(setPower(-motorPower, -motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case FORWARD_RIGHT:\n {\n double encoderReadingRB = motors[1].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, -motorPower, 0)[0]);\n motors[1].setPower(setPower(motorPower, -motorPower, 0)[1]);\n motors[2].setPower(setPower(motorPower, -motorPower, 0)[2]);\n motors[3].setPower(setPower(motorPower, -motorPower, 0)[3]);\n\n while (motors[1].getCurrentPosition() >= (-encoderDelta + encoderReadingRB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case BACKWARD_LEFT:\n {\n double encoderReadingRB = motors[1].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, motorPower, 0)[0]);\n motors[1].setPower(setPower(-motorPower, motorPower, 0)[1]);\n motors[2].setPower(setPower(-motorPower, motorPower, 0)[2]);\n motors[3].setPower(setPower(-motorPower, motorPower, 0)[3]);\n\n while (motors[1].getCurrentPosition() <= (encoderDelta + encoderReadingRB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case BACKWARD_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, motorPower, 0)[0]);\n motors[1].setPower(setPower(motorPower, motorPower, 0)[1]);\n motors[2].setPower(setPower(motorPower, motorPower, 0)[2]);\n motors[3].setPower(setPower(motorPower, motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case PIVOT_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, 0, -motorPower)[0]);\n motors[1].setPower(setPower(0, 0, -motorPower)[1]);\n motors[2].setPower(setPower(0, 0, -motorPower)[2]);\n motors[3].setPower(setPower(0, 0, -motorPower)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case PIVOT_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, 0, motorPower)[0]);\n motors[1].setPower(setPower(0, 0, motorPower)[1]);\n motors[2].setPower(setPower(0, 0, motorPower)[2]);\n motors[3].setPower(setPower(0, 0, motorPower)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n\n }\n\n return true;\n }", "public void init(HardwareMap ahwMap) {\n // Save reference to Hardware map\n hwMap = ahwMap;\n\n // Define and Initialize Motors\n// frontLeft = hwMap.get(DcMotor.class, \"frontLeft\");\n// frontRight = hwMap.get(DcMotor.class, \"frontRight\");\n// backLeft = hwMap.get(DcMotor.class, \"backLeft\");\n// lift = hwMap.get(DcMotor.class, \"lift\");\n// backRight = hwMap.get(DcMotor.class, \"backRight\");\n\n leftIntake = hwMap.get(DcMotor.class, \"leftIntake\");\n rightIntake = hwMap.get(DcMotor.class, \"rightIntake\");\n dropper = hwMap.get(DcMotor.class, \"dropper\");\n\n\n //range = hwMap.get(ModernRoboticsI2cRangeSensor.class, \"range\");\n gyro = (ModernRoboticsI2cGyro)hwMap.gyroSensor.get(\"gyro\");\n //color = hwMap.get(ModernRoboticsI2cColorSensor.class, \"color\");\n\n frontLeft.setDirection(DcMotor.Direction.REVERSE); // Set to REVERSE if using AndyMark motors\n frontRight.setDirection(DcMotor.Direction.FORWARD);// Set to FORWARD if using AndyMark motors\n backLeft.setDirection(DcMotor.Direction.REVERSE); // Set to REVERSE if using AndyMark motors\n backRight.setDirection(DcMotor.Direction.FORWARD);// Set to FORWARD if using AndyMark motors\n\n // Set all motors to zero power\n frontLeft.setPower(0);\n frontRight.setPower(0);\n backLeft.setPower(0);\n backRight.setPower(0);\n leftIntake.setPower(0);\n rightIntake.setPower(0);\n dropper.setPower(0);\n\n // Set all motors to run without encoders.\n // May want to use RUN_USING_ENCODERS if encoders are installed.\n frontLeft.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n frontRight.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n backLeft.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n backRight.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n leftIntake.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rightIntake.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n dropper.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n // Define and initialize ALL installed servos.\n\n// claimingArm = hwMap.get(Servo.class, \"claimingArm\");\n// claw1 = hwMap.get(Servo.class, \"claw1\");\n// claw2 = hwMap.get(Servo.class, \"claw2\");\n// samplingArm = hwMap.get(Servo.class, \"samplingArm\");\n\n helper = hwMap.get(Servo.class, \"helper\");\n leftUp = hwMap.get(Servo.class, \"leftUp\");\n rightUp = hwMap.get(Servo.class, \"rightUp\");\n outLeft = hwMap.get(Servo.class, \"outLeft\");\n outRight = hwMap.get(Servo.class, \"outRight\");\n\n// claimingArm.setPosition(0); // find out what servo they are using\n// claw1.setPosition(0);\n// claw2.setPosition(0);\n// samplingArm.setPosition(0);\n\n helper.setPosition(MID_SERVO);\n leftUp.setPosition(MID_SERVO);\n rightUp.setPosition(MID_SERVO);\n outLeft.setPosition(0.5);\n outRight.setPosition(0.5);\n\n dim = hwMap.get(DeviceInterfaceModule.class, \"Device Interface Module 1\");\n\n }", "private boolean aYV() {\n /*\n r4 = this;\n r3 = 1;\n r2 = 0;\n r0 = com.android.common.custom.C0421M.dC();\n r0 = r0.dD();\n r0 = r0.bU();\n if (r0 != 0) goto L_0x001d;\n L_0x0010:\n r0 = r4.aiG;\n r0 = r0.SY();\n r0 = r0.tx();\n if (r0 == 0) goto L_0x001d;\n L_0x001c:\n return r2;\n L_0x001d:\n r0 = r4.aIO;\n if (r0 == 0) goto L_0x0041;\n L_0x0021:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NF();\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = r4.aiG;\n r0 = r0.TE();\n r0 = r0.Ll();\n if (r0 == 0) goto L_0x0041;\n L_0x0039:\n r0 = r4.asP();\n r1 = com.android.common.camerastate.UIState.CAMERA_FAMILY;\n if (r0 != r1) goto L_0x0042;\n L_0x0041:\n return r2;\n L_0x0042:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NP();\n if (r0 != 0) goto L_0x0041;\n L_0x004e:\n r0 = r4.asJ();\n r1 = com.android.common.camerastate.DeviceState.SNAPSHOT_IN_PROGRESS;\n if (r0 == r1) goto L_0x0041;\n L_0x0056:\n r0 = r4.aiG;\n r0 = r0.SQ();\n r1 = com.android.common.cameradevice.C0384o.Jr();\n r1 = r1.Jt();\n if (r0 != r1) goto L_0x0067;\n L_0x0066:\n return r2;\n L_0x0067:\n r0 = r4.aiG;\n r0 = r0.To();\n switch(r0) {\n case 0: goto L_0x0073;\n case 90: goto L_0x0084;\n case 180: goto L_0x0073;\n case 270: goto L_0x0084;\n default: goto L_0x0070;\n };\n L_0x0070:\n r0 = r4.aID;\n return r0;\n L_0x0073:\n r0 = r4.aIK;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIJ;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0081:\n r4.aID = r3;\n goto L_0x0070;\n L_0x0084:\n r0 = r4.aIJ;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIK;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0092:\n r4.aID = r3;\n goto L_0x0070;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.Camera.aYV():boolean\");\n }", "public void ResetArmEncoder() {\n armRotationMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n }", "public interface RobotMap {\n\t// CAN Device IDs\n\n\tpublic static final int WINCH_TALON = 1;\n\t// winch motors\n\n\tpublic static final int LEFT_ALIGN_TALON = 3;\n\tpublic static final int RIGHT_ALIGN_TALON = 4;\n\t// allignment wheels\n\n\tpublic static final int REAR_RIGHT_TALON = 5;\n\tpublic static final int REAR_LEFT_TALON = 6;\n\tpublic static final int FRONT_RIGHT_TALON = 7;\n\tpublic static final int FRONT_LEFT_TALON = 8;\n\t// drivetrain wheels\n\n\tpublic static final int PCM_MAIN = 9;\n\n\t/******************\n ** PNEUMATICS ** \n ******************/ \n\tpublic static final int FLIPPER_RIGHT = 0;\n\tpublic static final int FLIPPER_LEFT = 1;\n\tpublic static final int ARMS_A = 2;\n\tpublic static final int ARMS_B = 3;\n\t// End Pneumatic Channels\n\n\t/******************\n **PID CONTROLLER** \n ******************/ \n public static final double ABS_TOL = 100;\n public static final double P = .4;\n public static final double I = .01;\n public static final double D = 11;\n public static final double OUT_RANGE_L = -0.8;\n public static final double OUT_RANGE_H = 0.8;\n\n}", "public ByteEncoder()\n\t{\n\t\tencodeTargetList = Charset.availableCharsets().keySet();\n\t}", "public void VuforiaOrientator() {\n }", "@Override\n public void runOpMode() {\n try {\n leftfrontDrive = hardwareMap.get(DcMotor.class, \"frontLeft\");\n leftfrontDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n rightfrontDrive = hardwareMap.get(DcMotor.class, \"frontRight\");\n rightfrontDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n leftbackDrive = hardwareMap.get(DcMotor.class, \"backLeft\");\n leftbackDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftbackDrive.setDirection(DcMotor.Direction.REVERSE);\n\n rightbackDrive = hardwareMap.get(DcMotor.class, \"backRight\");\n rightbackDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n lift = hardwareMap.get(DcMotor.class, \"Lift\");\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lift.setDirection(DcMotor.Direction.REVERSE);\n\n markerArm = hardwareMap.get(Servo.class, \"markerArm\");\n\n armActivator = hardwareMap.get(DcMotor.class, \"armActivator\");\n armActivator.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n } catch (IllegalArgumentException iax) {\n bDebug = true;\n }\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\";\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n waitForStart(); //the rest of the code begins after the play button is pressed\n\n sleep(3000);\n\n drive(0.35, 0.5);\n\n turn(90.0f);\n\n drive(1.8, 0.5);\n\n turn(45.0f);\n\n drive(2.5, -0.5);\n\n sleep(1000);\n\n markerArm.setPosition(1);\n\n sleep(1000);\n\n markerArm.setPosition(0);\n\n sleep(1000);\n\n drive(2.5,.75);\n\n turn(179.0f);\n\n drive(1.5, 1.0);\n\n requestOpModeStop(); //end of autonomous\n }", "public DriveTrain() {\n for(int i = 0; i < 2; i++) {\n leftMotors[i] = new CANSparkMax(Constants.LEFT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i] = new CANSparkMax(Constants.RIGHT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i].setInverted(true);\n }\n }", "public void resetEncoders() {\n m_leftEncoder.setPosition(0);\n m_rightEncoder.setPosition(0);\n }", "public void init(HardwareMap ahwMap) {\n // Save reference to Hardware map\n hwMap = ahwMap;\n // left frond drive motor\n try\n {\n\n left_front_drv_Motor = hwMap.dcMotor.get(\"l_f_drv\");\n }\n catch (Exception p_exeception)\n {\n\n\n left_front_drv_Motor = null;\n }\n //left back drive motor\n\n try\n {\n\n left_back_drv_Motor = hwMap.dcMotor.get(\"l_b_drv\");\n }\n catch (Exception p_exeception)\n {\n\n\n left_back_drv_Motor = null;\n }\n // right front drive motor\n try\n {\n\n right_front_drv_Motor = hwMap.dcMotor.get(\"r_f_drv\");\n }\n catch (Exception p_exeception)\n {\n\n right_front_drv_Motor = null;\n }\n //right back drive motor\n try\n {\n\n right_back_drv_Motor = hwMap.dcMotor.get(\"r_b_drv\");\n }\n catch (Exception p_exeception)\n {\n\n\n right_back_drv_Motor = null;\n }\n\n //hinge motor for arm\n\n try\n {\n\n hinge = hwMap.dcMotor.get(\"hinge\");\n }\n catch (Exception p_exeception)\n {\n\n\n hinge = null;\n }\n //hang motor to land\n try\n {\n\n hang_motor = hwMap.dcMotor.get(\"hang\");\n }\n catch (Exception p_exeception)\n {\n\n\n hang_motor= null;\n }\n //intake motor\n try\n {\n\n fly_wheel = hwMap.dcMotor.get(\"intake\");\n }\n catch (Exception p_exeception)\n {\n\n\n hang_motor= null;\n }\n\n // Servos :\n\n\n try\n {\n //v_motor_left_drive = hardwareMap.dcMotor.get (\"l_drv\");\n //v_motor_left_drive.setDirection (DcMotor.Direction.REVERSE);\n marker = hwMap.servo.get(\"marker\");\n if (marker != null) {\n marker.setPosition(SERVO_LEFT_MIN);\n }\n\n\n }\n\n catch (Exception p_exeception)\n {\n //m_warning_message (\"l_drv\");\n // DbgLog.msg (p_exeception.getLocalizedMessage ());\n\n marker = null;\n }\n\n\n //set dc motors to run without an encoder and set intial power to 0\n //l_f_drv\n if (left_front_drv_Motor != null)\n {\n //l_return = left_drv_Motor.getPower ();\n left_front_drv_Motor.setDirection(DcMotor.Direction.FORWARD); // FORWARD was moving it backwards\n left_front_drv_Motor.setPower(0);\n left_front_drv_Motor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n //l_b_drv\n if (left_back_drv_Motor != null)\n {\n //l_return = left_drv_Motor.getPower ();\n left_back_drv_Motor.setDirection(DcMotor.Direction.FORWARD); // FORWARD was moving it backwards\n left_back_drv_Motor.setPower(0);\n left_back_drv_Motor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n\n //r_f_drv\n if (right_front_drv_Motor != null)\n {\n //l_return = left_drv_Motor.getPower ();\n right_front_drv_Motor.setDirection(DcMotor.Direction.FORWARD);// REVERSE was moving it backwards\n right_front_drv_Motor.setPower(0);\n right_front_drv_Motor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n //r_b_drv\n if (right_back_drv_Motor != null)\n {\n //l_return = left_drv_Motor.getPower ();\n right_back_drv_Motor.setDirection(DcMotor.Direction.FORWARD);// REVERSE was moving it backwards\n right_back_drv_Motor.setPower(0);\n right_back_drv_Motor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n //hinge\n if (hinge != null)\n {\n //l_return = left_drv_Motor.getPower ();\n hinge.setPower(0);\n hinge.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n //hang\n if(hang_motor != null)\n\n {\n hang_motor.setPower(0);\n hang_motor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n //intake\n if(fly_wheel != null)\n\n {\n fly_wheel.setPower(0);\n fly_wheel.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n\n/*\ninitalize the colorSensor and colorSensor\n*/\n try {\n colorSensor = hwMap.colorSensor.get(\"color\");\n }\n catch (Exception p_exeception)\n {\n //m_warning_message (\"colr_f\");\n // DbgLog.msg (p_exeception.getLocalizedMessage ());\n colorSensor = null;\n }\n\n\n try {\n LightSensorBottom = hwMap.lightSensor.get(\"ods\");\n }\n catch (Exception p_exeception)\n {\n //m_warning_message (\"ods\");\n // DbgLog.msg (p_exeception.getLocalizedMessage ());\n LightSensorBottom = null;\n }\n\n\n if (colorSensor != null) {\n //ColorFront reads beacon light and is in passive mode\n colorSensor.setI2cAddress(i2CAddressColorFront);\n colorSensor.enableLed(false);\n }\n\n if (LightSensorBottom != null) {\n //OpticalDistance sensor measures dist from the beacon\n LightSensorBottom.enableLed(false);\n }\n\n }", "public MSRRawEncoder(ErasureCoderOptions coderOptions) {\n super(coderOptions);\n\n if (getNumAllUnits() >= RSUtil.GF.getFieldSize()) {\n System.out.println(\n \"Invalid numDataUnits and numParityUnits\");\n }\n // generate the encodeMatrix\n assert getNumAllUnits() % getNumParityUnits() == 0;\n int m = getNumAllUnits() / getNumParityUnits();\n int s = getNumParityUnits();\n int l = (int)Math.pow(s, m);\n encodeMatrix = new byte[getNumAllUnits() * getNumDataUnits() * l * l];\n MSRMatrix = new byte[getNumParityUnits() * getNumAllUnits() * l * l];\n // RSUtil.genCauchyMatrix(encodeMatrix, getNumAllUnits(), getNumDataUnits());\n RSUtil.genMSRMatrix(MSRMatrix, getNumAllUnits(), getNumDataUnits());\n // DumpUtil.dumpMatrix(MSRMatrix, getNumParityUnits()*l, getNumAllUnits()*l);\n RSUtil.genMSREncodeMatrix(MSRMatrix, encodeMatrix, getNumAllUnits(), getNumDataUnits());\n // DumpUtil.dumpMatrix(encodeMatrix, getNumAllUnits()*l, getNumDataUnits()*l);\n gfTables = new byte[getNumAllUnits() * getNumDataUnits() * l * l * 32];\n RSUtil.initTables(getNumDataUnits() * l, getNumParityUnits() * l, encodeMatrix,\n getNumDataUnits() * l * getNumDataUnits() * l, gfTables);\n }", "protected void encoderDrive(double leftInches, double rightInches, double speed, double desiredAngle) {\n if (!doMotors)\n return;\n\n if (desiredAngle >= 0.0f) {\n motorPid.reset();\n motorPid.setSetpoint(0);\n motorPid.setOutputRange(0, speed);\n motorPid.setInputRange(-90, 90);\n motorPid.enable();\n }\n\n float startAngle = getGyroscopeAngle();\n double countsPerInch = COUNTS_PER_MOTOR / (WHEEL_DIAMETER * Math.PI);\n int softStartDuration = 2000; // in milliseconds\n int brakeOffsetOne = (int) (18.0f * countsPerInch);\n int brakeOffsetTwo = (int) (8.0f * countsPerInch);\n\n // Get the starting position of the encoders.\n isDriving = true;\n driveLeftStart = leftDrive.getCurrentPosition();\n driveRightStart = rightDrive.getCurrentPosition();\n\n int leftNew = (int) (leftInches * countsPerInch * RAT_FUDGE);\n int rightNew = (int) (rightInches * countsPerInch * RAT_FUDGE);\n driveLeftTarget = driveLeftStart + leftNew;\n driveRightTarget = driveRightStart + rightNew;\n leftDrive.setTargetPosition(driveLeftTarget);\n rightDrive.setTargetPosition(driveRightTarget);\n\n // Turn On RUN_TO_POSITION\n leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // Compute the braking zones.\n int leftBrakeOne = driveLeftStart + brakeOffsetOne; // how many remaining will trigger it\n int rightBrakeOne = driveRightStart + brakeOffsetOne;\n int leftBrakeTwo = driveLeftStart + brakeOffsetTwo;\n int rightBrakeTwo = driveRightStart + brakeOffsetTwo;\n\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n ElapsedTime motorOnTime = new ElapsedTime();\n boolean keepGoing = true;\n while (opModeIsActive() && keepGoing && (motorOnTime.seconds() < 30)) {\n printStatus();\n\n int leftPos = leftDrive.getCurrentPosition();\n int rightPos = rightDrive.getCurrentPosition();\n\n // soft start\n double currSpeed = speed;\n double elapsed = motorOnTime.milliseconds();\n if (elapsed < softStartDuration) {\n double ratio = elapsed / softStartDuration;\n currSpeed *= ratio;\n }\n\n // Throttle speed down as we approach our target\n int remainingLeft = driveLeftTarget - leftPos;\n int remainingRight = driveRightTarget - rightPos;\n if ((Math.abs(remainingLeft) < brakeOffsetTwo) || (Math.abs(remainingRight) < brakeOffsetTwo)) {\n currSpeed *= 0.25;\n } else if ((Math.abs(remainingLeft) < brakeOffsetOne) || (Math.abs(remainingRight) < brakeOffsetOne)) {\n currSpeed *= 0.5;\n }\n\n // Calculate PID correction = straighten out the line!\n if (desiredAngle >= 0.0f) {\n float currentAngle = getGyroscopeAngle();\n driveAngleOffset = getAngleDifference(currentAngle, (float)desiredAngle);\n driveAngleCorrection = (float) motorPid.performPID(driveAngleOffset);\n if ((leftInches < 0) && (rightInches < 0)) {\n driveAngleCorrection = -driveAngleCorrection;\n }\n }\n\n // Record and apply the desired power level.\n driveLeftSpeed = currSpeed - driveAngleCorrection;\n driveRightSpeed = currSpeed + driveAngleCorrection;\n leftDrive.setPower(Math.abs(driveLeftSpeed));\n rightDrive.setPower(Math.abs(driveRightSpeed));\n\n keepGoing = rightDrive.isBusy() && leftDrive.isBusy();\n }\n\n // Turn off RUN_TO_POSITION\n printStatus();\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n leftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n driveLeftStart = 0;\n driveRightStart = 0;\n driveLeftTarget = 0;\n driveRightTarget = 0;\n driveLeftSpeed = 0.0f;\n driveRightSpeed = 0.0f;\n driveAngleOffset = 0.0f;\n driveAngleCorrection = 0.0f;\n isDriving = false;\n }", "protected void setupImpl()\n {\n hint(DISABLE_DEPTH_TEST);\n font = loadFont(\"Futura-CondensedExtraBold-200.vlw\");\n textFont(font, 200);\n mode = 0;\n\n // Mode 3\n w = width * 2;\n dx = (TWO_PI / period) * xspacing;\n yvalues = new float[w/xspacing];\n\n // Mode 5\n mod = loadImage(\"mod.png\");\n modSizes = new int[scaledBandLevels.length];\n }", "@Override\n public List<Uri> getSlices() {\n final List<Uri> uris = new ArrayList<>();\n\n uris.add(REMOTE_MEDIA_SLICE_URI);\n uris.add(VOLUME_MEDIA_URI);\n Uri controlUri = getExtraControlUri();\n if (controlUri != null) {\n Log.d(TAG, \"add extra control slice\");\n uris.add(controlUri);\n }\n uris.add(MEDIA_OUTPUT_INDICATOR_SLICE_URI);\n uris.add(VOLUME_CALL_URI);\n uris.add(VOLUME_RINGER_URI);\n uris.add(VOLUME_SEPARATE_RING_URI);\n uris.add(VOLUME_NOTIFICATION_URI);\n uris.add(VOLUME_ALARM_URI);\n return uris;\n }", "private void updateEncoders(){\r\n \r\n double min = Double.MAX_VALUE;\r\n double max = Double.MIN_VALUE;\r\n \r\n for(Encoder<T> encoder : encoders){\r\n if(encoder instanceof SimpleEncoder){\r\n SimpleEncoder<T> simpleEncoder = (SimpleEncoder<T>) encoder;\r\n if(simpleEncoder.getMin() < min)\r\n min = simpleEncoder.getMin();\r\n \r\n if(max < simpleEncoder.getMax())\r\n max=simpleEncoder.getMax();\r\n \r\n }\r\n }\r\n \r\n for(Encoder<T> encoder : encoders){\r\n if(encoder instanceof SimpleEncoder){\r\n SimpleEncoder<T> simpleEncoder = (SimpleEncoder<T>) encoder;\r\n simpleEncoder.setMin(min);\r\n simpleEncoder.setMax(max);\r\n }\r\n }\r\n \r\n }", "public void onEncoderClosed();", "public static void init() {\n driveLeft = new VictorSP(1);\r\n LiveWindow.addActuator(\"Drive\", \"Left\", (VictorSP) driveLeft);\r\n \r\n driveRight = new VictorSP(0);\r\n LiveWindow.addActuator(\"Drive\", \"Right\", (VictorSP) driveRight);\r\n \r\n driveMotors = new RobotDrive(driveLeft, driveRight);\r\n \r\n driveMotors.setSafetyEnabled(false);\r\n driveMotors.setExpiration(0.1);\r\n driveMotors.setSensitivity(0.5);\r\n driveMotors.setMaxOutput(1.0);\r\n\r\n driveEncoderLeft = new Encoder(0, 1, true, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderLeft\", driveEncoderLeft);\r\n driveEncoderLeft.setDistancePerPulse(0.053855829);\r\n driveEncoderLeft.setPIDSourceType(PIDSourceType.kRate);\r\n driveEncoderRight = new Encoder(2, 3, false, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderRight\", driveEncoderRight);\r\n driveEncoderRight.setDistancePerPulse(0.053855829);\r\n driveEncoderRight.setPIDSourceType(PIDSourceType.kRate);\r\n driveFrontSonar = new Ultrasonic(4, 5);\r\n LiveWindow.addSensor(\"Drive\", \"FrontSonar\", driveFrontSonar);\r\n \r\n shooterMotor = new VictorSP(3);\r\n LiveWindow.addActuator(\"Shooter\", \"Motor\", (VictorSP) shooterMotor);\r\n \r\n climberMotor = new Spark(2);\r\n LiveWindow.addActuator(\"Climber\", \"Motor\", (Spark) climberMotor);\r\n \r\n gearGrabReleaseSolonoid = new DoubleSolenoid(0, 0, 1);\r\n LiveWindow.addActuator(\"Gear\", \"GrabReleaseSolonoid\", gearGrabReleaseSolonoid);\r\n \r\n powerPanel = new PowerDistributionPanel(0);\r\n LiveWindow.addSensor(\"Power\", \"Panel\", powerPanel);\r\n \r\n cameraMountpan = new Servo(4);\r\n LiveWindow.addActuator(\"CameraMount\", \"pan\", cameraMountpan);\r\n \r\n cameraMounttilt = new Servo(5);\r\n LiveWindow.addActuator(\"CameraMount\", \"tilt\", cameraMounttilt);\r\n \r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n\t\tdriveSonarFront = new SonarMB1010(0);\r\n\t\tLiveWindow.addSensor(\"Drive\", \"SonarFront\", driveSonarFront);\r\n\r\n\t\t//driveGyro = new GyroADXRS453();\r\n\t\tdriveGyro = new ADXRS450_Gyro();\r\n\t\tLiveWindow.addSensor(\"Drive\", \"Gyro\", driveGyro);\r\n\t\tdriveGyro.calibrate();\r\n\t}", "public CANEncoder getRightEncoder() {\n return m_rightEncoder;\n }", "public int getItuRegion() {\n return localItuRegion;\n }", "public void encode(LittleEndianOutput encoder) throws IOException {\n for (FaceRun run : faces) {\n // It isn't necessary to encode the number of faces left for the last run, but since this\n // would only help if there were more than 21 faces, it will be a small overall savings,\n // much smaller than the bound encoding.\n encoder.writeVarint64(S2CellId.NUM_FACES * (long) run.count + run.face);\n }\n }", "private int[] enquadramentoInsercaoDeBytes(int[] quadro) throws Exception {\n System.out.println(\"\\n\\t[Insercao de Bytes]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Insercao de Bytes]\");\n Thread.sleep(velocidade);\n\n final char byteFlagStart = 'S';//Identificar o INICIO do quadro (Start)\n final char byteFlagEnd = 'E';//Identificar o FIM do quadro (End)\n final char byteDeEscape = '/';//Caractere de escape especial\n\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tByte de Inicio de Quadro [\"+byteFlagStart+\"]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tByte de Fim de Quadro [\"+byteFlagEnd+\"]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tByte de Escape de Quadro [\"+byteDeEscape+\"]\\n\");\n Thread.sleep(velocidade);\n\n\n String auxiliar = \"\";\n Boolean SE = true;\n\n for (int inteiro : quadro) {\n\n int quantidadeByte = ManipuladorDeBit.quantidadeDeBytes(inteiro);\n inteiro = ManipuladorDeBit.deslocarBits(inteiro);\n\n int inteiroByte = ManipuladorDeBit.getPrimeiroByte(inteiro);\n\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tIC [\"+(char) inteiroByte+\"] \");\n Thread.sleep(velocidade);\n\n if (inteiroByte == (int) byteFlagStart) {//Inicio do Quadro\n SE = !SE;//Iniciar a Busca pelo Byte de Fim de Quadro\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n quantidadeByte--;\n }\n\n if (!SE) {\n\n for (int i=1; i<=quantidadeByte; i++) {\n int dado = ManipuladorDeBit.getPrimeiroByte(inteiro);\n\n if (dado == (int) byteDeEscape) {//Verificando se o dado eh um Byte de Escape\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"IC [\"+(char) dado+\"] \");\n Thread.sleep(velocidade);\n dado = ManipuladorDeBit.getPrimeiroByte(inteiro);//Adicionando o Byte\n auxiliar += (char) dado;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [\"+dado+\"] \");\n Thread.sleep(velocidade);\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n i++;\n\n } else if (dado == (int) byteFlagEnd) {//Verificando se o dado eh um Byte End\n SE = !SE;//Encontrou o Byte de Fim de Quadro\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"IC [\"+(char) dado+\"]\\n\");\n Thread.sleep(velocidade);\n } else {//Caso for um Byte de Carga Util\n auxiliar += (char) ManipuladorDeBit.getPrimeiroByte(inteiro);\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [\"+dado+\"] \");\n Thread.sleep(velocidade);\n }\n \n }\n\n }\n }\n\n //Novo Quadro de Carga Util\n int[] quadroDesenquadrado = new int[auxiliar.length()];\n //Adicionando as informacoes de Carga Util no QuadroDesenquadrado\n for (int i=0; i<auxiliar.length(); i++) {\n quadroDesenquadrado[i] = (int) auxiliar.charAt(i);\n ManipuladorDeBit.imprimirBits(quadroDesenquadrado[i]);\n }\n\n return quadroDesenquadrado;\n }", "@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n leftFront = hardwareMap.get(DcMotor.class, \"left_front\");\n rightFront = hardwareMap.get(DcMotor.class, \"right_front\");\n leftBack = hardwareMap.get(DcMotor.class, \"left_back\");\n rightBack = hardwareMap.get(DcMotor.class, \"right_back\");\n\n\n leftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n leftBack.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n right = hardwareMap.get(Servo.class, \"right\");\n left = hardwareMap.get(Servo.class, \"left\");\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n leftFront.setDirection(DcMotor.Direction.REVERSE);\n rightFront.setDirection(DcMotor.Direction.FORWARD);\n leftBack.setDirection(DcMotor.Direction.REVERSE);\n rightBack.setDirection(DcMotor.Direction.FORWARD);\n\n leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n digitalTouch = hardwareMap.get(DigitalChannel.class, \"sensor_digital\");\n digitalTouch.setMode(DigitalChannel.Mode.INPUT);\n\n right.setDirection(Servo.Direction.REVERSE);\n\n right.scaleRange(0, 0.25);\n left.scaleRange(0.7, 1);\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n\n servo(0);\n runtime.reset();\n encoderSideways(0.25, -5, -5, 5);\n // drive until touch sensor pressed\n // activate servos to grab platform\n // drive backwards for a while\n // release servos\n // sideways part\n // remember to do red autonomous for repackage org.firstinspires.ftc.teamcode;\n }", "protected void initialize() {\n \t//instantiate PIDs with motor groups\n \t\n \tPIDOutputGroup leftSide = new PIDOutputGroup(new PIDOutput[] {Robot.drive.frontLeftMotor, Robot.drive.backLeftMotor}, new Boolean[] {false, false}, 1.0);\n \t\n \tPIDOutputGroup rightSide = new PIDOutputGroup(new PIDOutput[] {Robot.drive.frontRightMotor, Robot.drive.backRightMotor}, new Boolean[] {true, true}, 1.0);\n\n \t//reset PIDs\n \tRobot.drive.leftEncoder.reset();\n \tRobot.drive.rightEncoder.reset();\n \t\n \t//set PID type\n \tRobot.drive.leftEncoder.setPIDSourceType(PIDSourceType.kRate);\n \tRobot.drive.rightEncoder.setPIDSourceType(PIDSourceType.kRate);\n \t\n \tleftEncoderPID = new PIDController(lEncoderP, lEncoderI, lEncoderD, Robot.drive.leftEncoder, leftSide);\n \t\n \trightEncoderPID = new PIDController(rEncoderP, rEncoderI, rEncoderD, Robot.drive.rightEncoder, rightSide);\n \t\n \tleftEncoderPID.setContinuous();\n \trightEncoderPID.setContinuous();\n \t\n \t\n \tleftEncoderPID.enable();\n \trightEncoderPID.enable();\n \t\n \t\n \t//timer things\n \ttimer = new Timer();\n \ttimer.start();\n \t\n \t//set timer times\n \ttAccelerating = maxVelocity / acceleration;\n \ttCruising = (distance - (Math.pow(maxVelocity, 2) / acceleration)) / maxVelocity;\n \ttTotal = 2 * tAccelerating + tCruising;\n \t\n \t//reset gyro\n \tRobot.gyroscope.reset();\n \t\n \t//set starting state\n \tcurrentState = DriveState.accelerating;\n }", "public void Loop() {\n //if the drive mode is encoders then mirror the rear motors so that we just use the encoders of the front motors\n if(driveMode == DriveMode.Run_With_Encoders){\n rearLeftDrive.setVelocity(frontLeftDrive.getVelocity());\n rearRightDrive.setVelocity(frontRightDrive.getVelocity());\n }\n }", "public interface RobotMap {\n\n /* COMPETITION BOT */\n\n // CAN Talon SRX\n int LEFT_TALON = 7;\n int RIGHT_TALON = 9;\n int LIFT_TALON = 8;\n int CLIMB_TALON = 10;\n\n // CAN Victor SPX\n int LEFT_DRIVE_VICTOR = 1;\n int RIGHT_DRIVE_VICTOR = 3;\n\n // Victor SP PWM ports\n int INTAKE_VICTOR = 0;\n int CLIMB_VICTOR = 1;\n\n // Double Solenoid PCM IDs\n int FORWARD_CHANNEL = 6;\n int REVERSE_CHANNEL = 7;\n\n // Digital Input ports\n int HALL_SENSOR = 0;\n int LIMIT_SWITCH = 1;\n\n // Pneumatics Control Module CAN ID\n int PCM = 0;\n\n\n /* PRACTICE BOT */\n\n /*\n\n // CAN Talon SRX\n int LEFT_TALON = 6;\n int RIGHT_TALON = 1;\n int LIFT_TALON = 2;\n int CLIMB_TALON = 5;\n\n // CAN Victor SPX\n int LEFT_DRIVE_VICTOR = 6;\n int RIGHT_DRIVE_VICTOR = 2;\n\n // Victor SP PWM ports\n int INTAKE_VICTOR = 0;\n int CLIMB_VICTOR = 1;\n\n // Double Solenoid PCM IDs\n int FORWARD_CHANNEL = 6;\n int REVERSE_CHANNEL = 7;\n\n // Digital Input ports\n int HALL_SENSOR = 0;\n int LIMIT_SWITCH = 1;\n\n // Pneumatics Control Module CAN ID\n int PCM = 0;\n\n */\n\n}", "public interface VicarInput extends VicarIOBase\n{\n\n/***********************************************************************\n * Low-level read function, returns a byte array for the given record.\n * The most normal call, to read an entire record, would be\n * <code>x.readRecord(data, 0, 0, 0, 1, line, band);</code>\n * @param data The array to read into\n * @param start Starting position in the record. Normally 0 to read the whole\n * record.\n * @param length Number of pixels to read. If 0, the rest of the record is\n * read.\n * @param offset Offset into the data array at which to put the data.\n * @param pixelStride Offset from one pixel to the next in the array. For\n * example, a stride of 1 has all pixels contiguous while a stride of 3\n * allows band interleaved pixels in the array (pixels read from the file\n * will be put 3 elements apart in the array). This has nothing to do with\n * what is read from the file - only where the data is put in the array.\n * Note that this value is measured in pixels or array elements - not bytes.\n * @param n2 \"Line number\" to read (for BSQ organization). (For BIL: band\n * number, for BIP: sample number). The second dimension's index.\n * @param n3 \"Band number\" to read (for BSQ organization). (For BIL or BIP:\n * line number). The third dimension's index.\n * @throws NonSequentialAccessException (subclass of IOException)\n * @throws IOException\n */\n public void readRecord(byte[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns a short array for the given record.\n * Follow the See Also link for parameters.\n * @see #readRecord(byte[], int, int, int, int, int, int)\n */\n public void readRecord(short[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns an unsigned short array for the given\n * record. Although unsigned short is not a VICAR data type, it is useful\n * for some other formats which use this library. Note that a short array\n * must be used, although the data should be interepreted as unsigned.\n * For this reason, a different method name is needed.\n * <p>\n * Follow the See Also link for parameters.\n * @see #readRecord(byte[], int, int, int, int, int, int)\n */\n public void readRecordUshort(short[] data, int start, int length,\n\t\tint offset, int pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns an int array for the given record.\n * Follow the See Also link for parameters.\n * @see #readRecord(byte[], int, int, int, int, int, int)\n */\n public void readRecord(int[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns a float array for the given record.\n * Follow the See Also link for parameters.\n * @see #readRecord(byte[], int, int, int, int, int, int)\n */\n public void readRecord(float[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns a double array for the given record.\n * Follow the See Also link for parameters.\n * @see #readRecord(double[], int, int, int, int, int, int)\n */\n public void readRecord(double[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n/***********************************************************************\n * Low-level read function, returns complex data in a float array for the\n * given record. Each complex value is stored in two consecutive float\n * elements in the array, so it must be twice as long as you would normally\n * expect, and <code>offset</code> must be multiplied by 2. <code>length</code>\n * is still measured in <em>pixels</em>, so there are 2*<code>length</code>\n * values filled in the array.\n * <p>\n * Follow the See Also link for parameters.\n * @see #readRecord(byte[], int, int, int, int, int, int)\n */\n public void readRecordComp(float[] data, int start, int length, int offset,\n\t\t\tint pixelStride, int n2, int n3) throws IOException;\n\n////////////////////////////////////////////////////////////////////////\n\n/***********************************************************************\n * Provides access to the binary header, which is NLB records at the beginning\n * of the file. This function returns a <code>VicarBinaryLabel</code> object\n * which contains the entire header. From it, you can get a limited-length\n * stream which implements <code>DataInput</code>. This stream automatically\n * translates data types based on BINTFMT and BREALFMT, so e.g. if you call\n * <code>readFloat()</code>, the stream will either return the next four\n * bytes as a float (BREALFMT=IEEE), byte-swap them (BREALFMT=RIEEE), or\n * convert them from VAX format (BREALFMT=VAX). So a typical binary header\n * might be read like this:\n * <pre>\n * VicarBinaryLabel bh = file.getBinaryHeader();\n * DataInput di = bh.getDataInput();\n * int first = di.readInt();\n * short second = di.readShort();\n * byte b[8];\n * for (i=0; i<8; i++) b[i] = di.readByte();\n * String third(b);\n * ... etc ...\n * </pre>\n * The returned stream will signal EOF when the end of the binary header area\n * is reached. You can also access the label buffer directly via\n * <code>VicarBinaryLabel.getBuffer()</code>, but this is not recommended\n * (because no data type translation is done).\n * <p>\n * Internally, the header is copied to a buffer, so the\n * <code>VicarBinaryLabel</code> object will stay valid as long as you\n * need it (i.e., you can read data from the file and the header will still\n * stay valid).\n * <p>\n * If this routine is used with a strictly sequential file, it must be called\n * before any pixel data (or binary prefixes) are read.\n *\n * @return A VicarBinaryLabel that contains the header, or NULL if there is\n * header.\n * @throws NonSequentialAccessException (subclass of IOException)\n * @throws IOException\n * @see VicarBinaryLabel\n */\n public VicarBinaryLabel getBinaryHeader() throws IOException;\n\n/***********************************************************************\n * Provides access to the binary prefix, which is NBB <em>bytes</em> at the\n * beginning of each record. This function returns a\n * <code>VicarBinaryLabel</code> object which contains the entire prefix.\n * From it, you can get a limited-length stream which implements\n * <code>DataInput</code>, and behaves as described in\n * <code>getBinaryHeader()</code>. The stream will signal EOF at the end\n * of the prefix for this record. A buffer is maintained, as with the\n * header, so the <code>VicarBinaryLabel</code> object will stay valid in\n * the future. Direct access to the buffer is possibly but strongly\n * discouraged.\n * <p>\n * If this routine is used with a strictly sequential file, it must be called\n * before the pixel data for this record is read (and of course, after the\n * previous record's data). For this reason, this routine is incompatible\n * with the Tile read functions for strictly sequential files (unless the\n * tile height is 1).\n *\n * @param n2 \"Line number\" to read (for BSQ organization). (For BIL: band\n * number, for BIP: sample number). The second dimension's index.\n * @param n3 \"Band number\" to read (for BSQ organization). (For BIL or BIP:\n * line number). The third dimension's index.\n * @return A VicarBinaryLabel that contains the prefix, or NULL if there is no\n * prefix.\n * @throws NonSequentialAccessException (subclass of IOException)\n * @throws IOException\n * @see #getBinaryHeader()\n * @see VicarBinaryLabel\n */\n public VicarBinaryLabel getBinaryPrefix(int n2, int n3) throws IOException;\n\n////////////////////////////////////////////////////////////////////////\n\n/***********************************************************************\n * High-level read function. Given an x/y position in the file, read a\n * complete tile (size specified by the SampleModel) into the DataBuffer.\n * Data is placed in the SM starting at its origin. If the file does not\n * contain enough data to fill the SM, then only the parts that can be read,\n * are read. No error is returned in this case (it is up to the caller to\n * check the boundary conditions if needed).\n * @throws IOException if there are problems reading the file\n */\n public void readTile(int x, int y, SampleModel m, DataBuffer b)\n\t\t\tthrows IOException;\n\n/***********************************************************************\n * High-level read function. Given an x/y position in the file, and a\n * width/height, read that portion of the file into the given DataBuffer.\n * Data is placed starting at an origin of x_off/y_off within the SampleModel\n * (i.e. x/y is the position in the file to read, x_off/y_off is the position\n * within the buffer to place the data). If the file does not contain enough\n * data to satisfy width/height, then only the parts that can be read, are\n * read. No error is returned in this case (it is up to the caller to\n * check the boundary conditions if needed). However, if the requested\n * width/height (combined with x_off/y_off) will not fit within the SampleModel,\n * an ArrayIndexOutOfBoundsException is thrown.\n * @throws IOException if there are problems reading the file\n */\n public void readTile(int x, int y, int w, int h, int x_off, int y_off,\n\t\t\tSampleModel m, DataBuffer b)\n\t\t\tthrows IOException;\n\n/***********************************************************************\n * High-level read function. Just like the previous readTile, except that\n * an array of band numbers is also provided. Only bands in this array are\n * read. On output, the number of bands actually read will equal the size\n * of this array, i.e. original band numbers are not preserved. If too many\n * bands, or an out-of-range band number is specified, an\n * ArrayIndexOutOfBoundsException is thrown.\n * <p>\n * bandList may be null, in which case all bands are read. Note that for\n * Complex data, each part (real/imaginary) is treated as a separate band.\n * So, a multi-banded Complex file with have 2*nb bands. The bands requested\n * in bandList take this into account, e.g. band 2 in the list is the real\n * part of the file's band 1 (counting from 0), band 5 in the list is the\n * imaginary part of the file's band 3, etc.\n * <p>\n * For BIP data (Band Interleaved by Pixel), it is much more efficient to\n * read all bands at once (i.e. pass bandList as null).\n * @see #readTile(int,int,int,int,int,int,SampleModel,DataBuffer)\n * @throws IOException if there are problems reading the file\n */\n public void readTile(int x, int y, int w, int h, int x_off, int y_off,\n\t\t\tint bandList[],\n\t\t\tSampleModel m, DataBuffer b)\n\t\t\tthrows IOException;\n}", "@Override\r\n\tpublic void carDriveModeChange() {\n\t\t\r\n\t}", "public void Encode_Image1() {\n\n for (String s : Arraylist_image_encode) {\n listString += s + \"IMAGE:\";\n }\n\n }", "public double getEncoderPosition() {\n SmartDashboard.putNumber(\"Raw Encoder Value\", armMotor.getSelectedSensorPosition(0));\n return armMotor.getSelectedSensorPosition(0) * Const.kArmTalon4096Unit2Deg * Const.kArmGearRatioEncoder2Arm;\n }", "private BNO055IMU.Parameters getIMUParameters(){\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\"; // see the calibration sample opmode\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n parameters.mode = BNO055IMU.SensorMode.IMU;\n\n return parameters;\n }", "static void gfx_fix()\n\t{\n for(int i=0; i<0x4000; i++)\n {\n memory_region(REGION_GFX3).write(0x2c000+i, 0xff);\n }\n\t}", "public void init() {\n//\t\tint anglesToEncTicks = (int) ((90 - currentAngle) * encoderTicksPerRev);\n//\t\tarmMotor.setEncPosition(anglesToEncTicks);\n\t\twhile (armMotor.isFwdLimitSwitchClosed() != true) {\n\t\t\tarmMotor.set(.2);\n\t\t}\n\t\tSystem.out.println(\"Calibrated!\");\n\t\tarmMotor.setEncPosition(0);\n\t}", "public final void mo92083O() {\n }", "public final void mo21796U() {\n this.f24515R = true;\n if (this.f24530b != null) {\n this.f24530b.mo22072m();\n this.f24530b.mo22063d();\n }\n if (this.f24532d != null) {\n this.f24532d.mo21749r();\n this.f24532d.mo21723b();\n }\n mo21833b(\"dispose\");\n }", "private int[] enquadramentoContagemDeCaracteres(int[] quadro) throws Exception {\n System.out.println(\"\\n\\t[Contagem de Caracteres]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Contagem de Caracteres]\\n\");\n Thread.sleep(velocidade);\n\n int informacaoDeControle = ManipuladorDeBit.getPrimeiroByte(quadro[0]);//Quantidade de Bits do quadro\n //Quantidade de Bits de carga util do quadro\n int quantidadeDeBitsCargaUtil = informacaoDeControle;\n System.out.println(\"IC: \" + informacaoDeControle);\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tIC [\"+informacaoDeControle+\"] \");\n\n\n int novoTamanho = quantidadeDeBitsCargaUtil/8;\n\n int[] quadroDesenquadrado = new int[novoTamanho];//Novo vetor de Carga Util\n int posQuadro = 0;//Posicao do Vetor de Quadros\n\n int cargaUtil = 0;//Nova Carga Util\n\n quadro[0] = ManipuladorDeBit.deslocarBits(quadro[0]);//Deslocando os bits 0's a esquerda\n //Primeiro inteiro do Quadro - Contem a informacao de Controle IC nos primeiros 8 bits\n quadro[0] <<= 8;//Deslocando 8 bits para a esquerda, descartar a IC\n\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [ \");\n for (int i=1; (i<=3) && (i<=novoTamanho); i++) {\n cargaUtil = ManipuladorDeBit.getPrimeiroByte(quadro[0]);\n quadroDesenquadrado[posQuadro++] = cargaUtil;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(cargaUtil + \" \");\n quadro[0] <<= 8;//Desloca 8 bits para a esquerda\n }\n\n Thread.sleep(velocidade);\n\n //Caso o quadro for composto por mais de um inteiro do vetor\n for (int i=1, quantidadeByte; posQuadro<novoTamanho; i++) {\n quantidadeByte = ManipuladorDeBit.quantidadeDeBytes(quadro[i]);\n quadro[i] = ManipuladorDeBit.deslocarBits(quadro[i]);\n\n for (int x=1; (x<=quantidadeByte) && (x<=4); x++) {\n cargaUtil = ManipuladorDeBit.getPrimeiroByte(quadro[i]);\n quadroDesenquadrado[posQuadro++] = cargaUtil;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(cargaUtil + \" \");\n quadro[i] <<= 8;//Desloca 8 bits para a esquerda\n }\n Thread.sleep(velocidade);\n }\n \n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"]\\n\");\n Thread.sleep(velocidade);\n\n return quadroDesenquadrado;\n }", "public void initializeHardware(HardwareMap hwMap) {\n\n // Save reference to Hardware map\n this.hwMap = hwMap;\n period.reset();\n\n // Define Motors\n frontLeftMotor = hwMap.dcMotor.get(\"front_left\");\n frontRightMotor = hwMap.dcMotor.get(\"front_right\");\n backLeftMotor = hwMap.dcMotor.get(\"back_left\");\n backRightMotor = hwMap.dcMotor.get(\"back_right\");\n clawServo = hwMap.servo.get(\"claw\");\n armServo = hwMap.servo.get(\"arm\");\n barrierServo = hwMap.servo.get(\"barrier_servo\");\n intake = hwMap.dcMotor.get(\"intake\");\n shooter = hwMap.dcMotor.get(\"shooter\");\n\n\n // Initialize Motors\n\n // ******MAY CHANGE ******* Fix Forward/Reverse under testing\n frontLeftMotor.setDirection(DcMotor.Direction.REVERSE);\n frontRightMotor.setDirection(DcMotor.Direction.FORWARD);\n backLeftMotor.setDirection(DcMotor.Direction.REVERSE);\n backRightMotor.setDirection(DcMotor.Direction.FORWARD);\n intake.setDirection(DcMotor.Direction.REVERSE);\n shooter.setDirection(DcMotor.Direction.REVERSE);\n\n\n if(encoder) {\n // May use RUN_USING_ENCODERS if encoders are installed\n frontLeftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n frontRightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n backLeftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n backRightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n //intake.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n //shooter.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n frontLeftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n frontRightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n backLeftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n backRightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n //intake.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n //shooter.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n }\n else{\n frontLeftMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n frontRightMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n backLeftMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n backRightMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n //intake.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n //shooter.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n\n\n frontLeftMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n frontRightMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n backLeftMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n backRightMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n //intake.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n //shooter.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n frontLeftMotor.setPower(0);\n frontRightMotor.setPower(0);\n backLeftMotor.setPower(0);\n backRightMotor.setPower(0);\n\n //intake.setPower(0);\n //shooter.setPower(0);\n\n\n\n //Define Sensors\n\n imu = hwMap.get(BNO055IMU.class, \"imu\");\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n\n parameters.mode = BNO055IMU.SensorMode.IMU; //inertial measurement unit\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES; //angle unit to degrees\n parameters.loggingEnabled = false; //will log values if true\n imu.initialize(parameters); //initializing using above parameters\n\n //Define Servos\n }", "Base64Binary getCarrierAIDC();", "@Override public void init() {\n /// Important Step 2: Get access to a list of Expansion Hub Modules to enable changing caching methods.\n all_hubs_ = hardwareMap.getAll(LynxModule.class);\n /// Important Step 3: Option B. Set all Expansion hubs to use the MANUAL Bulk Caching mode\n for (LynxModule module : all_hubs_ ) {\n switch (motor_read_mode_) {\n case BULK_READ_AUTO:\n module.setBulkCachingMode(LynxModule.BulkCachingMode.AUTO);\n break;\n case BULK_READ_MANUAL:\n module.setBulkCachingMode(LynxModule.BulkCachingMode.MANUAL);\n break;\n case BULK_READ_OFF:\n default:\n module.setBulkCachingMode(LynxModule.BulkCachingMode.OFF);\n break;\n }\n }\n\n /// Use the hardwareMap to get the dc motors and servos by name.\n\n motorLF_ = hardwareMap.get(DcMotorEx.class, lfName);\n motorLB_ = hardwareMap.get(DcMotorEx.class, lbName);\n motorRF_ = hardwareMap.get(DcMotorEx.class, rfName);\n motorRB_ = hardwareMap.get(DcMotorEx.class, rbName);\n motorLF_.setDirection(DcMotor.Direction.REVERSE);\n motorLB_.setDirection(DcMotor.Direction.REVERSE);\n\n // map odometry encoders\n verticalLeftEncoder = hardwareMap.get(DcMotorEx.class, verticalLeftEncoderName);\n verticalRightEncoder = hardwareMap.get(DcMotorEx.class, verticalRightEncoderName);\n horizontalEncoder = hardwareMap.get(DcMotorEx.class, horizontalEncoderName);\n\n if( USE_ENCODER_FOR_TELEOP ) {\n motorLF_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorLF_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorLB_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorLB_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorRF_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorRF_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorRB_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorRB_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n verticalLeftEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n verticalRightEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n horizontalEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n motorLF_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motorLB_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motorRF_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motorRB_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n }\n\n if( USE_INTAKE ) {\n motor_left_intake_ = hardwareMap.get(DcMotorEx.class, \"motorLeftIntake\");\n motor_right_intake_ = hardwareMap.get(DcMotorEx.class, \"motorRightIntake\");\n motor_right_intake_.setDirection(DcMotor.Direction.REVERSE) ;\n\n motor_left_intake_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );\n motor_left_intake_.setMode( DcMotor.RunMode.RUN_USING_ENCODER );\n motor_right_intake_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );\n motor_right_intake_.setMode( DcMotor.RunMode.RUN_USING_ENCODER );\n\n servo_left_intake_ = hardwareMap.servo.get(\"servoLeftIntake\");\n servo_left_intake_pos_ = CR_SERVO_STOP ;\n servo_left_intake_.setPosition(CR_SERVO_STOP);\n servo_right_intake_ = hardwareMap.servo.get(\"servoRightIntake\");\n servo_right_intake_pos_ = CR_SERVO_STOP ;\n servo_right_intake_.setPosition(CR_SERVO_STOP);\n }\n if( USE_LIFT ) {\n motor_lift_ = hardwareMap.get(DcMotorEx.class, \"motorLift\");\n motor_lift_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motor_lift_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );\n power_lift_ = 0.0;\n if( USE_RUN_TO_POS_FOR_LIFT ) {\n motor_lift_.setTargetPosition(0);\n motor_lift_.setMode( DcMotor.RunMode.RUN_TO_POSITION ); // must call setTargetPosition() before switching to RUN_TO_POSISTION\n } else {\n motor_lift_.setMode( DcMotor.RunMode.RUN_USING_ENCODER);\n }\n last_stone_lift_enc_ = -1;\n }\n\n if( USE_STONE_PUSHER ) {\n servo_pusher_ = hardwareMap.servo.get(\"servoPusher\");\n servo_pusher_.setPosition(PUSHER_INIT);\n servo_pusher_pos_ = PUSHER_INIT;\n }\n if( USE_STONE_GATER ) {\n servo_gater_ = hardwareMap.servo.get(\"servoGater\");\n servo_gater_.setPosition(GATER_INIT);\n servo_gater_pos_ = GATER_INIT;\n }\n\n if( USE_ARM ) {\n servo_arm_ = hardwareMap.servo.get(\"servoArm\");\n servo_arm_.setPosition(ARM_INIT);\n servo_arm_pos_ = ARM_INIT;\n servo_claw_ = hardwareMap.servo.get(\"servoClaw\");\n servo_claw_.setPosition(CLAW_OPEN);\n servo_claw_pos_ = CLAW_OPEN;\n }\n\n if( USE_HOOKS ) {\n servo_left_hook_ = hardwareMap.servo.get(\"servoLeftHook\");\n servo_left_hook_.setPosition(LEFT_HOOK_UP);\n servo_left_hook_pos_ = LEFT_HOOK_UP;\n servo_right_hook_ = hardwareMap.servo.get(\"servoRightHook\");\n servo_right_hook_.setPosition(RIGHT_HOOK_UP);\n servo_right_hook_pos_ = RIGHT_HOOK_UP;\n }\n\n if( USE_PARKING_STICKS ) {\n servo_left_park_ = hardwareMap.servo.get(\"servoLeftPark\");\n servo_left_park_.setPosition(LEFT_PARK_IN);\n servo_left_park_pos_ = LEFT_PARK_IN;\n servo_right_park_ = hardwareMap.servo.get(\"servoRightPark\");\n servo_right_park_.setPosition(RIGHT_PARK_IN);\n servo_right_park_pos_ = RIGHT_PARK_IN;\n }\n\n if( USE_RGB_FOR_STONE ) {\n rev_rgb_range_ = hardwareMap.get(LynxI2cColorRangeSensor.class, \"stoneColor\");\n //rev_rgb_range_ = hardwareMap.get(LynxI2cColorRangeSensor.class, \"stoneColorV3\"); // different interface for V3, can't define it as LynxI2cColorRangeSensor anymore, 2020/02/29\n if( rev_rgb_range_!=null ) {\n if( AUTO_CALIBRATE_RGB ) {\n int alpha = rev_rgb_range_.alpha();\n //double dist = rev_rgb_range_.getDistance(DistanceUnit.CM);\n double dist = rev_rgb_range_.getDistance(DistanceUnit.METER);\n if( alpha>=MIN_RGB_ALPHA && alpha<100000 ) {\n rev_rgb_alpha_init_ = alpha;\n }\n if( AUTO_CALIBRATE_RGB_RANGE && !Double.isNaN(dist) ) {\n if( dist>MIN_RGB_RANGE_DIST && dist<MAX_RGB_RANGE_DIST ) {\n rev_rgb_dist_init_ = dist;\n }\n }\n }\n }\n }\n if( USE_RGBV3_FOR_STONE ) {\n //rgb_color_stone_ = hardwareMap.get(ColorSensor.class, \"stoneColorV3\");\n rgb_range_stone_ = hardwareMap.get(DistanceSensor.class, \"stoneColorV3\");\n if( AUTO_CALIBRATE_RANGE && rgb_range_stone_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RGB_RANGE_STONE);\n if( dis>0.0 && dis<0.2 ) {\n rgb_range_stone_dist_init_ = dis;\n break;\n }\n }\n }\n }\n\n if( USE_RIGHT_RANGE ) {\n range_right_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, \"rightRange\"));\n if( AUTO_CALIBRATE_RANGE && range_right_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RANGE_RIGHT);\n if( dis>0.01 && dis<2.0 ) {\n range_right_dist_init_ = dis;\n break;\n }\n }\n }\n }\n if( USE_LEFT_RANGE ) {\n range_left_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, \"leftRange\"));\n if( AUTO_CALIBRATE_RANGE && range_left_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RANGE_LEFT);\n if( dis>0.01 && dis<2.0 ) {\n range_left_dist_init_ = dis;\n break;\n }\n }\n }\n }\n\n if( USE_RANGE_FOR_STONE) {\n range_stone_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, \"stoneRange\"));\n if( AUTO_CALIBRATE_RANGE && range_stone_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RANGE_STONE);\n if( dis>0.01 && dis<0.5 ) {\n range_stone_dist_init_ = dis;\n break;\n }\n }\n }\n }\n\n if( USE_INTAKE_MAG_SWITCH ) {\n intake_mag_switch_ = hardwareMap.get(DigitalChannel.class, \"intake_mag_switch\");\n intake_mag_switch_.setMode(DigitalChannelController.Mode.INPUT);\n intake_mag_prev_state_ = intake_mag_switch_.getState();\n intake_mag_change_time_ = 0.0;\n }\n if( USE_STONE_LIMIT_SWITCH ) {\n stone_limit_switch_ = hardwareMap.get(DigitalChannel.class, \"stone_limit_switch\");\n stone_limit_switch_.setMode(DigitalChannelController.Mode.INPUT);\n stone_limit_switch_prev_state_ = stone_limit_switch_.getState();\n }\n\n\n /////***************************** JOY STICKS *************************************/////\n\n /// Set joystick deadzone, any value below this threshold value will be considered as 0; moved from init() to init_loop() to aovid crash\n if(gamepad1!=null) gamepad1.setJoystickDeadzone( JOYSTICK_DEAD_ZONE );\n if(gamepad2!=null) gamepad2.setJoystickDeadzone( JOYSTICK_DEAD_ZONE );\n\n resetControlVariables();\n }", "private void configureEncoder() throws IOException\n {\n encoder = MediaCodec.createByCodecName(encoderName);\n MediaFormat mediaFormat = MediaFormat.createVideoFormat(MIME_TYPE, width, height);\n mediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, BITRATE);\n mediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, FRAMERATE);\n mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, encoderColorFormat);\n mediaFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1);\n encoder.configure(mediaFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);\n encoder.start();\n }", "protected void engineReset()\r\n/* 79: */ {\r\n/* 80:143 */ this.V00 = IV[0];\r\n/* 81:144 */ this.V01 = IV[1];\r\n/* 82:145 */ this.V02 = IV[2];\r\n/* 83:146 */ this.V03 = IV[3];\r\n/* 84:147 */ this.V04 = IV[4];\r\n/* 85:148 */ this.V05 = IV[5];\r\n/* 86:149 */ this.V06 = IV[6];\r\n/* 87:150 */ this.V07 = IV[7];\r\n/* 88:151 */ this.V10 = IV[8];\r\n/* 89:152 */ this.V11 = IV[9];\r\n/* 90:153 */ this.V12 = IV[10];\r\n/* 91:154 */ this.V13 = IV[11];\r\n/* 92:155 */ this.V14 = IV[12];\r\n/* 93:156 */ this.V15 = IV[13];\r\n/* 94:157 */ this.V16 = IV[14];\r\n/* 95:158 */ this.V17 = IV[15];\r\n/* 96:159 */ this.V20 = IV[16];\r\n/* 97:160 */ this.V21 = IV[17];\r\n/* 98:161 */ this.V22 = IV[18];\r\n/* 99:162 */ this.V23 = IV[19];\r\n/* 100:163 */ this.V24 = IV[20];\r\n/* 101:164 */ this.V25 = IV[21];\r\n/* 102:165 */ this.V26 = IV[22];\r\n/* 103:166 */ this.V27 = IV[23];\r\n/* 104: */ }", "public void init(HardwareMap hwMap) {\r\n\r\n //DRIVE//\r\n front_left = hwMap.dcMotor.get(\"front_left\");\r\n front_right = hwMap.dcMotor.get(\"front_right\");\r\n back_left = hwMap.dcMotor.get(\"back_left\");\r\n back_right = hwMap.dcMotor.get(\"back_right\");\r\n\r\n hook = hwMap.dcMotor.get(\"hook\");\r\n\r\n //intake1 = hwMap.servo.get(\"intake1\");\r\n //intake2 = hwMap.servo.get(\"intake2\");\r\n //intake3 = hwMap.servo.get(\"intake3\");\r\n //intake4 = hwMap.servo.get(\"intake4\");\r\n\r\n phone = hwMap.servo.get(\"phone\");\r\n marker = hwMap.servo.get(\"marker\");\r\n\r\n //linSlide1 = hwMap.dcMotor.get(\"lin_slide1\");\r\n //linSlide2 = hwMap.dcMotor.get(\"lin_slide2\");\r\n\r\n //arm_motor_1 = hwMap.dcMotor.get(\"arm1\");\r\n //arm_motor_2 = hwMap.dcMotor.get(\"arm2\");\r\n\r\n\r\n front_left.setDirection(DcMotor.Direction.FORWARD);\r\n front_right.setDirection(DcMotor.Direction.FORWARD);\r\n back_left.setDirection(DcMotor.Direction.REVERSE);\r\n back_right.setDirection(DcMotor.Direction.REVERSE);\r\n\r\n /* front_left.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n front_right.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n back_left.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n back_right.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n */\r\n hook.setDirection(DcMotor.Direction.FORWARD);\r\n\r\n //linSlide1.setDirection(DcMotor.Direction.FORWARD);\r\n //linSlide1.setDirection(DcMotor.Direction.REVERSE);\r\n\r\n //arm_motor_1.setDirection(DcMotor.Direction.FORWARD);\r\n //arm_motor_2.setDirection(DcMotor.Direction.REVERSE);\r\n\r\n front_left.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n front_right.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n back_left.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n back_right.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n\r\n //encoder1 = hwMap.analogInput.get(\"encoder1\");\r\n //encoder2 = hwMap.analogInput.get(\"encoder2\");\r\n\r\n imu = hwMap.get(BNO055IMU.class, \"imu\");\r\n }", "public void Inverse_macroblock_partition_scanning_process(){\n\t\tx=InverseRasterScan(mbPartIdx, MbPartWidth(mb_type),MbPartHeight(mb_type),16,0);\n\t\ty=InverseRasterScan(mbPartIdx, MbPartWidth(mb_type),MbPartHeight(mb_type),16,1);\n\n\t}", "public void runOpMode() throws InterruptedException {\n robot.init(hardwareMap);\n BNO055IMU.Parameters parameters1 = new BNO055IMU.Parameters();\n parameters1.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters1);\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n robot.arm.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.arm.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n //P.S. if you're using the latest version of easyopencv, you might need to change the next line to the following:\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);\n //phoneCam = new OpenCvInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);//remove this\n\n phoneCam.openCameraDevice();//open camera\n phoneCam.setPipeline(new StageSwitchingPipeline());//different stages\n phoneCam.startStreaming(rows, cols, OpenCvCameraRotation.SIDEWAYS_LEFT);//display on RC\n //width, height\n //width = height in this case, because camera is in portrait mode.\n\n runtime.reset();\n while (!isStarted()) {\n for (int i = 0; i <= 7; i++) {\n telemetry.addData(\"Values\", vals[i]);\n }\n for (int i = 0; i <= 7; i++) {\n totals = totals + vals[i];\n }\n totals = totals / 255;\n telemetry.addData(\"total\", totals);\n\n telemetry.addData(\"Height\", rows);\n telemetry.addData(\"Width\", cols);\n\n telemetry.update();\n sleep(100);\n\n if (totals >= 4) {\n StartAngle = 30;\n StartDistance = 105;\n StartBack = -40;\n ReturnAngle = 28;\n ReturnDistance = -85;\n drop2 = 112;\n mid = 0;\n backup2 = -33;\n } else if (totals <= 0) {\n StartAngle = 55;\n StartDistance= 85;\n StartBack = -5;\n ReturnAngle = 38;\n ReturnDistance = -60;\n drop2 = 65;\n mid = -2;\n backup2 = -31;\n } else {\n StartAngle = 17;\n StartDistance = 75;\n StartBack = -20;\n ReturnAngle = 22;\n ReturnDistance = -49;\n drop2 = 95;\n mid = -18;\n backup2 = -41;\n }\n totals = 0;\n }\n\n\n\n gyroDrive(DRIVE_SPEED,6,0,30,0);\n gyroDrive(DRIVE_SPEED,36,-45,30,0);\n gyroDrive(DRIVE_SPEED,StartDistance,StartAngle,30,0);\n\n //robot.arm.setTargetPosition(-450);\n //robot.arm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n /*robot.arm.setPower(-.1);\n //robot.arm.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n gyroHold(DRIVE_SPEED,0,2);\n robot.claw.setPosition(0);\n robot.arm.setPower(.05);\n gyroHold(DRIVE_SPEED,0,1);\n gyroDrive(DRIVE_SPEED,-10,0,5,0);\n gyroTurn(TURN_SPEED,90);\n gyroDrive(DRIVE_SPEED,-20,90,5,0);\n\n */\n gyroTurn(TURN_SPEED,ReturnAngle);\n robot.LWheel.setPower(-.9);\n robot.RWheel.setPower(-.9);\n gyroDrive(DRIVE_SPEED, ReturnDistance,ReturnAngle, 30,0);\n gyroHold(TURN_SPEED,3,1);\n robot.lock.setPosition(1);\n robot.RTrack.setPosition(1);\n robot.LTrack.setPosition(0);\n gyroHold(TURN_SPEED,0,2);\n gyroHold(TURN_SPEED,-3,2);\n robot.LWheel.setPower(0);\n robot.RWheel.setPower(0);\n robot.RTrack.setPosition(.5);\n robot.LTrack.setPosition(.5);\n gyroTurn(TURN_SPEED,ReturnAngle);\n gyroDrive(DRIVE_SPEED, backup2, ReturnAngle, 30,0);\n\n gyroTurn(TURN_SPEED,90);\n gyroDrive(DRIVE_SPEED,52,80,5,0);\n gyroTurn(TURN_SPEED,65);\n gyroDrive(DRIVE_SPEED,drop2,2 + mid,10,0);\n robot.RDrop.setPosition(.23);\n robot.LDrop.setPosition(.23);\n gyroDrive(DRIVE_SPEED,StartBack,0,5,0);\n robot.arm.setPower(-.2);\n\n gyroHold(TURN_SPEED,0,1.7);\n robot.arm.setPower(0);\n }", "@Override\n public void initialize() {\n m_drive.resetGyro();// first call\n m_drive.resetEncoders();\n m_drive.lockMotors();\n }", "@Override\n public void runOpMode() throws InterruptedException {\n distanceSensorInRange = false;\n myGlyphLift = new glyphLift(hardwareMap.dcMotor.get(\"glyph_lift\"));\n myColorSensorArm = new colorSensorArm(hardwareMap.servo.get(\"color_sensor_arm\"),hardwareMap.colorSensor.get(\"sensor_color\"), hardwareMap.servo.get(\"color_sensor_arm_rotate\"));\n myMechDrive = new mechDriveAuto(hardwareMap.dcMotor.get(\"front_left_motor\"), hardwareMap.dcMotor.get(\"front_right_motor\"), hardwareMap.dcMotor.get(\"rear_left_motor\"), hardwareMap.dcMotor.get(\"rear_right_motor\"));\n myGlyphArms = new glyphArms(hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_left_glyph_arm\"), hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_right_glyph_arm\"));\n myBoardArm = new boardArm(hardwareMap.dcMotor.get(\"board_arm\"));\n myRevColorDistanceSensor = new revColorDistanceSensor(hardwareMap.get(ColorSensor.class, \"rev_sensor_color_distance\"), hardwareMap.get(DistanceSensor.class, \"rev_sensor_color_distance\"));\n\n\n myColorSensorArm.colorSensorArmUpSlow();\n myColorSensorArm.colorRotateResting();\n //myGlyphArms.openRaisedGlyphArms(); //ensures robot is wihin 18\" by 18\" parameters\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n parameters.vuforiaLicenseKey = \"ASmjss3/////AAAAGQGMjs1d6UMZvrjQPX7J14B0s7kN+rWOyxwitoTy9i0qV7D+YGPfPeeoe/RgJjgMLabjIyRXYmDFLlJYTJvG9ez4GQSI4L8BgkCZkUWpAguRsP8Ah/i6dXIz/vVR/VZxVTR5ItyCovcRY+SPz3CP1tNag253qwl7E900NaEfFh6v/DalkEDppFevUDOB/WuLZmHu53M+xx7E3x35VW86glGKnxDLzcd9wS1wK5QhfbPOExe97azxVOVER8zNNF7LP7B+Qeticfs3O9pGXzI8lj3zClut/7aDVwZ10IPVk4oma6CO8FM5UtNLSb3sicoKV5QGiNmxbbOlnPxz9qD38UAHshq2/y0ZjI/a8oT+doCr\";\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n waitForStart();\n\n relicTrackables.activate();\n\n while (opModeIsActive()) {\n myGlyphArms.closeGlyphArms();\n sleep(2000);\n myMechDrive.vuforiaLeft(myGlyphArms);\n sleep(1000);\n requestOpModeStop();\n }\n }", "private int[] enquadramentoViolacaoCamadaFisica(int[] quadro) throws Exception {\n System.out.println(\"\\n\\t[Violacao da Camada Fisica]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Violacao da Camada Fisica]\");\n Thread.sleep(velocidade);\n\n final int byteFlag = 255;//00000000 00000000 00000000 11111111\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Bits de Flag [11111111] = 255]\\n\\n\");\n Thread.sleep(velocidade);\n\n String auxiliar = \"\";\n Boolean SE = true;\n\n for (int inteiro : quadro) {\n int quantidadeByte = ManipuladorDeBit.quantidadeDeBytes(inteiro);\n ManipuladorDeBit.imprimirBits(inteiro);\n inteiro = ManipuladorDeBit.deslocarBits(inteiro);\n ManipuladorDeBit.imprimirBits(inteiro);\n int inteiroByte = ManipuladorDeBit.getPrimeiroByte(inteiro);\n\n if (inteiroByte == byteFlag) {//Inicio do Quadro\n SE = !SE;//Iniciar a Busca pelo Byte de Fim de Quadro\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n quantidadeByte--;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\tIC [\" + inteiroByte + \"] \");\n }\n\n if (!SE) {\n\n ManipuladorDeBit.imprimirBits(inteiro);\n\n for (int i=1; i<=quantidadeByte; i++) {\n int dado = ManipuladorDeBit.getPrimeiroByte(inteiro);\n ManipuladorDeBit.imprimirBits(dado);\n\n if (dado == byteFlag) {//Verificando se encontrou o Byte de Flag\n SE = !SE;//Encontrou o Byte de Fim de Quadro\n } else {\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [ \");\n\n int novoQuadro = 0;\n\n Boolean cincoBits1 = ManipuladorDeBit.cincoBitsSequenciais(dado,1);\n if (cincoBits1) {\n\n dado = ManipuladorDeBit.deslocarBits(dado);\n ManipuladorDeBit.imprimirBits(dado);\n\n //Cria um inteiro com 1 no bit mais a esquerda e 0s em outros locais\n int displayMask = 1 << 31;//10000000 00000000 00000000 00000000\n //Para cada bit exibe 0 ou 1\n for (int b=1, cont=0; b<=8; b++) {\n //Utiliza displayMask para isolar o bit\n int bit = (dado & displayMask) == 0 ? 0 : 1;\n\n if (cont == 5) {\n cont = 0;//Zerando o contador\n dado <<= 1;//Desloca 1 bit para a esquerda\n bit = (dado & displayMask) == 0 ? 0 : 1;\n }\n\n if (b == 8) {//Quando chegar no Ultimo Bit\n inteiro <<= 8;//Deslocando 8 bits para esquerda\n dado = ManipuladorDeBit.getPrimeiroByte(inteiro);\n dado = ManipuladorDeBit.deslocarBits(dado);\n ManipuladorDeBit.imprimirBits(dado);\n\n novoQuadro <<= 1;//Deslocando 1 bit para a esquerda\n novoQuadro |= ManipuladorDeBit.pegarBitNaPosicao(dado,1);//Adicionando o bit ao novoDado\n\n ManipuladorDeBit.imprimirBits(novoQuadro);\n\n auxiliar += (char) novoQuadro;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(novoQuadro + \" ]\\n\");\n Thread.sleep(velocidade);\n i++;\n\n } else {//Colocando o Bit no novoQuadro\n novoQuadro <<= 1;//Deslocando 1 bit para a esquerda\n novoQuadro |= bit;//Adicionando o bit ao novoDado\n dado <<= 1;//Desloca 1 bit para a esquerda\n }\n\n if (bit == 1) {//Quando for um bit 1\n cont++;\n } else {//Caso vinher um bit 0\n cont = 0;\n }\n }\n\n } else {//Caso nao tem uma sequencia de 5 Bits 1's\n auxiliar += (char) dado;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(dado + \" ]\\n\");\n Thread.sleep(velocidade);\n }\n }\n \n inteiro <<= 8;//Deslocando 8 bits para a esquerda;\n }\n\n }\n }\n\n //Novo Quadro de Carga Util\n int[] quadroDesenquadrado = new int[auxiliar.length()];\n //Adicionando as informacoes de Carga Util no QuadroDesenquadrado\n for (int i=0; i<auxiliar.length(); i++) {\n quadroDesenquadrado[i] = (int) auxiliar.charAt(i);\n ManipuladorDeBit.imprimirBits(quadroDesenquadrado[i]);\n }\n\n return quadroDesenquadrado;\n }", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public Encoder getEncoderLeft() {return encoderLeft;}", "protected void encode() {\n\t\tsuper.rawPkt = new byte[12 + this.PID.length*4];\n\t\t\n\t\tbyte[] someBytes = StaticProcs.uIntLongToByteWord(super.ssrc);\n\t\tSystem.arraycopy(someBytes, 0, super.rawPkt, 4, 4);\n\t\tsomeBytes = StaticProcs.uIntLongToByteWord(this.ssrcMediaSource);\n\t\tSystem.arraycopy(someBytes, 0, super.rawPkt, 8, 4);\n\t\t\n\t\t// Loop over Feedback Control Information (FCI) fields\n\t\tint curStart = 12;\n\t\tfor(int i=0; i < this.PID.length; i++ ) {\n\t\t\tsomeBytes = StaticProcs.uIntIntToByteWord(PID[i]);\n\t\t\tsuper.rawPkt[curStart++] = someBytes[0];\n\t\t\tsuper.rawPkt[curStart++] = someBytes[1];\n\t\t\tsomeBytes = StaticProcs.uIntIntToByteWord(BLP[i]);\n\t\t\tsuper.rawPkt[curStart++] = someBytes[0];\n\t\t\tsuper.rawPkt[curStart++] = someBytes[1];\n\t\t}\n\t\twriteHeaders();\n\t}", "private void configurarCodec(){\n\n\t\t// Necessario para utilizar o Processor como um Player.\n\t\tprocessor.setContentDescriptor(null);\n\n\n\t\tfor (int i = 0; i < processor.getTrackControls().length; i++) {\n\n\t\t\tif (processor.getTrackControls()[i].getFormat() instanceof VideoFormat) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// Instantiate and set the frame access codec to the data flow path.\n\t\t\t\t\tTrackControl videoTrack = processor.getTrackControls()[i];\n\t\t\t\t\tCodec codec[] = { new CodecVideo() };\n\t\t\t\t\tvideoTrack.setCodecChain(codec);\n\t\t\t\t\tbreak;\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t}\n\n\t\tprocessor.prefetch();\n\n\t}", "protected void mo6255a() {\n }", "private void m6584A() {\n this.f5414ea = C1387D.m6761a();\n if (this.f5414ea) {\n this.f5405Y.setParameters(\"audio_recordaec_enable=1\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_on_selector);\n return;\n }\n this.f5405Y.setParameters(\"audio_recordaec_enable=0\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_off_selector);\n }", "protected void initialize() {\n\t\t// startAngle = drive.getAngle();\n\t\tdrive.resetBothEncoders();\n\t\tpLeft = speed;\n\t\tpRight = speed;\n\t}", "@SideOnly(Side.CLIENT)\r\n/* 55: */ public void registerBlockIcons(IIconRegister par1IIconRegister)\r\n/* 56: */ {\r\n/* 57: 55 */ nodeBase = par1IIconRegister.registerIcon(\"extrautils:extractor_base\");\r\n/* 58: 56 */ nodeSideEnergy = par1IIconRegister.registerIcon(\"extrautils:extractor_energy\");\r\n/* 59: 57 */ nodeSideEnergyHyper = par1IIconRegister.registerIcon(\"extrautils:extractor_energy_hyper\");\r\n/* 60: 58 */ nodeSideLiquid = par1IIconRegister.registerIcon(\"extrautils:extractor_liquid\");\r\n/* 61: 59 */ nodeSideExtract = par1IIconRegister.registerIcon(\"extrautils:extractor_extract\");\r\n/* 62: 60 */ particle = par1IIconRegister.registerIcon(\"extrautils:particle\");\r\n/* 63: 61 */ super.registerBlockIcons(par1IIconRegister);\r\n/* 64: */ }", "Bundle mo7259g();", "public void init(HardwareMap hardwareMap) {\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n\n //Initialize IMU parameters\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\"; // see the calibration sample opmode\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n imu.initialize(parameters);\n\n /*\n telemetry.addData(\"Odometry System Calibration Status\", \"IMU Init Complete\");\n telemetry.clear();\n\n //Odometry System Calibration Init Complete\n telemetry.addData(\"Odometry System Calibration Status\", \"Init Complete\");\n telemetry.update();\n */\n\n }", "public void mo21797V() {\n this.f24532d.mo21926U();\n }", "@Override\n public void init() {\n /* Initialize the hardware variables.\n * The init() method of the hardware class does all the work here\n */\n robot.init(hardwareMap);\n robot.FL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.FL.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }" ]
[ "0.6294522", "0.57920474", "0.57202905", "0.55524313", "0.5536937", "0.53644466", "0.52613604", "0.52290154", "0.5215272", "0.52098936", "0.52065396", "0.51468104", "0.5109129", "0.50423175", "0.50351375", "0.50229895", "0.50069845", "0.49653953", "0.4930036", "0.4910693", "0.48864323", "0.48799142", "0.48766923", "0.4862478", "0.48623604", "0.48271963", "0.48271418", "0.48266345", "0.48144555", "0.48041353", "0.47826165", "0.47799703", "0.47793317", "0.47748584", "0.47731394", "0.47685608", "0.47655427", "0.4762626", "0.47575983", "0.4742256", "0.4740546", "0.47346923", "0.472894", "0.4724007", "0.47184825", "0.47182885", "0.47178602", "0.47178477", "0.47121242", "0.46978444", "0.4696081", "0.46928543", "0.46834326", "0.46823457", "0.46746987", "0.46679652", "0.46638006", "0.4657552", "0.4655037", "0.464973", "0.46477586", "0.46475545", "0.46342257", "0.46252605", "0.46243176", "0.46205482", "0.4618734", "0.46144316", "0.46105617", "0.46010247", "0.4596493", "0.45949894", "0.45943296", "0.4589449", "0.4577527", "0.45765397", "0.45764822", "0.45740074", "0.45729154", "0.45598987", "0.45439303", "0.45386133", "0.4536215", "0.4530878", "0.4530583", "0.45259944", "0.45230874", "0.45192373", "0.45152363", "0.45041123", "0.45033643", "0.44951195", "0.44948584", "0.4493228", "0.44920236", "0.44891512", "0.44844386", "0.44806165", "0.4477875", "0.44770825" ]
0.47992632
30
endregion DriveEncoders region ClimbEncoders
public void ResetClimbEncoders() { leftClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); rightClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void resetDriveEncoders() {\n driverFR.resetEncoder();\n driverFL.resetEncoder();\n driverBR.resetEncoder();\n driverBL.resetEncoder();\n }", "public void resetDriveEncoders() {\r\n motorLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n motorRight.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n\r\n motorLeft.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n motorRight.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n }", "public void resetEncoders() {\n m_frontLeft.resetEncoders();\n m_rearLeft.resetEncoders();\n m_frontRight.resetEncoders();\n m_rearRight.resetEncoders();\n }", "public void encoderDrive(double speed, double aInches, double bInches, double cInches, double dInches) {\n double ad = 720 * (aInches / 12.57);\n int aDistance = (int) ad;\n double bd = 720 * (bInches / 12.57);\n int bDistance = (int) bd;\n double cd = 720 * (cInches / 12.57);\n int cDistance = (int) cd;\n double dd = 720 * (dInches / 12.57);\n int dDistance = (int) dd;\n\n aDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n aDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n bDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n bDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n cDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n cDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n dDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n dDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n aDrive.setTargetPosition(aDistance);\n bDrive.setTargetPosition(bDistance);\n cDrive.setTargetPosition(cDistance);\n dDrive.setTargetPosition(dDistance);\n aDrive.setPower(speed);\n bDrive.setPower(speed);\n cDrive.setPower(speed);\n dDrive.setPower(speed);\n\n while (aDrive.isBusy() && bDrive.isBusy() && cDrive.isBusy() && dDrive.isBusy() && opModeIsActive()) {\n idle();\n }\n aDrive.setPower(0);\n bDrive.setPower(0);\n cDrive.setPower(0);\n dDrive.setPower(0);\n }", "public void resetEncoders() {\n leftEncoder.setPosition(0);\n rightEncoder.setPosition(0);\n }", "private void resetSteeringEncoders() {\n steeringFR.resetEncoder();\n steeringBR.resetEncoder();\n steeringFL.resetEncoder();\n steeringBL.resetEncoder();\n }", "public void resetEncoders() {\n m_leftEncoder.setPosition(0);\n m_rightEncoder.setPosition(0);\n }", "protected void initializeEncoders() throws InterruptedException {\n motorFrontRight.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorFrontRight.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorFrontLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorFrontLeft.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorBackRight.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorBackRight.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorBackLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorBackLeft.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorGlyphTower.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorGlyphTower.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorBackRight.setDirection(DcMotorSimple.Direction.REVERSE);\n motorBackLeft.setDirection(DcMotorSimple.Direction.FORWARD);\n motorFrontLeft.setDirection(DcMotorSimple.Direction.FORWARD);\n motorFrontRight.setDirection(DcMotorSimple.Direction.REVERSE);\n\n Thread.sleep(200);\n Log.d(\"RHTP\",\"wheel encoder settings set\");\n }", "public void resetShoulderEncoder() {\r\n motorShoulder.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n motorShoulder.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n }", "private void testEncoder() {\n\n flMotor.setPower(0.50);\n frMotor.setPower(0.50);\n blMotor.setPower(0.50);\n brMotor.setPower(0.50);\n\n // wait while opmode is active and left motor is busy running to position.\n\n while (opModeIsActive() && flMotor.isBusy()) {\n telemetry.addData(\"encoder-fwd-left\", flMotor.getCurrentPosition() + \" busy=\" + flMotor.isBusy());\n telemetry.addData(\"encoder-fwd-right\", frMotor.getCurrentPosition() + \" busy=\" + frMotor.isBusy());\n telemetry.addData(\"encoder-bck-left\", blMotor.getCurrentPosition() + \" busy=\" + blMotor.isBusy());\n telemetry.addData(\"encoder-bck-right\", brMotor.getCurrentPosition() + \" busy=\" + brMotor.isBusy());\n telemetry.update();\n idle();\n }\n\n // set motor power to zero to turn off motors. The motors stop on their own but\n // power is still applied so we turn off the power.\n\n flMotor.setPower(0.0);\n frMotor.setPower(0.0);\n blMotor.setPower(0.0);\n brMotor.setPower(0.0);\n\n // wait 5 sec to you can observe the final encoder position.\n\n resetStartTime();\n\n while (opModeIsActive() && getRuntime() < 5) {\n telemetry.addData(\"encoder-fwd-left-end\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-fwd-right-end\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-bck-left-end\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-bck-right-end\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n\n // From current position back up to starting point. In this example instead of\n // having the motor monitor the encoder we will monitor the encoder ourselves.\n\n flMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n frMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n blMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n brMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n flMotor.setTargetPosition(0);\n frMotor.setTargetPosition(0);\n blMotor.setTargetPosition(0);\n brMotor.setTargetPosition(0);\n\n // Power sign matters again as we are running without encoder.\n flMotor.setPower(-0.50);\n frMotor.setPower(-0.50);\n blMotor.setPower(-0.50);\n brMotor.setPower(-0.50);\n\n while (opModeIsActive() && flMotor.getCurrentPosition() > flMotor.getTargetPosition()) {\n telemetry.addData(\"encoder-back-left\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-left\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n\n // set motor power to zero to stop motors.\n flMotor.setPower(0.0);\n frMotor.setPower(0.0);\n blMotor.setPower(0.0);\n brMotor.setPower(0.0);\n\n resetStartTime();\n\n while (opModeIsActive() && getRuntime() < 5) {\n telemetry.addData(\"encoder-back-left-end\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right-end\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-left-end\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right-end\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n }", "public void SetDriveModeNoEncoders() {\n frontLeftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n frontRightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rearLeftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rearRightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n driveMode = DriveMode.Run_Without_Encoders;\n }", "public ClimberSubsystem()\n {\n climbSolenoid.set(false);\n DiskManipulatorSubsystem.compressor.enabled();\n }", "public void ConfigEncoder() {\n\t\tRobotMap.backLeft.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1, 1);\n\t\tRobotMap.backLeft.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 1);\n\t\tRobotMap.backLeft.setSelectedSensorPosition(0, 0, 1);\n\t\tRobotMap.backLeft.setSensorPhase(true);\n\t\tRobotMap.backLeft.setSafetyEnabled(false);\n\t\tRobotMap.frontLeft.setInverted(true);\n\t\tRobotMap.backLeft.setInverted(true);\n\n\t\tRobotMap.frontRight.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1, 1);\n\t\tRobotMap.frontRight.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 1);\n\t\tRobotMap.frontRight.setSelectedSensorPosition(0, 0, 1);\n\t\tRobotMap.frontRight.setSensorPhase(true);\n\t\tRobotMap.frontRight.setSafetyEnabled(false);\n\n\t\tRobotMap.frontLeft.setSafetyEnabled(false);\n\t\tRobotMap.backLeft.setSafetyEnabled(false);\n\n\t\tSystem.out.println(\"encoder initialize\");\n\t}", "public void updateEncoders() {\n leftEnc.updateRate();\n rightEnc.updateRate();\n }", "public void resetEncoders() {\n\t\tright.reset();\n\t\tleft.reset();\n\t}", "public void ResetArmEncoder() {\n armRotationMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n }", "public boolean encoderDrive(int encoderDelta, driveStyle drive, double motorPower, double timeout, DcMotor[] motors)\n {\n\n\n switch(drive)\n {\n case FORWARD:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, -motorPower, 0)[0]);\n motors[1].setPower(setPower(0, -motorPower, 0)[1]);\n motors[2].setPower(setPower(0, -motorPower, 0)[2]);\n motors[3].setPower(setPower(0, -motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n\n\n }\n\n case BACKWARD:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, motorPower, 0)[0]);\n motors[1].setPower(setPower(0, motorPower, 0)[1]);\n motors[2].setPower(setPower(0, motorPower, 0)[2]);\n motors[3].setPower(setPower(0, motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case STRAFE_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (encoderReadingLB - encoderDelta))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case STRAFE_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(motorPower, 0, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case FORWARD_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, -motorPower, 0)[0]);\n motors[1].setPower(setPower(-motorPower, -motorPower, 0)[1]);\n motors[2].setPower(setPower(-motorPower, -motorPower, 0)[2]);\n motors[3].setPower(setPower(-motorPower, -motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case FORWARD_RIGHT:\n {\n double encoderReadingRB = motors[1].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, -motorPower, 0)[0]);\n motors[1].setPower(setPower(motorPower, -motorPower, 0)[1]);\n motors[2].setPower(setPower(motorPower, -motorPower, 0)[2]);\n motors[3].setPower(setPower(motorPower, -motorPower, 0)[3]);\n\n while (motors[1].getCurrentPosition() >= (-encoderDelta + encoderReadingRB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case BACKWARD_LEFT:\n {\n double encoderReadingRB = motors[1].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, motorPower, 0)[0]);\n motors[1].setPower(setPower(-motorPower, motorPower, 0)[1]);\n motors[2].setPower(setPower(-motorPower, motorPower, 0)[2]);\n motors[3].setPower(setPower(-motorPower, motorPower, 0)[3]);\n\n while (motors[1].getCurrentPosition() <= (encoderDelta + encoderReadingRB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case BACKWARD_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, motorPower, 0)[0]);\n motors[1].setPower(setPower(motorPower, motorPower, 0)[1]);\n motors[2].setPower(setPower(motorPower, motorPower, 0)[2]);\n motors[3].setPower(setPower(motorPower, motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case PIVOT_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, 0, -motorPower)[0]);\n motors[1].setPower(setPower(0, 0, -motorPower)[1]);\n motors[2].setPower(setPower(0, 0, -motorPower)[2]);\n motors[3].setPower(setPower(0, 0, -motorPower)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case PIVOT_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, 0, motorPower)[0]);\n motors[1].setPower(setPower(0, 0, motorPower)[1]);\n motors[2].setPower(setPower(0, 0, motorPower)[2]);\n motors[3].setPower(setPower(0, 0, motorPower)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n\n }\n\n return true;\n }", "public void resetElbowEncoder() {\r\n motorElbow.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n motorElbow.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n }", "public void resetEncoder() {\n spark_encoder.setPosition(0);\n }", "@Override\n public void initialize() {\n drivetrain.resetEncoders();\n }", "public Encoder getEncoderLeft() {return encoderLeft;}", "private void driveForwardEnc()\r\n\t{\r\n\t\t//drive.setPos(0, 0, Config.Auto.encDriveForwardDistance, Config.Auto.encDriveForwardDistance);\r\n\t}", "public ByteEncoder()\n\t{\n\t\tencodeTargetList = Charset.availableCharsets().keySet();\n\t}", "public void onEncoderClosed();", "public Drivetrain() {\n // Use inches as unit for encoder distances\n m_leftEncoder.setDistancePerPulse(initialDistancePerPulse);\n m_rightEncoder.setDistancePerPulse(initialDistancePerPulse);\n resetEncoders();\n }", "public void zeroEncoder() {\n m_masterMotor.setSelectedSensorPosition(0);\n }", "public DitheredTankDriveController(RobotHardware hardware) {\n leftEncoder = hardware.drivetrainHardware.leftEncoder;\n rightEncoder = hardware.drivetrainHardware.rightEncoder;\n }", "private void setupNextEncoder() {\n channel.outboundPipeline().replace(this, outboundHandlers);\n }", "private Encoder() {}", "private RunLengthEncoder() {\r\n }", "@Override\n\tprotected void execute() {\n\t\t\n\t\tif (RobotMap.hookEncoder.getRaw() < Robot.climbingEncoderPos1) {\n\t\t\t// already reach the highest position, stop all the motors\n\t\t\thookMotor1.set(ControlMode.PercentOutput, 0);\n\t\t\thookMotor2.set(ControlMode.PercentOutput, 0);\n\t\t\tSystem.out.println(\"Stop climbing\");\n\t\t}else if((RobotMap.hookEncoder.getRaw() > Robot.climbingEncoderPos2)) {\n\t\t\thookMotor1.set(ControlMode.PercentOutput, -1);\n\t\t\thookMotor2.set(ControlMode.PercentOutput, -1);\n\t\t\tSystem.out.println(\"Climbing again\");\n\t\t}\n\n\t\t\n\t\t\n\t\t\n\t}", "private void doClipWrite(byte b[], int off, int len) {\n\t\tif (count + len <= maxOutputSize) { // won't overflow\n\t\t\tthis.writeDirectly(b, off, len);\n\t\t} else {\n\t\t\tint discardBytes = len + count - maxOutputSize;\n\t\t\tif (len >= maxOutputSize) {\n\t\t\t\treset();\n\t\t\t\tthis.writeDirectly(b, off + len - maxOutputSize, maxOutputSize);\n\t\t\t} else {\n\t\t\t\tint shiftStart = count - maxOutputSize + len;\n\t\t\t\tint remaining = maxOutputSize - len;\n\t\t\t\tSystem.arraycopy(buf, shiftStart, buf, 0, remaining);\n\t\t\t\tcount = remaining;\n\t\t\t\tthis.writeDirectly(b, off, len);\n\t\t\t}\n\t\t\tclipNum ++;\n\t\t\tSystem.out.println(String.format(\"Overflow count: %d, discarded bytes number: %d\", clipNum,\n\t\t\t\t\tdiscardBytes));\n\t\t\t\n\t\t}\n\n\t}", "protected void encoderDrive(double leftInches, double rightInches, double speed, double desiredAngle) {\n if (!doMotors)\n return;\n\n if (desiredAngle >= 0.0f) {\n motorPid.reset();\n motorPid.setSetpoint(0);\n motorPid.setOutputRange(0, speed);\n motorPid.setInputRange(-90, 90);\n motorPid.enable();\n }\n\n float startAngle = getGyroscopeAngle();\n double countsPerInch = COUNTS_PER_MOTOR / (WHEEL_DIAMETER * Math.PI);\n int softStartDuration = 2000; // in milliseconds\n int brakeOffsetOne = (int) (18.0f * countsPerInch);\n int brakeOffsetTwo = (int) (8.0f * countsPerInch);\n\n // Get the starting position of the encoders.\n isDriving = true;\n driveLeftStart = leftDrive.getCurrentPosition();\n driveRightStart = rightDrive.getCurrentPosition();\n\n int leftNew = (int) (leftInches * countsPerInch * RAT_FUDGE);\n int rightNew = (int) (rightInches * countsPerInch * RAT_FUDGE);\n driveLeftTarget = driveLeftStart + leftNew;\n driveRightTarget = driveRightStart + rightNew;\n leftDrive.setTargetPosition(driveLeftTarget);\n rightDrive.setTargetPosition(driveRightTarget);\n\n // Turn On RUN_TO_POSITION\n leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // Compute the braking zones.\n int leftBrakeOne = driveLeftStart + brakeOffsetOne; // how many remaining will trigger it\n int rightBrakeOne = driveRightStart + brakeOffsetOne;\n int leftBrakeTwo = driveLeftStart + brakeOffsetTwo;\n int rightBrakeTwo = driveRightStart + brakeOffsetTwo;\n\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n ElapsedTime motorOnTime = new ElapsedTime();\n boolean keepGoing = true;\n while (opModeIsActive() && keepGoing && (motorOnTime.seconds() < 30)) {\n printStatus();\n\n int leftPos = leftDrive.getCurrentPosition();\n int rightPos = rightDrive.getCurrentPosition();\n\n // soft start\n double currSpeed = speed;\n double elapsed = motorOnTime.milliseconds();\n if (elapsed < softStartDuration) {\n double ratio = elapsed / softStartDuration;\n currSpeed *= ratio;\n }\n\n // Throttle speed down as we approach our target\n int remainingLeft = driveLeftTarget - leftPos;\n int remainingRight = driveRightTarget - rightPos;\n if ((Math.abs(remainingLeft) < brakeOffsetTwo) || (Math.abs(remainingRight) < brakeOffsetTwo)) {\n currSpeed *= 0.25;\n } else if ((Math.abs(remainingLeft) < brakeOffsetOne) || (Math.abs(remainingRight) < brakeOffsetOne)) {\n currSpeed *= 0.5;\n }\n\n // Calculate PID correction = straighten out the line!\n if (desiredAngle >= 0.0f) {\n float currentAngle = getGyroscopeAngle();\n driveAngleOffset = getAngleDifference(currentAngle, (float)desiredAngle);\n driveAngleCorrection = (float) motorPid.performPID(driveAngleOffset);\n if ((leftInches < 0) && (rightInches < 0)) {\n driveAngleCorrection = -driveAngleCorrection;\n }\n }\n\n // Record and apply the desired power level.\n driveLeftSpeed = currSpeed - driveAngleCorrection;\n driveRightSpeed = currSpeed + driveAngleCorrection;\n leftDrive.setPower(Math.abs(driveLeftSpeed));\n rightDrive.setPower(Math.abs(driveRightSpeed));\n\n keepGoing = rightDrive.isBusy() && leftDrive.isBusy();\n }\n\n // Turn off RUN_TO_POSITION\n printStatus();\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n leftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n driveLeftStart = 0;\n driveRightStart = 0;\n driveLeftTarget = 0;\n driveRightTarget = 0;\n driveLeftSpeed = 0.0f;\n driveRightSpeed = 0.0f;\n driveAngleOffset = 0.0f;\n driveAngleCorrection = 0.0f;\n isDriving = false;\n }", "public void strafeLeftEnc()\r\n\t{\r\n//\t\tdrive.setPos(0, 0, -Config.Auto.encStrafeDistance, -Config.Auto.encStrafeDistance);\r\n//\t\tif(Math.abs(drive.getFrontEncDist() - Config.Auto.encStrafeDistance) < Config.Auto.encTolerance && Math.abs(drive.getBackEncDist() - Config.Auto.encStrafeDistance) < Config.Auto.encTolerance)\r\n//\t\t{\r\n//\t\t\tdrive.setPos(-Config.Auto.encDistanceBetweenTotes, -Config.Auto.encDistanceBetweenTotes, -Config.Auto.encStrafeDistance, -Config.Auto.encStrafeDistance);\r\n//\t\t\t\r\n//\t\t\tif(Math.abs(drive.getLeftEncDist() - Config.Auto.encDistanceBetweenTotes) < Config.Auto.encTolerance && Math.abs(drive.getRightEncDist() - Config.Auto.encDistanceBetweenTotes) < Config.Auto.encTolerance)\r\n//\t\t\t{\r\n//\t\t\t\tdrive.setPos(-Config.Auto.encDistanceBetweenTotes, -Config.Auto.encDistanceBetweenTotes, 0, 0);\r\n//\t\t\t\t\r\n//\t\t\t\tif((Math.abs(drive.getFrontEncDist()) < Config.Auto.encTolerance && Math.abs(drive.getBackEncDist()) < Config.Auto.encTolerance))\r\n//\t\t\t\t\tendRoutine();\t\t\t\t\r\n//\t\t\t}\r\n//\t\t}\r\n\t}", "@Override\n public long encode()\n {\n long sliceCount = 0;\n try {\n byte[] input = new byte[reqParts];\n\n int[] parity = new int[parParts];\n while (this.disFile.read(input, 0, reqParts) != -1) {\n int[] inputInt = Utils.bytesToInts(input);\n //System.arraycopy(inputInt, 0, parity, 0, inputInt.length);\n this.ida.encode(inputInt, parity); \n \n byte[] crypt = Utils.intsToBytes(Ints.concat(inputInt, parity));\n for (int i = 0; i < reqParts + parParts; i++) {\n this.disParts[i].write(crypt[i]);\n }\n sliceCount++;\n /*\n //Check if the buffers are full to flush them\n if (this.writeBufs[0].size() == this.bufSize) {\n this.flush();\n }\n */\n } \n this.cleanUp(); \n\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n this.additionalOptions.put(\"segmentSize\", Long.toString(sliceCount));\n return sliceCount;\n\n }", "private void configurarCodec(){\n\n\t\t// Necessario para utilizar o Processor como um Player.\n\t\tprocessor.setContentDescriptor(null);\n\n\n\t\tfor (int i = 0; i < processor.getTrackControls().length; i++) {\n\n\t\t\tif (processor.getTrackControls()[i].getFormat() instanceof VideoFormat) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// Instantiate and set the frame access codec to the data flow path.\n\t\t\t\t\tTrackControl videoTrack = processor.getTrackControls()[i];\n\t\t\t\t\tCodec codec[] = { new CodecVideo() };\n\t\t\t\t\tvideoTrack.setCodecChain(codec);\n\t\t\t\t\tbreak;\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t}\n\n\t\tprocessor.prefetch();\n\n\t}", "private void m4808d() {\n if (f3853k.m4870e()) {\n if (f3853k.m4846M() == -1) {\n m4807c();\n }\n try {\n Thread.sleep(50);\n return;\n } catch (InterruptedException e) {\n e.printStackTrace();\n return;\n }\n }\n m4810f();\n JniMethod.convert(f3831d, f3852j, Recorder.f3861b, Recorder.f3862c);\n int flag = f3853k.m4852a(f3852j);\n if (flag == -2 && !f3853k.m4843J()) {\n m4807c();\n }\n LogUtil.m4440c(f3850h, \"input2Encoder success flag= \" + flag);\n }", "private void prepareCoinRacks() {\n\t\t\n\t}", "public void setClimbMotors(double percentPower) {\n\t\t// If running climb motor, turn off compressor to reduce brownout likelihood\n\t\tcompressor.setClosedLoopControl(percentPower==0);\t\t\n\n\t\tclimbMotor2.set(ControlMode.PercentOutput, percentPower);\n\t\tRobot.log.writeLogEcho(\"Climb motor,percent power,\" + percentPower);\n\t}", "private void updateEncoders(){\r\n \r\n double min = Double.MAX_VALUE;\r\n double max = Double.MIN_VALUE;\r\n \r\n for(Encoder<T> encoder : encoders){\r\n if(encoder instanceof SimpleEncoder){\r\n SimpleEncoder<T> simpleEncoder = (SimpleEncoder<T>) encoder;\r\n if(simpleEncoder.getMin() < min)\r\n min = simpleEncoder.getMin();\r\n \r\n if(max < simpleEncoder.getMax())\r\n max=simpleEncoder.getMax();\r\n \r\n }\r\n }\r\n \r\n for(Encoder<T> encoder : encoders){\r\n if(encoder instanceof SimpleEncoder){\r\n SimpleEncoder<T> simpleEncoder = (SimpleEncoder<T>) encoder;\r\n simpleEncoder.setMin(min);\r\n simpleEncoder.setMax(max);\r\n }\r\n }\r\n \r\n }", "public void encode(LittleEndianOutput encoder) throws IOException {\n for (FaceRun run : faces) {\n // It isn't necessary to encode the number of faces left for the last run, but since this\n // would only help if there were more than 21 faces, it will be a small overall savings,\n // much smaller than the bound encoding.\n encoder.writeVarint64(S2CellId.NUM_FACES * (long) run.count + run.face);\n }\n }", "@Override\n\tpublic void Coding() {\n\t\tBefore();\n\t\tcoder.Coding();\n\t\tEnd();\n\t}", "public void strafeRightEnc()\r\n\t{\r\n//\t\tdrive.setPos(0, 0, Config.Auto.encStrafeDistance, Config.Auto.encStrafeDistance);\r\n//\t\tif(Math.abs(drive.getFrontEncDist() - Config.Auto.encStrafeDistance) < Config.Auto.encTolerance && Math.abs(drive.getBackEncDist() - Config.Auto.encStrafeDistance) < Config.Auto.encTolerance)\r\n//\t\t{\r\n//\t\t\tdrive.setPos(Config.Auto.encDistanceBetweenTotes, Config.Auto.encDistanceBetweenTotes, Config.Auto.encStrafeDistance, Config.Auto.encStrafeDistance);\r\n//\t\t\t\r\n//\t\t\tif(Math.abs(drive.getLeftEncDist() - Config.Auto.encDistanceBetweenTotes) < Config.Auto.encTolerance && Math.abs(drive.getRightEncDist() - Config.Auto.encDistanceBetweenTotes) < Config.Auto.encTolerance)\r\n//\t\t\t{\r\n//\t\t\t\tdrive.setPos(Config.Auto.encDistanceBetweenTotes, Config.Auto.encDistanceBetweenTotes, 0, 0);\r\n//\t\t\t\t\r\n//\t\t\t\tif((Math.abs(drive.getFrontEncDist()) < Config.Auto.encTolerance && Math.abs(drive.getBackEncDist()) < Config.Auto.encTolerance))\r\n//\t\t\t\t\tendRoutine();\t\t\t\t\r\n//\t\t\t}\r\n//\t\t}\r\n\t}", "protected void initialize() {\n \tRobot.drive.resetEncoder();\n }", "private void subdivide(EChannel cod_info) {\n\t\tint scfb_anz = 0;\n\n\t\tif ( bigvalues_region == 0) {\n\t\t\t/* no big_values region */\n\t\t\tcod_info.region0_count = 0;\n\t\t\tcod_info.region1_count = 0;\n\t\t} else {\n\n\t\t\tif ( cod_info.window_switching_flag == 0 ) {\n\n\t\t\t\tint index0, index1;\n\n\t\t\t\t/* Calculate scfb_anz */\n\t\t\t\twhile (scalefac_band_long[scfb_anz] < bigvalues_region)\n\t\t\t\t\tscfb_anz++;\n\t\t\t\t/*\t\t\tassert (scfb_anz < 23); */\n\n\t\t\t\tindex0 = (cod_info.region0_count = subdv_table[scfb_anz][0]) + 1;\n\t\t\t\tindex1 = (cod_info.region1_count = subdv_table[scfb_anz][1]) + 1;\n\n\t\t\t\tcod_info.address1 = scalefac_band_long[index0];\n\t\t\t\tcod_info.address2 = scalefac_band_long[index0 + index1];\n\t\t\t\tcod_info.address3 = bigvalues_region;\n\t\t\t} else {\n\t\t\t\tif ( (cod_info.block_type == 2) && (cod_info.mixed_block_flag == 0) ) {\n\t\t\t\t\tcod_info.region0_count = 8;\n\t\t\t\t\tcod_info.region1_count = 12;\n\t\t\t\t\tcod_info.address1 = 36;\n\t\t\t\t} else {\n\t\t\t\t\tcod_info.region0_count = 7;\n\t\t\t\t\tcod_info.region1_count = 13;\n\t\t\t\t\tcod_info.address1 = scalefac_band_long[ cod_info.region0_count + 1 ];\n\t\t\t\t}\n\t\t\t\tcod_info.address2 = bigvalues_region;\n\t\t\t\tcod_info.address3 = 0;\n\n\t\t\t}\n\t\t}\n\t}", "public void trimBarrier(){\n game.setBarrierNumOfParties(game.getPlayersConnected());\n }", "protected abstract void clip();", "public void cut() throws IOException {\n // cut\n writer.write(0x1D);\n writer.write(\"V\");\n writer.write(48);\n writer.write(0);\n\n writer.flush();\n }", "@TargetApi(Build.VERSION_CODES.JELLY_BEAN)\n private static MediaCodecInfo chooseVideoEncoder(String name) {\n\n int nbCodecs = MediaCodecList.getCodecCount();\n\n for (int i = 0; i < nbCodecs; i++) {\n MediaCodecInfo mci = MediaCodecList.getCodecInfoAt(i);\n if (!mci.isEncoder()) {\n continue;\n }\n String[] types = mci.getSupportedTypes();\n for (int j = 0; j < types.length; j++) {\n if (types[j].equalsIgnoreCase(VCODEC)) {\n LogUtil.i(TAG, String.format(\"vencoder %s types: %s\", mci.getName(), types[j]));\n if (name == null) {\n return mci;\n }\n if (mci.getName().contains(name)) {\n return mci;\n }\n }\n }\n }\n return null;\n }", "@Override\n public DriveSignal runJackWheels() {\n return DriveSignal.NEUTRAL;\n }", "public void Loop() {\n //if the drive mode is encoders then mirror the rear motors so that we just use the encoders of the front motors\n if(driveMode == DriveMode.Run_With_Encoders){\n rearLeftDrive.setVelocity(frontLeftDrive.getVelocity());\n rearRightDrive.setVelocity(frontRightDrive.getVelocity());\n }\n }", "public void encoderDrive(double speed,\r\n double leftInches, \r\n double rightInches,\r\n String name) \r\n {\n int newLeftTarget = robot.leftDrive.getCurrentPosition() + (int)(leftInches * COUNTS_PER_INCH);\r\n int newRightTarget = robot.rightDrive.getCurrentPosition() + (int)(rightInches * COUNTS_PER_INCH);\r\n robot.leftDrive.setTargetPosition(newLeftTarget);\r\n robot.rightDrive.setTargetPosition(newRightTarget);\r\n\r\n // Turn On RUN_TO_POSITION\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n\r\n // reset the timeout time and start motion.\r\n ElapsedTime localTimer = new ElapsedTime();\r\n localTimer.reset();\r\n robot.leftDrive.setPower(Math.abs(speed));\r\n robot.rightDrive.setPower(Math.abs(speed));\r\n\r\n // keep looping while we are still active, and there is time left, and both motors are running.\r\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\r\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\r\n // always end the motion as soon as possible.\r\n // However, if you require that BOTH motors have finished their moves before the robot continues\r\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\r\n while (localTimer.seconds() < EncoderDrive_Timeout_Second \r\n && (robot.leftDrive.isBusy() || robot.rightDrive.isBusy())) {\r\n\r\n // Display it for the driver.\r\n telemetry.addData(\"\", \"%s @ %s\", name, localTimer.toString());\r\n telemetry.addData(\"To\", \"%7d :%7d\", newLeftTarget, newRightTarget);\r\n telemetry.addData(\"At\", \"%7d :%7d\",\r\n robot.leftDrive.getCurrentPosition(),\r\n robot.rightDrive.getCurrentPosition());\r\n telemetry.update();\r\n idle();\r\n }\r\n\r\n // Stop all motion;\r\n robot.leftDrive.setPower(0);\r\n robot.rightDrive.setPower(0);\r\n\r\n // Turn off RUN_TO_POSITION\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n }", "private void m298c() {\n C0031aa b;\n int a;\n try {\n this.f260d.mo123a();\n try {\n String encodeToString = Base64.encodeToString(new C0175cn().mo544a(this.f260d.mo126b()), 0);\n if (!TextUtils.isEmpty(encodeToString)) {\n JSONObject jSONObject = this.f265j.getJSONObject(C0015a.f10A);\n jSONObject.put(C0281x.f889O, encodeToString);\n this.f265j.put(C0015a.f10A, jSONObject);\n }\n } catch (Exception e) {\n }\n byte[] bytes = String.valueOf(this.f265j).getBytes();\n if (bytes != null && !C0133br.m754a(f259g, bytes)) {\n if (!this.f266k) {\n b = C0031aa.m111a(f259g, AnalyticsConfig.getAppkey(f259g), bytes);\n } else {\n b = C0031aa.m114b(f259g, AnalyticsConfig.getAppkey(f259g), bytes);\n }\n byte[] c = b.mo120c();\n C0155ca.m887a(f259g).mo510g();\n byte[] a2 = this.f264i.mo201a(c);\n if (a2 == null) {\n a = 1;\n } else {\n a = m293a(a2);\n }\n switch (a) {\n case 1:\n if (!this.f267l) {\n C0155ca.m887a(f259g).mo501a(c);\n return;\n }\n return;\n case 2:\n this.f260d.mo128d();\n this.f263h.mo225k();\n return;\n case 3:\n this.f263h.mo225k();\n return;\n default:\n return;\n }\n }\n } catch (Throwable th) {\n }\n }", "public DebugEncoder(Encoder ec) {\n this.ec = ec;\n }", "@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}", "private static void cut(GL10 gl, String modelName) throws IOException {\n\t\tmPiece0.build(gl, mSurfaces, mPiece0.mVerticies.size(), modelName);\n\t\tbbMin = new Point3d(mPiece0.bbMin.x, mPiece0.bbMin.y, mPiece0.bbMin.z);\n\t\tbbMax = new Point3d(mPiece0.bbMax.x, mPiece0.bbMax.y, mPiece0.bbMax.z);\n\n\t\t// make use of built surfaces to save texture duplication - reuse textureID\n\t\tfor (int i = 0; i < mPiece0.mSurfaces.length; i++) {\n\t\t\tSurface s = mSurfaces.get(i);\n\t\t\ts.textureID = mPiece0.mSurfaces[i].textureID;\n\t\t}\n\n\t\t// **************************** Y axis ****************************\n\t\tif (mNumCutsPerAxis[1] > 0) {\n\t\t\tcutOneDirection(new Point3d(0, 1, 0), (bbMax.y - bbMin.y) / ((float) mNumCutsPerAxis[1] + 1f));\n\t\t\t// move to front queue to start over\n\t\t\twhile (!mPieces.isEmpty())\n\t\t\t\tmQinfront.add(mPieces.remove(0));\n\t\t}\n\n\t\t// **************************** X axis ****************************\n\t\tif (mNumCutsPerAxis[0] > 0) {\n\t\t\tcutOneDirection(new Point3d(1, 0, 0), (bbMax.x - bbMin.x) / ((float) mNumCutsPerAxis[0] + 1f));\n\t\t\twhile (!mPieces.isEmpty())\n\t\t\t\tmQinfront.add(mPieces.remove(0));\n\t\t}\n\n\t\t// **************************** Z axis ****************************\n\t\tif (mNumCutsPerAxis[2] > 0)\n\t\t\tcutOneDirection(new Point3d(0, 0, 1), (bbMax.z - bbMin.z) / ((float) mNumCutsPerAxis[2] + 1f));\n\t\telse {\n\t\t\twhile (!mQinfront.isEmpty())\n\t\t\t\tmPieces.add(mQinfront.remove(0));\n\t\t}\n\n\t\t// now build them all, except interior pieces\n\t\tint i = 0;\n\t\twhile (i < mPieces.size()) {\n\t\t\t\n\t\t\tPiece piece = mPieces.get(i);\n\t\t\tpiece.build(gl, mSurfaces, mPiece0.mVerticies.size(), modelName);\n\t\t\t\n\t\t\t// toss if all interior\n\t\t\tboolean toss = true;\n\t\t\tint sLen = piece.mSurfaces.length;\n\t\t\tfor(int sIdx=0; sIdx<sLen; sIdx++) {\n\t\t\t\t\n\t\t\t\t// not interior if any surface other than last on list\n\t\t\t\tif((piece.mSurfaces[sIdx].idxLength > 0) && (sIdx != (sLen - 1))) {\n\t\t\t\t\ttoss = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(toss)\n\t\t\t\tmPieces.remove(i);\n\t\t\telse\n\t\t\t\tpiece.mIndex = i++;\n\t\t}\n\n\t\t// break discontinuous into multiple pieces\n\t\ti = 0;\n\t\twhile(i < mPieces.size()) {\n\t\t\t\n\t\t\tPiece[] ps = continuityTest(mPieces.get(i));\n\t\t\t\n\t\t\tif(ps != null) {\n\t\t\t\t\n\t\t\t\t// remove the culprit\n\t\t\t\tmPieces.remove(i);\n\t\t\t\t// discontinuous - broken into multiple\n\t\t\t\tfor (Piece p : ps) {\n\t\t\t\t\tp.build(gl, mSurfaces, mPiece0.mVerticies.size(), modelName);\n\t\t\t\t\tmPieces.add(i++, p);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\ti++;\n\t\t}\n\t\t\n\t\t// renumber\n\t\ti = 0;\n\t\tfor(Piece p : mPieces)\n\t\t\tp.mIndex = i++;\n\n\t\tmNumPieces = mPieces.size();\n\t}", "private byte drive(Vehicle v){\n\n return v.drive();\n }", "public Builder clearMpegCenc() {\n if (mpegCencBuilder_ == null) {\n if (encryptionModeCase_ == 6) {\n encryptionModeCase_ = 0;\n encryptionMode_ = null;\n onChanged();\n }\n } else {\n if (encryptionModeCase_ == 6) {\n encryptionModeCase_ = 0;\n encryptionMode_ = null;\n }\n mpegCencBuilder_.clear();\n }\n return this;\n }", "void cut(int cardPosition);", "void turnUsingEncoder(double degrees, double power);", "@Override\n\tpublic CharsetEncoder newEncoder() {\n\t\treturn null;\n\t}", "private void doExtractDecodeEncodeMux(MediaExtractor videoExtractor,\n MediaExtractor audioExtractor, MediaCodec videoDecoder,\n MediaCodec videoEncoder, MediaCodec audioDecoder,\n MediaCodec audioEncoder, MediaMuxer muxer) {\n ByteBuffer[] videoDecoderInputBuffers = null;\n ByteBuffer[] videoDecoderOutputBuffers = null;\n ByteBuffer[] videoEncoderInputBuffers = null;\n ByteBuffer[] videoEncoderOutputBuffers = null;\n MediaCodec.BufferInfo videoDecoderOutputBufferInfo = null;\n MediaCodec.BufferInfo videoEncoderOutputBufferInfo = null;\n if (mCopyVideo) {\n videoDecoderInputBuffers = videoDecoder.getInputBuffers();\n videoDecoderOutputBuffers = videoDecoder.getOutputBuffers();\n videoEncoderInputBuffers = videoEncoder.getInputBuffers();\n videoEncoderOutputBuffers = videoEncoder.getOutputBuffers();\n videoDecoderOutputBufferInfo = new MediaCodec.BufferInfo();\n videoEncoderOutputBufferInfo = new MediaCodec.BufferInfo();\n }\n ByteBuffer[] audioDecoderInputBuffers = null;\n ByteBuffer[] audioDecoderOutputBuffers = null;\n ByteBuffer[] audioEncoderInputBuffers = null;\n ByteBuffer[] audioEncoderOutputBuffers = null;\n MediaCodec.BufferInfo audioDecoderOutputBufferInfo = null;\n MediaCodec.BufferInfo audioEncoderOutputBufferInfo = null;\n if (mCopyAudio) {\n audioDecoderInputBuffers = audioDecoder.getInputBuffers();\n audioDecoderOutputBuffers = audioDecoder.getOutputBuffers();\n audioEncoderInputBuffers = audioEncoder.getInputBuffers();\n audioEncoderOutputBuffers = audioEncoder.getOutputBuffers();\n audioDecoderOutputBufferInfo = new MediaCodec.BufferInfo();\n audioEncoderOutputBufferInfo = new MediaCodec.BufferInfo();\n }\n // We will get these from the decoders when notified of a format change.\n MediaFormat decoderOutputVideoFormat = null;\n MediaFormat decoderOutputAudioFormat = null;\n // We will get these from the encoders when notified of a format change.\n MediaFormat encoderOutputVideoFormat = null;\n MediaFormat encoderOutputAudioFormat = null;\n // We will determine these once we have the output format.\n int outputVideoTrack = -1;\n int outputAudioTrack = -1;\n // Whether things are done on the video side.\n boolean videoExtractorDone = false;\n boolean videoDecoderDone = false;\n boolean videoEncoderDone = false;\n // Whether things are done on the audio side.\n boolean audioExtractorDone = false;\n boolean audioDecoderDone = false;\n boolean audioEncoderDone = false;\n // The video decoder output buffer to process, -1 if none.\n int pendingVideoDecoderOutputBufferIndex = -1;\n // The audio decoder output buffer to process, -1 if none.\n int pendingAudioDecoderOutputBufferIndex = -1;\n\n boolean muxing = false;\n\n int videoExtractedFrameCount = 0;\n int videoDecodedFrameCount = 0;\n int videoEncodedFrameCount = 0;\n\n int audioExtractedFrameCount = 0;\n int audioDecodedFrameCount = 0;\n int audioEncodedFrameCount = 0;\n boolean mVideoConfig = false;\n boolean mainVideoFrame = false;\n long mLastVideoSampleTime = 0;\n long mVideoSampleTime = 0;\n\n boolean mAudioConfig = false;\n boolean mainAudioFrame = false;\n long mLastAudioSampleTime = 0;\n long mAudioSampleTime = 0;\n while (!interrupted&& ((mCopyVideo && !videoEncoderDone) || (mCopyAudio && !audioEncoderDone))) {\n //###########################Video###################################\n // Extract video from file and feed to decoder.\n // Do not extract video if we have determined the output format but\n // we are not yet ready to mux the frames.\n while (mCopyVideo && !videoExtractorDone\n && (encoderOutputVideoFormat == null || muxing)) {\n int decoderInputBufferIndex = videoDecoder\n .dequeueInputBuffer(TIMEOUT_USEC);\n if (decoderInputBufferIndex <= MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no video decoder input buffer: \"\n + decoderInputBufferIndex);\n break;\n }\n Log.d(\"wanlijun\",\n \"video decoder dequeueInputBuffer: returned input buffer: \"\n + decoderInputBufferIndex);\n ByteBuffer decoderInputBuffer = videoDecoderInputBuffers[decoderInputBufferIndex];\n int size = videoExtractor.readSampleData(decoderInputBuffer, 0);\n if (videoExtractor.getSampleFlags() == MediaExtractor.SAMPLE_FLAG_SYNC) {\n Log.d(\"wanlijun\",\" video decoder SAMPLE_FLAG_SYNC \");\n }\n long presentationTime = videoExtractor.getSampleTime();\n Log.d(\"wanlijun\", \"video extractor: returned buffer of size \"\n + size);\n Log.d(\"wanlijun\", \"video extractor: returned buffer for time \"\n + presentationTime);\n if (size > 0) {\n videoDecoder.queueInputBuffer(decoderInputBufferIndex, 0,\n size, presentationTime,\n videoExtractor.getSampleFlags());\n }\n videoExtractorDone = !videoExtractor.advance();\n if (videoExtractorDone) {\n Log.d(\"wanlijun\", \"video extractor: EOS\");\n videoDecoder.queueInputBuffer(decoderInputBufferIndex, 0,\n 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM);\n }\n videoExtractedFrameCount++;\n // We extracted a frame, let's try something else next.\n break;\n }\n //###########################Audio###################################\n // Extract audio from file and feed to decoder.\n // Do not extract audio if we have determined the output format but\n // we are not yet ready to mux the frames.\n while (mCopyAudio && !audioExtractorDone\n && (encoderOutputAudioFormat == null || muxing)) {\n int decoderInputBufferIndex = audioDecoder.dequeueInputBuffer(TIMEOUT_USEC);\n if (decoderInputBufferIndex <= MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no audio decoder input buffer: \"+decoderInputBufferIndex);\n break;\n }\n Log.d(\"wanlijun\", \"audio decoder dequeueInputBuffer: returned input buffer: \"\n + decoderInputBufferIndex);\n ByteBuffer decoderInputBuffer = audioDecoderInputBuffers[decoderInputBufferIndex];\n int size = audioExtractor.readSampleData(decoderInputBuffer, 0);\n long presentationTime = audioExtractor.getSampleTime();\n Log.d(\"wanlijun\", \"audio extractor: returned buffer of size \"\n + size);\n Log.d(\"wanlijun\", \"audio extractor: returned buffer for time \"\n + presentationTime);\n if (size > 0) {\n audioDecoder.queueInputBuffer(decoderInputBufferIndex, 0,\n size, presentationTime,\n audioExtractor.getSampleFlags());\n }\n audioExtractorDone = !audioExtractor.advance();\n if (audioExtractorDone) {\n Log.d(\"wanlijun\", \"audio extractor: EOS\");\n audioDecoder.queueInputBuffer(decoderInputBufferIndex, 0,\n 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM);\n }\n audioExtractedFrameCount++;\n // We extracted a frame, let's try something else next.\n break;\n }\n\n // Poll output frames from the video decoder and feed the encoder.\n while (mCopyVideo && !videoDecoderDone\n && pendingVideoDecoderOutputBufferIndex == -1\n && (encoderOutputVideoFormat == null || muxing)) {\n int decoderOutputBufferIndex = videoDecoder.dequeueOutputBuffer(videoDecoderOutputBufferInfo,\n TIMEOUT_USEC);\n if (decoderOutputBufferIndex == MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no video decoder output buffer\");\n break;\n }else if (decoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {\n //do what for this?\n decoderOutputVideoFormat = videoDecoder.getOutputFormat();\n Log.d(\"wanlijun\", \"video decoder: output format changed: \" + decoderOutputVideoFormat);\n break;\n }else if (decoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {\n Log.d(\"wanlijun\", \"video decoder: output buffers changed\");\n videoDecoderOutputBuffers = videoDecoder.getOutputBuffers();\n break;\n }\n\n if ((videoDecoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {\n Log.d(\"wanlijun\", \"video decoder: codec config buffer\");\n videoDecoder.releaseOutputBuffer(decoderOutputBufferIndex,false);\n break;\n }\n Log.d(\"wanlijun\", \"video decoder: returned buffer for time \"\n + videoDecoderOutputBufferInfo.presentationTimeUs);\n\n pendingVideoDecoderOutputBufferIndex = decoderOutputBufferIndex;\n videoDecodedFrameCount++;\n // We extracted a pending frame, let's try something else next.\n break;\n }\n\n // Feed the pending decoded audio buffer to the video encoder.\n while (mCopyVideo && pendingVideoDecoderOutputBufferIndex != -1) {\n Log.d(\"wanlijun\",\"video decoder: attempting to process pending buffer: \"\n + pendingVideoDecoderOutputBufferIndex);\n int encoderInputBufferIndex = videoEncoder.dequeueInputBuffer(TIMEOUT_USEC);\n if (encoderInputBufferIndex <= MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no video encoder input buffer: \"\n +encoderInputBufferIndex);\n break;\n }\n Log.d(\"wanlijun\", \"video encoder: returned input buffer: \"\n + encoderInputBufferIndex);\n ByteBuffer encoderInputBuffer = videoEncoderInputBuffers[encoderInputBufferIndex];\n int size = videoDecoderOutputBufferInfo.size;\n long presentationTime = videoDecoderOutputBufferInfo.presentationTimeUs;\n Log.d(\"wanlijun\", \"video decoder: processing pending buffer: \"\n + pendingVideoDecoderOutputBufferIndex);\n Log.d(\"wanlijun\", \"video decoder: pending buffer of size \" + size);\n Log.d(\"wanlijun\", \"video decoder: pending buffer for time \"\n + presentationTime);\n if (size >= 0) {\n\n try {\n ByteBuffer decoderOutputBuffer = videoDecoderOutputBuffers[pendingVideoDecoderOutputBufferIndex]\n .duplicate();\n decoderOutputBuffer\n .position(videoDecoderOutputBufferInfo.offset);\n decoderOutputBuffer\n .limit(videoDecoderOutputBufferInfo.offset + size);\n encoderInputBuffer.position(0);\n encoderInputBuffer.put(decoderOutputBuffer);\n //size not enable\n videoEncoder.queueInputBuffer(encoderInputBufferIndex, 0,\n size, presentationTime,\n videoDecoderOutputBufferInfo.flags);\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n\n }\n videoDecoder.releaseOutputBuffer(\n pendingVideoDecoderOutputBufferIndex, false);\n pendingVideoDecoderOutputBufferIndex = -1;\n if ((videoDecoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {\n Log.d(\"wanlijun\", \"video decoder: EOS\");\n videoDecoderDone = true;\n }\n // We enqueued a pending frame, let's try something else next.\n break;\n }\n // Poll frames from the video encoder and send them to the muxer.\n while (mCopyVideo && !videoEncoderDone\n && (encoderOutputVideoFormat == null || muxing)) {\n // can not get avilabel outputBuffers?\n int encoderOutputBufferIndex = videoEncoder.dequeueOutputBuffer(videoEncoderOutputBufferInfo,\n TIMEOUT_USEC);\n if (encoderOutputBufferIndex == MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no video encoder output buffer\");\n break;\n }else if (encoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {\n Log.d(\"wanlijun\", \"video encoder: output format changed\");\n if (outputVideoTrack >= 0) {\n // fail(\"video encoder changed its output format again?\");\n Log.d(\"wanlijun\",\"video encoder changed its output format again?\");\n }\n encoderOutputVideoFormat = videoEncoder.getOutputFormat();\n break;\n }else if (encoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {\n Log.d(\"wanlijun\", \"video encoder: output buffers changed\");\n videoEncoderOutputBuffers = videoEncoder.getOutputBuffers();\n break;\n }\n\n // assertTrue(\"should have added track before processing output\", muxing);\n Log.d(\"wanlijun\", \"video encoder: returned output buffer: \"\n + encoderOutputBufferIndex);\n Log.d(\"wanlijun\", \"video encoder: returned buffer of size \"\n + videoEncoderOutputBufferInfo.size);\n ByteBuffer encoderOutputBuffer = videoEncoderOutputBuffers[encoderOutputBufferIndex];\n if ((videoEncoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {\n Log.d(\"wanlijun\", \"video encoder: codec config buffer\");\n // Simply ignore codec config buffers.\n mVideoConfig = true;\n videoEncoder.releaseOutputBuffer(encoderOutputBufferIndex,false);\n break;\n }\n\n\n if(mVideoConfig){\n if(!mainVideoFrame){\n mLastVideoSampleTime = videoEncoderOutputBufferInfo.presentationTimeUs;\n mainVideoFrame = true;\n }else{\n if(mVideoSampleTime == 0){\n mVideoSampleTime = videoEncoderOutputBufferInfo.presentationTimeUs - mLastVideoSampleTime;\n }\n }\n }\n videoEncoderOutputBufferInfo.presentationTimeUs = mLastVideoSampleTime + mVideoSampleTime;\n if (videoEncoderOutputBufferInfo.size != 0) {\n muxer.writeSampleData(outputVideoTrack,\n encoderOutputBuffer, videoEncoderOutputBufferInfo);\n mLastVideoSampleTime = videoEncoderOutputBufferInfo.presentationTimeUs;\n }\n\n if ((videoEncoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {\n Log.d(\"wanlijun\", \"video encoder: EOS\");\n videoEncoderDone = true;\n }\n videoEncoder.releaseOutputBuffer(encoderOutputBufferIndex,\n false);\n videoEncodedFrameCount++;\n // We enqueued an encoded frame, let's try something else next.\n break;\n }\n\n // Poll output frames from the audio decoder.\n // Do not poll if we already have a pending buffer to feed to the\n // encoder.\n while (mCopyAudio && !audioDecoderDone\n && pendingAudioDecoderOutputBufferIndex == -1\n && (encoderOutputAudioFormat == null || muxing)) {\n int decoderOutputBufferIndex = audioDecoder\n .dequeueOutputBuffer(audioDecoderOutputBufferInfo,TIMEOUT_USEC);\n if (decoderOutputBufferIndex == MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no audio decoder output buffer\");\n break;\n }else if (decoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {\n decoderOutputAudioFormat = audioDecoder.getOutputFormat();\n Log.d(\"wanlijun\", \"audio decoder: output format changed: \" + decoderOutputAudioFormat);\n break;\n }else if (decoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {\n Log.d(\"wanlijun\", \"audio decoder: output buffers changed\");\n audioDecoderOutputBuffers = audioDecoder.getOutputBuffers();\n break;\n }\n\n Log.d(\"wanlijun\", \"audio decoder: returned output buffer: \"\n + decoderOutputBufferIndex);\n Log.d(\"wanlijun\", \"audio decoder: returned buffer of size \"\n + audioDecoderOutputBufferInfo.size);\n Log.d(\"wanlijun\", \"audio decoder: returned buffer for time \"\n + audioDecoderOutputBufferInfo.presentationTimeUs);\n\n if ((audioDecoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {\n Log.d(\"wanlijun\", \"audio decoder: codec config buffer\");\n audioDecoder.releaseOutputBuffer(decoderOutputBufferIndex,false);\n break;\n }\n\n\n pendingAudioDecoderOutputBufferIndex = decoderOutputBufferIndex;\n audioDecodedFrameCount++;\n // We extracted a pending frame, let's try something else next.\n break;\n }\n\n // Feed the pending decoded audio buffer to the audio encoder.\n while (mCopyAudio && pendingAudioDecoderOutputBufferIndex != -1) {\n Log.d(\"wanlijun\",\"audio decoder: attempting to process pending buffer: \"+ pendingAudioDecoderOutputBufferIndex);\n int encoderInputBufferIndex = audioEncoder.dequeueInputBuffer(TIMEOUT_USEC);\n if (encoderInputBufferIndex <= MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no audio encoder input buffer: \"+encoderInputBufferIndex);\n break;\n }\n Log.d(\"wanlijun\", \"audio encoder: returned input buffer: \"+ encoderInputBufferIndex);\n ByteBuffer encoderInputBuffer = audioEncoderInputBuffers[encoderInputBufferIndex];\n int size = audioDecoderOutputBufferInfo.size;\n long presentationTime = audioDecoderOutputBufferInfo.presentationTimeUs;\n Log.d(\"wanlijun\", \"audio decoder: processing pending buffer: \"+ pendingAudioDecoderOutputBufferIndex);\n Log.d(\"wanlijun\", \"audio decoder: pending buffer of size \" + size);\n Log.d(\"wanlijun\", \"audio decoder: pending buffer for time \"+ presentationTime);\n if (size >= 0) {\n try {\n ByteBuffer decoderOutputBuffer = audioDecoderOutputBuffers[pendingAudioDecoderOutputBufferIndex]\n .duplicate();\n decoderOutputBuffer\n .position(audioDecoderOutputBufferInfo.offset);\n decoderOutputBuffer\n .limit(audioDecoderOutputBufferInfo.offset + size);\n encoderInputBuffer.position(0);\n encoderInputBuffer.put(decoderOutputBuffer);\n audioEncoder.queueInputBuffer(encoderInputBufferIndex, 0,\n audioDecoderOutputBufferInfo.offset + size, presentationTime,\n audioDecoderOutputBufferInfo.flags);\n\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n\n }\n audioDecoder.releaseOutputBuffer(pendingAudioDecoderOutputBufferIndex, false);\n pendingAudioDecoderOutputBufferIndex = -1;\n if ((audioDecoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {\n Log.d(\"wanlijun\", \"audio decoder: EOS\");\n audioDecoderDone = true;\n }\n // We enqueued a pending frame, let's try something else next.\n break;\n }\n\n // Poll frames from the audio encoder and send them to the muxer.\n while (mCopyAudio && !audioEncoderDone\n && (encoderOutputAudioFormat == null || muxing)) {\n int encoderOutputBufferIndex = audioEncoder\n .dequeueOutputBuffer(audioEncoderOutputBufferInfo,TIMEOUT_USEC);\n if (encoderOutputBufferIndex == MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no audio encoder output buffer\");\n break;\n }else if (encoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {\n Log.d(\"wanlijun\", \"audio encoder: output format changed\");\n if (outputAudioTrack >= 0) {\n // fail(\"audio encoder changed its output format again?\");\n Log.d(\"wanlijun\",\"audio encoder changed its output format again?\");\n }\n encoderOutputAudioFormat = audioEncoder.getOutputFormat();\n break;\n }else if (encoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {\n Log.d(\"wanlijun\", \"audio encoder: output buffers changed\");\n audioEncoderOutputBuffers = audioEncoder.getOutputBuffers();\n break;\n }\n // assertTrue(\"should have added track before processing output\",muxing);\n Log.d(\"wanlijun\", \"audio encoder: returned output buffer: \"\n + encoderOutputBufferIndex);\n Log.d(\"wanlijun\", \"audio encoder: returned buffer of size \"\n + audioEncoderOutputBufferInfo.size);\n ByteBuffer encoderOutputBuffer = audioEncoderOutputBuffers[encoderOutputBufferIndex];\n if ((audioEncoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {\n Log.d(\"wanlijun\", \"audio encoder: codec config buffer\");\n // Simply ignore codec config buffers.\n mAudioConfig = true;\n audioEncoder.releaseOutputBuffer(encoderOutputBufferIndex,false);\n break;\n }\n Log.d(\"wanlijun\", \" audio encoder: returned buffer for time \"\n + audioEncoderOutputBufferInfo.presentationTimeUs);\n\n if(mAudioConfig){\n if(!mainAudioFrame){\n mLastAudioSampleTime = audioEncoderOutputBufferInfo.presentationTimeUs;\n mainAudioFrame = true;\n }else{\n if(mAudioSampleTime == 0){\n mAudioSampleTime = audioEncoderOutputBufferInfo.presentationTimeUs - mLastAudioSampleTime;\n }\n }\n }\n\n audioEncoderOutputBufferInfo.presentationTimeUs = mLastAudioSampleTime + mAudioSampleTime;\n if (audioEncoderOutputBufferInfo.size != 0) {\n muxer.writeSampleData(outputAudioTrack,\n encoderOutputBuffer, audioEncoderOutputBufferInfo);\n mLastAudioSampleTime = audioEncoderOutputBufferInfo.presentationTimeUs;\n }\n\n if ((audioEncoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {\n Log.d(\"wanlijun\", \"audio encoder: EOS\");\n audioEncoderDone = true;\n }\n audioEncoder.releaseOutputBuffer(encoderOutputBufferIndex,false);\n audioEncodedFrameCount++;\n // We enqueued an encoded frame, let's try something else next.\n break;\n }\n\n if (!muxing && (!mCopyAudio || encoderOutputAudioFormat != null)\n && (!mCopyVideo || encoderOutputVideoFormat != null)) {\n if (mCopyVideo) {\n Log.d(\"wanlijun\", \"muxer: adding video track.\");\n outputVideoTrack = muxer.addTrack(encoderOutputVideoFormat);\n }\n if (mCopyAudio) {\n Log.d(\"wanlijun\", \"muxer: adding audio track.\");\n outputAudioTrack = muxer.addTrack(encoderOutputAudioFormat);\n }\n Log.d(\"wanlijun\", \"muxer: starting\");\n muxer.start();\n muxing = true;\n }\n }\n Log.d(\"wanlijun\", \"exit looper\");\n }", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public BCDToSevenSegDecoder (ElectronicComponent CompToCopy, int xo, int yo) {\n super (CompToCopy, xo, yo);\n }", "private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }", "@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n leftFront = hardwareMap.get(DcMotor.class, \"left_front\");\n rightFront = hardwareMap.get(DcMotor.class, \"right_front\");\n leftBack = hardwareMap.get(DcMotor.class, \"left_back\");\n rightBack = hardwareMap.get(DcMotor.class, \"right_back\");\n\n\n leftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n leftBack.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n right = hardwareMap.get(Servo.class, \"right\");\n left = hardwareMap.get(Servo.class, \"left\");\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n leftFront.setDirection(DcMotor.Direction.REVERSE);\n rightFront.setDirection(DcMotor.Direction.FORWARD);\n leftBack.setDirection(DcMotor.Direction.REVERSE);\n rightBack.setDirection(DcMotor.Direction.FORWARD);\n\n leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n digitalTouch = hardwareMap.get(DigitalChannel.class, \"sensor_digital\");\n digitalTouch.setMode(DigitalChannel.Mode.INPUT);\n\n right.setDirection(Servo.Direction.REVERSE);\n\n right.scaleRange(0, 0.25);\n left.scaleRange(0.7, 1);\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n\n servo(0);\n runtime.reset();\n encoderSideways(0.25, -5, -5, 5);\n // drive until touch sensor pressed\n // activate servos to grab platform\n // drive backwards for a while\n // release servos\n // sideways part\n // remember to do red autonomous for repackage org.firstinspires.ftc.teamcode;\n }", "public void encodeWithCoder(com.webobjects.foundation.NSCoder coder){\n return; //TODO codavaj!!\n }", "public CANEncoder getLeftEncoder() {\n return m_leftEncoder;\n }", "private void setupSteeringEncoders() {\n //12.8:1\n steeringFR.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringBR.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringFL.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringBL.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n }", "public static Collection<Integer[]> getEncoderDIOCrossConnectCollection() {\n Collection<Integer[]> encoderPortPairs = new ArrayList<Integer[]>();\n assert getDIOCrossConnect().size() == 2;\n encoderPortPairs.addAll(\n getPairArray(getDIOCrossConnect().get(0), getDIOCrossConnect().get(1), false));\n encoderPortPairs.addAll(\n getPairArray(getDIOCrossConnect().get(1), getDIOCrossConnect().get(0), false));\n assert encoderPortPairs.size() == 8;\n return encoderPortPairs;\n }", "private List<ReducedContainer> toReduced(){\n List<ReducedContainer> reduced = new ArrayList<>();\n for(SpecialContainer specialContainer: specialContainers){\n reduced.add(new ReducedContainer(specialContainer.getType(), specialContainer.getCount()));\n }\n\n return reduced;\n\n }", "@Override\n\tpublic void drive() {\n\n\t}", "protected void interrupted() {\n \tleftEncoderPID.disable();\n \trightEncoderPID.disable();\n }", "public void replaceWithCovers()\r\n/* 197: */ {\r\n/* 198:156 */ short[] covs = Arrays.copyOf(this.Covers, 29);\r\n/* 199:157 */ CoverLib.replaceWithCovers(this.k, this.l, this.m, this.n, this.CoverSides, covs);\r\n/* 200: */ }", "public void mixDownChannels() {\n\t\tfloat[] firstChannel = getChannel(0);\n\t\tint localSampleCount = getSampleCount();\n\t\tfor (int ch = getChannelCount() - 1; ch > 0; ch--) {\n\t\t\tfloat[] thisChannel = getChannel(ch);\n\t\t\tfor (int i = 0; i < localSampleCount; i++) {\n\t\t\t\tfirstChannel[i] += thisChannel[i];\n\t\t\t}\n\t\t\tremoveChannel(ch);\n\t\t}\n\t}", "@Override\r\n\tpublic void carDriveModeChange() {\n\t\t\r\n\t}", "private void resetMBPattern()\n {\n codedBlockPattern = 0;\n }", "@java.lang.Override\n public boolean hasMpegCenc() {\n return encryptionModeCase_ == 6;\n }", "void cap();", "@java.lang.Override\n public boolean hasMpegCenc() {\n return encryptionModeCase_ == 6;\n }", "public void turn(TurnerIF turner, boolean runUsingEncoders, boolean stopMotors) throws InterruptedException {\n turner.start();\n\n if (runUsingEncoders) {\n runUsingEncoders();\n } else {\n runWithoutEncoders();\n }\n\n boolean keepGoing = true;\n\n double lastScaleFactor = 0;\n double lastPower = 0;\n\n while (keepGoing) {\n int positionA = fL.getCurrentPosition();\n int positionB = fR.getCurrentPosition();\n int positionC = bL.getCurrentPosition();\n int positionD = bR.getCurrentPosition();\n\n double power = turner.getPower();\n double scaleFactor = turner.getScaleFactor();\n\n// RobotLog.d(\"Robot358Main::turn()::power: \" + power);\n// RobotLog.d(\"Robot358Main::turn()::scaleFactor: \" + scaleFactor);\n\n keepGoing = turner.keepGoing(0);\n\n if (keepGoing && (power != lastPower || scaleFactor != lastScaleFactor)) {\n if (Double.isNaN(scaleFactor)) {\n keepGoing = false;\n } else {\n// RobotLog.d(\"Robot358Main::turn()::power * scaleFactor: \" + power * scaleFactor);\n\n fL.setPower(-power * scaleFactor);\n bL.setPower(-power * scaleFactor);\n fR.setPower(power * scaleFactor);\n bR.setPower(power * scaleFactor);\n }\n\n lastPower = power;\n lastScaleFactor = scaleFactor;\n }\n\n Thread.sleep(1);\n\n }\n\n if (stopMotors) {\n stopMotors();\n }\n }", "public DriveTrain() {\n for(int i = 0; i < 2; i++) {\n leftMotors[i] = new CANSparkMax(Constants.LEFT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i] = new CANSparkMax(Constants.RIGHT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i].setInverted(true);\n }\n }", "private StandardDeCompressors() {}", "public void rasterScanning(){\r\n ReadParameter embedPara = new ReadParameter();\r\n QuantisationEmbedding subband = new QuantisationEmbedding();\r\n int i,j,k,p;\r\n double[] coeffStream, modCoeffStream;\r\n //Modification in selected subband only\r\n if(embedPara.getSubbandChoice().compareTo(\"LF\") == 0){\r\n //Embed in low low subband only\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n coeffStream[k++] = subband.getSubbandLL()[i][j];\r\n }\r\n }\r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n // Write it back in proper order\r\n k = 0; // Reset k value\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n \r\n } else if(embedPara.getSubbandChoice().compareTo(\"HF\") == 0){\r\n //Embed in high frequency subband only\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length * 3];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n \r\n // Make it fir three high frequency subbands\r\n for(p=0; p<3; p++){\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n if(p==0){ //Get LH Subband values\r\n coeffStream[k++] = subband.getSubbandLH()[i][j];\r\n \r\n } else if(p==1){ //Get HL Subband values\r\n coeffStream[k++] = subband.getSubbandHL()[i][j];\r\n \r\n } else if(p==2){ //Get HH Subband values\r\n coeffStream[k++] = subband.getSubbandHH()[i][j];\r\n \r\n } // End of if-else condition \r\n } // End of inner loop\r\n } \r\n } // End of outer loop\r\n \r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n \r\n // Write it back in proper order\r\n k=0; // Reset k value\r\n //Write back LH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n \r\n \r\n } else if(embedPara.getSubbandChoice().compareTo(\"AF\") == 0){\r\n //Embed in all subbands\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length * 4];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n \r\n // Make it fir three high frequency subbands\r\n for(p=0; p<4; p++){\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n if(p==0){ //Get LL Subband values\r\n coeffStream[k++] = subband.getSubbandLL()[i][j];\r\n \r\n } else if(p==1){ //Get LH Subband values\r\n coeffStream[k++] = subband.getSubbandLH()[i][j];\r\n \r\n } else if(p==2){ //Get HL Subband values\r\n coeffStream[k++] = subband.getSubbandHL()[i][j];\r\n \r\n } else if(p==3){ //Get HH Subband values\r\n coeffStream[k++] = subband.getSubbandHH()[i][j];\r\n \r\n } // End of if-else condition \r\n } // End of inner loop\r\n } \r\n } // End of outer loop\r\n \r\n \r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n \r\n \r\n // Write it back in proper order\r\n k = 0; //Reset k value\r\n //Write back LL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back LH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n } // End subband choice if-else condition\r\n \r\n }", "public void zero()\n {\n encoderOffset = -getEncoder().getPosition();\n }", "public void moveToEncoder(TurnType dir,\n int tick,\n float maxPower,\n int timeoutMillis,\n boolean isAccelerate,\n boolean isAdjust,\n boolean isBreak,\n MoveAction[] actions)\n throws InterruptedException\n {\n final float MOVE_TIMEOUT_FACTOR = 2f;\n final int MOVE_STALL_TIME = 500;\n\n maxPower = Math.abs(maxPower);\n maxPower = Range.clip(maxPower, 0f, 1f);\n\n if (timeoutMillis < 0) {\n timeoutMillis = Math.abs((int) (tick * Drive.AM20_MILLISECOND_PER_TICK * MOVE_TIMEOUT_FACTOR)) + 2000;\n }\n\n // turn wheels\n setTurnWait(dir);\n\n resetPosition();\n // is RUN_TO_POSITION\n setMode2(RunMode.RUN_TO_POSITION);\n if (dir == TurnType.STRAFE) {\n setTargetPosition2(tick,\n new HwDevice[]{driveRightBack, driveLeftFront});\n setTargetPosition2(-tick,\n new HwDevice[]{driveRightFront, driveLeftBack});\n } else {\n setTargetPosition2(tick);\n }\n\n long startTimestamp = System.currentTimeMillis();\n long timeStamp = startTimestamp;\n\n Stalled stalled = new Stalled();\n while (op.opModeIsActive() &&\n // is RUN_TO_POSITION\n isBusy() &&\n (timeStamp - startTimestamp < timeoutMillis)) {\n\n int average = ((int)Math.signum(tick))*getEncoder(dir);\n int delta = tick - average;\n if (Math.abs(delta) < 50)\n {\n // done\n break;\n }\n\n float basePower;\n if (!isAccelerate)\n {\n basePower = Math.signum(delta) * maxPower;\n }\n else\n {\n if (Math.abs(average) < Math.abs(tick / 3))\n {\n // ramp up for 1/3 of distance\n // minimum power is START_POWER\n // base is 1600\n basePower = (average/1600f) + Math.signum(tick) * POWER_START;\n }\n else\n {\n // ramp down for 2/3 of distance\n // minimum power is START_POWER\n // base is 3200\n basePower = (delta/3200f) + Math.signum(delta) * POWER_STOP;\n }\n basePower = Range.clip(basePower, -maxPower, maxPower);\n\n /*if (dir == TurnType.STRAFE) {\n long timeStamp1 = System.currentTimeMillis();\n if (timeStamp1 - logTimeStamp > 25) {\n RobotLog.i(\"Avg:\" + average + \" Delta:\" + delta + \" Power:\" + basePower);\n logTimeStamp = timeStamp1;\n }\n }*/\n } // if\n\n //op.telemetry.addData(\"power\", Float.toString(basePower));\n //op.telemetry.addData(\"travel\", Integer.toString(tickToInch(average)));\n //op.telemetry.addData(\"delta\", Integer.toString(tickToInch(delta)));\n\n if (stalled.isStalled(average, timeStamp)) {\n WaitLinear w = new WaitLinear(op);\n stop2();\n w.waitMillis(MOVE_STALL_TIME);\n timeoutMillis += MOVE_STALL_TIME;\n stalled.reset();\n }\n else {\n if (isAdjust) {\n adjustPower(dir,\n basePower);\n }\n else {\n setPower(basePower,\n basePower,\n dir);\n }\n } // else\n\n if (actions != null) {\n for (MoveAction action : actions) {\n if (action == null) {\n continue;\n }\n\n if (Math.abs(average) > Math.abs(action.distanceInTick())) {\n action.perform();\n }\n }\n }\n\n //op.telemetry.addData(\"driveLeftFront\", driveLeftFront.getCurrentPosition());\n //op.telemetry.addData(\"driveRightBack\", driveRightBack.getCurrentPosition());\n //op.telemetry.addData(\"driveRightFront\", driveRightFront.getCurrentPosition());\n //op.telemetry.addData(\"driveLeftBack\", driveLeftBack.getCurrentPosition());\n\n //op.telemetry.update();\n op.idle();\n timeStamp = System.currentTimeMillis();\n } // while\n\n if (isBreak) {\n stop2();\n }\n\n if (Thread.currentThread().isInterrupted()) {\n RobotLog.e(\"Overcharged Thread interrupted\");\n }\n else if (op.isStopRequested()) {\n RobotLog.e(\"Overcharged Stop requested\");\n }\n\n // is RUN_TO_POSITION\n setMode2(RunMode.RUN_USING_ENCODER);\n\n // stop actions\n if (actions != null) {\n for (MoveAction action : actions) {\n if (action == null) {\n continue;\n }\n\n action.stop();\n RobotLog.i(\"Actions \" + action + \" stopped\");\n }\n op.idle();\n }\n\n int inches = tickToInch(getEncoder(dir));\n RobotLog.i(\"Moved \" + inches + \" inches\");\n RobotLog.i(\"Move took \" + (System.currentTimeMillis() - startTimestamp) + \" milliseconds\");\n //op.telemetry.addData(\"travel\", inches);\n op.idle();\n }", "public DriveSubsystem() {\n leftDrive = new Spark(0);\n rightDrive = new Spark(1);\n\n leftEncoder = new Encoder(0, 1);\n rightEncoder = new Encoder(2, 3);\n\n leftEncoder.setDistancePerPulse((Math.PI * WHEEL_DIAMETER) / PPR);\n rightEncoder.setDistancePerPulse((Math.PI * WHEEL_DIAMETER) / PPR);\n \n drive = new DifferentialDrive(leftDrive, rightDrive);\n\n }", "private void encoderDrive(double speed,\n double leftInches, double rightInches,\n double timeoutS) {\n int newLeftFrontTarget;\n int newLeftBackTarget;\n int newRightFrontTarget;\n int newRightBackTarget;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n robot.resetWheelEncoders();\n\n // Determine new target position, and pass to motor controller\n newLeftFrontTarget = robot.leftFront.getCurrentPosition() + (int) (leftInches * TICKS_PER_INCH);\n newLeftBackTarget = robot.leftBack.getCurrentPosition() + (int) (leftInches * TICKS_PER_INCH);\n newRightFrontTarget = robot.rightFront.getCurrentPosition() + (int) (rightInches * TICKS_PER_INCH);\n newRightBackTarget = robot.rightBack.getCurrentPosition() + (int) (rightInches * TICKS_PER_INCH);\n robot.leftFront.setTargetPosition(newLeftFrontTarget);\n robot.leftBack.setTargetPosition(newLeftBackTarget);\n robot.rightFront.setTargetPosition(newRightFrontTarget);\n robot.rightBack.setTargetPosition(newRightBackTarget);\n\n // Turn On RUN_TO_POSITION\n robot.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n\n // reset the timeout time and start motion.\n encoderTime.reset();\n robot.driveForward(Math.abs(speed));\n\n // wait for motors to not be busy\n while (opModeIsActive() &&\n (encoderTime.seconds() < timeoutS) &&\n (robot.leftFront.isBusy() && robot.leftBack.isBusy() && robot.rightFront.isBusy() && robot.rightBack.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Goal Position\", \"%7d :%7d :%7d :%7d\", newLeftFrontTarget, newLeftBackTarget, newRightFrontTarget, newRightBackTarget);\n telemetry.addData(\"Current Position\", \"%7d :%7d :%7d :%7d\",\n robot.leftFront.getCurrentPosition(),\n robot.leftBack.getCurrentPosition(),\n robot.rightFront.getCurrentPosition(),\n robot.rightBack.getCurrentPosition());\n telemetry.update();\n }\n\n // Stop all motion;\n robot.stopDriving();\n\n // Turn off RUN_TO_POSITION\n robot.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n sleep(100); // optional pause after each move\n }\n }", "static void SKP_Silk_encode_pulses(\n SKP_Silk_range_coder_state psRC, /* I/O Range coder state */\n final int sigtype, /* I Sigtype */\n final int QuantOffsetType,/* I QuantOffsetType */\n final byte q[], /* I quantization indices */\n final int frame_length /* I Frame length */\n )\n {\n int i, k, j, iter, bit, nLS, scale_down, RateLevelIndex = 0;\n int abs_q, minSumBits_Q6, sumBits_Q6;\n int[] abs_pulses = new int[ MAX_FRAME_LENGTH ];\n int[] sum_pulses = new int[ MAX_NB_SHELL_BLOCKS ];\n int[] nRshifts = new int[ MAX_NB_SHELL_BLOCKS ];\n int[] pulses_comb = new int[ 8 ];\n int []abs_pulses_ptr;\n int abs_pulses_ptr_offset;\n byte []pulses_ptr;\n int pulses_ptr_offset;\n final int [] cdf_ptr;\n short[] nBits_ptr;\n\n\n /****************************/\n /* Prepare for shell coding */\n /****************************/\n /* Calculate number of shell blocks */\n iter = frame_length / SHELL_CODEC_FRAME_LENGTH;\n\n /* Take the absolute value of the pulses */\n for( i = 0; i < frame_length; i+=4 ) {\n abs_pulses[i+0] = q[i+0] > 0 ? q[i+0] : (-q[i+0]);\n abs_pulses[i+1] = q[i+1] > 0 ? q[i+1] : (-q[i+1]);\n abs_pulses[i+2] = q[i+2] > 0 ? q[i+2] : (-q[i+2]);\n abs_pulses[i+3] = q[i+3] > 0 ? q[i+3] : (-q[i+3]);\n }\n\n /* Calc sum pulses per shell code frame */\n abs_pulses_ptr = abs_pulses;\n abs_pulses_ptr_offset = 0;\n for( i = 0; i < iter; i++ ) {\n nRshifts[ i ] = 0;\n\n while( true ) {\n /* 1+1 -> 2 */\n scale_down = combine_and_check( pulses_comb, abs_pulses_ptr, abs_pulses_ptr_offset,\n TablesPulsesPerBlock.SKP_Silk_max_pulses_table[ 0 ], 8 );\n\n /* 2+2 -> 4 */\n scale_down += combine_and_check( pulses_comb, pulses_comb, 0,\n TablesPulsesPerBlock.SKP_Silk_max_pulses_table[ 1 ], 4 );\n\n /* 4+4 -> 8 */\n scale_down += combine_and_check( pulses_comb, pulses_comb, 0,\n TablesPulsesPerBlock.SKP_Silk_max_pulses_table[ 2 ], 2 );\n\n /* 8+8 -> 16 */\n sum_pulses[ i ] = pulses_comb[ 0 ] + pulses_comb[ 1 ];\n if( sum_pulses[ i ] > TablesPulsesPerBlock.SKP_Silk_max_pulses_table[ 3 ] ) {\n scale_down++;\n }\n\n if( scale_down !=0 ) {\n /* We need to down scale the quantization signal */\n nRshifts[ i ]++;\n for( k = 0; k < SHELL_CODEC_FRAME_LENGTH; k++ ) {\n abs_pulses_ptr[ abs_pulses_ptr_offset + k ] = ( abs_pulses_ptr[ abs_pulses_ptr_offset + k ] >>1 );\n }\n } else {\n /* Jump out of while(1) loop and go to next shell coding frame */\n break;\n }\n }\n abs_pulses_ptr_offset += SHELL_CODEC_FRAME_LENGTH;\n }\n\n /**************/\n /* Rate level */\n /**************/\n /* find rate level that leads to fewest bits for coding of pulses per block info */\n minSumBits_Q6 = Integer.MAX_VALUE;\n for( k = 0; k < N_RATE_LEVELS - 1; k++ ) {\n nBits_ptr = TablesPulsesPerBlock.SKP_Silk_pulses_per_block_BITS_Q6[ k ];\n sumBits_Q6 = TablesPulsesPerBlock.SKP_Silk_rate_levels_BITS_Q6[sigtype][ k ];\n for( i = 0; i < iter; i++ ) {\n if( nRshifts[ i ] > 0 ) {\n sumBits_Q6 += nBits_ptr[ MAX_PULSES + 1 ];\n } else {\n sumBits_Q6 += nBits_ptr[ sum_pulses[ i ] ];\n }\n }\n if( sumBits_Q6 < minSumBits_Q6 ) {\n minSumBits_Q6 = sumBits_Q6;\n RateLevelIndex = k;\n }\n }\n RangeCoder.SKP_Silk_range_encoder( psRC, RateLevelIndex,\n TablesPulsesPerBlock.SKP_Silk_rate_levels_CDF[ sigtype ], 0);\n\n /***************************************************/\n /* Sum-Weighted-Pulses Encoding */\n /***************************************************/\n cdf_ptr = TablesPulsesPerBlock.SKP_Silk_pulses_per_block_CDF[ RateLevelIndex ];\n for( i = 0; i < iter; i++ ) {\n if( nRshifts[ i ] == 0 ) {\n RangeCoder.SKP_Silk_range_encoder( psRC, sum_pulses[ i ], cdf_ptr, 0);\n } else {\n RangeCoder.SKP_Silk_range_encoder( psRC, MAX_PULSES + 1, cdf_ptr, 0);\n for( k = 0; k < nRshifts[ i ] - 1; k++ ) {\n RangeCoder.SKP_Silk_range_encoder( psRC, MAX_PULSES + 1,\n TablesPulsesPerBlock.SKP_Silk_pulses_per_block_CDF[ N_RATE_LEVELS - 1 ], 0);\n }\n RangeCoder.SKP_Silk_range_encoder( psRC, sum_pulses[ i ],\n TablesPulsesPerBlock.SKP_Silk_pulses_per_block_CDF[ N_RATE_LEVELS - 1 ], 0);\n }\n }\n\n /******************/\n /* Shell Encoding */\n /******************/\n for( i = 0; i < iter; i++ ) {\n if( sum_pulses[ i ] > 0 ) {\n ShellCoder.SKP_Silk_shell_encoder( psRC, abs_pulses, i * SHELL_CODEC_FRAME_LENGTH);\n }\n }\n\n /****************/\n /* LSB Encoding */\n /****************/\n for( i = 0; i < iter; i++ ) {\n if( nRshifts[ i ] > 0 ) {\n pulses_ptr = q;\n pulses_ptr_offset = i * SHELL_CODEC_FRAME_LENGTH;\n nLS = nRshifts[ i ] - 1;\n for( k = 0; k < SHELL_CODEC_FRAME_LENGTH; k++ ) {\n abs_q = pulses_ptr[pulses_ptr_offset + k] > 0 ? pulses_ptr[pulses_ptr_offset + k]: (-pulses_ptr[pulses_ptr_offset + k]);\n for( j = nLS; j > 0; j-- ) {\n bit = ( abs_q >> j ) & 1;\n RangeCoder.SKP_Silk_range_encoder( psRC, bit, TablesOther.SKP_Silk_lsb_CDF, 0);\n }\n bit = abs_q & 1;\n RangeCoder.SKP_Silk_range_encoder( psRC, bit, TablesOther.SKP_Silk_lsb_CDF, 0);\n }\n }\n }\n\n /****************/\n /* Encode signs */\n /****************/\n CodeSigns.SKP_Silk_encode_signs( psRC, q, frame_length, sigtype, QuantOffsetType, RateLevelIndex );\n }", "public void cutCopyEnabled(boolean enabled);", "public Crazy8sBoard(){\n handComputer.clear();\n handHuman.clear();\n deck.clear();\n\n InitializeDeck();\n InitializeHumanHand();\n InitializeComputerHand();\n\n topCard = deck.get(0);\n }", "public c1shower() {\n\t\tmode = 1;\n\t\tnextHandler = new c2shower();\n\t\tif(nextHandler!=null) {\n\t\t\tnextHandler.self = self;\n\t\t}\n\t}", "public MSRRawEncoder(ErasureCoderOptions coderOptions) {\n super(coderOptions);\n\n if (getNumAllUnits() >= RSUtil.GF.getFieldSize()) {\n System.out.println(\n \"Invalid numDataUnits and numParityUnits\");\n }\n // generate the encodeMatrix\n assert getNumAllUnits() % getNumParityUnits() == 0;\n int m = getNumAllUnits() / getNumParityUnits();\n int s = getNumParityUnits();\n int l = (int)Math.pow(s, m);\n encodeMatrix = new byte[getNumAllUnits() * getNumDataUnits() * l * l];\n MSRMatrix = new byte[getNumParityUnits() * getNumAllUnits() * l * l];\n // RSUtil.genCauchyMatrix(encodeMatrix, getNumAllUnits(), getNumDataUnits());\n RSUtil.genMSRMatrix(MSRMatrix, getNumAllUnits(), getNumDataUnits());\n // DumpUtil.dumpMatrix(MSRMatrix, getNumParityUnits()*l, getNumAllUnits()*l);\n RSUtil.genMSREncodeMatrix(MSRMatrix, encodeMatrix, getNumAllUnits(), getNumDataUnits());\n // DumpUtil.dumpMatrix(encodeMatrix, getNumAllUnits()*l, getNumDataUnits()*l);\n gfTables = new byte[getNumAllUnits() * getNumDataUnits() * l * l * 32];\n RSUtil.initTables(getNumDataUnits() * l, getNumParityUnits() * l, encodeMatrix,\n getNumDataUnits() * l * getNumDataUnits() * l, gfTables);\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "public void crunch(){\n cpuBurstTime--;\n rem--;\n }", "com.google.protobuf.ByteString getCards();", "public void resetEncoderTicks(RobotSide side) {\n\t\tswitch(side) {\n\t\tcase LEFT:\n\t\t\tleftEnc.reset();\n\t\t\tbreak;\n\t\tcase RIGHT:\n\t\t\trightEnc.reset();\n\t\t\tbreak;\n\t\t}\n\t}", "private CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst) {\n byte[] srcArray = src.array();\n int srcPosition = src.arrayOffset() + src.position();\n int srcLength = src.arrayOffset() + src.limit();\n\n char[] destArray = dst.array();\n int destPosition = dst.arrayOffset() + dst.position();\n int destLength = dst.arrayOffset() + dst.limit();\n int destLengthASCII = destPosition + Math.min(srcLength - srcPosition, destLength - destPosition);\n\n // ASCII only loop\n while (destPosition < destLengthASCII && srcArray[srcPosition] >= 0) {\n destArray[destPosition++] = (char) srcArray[srcPosition++];\n }\n\n while (srcPosition < srcLength) {\n int b1 = srcArray[srcPosition];\n if (b1 >= 0) {\n // 1 byte, 7 bits: 0xxxxxxx\n if (destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 1);\n }\n destArray[destPosition++] = (char) b1;\n srcPosition++;\n } else if ((b1 >> 5) == -2) {\n // 2 bytes, 11 bits: 110xxxxx 10xxxxxx\n if (srcLength - srcPosition < 2 || destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 2);\n }\n int b2 = srcArray[srcPosition + 1];\n if (isMalformed2(b1, b2)) {\n return malformed(src, srcPosition, dst, destPosition, 2);\n }\n destArray[destPosition++] = (char) (((b1 << 6) ^ b2) ^ 0x0f80);\n srcPosition += 2;\n } else if ((b1 >> 4) == -2) {\n // 3 bytes, 16 bits: 1110xxxx 10xxxxxx 10xxxxxx\n if (srcLength - srcPosition < 3 || destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 3);\n }\n int b2 = srcArray[srcPosition + 1];\n int b3 = srcArray[srcPosition + 2];\n if (isMalformed3(b1, b2, b3)) {\n return malformed(src, srcPosition, dst, destPosition, 3);\n }\n destArray[destPosition++] = (char) (((b1 << 12) ^ (b2 << 6) ^ b3) ^ 0x1f80);\n srcPosition += 3;\n } else if ((b1 >> 3) == -2) {\n // 4 bytes, 21 bits: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx\n if (srcLength - srcPosition < 4 || destLength - destPosition < 2) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 4);\n }\n int b2 = srcArray[srcPosition + 1];\n int b3 = srcArray[srcPosition + 2];\n int b4 = srcArray[srcPosition + 3];\n int uc = ((b1 & 0x07) << 18) | ((b2 & 0x3f) << 12) | ((b3 & 0x3f) << 06) | (b4 & 0x3f);\n if (isMalformed4(b2, b3, b4) || !((uc >= 0x10000) && (uc <= 1114111))) {\n return malformed(src, srcPosition, dst, destPosition, 4);\n }\n destArray[destPosition++] = (char) (0xd800 | (((uc - 0x10000) >> 10) & 0x3ff));\n destArray[destPosition++] = (char) (0xdc00 | ((uc - 0x10000) & 0x3ff));\n srcPosition += 4;\n } else {\n return malformed(src, srcPosition, dst, destPosition, 1);\n }\n }\n return xflow(src, srcPosition, srcLength, dst, destPosition, 0);\n }", "@Override\n public Switch compressorRunningSwitch() {\n return pcm::enabled;\n }" ]
[ "0.6471415", "0.62629884", "0.5916677", "0.56472313", "0.5584913", "0.5553978", "0.55367255", "0.5463727", "0.5371477", "0.5353068", "0.5341929", "0.53152275", "0.52958024", "0.52872866", "0.5277099", "0.51918447", "0.51475513", "0.5078995", "0.50681055", "0.5055136", "0.50376487", "0.50220305", "0.50211465", "0.5003725", "0.4999677", "0.49094403", "0.49087352", "0.49063995", "0.4892743", "0.48399803", "0.48317552", "0.4809413", "0.47759396", "0.47709852", "0.47681525", "0.4726888", "0.4710113", "0.47086066", "0.47086057", "0.46910724", "0.46901277", "0.4678493", "0.46651345", "0.46416292", "0.46356496", "0.46224838", "0.46041504", "0.46028036", "0.4602108", "0.4595927", "0.45941457", "0.45910037", "0.45797053", "0.45772886", "0.4568013", "0.4568013", "0.45505992", "0.45263907", "0.45220813", "0.45210874", "0.44975674", "0.44865432", "0.4482303", "0.44789186", "0.44693843", "0.44689968", "0.44673562", "0.44507748", "0.4446487", "0.44411802", "0.44319668", "0.4419984", "0.4418661", "0.44138327", "0.43905386", "0.43889594", "0.43879345", "0.43873185", "0.4385188", "0.43827876", "0.43807665", "0.43716466", "0.43625984", "0.43613473", "0.43572932", "0.4353443", "0.43528235", "0.43522722", "0.43491715", "0.43456545", "0.4341865", "0.43411165", "0.4337568", "0.43367806", "0.4335219", "0.43319514", "0.43311778", "0.4320566", "0.43175521", "0.43105143" ]
0.69331753
0
endregion ClimbEncoders region ArmEncoder
public void ResetArmEncoder() { armRotationMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ResetClimbEncoders() {\n leftClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightClamFoot.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n }", "public Arm() {\n initializeLogger();\n initializeCurrentLimiting();\n setBrakeMode();\n encoder.setDistancePerPulse(1.0/256.0);\n lastTimeStep = Timer.getFPGATimestamp();\n }", "private void testEncoder() {\n\n flMotor.setPower(0.50);\n frMotor.setPower(0.50);\n blMotor.setPower(0.50);\n brMotor.setPower(0.50);\n\n // wait while opmode is active and left motor is busy running to position.\n\n while (opModeIsActive() && flMotor.isBusy()) {\n telemetry.addData(\"encoder-fwd-left\", flMotor.getCurrentPosition() + \" busy=\" + flMotor.isBusy());\n telemetry.addData(\"encoder-fwd-right\", frMotor.getCurrentPosition() + \" busy=\" + frMotor.isBusy());\n telemetry.addData(\"encoder-bck-left\", blMotor.getCurrentPosition() + \" busy=\" + blMotor.isBusy());\n telemetry.addData(\"encoder-bck-right\", brMotor.getCurrentPosition() + \" busy=\" + brMotor.isBusy());\n telemetry.update();\n idle();\n }\n\n // set motor power to zero to turn off motors. The motors stop on their own but\n // power is still applied so we turn off the power.\n\n flMotor.setPower(0.0);\n frMotor.setPower(0.0);\n blMotor.setPower(0.0);\n brMotor.setPower(0.0);\n\n // wait 5 sec to you can observe the final encoder position.\n\n resetStartTime();\n\n while (opModeIsActive() && getRuntime() < 5) {\n telemetry.addData(\"encoder-fwd-left-end\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-fwd-right-end\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-bck-left-end\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-bck-right-end\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n\n // From current position back up to starting point. In this example instead of\n // having the motor monitor the encoder we will monitor the encoder ourselves.\n\n flMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n frMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n blMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n brMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n flMotor.setTargetPosition(0);\n frMotor.setTargetPosition(0);\n blMotor.setTargetPosition(0);\n brMotor.setTargetPosition(0);\n\n // Power sign matters again as we are running without encoder.\n flMotor.setPower(-0.50);\n frMotor.setPower(-0.50);\n blMotor.setPower(-0.50);\n brMotor.setPower(-0.50);\n\n while (opModeIsActive() && flMotor.getCurrentPosition() > flMotor.getTargetPosition()) {\n telemetry.addData(\"encoder-back-left\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-left\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n\n // set motor power to zero to stop motors.\n flMotor.setPower(0.0);\n frMotor.setPower(0.0);\n blMotor.setPower(0.0);\n brMotor.setPower(0.0);\n\n resetStartTime();\n\n while (opModeIsActive() && getRuntime() < 5) {\n telemetry.addData(\"encoder-back-left-end\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right-end\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-left-end\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right-end\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n }", "public void ConfigEncoder() {\n\t\tRobotMap.backLeft.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1, 1);\n\t\tRobotMap.backLeft.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 1);\n\t\tRobotMap.backLeft.setSelectedSensorPosition(0, 0, 1);\n\t\tRobotMap.backLeft.setSensorPhase(true);\n\t\tRobotMap.backLeft.setSafetyEnabled(false);\n\t\tRobotMap.frontLeft.setInverted(true);\n\t\tRobotMap.backLeft.setInverted(true);\n\n\t\tRobotMap.frontRight.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1, 1);\n\t\tRobotMap.frontRight.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 1);\n\t\tRobotMap.frontRight.setSelectedSensorPosition(0, 0, 1);\n\t\tRobotMap.frontRight.setSensorPhase(true);\n\t\tRobotMap.frontRight.setSafetyEnabled(false);\n\n\t\tRobotMap.frontLeft.setSafetyEnabled(false);\n\t\tRobotMap.backLeft.setSafetyEnabled(false);\n\n\t\tSystem.out.println(\"encoder initialize\");\n\t}", "public void resetDriveEncoders() {\r\n motorLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n motorRight.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n\r\n motorLeft.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n motorRight.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n }", "protected void initializeEncoders() throws InterruptedException {\n motorFrontRight.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorFrontRight.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorFrontLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorFrontLeft.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorBackRight.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorBackRight.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorBackLeft.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorBackLeft.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorGlyphTower.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorGlyphTower.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorBackRight.setDirection(DcMotorSimple.Direction.REVERSE);\n motorBackLeft.setDirection(DcMotorSimple.Direction.FORWARD);\n motorFrontLeft.setDirection(DcMotorSimple.Direction.FORWARD);\n motorFrontRight.setDirection(DcMotorSimple.Direction.REVERSE);\n\n Thread.sleep(200);\n Log.d(\"RHTP\",\"wheel encoder settings set\");\n }", "public void resetEncoders() {\n m_frontLeft.resetEncoders();\n m_rearLeft.resetEncoders();\n m_frontRight.resetEncoders();\n m_rearRight.resetEncoders();\n }", "public void resetShoulderEncoder() {\r\n motorShoulder.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n motorShoulder.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n }", "static void armStrongSeries(){\n\t}", "public Encoder getEncoderLeft() {return encoderLeft;}", "public void updateEncoders() {\n leftEnc.updateRate();\n rightEnc.updateRate();\n }", "private Encoder() {}", "@Override\n public void resetDriveEncoders() {\n driverFR.resetEncoder();\n driverFL.resetEncoder();\n driverBR.resetEncoder();\n driverBL.resetEncoder();\n }", "public void resetElbowEncoder() {\r\n motorElbow.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\r\n motorElbow.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n }", "private RunLengthEncoder() {\r\n }", "public CANEncoder getRightEncoder() {\n return m_rightEncoder;\n }", "public MSRRawEncoder(ErasureCoderOptions coderOptions) {\n super(coderOptions);\n\n if (getNumAllUnits() >= RSUtil.GF.getFieldSize()) {\n System.out.println(\n \"Invalid numDataUnits and numParityUnits\");\n }\n // generate the encodeMatrix\n assert getNumAllUnits() % getNumParityUnits() == 0;\n int m = getNumAllUnits() / getNumParityUnits();\n int s = getNumParityUnits();\n int l = (int)Math.pow(s, m);\n encodeMatrix = new byte[getNumAllUnits() * getNumDataUnits() * l * l];\n MSRMatrix = new byte[getNumParityUnits() * getNumAllUnits() * l * l];\n // RSUtil.genCauchyMatrix(encodeMatrix, getNumAllUnits(), getNumDataUnits());\n RSUtil.genMSRMatrix(MSRMatrix, getNumAllUnits(), getNumDataUnits());\n // DumpUtil.dumpMatrix(MSRMatrix, getNumParityUnits()*l, getNumAllUnits()*l);\n RSUtil.genMSREncodeMatrix(MSRMatrix, encodeMatrix, getNumAllUnits(), getNumDataUnits());\n // DumpUtil.dumpMatrix(encodeMatrix, getNumAllUnits()*l, getNumDataUnits()*l);\n gfTables = new byte[getNumAllUnits() * getNumDataUnits() * l * l * 32];\n RSUtil.initTables(getNumDataUnits() * l, getNumParityUnits() * l, encodeMatrix,\n getNumDataUnits() * l * getNumDataUnits() * l, gfTables);\n }", "private void resetSteeringEncoders() {\n steeringFR.resetEncoder();\n steeringBR.resetEncoder();\n steeringFL.resetEncoder();\n steeringBL.resetEncoder();\n }", "private void aac() {\n /*\n r5 = this;\n r0 = r5.bgU;\n if (r0 != 0) goto L_0x0005;\n L_0x0004:\n return;\n L_0x0005:\n r0 = r5.aad();\n r1 = r5.bgU;\n r1 = r1.getRootView();\n r1 = r1.getHeight();\n r0 = r1 - r0;\n r2 = r1 / 4;\n r3 = 0;\n r4 = 1;\n if (r0 <= r2) goto L_0x0025;\n L_0x001b:\n r2 = r5.bgS;\n if (r2 != 0) goto L_0x002f;\n L_0x001f:\n r5.bgS = r4;\n co(r4);\n goto L_0x0030;\n L_0x0025:\n r2 = r5.bgS;\n if (r2 == 0) goto L_0x002f;\n L_0x0029:\n r5.bgS = r3;\n co(r3);\n goto L_0x0030;\n L_0x002f:\n r4 = 0;\n L_0x0030:\n r2 = r5.bgT;\n if (r2 == 0) goto L_0x0049;\n L_0x0034:\n if (r4 == 0) goto L_0x0049;\n L_0x0036:\n r2 = r5.bgS;\n if (r2 == 0) goto L_0x0040;\n L_0x003a:\n r2 = r5.bgV;\n r1 = r1 - r0;\n r2.height = r1;\n goto L_0x0044;\n L_0x0040:\n r0 = r5.bgV;\n r0.height = r1;\n L_0x0044:\n r0 = r5.bgU;\n r0.requestLayout();\n L_0x0049:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.util.am.aac():void\");\n }", "public Encoder getEncoderRight() {\n return encoderRight;\n }", "public void resetEncoders() {\n leftEncoder.setPosition(0);\n rightEncoder.setPosition(0);\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "public void resetEncoders() {\n m_leftEncoder.setPosition(0);\n m_rightEncoder.setPosition(0);\n }", "private void m4808d() {\n if (f3853k.m4870e()) {\n if (f3853k.m4846M() == -1) {\n m4807c();\n }\n try {\n Thread.sleep(50);\n return;\n } catch (InterruptedException e) {\n e.printStackTrace();\n return;\n }\n }\n m4810f();\n JniMethod.convert(f3831d, f3852j, Recorder.f3861b, Recorder.f3862c);\n int flag = f3853k.m4852a(f3852j);\n if (flag == -2 && !f3853k.m4843J()) {\n m4807c();\n }\n LogUtil.m4440c(f3850h, \"input2Encoder success flag= \" + flag);\n }", "public void handler() {\n int t = B();\n int r = (konami.cc & CC_C) | t << 1;\n CLR_NZVC();\n SET_FLAGS8(t, t, r);\n B(r);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d rolb :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n }", "public CANEncoder getLeftEncoder() {\n return m_leftEncoder;\n }", "private void setupNextEncoder() {\n channel.outboundPipeline().replace(this, outboundHandlers);\n }", "public void resetEncoders() {\n\t\tright.reset();\n\t\tleft.reset();\n\t}", "void turnUsingEncoder(double degrees, double power);", "public static void runArm() {\r\n\t\t\tsynchronized(ArmClawInfo.clawLock) {\r\n\t\t\t\tsynchronized(armStage1.motorLock) {\r\n//\t\t\t\t\tsynchronized(armStage2.motorLock) {\r\n\t\t\t\t\t\tPrtYn flag = PrtYn.N;\r\n\t\t\t\t\t\tif(Tm744Opts.isInSimulationMode()) { flag = PrtYn.Y; }\r\n\t\t\t\t\t\tString stg1StatusStr;\r\n//\t\t\t\t\t\tString stg2StatusStr;\r\n\t\t\t\t\t\tDsNamedControlsEntry ent = armStage1.jsNamedControl.getEnt();\r\n\t\t\t\t\t\tdouble jsRdg = ent.getAnalog();\r\n\t\t\t\t\t\tif(Math.abs(jsRdg)>0.1) {\r\n\t\t\t\t\t\t\tint junk = 5; //good breakpoint\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tstg1StatusStr = stageStatusStr(armStage1);\r\n//\t\t\t\t\t\tstg2StatusStr = stageStatusStr(armStage2);\r\n\t\t\t\t\t\tif( ! (stg1StatusStr.equals(prevStg1StatusStr) )) { //&& stg2StatusStr.equals(prevStg2StatusStr))) {\r\n\t\t\t\t\t\t\tP.println(flag, \"(A)stg1: \" + stg1StatusStr);\r\n//\t\t\t\t\t\t\tP.println(flag, \"(A)stg2: \" + stg2StatusStr);\r\n\t\t\t\t\t\t\tprevStg1StatusStr = stg1StatusStr;\r\n//\t\t\t\t\t\t\tprevStg2StatusStr = stg2StatusStr;\r\n\t\t\t\t\t\t}\r\n//\t\t\t\t\t\tTmSdMgr.putString(SdKeysE.KEY_ARM_STAGE1_OPERATING_MODE, armStage1.operatingMode.name());\r\n\t\t\t\t\t\tswitch(armStage1.operatingMode) {\r\n\t\t\t\t\t\tcase JOYSTICK:\r\n\t\t\t\t\t\t\trunLiftStageFromJoystick(armStage1);\r\n\t\t\t\t\t\t\tif(true) {\r\n\t\t\t\t\t\t\t\t//nearTop and nearBottom methods check useEncoder flag\r\n\t\t\t\t\t\t\t\tif(armStage1.isMotorPercentOutMovingUpRapidly() && armStage1.isEncoderNearTop()) {\r\n\t\t\t\t\t\t\t\t\tArmServices.idleAllLiftMotors();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(armStage1.isMotorPercentOutMovingDownRapidly() && armStage1.isEncoderNearBottom()) {\r\n\t\t\t\t\t\t\t\t\tArmServices.idleAllLiftMotors();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase SERVO:\r\n\t\t\t\t\t\t\tif(armStage1.useEncoder || m_tds.isEnabledAutonomous()) {\r\n\t\t\t\t\t\t\t\trunStageInServoMode(armStage1, Cnst.ARM_STAGE1_ENCODER_ADJUSTMENT_COUNT);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tarmStage1.operatingMode = ArmOperate.OperatingModesE.JOYSTICK;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase IDLE:\r\n\t\t\t\t\t\tcase STOPPED:\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t//assume 'request' methods set the motors to the appropriate values\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t\t\t\t}\t\r\n\r\n\t\t\t\t\t\tstg1StatusStr = stageStatusStr(armStage1);\r\n\t\t\t\t\t\t//\t\t\t\t\t\tstg2StatusStr = stageStatusStr(armStage2);\r\n\t\t\t\t\t\tif( ! (stg1StatusStr.equals(prevStg1StatusStr) )) { //&& stg2StatusStr.equals(prevStg2StatusStr))) {\r\n\t\t\t\t\t\t\tP.println(flag, \"(B)stg1: \" + stg1StatusStr);\r\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tP.println(flag, \"(B)stg2: \" + stg2StatusStr);\r\n\t\t\t\t\t\t\tprevStg1StatusStr = stg1StatusStr;\r\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tprevStg2StatusStr = stg2StatusStr;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(m_tds.isEnabledAutonomous()) {\r\n\t\t\t\t\t\t\tswitch(ArmClawInfo.clawCurrentState) {\r\n\t\t\t\t\t\t\tcase BY_JOYSTICK:\r\n\t\t\t\t\t\t\t\tif(m_tds.isEnabledAutonomous()) {\r\n\t\t\t\t\t\t\t\t\tdouble percOut = 0.0;\r\n\t\t\t\t\t\t\t\t\tArmClawInfo.clawMtrLeft.set(ControlMode.PercentOutput, percOut);\r\n\t\t\t\t\t\t\t\t\tArmClawInfo.clawMtrRight.set(ControlMode.PercentOutput, -percOut);\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\telse if(m_tds.isEnabledTeleop()) {\r\n\t\t\t\t\t\t\t\t\tdouble joystickRdg = DsNamedControlsE.ARM_CLAW_RUN_WITH_JOYSTICK_INPUT.getEnt().getAnalog();\r\n\t\t\t\t\t\t\t\t\tif(joystickRdg == 0.0) {} //just a good debug breakpoint\r\n\r\n\t\t\t\t\t\t\t\t\t//squaring makes joysticks easier to use\r\n\t\t\t\t\t\t\t\t\tdouble percOut = - Math.copySign(joystickRdg*joystickRdg, joystickRdg);\r\n\t\t\t\t\t\t\t\t\tArmClawInfo.clawMtrLeft.set(ControlMode.PercentOutput, percOut);\r\n\t\t\t\t\t\t\t\t\tArmClawInfo.clawMtrRight.set(ControlMode.PercentOutput, -percOut);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase GRABBING:\r\n\t\t\t\t\t\t\tcase RELEASING:\r\n\t\t\t\t\t\t\tcase OFF:\r\n\t\t\t\t\t\t\t\t//assume 'request' methods set the motors to the appropriate values\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trunArmClawLiftWheelsTeleop();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tpostLimitSwitchRdgsToSd();\r\n\t\t\t\t\t\t//\t\t\t\t\t} //sync for stg2\r\n\t\t\t\t} //sync for stg1\r\n\t\t\t} // sync claw\r\n\t\t}", "int getMotorEncoder( MotorName m ) {\n int enc = 0;\n if( motor_read_mode_==MotorBulkReadMode.BULK_READ_MANUAL && loop_cnt_!=last_motor_read_loop_id_ ) {\n // Important Step 4: If you are using MANUAL mode, you must clear the BulkCache once per control cycle\n for( LynxModule module : all_hubs_ ) {\n module.clearBulkCache();\n }\n }\n switch ( m ) {\n case MOTOR_LF:\n enc = motorLF_.getCurrentPosition();\n break;\n case MOTOR_LB:\n enc = motorLB_.getCurrentPosition();\n break;\n case MOTOR_RF:\n enc = motorRF_.getCurrentPosition();\n break;\n case MOTOR_RB:\n enc = motorRB_.getCurrentPosition();\n break;\n case MOTOR_LEFT_INTAKE:\n enc = motor_left_intake_.getCurrentPosition();\n break;\n case MOTOR_RIGHT_INTAKE:\n enc = motor_right_intake_.getCurrentPosition();\n break;\n case MOTOR_LIFT:\n enc = motor_lift_.getCurrentPosition();\n break;\n default:\n break;\n }\n last_motor_read_loop_id_ = loop_cnt_ ;\n return enc;\n }", "@Override\r\n protected void initialize() {\r\n //colorMotor = new CANSparkMax(leftDeviceID, MotorType.kBrushless);\r\n //colorEncoder = colorMotor.getEncoder();\r\n \r\n RobotMap.colorEncoder.setPosition(0); // set the encoder to its \"home\" position or zero \r\n }", "public void codifRLC()\n\t{\n\t\tList<Integer> result= new ArrayList<Integer>();\n\t\tint rgb=0;\n\t\tColor color;\n\t\tint r=0;\n\t\tint ant=-1;\n\t\tint acum=0;\n\t\tfor(int i=this.inicalto;i<=this.alto;i++) {\n\t\t\tfor(int j=this.inicancho;j<=this.ancho;j++)\n\t\t\t{\n\t\t\t\trgb = this.img.getRGB(j, i);\n\t\t\t\tcolor = new Color(rgb, true);\n\t\t\t\tr = color.getRed();\n\t\t\t\t\tif(ant==-1) {\n\t\t\t\t\t\tant=r;\n\t\t\t\t\t\tacum=1;\n\t\t\t\t\t}\n\t\t\t\t\t\tif(r==ant && acum<256)\n\t\t\t\t\t\t\tacum++;\n\t\t\t\t\t\t\tif(r!=ant){\n\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t\tant=r;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(acum==255){\n\t\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tresult.add(ant);\n\t\tresult.add(acum);\n\t\t\n\t\tthis.CR=new CabeceraRLC(this.inicancho,this.inicalto,this.ancho,this.alto,img.TYPE_INT_RGB);\n\t\tthis.codResultRLC=result;\n\t\tthis.generarArchivoRLC(result);\n\t}", "static void rar_with_car(String passed){\n\t\tint val = hexa_to_deci(registers.get('A'));\n\t\tint bits[] = new int[9];\n\t\tfor(int i=0;i<8;i++){\n\t\t\tbits[8-i] = val%2;\n\t\t\tval/=2;\n\t\t}\n\t\tbits[0] = CS?1:0;\n\t\tCS = bits[8]==1?true:false;\n\t\tfor(int i=8;i>0;i--)\n\t\t\tbits[i] = bits[i-1];\n\t\tint dec = 0;\n\t\tfor(int i=0;i<8;i++)\n\t\t\tdec+=(bits[8-i]*Math.pow(2,i));\n\t\tregisters.put('A',decimel_to_hexa_8bit(dec));\n\t}", "private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }", "protected static synchronized void configLiftMotorAndEncoder(ArmLiftMotorInfo mtrCfg) {\n\t\t\t\r\n\t\t\tif(mtrCfg.equals(TmSsArm.armStage1)) {\r\n\t\t\t\tmtrCfg.sdKeyJoystickReading =SdKeysE.KEY_ARM_STAGE1_JOYSTICK_RDG;\r\n\t\t\t\tmtrCfg.sdKeyMtrControlMode = mtrCfg.motorObj.m_namedCntlEnt.cSdKeyMtrControlMode; //SdKeysE.KEY_ARM_STAGE1_MTR_MODE;\r\n\t\t\t\tmtrCfg.sdKeyMtrOuputPercent = mtrCfg.motorObj.m_namedCntlEnt.cSdKeyMtrPercentOut; //SdKeysE.KEY_ARM_STAGE1_MTR_OUTPUT_PERCENT;\r\n\t\t\t\tmtrCfg.sdKeyAuxMtrControlMode = mtrCfg.auxMotorObj.m_namedCntlEnt.cSdKeyMtrControlMode; //SdKeysE.KEY_ARM_STAGE1_MTR_MODE;\r\n\t\t\t\tmtrCfg.sdKeyAuxMtrOuputPercent = mtrCfg.auxMotorObj.m_namedCntlEnt.cSdKeyMtrPercentOut; //SdKeysE.KEY_ARM_STAGE1_MTR_OUTPUT_PERCENT;\r\n\t\t\t\tmtrCfg.sdKeyEncoderRdg =SdKeysE.KEY_ARM_STAGE1_ENCODER_RDG;\r\n\t\t\t\tmtrCfg.sdKeyAllowedDir =SdKeysE.KEY_ARM_STAGE1_ALLOWED_DIR;\r\n\r\n\t\t\t\t//FYI, these aren't relevant when running from joysticks\r\n\t\t\t\tmtrCfg.sdKeyClosedLoopTarget =SdKeysE.KEY_ARM_STAGE1_CLOSED_LOOP_TARGET;\r\n\t\t\t\tmtrCfg.sdKeyClosedLoopError =SdKeysE.KEY_ARM_STAGE1_CLOSED_LOOP_ERROR;\r\n\t\t\t\tmtrCfg.sdKeyClosedLoopRequestedTarget =SdKeysE.KEY_ARM_STAGE1_CLOSED_LOOP_REQUESTED_TARGET;\r\n\t\t\t\tmtrCfg.sdKeyClosedLoopWorkingTarget = SdKeysE.KEY_ARM_STAGE1_CLOSED_LOOP_WORKING_TARGET;\r\n\t\t\t\tmtrCfg.sdKeyOperatingMode = SdKeysE.KEY_ARM_STAGE1_OP_MODE;\r\n\t\t\t\t\r\n\t\t\t\tmtrCfg.percentOutToMaintainPosition = Cnst.STAGE1_MOTOR_PERCENT_OUT_TO_MAINTAIN_POSITION;\r\n\t\t\t\t\r\n\t\t\t\tmtrCfg.jsNamedControl = DsNamedControlsE.ARM_DOUBLE_STAGE_MTR_INPUT; //.ALT_ARM_TEST_STAGE1_MTR_INPUT;\r\n////\t\t\t DsNamedControlsE.ALT_ARM_TEST_STAGE1_MTR_INPUT.getEnt().registerAsDsCntlUser(TmSsArm.getInstance());\r\n//\t\t\t\tDsNamedControlsE.ARM_DOUBLE_STAGE_MTR_INPUT.getEnt().registerAsDsCntlUser(TmSsArm.getInstance());\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t /* choose the sensor and sensor direction */\r\n\t\t\t//2018-02-06 lab testing: powered motor such that negative joystick readings (positive PercentOutput values) moved the stage1 extender up\r\n\t\t\t//\t\t\t\t\t\t encoder readings decreased as stage1 went up, increased as it went down\r\n\t\t\tmtrCfg.encoderType = OptDefaults.ARM_CASCADING_ENCODER_ABSOLUTE ? \r\n\t\t\t\t\tFeedbackDevice.CTRE_MagEncoder_Absolute:\r\n\t\t\t\t\t\tFeedbackDevice.CTRE_MagEncoder_Relative;\r\n\t mtrCfg.motorObj.configSelectedFeedbackSensor(mtrCfg.encoderType, CtrePidIdxE.PRIMARY_CLOSED_LOOP, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t \r\n\t //set sensor phase before doing motor inversion....\r\n\t\t\t//2018-02-06 lab testing: powered stage1 motor such that negative joystick readings (positive PercentOutput values) moved the \r\n\t\t\t//\t\t\t\t\t\t\tstage1 extender up\r\n\t\t\t//\t\t\t\t\t\t encoder readings decreased as stage1 went up, increased as it went down\r\n\t mtrCfg.motorObj.setSensorPhase(mtrCfg.sensorPhase);\r\n\t \r\n\t\t\t/* lets grab the 360 degree position of the MagEncoder's absolute position */\r\n\t\t\tint absolutePosition = mtrCfg.getEncoderReading() & 0xFFF; /* keep only the bottom12 bits, we don't care about the wrap arounds */\r\n\t /* use the low level API to set the quad encoder signal */\r\n\t\t\tmtrCfg.motorObj.setSelectedSensorPosition(absolutePosition, CtrePidIdxE.PRIMARY_CLOSED_LOOP, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\r\n\t\t\tmtrCfg.encoderSnapshot = mtrCfg.getEncoderReading();\r\n\t\t\t\r\n\t\t\t/* set sensor phase before doing motor inversions! */\r\n\t\t\tif(mtrCfg.motorObj.m_namedCntlEnt.cMtrInversion.isInvertMotor()) { \r\n\t\t\t\tmtrCfg.motorObj.setInverted(CtreMotorInvertedE.INVERTED);\r\n\t\t\t}\r\n\t\t\tif(mtrCfg.auxMotorObj.m_namedCntlEnt.cMtrInversion.isInvertMotor()) { \r\n\t\t\t\tmtrCfg.auxMotorObj.setInverted(CtreMotorInvertedE.INVERTED);\r\n\t\t\t}\r\n\t\t\t\r\n\t /* set the peak and nominal outputs, 12V means full */\r\n\t mtrCfg.motorObj.configNominalOutputForward(0.0, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t mtrCfg.motorObj.configNominalOutputReverse(0.0, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t mtrCfg.motorObj.configPeakOutputForward(1.0, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t mtrCfg.motorObj.configPeakOutputReverse(-1.0, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t \t\t\t\r\n\t mtrCfg.motorObj.configContinuousCurrentLimit(mtrCfg.motorObj.m_namedCntlEnt.cMaxContinuousAmps.value, Cnst.CTRE_TIMEOUT_MS_NO_WAIT_FOR_COMPLETION);\r\n\t mtrCfg.motorObj.configPeakCurrentLimit(mtrCfg.motorObj.m_namedCntlEnt.cMaxPeakAmps.value, Cnst.CTRE_TIMEOUT_MS_NO_WAIT_FOR_COMPLETION);\r\n\t mtrCfg.motorObj.configPeakCurrentDuration(mtrCfg.motorObj.m_namedCntlEnt.cMaxPeakAmpsDurationMs.value, Cnst.CTRE_TIMEOUT_MS_NO_WAIT_FOR_COMPLETION);\r\n\r\n\t\t\tmtrCfg.motorObj.configClosedloopRamp(Cnst.VOLTAGE_RAMP_TIME_SECS, Cnst.CTRE_TIMEOUT_MS_NO_WAIT_FOR_COMPLETION);\r\n\t\t\tmtrCfg.motorObj.configOpenloopRamp(Cnst.VOLTAGE_RAMP_TIME_SECS, Cnst.CTRE_TIMEOUT_MS_NO_WAIT_FOR_COMPLETION);\r\n\t \r\n\t mtrCfg.auxMotorObj.configNominalOutputForward(0.0, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t mtrCfg.auxMotorObj.configNominalOutputReverse(0.0, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t mtrCfg.auxMotorObj.configPeakOutputForward(1.0, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t mtrCfg.auxMotorObj.configPeakOutputReverse(-1.0, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t \t\t\t\r\n\t mtrCfg.auxMotorObj.configContinuousCurrentLimit(mtrCfg.auxMotorObj.m_namedCntlEnt.cMaxContinuousAmps.value, Cnst.CTRE_TIMEOUT_MS_NO_WAIT_FOR_COMPLETION);\r\n\t mtrCfg.auxMotorObj.configPeakCurrentLimit(mtrCfg.auxMotorObj.m_namedCntlEnt.cMaxPeakAmps.value, Cnst.CTRE_TIMEOUT_MS_NO_WAIT_FOR_COMPLETION);\r\n\t mtrCfg.auxMotorObj.configPeakCurrentDuration(mtrCfg.auxMotorObj.m_namedCntlEnt.cMaxPeakAmpsDurationMs.value, Cnst.CTRE_TIMEOUT_MS_NO_WAIT_FOR_COMPLETION);\r\n\r\n\t\t\tmtrCfg.auxMotorObj.configClosedloopRamp(Cnst.VOLTAGE_RAMP_TIME_SECS, Cnst.CTRE_TIMEOUT_MS_NO_WAIT_FOR_COMPLETION);\r\n\t\t\tmtrCfg.auxMotorObj.configOpenloopRamp(Cnst.VOLTAGE_RAMP_TIME_SECS, Cnst.CTRE_TIMEOUT_MS_NO_WAIT_FOR_COMPLETION);\r\n\t \r\n\t /* set the allowable closed-loop error,\r\n\t * Closed-Loop output will be neutral within this range.\r\n\t * See Table in Section 17.2.1 for native units per rotation. \r\n\t */\r\n\t mtrCfg.motorObj.configAllowableClosedloopError(CtreSlotIdxE.PARM_SLOT_0, 0, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG); /* always servo */\r\n\t /* set closed loop gains in slot0 */\r\n\t mtrCfg.motorObj.config_kF(CtreSlotIdxE.PARM_SLOT_0, mtrCfg.encoderPidF, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t mtrCfg.motorObj.config_kP(CtreSlotIdxE.PARM_SLOT_0, mtrCfg.encoderPidP, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t mtrCfg.motorObj.config_kI(CtreSlotIdxE.PARM_SLOT_0, mtrCfg.encoderPidI, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\t mtrCfg.motorObj.config_kD(CtreSlotIdxE.PARM_SLOT_0, mtrCfg.encoderPidD, Cnst.CTRE_TIMEOUT_MS_WAIT_FOR_ENCODER_CFG);\r\n\r\n\t //assume the motor is wired to the talon in such a way that the talons can \r\n\t //be treated as if both motors are running the same direction\r\n\t mtrCfg.auxMotorObj.set(ControlMode.Follower, mtrCfg.motorObj.getDeviceID());\r\n\t\t}", "static void SKP_Silk_encode_pulses(\n SKP_Silk_range_coder_state psRC, /* I/O Range coder state */\n final int sigtype, /* I Sigtype */\n final int QuantOffsetType,/* I QuantOffsetType */\n final byte q[], /* I quantization indices */\n final int frame_length /* I Frame length */\n )\n {\n int i, k, j, iter, bit, nLS, scale_down, RateLevelIndex = 0;\n int abs_q, minSumBits_Q6, sumBits_Q6;\n int[] abs_pulses = new int[ MAX_FRAME_LENGTH ];\n int[] sum_pulses = new int[ MAX_NB_SHELL_BLOCKS ];\n int[] nRshifts = new int[ MAX_NB_SHELL_BLOCKS ];\n int[] pulses_comb = new int[ 8 ];\n int []abs_pulses_ptr;\n int abs_pulses_ptr_offset;\n byte []pulses_ptr;\n int pulses_ptr_offset;\n final int [] cdf_ptr;\n short[] nBits_ptr;\n\n\n /****************************/\n /* Prepare for shell coding */\n /****************************/\n /* Calculate number of shell blocks */\n iter = frame_length / SHELL_CODEC_FRAME_LENGTH;\n\n /* Take the absolute value of the pulses */\n for( i = 0; i < frame_length; i+=4 ) {\n abs_pulses[i+0] = q[i+0] > 0 ? q[i+0] : (-q[i+0]);\n abs_pulses[i+1] = q[i+1] > 0 ? q[i+1] : (-q[i+1]);\n abs_pulses[i+2] = q[i+2] > 0 ? q[i+2] : (-q[i+2]);\n abs_pulses[i+3] = q[i+3] > 0 ? q[i+3] : (-q[i+3]);\n }\n\n /* Calc sum pulses per shell code frame */\n abs_pulses_ptr = abs_pulses;\n abs_pulses_ptr_offset = 0;\n for( i = 0; i < iter; i++ ) {\n nRshifts[ i ] = 0;\n\n while( true ) {\n /* 1+1 -> 2 */\n scale_down = combine_and_check( pulses_comb, abs_pulses_ptr, abs_pulses_ptr_offset,\n TablesPulsesPerBlock.SKP_Silk_max_pulses_table[ 0 ], 8 );\n\n /* 2+2 -> 4 */\n scale_down += combine_and_check( pulses_comb, pulses_comb, 0,\n TablesPulsesPerBlock.SKP_Silk_max_pulses_table[ 1 ], 4 );\n\n /* 4+4 -> 8 */\n scale_down += combine_and_check( pulses_comb, pulses_comb, 0,\n TablesPulsesPerBlock.SKP_Silk_max_pulses_table[ 2 ], 2 );\n\n /* 8+8 -> 16 */\n sum_pulses[ i ] = pulses_comb[ 0 ] + pulses_comb[ 1 ];\n if( sum_pulses[ i ] > TablesPulsesPerBlock.SKP_Silk_max_pulses_table[ 3 ] ) {\n scale_down++;\n }\n\n if( scale_down !=0 ) {\n /* We need to down scale the quantization signal */\n nRshifts[ i ]++;\n for( k = 0; k < SHELL_CODEC_FRAME_LENGTH; k++ ) {\n abs_pulses_ptr[ abs_pulses_ptr_offset + k ] = ( abs_pulses_ptr[ abs_pulses_ptr_offset + k ] >>1 );\n }\n } else {\n /* Jump out of while(1) loop and go to next shell coding frame */\n break;\n }\n }\n abs_pulses_ptr_offset += SHELL_CODEC_FRAME_LENGTH;\n }\n\n /**************/\n /* Rate level */\n /**************/\n /* find rate level that leads to fewest bits for coding of pulses per block info */\n minSumBits_Q6 = Integer.MAX_VALUE;\n for( k = 0; k < N_RATE_LEVELS - 1; k++ ) {\n nBits_ptr = TablesPulsesPerBlock.SKP_Silk_pulses_per_block_BITS_Q6[ k ];\n sumBits_Q6 = TablesPulsesPerBlock.SKP_Silk_rate_levels_BITS_Q6[sigtype][ k ];\n for( i = 0; i < iter; i++ ) {\n if( nRshifts[ i ] > 0 ) {\n sumBits_Q6 += nBits_ptr[ MAX_PULSES + 1 ];\n } else {\n sumBits_Q6 += nBits_ptr[ sum_pulses[ i ] ];\n }\n }\n if( sumBits_Q6 < minSumBits_Q6 ) {\n minSumBits_Q6 = sumBits_Q6;\n RateLevelIndex = k;\n }\n }\n RangeCoder.SKP_Silk_range_encoder( psRC, RateLevelIndex,\n TablesPulsesPerBlock.SKP_Silk_rate_levels_CDF[ sigtype ], 0);\n\n /***************************************************/\n /* Sum-Weighted-Pulses Encoding */\n /***************************************************/\n cdf_ptr = TablesPulsesPerBlock.SKP_Silk_pulses_per_block_CDF[ RateLevelIndex ];\n for( i = 0; i < iter; i++ ) {\n if( nRshifts[ i ] == 0 ) {\n RangeCoder.SKP_Silk_range_encoder( psRC, sum_pulses[ i ], cdf_ptr, 0);\n } else {\n RangeCoder.SKP_Silk_range_encoder( psRC, MAX_PULSES + 1, cdf_ptr, 0);\n for( k = 0; k < nRshifts[ i ] - 1; k++ ) {\n RangeCoder.SKP_Silk_range_encoder( psRC, MAX_PULSES + 1,\n TablesPulsesPerBlock.SKP_Silk_pulses_per_block_CDF[ N_RATE_LEVELS - 1 ], 0);\n }\n RangeCoder.SKP_Silk_range_encoder( psRC, sum_pulses[ i ],\n TablesPulsesPerBlock.SKP_Silk_pulses_per_block_CDF[ N_RATE_LEVELS - 1 ], 0);\n }\n }\n\n /******************/\n /* Shell Encoding */\n /******************/\n for( i = 0; i < iter; i++ ) {\n if( sum_pulses[ i ] > 0 ) {\n ShellCoder.SKP_Silk_shell_encoder( psRC, abs_pulses, i * SHELL_CODEC_FRAME_LENGTH);\n }\n }\n\n /****************/\n /* LSB Encoding */\n /****************/\n for( i = 0; i < iter; i++ ) {\n if( nRshifts[ i ] > 0 ) {\n pulses_ptr = q;\n pulses_ptr_offset = i * SHELL_CODEC_FRAME_LENGTH;\n nLS = nRshifts[ i ] - 1;\n for( k = 0; k < SHELL_CODEC_FRAME_LENGTH; k++ ) {\n abs_q = pulses_ptr[pulses_ptr_offset + k] > 0 ? pulses_ptr[pulses_ptr_offset + k]: (-pulses_ptr[pulses_ptr_offset + k]);\n for( j = nLS; j > 0; j-- ) {\n bit = ( abs_q >> j ) & 1;\n RangeCoder.SKP_Silk_range_encoder( psRC, bit, TablesOther.SKP_Silk_lsb_CDF, 0);\n }\n bit = abs_q & 1;\n RangeCoder.SKP_Silk_range_encoder( psRC, bit, TablesOther.SKP_Silk_lsb_CDF, 0);\n }\n }\n }\n\n /****************/\n /* Encode signs */\n /****************/\n CodeSigns.SKP_Silk_encode_signs( psRC, q, frame_length, sigtype, QuantOffsetType, RateLevelIndex );\n }", "public DebugEncoder(Encoder ec) {\n this.ec = ec;\n }", "public void encoderDrive(double speed, double aInches, double bInches, double cInches, double dInches) {\n double ad = 720 * (aInches / 12.57);\n int aDistance = (int) ad;\n double bd = 720 * (bInches / 12.57);\n int bDistance = (int) bd;\n double cd = 720 * (cInches / 12.57);\n int cDistance = (int) cd;\n double dd = 720 * (dInches / 12.57);\n int dDistance = (int) dd;\n\n aDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n aDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n bDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n bDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n cDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n cDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n dDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n dDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n aDrive.setTargetPosition(aDistance);\n bDrive.setTargetPosition(bDistance);\n cDrive.setTargetPosition(cDistance);\n dDrive.setTargetPosition(dDistance);\n aDrive.setPower(speed);\n bDrive.setPower(speed);\n cDrive.setPower(speed);\n dDrive.setPower(speed);\n\n while (aDrive.isBusy() && bDrive.isBusy() && cDrive.isBusy() && dDrive.isBusy() && opModeIsActive()) {\n idle();\n }\n aDrive.setPower(0);\n bDrive.setPower(0);\n cDrive.setPower(0);\n dDrive.setPower(0);\n }", "public void init() {\n//\t\tint anglesToEncTicks = (int) ((90 - currentAngle) * encoderTicksPerRev);\n//\t\tarmMotor.setEncPosition(anglesToEncTicks);\n\t\twhile (armMotor.isFwdLimitSwitchClosed() != true) {\n\t\t\tarmMotor.set(.2);\n\t\t}\n\t\tSystem.out.println(\"Calibrated!\");\n\t\tarmMotor.setEncPosition(0);\n\t}", "public void rasterScanning(){\r\n ReadParameter embedPara = new ReadParameter();\r\n QuantisationEmbedding subband = new QuantisationEmbedding();\r\n int i,j,k,p;\r\n double[] coeffStream, modCoeffStream;\r\n //Modification in selected subband only\r\n if(embedPara.getSubbandChoice().compareTo(\"LF\") == 0){\r\n //Embed in low low subband only\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n coeffStream[k++] = subband.getSubbandLL()[i][j];\r\n }\r\n }\r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n // Write it back in proper order\r\n k = 0; // Reset k value\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n \r\n } else if(embedPara.getSubbandChoice().compareTo(\"HF\") == 0){\r\n //Embed in high frequency subband only\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length * 3];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n \r\n // Make it fir three high frequency subbands\r\n for(p=0; p<3; p++){\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n if(p==0){ //Get LH Subband values\r\n coeffStream[k++] = subband.getSubbandLH()[i][j];\r\n \r\n } else if(p==1){ //Get HL Subband values\r\n coeffStream[k++] = subband.getSubbandHL()[i][j];\r\n \r\n } else if(p==2){ //Get HH Subband values\r\n coeffStream[k++] = subband.getSubbandHH()[i][j];\r\n \r\n } // End of if-else condition \r\n } // End of inner loop\r\n } \r\n } // End of outer loop\r\n \r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n \r\n // Write it back in proper order\r\n k=0; // Reset k value\r\n //Write back LH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n \r\n \r\n } else if(embedPara.getSubbandChoice().compareTo(\"AF\") == 0){\r\n //Embed in all subbands\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length * 4];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n \r\n // Make it fir three high frequency subbands\r\n for(p=0; p<4; p++){\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n if(p==0){ //Get LL Subband values\r\n coeffStream[k++] = subband.getSubbandLL()[i][j];\r\n \r\n } else if(p==1){ //Get LH Subband values\r\n coeffStream[k++] = subband.getSubbandLH()[i][j];\r\n \r\n } else if(p==2){ //Get HL Subband values\r\n coeffStream[k++] = subband.getSubbandHL()[i][j];\r\n \r\n } else if(p==3){ //Get HH Subband values\r\n coeffStream[k++] = subband.getSubbandHH()[i][j];\r\n \r\n } // End of if-else condition \r\n } // End of inner loop\r\n } \r\n } // End of outer loop\r\n \r\n \r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n \r\n \r\n // Write it back in proper order\r\n k = 0; //Reset k value\r\n //Write back LL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back LH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n } // End subband choice if-else condition\r\n \r\n }", "private void m298c() {\n C0031aa b;\n int a;\n try {\n this.f260d.mo123a();\n try {\n String encodeToString = Base64.encodeToString(new C0175cn().mo544a(this.f260d.mo126b()), 0);\n if (!TextUtils.isEmpty(encodeToString)) {\n JSONObject jSONObject = this.f265j.getJSONObject(C0015a.f10A);\n jSONObject.put(C0281x.f889O, encodeToString);\n this.f265j.put(C0015a.f10A, jSONObject);\n }\n } catch (Exception e) {\n }\n byte[] bytes = String.valueOf(this.f265j).getBytes();\n if (bytes != null && !C0133br.m754a(f259g, bytes)) {\n if (!this.f266k) {\n b = C0031aa.m111a(f259g, AnalyticsConfig.getAppkey(f259g), bytes);\n } else {\n b = C0031aa.m114b(f259g, AnalyticsConfig.getAppkey(f259g), bytes);\n }\n byte[] c = b.mo120c();\n C0155ca.m887a(f259g).mo510g();\n byte[] a2 = this.f264i.mo201a(c);\n if (a2 == null) {\n a = 1;\n } else {\n a = m293a(a2);\n }\n switch (a) {\n case 1:\n if (!this.f267l) {\n C0155ca.m887a(f259g).mo501a(c);\n return;\n }\n return;\n case 2:\n this.f260d.mo128d();\n this.f263h.mo225k();\n return;\n case 3:\n this.f263h.mo225k();\n return;\n default:\n return;\n }\n }\n } catch (Throwable th) {\n }\n }", "Base64Binary getCarrierAIDC();", "private void configurarCodec(){\n\n\t\t// Necessario para utilizar o Processor como um Player.\n\t\tprocessor.setContentDescriptor(null);\n\n\n\t\tfor (int i = 0; i < processor.getTrackControls().length; i++) {\n\n\t\t\tif (processor.getTrackControls()[i].getFormat() instanceof VideoFormat) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// Instantiate and set the frame access codec to the data flow path.\n\t\t\t\t\tTrackControl videoTrack = processor.getTrackControls()[i];\n\t\t\t\t\tCodec codec[] = { new CodecVideo() };\n\t\t\t\t\tvideoTrack.setCodecChain(codec);\n\t\t\t\t\tbreak;\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t}\n\n\t\tprocessor.prefetch();\n\n\t}", "@Override\n public Switch compressorRunningSwitch() {\n return pcm::enabled;\n }", "public ByteEncoder()\n\t{\n\t\tencodeTargetList = Charset.availableCharsets().keySet();\n\t}", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }", "public dynamixel_command_t getArmCommand();", "public void resetEncoder() {\n spark_encoder.setPosition(0);\n }", "public BitmapEncoder() {\n this((Bitmap.CompressFormat) null, 90);\n }", "Codec getCurrentCodec();", "public ArrayList<Byte> generateRepeatBlockCode(RepeatBlock rb) {\n if ((rb.getActions().getChildren().size() == 0) || (rb.getCondition().getChildren().size() == 0)\n || rb.getHolders().getChildren().size() == 0) {\n return null;\n }\n Block conBlock = (Block) rb.getCondition().getChildren().get(0);\n\n ArrayList<Byte> childArr = generateByteList(rb.getHolders());\n ArrayList<Byte> cmdArr = new ArrayList<>();\n //checking condition or sense\n char instruction = 'c';\n int address = conBlock.getCapability().getDevice().getAddress();\n char cmdChar = conBlock.getCapability().getExeCommand().charAt(0);\n char cmdChar1 = conBlock.getCapability().getExeCommand().charAt(1);\n char compType = conBlock.getCapability().getCompType().charAt(0);\n\n switch (conBlock.getCapability().getCompType().charAt(0)) {\n\n case '=':\n compType = '!';\n break;\n case '!':\n compType = '=';\n break;\n case '<':\n compType = '.';\n break;\n case '>':\n compType = ',';\n break;\n case '.':\n compType = '<';\n break;\n case ',':\n compType = '>';\n break;\n }\n\n cmdArr.add((byte) instruction);\n cmdArr.add((byte) address);\n cmdArr.add((byte) compType);\n\n short respSize = Short.parseShort(conBlock.getCapability().getRespSize());\n byte[] respArr = shortToByteArray(respSize);\n cmdArr.add(respArr[0]);\n// for(byte b:respArr){\n// cmdArr.add(b);\n// }\n int refVal = Integer.parseInt(conBlock.getCapability().getRefValue());\n if (conBlock.getCapability().getType().equals(Capability.CAP_CONDITION)) {\n refVal = Integer.parseInt(conBlock.getTextField().getText());\n }\n byte[] refArr = intToByteArray(refVal);\n for (int i = 0; i < respSize; i++) {\n cmdArr.add(refArr[i]);\n }\n cmdArr.add((byte) cmdChar);\n cmdArr.add((byte) cmdChar1);\n short jumpAdd = (short) (childArr.size() + 4 + cmdArr.size() + 3);\n byte[] jumpArr = shortToByteArray(jumpAdd);\n int counter = 3;\n for (byte b : jumpArr) {\n cmdArr.add(counter++, b);\n }\n //prepending command length parameter\n cmdArr.add(0, (byte) (cmdArr.size() + 1));\n\n //jump back instruction\n ArrayList<Byte> jumpBytes = new ArrayList<>();\n instruction = 'j';\n jumpAdd = (short) (-childArr.size() - cmdArr.size());\n jumpBytes.add((byte) instruction);\n jumpArr = shortToByteArray(jumpAdd);\n for (byte b : jumpArr) {\n jumpBytes.add(b);\n }\n //prepending command length parameter\n jumpBytes.add(0, (byte) (jumpBytes.size() + 1));\n\n //merging lists\n cmdArr.addAll(childArr);\n cmdArr.addAll(jumpBytes);\n\n return cmdArr;\n }", "public LMScrambleShift (RandomStream stream) {\n super(stream);\n }", "public interface ArmController {\n\n /**\n * Applies a rotational force to the arm base.\n *\n * @param force The rotational force to apply at the arm base. This is not currently supported.\n * @see ArmBase#setRotationalForce(double)\n * @see <a href=http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.8883&rep=rep1&type=pdf>Learning to control an octopus arm with gaussian process temporal difference methods</a>\n * @see <a href=http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.137.7975&rep=rep1&type=pdf>Dynamic model of the octopus arm: Biomechanics of the octopus reaching movement.</a>\n */\n public void applyRotationForce(double force);\n\n /**\n * Applies a contraction force to the dorsal muscle of segment(i).\n *\n * @param i The index of the segment being activated\n * @param force The contraction force to be applied\n * @see ArmSegment#setDorsalContraction(double)\n * @see Muscle#setContraction(double)\n * @see <a href=http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.8883&rep=rep1&type=pdf>Learning to control an octopus arm with gaussian process temporal difference methods</a>\n * @see <a href=http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.137.7975&rep=rep1&type=pdf>Dynamic model of the octopus arm: Biomechanics of the octopus reaching movement.</a>\n */\n public void contractDorsalMuscle(int i, double force);\n\n /**\n * Applies a contraction force to the transverse muscle of segment(i).\n *\n * @param i The index of the segment being activated.\n * @param force The contraction force to be applied.\n * @see ArmSegment#setTransverseContraction(double)\n * @see Muscle#setContraction(double)\n * @see <a href=http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.8883&rep=rep1&type=pdf>Learning to control an octopus arm with gaussian process temporal difference methods</a>\n * @see <a href=http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.137.7975&rep=rep1&type=pdf>Dynamic model of the octopus arm: Biomechanics of the octopus reaching movement.</a>\n */\n public void contractTransverseMuscle(int i, double force);\n\n /**\n * Applies a contraction force to the ventral muscle of segment(i).\n *\n * @param i The index of the segment being activated.\n * @param force The contraction force to be applied.\n * @see ArmSegment#setVentralContraction(double)\n * @see hyper.experiments.octopusArm.model.Muscle#setContraction(double)\n * @see <a href=http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.8883&rep=rep1&type=pdf>Learning to control an octopus arm with gaussian process temporal difference methods</a>\n * @see <a href=http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.137.7975&rep=rep1&type=pdf>Dynamic model of the octopus arm: Biomechanics of the octopus reaching movement.</a>\n */\n public void contractVentralMuscle(int i, double force);\n\n}", "private void doExtractDecodeEncodeMux(MediaExtractor videoExtractor,\n MediaExtractor audioExtractor, MediaCodec videoDecoder,\n MediaCodec videoEncoder, MediaCodec audioDecoder,\n MediaCodec audioEncoder, MediaMuxer muxer) {\n ByteBuffer[] videoDecoderInputBuffers = null;\n ByteBuffer[] videoDecoderOutputBuffers = null;\n ByteBuffer[] videoEncoderInputBuffers = null;\n ByteBuffer[] videoEncoderOutputBuffers = null;\n MediaCodec.BufferInfo videoDecoderOutputBufferInfo = null;\n MediaCodec.BufferInfo videoEncoderOutputBufferInfo = null;\n if (mCopyVideo) {\n videoDecoderInputBuffers = videoDecoder.getInputBuffers();\n videoDecoderOutputBuffers = videoDecoder.getOutputBuffers();\n videoEncoderInputBuffers = videoEncoder.getInputBuffers();\n videoEncoderOutputBuffers = videoEncoder.getOutputBuffers();\n videoDecoderOutputBufferInfo = new MediaCodec.BufferInfo();\n videoEncoderOutputBufferInfo = new MediaCodec.BufferInfo();\n }\n ByteBuffer[] audioDecoderInputBuffers = null;\n ByteBuffer[] audioDecoderOutputBuffers = null;\n ByteBuffer[] audioEncoderInputBuffers = null;\n ByteBuffer[] audioEncoderOutputBuffers = null;\n MediaCodec.BufferInfo audioDecoderOutputBufferInfo = null;\n MediaCodec.BufferInfo audioEncoderOutputBufferInfo = null;\n if (mCopyAudio) {\n audioDecoderInputBuffers = audioDecoder.getInputBuffers();\n audioDecoderOutputBuffers = audioDecoder.getOutputBuffers();\n audioEncoderInputBuffers = audioEncoder.getInputBuffers();\n audioEncoderOutputBuffers = audioEncoder.getOutputBuffers();\n audioDecoderOutputBufferInfo = new MediaCodec.BufferInfo();\n audioEncoderOutputBufferInfo = new MediaCodec.BufferInfo();\n }\n // We will get these from the decoders when notified of a format change.\n MediaFormat decoderOutputVideoFormat = null;\n MediaFormat decoderOutputAudioFormat = null;\n // We will get these from the encoders when notified of a format change.\n MediaFormat encoderOutputVideoFormat = null;\n MediaFormat encoderOutputAudioFormat = null;\n // We will determine these once we have the output format.\n int outputVideoTrack = -1;\n int outputAudioTrack = -1;\n // Whether things are done on the video side.\n boolean videoExtractorDone = false;\n boolean videoDecoderDone = false;\n boolean videoEncoderDone = false;\n // Whether things are done on the audio side.\n boolean audioExtractorDone = false;\n boolean audioDecoderDone = false;\n boolean audioEncoderDone = false;\n // The video decoder output buffer to process, -1 if none.\n int pendingVideoDecoderOutputBufferIndex = -1;\n // The audio decoder output buffer to process, -1 if none.\n int pendingAudioDecoderOutputBufferIndex = -1;\n\n boolean muxing = false;\n\n int videoExtractedFrameCount = 0;\n int videoDecodedFrameCount = 0;\n int videoEncodedFrameCount = 0;\n\n int audioExtractedFrameCount = 0;\n int audioDecodedFrameCount = 0;\n int audioEncodedFrameCount = 0;\n boolean mVideoConfig = false;\n boolean mainVideoFrame = false;\n long mLastVideoSampleTime = 0;\n long mVideoSampleTime = 0;\n\n boolean mAudioConfig = false;\n boolean mainAudioFrame = false;\n long mLastAudioSampleTime = 0;\n long mAudioSampleTime = 0;\n while (!interrupted&& ((mCopyVideo && !videoEncoderDone) || (mCopyAudio && !audioEncoderDone))) {\n //###########################Video###################################\n // Extract video from file and feed to decoder.\n // Do not extract video if we have determined the output format but\n // we are not yet ready to mux the frames.\n while (mCopyVideo && !videoExtractorDone\n && (encoderOutputVideoFormat == null || muxing)) {\n int decoderInputBufferIndex = videoDecoder\n .dequeueInputBuffer(TIMEOUT_USEC);\n if (decoderInputBufferIndex <= MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no video decoder input buffer: \"\n + decoderInputBufferIndex);\n break;\n }\n Log.d(\"wanlijun\",\n \"video decoder dequeueInputBuffer: returned input buffer: \"\n + decoderInputBufferIndex);\n ByteBuffer decoderInputBuffer = videoDecoderInputBuffers[decoderInputBufferIndex];\n int size = videoExtractor.readSampleData(decoderInputBuffer, 0);\n if (videoExtractor.getSampleFlags() == MediaExtractor.SAMPLE_FLAG_SYNC) {\n Log.d(\"wanlijun\",\" video decoder SAMPLE_FLAG_SYNC \");\n }\n long presentationTime = videoExtractor.getSampleTime();\n Log.d(\"wanlijun\", \"video extractor: returned buffer of size \"\n + size);\n Log.d(\"wanlijun\", \"video extractor: returned buffer for time \"\n + presentationTime);\n if (size > 0) {\n videoDecoder.queueInputBuffer(decoderInputBufferIndex, 0,\n size, presentationTime,\n videoExtractor.getSampleFlags());\n }\n videoExtractorDone = !videoExtractor.advance();\n if (videoExtractorDone) {\n Log.d(\"wanlijun\", \"video extractor: EOS\");\n videoDecoder.queueInputBuffer(decoderInputBufferIndex, 0,\n 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM);\n }\n videoExtractedFrameCount++;\n // We extracted a frame, let's try something else next.\n break;\n }\n //###########################Audio###################################\n // Extract audio from file and feed to decoder.\n // Do not extract audio if we have determined the output format but\n // we are not yet ready to mux the frames.\n while (mCopyAudio && !audioExtractorDone\n && (encoderOutputAudioFormat == null || muxing)) {\n int decoderInputBufferIndex = audioDecoder.dequeueInputBuffer(TIMEOUT_USEC);\n if (decoderInputBufferIndex <= MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no audio decoder input buffer: \"+decoderInputBufferIndex);\n break;\n }\n Log.d(\"wanlijun\", \"audio decoder dequeueInputBuffer: returned input buffer: \"\n + decoderInputBufferIndex);\n ByteBuffer decoderInputBuffer = audioDecoderInputBuffers[decoderInputBufferIndex];\n int size = audioExtractor.readSampleData(decoderInputBuffer, 0);\n long presentationTime = audioExtractor.getSampleTime();\n Log.d(\"wanlijun\", \"audio extractor: returned buffer of size \"\n + size);\n Log.d(\"wanlijun\", \"audio extractor: returned buffer for time \"\n + presentationTime);\n if (size > 0) {\n audioDecoder.queueInputBuffer(decoderInputBufferIndex, 0,\n size, presentationTime,\n audioExtractor.getSampleFlags());\n }\n audioExtractorDone = !audioExtractor.advance();\n if (audioExtractorDone) {\n Log.d(\"wanlijun\", \"audio extractor: EOS\");\n audioDecoder.queueInputBuffer(decoderInputBufferIndex, 0,\n 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM);\n }\n audioExtractedFrameCount++;\n // We extracted a frame, let's try something else next.\n break;\n }\n\n // Poll output frames from the video decoder and feed the encoder.\n while (mCopyVideo && !videoDecoderDone\n && pendingVideoDecoderOutputBufferIndex == -1\n && (encoderOutputVideoFormat == null || muxing)) {\n int decoderOutputBufferIndex = videoDecoder.dequeueOutputBuffer(videoDecoderOutputBufferInfo,\n TIMEOUT_USEC);\n if (decoderOutputBufferIndex == MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no video decoder output buffer\");\n break;\n }else if (decoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {\n //do what for this?\n decoderOutputVideoFormat = videoDecoder.getOutputFormat();\n Log.d(\"wanlijun\", \"video decoder: output format changed: \" + decoderOutputVideoFormat);\n break;\n }else if (decoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {\n Log.d(\"wanlijun\", \"video decoder: output buffers changed\");\n videoDecoderOutputBuffers = videoDecoder.getOutputBuffers();\n break;\n }\n\n if ((videoDecoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {\n Log.d(\"wanlijun\", \"video decoder: codec config buffer\");\n videoDecoder.releaseOutputBuffer(decoderOutputBufferIndex,false);\n break;\n }\n Log.d(\"wanlijun\", \"video decoder: returned buffer for time \"\n + videoDecoderOutputBufferInfo.presentationTimeUs);\n\n pendingVideoDecoderOutputBufferIndex = decoderOutputBufferIndex;\n videoDecodedFrameCount++;\n // We extracted a pending frame, let's try something else next.\n break;\n }\n\n // Feed the pending decoded audio buffer to the video encoder.\n while (mCopyVideo && pendingVideoDecoderOutputBufferIndex != -1) {\n Log.d(\"wanlijun\",\"video decoder: attempting to process pending buffer: \"\n + pendingVideoDecoderOutputBufferIndex);\n int encoderInputBufferIndex = videoEncoder.dequeueInputBuffer(TIMEOUT_USEC);\n if (encoderInputBufferIndex <= MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no video encoder input buffer: \"\n +encoderInputBufferIndex);\n break;\n }\n Log.d(\"wanlijun\", \"video encoder: returned input buffer: \"\n + encoderInputBufferIndex);\n ByteBuffer encoderInputBuffer = videoEncoderInputBuffers[encoderInputBufferIndex];\n int size = videoDecoderOutputBufferInfo.size;\n long presentationTime = videoDecoderOutputBufferInfo.presentationTimeUs;\n Log.d(\"wanlijun\", \"video decoder: processing pending buffer: \"\n + pendingVideoDecoderOutputBufferIndex);\n Log.d(\"wanlijun\", \"video decoder: pending buffer of size \" + size);\n Log.d(\"wanlijun\", \"video decoder: pending buffer for time \"\n + presentationTime);\n if (size >= 0) {\n\n try {\n ByteBuffer decoderOutputBuffer = videoDecoderOutputBuffers[pendingVideoDecoderOutputBufferIndex]\n .duplicate();\n decoderOutputBuffer\n .position(videoDecoderOutputBufferInfo.offset);\n decoderOutputBuffer\n .limit(videoDecoderOutputBufferInfo.offset + size);\n encoderInputBuffer.position(0);\n encoderInputBuffer.put(decoderOutputBuffer);\n //size not enable\n videoEncoder.queueInputBuffer(encoderInputBufferIndex, 0,\n size, presentationTime,\n videoDecoderOutputBufferInfo.flags);\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n\n }\n videoDecoder.releaseOutputBuffer(\n pendingVideoDecoderOutputBufferIndex, false);\n pendingVideoDecoderOutputBufferIndex = -1;\n if ((videoDecoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {\n Log.d(\"wanlijun\", \"video decoder: EOS\");\n videoDecoderDone = true;\n }\n // We enqueued a pending frame, let's try something else next.\n break;\n }\n // Poll frames from the video encoder and send them to the muxer.\n while (mCopyVideo && !videoEncoderDone\n && (encoderOutputVideoFormat == null || muxing)) {\n // can not get avilabel outputBuffers?\n int encoderOutputBufferIndex = videoEncoder.dequeueOutputBuffer(videoEncoderOutputBufferInfo,\n TIMEOUT_USEC);\n if (encoderOutputBufferIndex == MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no video encoder output buffer\");\n break;\n }else if (encoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {\n Log.d(\"wanlijun\", \"video encoder: output format changed\");\n if (outputVideoTrack >= 0) {\n // fail(\"video encoder changed its output format again?\");\n Log.d(\"wanlijun\",\"video encoder changed its output format again?\");\n }\n encoderOutputVideoFormat = videoEncoder.getOutputFormat();\n break;\n }else if (encoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {\n Log.d(\"wanlijun\", \"video encoder: output buffers changed\");\n videoEncoderOutputBuffers = videoEncoder.getOutputBuffers();\n break;\n }\n\n // assertTrue(\"should have added track before processing output\", muxing);\n Log.d(\"wanlijun\", \"video encoder: returned output buffer: \"\n + encoderOutputBufferIndex);\n Log.d(\"wanlijun\", \"video encoder: returned buffer of size \"\n + videoEncoderOutputBufferInfo.size);\n ByteBuffer encoderOutputBuffer = videoEncoderOutputBuffers[encoderOutputBufferIndex];\n if ((videoEncoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {\n Log.d(\"wanlijun\", \"video encoder: codec config buffer\");\n // Simply ignore codec config buffers.\n mVideoConfig = true;\n videoEncoder.releaseOutputBuffer(encoderOutputBufferIndex,false);\n break;\n }\n\n\n if(mVideoConfig){\n if(!mainVideoFrame){\n mLastVideoSampleTime = videoEncoderOutputBufferInfo.presentationTimeUs;\n mainVideoFrame = true;\n }else{\n if(mVideoSampleTime == 0){\n mVideoSampleTime = videoEncoderOutputBufferInfo.presentationTimeUs - mLastVideoSampleTime;\n }\n }\n }\n videoEncoderOutputBufferInfo.presentationTimeUs = mLastVideoSampleTime + mVideoSampleTime;\n if (videoEncoderOutputBufferInfo.size != 0) {\n muxer.writeSampleData(outputVideoTrack,\n encoderOutputBuffer, videoEncoderOutputBufferInfo);\n mLastVideoSampleTime = videoEncoderOutputBufferInfo.presentationTimeUs;\n }\n\n if ((videoEncoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {\n Log.d(\"wanlijun\", \"video encoder: EOS\");\n videoEncoderDone = true;\n }\n videoEncoder.releaseOutputBuffer(encoderOutputBufferIndex,\n false);\n videoEncodedFrameCount++;\n // We enqueued an encoded frame, let's try something else next.\n break;\n }\n\n // Poll output frames from the audio decoder.\n // Do not poll if we already have a pending buffer to feed to the\n // encoder.\n while (mCopyAudio && !audioDecoderDone\n && pendingAudioDecoderOutputBufferIndex == -1\n && (encoderOutputAudioFormat == null || muxing)) {\n int decoderOutputBufferIndex = audioDecoder\n .dequeueOutputBuffer(audioDecoderOutputBufferInfo,TIMEOUT_USEC);\n if (decoderOutputBufferIndex == MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no audio decoder output buffer\");\n break;\n }else if (decoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {\n decoderOutputAudioFormat = audioDecoder.getOutputFormat();\n Log.d(\"wanlijun\", \"audio decoder: output format changed: \" + decoderOutputAudioFormat);\n break;\n }else if (decoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {\n Log.d(\"wanlijun\", \"audio decoder: output buffers changed\");\n audioDecoderOutputBuffers = audioDecoder.getOutputBuffers();\n break;\n }\n\n Log.d(\"wanlijun\", \"audio decoder: returned output buffer: \"\n + decoderOutputBufferIndex);\n Log.d(\"wanlijun\", \"audio decoder: returned buffer of size \"\n + audioDecoderOutputBufferInfo.size);\n Log.d(\"wanlijun\", \"audio decoder: returned buffer for time \"\n + audioDecoderOutputBufferInfo.presentationTimeUs);\n\n if ((audioDecoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {\n Log.d(\"wanlijun\", \"audio decoder: codec config buffer\");\n audioDecoder.releaseOutputBuffer(decoderOutputBufferIndex,false);\n break;\n }\n\n\n pendingAudioDecoderOutputBufferIndex = decoderOutputBufferIndex;\n audioDecodedFrameCount++;\n // We extracted a pending frame, let's try something else next.\n break;\n }\n\n // Feed the pending decoded audio buffer to the audio encoder.\n while (mCopyAudio && pendingAudioDecoderOutputBufferIndex != -1) {\n Log.d(\"wanlijun\",\"audio decoder: attempting to process pending buffer: \"+ pendingAudioDecoderOutputBufferIndex);\n int encoderInputBufferIndex = audioEncoder.dequeueInputBuffer(TIMEOUT_USEC);\n if (encoderInputBufferIndex <= MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no audio encoder input buffer: \"+encoderInputBufferIndex);\n break;\n }\n Log.d(\"wanlijun\", \"audio encoder: returned input buffer: \"+ encoderInputBufferIndex);\n ByteBuffer encoderInputBuffer = audioEncoderInputBuffers[encoderInputBufferIndex];\n int size = audioDecoderOutputBufferInfo.size;\n long presentationTime = audioDecoderOutputBufferInfo.presentationTimeUs;\n Log.d(\"wanlijun\", \"audio decoder: processing pending buffer: \"+ pendingAudioDecoderOutputBufferIndex);\n Log.d(\"wanlijun\", \"audio decoder: pending buffer of size \" + size);\n Log.d(\"wanlijun\", \"audio decoder: pending buffer for time \"+ presentationTime);\n if (size >= 0) {\n try {\n ByteBuffer decoderOutputBuffer = audioDecoderOutputBuffers[pendingAudioDecoderOutputBufferIndex]\n .duplicate();\n decoderOutputBuffer\n .position(audioDecoderOutputBufferInfo.offset);\n decoderOutputBuffer\n .limit(audioDecoderOutputBufferInfo.offset + size);\n encoderInputBuffer.position(0);\n encoderInputBuffer.put(decoderOutputBuffer);\n audioEncoder.queueInputBuffer(encoderInputBufferIndex, 0,\n audioDecoderOutputBufferInfo.offset + size, presentationTime,\n audioDecoderOutputBufferInfo.flags);\n\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n\n }\n audioDecoder.releaseOutputBuffer(pendingAudioDecoderOutputBufferIndex, false);\n pendingAudioDecoderOutputBufferIndex = -1;\n if ((audioDecoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {\n Log.d(\"wanlijun\", \"audio decoder: EOS\");\n audioDecoderDone = true;\n }\n // We enqueued a pending frame, let's try something else next.\n break;\n }\n\n // Poll frames from the audio encoder and send them to the muxer.\n while (mCopyAudio && !audioEncoderDone\n && (encoderOutputAudioFormat == null || muxing)) {\n int encoderOutputBufferIndex = audioEncoder\n .dequeueOutputBuffer(audioEncoderOutputBufferInfo,TIMEOUT_USEC);\n if (encoderOutputBufferIndex == MediaCodec.INFO_TRY_AGAIN_LATER) {\n Log.d(\"wanlijun\", \"no audio encoder output buffer\");\n break;\n }else if (encoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) {\n Log.d(\"wanlijun\", \"audio encoder: output format changed\");\n if (outputAudioTrack >= 0) {\n // fail(\"audio encoder changed its output format again?\");\n Log.d(\"wanlijun\",\"audio encoder changed its output format again?\");\n }\n encoderOutputAudioFormat = audioEncoder.getOutputFormat();\n break;\n }else if (encoderOutputBufferIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {\n Log.d(\"wanlijun\", \"audio encoder: output buffers changed\");\n audioEncoderOutputBuffers = audioEncoder.getOutputBuffers();\n break;\n }\n // assertTrue(\"should have added track before processing output\",muxing);\n Log.d(\"wanlijun\", \"audio encoder: returned output buffer: \"\n + encoderOutputBufferIndex);\n Log.d(\"wanlijun\", \"audio encoder: returned buffer of size \"\n + audioEncoderOutputBufferInfo.size);\n ByteBuffer encoderOutputBuffer = audioEncoderOutputBuffers[encoderOutputBufferIndex];\n if ((audioEncoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0) {\n Log.d(\"wanlijun\", \"audio encoder: codec config buffer\");\n // Simply ignore codec config buffers.\n mAudioConfig = true;\n audioEncoder.releaseOutputBuffer(encoderOutputBufferIndex,false);\n break;\n }\n Log.d(\"wanlijun\", \" audio encoder: returned buffer for time \"\n + audioEncoderOutputBufferInfo.presentationTimeUs);\n\n if(mAudioConfig){\n if(!mainAudioFrame){\n mLastAudioSampleTime = audioEncoderOutputBufferInfo.presentationTimeUs;\n mainAudioFrame = true;\n }else{\n if(mAudioSampleTime == 0){\n mAudioSampleTime = audioEncoderOutputBufferInfo.presentationTimeUs - mLastAudioSampleTime;\n }\n }\n }\n\n audioEncoderOutputBufferInfo.presentationTimeUs = mLastAudioSampleTime + mAudioSampleTime;\n if (audioEncoderOutputBufferInfo.size != 0) {\n muxer.writeSampleData(outputAudioTrack,\n encoderOutputBuffer, audioEncoderOutputBufferInfo);\n mLastAudioSampleTime = audioEncoderOutputBufferInfo.presentationTimeUs;\n }\n\n if ((audioEncoderOutputBufferInfo.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {\n Log.d(\"wanlijun\", \"audio encoder: EOS\");\n audioEncoderDone = true;\n }\n audioEncoder.releaseOutputBuffer(encoderOutputBufferIndex,false);\n audioEncodedFrameCount++;\n // We enqueued an encoded frame, let's try something else next.\n break;\n }\n\n if (!muxing && (!mCopyAudio || encoderOutputAudioFormat != null)\n && (!mCopyVideo || encoderOutputVideoFormat != null)) {\n if (mCopyVideo) {\n Log.d(\"wanlijun\", \"muxer: adding video track.\");\n outputVideoTrack = muxer.addTrack(encoderOutputVideoFormat);\n }\n if (mCopyAudio) {\n Log.d(\"wanlijun\", \"muxer: adding audio track.\");\n outputAudioTrack = muxer.addTrack(encoderOutputAudioFormat);\n }\n Log.d(\"wanlijun\", \"muxer: starting\");\n muxer.start();\n muxing = true;\n }\n }\n Log.d(\"wanlijun\", \"exit looper\");\n }", "public void onEncoderClosed();", "public void handler() {\n int t, r;\n t = RM(ea);\n r = konami.cc & CC_C;\n r = (r | t << 1);\n CLR_NZVC();\n SET_FLAGS8(t, t, r);\n WM(ea, r);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d rol_ix :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n\n }", "public static void encode() {\n char[] seq = new char[R];\n\n for (int i = 0; i < R; i++)\n seq[i] = (char) i;\n\n while (!BinaryStdIn.isEmpty()) {\n char c = BinaryStdIn.readChar();\n char t = seq[0];\n int i;\n for (i = 0; i < R - 1; i++) {\n char tmp;\n if (t == c) break;\n tmp = t;\n t = seq[i + 1];\n seq[i + 1] = tmp;\n }\n seq[0] = t;\n BinaryStdOut.write((char) i);\n }\n BinaryStdOut.close();\n }", "@Override\n public void loop() {\n left.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n right.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n left.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n right.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }", "@TargetApi(Build.VERSION_CODES.JELLY_BEAN)\n private static MediaCodecInfo chooseVideoEncoder(String name) {\n\n int nbCodecs = MediaCodecList.getCodecCount();\n\n for (int i = 0; i < nbCodecs; i++) {\n MediaCodecInfo mci = MediaCodecList.getCodecInfoAt(i);\n if (!mci.isEncoder()) {\n continue;\n }\n String[] types = mci.getSupportedTypes();\n for (int j = 0; j < types.length; j++) {\n if (types[j].equalsIgnoreCase(VCODEC)) {\n LogUtil.i(TAG, String.format(\"vencoder %s types: %s\", mci.getName(), types[j]));\n if (name == null) {\n return mci;\n }\n if (mci.getName().contains(name)) {\n return mci;\n }\n }\n }\n }\n return null;\n }", "public Codec getCodec();", "void runUsingEncoder(double xTarget, double yTarget, double inputPower);", "public IntRAC() {\n\t\tcodebook = new ArrayList<int[]>();\n\t\tthis.threshold = 128;\n\t\tthis.nDims = -1;\n\t\tthis.totalSamples = 0;\n\t}", "@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n leftFront = hardwareMap.get(DcMotor.class, \"left_front\");\n rightFront = hardwareMap.get(DcMotor.class, \"right_front\");\n leftBack = hardwareMap.get(DcMotor.class, \"left_back\");\n rightBack = hardwareMap.get(DcMotor.class, \"right_back\");\n\n\n leftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n leftBack.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n right = hardwareMap.get(Servo.class, \"right\");\n left = hardwareMap.get(Servo.class, \"left\");\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n leftFront.setDirection(DcMotor.Direction.REVERSE);\n rightFront.setDirection(DcMotor.Direction.FORWARD);\n leftBack.setDirection(DcMotor.Direction.REVERSE);\n rightBack.setDirection(DcMotor.Direction.FORWARD);\n\n leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n digitalTouch = hardwareMap.get(DigitalChannel.class, \"sensor_digital\");\n digitalTouch.setMode(DigitalChannel.Mode.INPUT);\n\n right.setDirection(Servo.Direction.REVERSE);\n\n right.scaleRange(0, 0.25);\n left.scaleRange(0.7, 1);\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n\n servo(0);\n runtime.reset();\n encoderSideways(0.25, -5, -5, 5);\n // drive until touch sensor pressed\n // activate servos to grab platform\n // drive backwards for a while\n // release servos\n // sideways part\n // remember to do red autonomous for repackage org.firstinspires.ftc.teamcode;\n }", "public double getEncoderPosition() {\n SmartDashboard.putNumber(\"Raw Encoder Value\", armMotor.getSelectedSensorPosition(0));\n return armMotor.getSelectedSensorPosition(0) * Const.kArmTalon4096Unit2Deg * Const.kArmGearRatioEncoder2Arm;\n }", "private void setupSteeringEncoders() {\n //12.8:1\n steeringFR.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringBR.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringFL.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringBL.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n }", "private Bitmap encodeToQrCode(String text) throws WriterException {\n BitMatrix bitMatrix;\n try {\n bitMatrix = new MultiFormatWriter().encode(\n text,\n BarcodeFormat.DATA_MATRIX.QR_CODE,\n QR_CODE_WIDTH, QR_CODE_WIDTH, null\n );\n\n } catch (IllegalArgumentException Illegalargumentexception) {\n return null;\n }\n int bitMatrixWidth = bitMatrix.getWidth();\n int bitMatrixHeight = bitMatrix.getHeight();\n int[] pixels = new int[bitMatrixWidth * bitMatrixHeight];\n\n for (int y = 0; y < bitMatrixHeight; y++) {\n int offset = y * bitMatrixWidth;\n for (int x = 0; x < bitMatrixWidth; x++) {\n pixels[offset + x] = bitMatrix.get(x, y) ?\n context.getResources().getColor(R.color.qrCodeBlack):context.getResources().getColor(R.color.qrCodeWhite);\n }\n }\n Bitmap bitmap = Bitmap.createBitmap(bitMatrixWidth, bitMatrixHeight, Bitmap.Config.ARGB_4444);\n bitmap.setPixels(pixels, 0, QR_CODE_WIDTH, 0, 0, bitMatrixWidth, bitMatrixHeight);\n return bitmap;\n }", "public Encoder getRightEnc() {\n return rightEnc;\n }", "static void rlc_without_carry(String passed){\n\t\tint val = hexa_to_deci(registers.get('A'));\n\t\tint bits[] = new int[8];\n\t\tfor(int i=0;i<8;i++){\n\t\t\tbits[7-i] = val%2;\n\t\t\tval/=2;\n\t\t}\n\t\tCS = bits[0]==1?true:false;\n\t\tfor(int i=0;i<7;i++)\n\t\t\tbits[i] = bits[i+1];\n\t\tbits[7] = CS?1:0;\n\t\tint dec = 0;\n\t\tfor(int i=0;i<8;i++)\n\t\t\tdec+=(bits[7-i]*Math.pow(2,i));\n\t\tregisters.put('A',decimel_to_hexa_8bit(dec));\n\t}", "private CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst) {\n byte[] srcArray = src.array();\n int srcPosition = src.arrayOffset() + src.position();\n int srcLength = src.arrayOffset() + src.limit();\n\n char[] destArray = dst.array();\n int destPosition = dst.arrayOffset() + dst.position();\n int destLength = dst.arrayOffset() + dst.limit();\n int destLengthASCII = destPosition + Math.min(srcLength - srcPosition, destLength - destPosition);\n\n // ASCII only loop\n while (destPosition < destLengthASCII && srcArray[srcPosition] >= 0) {\n destArray[destPosition++] = (char) srcArray[srcPosition++];\n }\n\n while (srcPosition < srcLength) {\n int b1 = srcArray[srcPosition];\n if (b1 >= 0) {\n // 1 byte, 7 bits: 0xxxxxxx\n if (destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 1);\n }\n destArray[destPosition++] = (char) b1;\n srcPosition++;\n } else if ((b1 >> 5) == -2) {\n // 2 bytes, 11 bits: 110xxxxx 10xxxxxx\n if (srcLength - srcPosition < 2 || destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 2);\n }\n int b2 = srcArray[srcPosition + 1];\n if (isMalformed2(b1, b2)) {\n return malformed(src, srcPosition, dst, destPosition, 2);\n }\n destArray[destPosition++] = (char) (((b1 << 6) ^ b2) ^ 0x0f80);\n srcPosition += 2;\n } else if ((b1 >> 4) == -2) {\n // 3 bytes, 16 bits: 1110xxxx 10xxxxxx 10xxxxxx\n if (srcLength - srcPosition < 3 || destPosition >= destLength) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 3);\n }\n int b2 = srcArray[srcPosition + 1];\n int b3 = srcArray[srcPosition + 2];\n if (isMalformed3(b1, b2, b3)) {\n return malformed(src, srcPosition, dst, destPosition, 3);\n }\n destArray[destPosition++] = (char) (((b1 << 12) ^ (b2 << 6) ^ b3) ^ 0x1f80);\n srcPosition += 3;\n } else if ((b1 >> 3) == -2) {\n // 4 bytes, 21 bits: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx\n if (srcLength - srcPosition < 4 || destLength - destPosition < 2) {\n return xflow(src, srcPosition, srcLength, dst, destPosition, 4);\n }\n int b2 = srcArray[srcPosition + 1];\n int b3 = srcArray[srcPosition + 2];\n int b4 = srcArray[srcPosition + 3];\n int uc = ((b1 & 0x07) << 18) | ((b2 & 0x3f) << 12) | ((b3 & 0x3f) << 06) | (b4 & 0x3f);\n if (isMalformed4(b2, b3, b4) || !((uc >= 0x10000) && (uc <= 1114111))) {\n return malformed(src, srcPosition, dst, destPosition, 4);\n }\n destArray[destPosition++] = (char) (0xd800 | (((uc - 0x10000) >> 10) & 0x3ff));\n destArray[destPosition++] = (char) (0xdc00 | ((uc - 0x10000) & 0x3ff));\n srcPosition += 4;\n } else {\n return malformed(src, srcPosition, dst, destPosition, 1);\n }\n }\n return xflow(src, srcPosition, srcLength, dst, destPosition, 0);\n }", "public void mo18644a(byte[] r8, int r9, int r10, com.startapp.p154a.p155a.p158c.C5047b.C5048a r11) {\n /*\n r7 = this;\n boolean r0 = r11.f16357f\n if (r0 == 0) goto L_0x0005\n return\n L_0x0005:\n r0 = 0\n r1 = 1\n if (r10 >= 0) goto L_0x00df\n r11.f16357f = r1\n int r8 = r11.f16359h\n if (r8 != 0) goto L_0x0014\n int r8 = r7.f16349c\n if (r8 != 0) goto L_0x0014\n return\n L_0x0014:\n int r8 = r7.f16346k\n byte[] r8 = r7.mo18648a(r8, r11)\n int r9 = r11.f16355d\n int r10 = r11.f16359h\n r1 = 61\n switch(r10) {\n case 0: goto L_0x00bb;\n case 1: goto L_0x0081;\n case 2: goto L_0x003c;\n default: goto L_0x0023;\n }\n L_0x0023:\n java.lang.IllegalStateException r8 = new java.lang.IllegalStateException\n java.lang.StringBuilder r9 = new java.lang.StringBuilder\n r9.<init>()\n java.lang.String r10 = \"Impossible modulus \"\n r9.append(r10)\n int r10 = r11.f16359h\n r9.append(r10)\n java.lang.String r9 = r9.toString()\n r8.<init>(r9)\n throw r8\n L_0x003c:\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 >> 10\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 >> 4\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 << 2\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n byte[] r10 = r7.f16342g\n byte[] r2 = f16339d\n if (r10 != r2) goto L_0x00bb\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n r8[r10] = r1\n goto L_0x00bb\n L_0x0081:\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 >> 2\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 << 4\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n byte[] r10 = r7.f16342g\n byte[] r2 = f16339d\n if (r10 != r2) goto L_0x00bb\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n r8[r10] = r1\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n r8[r10] = r1\n L_0x00bb:\n int r10 = r11.f16358g\n int r1 = r11.f16355d\n int r1 = r1 - r9\n int r10 = r10 + r1\n r11.f16358g = r10\n int r9 = r7.f16349c\n if (r9 <= 0) goto L_0x0172\n int r9 = r11.f16358g\n if (r9 <= 0) goto L_0x0172\n byte[] r9 = r7.f16344i\n int r10 = r11.f16355d\n byte[] r1 = r7.f16344i\n int r1 = r1.length\n java.lang.System.arraycopy(r9, r0, r8, r10, r1)\n int r8 = r11.f16355d\n byte[] r9 = r7.f16344i\n int r9 = r9.length\n int r8 = r8 + r9\n r11.f16355d = r8\n goto L_0x0172\n L_0x00df:\n r2 = r9\n r9 = r0\n L_0x00e1:\n if (r9 >= r10) goto L_0x0172\n int r3 = r7.f16346k\n byte[] r3 = r7.mo18648a(r3, r11)\n int r4 = r11.f16359h\n int r4 = r4 + r1\n int r4 = r4 % 3\n r11.f16359h = r4\n int r4 = r2 + 1\n byte r2 = r8[r2]\n if (r2 >= 0) goto L_0x00f8\n int r2 = r2 + 256\n L_0x00f8:\n int r5 = r11.f16352a\n int r5 = r5 << 8\n int r5 = r5 + r2\n r11.f16352a = r5\n int r2 = r11.f16359h\n if (r2 != 0) goto L_0x016d\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n int r6 = r6 >> 18\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n int r6 = r6 >> 12\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n int r6 = r6 >> 6\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16358g\n int r2 = r2 + 4\n r11.f16358g = r2\n int r2 = r7.f16349c\n if (r2 <= 0) goto L_0x016d\n int r2 = r7.f16349c\n int r5 = r11.f16358g\n if (r2 > r5) goto L_0x016d\n byte[] r2 = r7.f16344i\n int r5 = r11.f16355d\n byte[] r6 = r7.f16344i\n int r6 = r6.length\n java.lang.System.arraycopy(r2, r0, r3, r5, r6)\n int r2 = r11.f16355d\n byte[] r3 = r7.f16344i\n int r3 = r3.length\n int r2 = r2 + r3\n r11.f16355d = r2\n r11.f16358g = r0\n L_0x016d:\n int r9 = r9 + 1\n r2 = r4\n goto L_0x00e1\n L_0x0172:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.startapp.p154a.p155a.p158c.C5046a.mo18644a(byte[], int, int, com.startapp.a.a.c.b$a):void\");\n }", "public byte[] encode(java.math.BigInteger r1, java.math.BigInteger r2) throws java.io.IOException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.encode(java.math.BigInteger, java.math.BigInteger):byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.encode(java.math.BigInteger, java.math.BigInteger):byte[]\");\n }", "public void init(HardwareMap ahwMap) {\n // Save reference to Hardware map\n hwMap = ahwMap;\n\n // Define and Initialize Motors\n leftDriveBack = hwMap.get(DcMotor.class, \"left_drive_back\");\n rightDriveBack = hwMap.get(DcMotor.class, \"right_drive_back\");\n leftDriveFront = hwMap.get(DcMotor.class, \"left_drive_front\");\n rightDriveFront = hwMap.get(DcMotor.class, \"right_drive_front\");\n leftDriveBack.setDirection(DcMotor.Direction.REVERSE);\n rightDriveBack.setDirection(DcMotor.Direction.FORWARD);\n leftDriveFront.setDirection(DcMotor.Direction.REVERSE);\n rightDriveFront.setDirection(DcMotor.Direction.FORWARD);\n\n resetEncoders();\n\n initMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Set all motors to zero power\n leftDriveBack.setPower(0);\n rightDriveBack.setPower(0);\n leftDriveFront.setPower(0);\n rightDriveFront.setPower(0);\n\n\n //arm\n arm = hwMap.get(DcMotor.class, \"arm\");\n //wrist = hwMap.get(Servo.class, \"wrist\");\n\n //wrist.setDirection(Servo.Direction.REVERSE);\n //wrist.scaleRange(0, 1);\n //wrist.setPosition(WRIST_DEFAULT_VALUE);\n\n arm.setDirection(DcMotor.Direction.REVERSE);\n arm.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n arm.setPower(0);\n\n //claws\n leftClaw = hwMap.get(Servo.class, \"left_claw\");\n rightClaw = hwMap.get(Servo.class, \"right_claw\");\n this.leftClaw.scaleRange(0, 1);\n this.rightClaw.scaleRange(0, 1);\n\n this.leftClaw.setPosition(LEFT_CLAW_START);\n this.rightClaw.setPosition(RIGHT_CLAW_START);\n\n //jewelkicker\n jewelKicker = hwMap.get(Servo.class, \"kicker\");\n this.jewelKicker.scaleRange(0, 1);\n this.jewelKicker.setPosition(KICKER_UP_VALUE);\n\n }", "private void resetMBPattern()\n {\n codedBlockPattern = 0;\n }", "public DitheredTankDriveController(RobotHardware hardware) {\n leftEncoder = hardware.drivetrainHardware.leftEncoder;\n rightEncoder = hardware.drivetrainHardware.rightEncoder;\n }", "private final com.google.wireless.android.finsky.dfe.p505c.p506a.ec m35437b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 8: goto L_0x000f;\n case 16: goto L_0x004c;\n case 26: goto L_0x006f;\n case 34: goto L_0x007c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r2 = r7.f37533a;\n r2 = r2 | 1;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r3) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = 42;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = \" is not a valid enum ResultCode\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x0043:\n r7.f37534b = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3 | 1;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0001;\n L_0x004c:\n r2 = r7.f37533a;\n r2 = r2 | 2;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33560d();\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = com.google.wireless.android.finsky.dfe.p505c.p506a.dp.m35391a(r3);\t Catch:{ IllegalArgumentException -> 0x0067 }\n r7.f37535c = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r3 | 2;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n goto L_0x0001;\n L_0x0067:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x006f:\n r0 = r8.m33565g();\n r7.f37536d = r0;\n r0 = r7.f37533a;\n r0 = r0 | 4;\n r7.f37533a = r0;\n goto L_0x0001;\n L_0x007c:\n r0 = 34;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37537e;\n if (r0 != 0) goto L_0x00a8;\n L_0x0086:\n r0 = r1;\n L_0x0087:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p505c.p506a.ed[r2];\n if (r0 == 0) goto L_0x0091;\n L_0x008c:\n r3 = r7.f37537e;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0091:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x00ac;\n L_0x0096:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0091;\n L_0x00a8:\n r0 = r7.f37537e;\n r0 = r0.length;\n goto L_0x0087;\n L_0x00ac:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37537e = r2;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.c.a.ec.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.c.a.ec\");\n }", "final void silk_PLC_glue_frames(final short frame[], int foffset, int length)\r\n\t{// java foffset is added\r\n\t\tfinal Jsilk_PLC_struct psPLC = this.sPLC;\r\n\r\n\t\tif( 0 != this.lossCnt ) {\r\n\t\t\t/* Calculate energy in concealed residual */\r\n\t\t\tfinal long ret = silk_sum_sqr_shift( /*&psPLC.conc_energy, &psPLC.conc_energy_shift,*/ frame, foffset, length );// java\r\n\t\t\tpsPLC.conc_energy = (int)(ret >>> 32);// java\r\n\t\t\tpsPLC.conc_energy_shift = (int)ret;// java\r\n\r\n\t\t\tpsPLC.last_frame_lost = true;\r\n\t\t} else {\r\n\t\t\tif( this.sPLC.last_frame_lost ) {\r\n\t\t\t\t/* Calculate residual in decoded signal if last frame was lost */\r\n\t\t\t\tfinal long ret = silk_sum_sqr_shift( /*&energy, &energy_shift,*/ frame, foffset, length );\r\n\t\t\t\tfinal int energy_shift = (int)ret;// java\r\n\t\t\t\tint energy = (int)(ret >>> 32);// java\r\n\r\n\t\t\t\t/* Normalize energies */\r\n\t\t\t\tif( energy_shift > psPLC.conc_energy_shift ) {\r\n\t\t\t\t\tpsPLC.conc_energy = ( psPLC.conc_energy >> (energy_shift - psPLC.conc_energy_shift) );\r\n\t\t\t\t} else if( energy_shift < psPLC.conc_energy_shift ) {\r\n\t\t\t\t\tenergy = ( energy >> (psPLC.conc_energy_shift - energy_shift) );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Fade in the energy difference */\r\n\t\t\t\tif( energy > psPLC.conc_energy ) {\r\n\t\t\t\t\tint LZ = Jmacros.silk_CLZ32( psPLC.conc_energy );\r\n\t\t\t\t\tLZ--;\r\n\t\t\t\t\tpsPLC.conc_energy = ( psPLC.conc_energy << LZ );\r\n\t\t\t\t\tLZ = 24 - LZ;// java\r\n\t\t\t\t\tenergy >>= ( LZ >= 0 ? LZ : 0 );\r\n\r\n\t\t\t\t\tfinal int frac_Q24 = psPLC.conc_energy / ( energy > 1 ? energy : 1 );\r\n\r\n\t\t\t\t\tint gain_Q16 = ( silk_SQRT_APPROX( frac_Q24 ) << 4 );\r\n\t\t\t\t\tint slope_Q16 = ((1 << 16) - gain_Q16) / length;\r\n\t\t\t\t\t/* Make slope 4x steeper to avoid missing onsets after DTX */\r\n\t\t\t\t\tslope_Q16 = ( slope_Q16 << 2 );\r\n\r\n\t\t\t\t\tfor( length += foffset; foffset < length; foffset++ ) {\r\n\t\t\t\t\t\tframe[ foffset ] = (short)((gain_Q16 * (long)frame[ foffset ]) >> 16);\r\n\t\t\t\t\t\tgain_Q16 += slope_Q16;\r\n\t\t\t\t\t\tif( gain_Q16 > (1 << 16) ) {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tpsPLC.last_frame_lost = false;\r\n\t\t}\r\n\t}", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public static void bgfx_encoder_end(@NativeType(\"bgfx_encoder_t *\") long _encoder) {\n long __functionAddress = Functions.encoder_end;\n if (CHECKS) {\n check(_encoder);\n }\n invokePV(_encoder, __functionAddress);\n }", "private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}", "public boolean encoderDrive(int encoderDelta, driveStyle drive, double motorPower, double timeout, DcMotor[] motors)\n {\n\n\n switch(drive)\n {\n case FORWARD:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, -motorPower, 0)[0]);\n motors[1].setPower(setPower(0, -motorPower, 0)[1]);\n motors[2].setPower(setPower(0, -motorPower, 0)[2]);\n motors[3].setPower(setPower(0, -motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n\n\n }\n\n case BACKWARD:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, motorPower, 0)[0]);\n motors[1].setPower(setPower(0, motorPower, 0)[1]);\n motors[2].setPower(setPower(0, motorPower, 0)[2]);\n motors[3].setPower(setPower(0, motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case STRAFE_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (encoderReadingLB - encoderDelta))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case STRAFE_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(motorPower, 0, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case FORWARD_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, -motorPower, 0)[0]);\n motors[1].setPower(setPower(-motorPower, -motorPower, 0)[1]);\n motors[2].setPower(setPower(-motorPower, -motorPower, 0)[2]);\n motors[3].setPower(setPower(-motorPower, -motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case FORWARD_RIGHT:\n {\n double encoderReadingRB = motors[1].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, -motorPower, 0)[0]);\n motors[1].setPower(setPower(motorPower, -motorPower, 0)[1]);\n motors[2].setPower(setPower(motorPower, -motorPower, 0)[2]);\n motors[3].setPower(setPower(motorPower, -motorPower, 0)[3]);\n\n while (motors[1].getCurrentPosition() >= (-encoderDelta + encoderReadingRB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case BACKWARD_LEFT:\n {\n double encoderReadingRB = motors[1].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, motorPower, 0)[0]);\n motors[1].setPower(setPower(-motorPower, motorPower, 0)[1]);\n motors[2].setPower(setPower(-motorPower, motorPower, 0)[2]);\n motors[3].setPower(setPower(-motorPower, motorPower, 0)[3]);\n\n while (motors[1].getCurrentPosition() <= (encoderDelta + encoderReadingRB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case BACKWARD_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, motorPower, 0)[0]);\n motors[1].setPower(setPower(motorPower, motorPower, 0)[1]);\n motors[2].setPower(setPower(motorPower, motorPower, 0)[2]);\n motors[3].setPower(setPower(motorPower, motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case PIVOT_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, 0, -motorPower)[0]);\n motors[1].setPower(setPower(0, 0, -motorPower)[1]);\n motors[2].setPower(setPower(0, 0, -motorPower)[2]);\n motors[3].setPower(setPower(0, 0, -motorPower)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case PIVOT_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, 0, motorPower)[0]);\n motors[1].setPower(setPower(0, 0, motorPower)[1]);\n motors[2].setPower(setPower(0, 0, motorPower)[2]);\n motors[3].setPower(setPower(0, 0, motorPower)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n\n }\n\n return true;\n }", "private final com.google.wireless.android.finsky.dfe.p513g.p514a.C7467r m35669b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 10: goto L_0x000f;\n case 18: goto L_0x001c;\n case 26: goto L_0x0029;\n case 34: goto L_0x003c;\n case 42: goto L_0x0050;\n case 50: goto L_0x0064;\n case 82: goto L_0x0078;\n case 98: goto L_0x008e;\n case 138: goto L_0x00a4;\n case 146: goto L_0x00b9;\n case 152: goto L_0x00c7;\n case 162: goto L_0x0106;\n case 170: goto L_0x011c;\n case 178: goto L_0x012e;\n case 184: goto L_0x0143;\n case 192: goto L_0x0151;\n case 218: goto L_0x015f;\n case 226: goto L_0x0171;\n case 234: goto L_0x0187;\n case 258: goto L_0x019d;\n case 266: goto L_0x01b3;\n case 274: goto L_0x01c8;\n case 290: goto L_0x01de;\n case 298: goto L_0x021e;\n case 306: goto L_0x022c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r0 = r8.m33564f();\n r7.f37912d = r0;\n r0 = r7.f37911c;\n r0 = r0 | 1;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x001c:\n r0 = r8.m33564f();\n r7.f37914f = r0;\n r0 = r7.f37911c;\n r0 = r0 | 4;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x0029:\n r0 = r7.f37916h;\n if (r0 != 0) goto L_0x0034;\n L_0x002d:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.c;\n r0.<init>();\n r7.f37916h = r0;\n L_0x0034:\n r0 = r7.f37916h;\n r8.m33552a(r0);\n r7.f37910a = r1;\n goto L_0x0001;\n L_0x003c:\n r0 = r7.f37917i;\n if (r0 != 0) goto L_0x0047;\n L_0x0040:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.z;\n r0.<init>();\n r7.f37917i = r0;\n L_0x0047:\n r0 = r7.f37917i;\n r8.m33552a(r0);\n r0 = 1;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0050:\n r0 = r7.f37919k;\n if (r0 != 0) goto L_0x005b;\n L_0x0054:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.f;\n r0.<init>();\n r7.f37919k = r0;\n L_0x005b:\n r0 = r7.f37919k;\n r8.m33552a(r0);\n r0 = 3;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0064:\n r0 = r7.f37922n;\n if (r0 != 0) goto L_0x006f;\n L_0x0068:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.o;\n r0.<init>();\n r7.f37922n = r0;\n L_0x006f:\n r0 = r7.f37922n;\n r8.m33552a(r0);\n r0 = 6;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0078:\n r0 = r7.f37924p;\n if (r0 != 0) goto L_0x0083;\n L_0x007c:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.d;\n r0.<init>();\n r7.f37924p = r0;\n L_0x0083:\n r0 = r7.f37924p;\n r8.m33552a(r0);\n r0 = 8;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x008e:\n r0 = r7.f37926r;\n if (r0 != 0) goto L_0x0099;\n L_0x0092:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.n;\n r0.<init>();\n r7.f37926r = r0;\n L_0x0099:\n r0 = r7.f37926r;\n r8.m33552a(r0);\n r0 = 10;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x00a4:\n r0 = r7.f37923o;\n if (r0 != 0) goto L_0x00af;\n L_0x00a8:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.q;\n r0.<init>();\n r7.f37923o = r0;\n L_0x00af:\n r0 = r7.f37923o;\n r8.m33552a(r0);\n r0 = 7;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x00b9:\n r0 = r8.m33565g();\n r7.f37931w = r0;\n r0 = r7.f37911c;\n r0 = r0 | 16;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x00c7:\n r2 = r7.f37911c;\n r2 = r2 | 2;\n r7.f37911c = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x00f3 }\n switch(r3) {\n case 0: goto L_0x00fc;\n case 101: goto L_0x00fc;\n case 102: goto L_0x00fc;\n case 103: goto L_0x00fc;\n case 105: goto L_0x00fc;\n case 106: goto L_0x00fc;\n case 107: goto L_0x00fc;\n case 108: goto L_0x00fc;\n case 109: goto L_0x00fc;\n case 111: goto L_0x00fc;\n case 112: goto L_0x00fc;\n case 113: goto L_0x00fc;\n case 114: goto L_0x00fc;\n case 115: goto L_0x00fc;\n case 116: goto L_0x00fc;\n case 117: goto L_0x00fc;\n case 118: goto L_0x00fc;\n case 119: goto L_0x00fc;\n case 120: goto L_0x00fc;\n case 201: goto L_0x00fc;\n case 202: goto L_0x00fc;\n case 203: goto L_0x00fc;\n case 204: goto L_0x00fc;\n case 205: goto L_0x00fc;\n case 206: goto L_0x00fc;\n case 207: goto L_0x00fc;\n case 209: goto L_0x00fc;\n case 210: goto L_0x00fc;\n case 211: goto L_0x00fc;\n case 212: goto L_0x00fc;\n case 213: goto L_0x00fc;\n case 214: goto L_0x00fc;\n case 215: goto L_0x00fc;\n case 217: goto L_0x00fc;\n case 218: goto L_0x00fc;\n case 219: goto L_0x00fc;\n case 220: goto L_0x00fc;\n case 221: goto L_0x00fc;\n case 222: goto L_0x00fc;\n case 223: goto L_0x00fc;\n case 224: goto L_0x00fc;\n case 301: goto L_0x00fc;\n case 302: goto L_0x00fc;\n case 304: goto L_0x00fc;\n case 305: goto L_0x00fc;\n case 307: goto L_0x00fc;\n case 309: goto L_0x00fc;\n case 310: goto L_0x00fc;\n case 311: goto L_0x00fc;\n case 312: goto L_0x00fc;\n case 313: goto L_0x00fc;\n case 314: goto L_0x00fc;\n case 316: goto L_0x00fc;\n case 317: goto L_0x00fc;\n case 318: goto L_0x00fc;\n case 319: goto L_0x00fc;\n case 320: goto L_0x00fc;\n case 321: goto L_0x00fc;\n case 322: goto L_0x00fc;\n case 323: goto L_0x00fc;\n case 324: goto L_0x00fc;\n case 325: goto L_0x00fc;\n case 326: goto L_0x00fc;\n case 327: goto L_0x00fc;\n case 328: goto L_0x00fc;\n case 401: goto L_0x00fc;\n case 402: goto L_0x00fc;\n case 403: goto L_0x00fc;\n case 404: goto L_0x00fc;\n case 405: goto L_0x00fc;\n case 406: goto L_0x00fc;\n case 407: goto L_0x00fc;\n case 408: goto L_0x00fc;\n case 409: goto L_0x00fc;\n case 410: goto L_0x00fc;\n case 411: goto L_0x00fc;\n case 412: goto L_0x00fc;\n case 501: goto L_0x00fc;\n case 502: goto L_0x00fc;\n case 503: goto L_0x00fc;\n case 504: goto L_0x00fc;\n case 505: goto L_0x00fc;\n case 506: goto L_0x00fc;\n case 507: goto L_0x00fc;\n case 508: goto L_0x00fc;\n case 509: goto L_0x00fc;\n case 510: goto L_0x00fc;\n case 511: goto L_0x00fc;\n case 512: goto L_0x00fc;\n case 513: goto L_0x00fc;\n case 514: goto L_0x00fc;\n case 515: goto L_0x00fc;\n case 601: goto L_0x00fc;\n case 701: goto L_0x00fc;\n case 702: goto L_0x00fc;\n case 703: goto L_0x00fc;\n case 704: goto L_0x00fc;\n case 705: goto L_0x00fc;\n case 706: goto L_0x00fc;\n case 707: goto L_0x00fc;\n case 708: goto L_0x00fc;\n case 709: goto L_0x00fc;\n case 710: goto L_0x00fc;\n case 711: goto L_0x00fc;\n case 801: goto L_0x00fc;\n case 802: goto L_0x00fc;\n case 803: goto L_0x00fc;\n case 804: goto L_0x00fc;\n case 805: goto L_0x00fc;\n case 806: goto L_0x00fc;\n case 807: goto L_0x00fc;\n case 808: goto L_0x00fc;\n case 809: goto L_0x00fc;\n case 810: goto L_0x00fc;\n case 811: goto L_0x00fc;\n case 812: goto L_0x00fc;\n case 901: goto L_0x00fc;\n case 902: goto L_0x00fc;\n case 903: goto L_0x00fc;\n case 904: goto L_0x00fc;\n case 905: goto L_0x00fc;\n case 906: goto L_0x00fc;\n case 907: goto L_0x00fc;\n case 908: goto L_0x00fc;\n case 909: goto L_0x00fc;\n case 910: goto L_0x00fc;\n case 911: goto L_0x00fc;\n case 912: goto L_0x00fc;\n case 913: goto L_0x00fc;\n case 914: goto L_0x00fc;\n case 915: goto L_0x00fc;\n case 916: goto L_0x00fc;\n case 1001: goto L_0x00fc;\n case 1002: goto L_0x00fc;\n default: goto L_0x00d8;\n };\t Catch:{ IllegalArgumentException -> 0x00f3 }\n L_0x00d8:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r5 = 44;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r5 = \" is not a valid enum RelationType\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n L_0x00f3:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x00fc:\n r7.f37913e = r3;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r7.f37911c;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r3 | 2;\n r7.f37911c = r3;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n goto L_0x0001;\n L_0x0106:\n r0 = r7.f37927s;\n if (r0 != 0) goto L_0x0111;\n L_0x010a:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.m;\n r0.<init>();\n r7.f37927s = r0;\n L_0x0111:\n r0 = r7.f37927s;\n r8.m33552a(r0);\n r0 = 11;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x011c:\n r0 = r7.f37932x;\n if (r0 != 0) goto L_0x0127;\n L_0x0120:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.ag;\n r0.<init>();\n r7.f37932x = r0;\n L_0x0127:\n r0 = r7.f37932x;\n r8.m33552a(r0);\n goto L_0x0001;\n L_0x012e:\n r0 = r7.f37920l;\n if (r0 != 0) goto L_0x0139;\n L_0x0132:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.t;\n r0.<init>();\n r7.f37920l = r0;\n L_0x0139:\n r0 = r7.f37920l;\n r8.m33552a(r0);\n r0 = 4;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0143:\n r0 = r8.m33560d();\n r7.f37933y = r0;\n r0 = r7.f37911c;\n r0 = r0 | 32;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x0151:\n r0 = r8.m33560d();\n r7.f37934z = r0;\n r0 = r7.f37911c;\n r0 = r0 | 64;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x015f:\n r0 = r7.f37908A;\n if (r0 != 0) goto L_0x016a;\n L_0x0163:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.k;\n r0.<init>();\n r7.f37908A = r0;\n L_0x016a:\n r0 = r7.f37908A;\n r8.m33552a(r0);\n goto L_0x0001;\n L_0x0171:\n r0 = r7.f37929u;\n if (r0 != 0) goto L_0x017c;\n L_0x0175:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.y;\n r0.<init>();\n r7.f37929u = r0;\n L_0x017c:\n r0 = r7.f37929u;\n r8.m33552a(r0);\n r0 = 13;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0187:\n r0 = r7.f37928t;\n if (r0 != 0) goto L_0x0192;\n L_0x018b:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.b;\n r0.<init>();\n r7.f37928t = r0;\n L_0x0192:\n r0 = r7.f37928t;\n r8.m33552a(r0);\n r0 = 12;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x019d:\n r0 = r7.f37925q;\n if (r0 != 0) goto L_0x01a8;\n L_0x01a1:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.e;\n r0.<init>();\n r7.f37925q = r0;\n L_0x01a8:\n r0 = r7.f37925q;\n r8.m33552a(r0);\n r0 = 9;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x01b3:\n r0 = r7.f37921m;\n if (r0 != 0) goto L_0x01be;\n L_0x01b7:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.h;\n r0.<init>();\n r7.f37921m = r0;\n L_0x01be:\n r0 = r7.f37921m;\n r8.m33552a(r0);\n r0 = 5;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x01c8:\n r0 = r7.f37930v;\n if (r0 != 0) goto L_0x01d3;\n L_0x01cc:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.x;\n r0.<init>();\n r7.f37930v = r0;\n L_0x01d3:\n r0 = r7.f37930v;\n r8.m33552a(r0);\n r0 = 14;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x01de:\n r0 = 290; // 0x122 float:4.06E-43 double:1.433E-321;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37909B;\n if (r0 != 0) goto L_0x020a;\n L_0x01e8:\n r0 = r1;\n L_0x01e9:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p513g.p514a.C7468s[r2];\n if (r0 == 0) goto L_0x01f3;\n L_0x01ee:\n r3 = r7.f37909B;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x01f3:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x020e;\n L_0x01f8:\n r3 = new com.google.wireless.android.finsky.dfe.g.a.s;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x01f3;\n L_0x020a:\n r0 = r7.f37909B;\n r0 = r0.length;\n goto L_0x01e9;\n L_0x020e:\n r3 = new com.google.wireless.android.finsky.dfe.g.a.s;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37909B = r2;\n goto L_0x0001;\n L_0x021e:\n r0 = r8.m33564f();\n r7.f37915g = r0;\n r0 = r7.f37911c;\n r0 = r0 | 8;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x022c:\n r0 = r7.f37918j;\n if (r0 != 0) goto L_0x0237;\n L_0x0230:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.w;\n r0.<init>();\n r7.f37918j = r0;\n L_0x0237:\n r0 = r7.f37918j;\n r8.m33552a(r0);\n r0 = 2;\n r7.f37910a = r0;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.g.a.r.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.g.a.r\");\n }", "public AsciiDataEncoder() {\n\t}", "public boolean requiresCustomCodec()\n/* */ {\n/* 498 */ return false;\n/* */ }", "private void CreateCompression() {\n double[][] Ydct = new double[8][8];\n double[][] Cbdct = new double[8][8];\n double[][] Crdct = new double[8][8];\n\n /*\n Tenemos que coger una matriz de 8x8 que sera nuestro pixel a comprimir. Si la matriz se sale de los parametros\n altura y anchura, haremos padding con 0, para que sea negro.\n */\n\n\n for (int i = 0; i < height; i += 8) {\n for (int j = 0; j < width; j += 8) {\n for (int x = 0; x < 8; ++x) {\n for (int y = 0; y < 8; ++y) {\n if (i + x >= height || j + y >= width) {\n Ydct[x][y] = 0;\n Cbdct[x][y] = 0;\n Crdct[x][y] = 0;\n } else {\n Ydct[x][y] = (double) imagenYCbCr[x + i][y + j][0] - 128;\n Cbdct[x][y] = (double) imagenYCbCr[x + i][y + j][1] - 128;\n Crdct[x][y] = (double) imagenYCbCr[x + i][y + j][2] - 128;\n }\n }\n }\n\n\n /*\n Haremos el DCT2 de cada componente de color para el pixel\n */\n\n\n Ydct = dct2(Ydct);\n Cbdct = dct2(Cbdct);\n Crdct = dct2(Crdct);\n\n /*\n Quantizamos los DCT de cada componente del color\n */\n\n for (int v = 0; v < 8; ++v) {\n for (int h = 0; h < 8; ++h) {\n Ydct[v][h] = Math.round(Ydct[v][h] / QtablesLuminance[quality][v][h]);\n Cbdct[v][h] = Math.round(Cbdct[v][h] / QtablesChrominance[quality][v][h]);\n Crdct[v][h] = Math.round(Crdct[v][h] / QtablesChrominance[quality][v][h]);\n\n }\n }\n\n\n /*\n Hacemos el encoding con Huffman HAY QUE RECORRER EN ZIGZAG CADA MATRIZ\n */\n\n int u = 1;\n int k = 1;\n int contador = 0;\n for (int element = 0; element < 64; ++element, ++contador) {\n Yencoding.add((int) Ydct[u - 1][k - 1]);\n Cbencoding.add((int) Cbdct[u - 1][k - 1]);\n Crencoding.add((int) Crdct[u - 1][k - 1]);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n }\n }\n }\n }", "@Test\n public void encodeAsIntArrayNegative()\n {\n final int value = -5;\n final BinaryEncoder encoder = new BinaryEncoder(-8, 8, 1.0);\n final int[] result = encoder.encodeAsIntArray(value);\n if (IS_VERBOSE)\n {\n System.out.println(\"result = \" + Arrays.toString(result));\n }\n assertNotNull(result);\n assertEquals(4, result.length);\n assertEquals(0, result[0]);\n assertEquals(0, result[1]);\n assertEquals(1, result[2]);\n assertEquals(1, result[3]);\n }", "public /* bridge */ /* synthetic */ void mo55095b() {\n super.mo55095b();\n }", "static void rrc_without_carry(String passed){\n\t\tint val = hexa_to_deci(registers.get('A'));\n\t\tint bits[] = new int[8];\n\t\tfor(int i=0;i<8;i++){\n\t\t\tbits[7-i] = val%2;\n\t\t\tval/=2;\n\t\t}\n\t\tCS = bits[7]==1?true:false;\n\t\tfor(int i=7;i>0;i--)\n\t\t\tbits[i] = bits[i-1];\n\t\tbits[0] = CS?1:0;\n\t\tint dec = 0;\n\t\tfor(int i=0;i<8;i++)\n\t\t\tdec+=(bits[7-i]*Math.pow(2,i));\n\t\tregisters.put('A',decimel_to_hexa_8bit(dec));\n\t}", "private void configureEncoder() throws IOException\n {\n encoder = MediaCodec.createByCodecName(encoderName);\n MediaFormat mediaFormat = MediaFormat.createVideoFormat(MIME_TYPE, width, height);\n mediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, BITRATE);\n mediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, FRAMERATE);\n mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, encoderColorFormat);\n mediaFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1);\n encoder.configure(mediaFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);\n encoder.start();\n }", "public IsaacRandom getEncode() {\n\t\treturn encode;\n\t}", "@Override\n public void initialize() {\n drivetrain.resetEncoders();\n }", "public final int mo11683a(com.google.android.gms.internal.ads.bci r11, com.google.android.gms.internal.ads.bcn r12) {\n /*\n r10 = this;\n L_0x0000:\n int r12 = r10.f3925e\n r0 = -1\n r1 = 1\n r2 = 0\n switch(r12) {\n case 0: goto L_0x00b2;\n case 1: goto L_0x0044;\n case 2: goto L_0x000e;\n default: goto L_0x0008;\n }\n L_0x0008:\n java.lang.IllegalStateException r11 = new java.lang.IllegalStateException\n r11.<init>()\n throw r11\n L_0x000e:\n int r12 = r10.f3928h\n if (r12 <= 0) goto L_0x0031\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r0 = 3\n r11.mo11675b(r12, r2, r0)\n com.google.android.gms.internal.ads.bcq r12 = r10.f3924d\n com.google.android.gms.internal.ads.bkh r3 = r10.f3923c\n r12.mo11681a(r3, r0)\n int r12 = r10.f3929i\n int r12 = r12 + r0\n r10.f3929i = r12\n int r12 = r10.f3928h\n int r12 = r12 - r1\n r10.f3928h = r12\n goto L_0x000e\n L_0x0031:\n int r11 = r10.f3929i\n if (r11 <= 0) goto L_0x0041\n com.google.android.gms.internal.ads.bcq r3 = r10.f3924d\n long r4 = r10.f3927g\n r6 = 1\n int r7 = r10.f3929i\n r8 = 0\n r9 = 0\n r3.mo11680a(r4, r6, r7, r8, r9)\n L_0x0041:\n r10.f3925e = r1\n return r2\n L_0x0044:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n int r12 = r10.f3926f\n if (r12 != 0) goto L_0x006a\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 5\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x005a\n L_0x0058:\n r1 = 0\n goto L_0x008d\n L_0x005a:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12063j()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r3 = r3 * r5\n r5 = 45\n long r3 = r3 / r5\n r10.f3927g = r3\n goto L_0x0083\n L_0x006a:\n int r12 = r10.f3926f\n if (r12 != r1) goto L_0x0097\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 9\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x007b\n goto L_0x0058\n L_0x007b:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12066m()\n r10.f3927g = r3\n L_0x0083:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3928h = r12\n r10.f3929i = r2\n L_0x008d:\n if (r1 == 0) goto L_0x0094\n r12 = 2\n r10.f3925e = r12\n goto L_0x0000\n L_0x0094:\n r10.f3925e = r2\n return r0\n L_0x0097:\n com.google.android.gms.internal.ads.bad r11 = new com.google.android.gms.internal.ads.bad\n int r12 = r10.f3926f\n r0 = 39\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Unsupported version number: \"\n r1.append(r0)\n r1.append(r12)\n java.lang.String r12 = r1.toString()\n r11.<init>((java.lang.String) r12)\n throw r11\n L_0x00b2:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 8\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 == 0) goto L_0x00df\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12065l()\n int r2 = f3921a\n if (r12 != r2) goto L_0x00d7\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3926f = r12\n r2 = 1\n goto L_0x00df\n L_0x00d7:\n java.io.IOException r11 = new java.io.IOException\n java.lang.String r12 = \"Input not RawCC\"\n r11.<init>(r12)\n throw r11\n L_0x00df:\n if (r2 == 0) goto L_0x00e5\n r10.f3925e = r1\n goto L_0x0000\n L_0x00e5:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.bef.mo11683a(com.google.android.gms.internal.ads.bci, com.google.android.gms.internal.ads.bcn):int\");\n }", "public void runOpMode() throws InterruptedException {\n robot.init(hardwareMap);\n BNO055IMU.Parameters parameters1 = new BNO055IMU.Parameters();\n parameters1.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters1);\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n robot.arm.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.arm.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n //P.S. if you're using the latest version of easyopencv, you might need to change the next line to the following:\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);\n //phoneCam = new OpenCvInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);//remove this\n\n phoneCam.openCameraDevice();//open camera\n phoneCam.setPipeline(new StageSwitchingPipeline());//different stages\n phoneCam.startStreaming(rows, cols, OpenCvCameraRotation.SIDEWAYS_LEFT);//display on RC\n //width, height\n //width = height in this case, because camera is in portrait mode.\n\n runtime.reset();\n while (!isStarted()) {\n for (int i = 0; i <= 7; i++) {\n telemetry.addData(\"Values\", vals[i]);\n }\n for (int i = 0; i <= 7; i++) {\n totals = totals + vals[i];\n }\n totals = totals / 255;\n telemetry.addData(\"total\", totals);\n\n telemetry.addData(\"Height\", rows);\n telemetry.addData(\"Width\", cols);\n\n telemetry.update();\n sleep(100);\n\n if (totals >= 4) {\n StartAngle = 30;\n StartDistance = 105;\n StartBack = -40;\n ReturnAngle = 28;\n ReturnDistance = -85;\n drop2 = 112;\n mid = 0;\n backup2 = -33;\n } else if (totals <= 0) {\n StartAngle = 55;\n StartDistance= 85;\n StartBack = -5;\n ReturnAngle = 38;\n ReturnDistance = -60;\n drop2 = 65;\n mid = -2;\n backup2 = -31;\n } else {\n StartAngle = 17;\n StartDistance = 75;\n StartBack = -20;\n ReturnAngle = 22;\n ReturnDistance = -49;\n drop2 = 95;\n mid = -18;\n backup2 = -41;\n }\n totals = 0;\n }\n\n\n\n gyroDrive(DRIVE_SPEED,6,0,30,0);\n gyroDrive(DRIVE_SPEED,36,-45,30,0);\n gyroDrive(DRIVE_SPEED,StartDistance,StartAngle,30,0);\n\n //robot.arm.setTargetPosition(-450);\n //robot.arm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n /*robot.arm.setPower(-.1);\n //robot.arm.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n gyroHold(DRIVE_SPEED,0,2);\n robot.claw.setPosition(0);\n robot.arm.setPower(.05);\n gyroHold(DRIVE_SPEED,0,1);\n gyroDrive(DRIVE_SPEED,-10,0,5,0);\n gyroTurn(TURN_SPEED,90);\n gyroDrive(DRIVE_SPEED,-20,90,5,0);\n\n */\n gyroTurn(TURN_SPEED,ReturnAngle);\n robot.LWheel.setPower(-.9);\n robot.RWheel.setPower(-.9);\n gyroDrive(DRIVE_SPEED, ReturnDistance,ReturnAngle, 30,0);\n gyroHold(TURN_SPEED,3,1);\n robot.lock.setPosition(1);\n robot.RTrack.setPosition(1);\n robot.LTrack.setPosition(0);\n gyroHold(TURN_SPEED,0,2);\n gyroHold(TURN_SPEED,-3,2);\n robot.LWheel.setPower(0);\n robot.RWheel.setPower(0);\n robot.RTrack.setPosition(.5);\n robot.LTrack.setPosition(.5);\n gyroTurn(TURN_SPEED,ReturnAngle);\n gyroDrive(DRIVE_SPEED, backup2, ReturnAngle, 30,0);\n\n gyroTurn(TURN_SPEED,90);\n gyroDrive(DRIVE_SPEED,52,80,5,0);\n gyroTurn(TURN_SPEED,65);\n gyroDrive(DRIVE_SPEED,drop2,2 + mid,10,0);\n robot.RDrop.setPosition(.23);\n robot.LDrop.setPosition(.23);\n gyroDrive(DRIVE_SPEED,StartBack,0,5,0);\n robot.arm.setPower(-.2);\n\n gyroHold(TURN_SPEED,0,1.7);\n robot.arm.setPower(0);\n }", "public static void encode() {\r\n int[] index = new int[R + 1];\r\n char[] charAtIndex = new char[R + 1];\r\n for (int i = 0; i < R + 1; i++) { \r\n index[i] = i; \r\n charAtIndex[i] = (char) i;\r\n }\r\n while (!BinaryStdIn.isEmpty()) {\r\n char c = BinaryStdIn.readChar();\r\n BinaryStdOut.write((char)index[c]);\r\n for (int i = index[c] - 1; i >= 0; i--) {\r\n char temp = charAtIndex[i];\r\n int tempIndex = ++index[temp];\r\n charAtIndex[tempIndex] = temp;\r\n }\r\n charAtIndex[0] = c;\r\n index[c] = 0;\r\n }\r\n BinaryStdOut.close();\r\n }", "public interface EncoderMotor extends Motor {\n double getVelocity();\n double getVelocityRaw();\n double setVelocity(double speed);\n double getDistance();\n void resetDistance();\n @Override\n EncoderMotor setInverted(boolean inverted);\n @Override\n EncoderMotor invert();\n\n void setConfig(EncoderMotorConfig config);\n}", "@Override\n\tpublic void encode(Crate object, IoBuffer buf) {\n\t}", "public java.math.BigInteger[] decode(byte[] r1) throws java.io.IOException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.decode(byte[]):java.math.BigInteger[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.decode(byte[]):java.math.BigInteger[]\");\n }", "public VideoEncoder(Data data) {\n try {\n startTime = LocalDateTime.now();\n String minute, hour, day, month, year;\n if (startTime.getMinute() < 10) {\n minute = \"0\" + Integer.toString(startTime.getMinute());\n } else {\n minute = Integer.toString(startTime.getMinute());\n }\n if (startTime.getHour() < 10) {\n hour = \"0\" + Integer.toString(startTime.getHour());\n } else {\n hour = Integer.toString(startTime.getHour());\n }\n if (startTime.getDayOfMonth() < 10) {\n day = \"0\" + Integer.toString(startTime.getDayOfMonth());\n } else {\n day = Integer.toString(startTime.getDayOfMonth());\n }\n if (startTime.getMonthValue() < 10) {\n month = \"0\" + Integer.toString(startTime.getMonthValue());\n } else {\n month = Integer.toString(startTime.getMonthValue());\n }\n year = Integer.toString(startTime.getYear());\n\n File dir = null;\n try {\n dir = new File(\"C:\\\\TowedROV\\\\ROV_Video\\\\\");\n if (!dir.exists() || !dir.isDirectory()) {\n System.out.println(\"No directory found, creating a new one at C://TowedROV/ROV_Video/\");\n dir.mkdir();\n }\n } catch (Exception e) {\n System.out.println(\"No directory found, creating a new one at C://TowedROV/ROV_Video/\");\n dir.mkdir();\n }\n\n String fileName = dir.getPath() + \"\\\\ROV Video\" + hour + minute + \" \" + day + \".\"\n + month + \".\" + year + \".mp4\";\n enc = AWTSequenceEncoder.create24Fps(new File(fileName));\n this.data = data;\n } catch (Exception ex) {\n System.out.println(\"Exception while starting video encoder: \" + ex.getMessage());\n }\n }", "@Override\n protected void doEncode(ByteArrayEncodingState encodingState) {\n CoderUtil.resetOutputBuffers(encodingState.outputs,\n encodingState.outputOffsets,\n encodingState.encodeLength);\n\n // MSREncodeData(encodeMatrix, encodingState.encodeLength, encodingState.inputs, encodingState.outputs);\n RSUtil.encodeData(gfTables, encodingState.encodeLength,\n encodingState.inputs,\n encodingState.inputOffsets, encodingState.outputs,\n encodingState.outputOffsets);\n }", "public ArmJoint() {\n \t\n \tMotor = new CANTalon(RobotMap.Ports.bucketLifter);\n \tMotor.setFeedbackDevice(FeedbackDevice.CtreMagEncoder_Relative);\n \tMotor.clearStickyFaults();\n \tMotor.setSafetyEnabled(false);\n \tMotor.configNominalOutputVoltage(0, 0);\n \tMotor.configPeakOutputVoltage(12, -12);\n \tMotor.setAllowableClosedLoopErr(10);\n \tMotor.setProfile(0);\n \tMotor.setP(RobotMap.Values.armPidP);\n \tMotor.setI(RobotMap.Values.armPidI);\n \tMotor.setD(RobotMap.Values.armPidD);\n \tMotor.setF(0);\n\n \t//Motor.configEncoderCodesPerRev(1);\n \t//Motor.enableLimitSwitch(true, true);\n \t//Motor.enableBrakeMode(false);\n \t//Motor.enable();\n \t//Motor.changeControlMode(TalonControlMode.PercentVbus);\n \tMotor.enableZeroSensorPositionOnReverseLimit(true);\n \tMotor.set(0);\n \t\n \tLiveWindow.addActuator(\"ArmJoint\", 1, (CANTalon) Motor);\n // Use these to get going:\n // setSetpoint() - Sets where the PID controller should move the system\n // to\n // enable() - Enables the PID controller.\n }" ]
[ "0.66621566", "0.58607626", "0.5704525", "0.5686721", "0.5627257", "0.5604785", "0.5586418", "0.55811036", "0.55273277", "0.5526772", "0.54727834", "0.53891534", "0.53817254", "0.53288686", "0.5278645", "0.52777654", "0.52405125", "0.5210364", "0.52068263", "0.51949316", "0.51859105", "0.51440436", "0.51216763", "0.5108812", "0.51043725", "0.50887024", "0.50746727", "0.5060552", "0.5024653", "0.5016664", "0.49835122", "0.4960632", "0.4949917", "0.49468532", "0.49468008", "0.49408886", "0.4922808", "0.48988572", "0.48965544", "0.4891546", "0.48902857", "0.48790872", "0.48680156", "0.48670936", "0.48617056", "0.48567426", "0.48420915", "0.4830114", "0.48297212", "0.48194185", "0.47895676", "0.47886622", "0.4788382", "0.4763942", "0.47612557", "0.4761118", "0.47590804", "0.4754077", "0.47500813", "0.47474927", "0.47324458", "0.46979523", "0.46968424", "0.4675451", "0.46718943", "0.46643358", "0.4663604", "0.46634766", "0.46618676", "0.4652848", "0.4650143", "0.46426648", "0.46396086", "0.46374828", "0.46210346", "0.46187738", "0.46080217", "0.4605147", "0.459072", "0.45893958", "0.4589297", "0.45845616", "0.4583821", "0.45679596", "0.45658016", "0.4557159", "0.45304403", "0.45298108", "0.45276806", "0.4520449", "0.45182735", "0.4501828", "0.44995362", "0.44944465", "0.44926915", "0.4492679", "0.4486336", "0.44853264", "0.44836545", "0.44807032" ]
0.6321208
1
this function update/load list of survey from the server
private void loadSurvey(){ final Handler mainHandler = new Handler(getView().getContext().getMainLooper()); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.ENGLISH); // SurveyEntity surveyEntity = SurveyService.getInstance().getSurvey(); String lastTime = "2016-01-01";//surveyEntity != null ? df.format(surveyEntity.getLastUpdated()) : "2016-01-01"; restClient.getSurveyApi().getSurvey(lastTime, Long.toString(me.getUID())) .subscribeOn(Schedulers.io()) .subscribe(new Action1<SurveyResponse>() { @Override public void call(final SurveyResponse response) { if (response.status.equals("success")) { if (response.details != null ) { mainHandler.post(new Runnable() { @Override public void run() { surveys = SurveyService.getInstance().updateSurveyList(response.details); //update to db and display it when there is no internet if (getView() != null) { if (surveys.size() > 0) { if (getView().surveyLV.getAdapter() == null) { //first time loading to adapter surveyListAdapter = new SurveyListAdapter(getView(), surveys); getView().surveyLV.setAdapter(surveyListAdapter); } else { surveyListAdapter.updates(surveys); } getView().messageTV.setVisibility(View.GONE); } else { getView().messageTV.setVisibility(View.VISIBLE); getView().messageTV.setText("There is no survey going on now."); } } } }); } } else { mainHandler.post(new Runnable() { @Override public void run() { if (getView() != null) { getView().messageTV.setVisibility(View.VISIBLE); getView().messageTV.setText("There is no survey going on now."); } } }); } } }, new Action1<Throwable>() { @Override public void call(Throwable throwable) { Log.e("Mobisys: ", "cannot get survey", throwable); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addQuestions(String surveyId, List<Question> questions);", "public void surveyUpdated (SurveyMetaData survey)\n {\n if (_surveys == null) {\n return;\n }\n\n for (int ii = 0; ii < _surveys.size(); ++ii) {\n if (_surveys.get(ii).surveyId == survey.surveyId) {\n _surveys.set(ii, survey);\n return;\n }\n }\n\n _surveys.add(survey);\n }", "List<Question> getQuestions(String surveyId);", "public void loadQuestions() \n {\n try{\n ArrayList<QuestionPojo> questionList=QuestionDao.getQuestionByExamId(editExam.getExamId());\n for(QuestionPojo obj:questionList)\n {\n qstore.addQuestion(obj);\n }\n }\n catch(SQLException ex)\n {\n JOptionPane.showMessageDialog(null, \"Error while connecting to DB!\",\"Exception!\",JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n\n }\n }", "public Iterable<String> updateDataList(SaveType type);", "@RequestMapping(value = \"/surveys\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Survey>getSurveyList(){\n\t\treturn (List<Survey>)surveyRepository.findAll();\n\t}", "List<SurveyQuestion> getSurveyQuestionsByQuestions(List<Question> questions);", "private void dataSubmission() {\n getPreferences(); // reload all the data\n\n String jsonObjectString = createJsonObject();\n StringBuilder url = new StringBuilder();\n url.append(serverUrl);\n\n if (vslaName == null || numberOfCycles == null || representativeName == null || representativePost == null\n || repPhoneNumber == null || grpBankAccount == null || physAddress == null\n || grpPhoneNumber == null || grpSupportType == null) {\n flashMessage(\"Please Fill all Fields\");\n\n } else if (IsEditing.equalsIgnoreCase(\"1\")) {\n url.append(\"editVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n\n } else { // Creating a new VSLA\n url.append(\"addNewVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n }\n }", "public static void add(HttpServletRequest request) {\n\t\tSurvey survey = (Survey) request.getSession().getAttribute(\"survey\");\n\n\t\t// Exstracts the survey info\n\t\tString name = request.getParameter(\"name\");\n\t\tString description = request.getParameter(\"description\");\n\t\tString length = request.getParameter(\"length\");\n\t\tString repeatable = request.getParameter(\"repeatable\");\n\t\t// checks to avoid nullpointer exceptions\n\t\tif (repeatable == null) {\n\t\t\trepeatable = \"\";\n\t\t}\n\t\tString traversable = request.getParameter(\"traversable\");\n\t\tif (traversable == null) {\n\t\t\ttraversable = \"\";\n\t\t}\n\n\t\t// parse extracted info to the survey\n\t\tsurvey.setName(name);\n\t\tsurvey.setDescription(description);\n\n\t\tif (!length.equals(\"\")) {\n\t\t\tsurvey.setLength(survey.convertLength(length));\n\t\t}\n\n\t\t// check if repetable\n\t\tif (repeatable.equals(\"repeatable\")) {\n\t\t\tsurvey.setRepeatable(true);\n\t\t} else {\n\t\t\tsurvey.setRepeatable(false);\n\t\t}\n\n\t\t// check if traversable\n\t\tif (traversable.equals(\"traversable\")) {\n\t\t\tsurvey.setTraversable(true);\n\t\t} else {\n\t\t\tsurvey.setTraversable(false);\n\t\t}\n\n\t\t// Question knows how manny question there are.\n\t\tfor (int i = 0; i < survey.getQuestions().size(); i++) {\n\t\t\t// Get parameter from request and pares to object\n\t\t\tString text = request.getParameter(\"text\" + i);\n\t\t\tsurvey.getQuestions().get(i).setText(text);\n\n\t\t\t// Type logic\n\t\t\tif (survey.getQuestions().get(i).getType().equals(\"mc\")) {\n\t\t\t\tMultipleChoiceQuestion question = (MultipleChoiceQuestion) survey.getQuestions().get(i);\n\t\t\t\tString singleAnswer = request.getParameter(\"singleAnswer\");\n\t\t\t\t\n\t\t\t\tif (singleAnswer == null) {\n\t\t\t\t\tsingleAnswer = \"\";\n\t\t\t\t}\n\t\t\t\tif (singleAnswer.equals(\"singleAnswer\")) {\n\t\t\t\t\tquestion.setSingleAnswer(true);\n\t\t\t\t} else {\n\t\t\t\t\tquestion.setSingleAnswer(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < question.getOptions().size(); j++) {\n\t\t\t\t\t// Get parameter from request and pares to object\n\t\t\t\t\tString option = request.getParameter(\"option\" + j + i);\n\t\t\t\t\tquestion.getOptions().set(j, option);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\trequest.getSession().setAttribute(\"survey\", survey);\n\t}", "@SuppressWarnings(\"rawtypes\")\n\tpublic AddSurveyForApplicant() {\n\t\tif (getSession().getAttribute(\"isLogin\").equals(\"false\")) {\n\t\t\tsetResponsePage(Authentication.class);\n\t\t\treturn;\n\t\t}\n\t\tif (getSession().getAttribute(\"personTyp\").equals(\"a\")) {\n\t\t\tsetResponsePage(PersonTyp.class);\n\t\t\treturn;\n\t\t}\n\n\t\tLong id = Long.valueOf(getSession().getAttribute(\"id\").toString());\n\n\t\tp = ps.find(id);\n\n\t\tString url = RequestCycle.get().getRequest().getUrl().toString();\n\t\tString[] idFromUrl = url.split(\"/\");\n\t\tfinal Long receiverID = Long.valueOf(idFromUrl[3]);\n\t\tfinal IApplicant applicant = (IApplicant) ps.find(receiverID);\n\n\t\t// final IApplicant applicant\n\t\tList<ISurvey> surveys = new ArrayList<ISurvey>();\n\t\tsurveys = ss.loadAllServeyByEmployer(id);\n\t\tlogger.info(\"surveyes loaded, size: \" + surveys.size());\n\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tPageableListView surveyView = new PageableListView(\"surveys\", surveys,\n\t\t\t\t6) {\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 53780096350876440L;\n\n\t\t\t@Override\n\t\t\tprotected void populateItem(ListItem item) {\n\t\t\t\tISurvey survey = (ISurvey) item.getModelObject();\n\t\t\t\titem.add(new Label(\"date\", \"Date: \" + survey.getDate()));\n\t\t\t\titem.add(new Label(\"name\", \"Survey: \" + survey.getName()));\n\t\t\t\titem.add(new Label(\"text\", \"Info: \" + survey.getText()));\n\t\t\t\tString fragmentId = null;\n\t\t\t\tif (ss.loadAppSurveyByApplicantAndSurvey(\n\t\t\t\t\t\t((IPerson) applicant).getId(), survey.getId()).size() == 0) {\n\t\t\t\t\tfragmentId = \"variant_add\";\n\t\t\t\t\titem.add(new FragmentForAddSurvey(\n\t\t\t\t\t\t\t\"placeholderForFragmente\", fragmentId, this,\n\t\t\t\t\t\t\tapplicant, survey));\n\t\t\t\t\tlogger.info(\"Varinat add, size = 0\");\n\t\t\t\t}\n\t\t\t\tif (ss.loadAppSurveyByApplicantAndSurvey(\n\t\t\t\t\t\t((IPerson) applicant).getId(), survey.getId()).size() > 0) {\n\t\t\t\t\tfragmentId = \"variant_has\";\n\t\t\t\t\tlogger.info(\"Varinat has, size > 0\");\n\t\t\t\t\titem.add(new FragmentAlreadySend(\"placeholderForFragmente\",\n\t\t\t\t\t\t\tfragmentId, this));\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t};\n\n\t\tadd(new FeedbackPanel(\"feedback\"));\n\t\tadd(surveyView);\n\t\tadd(new PagingNavigator(\"navigator\", surveyView));\n\n\t}", "private void fetchQTitle() {\n String url = URL_TO_QTITLE;\n // Volley's json array request object\n JsonArrayRequest req = new JsonArrayRequest(url,\n new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n //Log.d(TAG, response.toString());\n quesList.clear();\n if (response.length() > 0 && response != null) {\n // looping through json and adding to event list\n for (int i = 0; i < response.length(); i++) {\n try {\n JSONObject json_data = response.getJSONObject(i);\n quesList.add(json_data.getString(\"ques_title\"));\n\n } catch (JSONException e) {\n Log.e(\"Error\", \"JSON Parsing error: \" + e.getMessage());\n }\n }\n\n qadapter.notifyDataSetChanged();\n }\n\n // stopping swipe refresh\n //swipeRefreshLayout.setRefreshing(false);\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Error\", \"Server Error: \" + error.getCause());\n if (error.getClass().getName().equals(\"com.android.volley.ParseError\")){\n Toast.makeText(AdQuestionActivity.this, \"No tag yet\", Toast.LENGTH_SHORT).show();\n }else\n Toast.makeText(AdQuestionActivity.this, \"No Internet Connection or Service Unavailable Right Now\"\n + error.getMessage(), Toast.LENGTH_SHORT).show();\n\n // stopping swipe refresh\n //swipeRefreshLayout.setRefreshing(false);\n }\n });\n\n // Adding request to request queue\n MyApplication.getInstance().addToRequestQueue(req);\n }", "private void updateQuizTable() {\r\n\t\tif (quizSystem != null && currentCourse != null) {\r\n\t\t\tString[] quizzes = quizSystem.getStudenQuizList(currentCourse, (Student) quizSystem.getCurrentUser());\r\n\t\t\tquizListModel.removeAllElements();\r\n\t\t\tfor (String string : quizzes) {\r\n\t\t\t\tquizListModel.addElement(string);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void updateResourcesList() {\n this.resourcesJList.setModel(new ModelListSelectable(controller.getDemonstration().getResourcesList()));\n }", "public void setQuestionList(ArrayList<String> questionList){\n this.questionList = questionList;\n }", "private void fetchQuestions() {\n mRelativeLayout.setVisibility(View.VISIBLE);\n DataServiceGenerator dataServiceGenerator = new DataServiceGenerator();\n Service service = dataServiceGenerator.createService(Service.class);\n Call<List<QuestionsModel>> call = service.getQuestions();\n call.enqueue(new Callback<List<QuestionsModel>>() {\n @Override\n public void onResponse(Call<List<QuestionsModel>> call, Response<List<QuestionsModel>> response) {\n if (response.isSuccessful()) {\n if (response != null) {\n List<QuestionsModel> questionsModelList = response.body();\n mQuestionsViewModel.deleteAll();\n for (int i = 0; i < questionsModelList.size(); i++) {\n String question = questionsModelList.get(i).getQuestion();\n String answer = questionsModelList.get(i).getAnswer();\n String ansA = questionsModelList.get(i).getOptA();\n String ansB = questionsModelList.get(i).getOptB();\n String ansC = questionsModelList.get(i).getOptC();\n\n Question questions = new Question(question, ansA, ansB, ansC, answer);\n mQuestionsViewModel.insert(questions);\n }\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n takeAction();\n }\n }, 2000);\n }\n }\n }\n\n @Override\n public void onFailure(Call<List<QuestionsModel>> call, Throwable t) {\n\n }\n });\n\n }", "public void saveSurvey(Survey survey) throws SurveyEngineException{\r\n surveyValidation(survey);\r\n \r\n Element surveysElement = (Element) doc.getElementsByTagName(\"surveys\").item(0);\r\n NodeList surveysElements = surveysElement.getElementsByTagName(\"survey\");\r\n Element surveyElement;\r\n \r\n //try to find survey, if found delete it\r\n int sid = survey.getSid();\r\n try {\r\n surveyElement = getSurveyElementBySid(sid);\r\n surveysElement.removeChild(surveyElement);\r\n }\r\n \r\n //if not found, find a new id for the survey\r\n catch(NullPointerException e) {\r\n int maxId = 0;\r\n for (int i = 0; i < surveysElements.getLength(); i++) {\r\n int id = Integer.parseInt(((Element)surveysElements.item(i)).getAttribute(\"sid\"));\r\n maxId = max(id, maxId);\r\n }\r\n sid = ++maxId;\r\n }\r\n \r\n //create a new element and add title and description\r\n surveyElement = doc.createElement(\"survey\");\r\n surveyElement.setAttribute(\"sid\", Integer.toString(sid));\r\n Element titleElement = doc.createElement(\"title\");\r\n titleElement.setTextContent(survey.getTitle());\r\n surveyElement.appendChild(titleElement);\r\n Element descriptionElement = doc.createElement(\"description\");\r\n descriptionElement.setTextContent(survey.getDescription());\r\n surveyElement.appendChild(descriptionElement);\r\n \r\n //add questions\r\n Element questionsElement = doc.createElement(\"questions\");\r\n for (Question question: survey.getQuestions()) {\r\n Element questionElement = doc.createElement(\"question\");\r\n questionElement.setAttribute(\"qid\", Integer.toString(question.getQid()));\r\n \r\n descriptionElement = doc.createElement(\"description\");\r\n descriptionElement.setTextContent(question.getDescription());\r\n questionElement.appendChild(descriptionElement);\r\n \r\n String qTString = null;\r\n switch (question.getQuestionType()) {\r\n case CLOSED: \r\n qTString = \"closed\"; \r\n break;\r\n case MULTIPLE: \r\n qTString = \"multiple\"; \r\n break;\r\n }\r\n questionElement.setAttribute(\"type\", qTString);\r\n \r\n Element answersElement = doc.createElement(\"answers\");\r\n \r\n //add answers\r\n for(int aid: question.getAnswerIDs()) {\r\n Element answerElement = doc.createElement(\"answer\");\r\n answerElement.setAttribute(\"aid\", Integer.toString(aid));\r\n answerElement.setTextContent(question.getAnswer(aid));\r\n answersElement.appendChild(answerElement);\r\n }\r\n \r\n questionElement.appendChild(answersElement);\r\n questionsElement.appendChild(questionElement);\r\n }\r\n \r\n surveyElement.appendChild(questionsElement);\r\n surveysElement.appendChild(surveyElement);\r\n \r\n //save the xml document\r\n {\r\n try {\r\n TransformerFactory tFactory = TransformerFactory.newInstance();\r\n Transformer transformer = tFactory.newTransformer();\r\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n \r\n DOMSource source = new DOMSource(doc);\r\n StreamResult result = new StreamResult(new File(this.filePath));\r\n transformer.transform(source, result);\r\n } catch (TransformerException e) {\r\n throw new SurveyEngineException(\"Survey could not be saved\");\r\n }\r\n }\r\n }", "private void refreshList() {\n\n Requester.getInstance().cancelPendingRequests(BrowseCoursesNew.TAG);\n mWishListAdapter.clearData();\n\n refreshView();\n\n wishCourses = new WishCourses(mHandler);\n wishCourses.sendWishlistCoursesRequest();\n }", "public void updateList() \n { \n model.clear();\n for(int i = ScholarshipTask.repository.data.size() - 1; i >= 0; i--) \n {\n model.addElement(ScholarshipTask.repository.data.get(i));\n }\n }", "private void updateList() {\n Model.instace.getAllArticles(new ArticleFirebase.GetAllArticlesAndObserveCallback() {\n @Override\n public void onComplete(List<Article> list) {\n data.clear();\n data = list;\n adapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancel() {\n\n }\n });\n }", "private void populateQuestionListView(){\n questionList = (ListView) findViewById(R.id.question_list);\n qla = new QuizListAdapter(this);\n for(int i = 0; i < questions.getSize(); i++)\n qla.add(questions.getNext(Question.class));\n\n //sets the adapter for all the list items\n if(questionList != null){\n questionList.setAdapter(qla);\n }\n }", "private void refresh() {\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n String name = mContext.getSharedPreferences(LoginActivity.LOGIN_PREF, Context.MODE_PRIVATE).getString(LoginActivity.USERNAME_KEY, \"user2\");\n Call<List<Question>> call = mApiService.list(name);\n call.enqueue(new Callback<List<Question>>() {\n @Override\n public void onResponse(Call<List<Question>> call, Response<List<Question>> response) {\n Log.d(TAG, \"List feed q's success: \" + (new Gson()).toJson(response.body()));\n\n adapter = new DashListAdapter(mContext, (List<Question>)response.body());\n myQuestions.setAdapter(adapter);\n }\n\n @Override\n public void onFailure(Call<List<Question>> call, Throwable t) {\n Log.d(TAG, \"List feed q's fail\");\n t.printStackTrace();\n }\n });\n }\n });\n }", "private void refreshList() {\n if (loadStepsTask != null) {\n loadStepsTask.cancel(false);\n }\n loadStepsTask = new LoadStepsTask(this, dbManager);\n loadStepsTask.execute();\n }", "@Override\n\tpublic List<Survey> getAllSurveys() {\n\t\tList<Survey> surveyById = surveyRepository.findAll();\n\t\treturn surveyById;\n\t}", "public void update() {\n\n dbWork.cleanAll();\n\n List<DataFromServiceKudaGo> list = requestDataFromService();\n\n List<Film> films = new ArrayList<>();\n for (DataFromServiceKudaGo data : list) {\n Film film = new Film(list.indexOf(data), data.getNameMovie(), data.getPosterMoviePath(),\n data.getRunning_time(), data.getPrice(), data.getImax(),\n data.getCountryFilm(), data.getYearFilm(), data.getTrailerFilm(),\n data.getAgeFilm(), data.getDirectorFilm(), data.getNameCinema(),\n data.getAddressCinema(), data.getPhone(), data.getStationAboutCinema(),\n data.getPosterCinemaPath(), data.getBeginning_time(), data.getDescription());\n films.add(film);\n }\n\n dbWork.setFilms(films);\n\n fillShows();\n }", "public void storeDataTwo(String id, List<String> answers){\n JSONObject questionAnswers = new JSONObject();\n try\n {\n questionAnswers.put(\"usertestid\", id);\n SharedPreferences pref = this.getSharedPreferences(\"session_token\", Context.MODE_PRIVATE);\n String email = pref.getString(\"email\", null);\n questionAnswers.put(\"answered_by\", email);\n questionAnswers.put(\"answers\", answersArray);\n } catch (JSONException e){\n e.printStackTrace();\n }\n new AsyncPost().execute(\"http://webapp.bimorstad.tech/feedback/create\", questionAnswers.toString());\n }", "private void updateProgramWorkoutList(){\n //Create the list.\n workoutsInProgram = work_dbh.get_workouts_in_prog(programName);\n workoutListAdapter = new ArrayAdapter<>(\n this, android.R.layout.simple_list_item_1, workoutsInProgram);\n workoutListView.setAdapter(workoutListAdapter);\n }", "private void updateFromListTeacher(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\n\t\tint id=Integer.parseInt(req.getParameter(\"teacherid\"));\n\t\ttry {\n\t\t\tTeacher teacher=teacherDAO.getTeacher(id);\n\t\t\treq.setAttribute(\"teacher\", teacher);\n\t\t\treq.getServletContext().getRequestDispatcher(\"/updateTeacher.jsp\")\n\t\t\t.forward(req, resp);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setList() \n\t\t{\n\t\t\tVector<Course> items = client.ProfessorCourseList(prof.getID());\n\t\t\tmodel.removeAllElements();\n\t\t\tif(items == null)return;\n\t\t\tString s;\n\t\t\tfor(int i = 0; i < items.size(); i++)\n\t\t\t{\n\t\t\t\ts = items.get(i).getName();\n\t\t\t\tmodel.addElement(items.get(i));\n\t\t\t}\n\t\t}", "public SurveyWithQuestions (SurveyMetaData survey, List<SurveyQuestion> questions)\n {\n this.survey = survey;\n this.questions = questions;\n }", "public void loadData(){\n JsonArrayRequest request = new JsonArrayRequest(\"http://www.efstratiou.info/projects/newsfeed/getList.php\", netListener, errorListener);\n\n //submit request\n ArticlesApp.getInstance().getRequestQueue().add(request);\n\n }", "@Override\n public void save(AllContainer con) {\n try {\n c = DBConncetion.getConnection();\n String sql = \"Update mainquestion \\n\" +\n \"Set answered_correct = ? , answered_incorrect = ?\\n , marked = ?\" +\n \"Where id = ?\";\n PreparedStatement pstmt = c.prepareStatement(sql);\n for (Question q : con.getList()) {\n int marked = q.isMarked() ? 1 : 0;\n Stats stats = q.getStats();\n System.out.println(stats.getCorrectAnswered());\n pstmt.setString(1,String.valueOf(stats.getCorrectAnswered()));\n pstmt.setString(2,String.valueOf(stats.getWrongAnswered()));\n pstmt.setString(3,String.valueOf(marked));\n pstmt.setString(4,String.valueOf(q.getId()));\n pstmt.executeUpdate();\n }\n } catch (Exception e) {\n throw new LoadSaveException(\"Error while saving: \" + e.getMessage());\n }\n }", "public List<Survey> listSurveys() {\n\t\treturn surveyRepository.findAllSurvey();\n\t}", "private void update(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString id = request.getParameter(\"id\");\r\n\t\tNotice notice = service.selectByNotice_id(Integer.valueOf(id));\r\n\t\trequest.setAttribute(\"notice\", notice);\r\n\t\tList<Department> list = service.selectDepartmentAll();\r\n\t\tSystem.out.println(list);\r\n\t\trequest.setAttribute(\"list\", list);\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/GongGaoTianJia.jsp\").forward(request, response);\r\n\t}", "public void refreshListAdapter() {\n adapter.setListContent(requests);\n //We in turn set the adapter to the RecyclerView\n recyclerView.setAdapter(adapter);\n }", "public void reload() {\n SharedPreferences prefs = getActivity().getSharedPreferences(\"com.ryansteckler.nlpunbounce_preferences\", Context.MODE_WORLD_READABLE);\n Set<String> sampleSet = new HashSet<String>();\n Set<String> set = prefs.getStringSet(\"wakelock_regex_set\", sampleSet);\n ArrayList<String> list = new ArrayList<String>(set);\n\n // Create The Adapter with passing ArrayList as 3rd parameter\n mAdapter = new RegexAdapter(getActivity(), list, \"wakelock\");\n\n // Sets The Adapter\n setListAdapter(mAdapter);\n }", "public void updated(ServerList list);", "public void updateDataSet(ArrayList<JobSpecBean> dataList) {\n\t\tthis.dataList = dataList;\n\t\tnotifyDataSetChanged();\n\t}", "public List<Survey> getSurveybyTid(int tid);", "@GetMapping(\"/findAllSurveys\")\n\tpublic List<Survey> getAllSurveys(){\n\t\treturn repository.findAll(); \n\t}", "@Override\n public void refresh() {\n serverJList.removeAll();\n client.searchForServer();\n }", "public void reloadDatasources(){\n refreshDataCache();\n refreshListbox();\n \n if (this.geselecteerdeStageplaats != null)\n { \n this.geselecteerdeStageplaats = this.dbFacade.getStageplaatsByID(this.geselecteerdeStageplaats.getId());\n }\n refreshDisplayedStageplaats();\n }", "@Override\n public void addResponses() {\n for(answerChoice a: this.userAnswers) {\n this.addResponseHelper(a.getAnswerText());\n //this.savedResponses. //add(a.getAnswerText());\n //try {\n\n //} catch(Exception e) {\n // e.printStackTrace();\n\n //}\n\n }\n }", "public void populateListFromFile() \n\t{\n\t\tBufferedReader bufferedReader = null;\n\t\tallQuestions = new ArrayList<ArrayList<String>>();\n\t\tquestionAndAnswers = new ArrayList<String>();\n\n\t\ttry {\n\t\t bufferedReader = new BufferedReader(new FileReader(\"questions.txt\"));\n\t\t String line = \"\";\n\t\t \n\t\t while ((line = bufferedReader.readLine()) != null) \n\t\t {\t\t\t \t\n\t\t \tif(line.length() > 0)\n\t\t \t\tquestionAndAnswers.add(line);\n\t\t \telse if (line.length() == 0)\n\t\t \t{\n\t\t \t\tallQuestions.add(questionAndAnswers);\n\t\t \t\tquestionAndAnswers = new ArrayList<String>();\n\t\t \t}\n\t\t } \n\t\t} catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t}", "private void refreshList() {\n List<PullRequest> storedPullRequests = mDataManager.getPullRequests();\n\n mPullRequests.clear();\n\n for (PullRequest pullRequest : storedPullRequests) {\n mPullRequests.add(pullRequest);\n }\n\n mAdapter.notifyDataSetChanged();\n\n mDialog.dismiss();\n }", "public void addMyPollData(List<UserPollResponseModel.Results.Data> dataResults) {\n //remove footer viewe\n this.removeFooterView(footer);\n //add data in array list\n myPolladapter.addAll(dataResults);\n //Notifies the attached observers that the underlying\n // data has been changed and any View reflecting the data set should refresh itself.\n myPolladapter.notifyDataSetChanged();\n isLoading = false;\n }", "public ArrayList<String> loadPostedQuestions() {\n\n\t\tSAVE_FILE = POSTED_QUESTIONS_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public void addmyPollCommentsData(List<CommentDisplayResponseModel.Results.Data> data) {\n //add data\n myPollCommentsAdapter.addAll(data);\n //Notifies the attached observers that the underlying\n // data has been changed and any View reflecting the data set should refresh itself.\n myPollCommentsAdapter.notifyDataSetChanged();\n isLoading = false;\n\n }", "public List<SurveyPullResponse> getUserCompletedSurvey(int batchSize,Application passport);", "public void getSurveys (final AsyncCallback<List<SurveyMetaData>> callback)\n {\n if (_surveys != null) {\n callback.onSuccess(_surveys);\n return;\n }\n\n _surveySvc.getAllSurveys(new AsyncCallback<List<SurveyMetaData>>() {\n public void onSuccess (List<SurveyMetaData> result) {\n _surveys = result;\n callback.onSuccess(_surveys);\n }\n public void onFailure (Throwable caught) {\n callback.onFailure(caught);\n }\n });\n }", "private void reloadTreatmentData()\n {\n if (_dietTreatment == null) return;\n _dietTreatment.updateContactJournalsCache();\n _dietTreatment.updateDietParametersCache();\n _dietTreatment.updateDietPlansCache();\n _dietTreatment.updatePatientStatesCache();\n _dietTreatment.updateSystemUsersCache();\n \n // load nutritionprotocols\n NutritionProtocolDAO dao = DAOFactory.getInstance().getNutritionProtocolDAO();\n List<NutritionProtocol> nps = dao.findByDietTreatment(_dietTreatment.getModel());\n _nutritionProtocols = new ArrayList<NutritionProtocolBO>();\n for (NutritionProtocol nutritionProtocol : nps) \n {\n _nutritionProtocols.add(new NutritionProtocolBO(nutritionProtocol));\n }\n }", "private void LoadList() {\n try {\n //get the list\n ListView termListAdpt = findViewById(R.id.assessmentListView);\n //set the adapter for term list\n AssessmentAdapter = new ArrayAdapter<String>(AssessmentActivity.this, android.R.layout.simple_list_item_1, AssessmentData.getAssessmentsbyNames());\n termListAdpt.setAdapter(AssessmentAdapter);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "private void GetQuizById(String cat_id) {\n QuestionWithAnswer = new ArrayList<>();\n mcqOptions = new ArrayList<>();\n url = ServerConnection.connectionIp + ServerConnection.getQuizByCategory;\n RequestParams requestParams = new RequestParams();\n requestParams.put(\"user_id\", SharedPreferencesClass.sharedPreference.getString(\"id\", \"\"));\n requestParams.put(\"category_id\", cat_id);\n client.post(url, requestParams, new JsonHttpResponseHandler() {\n @Override\n public void onStart() {\n super.onStart();\n progressDialog.show();\n }\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONArray response) {\n super.onSuccess(statusCode, headers, response);\n// Toast.makeText(getContext(), \"Called\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n super.onSuccess(statusCode, headers, response);\n Log.d(\"response\", response.toString());\n swipeRefreshLayout.setRefreshing(false);\n progressDialog.dismiss();\n try {\n if (response.getInt(\"status\") == 200) {\n JSONArray jsonArray = response.getJSONArray(\"questions\");\n for (int i = 0; i < jsonArray.length(); i++) {\n mcqOptions = new ArrayList<>();\n String id = jsonArray.getJSONObject(i).getString(\"id\");\n String question = jsonArray.getJSONObject(i).getString(\"question\");\n String answer = jsonArray.getJSONObject(i).getString(\"answer\");\n String cat_id = jsonArray.getJSONObject(i).getString(\"cat_id\");\n JSONArray jsonArray1 = jsonArray.getJSONObject(i).getJSONArray(\"answers\");\n for (int j = 0; j < jsonArray1.length(); j++) {\n mcqOptions.add(new McqOptionModel(jsonArray1.getJSONObject(i).getString(\"id\"), jsonArray1.getJSONObject(i).getString(\"questionID\"), jsonArray1.getJSONObject(i).getString(\"option\"), jsonArray1.getJSONObject(i).getString(\"is_correct\")));\n }\n QuestionWithAnswer.add(new QuestionsModel(question, id, answer, cat_id, mcqOptions));\n\n }\n// adapter = new QuizFragmentAdapter(getContext(), QuestionWithAnswer);\n// listView.setAdapter(adapter);\n// Log.d(\"size\", String.valueOf(QuestionWithAnswer.size()));\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n Log.d(\"exception\", e.getMessage());\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n super.onFailure(statusCode, headers, responseString, throwable);\n progressDialog.dismiss();\n swipeRefreshLayout.setRefreshing(false);\n }\n });\n }", "@Override\n public void onGetStudiesListTaskUpdate(List<Study> studiesList) { \n this.studies = studiesList; \n for(int i=0;i<studiesList.size();i++){\n GetFullStudyTask t2 = new GetFullStudyTask(this.getActivity(), this, studies.get(i).getId());\n t2.execute();\n }\n adapter.clear();\n adapter.addAll(studiesList); \n setActivateOnItemClick(true);\n if (mActivatedPosition != ListView.INVALID_POSITION){\n setActivatedPosition(mActivatedPosition);\n }\n \n }", "public void c_executeQuery(String id, ArrayList<ArrayList> pages) {\n\n try {\n HttpClient httpClient = new DefaultHttpClient();\n HttpPost httpPost = new HttpPost(\"http://192.168.64.2/test1/db_connection.php\");\n ArrayList<NameValuePair> params = new ArrayList<NameValuePair>();\n params.add(new BasicNameValuePair(\"number\", null));\n params.add(new BasicNameValuePair(\"ID\", id));\n for (int i = 0; i < pages.size(); i++) {\n ArrayList<Model> questions = pages.get(i);\n for (int j = 0; j < questions.size(); j++) {\n Model q = questions.get(j);\n params.add(new BasicNameValuePair(q.getId(), q.getText()));\n }\n }\n httpPost.setEntity(new UrlEncodedFormEntity(params, \"utf-8\"));\n HttpResponse httpResponse = httpClient.execute(httpPost);\n } catch(Exception e) {\n // Log.e(\"log_tag\", e.toString());\n }\n }", "@Override\n\tpublic void setSurvey(int id, int survey) {\n\t\t\n\t}", "public void updatePhysicianList() {\n Log.d(LOG_TAG, \"updatePhysicianList() \");\n if (caseDataInterface != null) { // if called before it is attached/initialized ...prevent\n nearbyPhysicianList = loadPhysicianList();\n setUpPhysicianList(LayoutInflater.from(getContext()), nearbyPhysicianListLayout);\n\n }\n\n\n }", "private void setFAQs () {\n\n QuestionDataModel question1 = new QuestionDataModel(\n \"What is Psychiatry?\", \"Psychiatry deals with more extreme mental disorders such as Schizophrenia, where a chemical imbalance plays into an individual’s mental disorder. Issues coming from the “inside” to “out”\\n\");\n QuestionDataModel question2 = new QuestionDataModel(\n \"What Treatments Do Psychiatrists Use?\", \"Psychiatrists use a variety of treatments – including various forms of psychotherapy, medications, psychosocial interventions, and other treatments (such as electroconvulsive therapy or ECT), depending on the needs of each patient.\");\n QuestionDataModel question3 = new QuestionDataModel(\n \"What is the difference between psychiatrists and psychologists?\", \"A psychiatrist is a medical doctor (completed medical school and residency) with special training in psychiatry. A psychologist usually has an advanced degree, most commonly in clinical psychology, and often has extensive training in research or clinical practice.\");\n QuestionDataModel question4 = new QuestionDataModel(\n \"What is Psychology ?\", \"Psychology is the scientific study of the mind and behavior, according to the American Psychological Association. Psychology is a multifaceted discipline and includes many sub-fields of study such areas as human development, sports, health, clinical, social behavior, and cognitive processes.\");\n QuestionDataModel question5 = new QuestionDataModel(\n \"What is psychologists goal?\", \"Those with issues coming from the “outside” “in” (i.e. lost job and partner so feeling depressed) are better suited with psychologists, they offer guiding you into alternative and healthier perspectives in tackling daily life during ‘talk therapy’\");\n QuestionDataModel question6 = new QuestionDataModel(\n \"What is the difference between psychiatrists and psychologists?\", \"Psychiatrists can prescribe and psychologists cannot, they may be able to build a report and suggest medications to a psychiatrist but it is the psychiatrist that has the final say.\");\n QuestionDataModel question7 = new QuestionDataModel(\n \"What is a behavioural therapist?\", \"A behavioural therapist such as an ABA (“Applied Behavioural Analysis”) therapist or an occupational therapist focuses not on the psychological but rather the behavioural aspects of an issue. In a sense, it can be considered a “band-aid” fix, however, it has consistently shown to be an extremely effective method in turning maladaptive behaviours with adaptive behaviours.\");\n QuestionDataModel question8 = new QuestionDataModel(\n \"Why behavioral therapy?\", \"Cognitive-behavioral therapy is used to treat a wide range of issues. It's often the preferred type of psychotherapy because it can quickly help you identify and cope with specific challenges. It generally requires fewer sessions than other types of therapy and is done in a structured way.\");\n QuestionDataModel question9 = new QuestionDataModel(\n \"Is behavioral therapy beneficial?\", \"Psychiatrists can prescribe and psychologists cannot, they may be able to build a report and suggest medications to a psychiatrist but it is the psychiatrist that has the final say.\");\n QuestionDataModel question10 = new QuestionDataModel(\n \"What is alternative therapy?\", \"Complementary and alternative therapies typically take a holistic approach to your physical and mental health.\");\n QuestionDataModel question11 = new QuestionDataModel(\n \"Can they treat mental health problems?\", \"Complementary and alternative therapies can be used as a treatment for both physical and mental health problems. The particular problems that they can help will depend on the specific therapy that you are interested in, but many can help to reduce feelings of depression and anxiety. Some people also find they can help with sleep problems, relaxation, and feelings of stress.\");\n QuestionDataModel question12 = new QuestionDataModel(\n \"What else should I consider before starting therapy?\", \"Only you can decide whether a type of treatment feels right for you, But it might help you to think about: What do I want to get out of it? Could this therapy be adapted to meet my needs?\");\n\n ArrayList<QuestionDataModel> faqs1 = new ArrayList<>();\n ArrayList<QuestionDataModel> faqs2 = new ArrayList<>();\n ArrayList<QuestionDataModel> faqs3 = new ArrayList<>();\n ArrayList<QuestionDataModel> faqs4 = new ArrayList<>();\n faqs1.add(question1);\n faqs1.add(question2);\n faqs1.add(question3);\n faqs2.add(question4);\n faqs2.add(question5);\n faqs2.add(question6);\n faqs3.add(question7);\n faqs3.add(question8);\n faqs3.add(question9);\n faqs4.add(question10);\n faqs4.add(question11);\n faqs4.add(question12);\n\n\n CategoryDataModel category1 = new CategoryDataModel(R.drawable.psychaitry,\n \"Psychiatry\",\n \"Psychiatry is the medical specialty devoted to the diagnosis, prevention, and treatment of mental disorders.\",\n R.drawable.psychiatry_q);\n\n CategoryDataModel category2 = new CategoryDataModel(R.drawable.psychology,\n \"Psychology\",\n \"Psychology is the science of behavior and mind which includes the study of conscious and unconscious phenomena.\",\n R.drawable.psychology_q);\n\n CategoryDataModel category3 = new CategoryDataModel(R.drawable.behavioral_therapy,\n \"Behavioral Therapy\",\n \"Behavior therapy is a broad term referring to clinical psychotherapy that uses techniques derived from behaviorism\",\n R.drawable.behaviour_therapy_q);\n CategoryDataModel category4 = new CategoryDataModel(R.drawable.alternative_healing,\n \"Alternative Therapy\",\n \"Complementary and alternative therapies typically take a holistic approach to your physical and mental health.\",\n R.drawable.alternative_therapy_q);\n\n String FAQ1 = \"What is Psychiatry?\";\n String FAQ2 = \"What is Psychology?\";\n String FAQ3 = \"What is Behavioral Therapy?\";\n String FAQ4 = \"What is Alternative Therapy?\";\n String FAQ5 = \"Report a problem\";\n\n FAQsDataModel FAQsDataModel1 = new FAQsDataModel(FAQ1, category1,faqs1);\n FAQsDataModel FAQsDataModel2 = new FAQsDataModel(FAQ2, category2,faqs2);\n FAQsDataModel FAQsDataModel3 = new FAQsDataModel(FAQ3, category3,faqs3);\n FAQsDataModel FAQsDataModel4 = new FAQsDataModel(FAQ4, category4,faqs4);\n FAQsDataModel FAQsDataModel5 = new FAQsDataModel(FAQ5, category4,faqs4);\n\n\n\n if (mFAQs.isEmpty()) {\n\n mFAQs.add(FAQsDataModel1);\n mFAQs.add(FAQsDataModel2);\n mFAQs.add(FAQsDataModel3);\n mFAQs.add(FAQsDataModel4);\n mFAQs.add(FAQsDataModel5);\n\n\n }\n }", "private void updateDocumentList(Response response) {\n\t\t\tfor (String doc : response.getEditorList()) {\n\t\t\t\tif (!RevisionList.this.listmodel.contains(doc))\n\t\t\t\t\tRevisionList.this.listmodel.addElement(doc);\n\t\t\t}\n\t\t}", "public void update(Reponses item) {\n this.model = item;\n \n this.loadData();\n \n if (this.model != null) {\n MultiLoader loader = new MultiLoader(this);\n String baseUri = \n ReponsesProviderAdapter.REPONSES_URI \n + \"/\" \n + this.model.getId();\n\n loader.addUri(Uri.parse(baseUri), new UriLoadedCallback() {\n\n @Override\n public void onLoadComplete(android.database.Cursor c) {\n ReponsesShowFragment.this.onReponsesLoaded(c);\n }\n\n @Override\n public void onLoaderReset() {\n\n }\n });\n loader.addUri(Uri.parse(baseUri + \"/question\"), \n new UriLoadedCallback() {\n\n @Override\n public void onLoadComplete(android.database.Cursor c) {\n ReponsesShowFragment.this.onQuestionLoaded(c);\n }\n\n @Override\n public void onLoaderReset() {\n\n }\n });\n loader.init();\n }\n }", "private void loadaspirasirt(){\n String m_idwarga = getSp().getString(\"id_warga\",null);\n Call<ResponModel>viewmypost = getApi().rtaspirasi();\n viewmypost.enqueue(new Callback<ResponModel>() {\n @Override\n public void onResponse(Call<ResponModel> call, Response<ResponModel> response) {\n refresh.setRefreshing(false);\n Log.d(\"RESPON\",\"Hasil\"+response.body());\n mItem= response.body().getResult();\n mAdapter = new AdapterRT(mItem,AspirasiRTActivity.this);\n mylistpost.setAdapter(mAdapter);\n mAdapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onFailure(Call<ResponModel> call, Throwable t) {\n refresh.setRefreshing(false);\n Log.d(\"RESPON\",\"GAGAL\");\n }\n });\n }", "public void loadQuestionList(){\n StringRequest stringRequest = new StringRequest(Request.Method.GET, AppConfig.URL_QUESTION_RECEIVE+\"?asset_type=\"+typeKendaraan+\"&inspection_name=Asset Receive\",\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n try {\n //getting the whole json object from the response\n JSONObject obj = new JSONObject(response);\n\n //we have the array named hero inside the object\n //so here we are getting that json array\n JSONArray queArray = obj.getJSONArray(\"data\");\n\n final LinearLayoutManager layoutManager = new LinearLayoutManager(ReceiveActivity.this);\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n listViewPart.setLayoutManager(layoutManager);\n //now looping through all the elements of the json array\n Log.e(\"data parts\",queArray.toString());\n ArrayList data = new ArrayList<DataQuestionReceive>();\n for (int i = 0; i < queArray.length(); i++) {\n JSONObject queObject = queArray.getJSONObject(i);\n data.add(\n new DataQuestionReceive(\n queObject.getString(\"id\"),\n queObject.getString(\"part_code\"),\n queObject.getString(\"part_name\")\n )\n );\n //getting the json object of the particular index inside the array\n\n }\n mListadapter = new ReceiveActivity.ListAdapter(data);\n listViewPart.setAdapter(mListadapter);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n //displaying the error in toast if occurrs\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n //creating a request queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n\n //adding the string request to request queue\n requestQueue.add(stringRequest);\n\n }", "public void reload(){\n populateList();\n }", "private void getMasechtotListFromServer() {\n\n\n RequestManager.getMasechtotList().subscribe(new Observer<Result<MasechetList>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Result<MasechetList> masechetListResult) {\n\n saveMasechtotList(masechetListResult.getData());\n mMasechtotList = masechetListResult.getData();\n\n }\n\n @Override\n public void onError(Throwable e) {\n\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n\n\n }", "public static Object[] loadQuestions(String surveyId, String serverBase)\r\n \t\t\tthrows Exception {\r\n \t\tObject[] results = new Object[2];\r\n \t\tMap<String, String> questions = new HashMap<String, String>();\r\n \t\tList<QuestionGroupDto> groups = fetchQuestionGroups(serverBase,\r\n \t\t\t\tsurveyId);\r\n \t\tList<String> keyList = new ArrayList<String>();\r\n \t\tif (groups != null) {\r\n \t\t\tfor (QuestionGroupDto group : groups) {\r\n \t\t\t\tList<QuestionDto> questionDtos = fetchQuestions(serverBase,\r\n \t\t\t\t\t\tgroup.getKeyId());\r\n \t\t\t\tif (questionDtos != null) {\r\n \t\t\t\t\tfor (QuestionDto question : questionDtos) {\r\n \t\t\t\t\t\tkeyList.add(question.getKeyId().toString());\r\n \t\t\t\t\t\tquestions.put(question.getKeyId().toString(), question\r\n \t\t\t\t\t\t\t\t.getText());\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\tresults[0] = keyList;\r\n \t\tresults[1] = questions;\r\n \t\treturn results;\r\n \t}", "@Override\n protected void onPostExecute( List<Question> questionList ) {\n super.onPostExecute(questionList);\n\n\n\n\n\n// questionView.setText(\"what\" + questionList.get(0).getState());\n// option1.setText(questionList.get(0).getCapital());\n// option2.setText(questionList.get(0).getCity1());\n// option3.setText(questionList.get(0).getCity2());\n // recyclerAdapter = new JobLeadRecyclerAdapter( jobLeadsList );\n // recyclerView.setAdapter( recyclerAdapter );\n }", "public void upgradeResponse(ArrayList<ArrayList<String>> responses)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(table, null, null); //Delete entries in old table\n\n for(int i = 0; i < responses.size(); i++)\n {\n ArrayList<String> currRow = responses.get(i);\n ContentValues colValuePairs = new ContentValues();\n\n //TODO Make magic numbers into final constants\n colValuePairs.put(\"id\",currRow.get(0)); //key represents column names\n colValuePairs.put(\"question\", currRow.get(1));\n colValuePairs.put(\"answer\", currRow.get(2));\n colValuePairs.put(\"correct\",currRow.get(3));\n\n db.insert(table, null, colValuePairs);\n }\n //db.close();\n }", "@GetMapping(value = \"/surveysPWA\", produces = \"application/json\")\n\t@ResponseStatus(HttpStatus.OK)\n\t@ApiOperation(value = \"Retrieve the list of available surveys\", tags = \"surveys\")\n\t@ApiResponses(value = { @ApiResponse(code = 200, message = \"The list of surveys has been successfully retrieved\"),\n\t\t\t@ApiResponse(code = 404, message = \"Survey not found\")})\n\t@ResponseBody\n\tpublic List<Survey> getSurveysPWA(@ApiParam(value = \"The id of the template\", required = false) @RequestParam(required = false) String templateId,\n\t\t\t@ApiParam(value = \"The user id\", required = false) @RequestParam(required = false) String userId,\n\t\t\t@ApiParam(value = \"Start date\", required = false) @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate startDate,\n\t\t\t@ApiParam(value = \"End date\", required = false) @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate endDate,\n\t\t\t@ApiParam(value = \"The status of the ticket\", required = false) @RequestParam(required = false) Status status, \n\t\t\t@ApiParam(value = \"Zero-based page index\", required = false) @RequestParam(required = false) Integer page,\n\t\t\t@ApiParam(value = \"The size of the page to be returned\", required = false) @RequestParam(required = false) Integer size,\n\t\t\t@ApiParam(value = \"Sort the collection in ascending order\", required = false) @RequestParam(required = false, defaultValue = \"false\") boolean sortAsc) \n\t\t\t\t\tthrows ResourceNotFoundException, ParseException {\n\n\t\tlogger.debug(\"GET surveys: start\");\n\n\t\tif (size == null)\n\t\t\tsize = Integer.valueOf((size != null) && (size.intValue() > 0) ? size.intValue() : 10);\n\n\t\tif (page == null)\n\t\t\tpage = 0;\n\n\t\tList<Survey> surveys = surveyService.findSurveys(templateId, userId, startDate, endDate, status, page,\n\t\t\t\tsize, sortAsc);\n\t\t\n\t\tif (surveys.isEmpty())\n\t\t\tthrow new ResourceNotFoundException(\"Surveys\");\n\n\t\treturn surveys;\n\t}", "private void generalKnowledgeQuestions(){\n QuestionUtils.generalKnowledgeQuestions(); //all the questions now are stored int the QuestionUtils class\n }", "private void getExamsList() {\r\n\r\n\t// if(!ApplicationData.isFileExists(appData.getExamsListFile())){\r\n\r\n\t// downloadExamsList();\r\n\r\n\t// return;\r\n\t// }\r\n\ttry{\r\n\t final String content = ApplicationData.readFile(appData\r\n\t\t .getExamsListFile());\r\n\t Logger.warn(tag, \"Exams list json is:\" + content);\r\n\t examsArrayList = JSONParser.getExamsList(ApplicationData\r\n\t\t .readFile(appData.getExamsListFile()));\t\t\t\r\n\t} catch (final Exception e) {\r\n\t Logger.error(tag, e);\r\n\t ToastMessageForExceptions(R.string.JSON_PARSING_EXCEPTION);\r\n\t backToDashboard();\r\n\t}\r\n\tif (examsArrayList.size() == 0) {\r\n\t emptystatus.bringToFront();\r\n\t emptystatus.setText(R.string.empty_status);\r\n\t examsList.setVisibility(View.GONE);\r\n\t ll.setVisibility(View.GONE);\r\n\t} else {\r\n\t emptystatus.setVisibility(View.GONE);\r\n\t examsList.bringToFront();\r\n\t}\r\n\r\n\tfinal ExamslistArrayAdapter examAdapter = new ExamslistArrayAdapter(\r\n\t\tactivityContext, R.layout.examlist_row, examsArrayList);\r\n\r\n\texamAdapter.sort(new Comparator<ExamDetails>() {\r\n\r\n\t @Override\r\n\t public int compare(ExamDetails lhs, ExamDetails rhs) {\r\n\t\tfinal Date startDate = new Date(lhs.getStartDate());\r\n\t\tfinal Date endDate = new Date(rhs.getStartDate());\r\n\t\treturn startDate.compareTo(endDate);\r\n\t }\r\n\t});\r\n\r\n\texamsList.setAdapter(examAdapter);\r\n\texamAdapter.notifyDataSetChanged();\r\n\t/*\r\n\t * examsList.setAdapter(new ExamslistArrayAdapter(activityContext,\r\n\t * R.layout.examlist_row, examsArrayList));\r\n\t */\r\n }", "public void update(){\r\n\t\tthis.loadRecords();\r\n\t}", "private void loadListView() {\n\t\tList<ClientData> list = new ArrayList<ClientData>();\n\t\ttry {\n\t\t\tlist = connector.get();\n\t\t\tlView.updateDataView(list);\n\t\t} catch (ClientException e) {\n\t\t\tlView.showErrorMessage(e);\n\t\t}\n\n\t}", "@Override\n public void onClick(View view) {\n sharedPrefManager.setHelathAPI(\"Questions\", \"\");\n sharedPrefManager.setHelathAPI(\"LessionsName\", \"\");\n sharedPrefManager.setHelathAPI(\"LessionsName\", lessionName);\n sharedPrefManager.setHelathAPI(\"Questions\", AngelPitchUtil.toJson(questionsArrayList));\n\n Intent Quiz = new Intent(App.getContext(), QuizActivity.class);\n Quiz.putExtra(\"lessionId\", lessionId);\n Quiz.putExtra(\"topicId\", topicId);\n myServerData.setTestState(\"inProgress\");\n startActivity(Quiz);\n\n /*for (int i = 0; i < questionsArrayList.size(); i++) {\n showQuestionsDialog(getContext(), questionsArrayList.get(i));\n\n }\n*/\n }", "public void updateContent(){\r\n\t\tthis.initRecords();\r\n\t\tlist.show(records);\r\n\t}", "private void refreshList() {\n ArrayAdapter<Plan> planAdapter = new PlanAdapter();\n mListView.setAdapter(planAdapter);\n\n }", "private void fetchNewQuestion()\r\n\t{\r\n\t\t//Gets question and answers from model\r\n\t\tString[] question = quizModel.getNewQuestion();\r\n\t\t\r\n\t\t//Allocates answers to a new ArrayList then shuffles them randomly\r\n\t\tArrayList<String> answers = new ArrayList<String>();\r\n\t\tanswers.add(question[1]);\r\n\t\tanswers.add(question[2]);\r\n\t\tanswers.add(question[3]);\r\n\t\tanswers.add(question[4]);\r\n\t\tCollections.shuffle(answers);\r\n\t\t\r\n\t\t//Allocates north label to the question\r\n\t\tnorthLabel.setText(\"<html><div style='text-align: center;'>\" + question[0] + \"</div></html>\");\r\n\t\t\r\n\t\t//Allocates each radio button to a possible answer. Based on strings, so randomly generated questions...\r\n\t\t//...which by chance repeat a correct answer in two slots, either will award the user a point.\r\n\t\toption1.setText(answers.get(0));\r\n\t\toption2.setText(answers.get(1));\r\n\t\toption3.setText(answers.get(2));\r\n\t\toption4.setText(answers.get(3));\r\n\t\toption1.setActionCommand(answers.get(0));\r\n\t\toption2.setActionCommand(answers.get(1));\r\n\t\toption3.setActionCommand(answers.get(2));\r\n\t\toption4.setActionCommand(answers.get(3));\r\n\t\toption1.setSelected(true);\r\n\t\t\r\n\t\t//Update score\r\n\t\tscoreLabel.setText(\"<html><div style='text-align: center;'>\" + \"Score = \" + quizModel.getScore() + \"</div></html>\");\r\n\t}", "public void setData(List<MaintenanceRequest> data) {\n Log.d(LOG_TAG, \"setData: New data received: \" + (data==null ? -1: data.size()));\n\n this.requests = data;\n notifyDataSetChanged();\n }", "public ArrayList<String> mulipleSelect() throws IOException{\n\t\t\tint count = 0;\n\t\t\tString line = null;\n\t\t\tFin = new FileReader(\"Survey.txt\");\t\t// take file in file reader \n\t\t\tbufferReader = new BufferedReader(Fin);\t// take contents of file in buffer reader\n\t\t\twhile( count != 6 )\t\t\t\t\t\t// skip first 6 lines of file because they are of question one \n\t\t {\n\t\t\t\tline = bufferReader.readLine();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tArrayList<String> answer = new ArrayList<String>();\t\t// array list which holds answer\n\t\t\tString[] questionArray = new String[4];\n\t\t\t \n\t\t\twhile(count!=10) {\n\t\t\t\t line = bufferReader.readLine();\t\t\t// next 4 lines of file contain Multiple choice question\n\t\t\t\t System.out.println(line);\n\t\t\t\t questionArray[count-6] = line;\t\t\t// take it into question array\n\t\t\t\t \n\t\t\t\t count++;\n\t\t\t}\n\t\t\t \n\t\t\tint flag = 0;\n\t\t\t\n\t\t\twhile( flag == 0 )\n\t\t\t{\n String Ans = new String();\n answer = new ArrayList<String>();\n\t for(int p=0; p<3; p++)\n\t {\n\t \tAns=sc.nextLine();\n\t answer.add(Ans);\n\t }\n\t for(int c=0; c<answer.size(); c++)\t\t\t\t// check user answers are valid or not\n\t {\n\t if( answer.get(c).equals(\"1\") )\n\t {\n\t \tanswer.set( c, \"1.Service Quality\" );\n\t }\n\t else if(answer.get(c).equals(\"2\"))\n\t {\n\t \tanswer.set( c, \"2.Communication\" );\n\t }\n\t else if(answer.get(c).equals(\"3\"))\n\t {\n\t \tanswer.set( c, \"3.Delivery Process\" );\n\t }\n\t }\n\t int p = 0;\n\t for( int i=0; i<3; i++ )\n\t {\n\t if( (questionArray[1].equals(answer.get(i))) || (questionArray[2].equals(answer.get(i))) || (questionArray[3].equals(answer.get(i))) || (answer.get(i).equals(\"\")) )// to check validation\n\t {\n\t \tflag++;\n\t \n\t \tif( (answer.get(i).equals(\"\")) )\n\t \t{\n\t \t\tp++;\n\t \t}\n\t }\n\t }\n\t if( p == 3 || flag < 3 )\t\t\t// if invalid then re enter the answers\n\t \t{\n\t \tSystem.out.println(\"Enter valid answer\");\n\t \t \tflag=0;\n\t \t}\n\t\t\t}\n\t\t\treturn answer;\n\t\t }", "public void queryLessonListFromDB(){\n\n //TODO: implement the AsyncTask to query list of lesson\n\n //The following is hard code\n LessonItem lesson1 = new LessonItem();\n LessonItem lesson2 = new LessonItem();\n LessonItem lesson3 = new LessonItem();\n LessonItem lesson4 = new LessonItem();\n LessonItem lesson5 = new LessonItem();\n LessonItem lesson6 = new LessonItem();\n LessonItem lesson7 = new LessonItem();\n\n lesson1.setLessonName(\"Introduction of Software Testing\");\n lesson2.setLessonName(\"Black-box Testing\");\n lesson3.setLessonName(\"White-box Testing\");\n lesson4.setLessonName(\"Unit Testing\");\n lesson5.setLessonName(\"Integration Testing\");\n lesson6.setLessonName(\"Regression Testing\");\n lesson7.setLessonName(\"System Performance\");\n\n queryResults.add(lesson1);\n queryResults.add(lesson2);\n queryResults.add(lesson3);\n queryResults.add(lesson4);\n queryResults.add(lesson5);\n queryResults.add(lesson6);\n queryResults.add(lesson7);\n\n //after background query doen, update UI\n showListLessonResult();\n }", "private void updateArticles() {\n progressDialog.show();\n JsonArrayRequest jsonArrayRequest = new JsonArrayRequest(Constant.API_URL, new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n try {\n JSONArray jsonArray = new JSONArray(response.toString());\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n Article article = new Article();\n article.TITLE = jsonObject.getString(\"TITLE\");\n article.ID = jsonObject.getInt(\"ID\");\n article.URL = jsonObject.getString(\"URL\");\n article.PUBLISHER = jsonObject.getString(\"PUBLISHER\");\n article.CATEGORY = jsonObject.getString(\"CATEGORY\");\n article.HOSTNAME = jsonObject.getString(\"HOSTNAME\");\n article.TIMESTAMP = jsonObject.getLong(\"TIMESTAMP\");\n articles.add(article);\n if (!publisher.contains(jsonObject.getString(\"PUBLISHER\"))) {\n publisher.add(jsonObject.getString(\"PUBLISHER\"));\n }\n //Save publisher locally\n /*if (jsonObject.getString(\"PUBLISHER\") != null) {\n Publisher publisher = new Publisher();\n publisher.setPublisherName(jsonObject.getString(\"PUBLISHER\"));\n try {\n List<Publisher> publisherList = new RushSearch()\n .whereEqual(\"publisherName\", jsonObject.getString(\"PUBLISHER\"))\n .find(Publisher.class);\n if (publisherList.size() == 0) {\n publisher.save();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }*/\n }\n\n refreshList();\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.dismiss();\n }\n });\n\n //submitting request to server\n RequestQueue requestQueue = Volley.newRequestQueue(getActivity());\n requestQueue.add(jsonArrayRequest);\n }", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "public void update(){\n\t\tArrayList<HashMap<String, String>> application_list = new ArrayList<HashMap<String, String>>();\n\t\t\n\t\t//This adds elements from the database to the listview\n\t\tSave save = new Save(this.view.getContext());\n\n\t\t//Get the preference for hide_incompatible\n\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(view.getContext());\n\t\tboolean hideIncompatible = sharedPrefs.getBoolean(\"hide_incompatible\", false);\n\n\t\t//Iterate over all the apps from the local database\n\t\tfor(App app : save.getAllApps()){\n\n\t\t\t//Check if apps with category games shall be listed\n\t\t\tif(app.getCategory().equals(\"Games\") \n\t\t\t\t\t&& MainFragmentActivity.pagerAdapter.page1 == Page.GAMES_ALL \n\t\t\t\t\t|| MainFragmentActivity.pagerAdapter.page1 == Page.ALL){\n\n\t\t\t\t//The app should not be shown if the user has hide_incompatible = true and the app is not compatible\n\t\t\t\tif(save.getRequirementsByID(app.getRequirementID()).isCompatible()||!hideIncompatible){\n\n\t\t\t\t\t//Put the app in a HashMap that will be used in ListAdapter\n\t\t\t\t\tHashMap<String, String >map = new HashMap<String, String>();\n\t\t\t\t\tmap.put(ListAdapter.KEY_ID, String.valueOf(app.getID()));\n\t\t\t\t\tmap.put(ListAdapter.APP_NAME, app.getName());\n\t\t\t\t\tmap.put(ListAdapter.DISTRIBUTOR, save.getDeveloperByID(app.getDeveloperID()).getName());\n\t\t\t\t\tmap.put(ListAdapter.RATING, String.valueOf(app.getRating()));\n\t\t\t\t\tmap.put(ListAdapter.CATEGORY, app.getCategory());\n\t\t\t\t\tapplication_list.add(map);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Check if apps with category Medical shall be listed\n\t\t\telse if(app.getCategory().equals(\"Medical\") \n\t\t\t\t\t&& MainFragmentActivity.pagerAdapter.page1 == Page.MEDICAL_ALL \n\t\t\t\t\t|| MainFragmentActivity.pagerAdapter.page1 == Page.ALL){\n\n\t\t\t\t//The app should not be shown if the user has hide_incompatible = true and the app is not compatible\n\t\t\t\tif(save.getRequirementsByID(app.getRequirementID()).isCompatible() || !hideIncompatible){\n\n\t\t\t\t\t//Put the app in a HashMap that will be used in ListAdapter\n\t\t\t\t\tHashMap<String, String >map = new HashMap<String, String>();\n\t\t\t\t\tmap.put(ListAdapter.KEY_ID, String.valueOf(app.getID()));\n\t\t\t\t\tmap.put(ListAdapter.APP_NAME, app.getName());\n\t\t\t\t\tmap.put(ListAdapter.DISTRIBUTOR, save.getDeveloperByID(app.getDeveloperID()).getName());\n\t\t\t\t\tmap.put(ListAdapter.RATING, String.valueOf(app.getRating()));\n\t\t\t\t\tmap.put(ListAdapter.CATEGORY, app.getCategory());\n\n\t\t\t\t\tapplication_list.add(map);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Check if apps with category Tools shall be listed\n\t\t\telse if(app.getCategory().equals(\"Tools\") \n\t\t\t\t\t&& MainFragmentActivity.pagerAdapter.page1 == Page.TOOLS_ALL \n\t\t\t\t\t|| MainFragmentActivity.pagerAdapter.page1 == Page.ALL){\n\n\t\t\t\t//The app should not be shown if the user has hide_incompatible = true and the app is not compatible\n\t\t\t\tif(save.getRequirementsByID(app.getRequirementID()).isCompatible() || !hideIncompatible){\n\n\t\t\t\t\t//Put the app in a HashMap that will be used in ListAdapter\n\t\t\t\t\tHashMap<String, String >map = new HashMap<String, String>();\n\t\t\t\t\tmap.put(ListAdapter.KEY_ID, String.valueOf(app.getID()));\n\t\t\t\t\tmap.put(ListAdapter.APP_NAME, app.getName());\n\t\t\t\t\tmap.put(ListAdapter.DISTRIBUTOR, save.getDeveloperByID(app.getDeveloperID()).getName());\n\t\t\t\t\tmap.put(ListAdapter.RATING, String.valueOf(app.getRating()));\n\t\t\t\t\tmap.put(ListAdapter.CATEGORY, app.getCategory());\n\n\t\t\t\t\tapplication_list.add(map);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Check if apps with category Media shall be listed\n\t\t\telse if(app.getCategory().equals(\"Media\") \n\t\t\t\t\t&& MainFragmentActivity.pagerAdapter.page1 == Page.MEDIA_ALL \n\t\t\t\t\t|| MainFragmentActivity.pagerAdapter.page1 == Page.ALL){\n\n\t\t\t\t//The app should not be shown if the user has hide_incompatible = true and the app is not compatible\n\t\t\t\tif(save.getRequirementsByID(app.getRequirementID()).isCompatible() || !hideIncompatible){\n\n\t\t\t\t\t//Put the app in a HashMap that will be used in ListAdapter\n\t\t\t\t\tHashMap<String, String >map = new HashMap<String, String>();\n\t\t\t\t\tmap.put(ListAdapter.KEY_ID, String.valueOf(app.getID()));\n\t\t\t\t\tmap.put(ListAdapter.APP_NAME, app.getName());\n\t\t\t\t\tmap.put(ListAdapter.DISTRIBUTOR, save.getDeveloperByID(app.getDeveloperID()).getName());\n\t\t\t\t\tmap.put(ListAdapter.RATING, String.valueOf(app.getRating()));\n\t\t\t\t\tmap.put(ListAdapter.CATEGORY, app.getCategory());\n\n\t\t\t\t\tapplication_list.add(map);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tlist = (ListView)this.view.findViewById(R.id.list);\n\n\t\t// Getting adapter by passing xml data ArrayList\n\t\tadapter = new ListAdapter(this.view.getContext(), application_list); \n\t\tlist.setAdapter(adapter);\n\n\t\t// Click event for single list row\n\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t\t\t//Create a new intent for the application view\n\t\t\t\tIntent intent = new Intent(view.getContext(), AppView.class);\n\n\t\t\t\t//Fetch the application ID\n\t\t\t\tint appID = Integer.parseInt(adapter.getID(position));\n\n\t\t\t\t//Give the intent a message (which application to retreive from the db)\n\t\t\t\tintent.putExtra(\"app\", appID);\n\n\t\t\t\t//Start the activity\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\t\n\t}", "@GetMapping(\"enable\")\n public String enableSurvey(@RequestParam(defaultValue = \"0\")long surveyId) {\n Optional<Survey> survey = this.surveyRepository.findById(surveyId);\n if (survey.isPresent()) {\n List<Question> questions = this.questionRepository.findBySurveyId(surveyId);\n if(questions.size()>0) {\n for (Question question:questions) {\n List<Answer> answers = this.answerRepository.findByQuestionId(question.getId());\n if(answers.size()<2){\n return \"redirect:/mysurveys\";\n }\n }\n\n survey.get().setActive(true);\n save(survey.get());\n }\n }\n return \"redirect:/mysurveys\";\n }", "public static void updateAllergy(final Context context, final HashMap<String, String> data) {\n\n // Set initial state\n loader.setVisibility(View.VISIBLE);\n allergyRecyclerViewList.setVisibility(View.GONE);\n\n // Url\n String url = ServiceUrls.KEY_HEALTHBOOK_ALLERGIES\n .concat(StringConstants.KEY_UPDATE)\n .concat(data.get(StringConstants.KEY_ALLERGY_P_ID));\n\n // Set Data\n final HashMap<String, Object> postData = new HashMap<>();\n postData.put(StringConstants.KEY_ALLERGY_ID, Integer.valueOf(data.get(StringConstants.KEY_ALLERGY_ID)));\n postData.put(StringConstants.KEY_ALLERGY_TYPE, data.get(StringConstants.KEY_ALLERGY_TYPE));\n postData.put(StringConstants.KEY_ALLERGY_KIND_OF_REACTION, data.get(StringConstants.KEY_ALLERGY_KIND_OF_REACTION));\n postData.put(StringConstants.KEY_START_DATE,\n DateTimeUtils.convertTimestampToUTC(Long.valueOf(data.get(StringConstants.KEY_ALLERGY_DATE_OF_ONSET))));\n postData.put(StringConstants.KEY_COMMENT, data.get(StringConstants.KEY_COMMENT));\n\n // Set Headers\n final HashMap<String, String> headers = new HashMap<>();\n headers.put(StaticConstants.KEY_AUTHORIZATION, StaticConstants.KEY_BEARER.concat(\" \")\n .concat(SharedPreferenceService.getValue(context, StringConstants.KEY_TOKEN)));\n\n if (Validation.isConnected(context)) {\n\n // API Call\n APICallService.PutAPICall(activity, context, url, postData, headers, new APIInterface() {\n\n @Override\n public void onSuccess(JSONObject response) {\n\n try {\n\n /**\n * Fetch and Update Local Database\n */\n Allergy mAllergyModel =\n Allergy.find(Allergy.class, \"p_id = ?\", data.get(StringConstants.KEY_ALLERGY_P_ID)).get(0);\n\n mAllergyModel.setReaction(data.get(StringConstants.KEY_ALLERGY_KIND_OF_REACTION));\n mAllergyModel.setStartDate(\n DateTimeUtils.convertTimestampToDate(Long.valueOf(data.get(StringConstants.KEY_ALLERGY_DATE_OF_ONSET))));\n mAllergyModel.setComment(data.get(StringConstants.KEY_ALLERGY_COMMENTS));\n mAllergyModel.save();\n\n // Notify adapter\n readAllergyList(context);\n\n } catch (Exception e) {\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n\n // Log error\n ErrorHandlers.handleError(activity);\n Crashlytics.logException(e);\n }\n }\n\n @Override\n public void onError(VolleyError error) {\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n }\n });\n\n } else {\n\n\n // Show content\n loader.setVisibility(View.GONE);\n allergyRecyclerViewList.setVisibility(View.VISIBLE);\n\n // Internet Not Available\n ErrorHandlers.handleInternetConnectionFailure(activity);\n }\n }", "public void setAnswerList(ArrayList<String> answerList){\n this.answerList = answerList;\n }", "public void loadQuestion() {\r\n\r\n //getting the number of the question stored in variable r\r\n //making sure that a question is not loaded up if the count exceeds the number of total questions\r\n if(count <NUMBER_OF_QUESTIONS) {\r\n int r = numberHolder.get(count);\r\n //creating object that will access the QuestionStore class and retrieve values and passing the value of the random question number to the class\r\n QuestionStore qs = new QuestionStore(r);\r\n //calling methods in order to fill up question text and mutliple choices and load the answer\r\n qs.storeQuestions();\r\n qs.storeChoices();\r\n qs.storeAnswers();\r\n //setting the question and multiple choices\r\n\r\n q.setText(qs.getQuestion());\r\n c1.setText(qs.getChoice1());\r\n c2.setText(qs.getChoice2());\r\n c3.setText(qs.getChoice3());\r\n answer = qs.getAnswer();\r\n }\r\n else{\r\n endGame();\r\n }\r\n\r\n\r\n\r\n\r\n }", "public void parseData(String responce) {\n\n\n try {\n JSONObject jsonObject = new JSONObject(responce);\n String code = jsonObject.optString(\"code\");\n if (code.equals(\"200\")) {\n\n JSONArray msgArray = jsonObject.getJSONArray(\"msg\");\n\n ArrayList<SoundsModel> templist = new ArrayList<>();\n for (int i = 0; i < msgArray.length(); i++) {\n JSONObject itemdata = msgArray.optJSONObject(i).optJSONObject(\"Sound\");\n\n SoundsModel item = new SoundsModel();\n\n item.id = itemdata.optString(\"id\");\n\n item.acc_path = itemdata.optString(\"audio\");\n if (!item.acc_path.contains(Variables.http)) {\n item.acc_path = Constants.BASE_URL + item.acc_path;\n }\n\n item.sound_name = itemdata.optString(\"name\");\n item.description = itemdata.optString(\"description\");\n item.section = itemdata.optString(\"section\");\n\n\n item.thum = itemdata.optString(\"thum\");\n if (!item.thum.contains(Variables.http)) {\n item.thum = Constants.BASE_URL + item.thum;\n }\n\n\n item.duration = itemdata.optString(\"duration\");\n item.date_created = itemdata.optString(\"created\");\n item.fav = itemdata.optString(\"favourite\");\n\n\n templist.add(item);\n }\n\n\n if (pageCount == 0) {\n\n datalist.addAll(templist);\n\n if (datalist.isEmpty()) {\n noDataLayout.setVisibility(View.VISIBLE);\n } else {\n noDataLayout.setVisibility(View.GONE);\n\n recyclerView.setAdapter(adapter);\n }\n } else {\n\n if (datalist.isEmpty())\n ispostFinsh = true;\n else {\n datalist.addAll(templist);\n adapter.notifyDataSetChanged();\n }\n\n }\n\n\n } else {\n noDataLayout.setVisibility(View.VISIBLE);\n }\n\n\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n\n }", "private void parseQuestions()\n\t{\n\t\tlog.info(\"Parsing questions\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Element> questions_list = doc.selectNodes(\"//document/questions/rows/row\");\n\t\tq_l10ns_node = doc.selectSingleNode(\"//document/question_l10ns/rows\");\n\t\tsq_node = doc.selectSingleNode(\"//document/subquestions/rows\");\n\t\tq_node = doc.selectSingleNode(\"//document/questions/rows\");\n\t\ta_node = doc.selectSingleNode(\"//document/answers/rows\");\n\n\t\tfor (Element question : questions_list) {\n\t\t\tString qid = question.element(\"qid\").getText();\n\t\t\tlog.debug(\"Working on question: \" + qid);\n\t\t\tQuestion q = new Question(qid,\n\t\t\t\t\t\t\t\t\t Integer.parseInt(question.element(\"gid\").getText()),\n\t\t\t\t\t\t\t\t\t question.element(\"type\").getText(),\n\t\t\t\t\t\t\t\t\t q_l10ns_node.selectSingleNode(\"row[qid=\" + qid + \"]/question\").getText(),\n\t\t\t\t\t\t\t\t\t question.element(\"title\").getText(),\n\t\t\t\t\t\t\t\t\t question.element(\"mandatory\").getText().equals(\"N\") ? \"No\" : \"Yes\",\n\t\t\t\t\t\t\t\t\t q_l10ns_node.selectSingleNode(\"row[qid=\" + qid + \"]/language\").getText());\n\n\t\t\t// Add a description, if there is one\n\t\t\tNode desc = q_l10ns_node.selectSingleNode(\"row[qid=\" + q.getQid() + \"]/help\");\n\t\t\tif (desc != null) {\n\t\t\t\tq.setDescription(desc.getText());\n\t\t\t}\n\n\t\t\taddCondition(q);\n\n\t\t\tswitch (q.type) {\n\t\t\t\t// Normal Text Fields\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"T\":\n\t\t\t\tcase \"U\":\n\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Date/Time\n\t\t\t\tcase \"D\":\n\t\t\t\t\tdate_time_qids.add(q.getQid());\n\t\t\t\t\tbreak;\n\t\t\t\t// Numeric Input\n\t\t\t\tcase \"N\":\n\t\t\t\t\tif (check_int_only(q)) {\n\t\t\t\t\t\tq.setType(\"I\");\n\t\t\t\t\t}\n\t\t\t\t\tadd_range(q);\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Single 5-Point Choice\n\t\t\t\tcase \"5\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"5pt.cl\", ClGenerator.getIntCl(5), \"string\", true));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Yes/No\n\t\t\t\tcase \"Y\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"YN.cl\", ClGenerator.getYNCl(), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Gender\n\t\t\t\tcase \"G\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"Gender.cl\", ClGenerator.getGenderCl(), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// List with comment\n\t\t\t\tcase \"O\":\n\t\t\t\t\taddComment(q);\n\t\t\t\t// Radio List\n\t\t\t\tcase \"L\":\n\t\t\t\t// Dropdown List\n\t\t\t\tcase \"!\":\n\t\t\t\t\tboolean oth = question.elementText(\"other\").equals(\"Y\");\n\t\t\t\t\tif(oth) {\n\t\t\t\t\t\taddOtherQuestion(q);\n\t\t\t\t\t}\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(q.getQid() + \".cl\", getAnswerCodesByID(q.getQid(), oth), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Texts\n\t\t\t\t// Input On Demand\n\t\t\t\tcase \"Q\":\n\t\t\t\t\taddSubquestions(q, \"T\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Numeric Inputs\n\t\t\t\tcase \"K\":\n\t\t\t\t\tadd_range(q);\n\t\t\t\t\tif (check_int_only(q)){\n\t\t\t\t\t\taddSubquestions(q, \"I\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\taddSubquestions(q, \"N\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Dual scale array\n\t\t\t\tcase \"1\":\n\t\t\t\t\tHashMap<String, String>[] code_lists = ClGenerator.getDualScaleCls(q.getQid(), getAnswerIdsByID(q.getQid()), a_node);\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid() + \".0\", code_lists[0], \"string\", false, \"-0\");\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid() + \".1\", code_lists[1], \"string\", false, \"-1\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Array by column\n\t\t\t\tcase \"H\":\n\t\t\t\t// Flexible Array\n\t\t\t\tcase \"F\":\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid().concat(\".cl\"), getAnswerCodesByID(q.getQid(), false), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 5pt Array\n\t\t\t\tcase \"A\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"5pt.cl\", ClGenerator.getIntCl(5), \"integer\", true, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 10pt Array\n\t\t\t\tcase \"B\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"10pt.cl\", ClGenerator.getIntCl(10), \"integer\", true, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Increase/Same/Decrease Array\n\t\t\t\tcase \"E\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"ISD.cl\", ClGenerator.getISDCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 10pt Array\n\t\t\t\tcase \"C\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"YNU.cl\", ClGenerator.getYNUCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Matrix with numerical input\n\t\t\t\tcase \":\":\n\t\t\t\t\tq.setType(\"N\");\n\t\t\t\t\taddQuestionMatrix(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Matrix with text input\n\t\t\t\tcase \";\":\n\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\taddQuestionMatrix(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Choice (Normal, Bootstrap, Image select)\n\t\t\t\tcase \"M\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"MC.cl\", ClGenerator.getMCCL(), \"string\", false, \"\");\n\t\t\t\t\tif (question.elementTextTrim(\"other\").equals(\"Y\")) {\n\t\t\t\t\t\tq.setQid(q.getQid().concat(\"other\"));\n\t\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// MC with comments\n\t\t\t\tcase \"P\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"MC.cl\", ClGenerator.getMCCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlog.error(\"Question type not supported: \" + q.type);\n\t\t\t}\n\t\t}\n\t}", "void setAllData()\n {\n this.filteredLessons = allLessons;\n notifyDataSetChanged();\n }", "private void updateList() {\r\n\t\ttry {\r\n\t\t\t// Reset the list\r\n\t\t\tcalls.clear();\r\n\r\n\t\t\tif (apiEnabled) {\r\n\t\t \t// Get list of pending sessions\r\n\t\t \tSet<IPCall> currentCalls = callApi.getIPCalls();\r\n\t\t \tcalls = new ArrayList<IPCall>(currentCalls);\r\n\t\t\t\tif (calls.size() > 0){\r\n\t\t\t String[] items = new String[calls.size()]; \r\n\t\t\t for (int i = 0; i < items.length; i++) {\r\n\t\t\t\t\t\titems[i] = getString(R.string.label_session, calls.get(i).getCallId());\r\n\t\t\t }\r\n\t\t\t\t\tsetListAdapter(new ArrayAdapter<String>(IPCallSessionsList.this, android.R.layout.simple_list_item_1, items));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetListAdapter(null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tUtils.showMessageAndExit(IPCallSessionsList.this, getString(R.string.label_api_failed));\r\n\t\t}\r\n }", "public List<Question> getData() {\n for (int i = 0; i < data.size(); i++) {\n List<Answer> answers = data.get(i).getAnswers();\n Collections.shuffle(answers);\n data.get(i).setAnswers(answers);\n }\n return data;\n }", "private void updateDesignationInformation(){\n designationName=tvDesignationName.getText().toString();\n specialization=tvSpecialization.getText().toString();\n Log.d(TAG,\"PRINTED DESIGNATION INFO >>> \" + t_desig_id + \" \" + doctor_id);\n\n //show loader\n PrescriptionUtils.showProgressDialog(context);\n Call<MessegeCollection> getInfo = prescriptionApi.updateDocDesignation(t_desig_id,doctor_id,designationName,specialization);\n getInfo.enqueue(new Callback<MessegeCollection>() {\n @Override\n public void onResponse(Call<MessegeCollection> call, Response<MessegeCollection> response) {\n try {\n List<Message> info = response.body().data;\n Log.d(TAG, \"DESIGNATION INFO >>: \" + info);\n if (info.get(0).getMsgString().equals(\"1\")){\n Toast.makeText(context, \"information update\", Toast.LENGTH_SHORT).show();\n }else {\n Toast.makeText(context, \"update not complete\", Toast.LENGTH_SHORT).show();\n }\n //Hide Dialog\n PrescriptionUtils.hideProgressDialog();\n }catch (Exception e){\n Log.d(TAG,\"list is null\");\n e.printStackTrace();\n //Hide Dialog\n PrescriptionUtils.hideProgressDialog();\n AlartFactory.showAPInotResponseWarn(context);\n }\n }\n\n @Override\n public void onFailure(Call<MessegeCollection> call, Throwable t) {\n //Toast.makeText(context, t.getMessage(), Toast.LENGTH_SHORT).show();\n Log.d(TAG,t.getMessage());\n //Hide Dialog\n PrescriptionUtils.hideProgressDialog();\n AlartFactory.showWebServieErrorDialog(context, \"Sorry !!!!\", \"Web Service is not running please contract with development team\", false);\n }\n });\n }", "@Override\n\tpublic void updateDataListVO(List<StudentDTO> dataList) {\n\t\t\n\t}", "public void registerPoll(){\n\t\tSystem.out.println(\"what company is the survey?\");\n\t\tSystem.out.println(theHolding.serviceCompanys());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Please rate from 1 to 5 each of the following items\");\n\t\t System.out.println(\"Service rendered:\");\n\t\t int serviceRendered = reader.nextInt();\n\t\t reader.nextLine();\n\t\t System.out.println(\"Response time:\");\n\t\t int responseTime = reader.nextInt();\n\t\t reader.nextLine();\n\t\t System.out.println(\"Cost-benefit:\");\n\t\t int costBenefit = reader.nextInt();\n\t\t reader.nextLine();\n\t\t Poll toAdd = new Poll(serviceRendered, responseTime, costBenefit);\n\t\t System.out.println(theHolding.addPoll(selected, toAdd));\n\t\t}\n\t}", "private void loadAppointmentList(){\n try {\n MyDBHandler dbHandler = new MyDBHandler(this);\n appointments.clear();\n ArrayList<String> myApps = new ArrayList<String>();\n\n appointments.addAll(dbHandler.getAllAppointmentFromServiceProvider(companyID));\n\n for(Appointment appointment: appointments)\n myApps.add(dbHandler.getServiceTypeName(appointment.getServiceType_id()) + \" / \" +\n getDayName(appointment.getDay_id()) + \" at \" +\n appointment.getStart_time() + \" to \" +\n appointment.getEnd_time()\n );\n\n if(myApps.size()==0) {\n myApps.add(EMPTY_TEXT_LV2);\n }\n ArrayAdapter<String> data = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myApps);\n lv_Appointment.setAdapter(data);\n\n }catch(Exception ex){\n Toast.makeText(this,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "public void setQuestions(){\r\n question.setTestname(test.getText().toString());\r\n question.setQuestion(ques.getText().toString());\r\n question.setOption1(opt1.getText().toString());\r\n question.setOption2(opt2.getText().toString());\r\n question.setOption3(opt3.getText().toString());\r\n int num = Integer.parseInt(correct.getText().toString());\r\n question.setAnswerNumber(num);\r\n long check = db.addToDb(question);\r\n if(check == -1){\r\n Toast.makeText(getBaseContext(), \"Question already exists\", Toast.LENGTH_LONG).show();\r\n }else{\r\n Toast.makeText(getBaseContext(), \"Question added\", Toast.LENGTH_LONG).show();\r\n }\r\n }", "private void refresh(TeachersBean teacher) {\n\t\tTeacherService teacherservice = new TeacherService(teacher);\n\t\tsubjectname=teacher.getSubject().getSubjectname();\n\t\tSet<AssignmentBean> temp = teacherservice.readTeacher().getSubject().getAssignments();\n\t\tfor (AssignmentBean assignmentBean : temp) {\n\t\t\tassignmentslist.add(assignmentBean);\n\t\t\t\n\t\t}\n\t\t\n\t\tStudentService studentservice = new StudentService(null);\n\t\tstudentslist=studentservice.getAllStudentofSubject(teacherservice.readTeacher().getSubject());\n\t}", "public void survey()\n {\n }", "public void setSurveyid(Integer surveyid) {\n this.surveyid = surveyid;\n }", "public List<DataQuestion> getAllAnswer(){\n return items;\n }", "private void setServerList() {\n ArrayList<ServerObjInfo> _serverList =\n ServerConfigurationUtils.getServerListFromFile(mContext, ExoConstants.EXO_SERVER_SETTING_FILE);\n ServerSettingHelper.getInstance().setServerInfoList(_serverList);\n\n int selectedServerIdx = Integer.parseInt(mSharedPreference.getString(ExoConstants.EXO_PRF_DOMAIN_INDEX, \"-1\"));\n mSetting.setDomainIndex(String.valueOf(selectedServerIdx));\n mSetting.setCurrentServer((selectedServerIdx == -1) ? null : _serverList.get(selectedServerIdx));\n }" ]
[ "0.6094409", "0.58545786", "0.5848602", "0.5767605", "0.5720259", "0.561736", "0.5581515", "0.55741084", "0.5542971", "0.5485023", "0.5462409", "0.5461492", "0.54604983", "0.5446543", "0.54403853", "0.54229194", "0.53906", "0.5375603", "0.5375018", "0.5360133", "0.53585696", "0.5354612", "0.53367764", "0.53159994", "0.5299547", "0.52864975", "0.5263162", "0.52599823", "0.52459943", "0.5244661", "0.52438253", "0.5241949", "0.5240508", "0.52335924", "0.52057445", "0.52025527", "0.52006024", "0.5198599", "0.5178732", "0.5172664", "0.51666266", "0.5164515", "0.5161972", "0.5161482", "0.51584095", "0.51456356", "0.5143114", "0.5143076", "0.5142984", "0.51371753", "0.51357645", "0.5133449", "0.51318306", "0.51221305", "0.5114803", "0.5100242", "0.5091879", "0.5085762", "0.5076277", "0.5070002", "0.5065583", "0.5061988", "0.50614154", "0.5048595", "0.5045613", "0.50238353", "0.50170743", "0.50147444", "0.5012194", "0.5005073", "0.5004437", "0.50038755", "0.50021183", "0.499973", "0.4996359", "0.49878526", "0.4985016", "0.49811766", "0.49705365", "0.49698743", "0.49670944", "0.496279", "0.49622983", "0.4954944", "0.49532634", "0.49497285", "0.49494117", "0.49463063", "0.49397177", "0.49393588", "0.49384224", "0.49338803", "0.49289823", "0.49287117", "0.4923824", "0.49205962", "0.4917515", "0.49119335", "0.49117038", "0.49098894" ]
0.64068633
0
Fill the parameters(HashTable). For instance when command ends like below: ... with delim(';'), quote('\''), replacedelim('D'), replacequote('Q') parameters will contains 'delim' as key and ';' as value, 'quote' as key and ';' as value, 'replacedelim' as key and 'D' as value, and 'replacequote' as key and 'Q' as value.
public boolean parse() { withClause = withClause.trim(); if (!withClause.toLowerCase().substring(0, 5).equals("with ")) { return false; } int pos = 5; int level = 0; String currentParameter = ""; String currentTerm = ""; List<String> currentArgumentList = new ArrayList<>(); boolean inQuote = false; parameters = new Hashtable<>(); while (pos < withClause.length()) { // if quoted content, write quotes (since they are part of the argument as well) // but remember and do ignore other steering characters until quote is closed if (withClause.charAt(pos) == '\"') { // at this point, earlier we had: // currentTerm += withClause.charAt(pos); // this would include the quotes in the parameter; so if the parameter is a String, // the client of WithClauseParser would have to "unquote" it to get the content. // Maybe in future we solve this differently, e.g. put without quotes, but have some // type property (e.g. not having Strings in the param list, but some Data Object class // which is able to differentiate on the types of the content (int, String, etc.) // then this would be the place to set the type pos++; inQuote = !inQuote; continue; } if (!inQuote) { if (withClause.charAt(pos) == '(') { if (level < 1) { currentParameter = currentTerm.trim(); currentArgumentList = new ArrayList<>(); currentTerm = ""; level++; } else // no brackets within brackets allowed { return false; } } else if (withClause.charAt(pos) == ')') { if (level == 1) { level--; currentArgumentList.add(currentTerm); currentTerm = ""; parameters.put(currentParameter, currentArgumentList); parametersLowerCase.put(currentParameter.toLowerCase(), currentParameter); } else // don't the hell know what's going on here... { return false; } } else if (withClause.charAt(pos) == ',') { if (level == 0) { currentTerm = ""; } else { currentArgumentList.add(currentTerm.trim()); currentTerm = ""; } } else { currentTerm += withClause.charAt(pos); } } else { currentTerm += withClause.charAt(pos); } pos++; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void init(String command){\n\t\tStringTokenizer st = new StringTokenizer(command);\n\t\t\n\t\tthis.numberOfTokens = st.countTokens() ;\n\t\tthis.tokens = new String[this.numberOfTokens];\n\t\t\n\t\tString currentToken;\n\t\tint tokenNumber = 0;\n\t\t\n\t\t/*inizialize the entire array or cannot concatenate strings\n\t\tin the while belowe: looks like null!Command nullArgument1 ...*/\n\t\t//for(int i = 0; i < this.numberOfTokens; i++) this.tokens[i] = \"\";\n\t\t\n\t\twhile (st.hasMoreTokens()) {\n\t\t\tcurrentToken = st.nextToken();\n\t\t\t//System.out.println(\"token\"+tokenNumber+\": \"+currentToken);\n\t\t\t\n\t\t\tthis.tokens[tokenNumber] = currentToken;\n\t\t\tif(tokenNumber>1)\n\t\t\t\tmiscParam += \" \"+currentToken;\n\t\t\tif(tokenNumber>0 && !currentToken.startsWith(\"$\")) \n\t\t\t\tallParam += \" \"+currentToken;\n\t\t\t\n\t\t\ttokenNumber++;\n\t\t}\n\t\t/*this is just for remove the first <space> from the second param of the command*/\n\t\t//if(this.hasAllParam()) this.tokens[2] = this.tokens[2].substring(1);\n\t}", "public CommandDictionary() {\n // Add Commands\n commandDict.add(new Pair<>(\"add stock\", \"<StockType> <StockCode> <Quantity> <Description> \"\n + \"[Optional: -m <Minimum quantity>]\"));\n commandDict.add(new Pair<>(\"add stocktype\", \"<StockType>\"));\n commandDict.add(new Pair<>(\"add person\", \"<MatricNo> <Name>\"));\n commandDict.add(new Pair<>(\"add template\", \"<TemplateName> {<StockCode>, <Quantity>}\"));\n\n // Delete Commands\n commandDict.add(new Pair<>(\"delete stock\", \"<StockCode>\"));\n commandDict.add(new Pair<>(\"delete stocktype\", \"<StockType>\"));\n commandDict.add(new Pair<>(\"delete person\", \"<MatricNo>\"));\n commandDict.add(new Pair<>(\"delete template\", \"<TemplateName>\"));\n\n // Edit Commands\n commandDict.add(new Pair<>(\"edit stock\", \"<StockCode> <Property> <NewValue>\"));\n commandDict.add(new Pair<>(\"edit stocktype\", \"<StockType> <NewStockType>\"));\n commandDict.add(new Pair<>(\"edit person\", \"<MatricNo> <Property> <NewValue>\"));\n\n // List Commands\n commandDict.add(new Pair<>(\"list stock\", null));\n commandDict.add(new Pair<>(\"list stocktype\", \"all\"));\n commandDict.add(new Pair<>(\"list stocktype\", \"<StockType>\"));\n commandDict.add(new Pair<>(\"list loan\", null));\n commandDict.add(new Pair<>(\"list template\", null));\n commandDict.add(new Pair<>(\"list template\", \"<TemplateName>\"));\n commandDict.add(new Pair<>(\"list lost\", null));\n commandDict.add(new Pair<>(\"list person\", null));\n commandDict.add(new Pair<>(\"list person\", \"<MatricNo>\"));\n\n // List Minimum Commands\n commandDict.add(new Pair<>(\"list minimum\", null));\n commandDict.add(new Pair<>(\"list shopping\", null));\n\n // Loan Commands\n commandDict.add(new Pair<>(\"add loan\", \"<MatricNo> <StockCode> <Quantity>\"));\n commandDict.add(new Pair<>(\"loan return\", \"<MatricNo> <StockCode> <Quantity>\"));\n commandDict.add(new Pair<>(\"loan returnall\", \"<MatricNo>\"));\n\n // Template Commands\n commandDict.add(new Pair<>(\"add template\", \"<TemplateName> {<StockCode> <Quantity>}\"));\n commandDict.add(new Pair<>(\"delete template\", \"<TemplateName>\"));\n commandDict.add(new Pair<>(\"add loan\", \"<Template Name>\"));\n\n // Find Commands\n commandDict.add(new Pair<>(\"find description\", \"<Query>\"));\n\n // Other Commands\n commandDict.add(new Pair<>(\"undo\", null));\n commandDict.add(new Pair<>(\"redo\", null));\n commandDict.add(new Pair<>(\"bye\", null));\n }", "private void populateArgs(JSONObject headers) throws JSONException, UnsupportedEncodingException {\n if (headers != null) {\n // add headers. Handles headers with multiple values.\n Iterator<String> headerKeys = headers.keys();\n while (headerKeys.hasNext()) {\n String headerKey = headerKeys.next();\n Object headerValue = JSONObject.NULL.equals(headers.get(headerKey)) ? null : headers.get(headerKey);\n addOrUpdateArg(headerKey, headerValue);\n }\n }\n\n // decode parameters in the URI. Handles parameters without values and multiple values for the same parameter.\n if (uri != null && uri.getQuery() != null) {\n for (String parameterValue : uri.getQuery().split(\"&\")) {\n int idx = parameterValue.indexOf(\"=\");\n String key = idx > 0 ? parameterValue.substring(0, idx) : parameterValue;\n String value = idx > 0 ? parameterValue.substring(idx + 1) : null;\n addOrUpdateArg(key, value);\n }\n }\n\n // convert all StringBuilders to String\n for (Map.Entry<String, Object> e : args.entrySet()) {\n Object value = e.getValue();\n if (value != null && value instanceof StringBuilder) {\n args.put(e.getKey(), (e.getValue()).toString());\n }\n }\n }", "public static void main(String[] args) {\n\t\tHashtable<String,String> requestParameterValues = new Hashtable<String,String>();\r\n\t\tHashtable<String,String> changeRequestParameterValues = new Hashtable<String,String>();\r\n\t\tEnumeration<String> parameterNames = inRequest.getParameterNames();\r\n\t\tparameterNames = inRequest.getParameterNames();\r\n\t\t\r\n\t\twhile(parameterNames.hasMoreElements()){\r\n\t\tString parameterName = parameterNames.nextElement();\r\n\t\t\tif(parameterName != null && parameterName.startsWith(\"TrailerLoad\"))\r\n\t\t\t{\r\n\t\t\t\r\n\t\t\t\tString pullID = parameterName.substring(11, parameterName.length());\r\n\t\t\t\tString[] parameterValues = inRequest.getParameterValues(parameterName);\r\n\t\t\t\tString[] tempParameterValues = new String[parameterValues.length];\r\n\t\t\t\t\tfor (int i = 0; i < parameterValues.length; i++) {\r\n\t\t\t\t\t\ttempParameterValues[i] =parameterValues[i];\r\n\t\t\t\t\t\tSystem.out.println(inRequest.getParameter(\"H\"+pullID) + \" ***\");\r\n\t\t\t\t\t\t\tString pullBasic = inRequest.getParameter(\"HTrailerLoad\"+pullID);\r\n\t\t\t\t\t\t\t//System.out.println(\" parameterName :: \" + parameterName + \" pullBasic :: \" + pullBasic );\r\n\t\t\t\t\t\t\tif ( pullBasic != null && !tempParameterValues[i].equalsIgnoreCase(pullBasic == null ? \"\" : pullBasic.toString()))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tchangeRequestParameterValues.put(parameterName, tempParameterValues[i]);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//requestParameterValues.put(parameterName, tempParameterValues[i]);\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}else if(parameterName != null && !parameterName.startsWith(\"H\")&& !parameterName.startsWith(\"TrailerLoad\"))\r\n\t\t\t{\t\r\n\t\t\t\t\r\n\t\t\t\tString[] parameterValues = inRequest.getParameterValues(parameterName);\r\n\t\t\t\tString[] tempParameterValues = new String[parameterValues.length];\r\n\t\t\t\t\tfor (int i = 0; i < parameterValues.length; i++) {\r\n\t\t\t\t\t\ttempParameterValues[i] =parameterValues[i];\r\n\t\t\t\t\t\t\tString pullBasic = inRequest.getParameter(\"H\"+parameterName);\r\n\t\t\t\t\t\t\tif ( pullBasic != null && !tempParameterValues[i].equalsIgnoreCase(pullBasic == null ? \"\" : pullBasic.toString()))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tchangeRequestParameterValues.put(\"\"+parameterName, tempParameterValues[i]);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//\trequestParameterValues.put(parameterName, tempParameterValues[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn changeRequestParameterValues;\r\n\t}", "public void initCmds() {\n cmd.put(\"hist\",(i) -> histRPN(i));\n cmd.put(\"pile\",(i) -> pile(i));\n cmd.put(\"!\",(c) -> store(c));\n cmd.put(\"?\",(c) -> getVal(c));\n\n }", "void setParameters(Map<String, String[]> parameters);", "protected abstract void appendAlgorithmParameters(CommandLine commandLine);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "public static void read_paramenters() {\n\t\ttry {\n\t\t // TODO CA: check that this work on Windows!\n String home = System.getProperty(\"user.home\");\n File parametersFile = new File(home + \"/\" + parametersFilename);\n\t\t\tScanner sc = new Scanner(parametersFile);\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tinitialize_parameters(sc.nextLine());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Error: File \" + parametersFilename + \" not found!\");\n\t\t\tSystem.out.println(\"Make sure that file \" + parametersFilename + \" is in the correct format!\");\n\t\t\tSystem.out.println(\"The format of the file is:\");\n\t\t\tSystem.out.println(\"host ap-dev.cs.ucy.ac.cy\");\n\t\t\tSystem.out.println(\"port 43\");\n\t\t\tSystem.out.println(\"cache res/\");\n\t\t\tSystem.out.println(\"access_token <api_key> \" +\n \"[The API key has be generated based on your google account through the anyplace architect]\");\n\t\t\t// TODO CA: when this error is shown, prompt, with Y or N to initialize that file with defaults\n // if yes, then read parameters again\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public static HashMap associateParametersWithValues(String strParam, String validParams)\n\t\t{\n\t\t\tString[] arrParams = strParam.split(\";\");\n\t\t\tString[] arrValidParam = validParams.split(\",\");\n\t\t\tint iOptionalParam = countOptionalParams(arrValidParam);\n\t\t\tint iOptionalInputParam = countOptionalParams(arrParams);\n\t\t\tint iMandatoryParam = arrValidParam.length - iOptionalParam;\n\t\t\tHashMap<String,String> hParamMap = new HashMap();\t\t\t\n\t\t\tif(arrParams.length > 1)\n\t\t\t{\n\t\t\t\tif(arrParams.length - iOptionalInputParam == iMandatoryParam)\t\n\t\t\t\t{\n\t\t\t\t\tfor(String strTemp:arrParams)\n\t\t\t\t\t{\n\t\t\t\t\t\tString[] arrParam = strTemp.split(\":\",2);\n\t\t\t\t\t\tif(isKeyValid(arrParam[0],arrValidParam))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarrParam[1] = returnDataInIterationSheetIfExists(arrParam[1]);\n\t\t\t\t\t\t\thParamMap.put(arrParam[0], arrParam[1]);\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"Great Success 1!\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Failure1\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(arrParams.length == 1)\n\t\t\t{\n\t\t\t\tif(arrParams.length == iMandatoryParam)\n\t\t\t\t{\n\t\t\t\t\tString strTemp = arrParams[0];\n\t\t\t\t\tString[] arrParam = strTemp.split(\":\");\n\t\t\t\t\tif(isKeyValid(arrParam[0],arrValidParam))\n\t\t\t\t\t{\n\t\t\t\t\t\tarrParam[1] = returnDataInIterationSheetIfExists(arrParam[1]);\n\t\t\t\t\t\thParamMap.put(arrParam[0], arrParam[1]);\n\t\t\t\t\t//System.out.println(\"Great Success!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Failure\");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn hParamMap;\n\t\t}", "private void init(String command) {\n if (command == null) throw new IllegalArgumentException(\"Empty command\");\n this.raw = command;\n\n String[] data = this.raw.split(\" \");\n this.map = new HashMap<>();\n for ( int i = 0; i < data.length; i++) {\n map.put( Index.values()[i], data[i] );\n }\n }", "private String buildParams(){\n HashMap<String,String> items = new HashMap<>();\n if(paramValid(param1name,param1value))\n items.put(param1name,param1value);\n if(paramValid(param2name,param2value))\n items.put(param2name,param2value);\n if(paramValid(param3name,param3value))\n items.put(param3name,param3value);\n return JsonOutput.toJson(items);\n }", "private static ArgumentsPair parseArgs(String args[]) {\n String allArgs[] = new String[] {\n PARAMETER_NEW_FORMAT,\n PARAMETER_TRANSFORM,\n PARAMETER_BASE,\n PARAMETER_BITS,\n PARAMETER_BYTES,\n PARAMETER_DIFFERENCE,\n PARAMETER_STRENGTH,\n PARAMETER_TIME\n };\n Set<String> allArgsSet = new HashSet<>(Arrays.asList(allArgs));\n ArgumentsPair argumentsPair = new ArgumentsPair();\n\n for (int i = 0; i < args.length; i++) {\n String param = args[i].substring(1);\n if (allArgsSet.contains(param)) {\n argumentsPair.paramsAdd(param);\n } else if (param.equals(PARAMETER_ALL)) {\n argumentsPair.paramsAddAll(allArgsSet);\n argumentsPair.getParams().remove(PARAMETER_NEW_FORMAT);\n argumentsPair.getParams().remove(PARAMETER_TRANSFORM);\n } else if (param.equals(PARAMETER_GENERATE)) {\n if (args.length <= i + 1) {\n System.err.println(\"Wrong -\" + PARAMETER_GENERATE + \" parameter. Use -\" + PARAMETER_GENERATE + \" keyBitLength. (keyBitLength = 512|1024)\");\n }\n else {\n int keyBitLength = Integer.valueOf(args[++i]);\n switch (keyBitLength) {\n case 1024:\n GENERATE_KEYS = true;\n GENERATED_PRIME_BIT_LENGTH = 512;\n break;\n case 512:\n GENERATE_KEYS = true;\n GENERATED_PRIME_BIT_LENGTH = 256;\n break;\n default:\n System.err.println(\"Wrong -\" + PARAMETER_GENERATE + \" parameter. Use -\" + PARAMETER_GENERATE + \" keyBitLength. (keyBitLength = 512|1024)\");\n }\n }\n } else {\n argumentsPair.filesAdd(args[i]);\n }\n }\n return argumentsPair;\n }", "Statement setParameters(Map<String, Object> params);", "private void addParametersToWriter() {\n Set<Map.Entry<String, String>> set = params.entrySet();\n for (Map.Entry<String, String> me : set) {\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\"Content-Disposition: form-data; name=\\\"\" + me.getKey() + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\"Content-Type: text/plain; charset=\" + super.charset).append(\n LINE_FEED);\n writer.append(LINE_FEED);\n writer.append(me.getValue()).append(LINE_FEED);\n writer.flush();\n }\n }", "public static void initialize_parameters(String line) {\n\t\tString word[] = line.split(\" \");\n\t\tif (word[0].equals(\"access_token\")) {\n\t\t\taccess_token = new String(word[1]);\n\t\t} else if (word[0].equals(\"host\")) {\n\t\t\thost = new String(word[1]);\n\t\t} else if (word[0].equals(\"port\")) {\n\t\t\tport = new String(word[1]);\n\t\t} else if (word[0].equals(\"cache\")) {\n\t\t\tcache = new String(word[1]);\n\t\t}\n\t}", "private void setupKeywordHashTable() {\n \tthis.keywordHashTable = new Hashtable<>();\n\n this.keywordHashTable.put(\"begin\", \"BeginKwTK\");\n this.keywordHashTable.put(\"end\", \"EndKwTK\");\n this.keywordHashTable.put(\"loop\", \"LoopKwTK\");\n this.keywordHashTable.put(\"void\", \"VoidKwTK\");\n this.keywordHashTable.put(\"var\", \"VarKwTK\");\n this.keywordHashTable.put(\"return\", \"ReturnKwTK\");\n this.keywordHashTable.put(\"in\", \"InKwTK\");\n this.keywordHashTable.put(\"out\", \"OutKwTK\");\n this.keywordHashTable.put(\"program\", \"ProgramKwTK\");\n this.keywordHashTable.put(\"iffy\", \"IffyKwTK\");\n this.keywordHashTable.put(\"then\", \"ThenKwTK\");\n this.keywordHashTable.put(\"let\", \"LetKwTK\");\n this.keywordHashTable.put(\"data\", \"DataKwTK\");\n }", "Map<String, String[]> getParameterMap();", "private void loadParameters() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new BufferedInputStream(Files.newInputStream(path))));\n\n\t\tdo {\n\t\t\tString line = reader.readLine();\n\t\t\tif (line == null || line.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (line.startsWith(\"--\") || line.startsWith(\" \")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString[] tokens = line.trim().split(\"\\\\s+\");\n\t\t\tparameters.put(Parameter.valueOf(tokens[0]), tokens[1]);\n\t\t} while (true);\n\n\t}", "public void setParameters(Map<String, String> param) {\n\n // check the occurrence of required parameters\n if(!(param.containsKey(\"Indri:mu\") && param.containsKey(\"Indri:lambda\"))){\n throw new IllegalArgumentException\n (\"Required parameters for IndriExpansion model were missing from the parameter file.\");\n }\n\n this.mu = Double.parseDouble(param.get(\"Indri:mu\"));\n if(this.mu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:mu\") + \", mu is a real number >= 0\");\n\n this.lambda = Double.parseDouble(param.get(\"Indri:lambda\"));\n if(this.lambda < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:lambda\") + \", lambda is a real number between 0.0 and 1.0\");\n\n if((param.containsKey(\"fb\") && param.get(\"fb\").equals(\"true\"))) {\n this.fb = \"true\";\n\n this.fbDocs = Integer.parseInt(param.get(\"fbDocs\"));\n if (this.fbDocs <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbDocs\") + \", fbDocs is an integer > 0\");\n\n this.fbTerms = Integer.parseInt(param.get(\"fbTerms\"));\n if (this.fbTerms <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbTerms\") + \", fbTerms is an integer > 0\");\n\n this.fbMu = Integer.parseInt(param.get(\"fbMu\"));\n if (this.fbMu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbMu\") + \", fbMu is an integer >= 0\");\n\n this.fbOrigWeight = Double.parseDouble(param.get(\"fbOrigWeight\"));\n if (this.fbOrigWeight < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbOrigWeight\") + \", fbOrigWeight is a real number between 0.0 and 1.0\");\n\n if (param.containsKey(\"fbInitialRankingFile\") && param.get(\"fbInitialRankingFile\") != \"\") {\n this.fbInitialRankingFile = param.get(\"fbInitialRankingFile\");\n try{\n this.initialRanking = readRanking();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n if (param.containsKey(\"fbExpansionQueryFile\") && param.get(\"fbExpansionQueryFile\") != \"\")\n this.fbExpansionQueryFile = param.get(\"fbExpansionQueryFile\");\n }\n }", "public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }", "public void setInitCommand (String command){\r\n //process the command \r\n initCommand = command.trim();\r\n initialize(); \r\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 }", "@Override\n\tpublic void prepare(Map<String, String> mapping) {\n\t\t\n\t\tfor (Entry<String, String> en : mapping.entrySet()) {\n\t\t\tString key = en.getKey();\n\t\t\tString value = System.getenv(en.getValue());\n\t\t\tif (value != null) {\n\t\t\t\tLOG.debug(\"Env {}: {}\", en.getValue(), redactValue(key, value));\n\t\t\t\tputParameter(key, value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Override with system properties\n\t\t\n\t\tfor (Entry<String, String> en : mapping.entrySet()) {\n\t\t\tString key = en.getKey();\n\t\t\tString value = System.getProperty(key);\n\t\t\tif (value != null) {\n\t\t\t\tLOG.debug(\"Sys {}: {}\", key, redactValue(key, value));\n\t\t\t\tputParameter(key, value);\n\t\t\t}\n\t\t}\n }", "private void parseCommandPut(DataInputStream in) throws IOException {\n int ksize = in.readInt();\n int vsize = in.readInt();\n byte[] key = new byte[ksize];\n in.read(key);\n byte[] value = new byte[vsize];\n in.read(value);\n // int err = \n in.readUnsignedByte(); // unused\n elements = new LinkedHashMap<String, String>(1);\n elements.put(new String(key), new String(value));\n if (LOG.isDebugEnabled()) LOG.debug(\"parseCommandPut: elements -> \" + elements);\n }", "Map<String, String> getParameters();", "public void populateParameterValues() {\n // Query for process step parameter values\n Map<String, Object> paramValBindVars = new HashMap<String, Object>();\n paramValBindVars.put(\"processStepId\", processStepId);\n List<Row> paramValues = DataHelper.queryVO(ProcessController.ENGINE_AM_CONFIG, ProcessController.ENGINE_AM_NAME, PROC_STEP_PARAM_VAL_EXEC_VO_INSTANCE_NAME, PROC_STEP_PARAM_VALUE_VC, paramValBindVars);\n\n // Populate each parameter value with a mapping or a constant value\n for (Row paramValue : paramValues) {\n if ( paramValue.getAttribute(\"ProcessStepParameterCode\")!= null ) {\n String paramCode = (String) paramValue.getAttribute(\"ProcessStepParameterCode\");\n //String paramTypeCode = (String) paramValue.getAttribute(\"ProcessStepParameterTypeCode\");\n String mapping = (String) paramValue.getAttribute(\"ProcessParameterCode\");\n //String procParamTypeCode = (String) paramValue.getAttribute(\"ProcessParameterTypeCode\");\n\n // if parameter is mapped to a constant, then assume its value exists in one of the four data type\n // fields, even though the parameter's data type is unknown\n Object paramVal = null;\n if ( mapping==null ) {\n paramVal = (String) paramValue.getAttribute(\"ParameterValueString\");\n if ( paramVal==null ) {\n paramVal = (BigDecimal) paramValue.getAttribute(\"ParameterValueNumber\");\n if ( paramVal==null ) {\n paramVal = (Date) paramValue.getAttribute(\"ParameterValueDate\");\n if ( paramVal==null ) {\n paramVal = (Timestamp) paramValue.getAttribute(\"ParameterValueTimestamp\");\n if ( paramVal==null ) {\n String val = (String) (paramValue.getAttribute(\"ParameterValueString\"));\n paramVal = new Boolean(val.toLowerCase());\n }\n }\n }\n }\n }\n\n parameterValues.put(paramCode, new ParameterValue(mapping, paramVal));\n }\n }\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"huruf\", huruf);\n params.put(\"derajat_lengan_x\", drajatX);\n params.put(\"derajat lengan_y\", drajatY);\n params.put(\"gambar\", gambar);\n\n return params;\n }", "private void setInputParams(InputCommand input) throws InvalidCommand {\n if (input.getParams().length < 2) throw new InvalidCommand(\"Please enter car registration no. followed by color\");\n try {\n carRegNo = input.getParams()[0].toUpperCase();\n carColor = input.getParams()[1].toUpperCase();\n } catch (NumberFormatException e) {\n throw new InvalidCommand(\"Something went wrong.\\nMake sure the command is of the format: 'park KA-01-HH-9999 White'\");\n }\n }", "public void setParameterNameValuePairs(entity.LoadParameter[] value);", "public URIParameters() {\r\n this._parameters = new HashMap<String, String[]>();\r\n }", "static String parse(String query, Map paramMap) {\n int length = query.length();\n StringBuilder parsedQuery = new StringBuilder(length);\n boolean inSingleQuote = false;\n boolean inDoubleQuote = false;\n int index = 1;\n\n for (int i = 0; i < length; i++) {\n char c = query.charAt(i);\n if (inSingleQuote) {\n if (c == '\\'') {\n inSingleQuote = false;\n }\n } else if (inDoubleQuote) {\n if (c == '\"') {\n inDoubleQuote = false;\n }\n } else {\n if (c == '\\'') {\n inSingleQuote = true;\n } else if (c == '\"') {\n inDoubleQuote = true;\n } else if (c == ':' && i + 1 < length && Character.isJavaIdentifierStart(query.charAt(i + 1))) {\n int j = i + 2;\n while (j < length && Character.isJavaIdentifierPart(query.charAt(j))) {\n j++;\n }\n String name = query.substring(i + 1, j);\n c = '?'; // replace the parameter with a question mark\n i += name.length(); // skip past the end if the parameter\n\n List indexList = (List) paramMap.get(name);\n if (indexList == null) {\n indexList = new LinkedList();\n paramMap.put(name, indexList);\n }\n indexList.add(index);\n\n index++;\n }\n }\n parsedQuery.append(c);\n }\n\n // replace the lists of Integer objects with arrays of ints\n for (Object o : paramMap.entrySet()) {\n Map.Entry entry = (Map.Entry) o;\n List list = (List) entry.getValue();\n int[] indexes = new int[list.size()];\n int i = 0;\n for (Object o1 : list) {\n Integer x = (Integer) o1;\n indexes[i++] = x;\n }\n entry.setValue(indexes);\n }\n\n return parsedQuery.toString();\n }", "private Map<String, Object> parseParameters(String parameters) {\n Map<String, Object> parameterMap = new HashMap<>();\n\n String[] details = parameters.split(\",\");\n for (String detail : details) {\n String key = \"\";\n String value = \"\";\n try {\n String[] d = detail.split(\"=\");\n key = d[0].trim();\n value = d[1].trim();\n }\n catch (Exception ignored) {\n }\n\n if (StringUtils.isAnyBlank(key, value)) {\n continue;\n }\n\n switch (key.toLowerCase(Locale.ROOT)) {\n case \"escape\":\n parameterMap.put(key, Boolean.parseBoolean(value));\n break;\n\n default:\n break;\n }\n }\n\n return parameterMap;\n }", "public Parameters(Map<String, String[]> map) {\n\t\trequireNonNull(map, \"Parameters map not speicifed\");\n\t\tthis.store = new ParametersMap(map);\n\t}", "private void extractParameters() throws IndexOutOfBoundsException {\n switch (commandType) {\n case DONE:\n parameters = userInput.substring(INDEX_AFTER_DONE);\n break;\n case TODO:\n parameters = userInput.substring(INDEX_AFTER_TODO);\n break;\n case DEADLINE:\n parameters = userInput.substring(INDEX_AFTER_DEADLINE);\n break;\n case EVENT:\n parameters = userInput.substring(INDEX_AFTER_EVENT);\n break;\n case DELETE:\n parameters = userInput.substring(INDEX_AFTER_DELETE);\n break;\n case FIND:\n parameters = userInput.substring(INDEX_AFTER_FIND);\n break;\n case LIST:\n if (userInput.length() == LIST_LENGTH) {\n parameters = null;\n } else {\n parameters = userInput.substring(INDEX_AFTER_LIST);\n }\n break;\n case HELP:\n // Help does not take any parameters;\n case BYE:\n // Bye does not take any parameters\n default:\n parameters = null;\n }\n }", "protected void initialize() { \n param1 = SmartDashboard.getNumber(\"param1\");\n param2 = SmartDashboard.getNumber(\"param2\");\n param3 = SmartDashboard.getNumber(\"param3\");\n param4 = SmartDashboard.getNumber(\"param4\");\n command = new C_DriveBasedOnEncoderWithTwist(param1, param2, param3);\n }", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (name.equals(\"AD_Client_ID\"))\n\t\t\t\tm_AD_Client_ID = 1000000;\n\t\t\telse if (name.equals(\"AD_Org_ID\"))\n\t\t\t\tm_AD_Org_ID = 1000000;\n\t\t\telse if (name.equals(\"DeleteOldImported\"))\n\t\t\t;//\tm_deleteOldImported = \"Y\".equals(para[i].getParameter());\n\t\t\telse if (name.equals(\"DocAction\"))\n\t\t;//\t\tm_docAction = (String)para[i].getParameter();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}", "void setParameters(Map<String, Object> propertyValues);", "final void getParameters()\r\n {\r\n hostName=getParameter(\"hostname\");\r\n\tIPAddress=getParameter(\"IPAddress\");\r\n\tString num=getParameter(\"maxSearch\");\r\n\tString arg=getParameter(\"debug\");\r\n\tserver=getParameter(\"server\");\r\n\tindexName=getParameter(\"indexName\");\r\n\tString colour=getParameter(\"bgColour\");\r\n\r\n\tif(colour==null)\r\n\t{\r\n\t bgColour=Color.lightGray;\r\n }\r\n else\r\n\t{\r\n\t try\r\n\t {\r\n\t bgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t bgColour=Color.lightGray;\r\n\t }\r\n\t}\r\n\t\r\n\tcolour=getParameter(\"fgColour\");\r\n\tif(colour==null)\r\n\t{\r\n\t fgColour=Color.black;\r\n\t}\r\n\telse\r\n\t{\r\n\t try\r\n\t {\r\n\t fgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t fgColour=Color.black;\r\n\t }\r\n\t}\r\n\r\n\t//Check for missing parameters.\r\n\tif(hostName==null && server==null)\r\n\t{\r\n\t statusArea.setText(\"Error-no host/server\");\r\n\t hostName=\"none\";\r\n\t}\r\n\r\n\tmaxSearch=(num == null) ? MAX_NUMBER_PAGES : Integer.parseInt(num);\r\n }", "private String createCommandWithParams(int command, Hashtable<String,String> params) {\n\t\tDocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t\tDocumentBuilder db=dbf.newDocumentBuilder();\n\t\t\tDocument doc=db.newDocument();\n\t\t\t\n\t\t\tdoc.setXmlStandalone(true);\n\t\t\tElement rootElement=doc.createElement(\"device\");\n\t\t\trootElement.setAttribute(\"version\", \"1.0\");\n\t\t\tdoc.appendChild(rootElement);\n\t\t\t\n\t\t\tElement cmdElement=doc.createElement(\"command\");\n\t\t\tText txt=doc.createTextNode(String.valueOf(command));\n\t\t\tcmdElement.appendChild(txt);\n\t\t\t\n\t\t\tElement settingsElement=doc.createElement(\"settings\");\n\t\t\tparams.forEach( (key, value) -> {\n\t\t\t\tElement settingElement=doc.createElement(\"s\");\n\t\t\t\tsettingElement.setAttribute(\"id\", key);\n\t\t\t\tText valueElement=doc.createTextNode(value);\n\t\t\t\tsettingElement.appendChild(valueElement);\n\t\t\t\tsettingsElement.appendChild(settingElement);\n\t\t\t});\n\t\t\t\n\t\t\trootElement.appendChild(cmdElement);\n\t\t\trootElement.appendChild(settingsElement);\n\t\t\t\n\t\t\tElement crcElement=doc.createElement(\"crc\");\n\t\t\tText ff=doc.createTextNode(\"FFFFFFFF\");\n\t\t\tcrcElement.appendChild(ff);\n\t\t\trootElement.appendChild(crcElement);\n\t\t\t\n\t\t\t//Transform the doc.\n\t\t\tTransformerFactory tf=TransformerFactory.newInstance();\n\t\t\tTransformer t=tf.newTransformer();\n\t\t\tDOMSource source=new DOMSource(doc);\n\t\t\tByteArrayOutputStream baos=new ByteArrayOutputStream();\n\t\t\tStreamResult result=new StreamResult(baos);\n\t\t\tt.transform(source, result);\n\t\t\t\n\t\t\tint actualCRC=NKVCRC.calculate(baos.toByteArray());\n\t\t\tString hexCRC=Integer.toHexString(actualCRC).toUpperCase();\n\t\t\tif(hexCRC.length()<8) {\n\t\t\t\thexCRC=String.format(\"%8s\", hexCRC).replaceAll(\" \", \"0\");\n\t\t\t}\n\t\t\t\n\t\t\tff.setNodeValue(hexCRC);\n\t\t\tsource=new DOMSource(doc);\n\t\t\tbaos.reset();\n\t\t\tresult=new StreamResult(baos);\n\t\t\tt.transform(source, result);\n\t\t\t\n\t\t\treturn new String(baos.toByteArray());\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "void setParameters() {\n\t\t\n\t}", "public void parse(String argscall) throws ParseException{\n Commons.log.finest(toString()+\" Parsing '\"+argscall+\"'\");\n argscall = argscall.trim();\n \n LinkedList<String> args = new LinkedList<String>();\n HashMap<String, String> kwargs = new HashMap<String, String>();\n \n if(!argscall.isEmpty()){\n int pointer=0, nextStringStart=0, nextStringEnd=0, nextSpace=0;\n String token, key, val;\n\n while(nextSpace >= 0){ \n //Find next token end point\n nextSpace = argscall.indexOf(' ', pointer);\n nextStringStart = indexOfNextUnescapedChar(argscall, '\"', pointer);\n \n if(nextStringStart < nextSpace && nextStringStart != -1){\n nextStringEnd = indexOfNextUnescapedChar(argscall, '\"', nextStringStart+1);\n if(nextStringEnd == -1)\n throw new ParseException(\"Expected \\\" but reached end of string.\");\n nextSpace = argscall.indexOf(' ', nextStringEnd+1);\n }\n\n //Extract token\n if(nextSpace == -1)token = argscall.substring(pointer);\n else token = argscall.substring(pointer, nextSpace); \n token = token.trim();\n\n //See if it's a keyword match or not\n if(KEYWORD.matcher(token).find()){\n key = token.substring(0, token.indexOf('='));\n val = token.substring(token.indexOf('=')+1);\n }else{\n key = null;\n val = token;\n }\n\n //Remove string indicators\n if(val.startsWith(\"\\\"\") && val.endsWith(\"\\\"\")){\n val = val.substring(1, val.length()-1).replaceAll(\"\\\\\\\\\\\"\", \"\\\"\");\n }\n\n //Save to queue or dict\n if(key == null) args.add(val);\n else kwargs.put(key, val);\n\n //Advance pointer\n pointer = nextSpace+1;\n }\n }\n \n for(Argument arg : chain){\n arg.parse(args, kwargs);\n }\n \n apargs = args.toArray(new String[args.size()]);\n akargs.putAll(kwargs);\n }", "private void initParameters() {\n Annotation[][] paramsAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < paramsAnnotations.length; i++) {\n if (paramsAnnotations[i].length == 0) {\n contentBuilder.addUnnamedParam(i);\n } else {\n for (Annotation annotation : paramsAnnotations[i]) {\n Class<?> annotationType = annotation.annotationType();\n if (annotationType.equals(PathParam.class)\n && pathBuilder != null) {\n PathParam param = (PathParam) annotation;\n pathBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(QueryParam.class)) {\n QueryParam param = (QueryParam) annotation;\n queryBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(HeaderParam.class)) {\n HeaderParam param = (HeaderParam) annotation;\n headerBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(NamedParam.class)) {\n NamedParam param = (NamedParam) annotation;\n contentBuilder.addNamedParam(param.value(), i);\n } else {\n contentBuilder.addUnnamedParam(i);\n }\n }\n }\n }\n }", "String[] getParameterValues(String key);", "public ValueMap(final String keyValuePairs, final String delimiter)\n\t{\n\t\tsuper();\n\n\t\tint start = 0;\n\t\tint equalsIndex = keyValuePairs.indexOf('=');\n\t\tint delimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex);\n\t\tif (delimiterIndex == -1)\n\t\t{\n\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t}\n\t\twhile (equalsIndex != -1)\n\t\t{\n\t\t\tif (delimiterIndex < keyValuePairs.length())\n\t\t\t{\n\t\t\t\tint equalsIndex2 = keyValuePairs.indexOf('=', delimiterIndex + 1);\n\t\t\t\tif (equalsIndex2 != -1)\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.lastIndexOf(delimiter, equalsIndex2);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t\t\t}\n\t\t\t}\n\t\t\tString key = keyValuePairs.substring(start, equalsIndex);\n\t\t\tString value = keyValuePairs.substring(equalsIndex + 1, delimiterIndex);\n\t\t\tadd(key, value);\n\t\t\tif (delimiterIndex < keyValuePairs.length())\n\t\t\t{\n\t\t\t\tstart = delimiterIndex + 1;\n\t\t\t\tequalsIndex = keyValuePairs.indexOf('=', start);\n\t\t\t\tif (equalsIndex != -1)\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex);\n\t\t\t\t\tif (delimiterIndex == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tequalsIndex = -1;\n\t\t\t}\n\t\t}\n\t}", "private void fillParameters(Pconfig report) {\r\n\t\tList<? extends Parameter<?>> parameters = report.getParameters();\r\n\t\tfor (Parameter<?> param : parameters) {\r\n\t\t\tif (param instanceof StringParameter){\r\n\t\t\t\t((StringParameter) param).setValue(\"test string\");\r\n\t\t\t} else if (param instanceof IntegerParameter){\r\n\t\t\t\t((IntegerParameter) param).setValue(13);\r\n\t\t\t} else if (param instanceof DateParameter){\r\n\t\t\t\t((DateParameter) param).setValue(new Date());\r\n\t\t\t} else if (param instanceof BooleanParameter){\r\n\t\t\t\t((BooleanParameter) param).setValue(true);\r\n\t\t\t} else if (param instanceof EntityParameter){\r\n\t\t\t\tEntityParameter eparam = (EntityParameter) param;\r\n\t\t\t\tString type = eparam.getValueType();\r\n\t\t\t\tif (Integer.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"21\");\r\n\t\t\t\t} else if (Long.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"42\");\r\n\t\t\t\t}if (Double.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"9.4\");\r\n\t\t\t\t}if (Boolean.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"false\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setParameters(Map<String, String> parameters) throws IOException {\r\n if (parameters == null)\r\n return;\r\n for (Iterator i = parameters.entrySet().iterator(); i.hasNext();) {\r\n Map.Entry entry = (Map.Entry) i.next();\r\n setParameter(entry.getKey().toString(), entry.getValue());\r\n }\r\n }", "void setCommandProperties(String commandID, AttributeList properties);", "public interface Params\n{\n\tpublic static final String DEFAULT_PATH=\"default_path\";\n\tpublic static final String DEFAULT_NAME=\"default_name\";\n\tpublic static final String MODE=\"mode\";\n\tpublic static final String FILE_TYPE=\"file_type\";\n}", "public CommandHandler() {\r\n\t\tcommands.put(\"userinfo\", new UserInfoCommand());\r\n\t\tcommands.put(\"verify\", new VerifyCommand());\r\n\t\tcommands.put(\"ping\", new PingCommand());\r\n\t\tcommands.put(\"rapsheet\", new RapsheetCommand());\r\n\t\tcommands.put(\"bet\", new BetCommand());\r\n\t\tcommands.put(\"buttons\", new ButtonCommand());\r\n\r\n\t\t// for each command in commands\r\n\t\t// call getAlternativeName and assign to that key\r\n\t\tcommands.keySet().stream().forEach(key -> {\r\n\t\t\tList<String> alts = commands.get(key).getAlternativeNames();\r\n\t\t\tif (alts != null)\r\n\t\t\t\talts.forEach(a -> commandAlternative.put(a, key));\r\n\t\t});\r\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}", "private void setupTokenHashTable() {\n this.tokenHashTable = new Hashtable<>();\n \t\n /* Identifier Token */\n this.getTokenHashTable().put(1001, \"idTK\");\n this.getTokenHashTable().put(1002, \"integerTK\");\n \t\n /* Operators and Delimiters */\n this.getTokenHashTable().put(1003, \"equalsTK\");\n this.getTokenHashTable().put(1004, \"lessThanTK\");\n this.getTokenHashTable().put(1005, \"greaterThanTK\");\n this.getTokenHashTable().put(1006, \"compareEqualTK\");\n this.getTokenHashTable().put(1007, \"colonTK\");\n this.getTokenHashTable().put(1008, \"plusTK\");\n this.getTokenHashTable().put(1009, \"minusTK\");\n this.getTokenHashTable().put(1010, \"multiplyTK\");\n this.getTokenHashTable().put(1011, \"divideTK\");\n this.getTokenHashTable().put(1012, \"modulusTK\");\n this.getTokenHashTable().put(1013, \"periodTK\");\n this.getTokenHashTable().put(1014, \"leftParenTK\");\n this.getTokenHashTable().put(1015, \"rightParenTK\");\n this.getTokenHashTable().put(1016, \"commaTK\");\n this.getTokenHashTable().put(1017, \"leftBraceTK\");\n this.getTokenHashTable().put(1018, \"rightBraceTK\");\n this.getTokenHashTable().put(1019, \"semicolonTK\");\n this.getTokenHashTable().put(1020, \"leftBracketTK\");\n this.getTokenHashTable().put(1021, \"rightBracketTK\");\n \n /* Extra Tokens */\n this.getTokenHashTable().put(1022, \"EofTK\");\n this.getTokenHashTable().put(-2, \"Invalid Character\");\n this.getTokenHashTable().put(-3, \"Invalid Comment\");\n }", "public void testParams() {\n String line = \"-Xmx256m org.milos.Main arg1\";\n assertEquals(\"-Xmx256m\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"org.milos.Main\", RunJarPanel.splitMainClass(line));\n assertEquals(\"arg1\", RunJarPanel.splitParams(line));\n \n line = \"-Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath ${packageClassName}\";\n assertEquals(\"-Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"\", RunJarPanel.splitParams(line));\n \n line = \"-classpath %classpath ${packageClassName} %classpath ${packageClassName}\";\n assertEquals(\"-classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"%classpath ${packageClassName}\", RunJarPanel.splitParams(line));\n \n line = \"Main arg1 arg2.xsjs.xjsj.MainParam\";\n assertEquals(\"\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"Main\", RunJarPanel.splitMainClass(line));\n assertEquals(\"arg1 arg2.xsjs.xjsj.MainParam\", RunJarPanel.splitParams(line));\n \n //non trimmed line\n line = \" -classpath %classpath ${packageClassName} %classpath ${packageClassName} \";\n assertEquals(\"-classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"%classpath ${packageClassName}\", RunJarPanel.splitParams(line));\n\n //param with quotes and spaces..\n line = \"-Dparam1=\\\"one two three\\\" -classpath %classpath ${packageClassName} %classpath ${packageClassName} \";\n assertEquals(\"-Dparam1=\\\"one two three\\\" -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"%classpath ${packageClassName}\", RunJarPanel.splitParams(line));\n line = \"-D\\\"foo bar=baz quux\\\" -classpath %classpath my.App\";\n assertEquals(\"-D\\\"foo bar=baz quux\\\" -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"my.App\", RunJarPanel.splitMainClass(line));\n assertEquals(\"\", RunJarPanel.splitParams(line));\n line = \"\\\"-Dfoo bar=baz quux\\\" -classpath %classpath my.App\"; // #199411\n assertEquals(\"\\\"-Dfoo bar=baz quux\\\" -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"my.App\", RunJarPanel.splitMainClass(line));\n assertEquals(\"\", RunJarPanel.splitParams(line));\n }", "@Implementation\n protected String getParameters(String keys) {\n return null;\n }", "public interface CommandParser {\n String[] splitStringIntoCommands(String string);\n String[] splitCommandIntoParams(String string);\n String convertArrayToString(String... stringArray);\n}", "public Map<String, String> paramap(String...params) {\n\t\t\tMap<String, String> map = new HashMap<String, String>();\n\t\n\t\t\tfor(String p : params) {\n\t\t\t\tmap.put(p, parameters.get(p));\n\t\t\t}\n\n\t\t\treturn map;\n\t}", "private String constructGeneralArgs() {\n StringBuilder cmd = new StringBuilder();\n\n cmd.append(size).append(ExternalExecutor.TOKEN_SEP);\n\n cmd.append(writeDataPipeFile).append(ExternalExecutor.TOKEN_SEP);\n cmd.append(readDataPipeFile).append(ExternalExecutor.TOKEN_SEP);\n\n cmd.append(writePipeFiles.length).append(ExternalExecutor.TOKEN_SEP);\n for (int i = 0; i < writePipeFiles.length; ++i) {\n cmd.append(writePipeFiles[i]).append(ExternalExecutor.TOKEN_SEP);\n }\n\n cmd.append(readPipeFiles.length).append(ExternalExecutor.TOKEN_SEP);\n for (int i = 0; i < readPipeFiles.length; ++i) {\n cmd.append(readPipeFiles[i]).append(ExternalExecutor.TOKEN_SEP);\n }\n\n return cmd.toString();\n }", "protected abstract List<Object> getParamValues(SqlKeyWord sqlKeyWord, Object dbEntity, TableInfo tableInfo, Map<String, Object> params) throws Exception;", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Brand_Id\", Brand_Id);\n params.put(\"Brand_Name\", Brand_Name);\n params.put(\"description\", description);\n params.put(\"brand_status\",brand_status);\n params.put(\"reason\", reason);\n params.put(\"Creation_Date\", Creation_Date);\n params.put(\"Updated_Date\", Updated_Date);\n params.put(\"Admin_Id\", Admin_Id);\n\n return params;\n }", "private static void parseCommandLine(String[] command) {\r\n\t\tint i = 0;\r\n\t\t\r\n\t\twhile (i < command.length) {\r\n\t\t\tif (command[i].equals(\"-f\")) { // input file\r\n\t\t\t\tdataFileName = command[i+1];\r\n\t\t\t\ti += 2;\r\n\t\t\t}\r\n\t\t\telse if (command[i].equals(\"-s\")) { // data split\r\n\t\t\t\tif (command[i+1].equals(\"simple\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.SIMPLE_SPLIT;\r\n\t\t\t\t\ttestRatio = Double.parseDouble(command[i+2]);\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"pred\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.PREDEFINED_SPLIT;\r\n\t\t\t\t\tsplitFileName = command[i+2].trim();\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"kcv\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.K_FOLD_CROSS_VALIDATION;\r\n\t\t\t\t\tfoldCount = Integer.parseInt(command[i+2]);\r\n\t\t\t\t}\r\n\t\t\t\telse if (command[i+1].equals(\"rank\")) {\r\n\t\t\t\t\tevaluationMode = DataSplitManager.RANK_EXP_SPLIT;\r\n\t\t\t\t\tuserTrainCount = Integer.parseInt(command[i+2]);\r\n\t\t\t\t\tminTestCount = 10;\r\n\t\t\t\t}\r\n\t\t\t\ti += 3;\r\n\t\t\t}\r\n\t\t\telse if (command[i].equals(\"-a\")) { // algorithm\r\n\t\t\t\trunAllAlgorithms = false;\r\n\t\t\t\talgorithmCode = command[i+1];\r\n\t\t\t\t\r\n\t\t\t\t// parameters for the algorithm:\r\n\t\t\t\tint j = 0;\r\n\t\t\t\twhile (command.length > i+2+j && !command[i+2+j].startsWith(\"-\")) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\talgorithmParameters = new String[j];\r\n\t\t\t\tSystem.arraycopy(command, i+2, algorithmParameters, 0, j);\r\n\t\t\t\t\r\n\t\t\t\ti += (j + 2);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private CommandFactory( ThreadGroup mainThreadGroup ) {\n this.mainThreadGroup = mainThreadGroup;\n \n map = new HashMap<String, String>();\n\n map.put( \"LS\", \"org.ajstark.LinuxShell.Command.LsCommand\" );\n map.put( \"GREP\", \"org.ajstark.LinuxShell.Command.GrepCommand\" );\n map.put( \"PWD\", \"org.ajstark.LinuxShell.Command.PwdCommand\" );\n map.put( \"CD\", \"org.ajstark.LinuxShell.Command.CdCommand\" );\n map.put( \"ENV_VAR\", \"org.ajstark.LinuxShell.Command.SetEnvVarCommand\" );\n map.put( \"ENV\", \"org.ajstark.LinuxShell.Command.EnvCommand\" );\n map.put( \"HISTORY\", \"org.ajstark.LinuxShell.Command.HistoryCommand\" );\n }", "public abstract void addParameter(String key, Object value);", "private Parser(FScript h,HashMap l,HashMap g, HashMap f) {\n vars=l;\n gVars=g;\n funcs=f;\n host=h;\n }", "public void setInputData(String[] inputData) {\r\n // separate input into command and parameters\r\n String command = inputData[0];\r\n String[] parameters = Arrays.copyOfRange(inputData, 1, inputData.length);\r\n this.command = command;\r\n this.parameters = parameters;\r\n }", "private void initializeAvailableCommandMap() {\n availableCommandMap = new HashMap<String, Command>();\n availableCommandMap.put(\"cd\", new CdCommand());\n availableCommandMap.put(\"ls\", new LsCommand());\n availableCommandMap.put(\"mkdir\", new MkdirCommand());\n availableCommandMap.put(\"upload\", new UploadCommand());\n availableCommandMap.put(\"download\", new DownloadCommand());\n availableCommandMap.put(\"exit\", new ExitCommand());\n }", "public Parameterized(Map<String, String> parameters) {\n setParameters(parameters);\n }", "public void initParams(List<String> list) {\n if ((list.size() & 1) != 0) {\n throw new IllegalArgumentException(\"list size must be a multiple of 2\");\n }\n for (int i = 0; i < list.size(); ) {\n addParam(list.get(i++), list.get(i++));\n }\n }", "@SuppressWarnings(\"unchecked\")\n public ParametersImpl(Map<String, Object> parameters) {\n parameters.forEach((parameterName, parameterValues) -> {\n if (parameterValues == null) {\n String nullValuedParameters = parameters\n .entrySet()\n .stream()\n .filter(entry -> isNull(entry.getValue()))\n .map(Entry::getKey)\n .sorted()\n .collect(joining(\", \"));\n throw new IllegalArgumentException(String.format(\n \"parameters must not have null values: %s\",\n nullValuedParameters));\n }\n\n this.parameters.put(parameterName, (V) parameterValues);\n });\n }", "private void processInputs( Map inputs ) {\n\n\t\tINPUTS = new CommandInputParameter[ inputs.size() ];\n\n\t\tint counter = 0;\n\n\t\tfor( Object attribute : inputs.keySet() ){\n\n\t\t\tINPUTS[ counter ] = new CommandInputParameter();\n\n\t\t\tif ( attribute.equals(\"id\") ) {\n\t\t\t\tINPUTS[counter].setid( (String) inputs.get( attribute ) );\n\t\t\t}\n\n\t\t\tif ( attribute.equals(\"type\") ) {\n\t\t\t\tINPUTS[counter].settype( (String) inputs.get( attribute ) );\n\t\t\t}\n\n\t\t}\n\t}", "public void addToParameterNameValuePairs(entity.LoadParameter element);", "private void parseLine(String line) throws ParsingException {\n if (line.startsWith(COMMENT_PREFIX)) //Ignore comments\n return;\n String parts[] = line.split(SEPARATOR_PARAMETER);\n if (parts.length == 2) { //PARAMETER=VALUE\n if (isValidParameter(parts[0])) //If the parameter is present in the config list then add it\n parameters.put(parts[0], parts[1]);\n } else if (parts.length == 1 && parts[0].startsWith(OPTION_PREFIX)) { //-OPTION\n String option = parts[0].substring(OPTION_PREFIX.length());\n if (isValidOption(option))\n parameters.put(option, null); //Null in value differs options from parameters\n } else\n throw new ParsingException(buildErrorMessage(EXCEPTION_BAD_FORMAT));\n }", "@Override\n\tpublic void initParameters() {\n\t\ttransferDbData = new TransferDbData();\n\t}", "Map<String, Object> getParameters();", "Map<String, Object> getParameters();", "public abstract void param(byte[] data,SplitDetails name, SplitDetails value) throws ParseException;", "@Override\r\n\tpublic void setParameters(Map<String, String[]> parameters){\n\t\tthis.parameters=parameters;\r\n\t}", "public ParameterClassList(){\n if(!initialized){\n paramList=new Hashtable(35,.6f);\n String jarName=jarName();\n if(jarName!=null && jarName.length()>0)\n processJar(jarName);\n else\n processDir();\n }\n\n initialized = true;\n\n if(DEBUG) System.out.println(\"Found \"+paramList.size()+\" parameters\");\n }", "protected void initParameters(List<ParameterWrapper> params) {\n\t\tparameters = new SchemaParameterCollection();\n\t\tif (params != null) {\n\t\t\tIParameter par;\n\t\t\tfor (ParameterWrapper parwrap : params) {\n\t\t\t\tpar = ParameterFactory.createParameter(parwrap);\n\t\t\t\tparameters.addParameter(par);\n\t\t\t}\n\t\t}\n\t}", "protected String paramString() {\n String horizontalAlignmentString;\n if (horizontalAlignment == LEFT) {\n\t horizontalAlignmentString = \"LEFT\";\n\t} else if (horizontalAlignment == CENTER) {\n\t horizontalAlignmentString = \"CENTER\";\n\t} else if (horizontalAlignment == RIGHT) {\n\t horizontalAlignmentString = \"RIGHT\";\n\t} else if (horizontalAlignment == LEADING) {\n\t horizontalAlignmentString = \"LEADING\";\n\t} else if (horizontalAlignment == TRAILING) {\n\t horizontalAlignmentString = \"TRAILING\";\n\t} else horizontalAlignmentString = \"\";\n String commandString = (command != null ?\n\t\t\t\tcommand : \"\");\n\n return super.paramString() +\n \",columns=\" + columns +\n \",columnWidth=\" + columnWidth +\n \",command=\" + commandString +\n \",horizontalAlignment=\" + horizontalAlignmentString;\n }", "public void setDefaultParameters()\n {\n parameters = new Vector(); // must do this to clear any old parameters\n\n Parameter parameter = new Parameter( \"DataSet to Divide\",\n DataSet.EMPTY_DATA_SET );\n addParameter( parameter );\n\n parameter = new Parameter( \"Create new DataSet?\", new Boolean(false) );\n addParameter( parameter );\n }", "protected void setupParameters() {\n \n \n\n }", "private JSONObject jsonifyParams(HashMap<String, String> params){\n try {\n //first create the initial JSONObject\n JSONObject jsonBody = new JSONObject();\n //enter in columns and specify columns as JSONArray each\n //TODO: make code cleaner by sending to for-loop to iterate with different id's\n //new columns\n JSONArray columns = new JSONArray();\n //set the id ex {\"id\": 0}\n columns.put(new JSONObject(\"{\\\"id\\\":\" + params.get(WebsiteInterface.UPDATE_ID) + \" }\"));\n //set the front ex {\"front\":... }\n columns.put(new JSONObject(\"{\\\"front\\\":\" + params.get(WebsiteInterface.UPDATE_FRONT) + \"}\"));\n //set the back ex {\"back\" :...}\n columns.put(new JSONObject(\"{\\\"back\\\":\" + params.get(WebsiteInterface.UPDATE_BACK) + \"}\"));\n\n //specify columns\n JSONArray specifyColumns = new JSONArray();\n //set the id ex {\"id\": 0}\n specifyColumns.put(new JSONObject(\"{\\\"id\\\":\" + params.get(WebsiteInterface.UPDATE_ID) + \" }\"));\n //set the front ex {\"front\":... }\n specifyColumns.put(new JSONObject(\"{\\\"front\\\":\" + params.get(WebsiteInterface.PREV_FRONT) + \"}\"));\n //set the back ex {\"back\" :...}\n specifyColumns.put(new JSONObject(\"{\\\"back\\\":\" + params.get(WebsiteInterface.PREV_BACK) + \"}\"));\n //attach the json arrays into the returning body\n jsonBody.put(\"columns\", columns);\n jsonBody.put(\"specifyColumns\", specifyColumns);\n /*return this json body if nothing went wrong with json formatting, otherwise empty json\n * object.*/\n return jsonBody;\n\n } catch (JSONException e) {\n Log.e(\"FCard jsonifyParams\", e.getMessage());\n }\n return new JSONObject();\n }", "public void setParameters(String parameters);", "@Override\n\tpublic void prepareKeys() {\n\t\tfor (RecordKey key : paramHelper.getPushingKeys())\n\t\t\taddReadKey(key);\n\t}", "protected void setupTableCommandExp(StringBuilder sb, RomanticTransaction tx) {\n final Map<String, Set<String>> tableCommandMap = tx.getReadOnlyTableCommandMap();\n if (!tableCommandMap.isEmpty()) {\n final StringBuilder mapSb = new StringBuilder();\n mapSb.append(\"map:{\");\n int index = 0;\n for (Entry<String, Set<String>> entry : tableCommandMap.entrySet()) {\n final String tableName = entry.getKey();\n final Set<String> commandSet = entry.getValue();\n if (index > 0) {\n mapSb.append(\" ; \");\n }\n mapSb.append(tableName);\n mapSb.append(\" = list:{\").append(Srl.connectByDelimiter(commandSet, \" ; \")).append(\"}\");\n ++index;\n }\n mapSb.append(\"}\");\n sb.append(\", \").append(mapSb.toString());\n }\n }", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "public void setParaToParameters(String key, Object obj)\n\t{\n\t\tMap<String, Object> parameters = (Map)context.getParameters();\n\t\tparameters.put(key, obj);\n\t}", "@Override\n\tpublic void updateKey() {\n\t\tkey = String.format(\"%s;%s;%s;%s;%s;%s;%s\", dim, x1, y1, z1, x2, y2, z2);\n\t}", "public void setParameters(ArrayList<ParameterEntry<String, String>> params) {\n parameters = params;\n }", "@Override\n protected void prepare()\n throws CommandException, CommandValidationException {\n Set<ValidOption> opts = new LinkedHashSet<ValidOption>();\n addOption(opts, \"file\", 'f', \"FILE\", false, null);\n printPromptOption =\n addOption(opts, \"printprompt\", '\\0', \"BOOLEAN\", false, null);\n addOption(opts, \"encoding\", '\\0', \"STRING\", false, null);\n addOption(opts, \"help\", '?', \"BOOLEAN\", false, \"false\");\n commandOpts = Collections.unmodifiableSet(opts);\n operandType = \"STRING\";\n operandMin = 0;\n operandMax = 0;\n\n processProgramOptions();\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"todo\");\n params.put(\"task\", task);\n params.put(\"startTime\", startTime);\n params.put(\"endTime\", endTime);\n params.put(\"created_for\", created_for);\n params.put(\"created_by\",created_by);\n\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"uid\", uid);\n params.put(\"title\", title);\n params.put(\"suggest\", suggest);\n\n return params;\n }", "private void setAllParameters(int len) {\n\t\t\tshowUPLMN = new String[len] ;\n\t\t\toriginalUPLMN = new String[len] ;\n\t\t\tstrUorG = new String[len] ;\n\t\t\tpart = new byte[len][];\n\t\t\torder = new int[len];\n\t\t\tfor(int i=0;i<len;i++){\n\t\t\t\t part[i] = new byte[6];\n\t\t\t}\n\t\t}", "protected String readParams(Hashtable<String,String> params, String errors,\n EdaContext xContext) throws IcofException {\n\tif (params.containsKey(\"-c\")) {\n\t setComponent(xContext, params.get(\"-c\"));\n\t}\n\telse {\n\t errors += \"Component (-c) is a required parameter\\n\";\n\t}\n\n\t// Read the Branch name\n\tif (params.containsKey(\"-b\")) {\n\t setName((String) params.get(\"-b\"));\n\t}\n\telse {\n\t errors += \"Branch name (-n) is a required parameter\\n\";\n\t}\n\treturn errors;\n }", "@Test\r\n \tpublic void testParameters() {\n \t\tParameters params = (Parameters) filter.getParameters();\r\n \t\t\t\t\t\t\r\n \t\tassertEquals(params.unescapeSource, true);\r\n \t\tassertEquals(params.trimLeading, true);\r\n \t\tassertEquals(params.trimTrailing, true);\r\n \t\tassertEquals(params.preserveWS, true);\r\n \t\tassertEquals(params.useCodeFinder, false);\r\n \t\tassertEquals(\t\t\t\t\r\n \t\t\t\t\"#v1\\ncount.i=2\\nrule0=%(([-0+#]?)[-0+#]?)((\\\\d\\\\$)?)(([\\\\d\\\\*]*)(\\\\.[\\\\d\\\\*]*)?)[dioxXucsfeEgGpn]\\n\" +\r\n \t\t\t\t\"rule1=(\\\\\\\\r\\\\\\\\n)|\\\\\\\\a|\\\\\\\\b|\\\\\\\\f|\\\\\\\\n|\\\\\\\\r|\\\\\\\\t|\\\\\\\\v\\nsample=\\nuseAllRulesWhenTesting.b=false\", \r\n \t\t\t\tparams.codeFinderRules);\r\n \t\t\t\t\t\t\t\t\t\r\n \t\t// Check if defaults are set\r\n \t\tparams = new Parameters();\r\n \t\tfilter.setParameters(params);\r\n \t\t\r\n \t\tparams.columnNamesLineNum = 1;\r\n \t\tparams.valuesStartLineNum = 1;\r\n \t\tparams.detectColumnsMode = 1;\r\n \t\tparams.numColumns = 1;\r\n \t\tparams.sendHeaderMode = 1;\r\n \t\tparams.trimMode = 1;\r\n \t\tparams.fieldDelimiter = \"1\";\r\n \t\tparams.textQualifier = \"1\";\r\n \t\tparams.sourceIdColumns = \"1\";\r\n \t\tparams.sourceColumns = \"1\";\r\n \t\tparams.targetColumns = \"1\";\r\n \t\tparams.commentColumns = \"1\";\r\n \t\tparams.preserveWS = true;\r\n \t\tparams.useCodeFinder = true;\r\n \t\t\r\n \t\tparams = getParameters();\r\n \t\t\r\n \t\tassertEquals(params.fieldDelimiter, \"1\");\r\n \t\tassertEquals(params.columnNamesLineNum, 1);\r\n \t\tassertEquals(params.numColumns, 1);\r\n \t\tassertEquals(params.sendHeaderMode, 1);\r\n \t\tassertEquals(params.textQualifier, \"1\");\r\n \t\tassertEquals(params.trimMode, 1);\r\n \t\tassertEquals(params.valuesStartLineNum, 1);\r\n \t\tassertEquals(params.preserveWS, true);\r\n \t\tassertEquals(params.useCodeFinder, true);\r\n \t\t\r\n \t\t// Load filter parameters from a file, check if params have changed\r\n //\t\tURL paramsUrl = TableFilterTest.class.getResource(\"/test_params1.txt\");\r\n //\t\tassertNotNull(paramsUrl); \r\n \t\t\r\n \r\n \t\ttry {\r\n \t\tString st = \"file:\" + getFullFileName(\"test_params1.txt\");\r\n \t\tparams.load(new URI(st), false);\r\n \t} catch (URISyntaxException e) {\r\n \t}\r\n \r\n \t\t\r\n \t\tassertEquals(\"2\", params.fieldDelimiter);\r\n \t\tassertEquals(params.columnNamesLineNum, 2);\r\n \t\tassertEquals(params.numColumns, 2);\r\n \t\tassertEquals(params.sendHeaderMode, 2);\r\n \t\tassertEquals(\"2\", params.textQualifier);\r\n \t\tassertEquals(params.trimMode, 2);\r\n \t\tassertEquals(params.valuesStartLineNum, 2);\r\n \t\tassertEquals(params.preserveWS, false);\r\n \t\tassertEquals(params.useCodeFinder, false);\r\n \t\t\r\n \t\t// Save filter parameters to a file, load and check if params have changed\r\n \t\tURL paramsUrl = TableFilterTest.class.getResource(\"/test_params2.txt\");\r\n \t\tassertNotNull(paramsUrl);\r\n \t\t\r\n \t\tparams.save(paramsUrl.getPath());\r\n \t\t\r\n \t\t// Change params before loading them\r\n \t\tparams = (Parameters) filter.getParameters();\r\n \t\tparams.fieldDelimiter = \"3\";\r\n \t\tparams.columnNamesLineNum = 3;\r\n \t\tparams.numColumns = 3;\r\n \t\tparams.sendHeaderMode = 3;\r\n \t\tparams.textQualifier = \"3\";\r\n \t\tparams.trimMode = 3;\r\n \t\tparams.valuesStartLineNum = 3;\r\n \t\tparams.preserveWS = true;\r\n \t\tparams.useCodeFinder = true;\r\n \t\t\r\n \t\tparams.load(Util.toURI(paramsUrl.getPath()), false);\r\n \t\t\r\n \t\tassertEquals(params.fieldDelimiter, \"2\");\r\n \t\tassertEquals(params.columnNamesLineNum, 2);\r\n \t\tassertEquals(params.numColumns, 2);\r\n \t\tassertEquals(params.sendHeaderMode, 2);\r\n \t\tassertEquals(params.textQualifier, \"2\");\r\n \t\tassertEquals(params.trimMode, 2);\r\n \t\tassertEquals(params.valuesStartLineNum, 2);\r\n \t\tassertEquals(params.preserveWS, false);\r\n \t\tassertEquals(params.useCodeFinder, false);\r\n \t\t\r\n \t\t// Check if parameters type is controlled\r\n \t\t\r\n \t\tfilter.setParameters(new net.sf.okapi.filters.plaintext.base.Parameters());\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/csv_test1.txt\");\r\n \t\ttry {\r\n \t\t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\tfail(\"OkapiBadFilterParametersException should've been trown\");\r\n \t\t}\r\n \t\tcatch (OkapiBadFilterParametersException e) {\r\n \t\t}\r\n \t\t\r\n \t\tfilter.close();\r\n \t\r\n \t\tfilter.setParameters(new net.sf.okapi.filters.table.csv.Parameters());\r\n \t\tinput = TableFilterTest.class.getResourceAsStream(\"/csv_test1.txt\");\r\n \t\ttry {\r\n \t\t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t}\r\n \t\tcatch (OkapiBadFilterParametersException e) {\r\n \t\t\tfail(\"OkapiBadFilterParametersException should NOT have been trown\");\r\n \t\t}\r\n \t\t\tfilter.close();\r\n \t}", "public Query initParams(Map<String, String> params) {\n if (MapUtil.isNotEmpty(params)) {\n for (Map.Entry<String, String> entry : params.entrySet()) {\n addParam(entry.getKey(), entry.getValue());\n }\n }\n return this;\n }", "public void execFuzzySearchVariationFunc(){\n\n\n Map map = new HashMap();\n\n if(this.searchParam != null && this.searchParam.length()> 0 ){\n System.out.println(this.searchParam );\n if(this.searchParam.contains(\":\")==true || this.searchParam.startsWith(\"chr\") == true) {\n String chrom = \"\";\n int pstart = -1;\n int pend = -1;\n if (this.searchParam.indexOf(\":\") > -1) {\n int idex = this.searchParam.indexOf(\":\");\n chrom = this.searchParam.substring(0, idex );\n System.out.println(\"chrom=\" + chrom);\n map.put(\"chrom\", chrom);\n if (this.searchParam.indexOf(\"-\") > -1) {\n int idex1 = this.searchParam.indexOf(\"-\");\n pstart = Integer.parseInt(this.searchParam.substring(idex + 1, idex1 ));\n pend = Integer.parseInt(this.searchParam.substring(idex1 + 1, this.searchParam.length()));\n map.put(\"startpos\", pstart);\n map.put(\"endpos\", pend);\n } else {\n pstart = Integer.parseInt(this.searchParam.substring(idex + 1, this.searchParam.length()));\n map.put(\"startpos\", pstart);\n }\n\n } else if (this.searchParam.startsWith(\"chr\") == true) {\n map.put(\"chrom\", this.searchParam);\n }\n }\n\n map.put(\"searchParam\",this.searchParam);\n }\n\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"null\") ==false && this.searchSpecies.equals(\"all\") == false){\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"species\",this.searchSpecies);\n }\n\n if(this.searchTrait != null&& this.searchTrait.equals(\"null\") ==false && this.searchTrait.length()>0){\n\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"searchTrait\", this.searchTrait) ;\n }\n\n if(this.pvalue != null&& this.pvalue.equals(\"null\") ==false && this.pvalue.length()>0){\n\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"psitu\", this.psitu);\n map.put(\"pval\", this.pvalue) ;\n }\n\n\n //here, parse search param and get genotype information\n genotypeBeanList = (List<GenotypeBean>) baseService.findResultList(\"cn.big.gvk.dm.Genotype.selectGenotypeByPos\",map);\n if(genotypeBeanList != null && genotypeBeanList.size() > 0 ){\n for(GenotypeBean tbean :genotypeBeanList ){\n List genotypelist = new ArrayList();\n genotypelist.add(tbean.getGenotypeId()) ;\n\n Map t = new HashMap();\n t.put(\"genotypelist\",genotypelist);\n List<GenotypeAnnotateGeneView> annotateview = baseService.findResultList(\"cn.big.gvk.dm.Genotype.selectGenotypeByList\",t);\n if(annotateview != null && annotateview.size()>0 ){\n //here we need to filter the result\n Map filtermap = new HashMap();\n for(GenotypeAnnotateGeneView tview : annotateview){\n String fkey = tview.getMapGeneId()+\"_\"+tview.getConseqtype();\n if(filtermap.containsKey(fkey) == false){\n filtermap.put(fkey,tview);\n }\n }\n\n if(filtermap.size()>0){\n List<GenotypeAnnotateGeneView> alist = new ArrayList<GenotypeAnnotateGeneView>();\n Iterator it = filtermap.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry entry = (Map.Entry) it.next();\n GenotypeAnnotateGeneView val = (GenotypeAnnotateGeneView) entry.getValue();\n alist.add(val);\n }\n\n tbean.setGenotypeAnnotateGeneView(alist);\n }\n\n\n }\n\n //find association count\n GwasAssociationBean gwas = (GwasAssociationBean) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectAssociationCountByGenotypeid\",tbean.getGenotypeId());\n if(gwas != null){\n tbean.setTraitCount(gwas.getGwasCount());\n }\n\n //find studycount\n Map cmap = new HashMap();\n cmap.put(\"genotypeId\",tbean.getGenotypeId());\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n cmap.put(\"species\",this.searchSpecies);\n }\n\n\n GwasAssociationBean tg_bean1 = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectStudyCountByGenotypeid\",cmap);\n if(tg_bean1 != null ){\n tbean.setStudyCount(tg_bean1.getGwasCount());\n }\n\n }\n\n\n\n }\n\n StringBuffer sb = new StringBuffer() ;\n\n if(genotypeBeanList != null && genotypeBeanList.size()>0){\n for(GenotypeBean genotype: genotypeBeanList){\n sb.append(genotype.getVarId()).append(\"\\t\").append(genotype.getChrom()).append(\":\")\n .append(genotype.getStartPos()).append(\"\\t\").append(genotype.getTraitCount())\n .append(\"\\t\").append(genotype.getStudyCount()).append(\"\\n\");\n }\n }\n\n if(format == 1 ){ //export txt\n this.response.reset();\n this.response.setHeader(\"Content-Disposition\",\n \"attachment;filename=export.txt\");\n this.response.setContentType(\"application/ms-txt\");\n try {\n PrintWriter pr = this.response.getWriter();\n pr.print(sb.toString());\n pr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "List<ReportPair> getParameterValues(String hsql);", "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"lapangan\", lapangan);\n params.put(\"jam\", jam);\n params.put(\"durasi\", durasi);\n\n return params;\n }", "private void setupColumnHashTable() {\n this.columnHashTable = new Hashtable<>();\n \t\n /* Column representations */\n this.columnHashTable.put((char)0x20, 0);\n this.columnHashTable.put('=', 4);\n this.columnHashTable.put('<', 5);\n this.columnHashTable.put('>', 6);\n this.columnHashTable.put(':', 7);\n this.columnHashTable.put('+', 8);\n this.columnHashTable.put('-', 9);\n this.columnHashTable.put('*', 10);\n this.columnHashTable.put('/', 11);\n this.columnHashTable.put('%', 12);\n this.columnHashTable.put('.', 13);\n this.columnHashTable.put('(', 14);\n this.columnHashTable.put(')', 15);\n this.columnHashTable.put(',', 16);\n this.columnHashTable.put('{', 17);\n this.columnHashTable.put('}', 18);\n this.columnHashTable.put(';', 19);\n this.columnHashTable.put('[', 20);\n this.columnHashTable.put(']', 21);\n this.columnHashTable.put('\\n', 22);\n this.columnHashTable.put((char)0x7f, 23);\n this.columnHashTable.put('@', 25);\n }" ]
[ "0.59834975", "0.5354521", "0.53505003", "0.5339089", "0.52745366", "0.5263533", "0.5245766", "0.51612526", "0.5154267", "0.5077371", "0.50744444", "0.5062217", "0.49969804", "0.4982239", "0.49560833", "0.4955466", "0.4928827", "0.4903732", "0.49023303", "0.4894302", "0.4894203", "0.48616204", "0.48278338", "0.48276508", "0.4827616", "0.48046216", "0.48037726", "0.47953454", "0.47887677", "0.47786477", "0.47780508", "0.4772211", "0.47704846", "0.47679615", "0.47551218", "0.4718099", "0.47032627", "0.46913618", "0.46877468", "0.46695718", "0.46683672", "0.46569645", "0.46526158", "0.46459323", "0.4645611", "0.463752", "0.46369186", "0.4629031", "0.46248233", "0.46217725", "0.46197018", "0.4617614", "0.45992926", "0.45957693", "0.4585935", "0.45849764", "0.45842725", "0.45785436", "0.45701063", "0.45674378", "0.45640463", "0.4562257", "0.45618397", "0.45543513", "0.4542562", "0.4537303", "0.45349243", "0.45345455", "0.45322627", "0.45296377", "0.45293957", "0.45293295", "0.45269707", "0.45269707", "0.45200518", "0.45164153", "0.45148748", "0.45139903", "0.45119035", "0.4506077", "0.45045385", "0.45027456", "0.45001096", "0.4498834", "0.44977054", "0.44975698", "0.4495424", "0.44949052", "0.44919494", "0.44863155", "0.4481321", "0.4479431", "0.44790784", "0.44760278", "0.4474998", "0.4470069", "0.44634727", "0.446327", "0.44568437", "0.44542772", "0.44534767" ]
0.0
-1
Gets the out data.
public void getOutData(String line) { Matcher myMatcher = myPattern.matcher(line); myMatcher.find(); myMatcher.matches(); myMatcher.matches(); // *--- GROUP 3(X) 4(Y) 5(Z) --*// if (myMatcher.group(3) != null) xAxis = Double.parseDouble(myMatcher.group(3)); else { xAxis = Double.NaN; } if (myMatcher.group(4) != null) yAxis = Double.parseDouble(myMatcher.group(4)); else { yAxis = Double.NaN; } if (myMatcher.group(5) != null) zAxis = Double.parseDouble(myMatcher.group(5)); else { zAxis = Double.NaN; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object getData() {\n return outputData;\n }", "@Override\n public Object getData() {\n return new String(outputData);\n }", "public long getOutBytes() {\n return outBytes.get();\n }", "public static long getBytesOut() {\n return bytesOut;\n }", "@Override\n\tpublic void GetOut() {\n\t\t\n\t}", "public TestOut getOutput() {\n\treturn(output);\n }", "public long getBytesOut()\n {\n return fBytesOut;\n }", "public String getOutput() {\r\n return innerStream.getString();\r\n }", "public String getOutput() {\n myLock.lock();\n try {\n return myOutput.toString();\n }\n finally {\n myLock.unlock();\n }\n }", "public DataMatrix getOutputData() {\n return this.dataOutput;\n }", "public static DataOutputStream getData(OutputStream out) {\n return new DataOutputStream(get(out));\n }", "com.google.protobuf.ByteString\n getOutputBytes();", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "public String getData()\n\t{\n\t\treturn data;\n\t}", "public String getData() {\r\n\t\treturn data;\r\n\t}", "public Output getOutput() {\n\t\treturn output;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r\n\t\t}", "public String getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public String getData() {\n\treturn data;\n }", "public String getData() {\n\t\treturn this.data;\n\t}", "public Object getData(){\n\t\treturn this.data;\n\t}", "public String getData() {\r\n return this.data;\r\n }", "public java.lang.String getData() {\r\n return data;\r\n }", "public String getData() {\r\n return Data;\r\n }", "public String getData() {\r\n return Data;\r\n }", "public StreamResult getOutput() {\n return output;\n }", "public Object getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public synchronized Object getData() {\n return data;\n }", "public String getData()\n {\n return data;\n }", "public Object getData() {\n\t\treturn data;\n\t}", "public T getData()\n\t{\n\t\treturn this.data;\n\t}", "private void dumpResponse(ByteArrayOutputStream out) {\n try {\n OutputStream file = new BufferedOutputStream(new FileOutputStream(new File(dumpDir, dataRspFile)));\n file.write(out.toByteArray());\n file.flush();\n file.close();\n } catch (Exception e) {\n try {\n String s = new String(out.toByteArray(), \"utf-8\");\n Log.i(TAG, \"----------------rsp data begin---------------------\");\n Log.i(TAG, s);\n Log.i(TAG, \"----------------rsp data end-----------------------\");\n } catch (Exception e2) {\n\n }\n }\n }", "public static StringBuilder getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getOutputValue() {\n// System.out.println(\"geting output value from connection\");\n// System.out.println(\"out:\" + ncOutput.getName() + \" in:\" + ncInput.getName() );\n return _output.getOutputValue();\n }", "public String getOutput() {\n\t\treturn results.getOutput() ;\n\t}", "public JSONArray getOutput() {\n\t\treturn output;\n\t}", "public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i++) {\n for(int k = 0; k < this.buffer.get(i).size(); k++) {\n aux = this.buffer.get(i).get(k);\n str = str + Character.toString((char)aux);\n }\n str = str + \"\\n\";\n }\n return str;\n }", "Map<String, ?> getOutputData();", "public com.google.protobuf.ByteString\n getOutputBytes() {\n java.lang.Object ref = output_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n output_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public T getData()\n\t{ \treturn this.data; }", "byte[] getData() {\n return data;\n }", "public T getData() {\n return this.data;\n }", "public String getOutput() {\n return output.toString();\n }", "public byte[] Get_Data() throws IOException {\n byte[] ret = new byte[512];\n DatagramPacket packet = new DatagramPacket(ret, ret.length);\n\n socket.receive(packet);\n\n length = ret.length;\n return ret;\n }", "public com.google.protobuf.ByteString\n getOutputBytes() {\n java.lang.Object ref = output_;\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 output_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Object getCallOutput() {\n\t\treturn null;\n\t}", "@Override\n\tpublic LinkedHashMap<String, Object> output()\n\t{\n\t\treturn this._data;\n\t}", "String getData();", "public String getLocalOutput(){\r\n\t\treturn this.localOutput;\r\n\t}", "T getData() {\n\t\treturn data;\n\t}", "Object getRawData();", "public String getOutput() {\n return output;\n }", "public String getText(){\n return this.sOut.toString();\n }", "public T getData() {\r\n return data;\r\n }", "public byte[] getData() {\n\treturn null;\n }", "public String getReturnData() {\n return returnData;\n }", "public byte[] getData() {\n return this.data;\n }", "@Override\r\n\tpublic OutputStream getOutStream() {\n\t\treturn outStreamServer;\r\n\t}", "public String getOutputString()\n\t{\n\t\treturn outputString;\n\t}", "private byte[] outgoingBytes() {\n\t\t// collect all options outgoing bytes.\n\t\tfor (Option o : options) {\n\t\t\toutWriter.write(o.outgoing(outStream, this));\n\t\t}\n\t\t\n\t\t// Convert to byte[] array for writing.\n\t\tbyte[] out = outStream.toByteArray();\n\t\toutStream.reset();\n\t\t\n\t\treturn out;\n\t}", "public PData getData() {\n\t\treturn data;\n\t}", "public java.lang.String getOutput() {\n java.lang.Object ref = output_;\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 output_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOutput() {\n java.lang.Object ref = output_;\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 output_ = s;\n return s;\n }\n }", "java.lang.String getData();", "public byte[] getData() {\n return data;\n }", "public Object data() {\n return this.data;\n }", "@Override\n public long readData(OutputStream out) {\n try {\n return IOUtils.copy(new FileInputStream(getFile()), out);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public String data() {\n return this.data;\n }", "public String getData ()\n {\n if ( this.isAlive() )\n throw new IllegalStateException(\"getData: thread is still running\");\n return this.data.toString();\n }", "protected ScServletData getData()\n {\n return ScServletData.getLocal();\n }", "private void dumpQuery(ByteArrayOutputStream out) {\n try {\n OutputStream file = new BufferedOutputStream(new FileOutputStream(new File(dumpDir, dataReqFile)));\n file.write(out.toByteArray());\n file.flush();\n file.close();\n } catch (Exception e) {\n try {\n String s = new String(out.toByteArray(), \"utf-8\");\n Log.i(TAG, \"----------------query data begin---------------------\");\n Log.i(TAG, s);\n Log.i(TAG, \"----------------query data end-----------------------\");\n } catch (Exception e2) {\n\n }\n }\n }", "public byte[] getByteData() { return bytedata; }", "protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }", "public long getData() {\n return data;\n }", "public byte[] getDataPacket() {\n return packetProvidersIterator.next().getDataPacket();\n }", "@Override\r\n\t\tpublic Meta_data getData() {\n\t\t\treturn this.data;\r\n\t\t}", "public byte[] getData() {\n if (this.length==0) {\n return new byte[0];\n }\n return data;\n }", "public String lastOutput() throws IOException {\n stream.flush();\n os.flush();\n return os.asString();\n }", "public OutputStream getOutputStream() {\n return outStream;\n }", "OutputStream getOutputStream();", "public Object getData() \n {\n return data;\n }", "protected void writeData(DataOutput output) throws IOException {\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bout);\n oos.writeObject(returnValue);\n\n output.write(getOperationStatus());\n \n if (operationStatus != ProtocolOpcode.OPERATION_OK) {\n output.write(getException());\n } else {\n output.writeInt(bout.size());\n output.write(bout.toByteArray());\n }\n }", "public byte[] GetBytes() {\n return data;\n }", "public Object getData();", "public String getOutValue(){\n return null;\n }", "OutputStream getOutputStream()\n {\n return outputStream;\n }", "public int getData()\n\t{\n\t\treturn data;\n\t}", "String getOutput();", "public Output<T> output() {\n return output;\n }", "@java.lang.Override\n public godot.wire.Wire.Value getData() {\n return data_ == null ? godot.wire.Wire.Value.getDefaultInstance() : data_;\n }", "public T getData(){\n return this.data;\n }", "public String getDataInternal() {\n\t\treturn this.appTda_.getPassedInParameters();\n\t}", "byte[] getData();" ]
[ "0.767042", "0.7277497", "0.68880844", "0.67329067", "0.6592785", "0.65884244", "0.6501864", "0.64936113", "0.6457657", "0.6414914", "0.63867027", "0.633285", "0.62970525", "0.6292528", "0.626412", "0.6258244", "0.6257262", "0.6257262", "0.6257262", "0.6257262", "0.625558", "0.6255423", "0.6252713", "0.6239144", "0.6226727", "0.62120694", "0.62000614", "0.6195103", "0.6195103", "0.61934084", "0.6182502", "0.61767465", "0.617234", "0.61569697", "0.61489207", "0.61411977", "0.61324894", "0.6122255", "0.6122255", "0.6122255", "0.6122255", "0.6120405", "0.6111375", "0.610349", "0.60964847", "0.6096279", "0.6094786", "0.6089884", "0.6046078", "0.6037686", "0.60360533", "0.6030747", "0.6025862", "0.60165966", "0.6013487", "0.6003927", "0.5988961", "0.5976513", "0.5974863", "0.5974037", "0.5966949", "0.596366", "0.59533995", "0.5944682", "0.5941724", "0.59333986", "0.59317476", "0.5928234", "0.5924627", "0.5922542", "0.591362", "0.5912544", "0.59102666", "0.5892576", "0.5891895", "0.58793795", "0.58789325", "0.5876697", "0.5848576", "0.58205533", "0.5812187", "0.581032", "0.5799706", "0.5798844", "0.57960314", "0.57817745", "0.578093", "0.577471", "0.57721716", "0.5765724", "0.5761128", "0.575106", "0.5738318", "0.5731289", "0.5731197", "0.5729512", "0.5728157", "0.5727897", "0.5722855", "0.5721021", "0.57174325" ]
0.0
-1
Root of the tree
public int insert(){ // Wrapper insert function, passes random values to insert integer data in the tree. Random rn = new Random(); for (int i = 0; i < 10; ++i) { insert(3); insert(5); insert(9); insert(5); insert(8); insert(1); insert(7); insert(4); insert(3); } return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected TreeNode<E> getRoot() {\n\t\treturn root;\n\t}", "public Node getRoot(){\r\n return this.root;\r\n }", "public TreeNode root() {\n\t\treturn root;\n\t}", "public RBNode<T, E> getRoot() {\r\n\t\treturn root;\r\n\t}", "public Node getRoot() {\r\n\r\n\t\treturn root;\r\n\t}", "public ObjectTreeNode getRoot() {\n return root;\n }", "@Override\r\n\tpublic Node<T> getRoot() {\r\n\t\treturn raiz;\r\n\t}", "public TreeNode<E> getRoot() {\r\n\t\treturn root;\r\n\t}", "public int getRoot(){\n\t\t\treturn root;\n\t\t}", "public Object getRoot(){\r\n\t\treturn _root;\r\n\t}", "public TreeNode<E> getRoot() {\n return root;\n }", "public AVLNode getRoot() {\n return root;\n }", "protected BSTNode root() {\n\t\treturn root;\n\t}", "public Node getRoot() {\n return root;\n }", "public Node getRoot() {\n return root;\n }", "public Node getRoot() {\n return root;\n }", "public WAVLNode getRoot() // return the root of the tree\r\n {\r\n return root;\r\n }", "public Node<T> getRoot() {\n\t\treturn root;\n\t}", "public Node getRoot() {\n return root;\n }", "public WAVLNode getRoot()\r\n\t {\r\n\t\t return this.root;\r\n\t }", "private RBNode<T> getRoot(){\n return root.getLeft();\n }", "public Node<T> getRoot() {\n return root;\n }", "public AVLNode<T> getRoot() {\n return root;\n }", "protected IsamIndexNode getRoot() {\n\t\treturn root;\n\t}", "public int getRoot() {\n return _root;\n }", "BTNode<T> getRoot();", "T getRoot();", "public Object getRoot() {\n\t\treturn null;\n\t}", "public BSTNode<T> getRoot() {\n // DO NOT MODIFY THIS METHOD!\n return root;\n }", "public DialogueNode getRoot() {\n\t\treturn root;\n\t}", "public HPTNode<K, V> root() {\n return root;\n }", "public IAVLNode getRoot() {\n\t\treturn this.root;\n\t}", "public MyBinNode<Type> getRoot(){\n return this.root;\n }", "public BSTNode<T> getRoot() {\n return root;\n }", "public DefaultMutableTreeNode getRoot()\n {\n return root;\n }", "public String getRoot();", "public String getRoot() {\n\t\treturn null;\n\t}", "public Commit getRoot(){\n\t\treturn myRoot;\n\t}", "public abstract MetricTreeNode getRoot();", "<T> T getRoot();", "public String getRoot() {\n return root;\n }", "private void buildRoot() {\n this.root = new GPRootTreeNode(this.tree);\n }", "public TreeRootNode() {\n super(\"root\");\n }", "@Override\n public Object root() {\n return root;\n }", "@Override\n public Object root() {\n return root;\n }", "BiNode root()\n {\n return _root;\n }", "@Override\r\n public NamedTreeNode<T> getRoot()\r\n {\r\n return head;\r\n }", "public BinaryTreeNode<T> getRootNode(){\n\t\treturn root;\n\t}", "public pt.ist.fenixframework.adt.bplustree.AbstractNodeArray getRoot() {\n return this.root.get();\n }", "public Git.Entry getRoot() { \n Node c = this; \n while (c.par != null) c = c.par;\n return c.getObject();\n }", "public MoveTrieNode getRoot() {\n return root;\n }", "public Region getRoot() {\r\n return root;\r\n }", "public PhyloTreeNode getOverallRoot() {\n return overallRoot;\n }", "public Object\tgetRoot() {\n \treturn root;\n }", "private HPTNode<K, V> buildRoot() {\n HPTNode<K, V> node = new HPTNode<K, V>(keyIdSequence++, null);\n node.children = reallocate(ROOT_CAPACITY);\n return node;\n }", "TrieNode root();", "public final Node GetRootNode(){\n return m_pRoot;\n }", "private HtmlElement getRoot()\n\t{\n\t\treturn getBaseRootElement( ROOT_BY );\n\t}", "public MappingRoot getRoot() { return _root; }", "public static ParseTree getRoot(ParseTree tree) {\n\t\tParseTree parent = tree.getParent();\n\t\tif (parent == null) {\n\t\t\treturn tree;\n\t\t}\n\t\treturn getRoot(parent);\n\t}", "@Override\n public Object getRoot() {\n if (this.getParent() == null) {\n return this;\n }\n return this.getParent().getRoot();\n }", "public BTNode getRootNode() {\n return mRoot;\n }", "public SVGElementModel getRoot() {\n \t\treturn store.getRootItems().get(0);\n \t}", "public KeyedItem getRoot() throws TreeException {\r\n\r\n\t\tif (root != null) {\r\n\t\t\treturn root;\r\n\t\t} else\r\n\t\t\tthrow new TreeException(\"Tree is empty\");\r\n\t}", "public T rootValue() {\n if (root == null) throw new IllegalStateException(\"Empty tree has no root value\");\n return root.value;\n }", "public I_LogicalAddress getRoot() {\n return root;\n }", "public Tree(){\n root = null;\n }", "java.lang.String getRoot();", "public Tree() // constructor\n\t{ root = null; }", "OntologyTerm getRoot();", "public RBTree() {\r\n\t\troot = null;\r\n\t}", "public IRNode getRoot(IRNode subtree);", "public int getRootValue() {\n if (root == null) {\n return 0;\n } else {\n return root.getValue();\n }\n }", "@Override\r\n public FileName getRoot() {\r\n FileName root = this;\r\n while (root.getParent() != null) {\r\n root = root.getParent();\r\n }\r\n\r\n return root;\r\n }", "public AVLTree() {\n\t\tthis.root = null;\n\t}", "public AVLTree() { \n super();\n // This acts as a sentinel root node\n // How to identify a sentinel node: A node with parent == null is SENTINEL NODE\n // The actual tree starts from one of the child of the sentinel node !.\n // CONVENTION: Assume right child of the sentinel node holds the actual root! and left child will always be null.\n \n }", "public IntTree() {\n overallRoot = null;\n }", "public KdTree() {\n root = null;\n }", "protected abstract RootVertex<D> getRoot(R root);", "String getDefaultRoot() {\n return mDefaultRoot;\n }", "public Pane getRoot() {\n \treturn _root;\n }", "private BinaryTree() {\n root = new Node(0);\n }", "public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }", "public void root(Node n) {}", "public Integer getRoot(){\n\t\tif(root != null) {\n\t\t\treturn root.element;\n\t\t}\n\t\treturn null;\n\t}", "public Loop getRoot() {\n\t\tfor (Loop lp : parent.keySet()) {\n\t\t\tif (parent.get(lp)==null) return lp;\n\t\t}\n\t\treturn null;\n\t}", "public RedBlackTree()\n { \n \t root = null;\n }", "public Tree() {\n // constructor. no nodes in tree yet\n root = null;\n }", "public final Node getRootContext() {\n return rootContext;\n }", "Position<E> root();", "@Override\r\n\tpublic T getRootElement() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(this.root == null) {\r\n\t\treturn null;\r\n\t\t\r\n\t\t}\r\n\t\treturn this.root.data;\r\n\t}", "public BSearchTree() {\n\t\tthis.overallRoot = null;\n\t}", "private void createRootNode()\r\n {\r\n root = new Node(\"root\", null);\r\n Node.clear();\r\n }", "public BinaryTree()\n\t{\n\t\troot = null;\n\t}", "public BST(){\n\t\tthis.root = null;\n\t}", "public BST() {\n\t\troot = null;\n\t}", "RootNode getRootNode();", "public AVLTree() \r\n\t{\r\n\t\tthis.root = new AVLNode(null);\r\n\t}", "public TreeBuilder() {\n\t\troot = null;\n\t}", "public File getRoot() {\n return this.root;\n }", "private TreeItem<FilePath> createTreeRoot() {\n TreeItem<FilePath> root = new TreeItem<>(new FilePath(Paths.get(ROOT_FOLDER)));\n root.setExpanded(true);\n return root;\n }" ]
[ "0.8149333", "0.8107643", "0.80978054", "0.8087067", "0.80690074", "0.8045677", "0.80109525", "0.79924613", "0.7976298", "0.7956751", "0.7949849", "0.7948327", "0.7923615", "0.7920674", "0.7920674", "0.7920674", "0.79140246", "0.79137707", "0.78966236", "0.7837237", "0.78288895", "0.782606", "0.78093535", "0.77998364", "0.7796831", "0.77328634", "0.773098", "0.77171993", "0.7714479", "0.76746863", "0.766297", "0.76459503", "0.76266116", "0.7606499", "0.7564947", "0.75439394", "0.75065976", "0.7504005", "0.75019133", "0.7500952", "0.74890286", "0.7473656", "0.7461308", "0.7425392", "0.7425392", "0.74215525", "0.7402502", "0.7392718", "0.73618686", "0.7359527", "0.73042333", "0.729263", "0.7280957", "0.72800833", "0.72122914", "0.7206992", "0.71595854", "0.71578395", "0.715685", "0.71230024", "0.7118723", "0.71157986", "0.7085947", "0.7079346", "0.7076556", "0.7051692", "0.7035303", "0.7027681", "0.70134944", "0.6997119", "0.69948816", "0.69922763", "0.6973555", "0.69556075", "0.6946571", "0.6936849", "0.6936084", "0.69249314", "0.69153446", "0.68931806", "0.68796706", "0.6868999", "0.68580896", "0.68489975", "0.68378943", "0.68367994", "0.6817007", "0.68077874", "0.6807069", "0.6805355", "0.67612636", "0.67513335", "0.67439604", "0.67364687", "0.67291594", "0.6728522", "0.67147017", "0.6711584", "0.66997075", "0.6698938", "0.66895235" ]
0.0
-1
Insert function, calls tnode insert function and passes in integer data
protected int insert(int toAdd){ tnode object = new tnode(); return object.insert(toAdd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(int data) {\r\n \r\n // call the private insert method with root and data\r\n root = insert(root, data);\r\n }", "public void insert(int data)\r\n {\r\n root = insert(root, data);\r\n }", "public void insertNode(int data){\r\n\t\troot = insert(data, root);\r\n\t}", "public void insert(int data) { \n\t\troot = insert(root, data);\t\n\t}", "public void insert(int data)\n\t{\n\t\tSystem.out.println(\"Inserting in: \" + data);\n\t\troot = insert(root, data);\n\t}", "public void insert(int data) {\n root = insert(root, data, null);\n }", "public void insert(int data) {\n root = insert(root, data);\n size++;\n }", "void insert(int data) { \n root = insertRec(root, data); \n }", "public void insert(T data)\r\n {\r\n root = insert(root, data);\r\n }", "public void insert(int data) {\n this.root = this.insertRec(this.root, data);\n }", "public void insert(T data){\n\t\troot = insert(data, root);\n\t}", "public void insert(int data) {\r\n // creating node\r\n Node node = new Node(data);\r\n // checking if list is empty, if the list is empty we will insert node at head\r\n if (head == null) {\r\n head = node;\r\n } else {\r\n // assigning head to a temp node, to travers the list and insert node at the end\r\n Node temp = head;\r\n // a loop to reach end of linked list\r\n while (temp.getNext() != null) {\r\n // if the next node is available, updating temp to refer next node\r\n temp = temp.getNext();\r\n }\r\n // now temp is referring to last node of the list\r\n temp.setNext(node);\r\n }\r\n }", "public int insert(){ // Wrapper insert function, passes random values to insert integer data in the tree.\n Random rn = new Random();\n\n\n for (int i = 0; i < 10; ++i)\n {\n insert(3);\n insert(5);\n insert(9);\n insert(5);\n insert(8);\n insert(1);\n insert(7);\n insert(4);\n insert(3);\n }\n return 1;\n }", "public void insert(Node n);", "public void insertAtAnyPoint(int index, int data) {\n\t\tNode node = new Node(); // defining random node\n\t\tnode.data = data; // putting data on it\n\t\tnode.next = null;\n\t\tNode n = head; // initial node\n\t\tif(index == 0){\n\t\t\tinsertAtStart(data);\n\t\t}else{\n\t\tfor (int i = 0; i < index-1; i++) {\n\t\t\tn = n.next;\n\t\t}\n\t\tnode.next = n.next;\n\t\tn.next = node;\n\t\t}\n\t}", "void insert(T value, int position);", "public void insert(T data) {\n\t\tBSTNode<T> add = new BSTNode<T>(data);\n\t\tBSTNode<T> tmp = root;\n\t\tBSTNode<T> parent = null;\n\t\tint c = 0;\n\t\twhile (tmp!=null) {\n\t\t\tc = tmp.data.compareTo(data);\n\t\t\tparent = tmp;\n\t\t\ttmp = c < 0 ? tmp.left: tmp.right;\n\t\t}\n\t\tif (c < 0) \tparent.left = add;\n\t\telse \t\tparent.right = add;\n\t\t\n\n\t\n\t}", "private BTNode<T> insert(T data, BTNode<T> node){\n\t\t// if the node does not exist, create it\n\t\tinsertCount++;\n\t\tif(node == null) return new BTNode<T>(data, null, null);\n\n\t\t//left placement\n\t\tinsertCount++;\n\t\tif(data.compareTo(node.getData()) <= 0) node.setLeft(insert(data, node.getLeft()));\n\n\t\telse node.setRight(insert(data, node.getRight()));\n\n\t\t//balance the tree after insertion\n\t\treturn balance(node);\n\t}", "public void insert(Object data, int index){\r\n enqueue(data);\r\n }", "private btNode insert(btNode node, int data)\r\n {\r\n if (node == null)\r\n node = new btNode(data);\r\n else\r\n {\r\n if (data <= node.getData())\r\n node.left = insert(node.left, data);\r\n else\r\n node.right = insert(node.right, data);\r\n }\r\n return node;\r\n }", "public void insert_begin(Object data)\n\t{\n\t\tnode nodes = new node((Integer)data);\n\n\t\tif(head == null)\n\t\t{\n\t\t\t//Singe_Linked_lists_class node = new Singe_Linked_lists_class((Integer)data);\n\t\t\tnodes.set_next_node();\n\t\t\tnodes.set_prev_node();\n\t\t\thead = nodes;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//node.set_data(data);\n\t\t\tnodes.set_next_node(head);\n\t\t\thead.set_prev_node(nodes);\n\t\t\tnodes.set_prev_node();\n\t\t\thead = nodes;\n\t\t}\n\t}", "public void insert(int i, T obj);", "private BSTNode insert(BSTNode node, int data) {\r\n \r\n // if the node is null, create a new node\r\n if (node == null) {\r\n \r\n // create new BSTNode node\r\n node = new BSTNode(data);\r\n }\r\n \r\n // if the node is not null, execute\r\n else {\r\n \r\n // if the data < parent, traverse left\r\n if (data < node.getData()) {\r\n \r\n // call the insert method on the left node\r\n node.left = insert(node.left, data); \r\n }\r\n \r\n // if data > parent, traverse right\r\n else if (data > node.getData()) {\r\n \r\n // call the insert method on the right node\r\n node.right = insert(node.right, data);\r\n }\r\n \r\n // if the data == parent, increment intensity count\r\n else {\r\n \r\n // call method to increment the node's intensity count\r\n node.incrementIntensityCount();\r\n }\r\n }\r\n \r\n // return the node\r\n return node;\r\n }", "public void insert(T data) {\n if (root == null) {\n root = new Node<>(data);\n } else {\n Node<T> current = root;\n Node<T> newNode = new Node<>(data);\n\n while (true) {\n if (newNode.compareTo(current) <= 0) {\n if (current.hasLeft()) {\n current = current.getLeft();\n } else {\n current.setLeft(newNode);\n break;\n }\n } else {\n if (current.hasRight()) {\n current = current.getRight();\n } else {\n current.setRight(newNode);\n break;\n }\n }\n }\n }\n size++;\n }", "public void insertAtBegin(int data){\n Node newNode = new Node(data);\n if (head == null){\n head = newNode;\n }else {\n Node node = head;\n head = newNode;\n newNode.next = node;\n node.prev = newNode;\n }\n\n }", "int insert(TagData record);", "public void insertAtHead(int data){\n\t\tif(head == null){\n\t\t\thead = new Node(data);\n\t\t\tsize ++;\n\t\t}else{\n\t\t\tNode temp = head;\n\t\t\thead = new Node(data);\n\t\t\thead.setNext(temp);\n\t\t\tsize ++;\n\t\t}\n\t}", "public void insertAtLast(int data) {\n\t\tNode node = new Node(); // Defining Object Of Node Class\n\t\tnode.data = data; // initializing the data from the end user to node\n\t\t\t\t\t\t\t// object\n\t\tnode.next = null; // Setting the next to null,since last node hold null\n\t\t\t\t\t\t\t// value\n\n\t\t// Checking the condition if there is not present data already,might be\n\t\t// the first node\n\t\tif (head == null) {\n\t\t\thead = node;\n\t\t} else {\n\t\t\tNode n = head; // starting from head itself\n\t\t\twhile (n.next != null) { // traversing the next element which is not\n\t\t\t\t\t\t\t\t\t\t// null\n\t\t\t\tn = n.next;\n\t\t\t}\n\t\t\tn.next = node;\n\n\t\t}\n\t}", "public void insert_head(int data)\n {\n Node newNode = new Node(data);\n if(head==null)\n {\n head = newNode;\n }\n else\n {\n newNode.setNext(newNode);\n head = newNode;\n }\n }", "public static Node insert(Node root,int data) {\r\n\t\t/* If the tree is empty, return a new node */\r\n if (root == null) { \r\n root = new Node(data); \r\n return root; \r\n } \r\n \r\n /* Otherwise, recur down the tree */\r\n if (data < root.data) \r\n root.left = insert(root.left, data); \r\n else if (data > root.data) \r\n root.right = insert(root.right, data); \r\n \r\n /* return the (unchanged) node pointer */\r\n return root; \r\n }", "public void insertAt(String insertData, int index) {\n\t\t// write you code for insertAt using the specification above\n\t\tif(index==0){\n\t\t\tadd(insertData);\n\t\t\treturn;\n\t\t}\n\t\tif(index<=size()){\n\t\t\tNode nodref = head;\n\t\t\tfor (int count = 0; count<index-1; count++){\n\t\t\t\tnodref=nodref.next;\n\t\t\t}\n\t\t\tNode adder = new Node(insertData);\n\t\t\tadder.next = nodref.next;\n\t\t\tnodref.next = adder; \n\t\t\tnumElements++;\n\t\t\treturn;\n\t\t}\n\t}", "private void insertFirst(T data){\n Node<T> node = new Node<T>(data);\n this.begin = node;\n this.end = node;\n }", "public void insert(T aData) {\r\n\t\tListNode newNode = new ListNode(aData, null);\r\n\t\tif (head == null) {\r\n\t\t\thead = curr = newNode;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tListNode temp = head;\r\n\t\t// Equivalent of the for loop for an array\r\n\t\twhile (temp.link != null) {\r\n\t\t\ttemp = temp.link;\r\n\t\t}\r\n\t\ttemp.link = newNode;\r\n\t}", "@Override\n public void insertAt(T data, int index) {\n if(index > -1 && index <= getSize()) {\n\n if(index == 0){\n this.addToFront(data);\n return;\n }\n if(index == getSize() + 1) {\n this.addToEnd(data);\n return;\n }\n\n Node<T> dataNode = new Node<T>();\n dataNode.setData(data);\n\n int position= 0;\n Node<T> tempData = this.head;\n while(tempData.getNext() != null){\n tempData = tempData.getNext();\n if(position == index - 1 ) {\n //Pointing newly added node, to the one pointed to by element at position = index-1\n dataNode.setNext(tempData.getNext());\n\n tempData.setNext(dataNode);\n break;\n }\n position++;\n }\n }else {\n throw new IndexOutOfBoundException(\"Cannot add Node at provided location\");\n }\n }", "void insert(T t);", "public void insertAtBeginning(int data) {\r\n //creating node\r\n Node node = new Node(data);\r\n //setting the next reference of node to refer to head or start of list\r\n node.setNext(head);\r\n // setting the head to refer node\r\n head = node;\r\n }", "public void insert(T x);", "private BTNode insert(BTNode node, T data)\r\n {\r\n if (node == null)\r\n node = new BTNode(data);\r\n else\r\n {\r\n if (node.getLeft() == null)\r\n node.left = insert(node.left, data);\r\n else\r\n node.right = insert(node.right, data); \r\n }\r\n return node;\r\n }", "public void insertBegin(T data){\n Node<T> node = new Node<T>(data);\n if(this.isEmpty()) {\n this.insertFirst(data);\n\n }\n else{\n this.begin.previous = node;\n node.next = this.begin;\n this.begin = node;\n }\n size++;\n }", "void insert(int idx, int val);", "public void insert(Integer data, int position) {\n\t\t// fix the position\n\t\tif (position < 0) {\n\t\t\tposition = 0;\n\t\t}\n\t\tif (position > length) {\n\t\t\tposition = length;\n\t\t}\n\n\t\t// if the list is empty, make it be the only element\n\t\tif (head == null) {\n\t\t\thead = new ListNode(data);\n\t\t}\n\t\t// if adding at the front of the list...\n\t\telse if (position == 0) {\n\t\t\tListNode temp = new ListNode(data);\n\t\t\ttemp.next = head;\n\t\t\thead = temp;\n\t\t}\n\t\t// else find the correct position and insert\n\t\telse {\n\t\t\tListNode previousNode = findPrevious(data);// find node before this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// one\n\t\t\tListNode newNode = new ListNode(data);//// Create a required node\n\t\t\t\t\t\t\t\t\t\t\t\t\t//// with the specified data\n\t\t\t\t\t\t\t\t\t\t\t\t\t//// and pointing to null\n\t\t\tnewNode.next = previousNode.next;// assign next pointer of newly\n\t\t\t\t\t\t\t\t\t\t\t\t// created newNode to Node to\n\t\t\t\t\t\t\t\t\t\t\t\t// which previous node was\n\t\t\t\t\t\t\t\t\t\t\t\t// connected\n\t\t\tpreviousNode.setNext(newNode);// now update pointer of previous node\n\t\t\t\t\t\t\t\t\t\t\t// to point to newNode\n\t\t}\n\t\t// the list is now one value longer\n\t\tlength += 1;\n\t}", "public synchronized void insert(int device, int type, int value) {\n\t}", "private static void insertAtHead(int data) {\n\tNode newnode=new Node(data);\n\tnewnode.next=head;\n\tnewnode.prev=null;\n\tif(head!=null)\n\t\thead.prev=newnode;\n\thead=newnode;\n\t\n}", "private Node insert(Node head, int data) {\n Node insert = new Node(data);\n if (head == null) {\n head = insert;\n } else if (head.next == null) {\n head.next = insert;\n } else {\n Node last = head;\n while (last.next != null) {\n last = last.next;\n }\n last.next = insert;\n }\n return head;\n }", "void insert(int val){\n\t\tthis.root = insertHelper(root, val);\n\t}", "public void insert(int X, int WT)\n {\n root = insert(X, WT, root);\n }", "@Override\n\tpublic void insert(Object data, int index) throws IndexOutOfBoundsException {\n\n\t\tif (index >= size() || index < 0) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\n\t\tNode newNode = new Node(data);\n\t\tif (index == 0) {\n\t\t\tnewNode.setNext(head);\n\t\t\thead = newNode;\n\t\t} else {\n\t\t\tNode currentNode = head;\n\t\t\tint currentIndex = 0; // current index\n\t\t\twhile (currentNode != null && currentIndex < index - 1) {\n\t\t\t\tcurrentNode = currentNode.getNext();\n\t\t\t\tcurrentIndex++;\n\t\t\t}\n\t\t\tNode previousNode = currentNode; // set the previous node come before the node at the current index\n\t\t\tNode nextNode = currentNode.getNext(); // set the next node to go after the one we are adding\n\t\t\tpreviousNode.setNext(newNode);\n\t\t\tnewNode.setNext(nextNode);\n\t\t}\n\t\tsize++;\n\n\t}", "public void insert(HuffmanTree node);", "public void insertAtStart(int data) {\n Node node = new Node();\n node.data =data;\n node.next=null;\n node.next=head;\n head=node;\n }", "public void insert(TKey key, TValue data) {\n Node n = new Node(key, data, true); // nodes start red\n // normal BST insert; n will be placed into its initial position.\n // returns false if an existing node was updated (no rebalancing needed)\n boolean insertedNew = bstInsert(n, mRoot); \n if (!insertedNew) return;\n // check cases 1-5 for balance violations.\n checkBalance(n);\n }", "private AVLNode insert(int data, AVLNode Node){\r\n\t\tif(Node == null){//if the node is the first node, it is root\r\n\t\t\treturn new AVLNode(null,null,data);\t\t\t\r\n\t\t}\r\n\t\telse if(data < Node.data){\r\n\t\t\tNode.left = insert(data,Node.left);\r\n\t\t\tNode = balanceTree(Node);\r\n\t\t}\r\n\t\telse if(data > Node.data){\r\n\t\t\tNode.right = insert(data,Node.right);\r\n\t\t\tNode = balanceTree(Node);\r\n\t\t}\r\n return Node;\r\n\t}", "public void insert(int index, char data)\n {\n if(index >= 0 && index <= numNodes){\n if(index == 0)\n {\n Node node = new Node(data);\n node.next = head;\n head = node;\n }\n else\n {\n //find your previous and your current\n Node curr = find(index);\n Node prev = find(index - 1);\n \n //add the new node with current as the successor and previous as the \n //predecessor\n Node node = new Node(data, curr);\n prev.next = node;\n }\n numNodes++;\n }\n else\n {\n throw new IndexOutOfBoundsException();\n }\n }", "public long insert();", "public void insert(int info) {\n\t\tnode one = new node(info);\n\t\tif(head != null) {\n\t\t\tone.next = head;\n\t\t} \n\t\thead = one;\n\n\t\t//OR\n\t\t//insertAt(info, 0);\n\t}", "public void insert(int nodeId, int priority) {\n // FILL IN CODE\n\n }", "public void insert(T info){\n NodeList<T> n = new NodeList<>();\n n.setInfo(info);\n n.setNext(first);\n this.first = n;\n }", "public void insertAtFirst(int data)\r\n\t{\r\n\t\tSystem.out.println(\"iam inserting at front :\");\r\n\t\tNode new_front = new Node(data);\r\n\t\tnew_front.right = root;\r\n\t\troot = new_front;\r\n\t}", "public void insertNodeToTheGivenIndex(int index, int data){\n int size = size(); // for performance improvement!\n\n //Index validation\n checkIndex(index);\n\n if(index==0){\n addNodeToTheStart(data);\n }else if(index==size){\n addNodeToTheEnd(data);\n }\n //Important\n Node newNode = new Node(data);\n Node current = head;\n Node previous = null;\n int i = 0;\n while(i<index){\n previous = current; //Update previous Node in the loop!\n current = current.next;\n i++;\n }\n newNode.next = current;\n assert previous != null;\n previous.next = newNode;\n }", "public native void insertData(double offset, String arg) /*-{\r\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\r\n\t\tjso.insertData(offset, arg);\r\n }-*/;", "public void insert(int val) throws DifferentOrderTrees {\r\n \tMonceau monceauTemp = new Monceau();\r\n \t\r\n \tmonceauTemp.arbres.add(new Node(val));\r\n \tthis.fusion(monceauTemp);\r\n }", "public void insert(int value){\n linkedList.insertLast(value);\n }", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "void insert(Object value, int position);", "public Node insert(Node node, Integer data) {\n if (node == null) {\n return new Node(data);\n } else if (data > node.getData()) {\n if (node.getRightChild() == null)\n node.setRightChild(new Node(data));\n else\n node.setRightChild(insert(node.getRightChild(), data));\n } else if (data < node.getData()) {\n if (node.getLeftChild() == null)\n node.setLeftChild(new Node(data));\n else\n node.setLeftChild(insert(node.getLeftChild(), data));\n } else return node;\n node.setHeight(1 + maximum(height(node.getLeftChild()), height(node.getRightChild())));\n Integer balance = getBalance(node);\n return rotateCase(node, data, balance);\n }", "public void insertAtStart(int data) {\n\t\tNode node = new Node();\n\t\tnode.data = data;\n\t\tnode.next = null;\n\t\tnode.next = head;\n\t\thead = node;\n\t}", "public void insertAtBeginning(int data) {\r\n if(head==null) {\r\n head = new ListNode(data);\r\n return;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n new_node.next=head;\r\n head=new_node;\r\n }", "void insert(int data, int position) {\n\t \n\t Node newNode = new Node(data); \n\t \n\t //Empty List - Returned newly created node or null\n\t if (head==null){\n\t \thead = newNode;\n\t \treturn;\n\t \t}\n\t \n\t //Inserting a Node before the head of the List\n\t if (position == 0){\n\t \tnewNode.next = head;\n\t \thead.prev = newNode;\n\t \thead = newNode;\n\t \treturn;\n\t \t} \n\n\n\t Node toIterate = new Node(data);\n\t toIterate = head; // A node equal to the head is created in order to find the new \n\t \t\t\t\t\t//position without changing the head\n\t \n\t for (int currPosition = 0; currPosition < position -1 && toIterate.next != null; toIterate = toIterate.next){ \n\t currPosition++; \n\t }\n\n\t //Inserting a Node in-between a List or at the end of of a List\n\t newNode.next = toIterate.next;\n\t toIterate.next.prev = newNode;\n\t newNode.prev = toIterate;\n\t toIterate.next = newNode;\n\t \n\t}", "public int insertSensorData(DataValue dataVal) throws Exception;", "public void insert(int pos,int data)\n{\n Node n=new Node(data);\nint count=1;\nNode last=head;\n\nif(pos==0)\n{\n n.next=last;\n head=n;\n}\nelse\n{\nif(pos>length())\n{\n pos=length();\n}\nwhile(count<pos)\n{\n last=last.next;\ncount++;\n}\nn.next=last.next;\nlast.next=n;\n}\n}", "public Node<T> insert(T data){\n Node<T> newnode=new Node<T>(data);\n newnode.next=null;\n if(head==null){\n head=newnode;\n }\n else{\n Node temp=head;\n while(temp.next!=null) {\n temp = temp.next;\n }\n temp.next=newnode;\n }\n return head;\n }", "int insert(Ttoken record);", "public void insert(T o);", "public void insertTest(T info){\n NodeList<T> n = new NodeList<>();\n n.setInfo(info);\n n.setNext(first);\n this.first = n;\n }", "public void insertNode(int d){\n if(root == null){\n root = new TreeNode(d);\n }\n else{\n root.insert(d);\n }\n }", "public void insert()\n\t{\n\t}", "public void insert(T insertValue){\n // insert in left subtree\n if(insertValue.compareTo(data) < 0){\n // insert new TreeNode\n if(leftNode == null)\n leftNode = new TreeNode<T>(insertValue);\n else\n leftNode.insert(insertValue);\n }\n\n // insert in right subtree\n else if (insertValue.compareTo(data) > 0){\n // insert new treeNode\n if(rightNode == null)\n rightNode = new TreeNode<T>(insertValue);\n else // continue traversing right subtree\n rightNode.insert(insertValue);\n }\n }", "public int insert(int data)\n {\n boolean inserted = false;\n int position;\n int currentValue;\n int moves = 0;\n resized = false;\n currentHash = 1;\n\n if(data == 0)\n return -1; // invalid value\n\n if(contains(data))\n return -1;\n\n // Check if threshold would be reached\n if((numElements+1.0)/(2.0*n) >= threshold)\n {\n resize();\n resized = true;\n }\n\n elements.add(data);\n\n while(!inserted)\n {\n position = doHash(data);\n currentValue = getArrayValue(position);\n if(currentValue == 0)\n {\n setArrayValue(position, data);\n inserted = true;\n numElements++;\n }\n else\n {\n setArrayValue(position,data);\n data = currentValue;\n switchHashAndArray();\n moves += 1;\n }\n if(moves >= chainLength)\n {\n resize();\n resized = true;\n moves = 0;\n }\n\n }\n\n return data;\n\n }", "public void insertNode(T d) {\n /* Functions to insert data */\n TreeNode newNode = new TreeNode(d);\n nodesToInsertAt.add(newNode);\n size++;\n if(root == null){\n root = newNode;\n return;\n }\n TreeNode current; \n current = nodesToInsertAt.get(0);\n if(current.left == null){\n current.left = newNode;\n return;\n }\n if(current.right == null){\n current.right = newNode;\n nodesToInsertAt.remove(0);\n }\n }", "public void insert(E data, int index) {\r\n\t\tcheckIndex(index);\r\n\t\t\r\n\t\t// If add the index is the tail of the LinkList, call add(data)\r\n\t\tif(index == size) {\r\n\t\t\tadd(data);\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\tNode<E> newNode = new Node<E>(data, null);\r\n\t\t\r\n\t\t// Get the (index-1)th node\r\n\t\tNode<E> beforeNode = findNode(index);\r\n\t\tnewNode.link = beforeNode.link;\r\n\t\tbeforeNode.link = newNode;\r\n\t\tsize++;\r\n\t\t}\r\n\t}", "public void insert(int newData) {\n\t\t\n\t\t//check if newdata less than current data\n\t\tif(newData < data) {\n\t\t\t\n\t\t\t// if left equal null\n\t\t\tif(left == null) {\n\t\t\t\tleft = new BinaryTreeNode(newData);\n\t\t\t} else { // left != null\n\t\t\t\tleft.insert(newData);\n\t\t\t}\n\t\t\t\n\t\t\t// check data\n\t\t} else if(newData > data) {\n\t\t\t\n\t\t\t// if right equal null\n\t\t\tif(right == null) {\n\t\t\t\tright = new BinaryTreeNode(newData);\n\t\t\t} else { // right != null\n\t\t\t\tright.insert(newData);\n\t\t\t} //end of if else \n\t\t} else {\n\t\t\tSystem.out.println(\"Duplicate - not adding\" + newData);\n\t\t} // end of if else \n\t}", "public void insertNode(T insertValue){\n if(root == null)\n root = new TreeNode<T>(insertValue);\n else\n root.insert(insertValue);\n }", "public void insert(int val) {\n root = insertRec(root, val);\n }", "int insert(FunctionInfo record);", "<T> int insert(T obj);", "public void insert(int data) {\n if (this.size < this.maxsize) {\n // Insert\n Heap[++size] = data;\n\n // Heap properties can get violated\n int current = this.size;\n while (Heap[current] > Heap[parent(current)]) {\n swap(current, parent(current));\n current = parent(current);\n }\n }\n }", "public void insertNode(int val)\r\n {\r\n temp=new TriLinkNode();\r\n temp.v1=val;\r\n temp.d1=false;\r\n temp.i1=true;\r\n if(root==null)\r\n {\r\n root=temp;\r\n }else\r\n {\r\n recInsertNode(root);\r\n }\r\n \r\n }", "void insert(int key, String data)\n\t\tthrows IllegalArgumentException;", "public void insert(int pos, int data){\n\t\tif (pos == 0){\n\t\t\tpreappend(data);\n\t\t\treturn;\n\t\t}\n\n\t\tNode newNode = new Node(data);\n\t\tNode prev = this.head;\n\t\tNode current = prev;\n\t\tint counter = 0;\n\t\twhile(current != null){\n\t\t\tcurrent = current.next;\n\t\t\tcounter++;\n\t\t\tif (counter == pos){\n\t\t\t\tprev.next = newNode;\n\t\t\t\tnewNode.next = current;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (prev.next != null){\n\t\t\t\tprev = prev.next;\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Position larger then linkedlist so add to end\n\t\tprev.next = newNode;\n\t\treturn;\n\t}", "public void insert(E data){\n \t// Preform a regular insert\n // Check to make sure the tree remains an RBT tree\n\tNode<E> z = new Node<E>(data); //In the book, data is defined as a Node called z so I decided to do the same\n\tNode<E> y = sentinel; //In the book, y is assigned to the sentinel\n\tNode<E> x = root; //Node x is assigned to the root\n\twhile (x != sentinel) { //The first instance of null is replaced by the sentinel\n\t\ty = x;\n\t\tif (z.getData().compareTo(x.getData()) < 0) {\n\t\t\tx = x.getLeftChild();\n\t\t} else {\n\t\t\tx = x.getRightChild();\n\t\t}\n\t}\n\tz.setParent(y);\n\tif (y == sentinel) {\n\t\troot = z;\n\t} else {\n\t\tif (z.getData().compareTo(y.getData()) < 0) {\n\t\t\ty.setLeftChild(z);\n\t\t} else {\n\t\t\ty.setRightChild(z);\n\t\t}\n\t}\n\n\t//This is used to maintain the proper tree structure and RB properties\n\tz.setLeftChild(sentinel); //Set z.left is set to the sentinel\n\tz.setRightChild(sentinel); //Set z.right is set to the sentinel \n\tz.setColor('R');\n\n\t//Going to change z's positioning in the tree with this function, fixInsert()\n\tfixInsert(z);\n }", "private NodeTest insert(NodeTest root, int data)\n\t{\n\t\t//if the root is null just return the new NodeTest.\n\t\t//or if we finally reach the end of the tree and can add the new NodeTest/leaf\n\t\tif (root == null)\n\t\t{\n\t\t\treturn new NodeTest(data); //creates the NodeTest\n\t\t}\n\t\t//if the data is smaller that the root data, go to the left\n\t\telse if (data < root.data)\n\t\t{\n\t\t\troot.left = insert(root.left, data);\n\t\t}\n\t\t//go to the right if the data is greater\n\t\telse if (data > root.data)\n\t\t{\n\t\t\troot.right = insert(root.right, data);\n\t\t}\n\t\t//if the data is the same then don't add anything.\n\t\telse\n\t\t{\n\t\t\t// Stylistically, I have this here to explicitly state that we are\n\t\t\t// disallowing insertion of duplicate values.\n\t\t\t;\n\t\t}\n\t\t//return the root of the tree (first NodeTest)\n\t\treturn root;\n\t}", "public void insertBefore( int pos, T data ) \n {\n \tDLLIterator cycle = new DLLIterator();\n \t\n \t\n if(pos <= 0){\n \t \n \t insertFirst(data);\n }\n \n else if(pos >= capacity){\n \t insertLast(data);\n \t \n } \n \n else{\n \t \n \t int x = 0;\n \t \n \t DLLNode insert = cycle.currentNode;\n \t \n \t while(x != pos){\n \t\t x++;\n \t\t insert = cycle.nextNode();\n \t\t \n \t }\n \t \n \t DLLNode before = insert.prev;\n \t DLLNode newNode = new DLLNode(data, before, insert);\n \t \n \t before.next = newNode;\n \t insert.prev = newNode;\n \t \n }\n \n \t \n \t \n \n }", "public void push(int data) {\n insert(dataSize, data);\n }", "public void insertFirst( T data ){\n\t\t//create new node that contains data\n\t\tDLLNode<T> newNode = new DLLNode<T>();\n\t\tnewNode.setData( data );\n\t\t//if head = empty\n\t\tif( head == null ){\n\t\t\thead = newNode;\n\t\t\ttail = newNode;\n\t\t\tnewNode.setNext( null );\n\t\t\tnewNode.setPrev( null );\n\t\t}\n\t\telse{\n\t\t\tnewNode.setNext( head );\n\t\t\thead.setPrev( newNode );\n\t\t\thead = newNode;\n\t\t}\n\t\tsize++;\n\t}", "public void insert_last(int data){\n Node new_node = new Node(data);\n Node cursor = this.head;\n if(head==null){\n new_node.prev = null;\n head = new_node;\n System.out.println(\"Node Added !\");\n this.print_list();\n return;\n }\n while(cursor != null){\n if(cursor.next == null){\n cursor.next = new_node;\n new_node.prev = cursor;\n System.out.println(\"Node added !\");\n this.print_list();\n return;\n }\n cursor = cursor.next;\n }\n return;\n }", "public void insert(T data) throws NullPointerException,\n IllegalArgumentException {\n // null references cannot be stored within this tree\n if(data == null) throw new NullPointerException(\n \"This RedBlackTree cannot store null references.\");\n\n Node<T> newNode = new Node<>(data);\n if(root == null) { root = newNode; } // add first node to an empty tree\n else insertHelper(newNode,root); // recursively insert into subtree\n \n //always sets root node of RBT to black\n root.isBlack = true;\n }", "public void insertAfter(int data) {\n\n\tpublic int insertAfter(int data) {\n\t\tNode node = new Node(data);\n\n\t\tint flag = 0;\n\t\tNode temp = head;\n\t\tNode prev = head;\n\t\twhile (temp != null) {\n\t\t\tprev = temp;\n\t\t\ttemp = temp.next;\n\t\t\tif (prev.data == 30) {\n\t\t\t\tprev.next = node;\n\t\t\t\tnode.next = temp;\n\t\t\t\tprev.next = node;\n\t\t\t\tnode.next = temp;\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\treturn flag;\n\t}\n\n\t// list printing\n\tpublic void printList() {\n\t\tNode temp = head;\n\t\twhile (temp != null) {\n\t\t\tSystem.out.print(temp.data + \"->\");\n\t\t\ttemp = temp.next;\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n\n\n}", "public void insert(int data){\n Node node = new Node();\n node.data=data;\n node.next=null;\n if(head==null){\n head = node;\n }\n else{\n Node n = head;\n while (n.next != null){\n\n\n n = n.next;\n }\n n.next=node;\n }\n}", "public void testInsert02() {\r\n\t\tBTree<String, Integer> bt = new BTree<String, Integer>(10);\r\n\t\tList<String> words = TestUtils.randomWords(5000, 31);\r\n\r\n\t\tfor (int i = 0; i < words.size(); i++) {\r\n\t\t\tbt.set(words.get(i), i);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < words.size(); i++) {\r\n\t\t\tassertEquals(bt.get(words.get(i)), Integer.valueOf(i));\r\n\t\t}\r\n\t}", "public void insert(T key, U data){\n\t\t\n\t\tAVLNode<T, U> parent = null;\n\t\tAVLNode<T, U> node = this.root;\n\t\tAVLNode<T, U> newNode = new AVLNode<T, U>(key, data);\n\t\t\n\t\tthis.amountOfNodes++;\n\t\t\n\t\twhile(node != null){\n\t\t\tparent = node;\n\t\t\tif(newNode.getKey().compareTo(node.getKey()) < 0){\n\t\t\t\tnode = node.getLeft();\n\t\t\t}else{\n\t\t\t\tnode = node.getRight();\n\t\t\t}\n\t\t}\n\t\t\n\t\tnewNode.setParent(parent);\n\t\t\n\t\tif(parent == null){ //It is the first element of the tree.\n\t\t\tthis.root = newNode;\n\t\t}else if(newNode.getKey().compareTo(parent.getKey()) < 0){\n\t\t\tparent.setLeft(newNode);\n\t\t}else{\n\t\t\tparent.setRight(newNode);\n\t\t}\n\t\tcomputeHeights(newNode);\n\t\tthis.balanceTree(parent);\n\t}", "public void insertAt(int index,int data){\n Node node =new Node();\n node.data=data;\n node.next=null;\n\n if (index == 0) {\n insertAtStart(data);\n }\n\n\nelse{\n Node n = head;\n for (int i=0; i < index-1;i++){\n n =n.next;\n }\n node.next =n.next;\n n.next = node;\n\n}}" ]
[ "0.7770086", "0.77401173", "0.7738975", "0.7718935", "0.75990564", "0.75846773", "0.751507", "0.74667346", "0.7421344", "0.73499537", "0.72717255", "0.704555", "0.7001551", "0.6845966", "0.68425435", "0.6799681", "0.67675614", "0.67665035", "0.6720084", "0.67089355", "0.66844916", "0.66712046", "0.6635639", "0.65995073", "0.65974504", "0.6593981", "0.65642804", "0.6530162", "0.64949286", "0.64832014", "0.64773524", "0.6467244", "0.6458631", "0.6457641", "0.6455601", "0.6451711", "0.64463735", "0.64392823", "0.64237106", "0.64214915", "0.6411632", "0.64115125", "0.6392119", "0.63898623", "0.6379272", "0.6373199", "0.6366733", "0.63625103", "0.63420933", "0.6336495", "0.6330908", "0.6329993", "0.6325889", "0.63234365", "0.63203484", "0.6314738", "0.6306031", "0.6291329", "0.6285501", "0.62796307", "0.62773883", "0.6266369", "0.6261137", "0.62519443", "0.6248524", "0.6244206", "0.62427604", "0.6239317", "0.6237109", "0.6234394", "0.6233026", "0.6231172", "0.6229194", "0.62267447", "0.6218538", "0.6213905", "0.6209032", "0.62006885", "0.62005013", "0.6185061", "0.6184084", "0.618018", "0.61791676", "0.6177393", "0.61743146", "0.61739665", "0.61658853", "0.61563087", "0.615501", "0.61531126", "0.61529326", "0.6151738", "0.6144441", "0.6137663", "0.61294144", "0.6121092", "0.6116079", "0.6115488", "0.61071014", "0.6103009" ]
0.7144421
11