query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
sequencelengths
19
20
metadata
dict
Marks the leaf "cellaccessmode" with operation "create".
public void markCellAccessModeCreate() throws JNCException { markLeafCreate("cellAccessMode"); }
[ "public void markMajorActionCreate() throws JNCException {\n markLeafCreate(\"majorAction\");\n }", "public void markMajorAbateCreate() throws JNCException {\n markLeafCreate(\"majorAbate\");\n }", "public void markMinorAbateCreate() throws JNCException {\n markLeafCreate(\"minorAbate\");\n }", "public void markMinorActionCreate() throws JNCException {\n markLeafCreate(\"minorAction\");\n }", "public void markUtilizedCreate() throws JNCException {\n markLeafCreate(\"utilized\");\n }", "public void markEnodebIdCreate() throws JNCException {\n markLeafCreate(\"enodebId\");\n }", "public void createAction ()\n\t{\n\t\tDefaultMutableTreeNode parent = getParentForCreate();\n\t\tif (null == parent)\n\t\t\treturn;\n\t\t\n\t\tcreateNode(parent);\n\t}", "public void markMajorOnsetCreate() throws JNCException {\n markLeafCreate(\"majorOnset\");\n }", "@Override\n public boolean isInCreateMode() {\n return true;\n }", "public void markVersionCreate() throws JNCException {\n markLeafCreate(\"version\");\n }", "public void markOdbPsCreate() throws JNCException {\n markLeafCreate(\"odbPs\");\n }", "public void create(String path,\n\t\t short mode,\n\t\t FUSEFileInfo fi) throws JFUSEException;", "public void markPlmnIdCreate() throws JNCException {\n markLeafCreate(\"plmnId\");\n }", "public void markEnodebTypeCreate() throws JNCException {\n markLeafCreate(\"enodebType\");\n }", "public void markCriticalAbateCreate() throws JNCException {\n markLeafCreate(\"criticalAbate\");\n }", "Leaf createLeaf();", "public void markEnodebNameCreate() throws JNCException {\n markLeafCreate(\"enodebName\");\n }", "public void markAvailableCreate() throws JNCException {\n markLeafCreate(\"available\");\n }", "public void markMinorOnsetCreate() throws JNCException {\n markLeafCreate(\"minorOnset\");\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The functions that a Cart item should have to interact with Database
public interface CartItemDao { /** * Add the cart item into cart * * @param cartItem */ void addCartItem(CartItem cartItem); /** * Remove the cart item from cart * * @param CartItemId */ void removeCartItem(int CartItemId); /** * Clear the cart * * @param cart */ void removeAllCartItems(Cart cart); }
[ "hipstershop.Demo.CartItem getItem();", "void addCartItem(CartItem cartItem);", "public void insertCart(Cart cart) throws UserApplicationException;", "public interface IShoppingCart {\n\t/**\n\t * add a simple product to the cart\n\t * \n\t * @param product\n\t */\n\tpublic Product addProduct(String name, String category, float price, int quantity);\n\n\t/**\n\t * change the amount of one product in the cart\n\t * \n\t * @param product\n\t * @param quantity\n\t */\n\tpublic Product changeAmount(String product, int quantity);\n\n\t/**\n\t * remove a existing product of the cart\n\t * \n\t * @param product\n\t */\n\tpublic Product removeProduct(String product);\n\n\t/**\n\t * \n\t * @return the Subtotal of the purchase\n\t */\n\tpublic float getSubtotal();\n\n\t/**\n\t * calculate the total of the purchase and delete all products of the cart\n\t * \n\t * @return total price\n\t */\n\tpublic float process();\n\n\t/**\n\t * \n\t * @return the amount of products in the list\n\t */\n\tpublic int amountProducts();\n\n\t/**\n\t * \n\t * @return the list of rows\n\t */\n\tpublic Collection<RowCart> getRows();\n}", "public void saveShoppingCart() throws BackendException;", "public interface CartRepository {\n\n void addToCart(Vehicle product, int countOfProduct);\n\n Map<Vehicle, Integer> getCartMap();\n\n void clearCart();\n}", "public void makeSavedCartLive();", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t@Override\n\tpublic boolean addItemToCart(CartDTO cartItem) throws RetailerException, ConnectException {\n\t\t// function variables\n\t\tboolean itemAddedToCart = false;\n\t\tString retailerId = cartItem.getRetailerId();\n\t\tString productId = cartItem.getProductId();\n\t\tint quantity = cartItem.getQuantity();\n\t\t\n\t\t// hibernate access variables\n\t\tSession session = null;\n\t\tSessionFactory sessionFactory = null;\n\t\tTransaction transaction = null;\n\t\t\n\t\ttry {\n\t\t\t// IOException possible\n\t\t\texceptionProps = PropertiesLoader.loadProperties(EXCEPTION_PROPERTIES_FILE);\n\t\t\t\n\t\t\tsessionFactory = HibernateUtil.getSessionFactory();\n\t\t\tsession = sessionFactory.getCurrentSession();\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t\n\t\t\tQuery query = session.createQuery(HQLQuerryMapper.CART_ITEM_QTY_FOR_PRODUCT_ID);\n\t\t\tquery.setParameter(\"product_id\", productId);\n\t\t List<CartItemEntity> quant = (List<CartItemEntity>) query.list();\n\t\t \n\t\t Query query1 = session.createQuery(HQLQuerryMapper.GET_PRODUCT_QTY_FROM_DB);\n\t\t query1.setParameter(\"product_id\", productId);\n\t\t List<ProductEntity> availableQuants = (List<ProductEntity>) query1.list();\n\t\t \n\t\t if (quant.size() == 0) {\n\t\t \t// the user is adding this product to the cart for the first time\n\t\t\t if (quantity < availableQuants.get(0).getQuantity()) {\n\t\t\t \t// add this item to cart and reduce the quantity in PRODUCT table by quantity amount\n\t\t\t \tCartItemEntity obj = new CartItemEntity (retailerId, productId, quantity);\n\t\t\t \tsession.save(obj);\n\t\t\t \t\n\t\t\t \tQuery query3 = session.createQuery(HQLQuerryMapper. UPDATE_QTY_IN_PRODUCT);\n\t\t\t \tint availableQuantity = availableQuants.get(0).getQuantity();\n\t\t\t \tquery3.setParameter(\"quantity\", availableQuantity );\n\t\t\t \tquery3.setParameter(\"product_id\", productId);\n\t\t\t \tquery3.executeUpdate();\n\t\t\t \tavailableQuantity -= quantity;\n\t\t\t \titemAddedToCart = true;\n\t\t\t } else {\n\t\t\t \t// the requested number of items is not available\n\t\t\t \titemAddedToCart = false;\n\t\t\t \tGoLog.logger.error(exceptionProps.getProperty(\"prod_not_available\"));\n\t\t\t\t\tthrow new RetailerException(exceptionProps.getProperty(\"prod_not_available\"));\n\t\t\t }\n\t\t } else {\n\t\t \t// the user has previously added this item to his cart and is trying to increase quantity\n\t\t \tif (quantity < availableQuants.get(0).getQuantity()) {\n\t\t \t\t// add quantity to that already present in the cart and reduce the quantity in PRODUCT table by quantity amount\n\t\t \t\tQuery query4 = session.createQuery(HQLQuerryMapper.UPDATE_CART);\n\t\t \t\tint quantityPresent = quant.get(0).getQuantity();\n\t\t \t\tquery4.setParameter(\"product_id\", productId);\n\t\t \t\tquery4.executeUpdate();\n\t\t \t\tquantityPresent += quantity;\n\t\t \t\t\t \t\t\n\t\t\t \tQuery query3 = session.createQuery(HQLQuerryMapper. UPDATE_QTY_IN_PRODUCT);\n\t\t\t \tint availableQuantity = availableQuants.get(0).getQuantity();\n\t\t\t \tquery3.setParameter(\"quantity\", availableQuantity );\n\t\t\t \tquery3.setParameter(\"product_id\", productId);\n\t\t\t \tquery3.executeUpdate();\n\t\t\t \tavailableQuantity -= quantity;\n\t\t \t\titemAddedToCart = true;\n\t\t \t\t\n\t\t \t} else {\n\t\t \t\t// the requested quantity of items is not available \t\n\t\t \t\titemAddedToCart = false;\n\t\t \t\tGoLog.logger.error(exceptionProps.getProperty(\"prod_not_available\"));\n\t\t\t\t\tthrow new RetailerException(exceptionProps.getProperty(\"prod_not_available\"));\n\t\t \t}\n\t\t }\t\t \n\t\t} catch (IOException e) {\n\t\t\tGoLog.logger.error(e.getMessage());\n\t\t\tthrow new RetailerException (\"Could not open Error Properties File\");\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t\treturn itemAddedToCart;\n\t}", "void addProductToCartList(Product product);", "public interface CartService {\n\n\t/**\n\t * Returns all carts present in the system.\n\t * \n\t * @return list of carts\n\t */\n\tList<Cart> getAllCarts();\n\n\t/**\n\t * Returns cart for User Id\n\t * \n\t * @param userId the User Id\n\t * @return cart\n\t */\n\tCart getCartForUser(String userId);\n\n\t/**\n\t * Adds product to cart\n\t * \n\t * @param productCode the product code\n\t * @param quantity the quantity of product to be added\n\t * @param userId the User Id\n\t * @return updated cart\n\t */\n\tCart addToCart(String productCode, Long quantity, String userId);\n\n\t/**\n\t * Returns cart for cart code.\n\t * \n\t * @param orderCode the order code\n\t * @return cart\n\t */\n\tCart getCartForCode(String orderCode);\n\n\t/**\n\t * Removes product from cart\n\t * \n\t * @param code the product code\n\t * @param quantity the quantity of to be removed\n\t * @param userId the User Id\n\t * @return updated cart\n\t */\n\tCart deleteFromCart(String code, Long quantity, String userId);\n}", "public interface CartService {\n\n /**\n * Returns an instance of CartDTO representing a representation of an\n * existing cart.\n *\n * @param name name of the customer\n * @return cart of the user\n * @throws NotFoundException if the cart does not exist\n */\n CartDTO getCart(String name) throws NotFoundException;\n\n /**\n * Returns a list of CartItemDTOs representing the cart items from a\n * specific cart.\n *\n * @param username name of the customer where you want to retrieve items\n * @return list of all items from the targeted cart\n * @throws NotFoundException if the cart does not exist\n */\n List<CartItemDTO> getItems(String username) throws NotFoundException;\n\n /**\n * Add a product to cart.\n *\n * @param productId id of the desired product to add\n * @param username name of the customer where you want to add a product\n * @throws InternalServerErrorException if there is an error in the persistence\n * layer\n * @throws NotFoundException if the cart or the product do no exist\n */\n CartDTO addProduct(long productId, String username) throws InternalServerErrorException, NotFoundException, InsufficientStockException;\n\n /**\n * Delete a product from cart.\n *\n * @param productId id of the desired product to add\n * @param username name of the customer where you want to add a product\n * @throws InternalServerErrorException if there is an error in the persistence\n * layer\n * @throws NotFoundException if the cart or the product do no exist\n */\n CartDTO deleteProduct(long productId, String username) throws InternalServerErrorException, NotFoundException;\n}", "public void retrieveProductFromDatabase(){\r\n // retrieve product from the database here\r\n System.out.println(\"Product Retrieved using ID --> \" + this.productId);\r\n \r\n }", "List<CartModificationData> addDealToCart(AddDealToCartData addDealToCartData);", "public Cart findCartById(int cartId) throws UserApplicationException;", "public void insertDiscToCart(Disc disc, Cart cart) throws UserApplicationException;", "public void testdatenErzeugen(){\n\t\tCart_ cart = new Cart_();\n\t\tcart.setUserID(\"123\");\n\t\tcart.setTotalPrice(new BigDecimal(\"15.5\"));\n\t\tcart.setOid(UUID.randomUUID());\n\t\t\n\t\t//insert example data for CartItem_\n\t\tCartItem_ cartItem = new CartItem_();\n\t\tcartItem.setProduct(\"123\");\n\t\tcartItem.setQuantity(1L);\n\t\t\n\t\t// Set relations\n\t\tcart.getItems().add(cartItem);\n\t\t\n\t\t//Save all example Entities in an order that won't cause errors\n\t\tcartRepo.save(cart);\n\t}", "Cart getCartForUser(String userId);", "public interface DealCartFacade\n{\n\t/**\n\t * This method allows to add a deal to the cart\n\t *\n\t * @param addDealToCartData\n\t * @return list\n\t */\n\tList<CartModificationData> addDealToCart(AddDealToCartData addDealToCartData);\n\n\t/**\n\t * Checks whether current cart contains a deal.\n\t *\n\t * @return boolean\n\t */\n\tboolean isDealInCart();\n}", "public interface CartConstants {\n\n public static final String PREFIX_JSON_MSG = \"{\\\"message\\\":\\\"\";\n public static final String SUFFIX_JSON_MSG = \"\\\"}\";\n\n public static final String PRIMARY_KEY_DESC = \"primary key\";\n public static final String CART_ID = \"cart id\";\n public static final String CART_RESOURCE_NAME = \"cart\";\n public static final String CART_RESOURCE_PATH_ID_ELEMENT = \"id\";\n public static final String CART_RESOURCE_PATH_ID_PATH = \"/{\" + CART_RESOURCE_PATH_ID_ELEMENT + \"}\";\n \n \n public static final String GET_CART_OP_DESC = \"Retrieves list of carts\";\n public static final String GET_CART_OP_200_DESC = \"Successful, returning carts\";\n public static final String GET_CART_OP_403_DESC = \"Only admin's can list all carts\";\n public static final String GET_CART_OP_404_DESC = \"Could not find carts\";\n public static final String GET_CART_OP_403_JSON_MSG =\n PREFIX_JSON_MSG + GET_CART_OP_403_DESC + SUFFIX_JSON_MSG;\n \n public static final String GET_CART_BY_ID_OP_DESC = \"Retrieve specific cart\";\n public static final String GET_CART_BY_ID_OP_200_DESC = \"Successful, returning requested cart\";\n public static final String GET_CART_BY_ID_OP_403_DESC = \"Only user's can retrieve a specific cart\";\n //? Only user's can retrieve a specific cart\n public static final String GET_CART_BY_ID_OP_404_DESC = \"Requested cart not found\";\n public static final String GET_CART_OP_403_DESC_JSON_MSG =\n PREFIX_JSON_MSG + GET_CART_BY_ID_OP_403_DESC + SUFFIX_JSON_MSG;\n \n public static final String ADD_CART_OP_DESC = \"Add to list of Carts\";\n public static final String ADD_CART_OP_200_DESC = \"Successful, adding cart\";\n public static final String ADD_CART_OP_403_DESC = \"Only admin's can add carts\";\n public static final String ADD_CART_OP_404_DESC = \"Could not add cart\";\n \n public static final String OWNING_CUST_ID = \"customer id\";\n public static final String CART_RESOURCE_PATH_CUST_ID_PATH = \"/{\" + OWNING_CUST_ID + \"}\";\n public static final String CART_RESOURCE_PATH_CUST_ID_ELEMENT = \"customerId\";\n \n public static final String UPDATE_CART_OP_DESC = \"Update list of carts\";\n public static final String UPDATE_CART_OP_200_DESC = \"Successful, updating cart\";\n public static final String UPDATE_CART_OP_403_DESC = \"Only admin's can update cart\";\n public static final String UPDATE_CART_OP_404_DESC = \"Could not find cart\";\n \n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pulls the column names from the fitting criteria columns for a single markov chain
private ArrayList<String> populateTableColumnNames(){ ArrayList<String> columnNames = new ArrayList<>(); if(this.digPopGUIInformation.getFittingCriteriaColumnNames() != null){ columnNames = this.digPopGUIInformation.getFittingCriteriaColumnNames(); } else{ //Census Value Names columnNames.addAll(Arrays.asList("ID","Census Region Trait" ,"Census Region Total","Survey Trait Table" ,"Survey Trait Select","Survey Trait Field" ,"Survey Total Table", "Survey Total Field" , "User Entered Description", "Trait Weight")); this.digPopGUIInformation.setFittingCriteriaColumnNames(columnNames); } return columnNames; }
[ "abstract String[] getColumnNamesForConstraint(String constraintName);", "private String generateColumnNames() {\n String text = SUBJECT_ID + DELIMITER\n + SUBJECT_AGE + DELIMITER\n + SUBJECT_GENDER + DELIMITER\n + LEFT_CHOICE + DELIMITER\n + RIGHT_CHOICE + DELIMITER\n + WHICH_SIDE_CORRECT + DELIMITER\n + WHICH_SIDE_PICKED + DELIMITER\n + IS_CORRECT + DELIMITER\n + DIFFICULTY + DELIMITER\n + DISTANCE + DELIMITER\n + LEFT_CHOICE_SIZE + DELIMITER\n + RIGHT_CHOICE_SIZE + DELIMITER\n + FONT_RATIO + DELIMITER\n + WHICH_SIZE_CORRECT + DELIMITER\n + WHICH_SIZE_PICKED + DELIMITER\n + NUMERICAL_RATIO + DELIMITER\n + RESPONSE_TIME + DELIMITER\n + DATE_TIME + DELIMITER\n + CONSECUTIVE_ROUND + \"\\n\";\n return text;\n }", "public FittingCriteria() {\n this.digPopGUIInformation = new DigPopGUIInformation();\n //load table\n myTable = populateTableModel(new MarkovChain());\n initComponents();\n \n setupCustomTable();\n }", "String[] getColumnNames();", "String framesetCols(FrameSet frameset) {\n return evaluator.attribute(frameset.id(), Attribute.cols);\n }", "public CyNetwork calcCols() {\n colDone = false;\n //Date date = new Date();\n //DRand RD = new DRand(date);\n //String RDS = RD.toString();\n //String uniqueTag = RDS.substring(RDS.length()-4,RDS.length());\n if (colNetName.equals(\"Cond Network\")) {\n nameNetwork();\n }\n return calcCols(colNetName + \": \" + colNegCutoff + \" & \" + colPosCutoff, colNegCutoff, colPosCutoff);\n }", "public String[] getColumnsName(ResultSet results) throws SQLException\n {\n ResultSetMetaData rsmd=results.getMetaData();\n int n=rsmd.getColumnCount();\n String[] names=new String[n];\n for(int i=1;i<=n;i++)\n {\n names[i-1]=rsmd.getColumnName(i);\n }\n return names;\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index);", "public List<String> getColumnsName();", "List<Column> getQueryColumns();", "public Vector getColumnHeadings() {\n\tVector cols = new Vector();\n\tboolean addedGroupCol = false;\n\n\tcols.addElement(\"Epoch\");\n\n\tif (isAgg()) {\n\t //it's an agg; the columns that are returned\n\t //are the group and the aggregate value\n\t for (int i = 0; i < numExprs(); i++) {\n\t\tQueryExpr e = getExpr(i);\n\n\t\tif (e.isAgg()) {\n\t\t AggExpr ae = (AggExpr)e;\n\t\t if (ae.getGroupField() != -1 && !addedGroupCol) {\n\t\t\tcols.addElement(groupColName());\n\t\t\taddedGroupCol = true;\n\t\t }\n\t\t cols.addElement(ae.getAgg().toString() + \"(\" + getField(ae.getField()).getName() + \")\" );\n\n\t\t}\n\t }\n\t \n\t} else {\n\t //its a selection; the columns that are returned\n\t //are the exprs\n\t for (int i =0; i < numFields(); i++) {\n\t\tQueryField qf = getField(i);\n\t\tcols.addElement(qf.getName());\n\t }\n\n\t}\n\n\treturn cols;\n }", "public static String[] generatePredictorNames(MaxRGLMModel.MaxRGLMParameters parms) {\n List<String> excludedNames = new ArrayList<String>(Arrays.asList(parms._response_column));\n if (parms._ignored_columns != null)\n excludedNames.addAll(Arrays.asList(parms._ignored_columns));\n if (parms._weights_column != null)\n excludedNames.add(parms._weights_column);\n if (parms._offset_column != null)\n excludedNames.add(parms._offset_column);\n \n List<String> predNames = new ArrayList<>(Arrays.asList(parms.train().names()));\n predNames.removeAll(excludedNames);\n return predNames.toArray(new String[0]);\n }", "public List<String> getGridColumnNames() throws Exception {\n\n\t\tLog = Logger.getLogger(\"DashboardFunctions.class\");\n\t\tPropertyConfigurator.configure(\"log4j.properties\");\n\n\t\tList<WebElement> GridColumnCount = driver.findElements(By.xpath(config.getColumnssOnGrid()));\n\n\t\tStringBuilder Name = new StringBuilder();\n\t\tName = Name.append(config.getColumnAppend());\n\t\tint ColumnCount = GridColumnCount.size();\n\n\t\tList<String> ColumnNames = new ArrayList<String>();\n\n\t\tif (ColumnCount > 0) {\n\t\t\tfor (int ColumnNumber = 1; ColumnNumber <= ColumnCount; ColumnNumber++) {\n\t\t\t\tColumnNames.add(driver\n\t\t\t\t\t\t.findElement(By.xpath(Name.toString().replace(\"columnNumber\", String.valueOf(ColumnNumber))))\n\t\t\t\t\t\t.getAttribute(\"textContent\").toString().trim());\n\n\t\t\t//\tLog.info(\"Column Name loaded is \" + ColumnNames);\n\t\t\t}\n\t\t\tLog.info(\"Column Names loaded are \" + ColumnNames);\n\t\t\tLog.info(\"All Column Names are loaded Completely and Present on Grid \");\n\n\t\t} else {\n\t\t\tLog.info(\"Member Grid do not have any columns to prepare the list for validation\");\n\t\t\tColumnNames = null;\n\t\t}\n\t\treturn ColumnNames;\n\t}", "String[] getColumnSelectorNames();", "public String getColumnName();", "private String[] getHeaderColumns() {\n int length = CallLogQuery._PROJECTION.length;\n String[] columns = new String[length + 1];\n System.arraycopy(CallLogQuery._PROJECTION, 0, columns, 0, length);\n columns[length] = CallLogQuery.SECTION_NAME;\n return columns;\n }", "Variable[] allColumns();", "List<String> getColumns();", "public String getColumnName(int column);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a (relative) directory name based on a class name. Uses the appropriate separators for the platform.
public static String generateDirectorynameFromClassname(String classname) { // the generated directory name is usable on both Linux and Windows // (which uses \ as a separator). return OUTPUT_FOLDER_PREFIX + classname.replace('.', '/') + '/'; // File tmp = new File(OUTPUT_FOLDER_PREFIX + classname.replace('.', // '/') + '/'); // return tmp.getAbsolutePath(); }
[ "protected final String toClassFileName(final String name) {\n String className = name.replace('.', File.separatorChar);\n\n className = className.replace('/', File.separatorChar);\n\n className = className + \".class\";\n\n return className;\n }", "private String generateClassPath(String name) {\n\t\treturn path + generateObjectType(name);\n\t\t\n\t}", "private String getClassName(File classFile) {\n \tStringBuffer sb = new StringBuffer();\n \tString className = classFile.getPath().substring(sourceDir.length()+1);\n for (int i=0; i<className.length()-5; i++) {\n if (className.charAt(i) == '/' || className.charAt(i) == '\\\\') {\n sb.append('.');\n } else {\n sb.append(className.charAt(i));\n }\n }\n return sb.toString();\n }", "public String asClassFileName() {\r\n String fileName = getQualifiedClassName().replace('.', '/');\r\n return fileName + \".class\";\r\n }", "protected String getClassName(String fullPath) {\n\tfullPath = fullPath.trim();\n\tint lastSlash = fullPath.lastIndexOf('/');\n\tif (lastSlash == -1) {\n\t // Probably an error, but just in case we'll do this and let it\n\t // fail later.\n\t return JSP_CLASS_PREFIX+JspUtil.makeJavaIdentifier(fullPath);\n\t}\n\n\t// The packageName is the full path minus everything after last '/'\n\tString packageName = fullPath.substring(0, ++lastSlash);\n\n\t// The jspName is everything after the last '/'\n\tString jspName = fullPath.substring(lastSlash);\n\n\t// Make sure to get rid of any double slashes \"//\"\n\t//This may never happen to our application.\n\tfor (int loc=packageName.indexOf(\"//\"); loc != -1;\n\t\tloc=packageName.indexOf(\"//\")) {\n\t packageName = packageName.replaceAll(\"//\", \"/\");\n\t}\n\n\t// Get rid of leading '/'\n\tif (packageName.startsWith(\"/\")) {\n\t packageName = packageName.substring(1);\n\t}\n\n\t// Iterate through each part of path and call makeJavaIdentifier\n\tStringTokenizer tok = new StringTokenizer(packageName, \"/\");\n\tStringBuffer className = new StringBuffer(JSP_CLASS_PREFIX);\n\twhile (tok.hasMoreTokens()) {\n\t // Convert .'s to _'s + other conversions\n\t className.append(JspUtil.makeJavaIdentifier(tok.nextToken()));\n\t className.append('.');\n\t}\n\n\t// Add on the jsp name\n\tclassName.append(JspUtil.makeJavaIdentifier(jspName));\n/* Commenting out for now, log later\n\tif (Util.isLoggableFINER()) {\n\t Util.logFINER(\"CLASSNAME = \"+className);\n\t}\n*/\n\t// Return the classname\n\treturn className.toString();\n }", "private static String makeFolderName(){\n\t\tString folderNameFormat = props.getProperty(\"folderNameFormat\");\n\t\tif(folderNameFormat == null){\n\t\t\tfolderNameFormat = \"yyyyMMdd\";\n\t\t}\n\t\tSimpleDateFormat format = new SimpleDateFormat(folderNameFormat);\n\t\tString folderName = format.format(new Date());\n\t\treturn folderName;\n\t}", "private String expandClassName(String className) {\n\t\tString packageName = getPackageName();\n\t\tif (className.startsWith(\".\"))\n\t\t\treturn packageName + className;\n\t\telse if (!className.contains(\".\"))\n\t\t\treturn packageName + \".\" + className;\n\t\telse\n\t\t\treturn className;\n\t}", "protected static String pathToClassName(String path){\n \n String name=\"\";\n \n if(path!=null && ! path.equals(\"\") && path.endsWith(classExtension)){\n \n name=path.replace(resourceSep, classSep);\n name=name.substring(0, name.indexOf(classExtension));\n }\n \n return name;\n }", "public static String toResourcePath(String className) {\n return className.replace(PACKAGE_SEPARATOR, PATH_SEPARATOR);\n }", "private String getClassNameFromFile(File file) {\n\t\tStringBuilder result = new StringBuilder();\n\t\t\n\t\tFile curr = file;\n\t\tint pathCount = 0;\n\t\t\n\t\tdo {\n\t\t\tif (pathCount++ > 0) {\n\t\t\t\tresult.insert(0, \".\");\n\t\t\t}\n\t\t\tresult.insert(0, curr.getName().split(\"[\\\\.\\\\$]\",2)[0]);\n\t\t\tcurr = curr.getParentFile();\n\t\t} while(!curr.equals(classPathRootFile));\n\t\t\n\t\treturn result.toString();\n\t}", "private String getClassName (String classPath) {\n String[] path = classPath.split(\"[.]\");\n String str = path[path.length - 1];\n return str;\n }", "protected String nameToFileNameInRootGenerationDir(String name, String dirName)\n {\n // Ensure that the output directory exists for the location, if it has not already been created.\n if (!createdOutputDirectories.contains(dirName))\n {\n File dir = new File(dirName);\n dir.mkdirs();\n createdOutputDirectories.add(dirName);\n }\n\n // Build the full path to the output file.\n return dirName + File.separatorChar + name;\n }", "@Override\n public final String getDirname() {\n PathFragment parent = execPath.getParentDirectory();\n return (parent == null) ? \"/\" : parent.getSafePathString();\n }", "public static String constructQualifiedClassName(Symbol symbol) {\n String className = symbol.getLocation().orElseThrow().lineRange().fileName().replaceAll(BAL_FILE_EXT + \"$\", \"\");\n if (symbol.getModule().isEmpty()) {\n return className;\n }\n\n ModuleID moduleMeta = symbol.getModule().get().id();\n // for ballerina single source files, the package name will be \".\" and therefore,\n // qualified class name ::= <file_name>\n if (moduleMeta.packageName().equals(\".\")) {\n return className;\n }\n\n // for ballerina package source files,\n // qualified class name ::= <package_name>.<module_name>.<package_major_version>.<file_name>\n return new StringJoiner(\".\")\n .add(encodeModuleName(moduleMeta.orgName()))\n .add(encodeModuleName(moduleMeta.moduleName()))\n .add(moduleMeta.version().split(MODULE_VERSION_SEPARATOR_REGEX)[0])\n .add(className)\n .toString();\n }", "private String jarName(){\n // determine the name of this class\n String className=\"/\"+this.getClass().getName().replace('.','/')+\".class\";\n // find out where the class is on the filesystem\n String classFile=this.getClass().getResource(className).toString();\n\n if( (classFile==null) || !(classFile.startsWith(\"jar:\")) ) return null;\n \n // trim out parts and set this to be forwardslash\n classFile=classFile.substring(5,classFile.indexOf(className));\n classFile=FilenameUtil.setForwardSlash(classFile);\n\n // chop off a little bit more\n classFile=classFile.substring(4,classFile.length()-1);\n \n return FilenameUtil.URLSpacetoSpace(classFile);\n }", "String createName(String base);", "protected String nameToJavaFileName(String rootDirName, String prefix, String name, String postfix)\n {\n // Work out the full path to the location to write to.\n String packageName = (outputPackage != null) ? outputPackage : model.getModelPackage();\n\n return nameToJavaFileName(rootDirName, packageName, prefix, name, postfix);\n }", "private static String getFQClassName(final String root, final String path) {\r\n\t\t//Remove root from front of path and \".class\" from end of path\r\n\t\tString trimmed = path.substring(path.indexOf(root) + root.length(), path.indexOf(\".class\"));\r\n\t\t\r\n\t\t//Replace backslashes with periods\r\n\t\treturn trimmed.replaceAll(Matcher.quoteReplacement(\"\\\\\"), \".\");\r\n\t}", "static String compactClassName(String str) {\n return str.replace('/', '.'); // Is `/' on all systems, even DOS\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function to create and write the output in a _Decoded.txt file
private void createDecodedFile(String decodedValues, String encodedFileName) throws Exception { String decodedFileName = encodedFileName.substring(0, encodedFileName.lastIndexOf(".")) + "_decoded.txt"; //FileWriter and BufferedWriter to write and it overwrites into the file. FileWriter fileWriter = new FileWriter(decodedFileName, false); BufferedWriter bufferedWriter = new BufferedWriter(fileWriter); bufferedWriter.write(decodedValues); //Flush and Close the bufferedWriter bufferedWriter.flush(); bufferedWriter.close(); }
[ "private void createDecodedFile() {\r\n try {\r\n //Keep iterating until all characters have been written to outfile\r\n int iter = 0; \r\n while(iter < characters) {\r\n //Continue reading file bytes until at a character leaf\r\n while(!tree.atLeaf()) {\r\n //Get the bit value \r\n int bit = input.readBit();\r\n \r\n //Determine which way to move through the tree\r\n if(bit == 0) {\r\n tree.moveToLeft();\r\n } else {\r\n tree.moveToRight();\r\n }\r\n }\r\n //Get the character leaf value\r\n int data = tree.current(); \r\n //Write out to file\r\n bw.write(data);\r\n //Reset current back to root\r\n tree.moveToRoot();\r\n //Increment since character has been found\r\n iter++;\r\n }\r\n \r\n //Close writer\r\n bw.close();\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "public void CreateDecodedFile(byte[] decoded_values, String File_Input, String alg) throws IOException {\n String FileName = File_Input.substring(0, File_Input.indexOf(\".\")) + \"_decoded\" + alg + \".txt\";\n\n FileOutputStream outputStream = new FileOutputStream(FileName);\n outputStream.write(decoded_values);\n outputStream.close();\n }", "private void writeDecodedFile(String fileName, String totalBinaryCodes, HuffmanTree Htree) {\n String tempKey = \"\";\n String originalText = \"\";\n \n System.out.println(\"totalBinaryCodes length: \" + totalBinaryCodes.length());\n \n final int ORIGINAL_BIN_LENGTH = totalBinaryCodes.length();\n \n while(totalBinaryCodes.length() > 0){\n tempKey = tempKey + totalBinaryCodes.substring(0, 1);\n totalBinaryCodes = totalBinaryCodes.substring(1);\n \n if (Htree.keyMap.containsKey((String) tempKey)){\n Character tempChar = (Character) Htree.keyMap.get(tempKey);\n originalText = originalText + tempChar.charValue();\n tempKey = \"\";\n }\n \n if (totalBinaryCodes.length() % 7500 == 0)\n if (totalBinaryCodes.length() - ORIGINAL_BIN_LENGTH > 0)\n frame.setTextArea(\"Encoded file loaded 100.00%!\\nDecoding encoded file \" + \n Double.toString( (totalBinaryCodes.length() - ORIGINAL_BIN_LENGTH)\n * 100.0 /ORIGINAL_BIN_LENGTH).substring(0, 5) + \"%...\");\n }\n frame.setTextArea(\"Encoded file loaded 100.00%!\\nDecoding encoded file completed!\"\n + \"\\n\\nEncoded file:\\n\\n\" + originalText);\n System.out.println(originalText);\n try{\n PrintWriter newWriter = new PrintWriter(new File(\n fileName.substring(0, fileName.length() - 4) + \"x.txt\"));\n newWriter.write(originalText);\n newWriter.close();\n \n } catch(IOException ex){\n System.out.println(ex.getMessage());\n }\n }", "private void encodeMessage() {\n encodedMessage = \"\";\n try(BufferedReader inputBuffer = Files.newBufferedReader(inputPath)) {\n String inputLine;\n while((inputLine = inputBuffer.readLine()) != null) {\n //walks the input message and builds the encode message\n for(int i = 0; i < inputLine.length(); i++) {\n encodedMessage = encodedMessage + codeTable[inputLine.charAt(i)];\n }\n encodedMessage = encodedMessage + codeTable[10];\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //writes to the output file\n try(BufferedWriter outputBuffer = Files.newBufferedWriter(outputPath)) {\n outputBuffer.write(encodedMessage, 0, encodedMessage.length());\n outputBuffer.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private static void writeDecodedFile (HuffmanNode root) throws IOException {\r\n HuffmanNode current = root;\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(\"decoded.txt\"));\r\n File file = new File(binPath);\r\n byte[] data = new byte[(int) file.length()];\r\n DataInputStream dis = new DataInputStream(new FileInputStream(file));\r\n dis.readFully(data);\r\n dis.close();\r\n\r\n String temp;\r\n for (int i = 0; i < data.length; i++) {\r\n temp = Integer.toBinaryString((data[i] & 0xFF) + 0x100).substring(1);\r\n for (int bit = 0; bit < temp.length(); bit++) {\r\n if (temp.charAt(bit) == '1') {\r\n current = current.right;\r\n }\r\n else if (temp.charAt(bit) == '0') {\r\n current = current.left;\r\n }\r\n if (current.isLeaf()) {\r\n bw.write(current.data + \"\\n\");\r\n current = root;\r\n }\r\n }\r\n }\r\n bw.close();\r\n }", "public static void printOut(){\n try {\n PrintWriter fileOutput = new PrintWriter(\"a3q3out.txt\", \"UTF-8\");// output file creation\n fileOutput.println(\"The secret message (plaintext) is: \");\n fileOutput.println();\n fileOutput.println(plainText);\n fileOutput.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void writeToFile() {\n try {\n String joinOutput = \" \";\n FileWriter f = new FileWriter(Driver.outFile);\n for (int i = 0; i < Driver.entireOutput.size(); i++) {\n joinOutput = joinOutput + Driver.entireOutput.get(i);\n joinOutput = joinOutput + \"\\n\";\n }\n f.write(joinOutput);\n f.close();\n MyLogger.writeMessage(\"Output.txt is generated\", MyLogger.DebugLevel.FILE_GENERATE);\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "void outToFile(String file, String fileExtension, String tree, String encoded, int extraBits) throws IOException{ \n BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(file+\".MZIP\"));\n \n try{\n \n //Write the file name\n for (int i =0; i<file.length(); i++){\n stream.write(file.charAt(i));\n }\n fileExtension = fileExtension.toUpperCase();\n for (int i = 0; i<fileExtension.length(); i++){\n stream.write(fileExtension.charAt(i));\n }\n if(encoded != null){ //If file has data, proceed to print the lines out\n //New line\n stream.write(13);\n stream.write(10);\n //Write the huffman tree on one line\n for (int i = 0; i<tree.length(); i++){\n stream.write(tree.charAt(i));\n }\n //New line\n stream.write(13);\n stream.write(10);\n //Write the leftover bits\n String extra = \" \" + extraBits;\n for(int i=1; i<extra.length();i++){\n stream.write(extra.charAt(i));\n }\n //New line\n stream.write(13);\n stream.write(10);\n //Write the encoded data\n int times;\n times = encoded.length()/8;\n for (int i=0;i<times;i++){\n stream.write(Integer.parseInt(encoded.substring(0,8),2));\n encoded = encoded.substring(8);\n }\n }\n } finally{\n if (stream != null) {\n stream.close();\n }\n }\n }", "public static void main(String[] args) {\n TextFileGenerator textFileGenerator = new TextFileGenerator();\n HuffmanTree huffmanTree;\n Scanner keyboard = new Scanner(System.in);\n PrintWriter encodedOutputStream = null;\n PrintWriter decodedOutputStream = null;\n String url, originalString = \"\", encodedString, decodedString;\n boolean badURL = true;\n int originalBits, encodedBits, decodedBits;\n\n while(badURL) {\n System.out.println(\"Please enter a URL: \");\n url = keyboard.nextLine();\n\n try {\n originalString = textFileGenerator.makeCleanFile(url, \"original.txt\");\n badURL = false;\n }\n catch(IOException e) {\n System.out.println(\"Error: Please try again\");\n }\n }\n\n huffmanTree = new HuffmanTree(originalString);\n encodedString = huffmanTree.encode(originalString);\n decodedString = huffmanTree.decode(encodedString);\n // NOTE: TextFileGenerator.getNumChars() was not working for me. I copied the encoded text file (pure 0s and 1s)\n // into google docs and the character count is accurate with the String length and not the method\n originalBits = originalString.length() * 16;\n encodedBits = encodedString.length();\n decodedBits = decodedString.length() * 16;\n\n decodedString = fixPrintWriterNewLine(decodedString);\n\n try { // creating the encoded and decoded files\n encodedOutputStream = new PrintWriter(new FileOutputStream(\"src\\\\edu\\\\miracosta\\\\cs113\\\\encoded.txt\"));\n decodedOutputStream = new PrintWriter(new FileOutputStream(\"src\\\\edu\\\\miracosta\\\\cs113\\\\decoded.txt\"));\n encodedOutputStream.print(encodedString);\n decodedOutputStream.print(decodedString);\n }\n catch(IOException e) {\n System.out.println(\"Error: IOException!\");\n }\n\n encodedOutputStream.close();\n decodedOutputStream.close();\n\n System.out.println(\"Original file bit count: \" + originalBits);\n System.out.println(\"Encoded file bit count: \" + encodedBits);\n System.out.println(\"Decoded file bit count: \" + decodedBits);\n System.out.println(\"Compression ratio: \" + (double)originalBits/encodedBits);\n }", "private void output() {\r\n\t\t// Write new contents to the file\r\n\t\ttry {\r\n\t\t\toutputFile = new File(outputPath);\r\n\t\t\t// Check if file already exists\r\n\t\t\tif (outputFile.exists() == false) {\r\n\t\t\t\toutputFile.createNewFile();\r\n\t\t\t}\r\n\t\t\t// Setup file writing\r\n\t\t\tFileWriter fw = new FileWriter(outputFile);\r\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\tbw.write(conversion);\r\n\t\t\tbw.close();\r\n\t\t\tfw.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void printDataToFile(){\n\ttry {\n\t File file = new File(\"media/gameOutput.txt\");\n \n\t // if file doesnt exists, then create it\n\t if (!file.exists()) {\n\t\tfile.createNewFile();\n\t }\n \n\t FileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t BufferedWriter bw = new BufferedWriter(fw);\n\t bw.write(printString);\n\t bw.close();\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n }", "public static String[] fileOutput() throws IOException{\n File swout = new File(swOutputFile), enout = new File(enOutputFile);\n FileWriter fwsw = new FileWriter(swout), fwen = new FileWriter(enout);\n\n Set<String> keys = sw.keySet();\n for(String s : keys){\n\n fwsw.write(sw.get(s) + \"\\n\");\n fwen.write(en.get(s) + \"\\n\");\n\n }\n\n fwsw.close();\n fwen.close();\n\n extend_MT();\n\n return new String[]{swOutputFile, enOutputFile, goldOutputFile, engoldOutputFile};\n }", "private static void textFilesOutput() {\n\n // make output directory if it doesn't already exist\n new File(\"output\").mkdirs();\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n try {\n airportFlightCounter.toTextFile();\n flightInventory.toTextFile();\n flightPassengerCounter.toTextFile();\n mileageCounter.toTextFile();\n } catch (FileNotFoundException e) {\n logger.error(\"Could not write to one or more text files - please close any open instances of that file\");\n e.printStackTrace();\n }\n\n logger.info(\"Output to text files completed\");\n }", "private void export() {\n print(\"Outputting Instructions to file ... \");\n\n // Generate instructions right now\n List<Instruction> instructions = new ArrayList<Instruction>();\n convertToInstructions(instructions, shape);\n\n // Verify Instructions\n if (instructions == null || instructions.size() == 0) {\n println(\"failed\\nNo instructions!\");\n return;\n }\n\n // Prepare the output file\n output = createWriter(\"output/instructions.txt\");\n \n // TODO: Write configuration information to the file\n \n\n // Write all the Instructions to the file\n for (int i = 0; i < instructions.size(); i++) {\n Instruction instruction = instructions.get(i);\n output.println(instruction.toString());\n }\n\n // Finish the file\n output.flush();\n output.close();\n\n println(\"done\");\n }", "public void writeAsString(String m)\n {\n File textFile = new File(\"text.txt\");\n\n try (FileOutputStream fop = new FileOutputStream(textFile)) {\n\n // if file doesn't exists, then create it\n if (!textFile.exists()) {\n textFile.createNewFile();\n }\n\n // get the content in bytes\n byte[] contentInChar = m.getBytes();\n fop.write(contentInChar);\n fop.flush();\n fop.close();\n\n System.out.println(\"Done with decrypting and writing the Decryption into text.txt\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n}", "public void writeOutToFile() throws IOException {\r\n try (BufferedWriter writer = Files.newBufferedWriter(outName, ENCODING)) {\r\n for (String line : contents) {\r\n writer.write(line);\r\n writer.newLine();\r\n }\r\n }\r\n }", "private void writeOut() throws IOException {\n\t\t// Create a string buffer\n\t\tStringBuilder buffer = new StringBuilder();\n\t\t// append the prefix\n\t\tfor (int i = 0; i < huiSets.size(); i++) {\n\t\t\tbuffer.append(huiSets.get(i).itemset);\n\t\t\t// append the utility value\n\t\t\tbuffer.append(\"#UTIL: \");\n\t\t\tbuffer.append(huiSets.get(i).fitness);\n\t\t\tbuffer.append(System.lineSeparator());\n\t\t}\n\t\t// write to file\n\t\twriter.write(buffer.toString());\n\t\twriter.newLine();\n\t}", "public void writeCSV(){\n\t\tPrintWriter printer = null;\n\t\ttry {\n\t\t\tFile file = new File(\"./outputs/\"+\"testOutput.txt\"); //+encoder.getName());\n\t\t\tprinter = new PrintWriter(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Cannot print to target.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tprinter.print(\"This is a test string\");\n\t\tprinter.print(\"This is a test string (x2!)\");\n\t\tprinter.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "void fileWrite() {\r\n try {\r\n FileWriter fw = new FileWriter(fileout);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n for(int i = 0; i < results.size(); i++) {\r\n bw.write(results.get(i));\r\n bw.newLine();\r\n }\r\n bw.close();\r\n }\r\n catch(IOException ex) {\r\n System.out.println(\r\n \"Error reading file '\"\r\n + \"mpa3.in\" + \"'\");\r\n }\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the Bcc header field of this message to the specified address.
public void setBcc(Address bcc) { setAddressList(FieldName.BCC, bcc); }
[ "public void setBcc(Address... bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void setBccAddress(String strAddress) {\n\t\tif(strAddress!=null)\n\t\t{\n\t\t\tString[] alAddress = StringUtil.toArr(strAddress,\";\"); \n\t \tthis.bccAddress = new Address[alAddress.length]; \n\t \tfor (int i = 0; i < alAddress.length; i++)\n\t \t{\n\t \t\ttry {\n\t \t\t String temStr=alAddress[i];\n\t \t\t if(temStr!=null&&!\"\".equals(temStr.trim()))\n\t\t\t\t\tthis.bccAddress[i] = new InternetAddress(temStr.trim());\n\t\t\t\t} catch (AddressException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \t\n\t \t}\n\t\t}\n\t}", "public void bcc(String bcc) throws IOException {\n sendRcpt(bcc);\n // No need to keep track of Bcc'd addresses\n }", "public void addBcc(String... address) {\n\t\tbcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void setCc(Address... cc) {\n setAddressList(FieldName.CC, cc);\n }", "@Override\n public void setBcc(String bcc) throws OscarMailException {\n this.bcc = new String[] {bcc};\n }", "public void setBcc(Object bcc) throws ApplicationException\t{\n \t\tif(StringUtil.isEmpty(bcc)) return;\n \t\ttry {\n \t\t\tsmtp.addBCC(bcc);\n \t\t} catch (Exception e) {\n \t\t\tthrow new ApplicationException(\"attribute [bcc] of the tag [mail] is invalid\",e.getMessage());\n \t\t}\n \t}", "public void addCc(String... address) {\n\t\tcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void setCc(Address cc) {\n setAddressList(FieldName.CC, cc);\n }", "@Override\n public void setBcc(String[] bcc) throws OscarMailException {\n this.bcc = bcc;\n }", "public void cc(String cc) throws IOException {\n sendRcpt(cc);\n this.cc.addElement(cc);\n }", "public void setBcc(Collection<Address> bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "void addBcc(String email);", "public void set_address(String address){\n\t\tthis.mac_address = address;\n\t}", "public void setCc(Object cc) throws ApplicationException\t{\n \t\tif(StringUtil.isEmpty(cc)) return;\n \t\ttry {\n \t\t\tsmtp.addCC(cc);\n \t\t} catch (Exception e) {\n \t\t\tthrow new ApplicationException(\"attribute [cc] of the tag [mail] is invalid\",e.getMessage());\n \t\t}\n \t}", "@Override\n public void forceAddress(SimpleString address) {\n message.setAddress(address);\n }", "public void setCcAddress(String strAddress) {\n\t\tif(strAddress!=null)\n\t\t{\n\t\t\tString[] alAddress = StringUtil.toArr(strAddress,\";\"); \n\t \tthis.ccAddress = new Address[alAddress.length]; \n\t \tfor (int i = 0; i < alAddress.length; i++)\n\t \t{\n\t \t\ttry {\n\t \t\t String temStr=alAddress[i];\n\t \t\t if(temStr!=null&&!\"\".equals(temStr.trim()))\n\t\t\t\t\tthis.ccAddress[i] = new InternetAddress(temStr.trim());\n\t\t\t\t} catch (AddressException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \t\n\t \t}\n\t\t}\n\t}", "public void setAddress(Client cl, String address) {\n\t\tcl.setAddress(address);\n\t}", "public void setCSeq\n (CSeqHeader cseqHeader) {\n this.setHeader(cseqHeader);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'PRPSL_AGCY_ID' field.
public org.LNDCDC_ADS_PRPSL.PRPSL_AGCY_XMAP.apache.nifi.LNDCDC_ADS_PRPSL_PRPSL_AGCY_XMAP.Builder setPRPSLAGCYID(java.lang.Long value) { validate(fields()[4], value); this.PRPSL_AGCY_ID = value; fieldSetFlags()[4] = true; return this; }
[ "public void setPRPSLAGCYID(java.lang.Long value) {\n this.PRPSL_AGCY_ID = value;\n }", "public void setPRPSLAGCYXMAPID(java.lang.Long value) {\n this.PRPSL_AGCY_XMAP_ID = value;\n }", "public java.lang.Long getPRPSLAGCYID() {\n return PRPSL_AGCY_ID;\n }", "public java.lang.Long getPRPSLAGCYID() {\n return PRPSL_AGCY_ID;\n }", "public org.LNDCDC_ADS_PRPSL.PRPSL_AGCY_XMAP.apache.nifi.LNDCDC_ADS_PRPSL_PRPSL_AGCY_XMAP.Builder setPRPSLAGCYXMAPID(java.lang.Long value) {\n validate(fields()[0], value);\n this.PRPSL_AGCY_XMAP_ID = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "public org.LNDCDC_ADS_PRPSL.PROPOSAL_LINE.apache.nifi.LNDCDC_ADS_PRPSL_PROPOSAL_LINE.Builder setINITSRCAPPRGSTRYID(java.lang.Long value) {\n validate(fields()[23], value);\n this.INIT_SRC_APP_RGSTRY_ID = value;\n fieldSetFlags()[23] = true;\n return this;\n }", "public org.LNDCDC_ADS_PRPSL.PRPSL_AGCY_XMAP.apache.nifi.LNDCDC_ADS_PRPSL_PRPSL_AGCY_XMAP.Builder setAPPRGSTRYID(java.lang.Long value) {\n validate(fields()[5], value);\n this.APP_RGSTRY_ID = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "public void setINITSRCAPPRGSTRYID(java.lang.Long value) {\n this.INIT_SRC_APP_RGSTRY_ID = value;\n }", "public org.LNDCDC_ADS_PRPSL.PRPSL_AGCY_XMAP.apache.nifi.LNDCDC_ADS_PRPSL_PRPSL_AGCY_XMAP.Builder clearPRPSLAGCYID() {\n PRPSL_AGCY_ID = null;\n fieldSetFlags()[4] = false;\n return this;\n }", "public void setSPCASPCLID(java.lang.CharSequence value) {\n this.SPCA_SPCL_ID = value;\n }", "public void setSPCAID(java.lang.Long value) {\n this.SPCA_ID = value;\n }", "public void setYgid(Long ygid) {\n\t\tthis.ygid = ygid;\n\t}", "public void setPCatgryId(Number value) {\n\t\tsetNumber(P_CATGRY_ID, value);\n\t}", "public java.lang.Long getPRPSLAGCYXMAPID() {\n return PRPSL_AGCY_XMAP_ID;\n }", "public org.LNDCDC_ADS_PRPSL.PRPSL_OTLT.apache.nifi.LNDCDC_ADS_PRPSL_PRPSL_OTLT.Builder setSRCSYSAPPRGSTRYID(java.lang.Long value) {\n validate(fields()[11], value);\n this.SRC_SYS_APP_RGSTRY_ID = value;\n fieldSetFlags()[11] = true;\n return this;\n }", "public org.LNDCDC_NCS_TCS.SPORT_CATEGORIES.apache.nifi.LNDCDC_NCS_TCS_SPORT_CATEGORIES.Builder setSPCASPCLID(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.SPCA_SPCL_ID = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public void setCY_CODE(BigDecimal CY_CODE) {\r\n this.CY_CODE = CY_CODE;\r\n }", "public java.lang.Long getPRPSLAGCYXMAPID() {\n return PRPSL_AGCY_XMAP_ID;\n }", "public void setAPPRGSTRYID(java.lang.Long value) {\n this.APP_RGSTRY_ID = value;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Editar VisitaFinalCasoCovid19 existente en la base de datos
public boolean editarVisitaFinalCasoCovid19(VisitaFinalCasoCovid19 visitacaso) throws Exception{ ContentValues cv = VisitaFinalCasoCovid19Helper.crearVisitaFinalCasoCovid19ContentValues(visitacaso); return mDb.update(Covid19DBConstants.COVID_VISITA_FINAL_CASO_TABLE , cv, Covid19DBConstants.codigoVisitaFinal + "='" + visitacaso.getCodigoVisitaFinal() + "'", null) > 0; }
[ "public boolean editarCuestionarioCovid19(CuestionarioCovid19 partcaso) throws Exception{\n\t\tContentValues cv = CuestionarioCovid19Helper.crearCuestionarioCovid19ContentValues(partcaso);\n\t\treturn mDb.update(Covid19DBConstants.COVID_CUESTIONARIO_TABLE, cv, Covid19DBConstants.codigo + \"='\"\n\t\t\t\t+ partcaso.getCodigo() + \"'\", null) > 0;\n\t}", "public boolean editarSintomasVisitaFinalCovid19(SintomasVisitaFinalCovid19 visitacaso) throws Exception{\n\t\tContentValues cv = SintomasVisitaFinalCovid19Helper.crearSintomasVisitaFinalCovid19ContentValues(visitacaso);\n\t\treturn mDb.update(Covid19DBConstants.COVID_SINT_VISITA_FINAL_CASO_TABLE , cv, Covid19DBConstants.codigoVisitaFinal + \"='\"\n\t\t\t\t+ visitacaso.getCodigoVisitaFinal() + \"'\", null) > 0;\n\t}", "public boolean editarDatosAislamientoVisitaCasoCovid19(DatosAislamientoVisitaCasoCovid19 DatosAislamientoVisitaCasoCovid19) throws Exception{\n\t\tContentValues cv = DatosAislamientoVisitaCasoCovid19Helper.crearDatosAislamientoVisitaCasoCovid19ContentValues(DatosAislamientoVisitaCasoCovid19);\n\t\treturn mDb.update(Covid19DBConstants.COVID_DATOS_AISLAMIENTO_VC_TABLE , cv, Covid19DBConstants.codigoAislamiento + \"='\"\n\t\t\t\t+ DatosAislamientoVisitaCasoCovid19.getCodigoAislamiento() + \"'\", null) > 0;\n\t}", "public boolean editarCasoCovid19(CasoCovid19 casacaso) throws Exception{\n\t\tContentValues cv = CasoCovid19Helper.crearCasoCovid19ContentValues(casacaso);\n\t\treturn mDb.update(Covid19DBConstants.COVID_CASOS_TABLE, cv, Covid19DBConstants.codigoCaso + \"='\"\n\t\t\t\t+ casacaso.getCodigoCaso() + \"'\", null) > 0;\n\t}", "public boolean editarVisitaFinalCaso(VisitaFinalCaso visitaFinal) throws Exception{\n ContentValues cv = VisitaFinalCasoHelper.crearVisitaFinalCasoContentValues(visitaFinal);\n return mDb.update(CasosDBConstants.VISITAS_FINALES_CASOS_TABLE , cv, CasosDBConstants.codigoParticipanteCaso + \"='\"\n + visitaFinal.getCodigoParticipanteCaso().getCodigoCasoParticipante() + \"'\", null) > 0;\n }", "public boolean editarCandidatoTransmisionCovid19(CandidatoTransmisionCovid19 partcaso) throws Exception{\n\t\tContentValues cv = CandidatoTransmisionCovid19Helper.crearCandidatoTransmisionCovid19ContentValues(partcaso);\n\t\treturn mDb.update(Covid19DBConstants.COVID_CANDIDATO_TRANSMISION_TABLE, cv, Covid19DBConstants.codigo + \"='\"\n\t\t\t\t+ partcaso.getCodigo() + \"'\", null) > 0;\n\t}", "public boolean editarParticipanteCovid19(ParticipanteCovid19 partcaso) throws Exception{\n\t\tContentValues cv = ParticipanteCovid19Helper.crearParticipanteCovid19ContentValues(partcaso);\n\t\treturn mDb.update(Covid19DBConstants.PARTICIPANTE_COVID_TABLE, cv, Covid19DBConstants.participante + \"=\"\n\t\t\t\t+ partcaso.getParticipante().getCodigo(), null) > 0;\n\t}", "public boolean editarVisitaSeguimientoCasoCovid19(VisitaSeguimientoCasoCovid19 visitacaso) throws Exception{\n\t\tContentValues cv = VisitaSeguimientoCasoCovid19Helper.crearVisitaSeguimientoCasoCovid19ContentValues(visitacaso);\n\t\treturn mDb.update(Covid19DBConstants.COVID_VISITAS_CASOS_TABLE , cv, Covid19DBConstants.codigoCasoVisita + \"='\"\n\t\t\t\t+ visitacaso.getCodigoCasoVisita() + \"'\", null) > 0;\n\t}", "public boolean editarParticipanteCasoCovid19(ParticipanteCasoCovid19 partcaso) throws Exception{\n\t\tContentValues cv = ParticipanteCasoCovid19Helper.crearParticipanteCasoCovid19ContentValues(partcaso);\n\t\treturn mDb.update(Covid19DBConstants.COVID_PARTICIPANTES_CASOS_TABLE, cv, Covid19DBConstants.codigoCasoParticipante + \"='\"\n\t\t\t\t+ partcaso.getCodigoCasoParticipante() + \"'\", null) > 0;\n\t}", "public boolean editarSintomasVisitaCasoCovid19(SintomasVisitaCasoCovid19 sintomasVisitaCasoCovid19) throws Exception{\n\t\tContentValues cv = SintomasVisitaCasoCovid19Helper.crearSintomasVisitaCasoCovid19ContentValues(sintomasVisitaCasoCovid19);\n\t\treturn mDb.update(Covid19DBConstants.COVID_SINTOMAS_VISITA_CASO_TABLE , cv, Covid19DBConstants.codigoCasoSintoma + \"='\"\n\t\t\t\t+ sintomasVisitaCasoCovid19.getCodigoCasoSintoma() + \"'\", null) > 0;\n\t}", "public void editar_ultima_vez(String id, String ultima_vez_compartida) {\n String sql = \"UPDATE publicaciones SET \"\n + \"ultima_vez_compartida = '\" + ultima_vez_compartida + \"' \"\n + \"WHERE id = \" + id;\n try (Connection conn = this.connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n //EJECUTAMOS EL COMANDO\n pstmt.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public boolean editarOtrosPositivosCovid(OtrosPositivosCovid partcaso) throws Exception{\n\t\tContentValues cv = CandidatoTransmisionCovid19Helper.crearOtrosPositivosCovidContentValues(partcaso);\n\t\treturn mDb.update(Covid19DBConstants.COVID_OTROS_POSITIVOS_TABLE, cv, Covid19DBConstants.codigo + \"='\"\n\t\t\t\t+ partcaso.getCodigo() + \"'\", null) > 0;\n\t}", "public boolean editarEncuestaCasa(EncuestaCasa encuestaCasa) {\n ContentValues cv = EncuestaCasaHelper.crearEncuestaCasaContentValues(encuestaCasa);\n return mDb.update(EncuestasDBConstants.ENCUESTA_CASA_TABLE, cv, EncuestasDBConstants.casa_chf + \"='\"\n + encuestaCasa.getCasa().getCodigoCHF() + \"'\", null) > 0;\n }", "public void crearDatosAislamientoVisitaCasoCovid19(DatosAislamientoVisitaCasoCovid19 DatosAislamientoVisitaCasoCovid19) throws Exception {\n\t\tContentValues cv = DatosAislamientoVisitaCasoCovid19Helper.crearDatosAislamientoVisitaCasoCovid19ContentValues(DatosAislamientoVisitaCasoCovid19);\n\t\tmDb.insertOrThrow(Covid19DBConstants.COVID_DATOS_AISLAMIENTO_VC_TABLE, null, cv);\n\t}", "public boolean editarVisitaSeguimientoCaso(VisitaSeguimientoCaso visitacaso) throws Exception{\n ContentValues cv = VisitaSeguimientoCasoHelper.crearVisitaSeguimientoCasoContentValues(visitacaso);\n return mDb.update(CasosDBConstants.VISITAS_CASOS_TABLE , cv, CasosDBConstants.codigoCasoVisita + \"='\"\n + visitacaso.getCodigoCasoVisita() + \"'\", null) > 0;\n }", "public boolean editarCasa(Casa casa) {\n\t\tContentValues cv = CasaHelper.crearCasaContentValues(casa);\n\t\treturn mDb.update(MainDBConstants.CASA_TABLE , cv, MainDBConstants.codigo + \"=\" \n\t\t\t\t+ casa.getCodigo(), null) > 0;\n\t}", "public void Editar(ProveedoresSQL prov) throws ClassNotFoundException, InstantiationException, IllegalAccessException{\n try {\n bd = new Conexion_SQL();\n \n String sql = \"update ProveedoresSQL set CodProd=?, Proveedor=?, Direccion=?, Ciudad=?, Telefono=?, RFC=?, CP=?, Correo=? where CodProd=?\";\n PreparedStatement ps = bd.Conectarse().prepareStatement(sql);\n ps.setString(1, prov.getCodProvee());\n ps.setString(2, prov.getNomProvee());\n ps.setString(3, prov.getDireccion());\n ps.setString(4, prov.getCiudad());\n ps.setLong(5, prov.getTelefono());\n ps.setString(6, prov.getRFC());\n ps.setInt(7, prov.getCP());\n ps.setString(8, prov.getCorreo());\n ps.setString(9, prov.getCodProvee());\n \n int n = ps.executeUpdate();\n \n if(n>0){\n JOptionPane.showMessageDialog(null, \"Registro Modificado Correctamente!\");\n bd.CerrarConexion();\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(MantenimientoProveedoresSQL.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void modificaVenta(Connection conexion,int idEmpleado, LocalDate fechaVenta){\n String query = \"UPDATE Transaccion.Venta SET idEmpleado = ?, FechaVenta = ? WHERE IdVenta = ?\";\n try{\n preparedStatement = conexion.prepareCall(query);\n preparedStatement.setInt(1, idEmpleado);\n preparedStatement.setDate(2, Date.valueOf(fechaVenta));\n preparedStatement.setInt(3,getIdVenta());\n int register = preparedStatement.executeUpdate();\n if(register > 0){\n JOptionPane.showMessageDialog(null, \"Se modificó correctamente\");\n }\n }\n catch(Exception ex){\n JOptionPane.showMessageDialog(null, \"Hubo un error en la modificación\");\n }\n }", "private void modificarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper method. Forwards a request to the default dispatcher.
private void forward(final HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { RequestDispatcher rd = getServletContext().getNamedDispatcher("default"); rd.forward(request, response); }
[ "public void sendNowWith(RequestDispatcher viaThis);", "public void sendGlobalWith(RequestDispatcher viaThis);", "public void bindDefaultRequestHandler(DmpRequestProcessorIF requestProcessor);", "void dispatchRequest(String urlPath) throws Exception;", "public interface ActionDispatcher {\n\n /**\n * Dispatches the provided action to a proper handler that is responsible for handling of that action.\n * <p/> To may dispatch the incomming action a proper handler needs to be bound\n * to the {@link com.clouway.gad.dispatch.ActionHandlerRepository} to may the dispatch method dispatch the\n * incomming request to it.\n * \n * @param action the action to be handled\n * @param <T> a generic response type\n * @return response from the provided execution\n * @throws ActionHandlerNotBoundException is thrown in cases where no handler has been bound to handle that action\n */\n <T extends Response> T dispatch(Action<T> action) throws ActionHandlerNotBoundException;\n \n}", "protected void paramBasedReqestForward(SlingHttpServletRequest request,\r\n\t\t\tSlingHttpServletResponse response){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString forwardPath = (String) request.getParameter(\"fPath\");\r\n\t\t\tif(log.isDebugEnabled()){\r\n\t\t\t\tlog.debug(String.format(\"paramBasedReqestForward: forwardPath[%s]\", forwardPath));\r\n\t\t\t}\r\n\t\t\trequest.getRequestDispatcher(forwardPath).forward(request, response);\r\n\t\t} catch (ServletException e) {\r\n\t\t\tlog.error(String.format(\"paramBasedReqestForward: encountered ServletException\", e));\r\n\t\t} catch (IOException e) {\r\n\t\t\tlog.error(String.format(\"paramBasedReqestForward: encountered IOException\", e));\r\n\t\t}\r\n\t}", "public abstract String getRequestAction();", "@Override\n\tpublic void dispatch(Request request) {\n\t\tif(request instanceof ElevatorRequest){\n\t\t\tfor(RequestListener listener: listeners){\n\t\t\t\tlistener.handleRequest((ElevatorRequest)request);\n\t\t\t}\n\t\t}\n\t}", "public void handleRequest()\n\t{\n\n\t\tgetSuccessor().handleRequest();\n\t}", "void sendForward(HttpServletRequest request, HttpServletResponse response, String location) throws AccessControlException, ServletException, IOException;", "public DispatchedRequest(HttpServletRequest request, String redirectURL) throws ServletException\n {\n super(request);\n \n redirected = true;\n pushDispatch(new Dispatch(DispatchType.FORWARD, redirectURL));\n }", "@Override\n protected ModelAndView handleRequestInternal(final HttpServletRequest\n request, final HttpServletResponse response) throws Exception {\n log.trace(\"Entering handleRequestInternal\");\n\n ModelAndView mav = new ModelAndView(\"home\");\n\n log.trace(\"Leaving handleRequestInternal\");\n return mav;\n }", "protected void doForward(\r\n\t\tString uri,\r\n\t\tHttpServletRequest request,\r\n\t\tHttpServletResponse response)\r\n\t\tthrows IOException, ServletException {\r\n \r\n\t\t// Unwrap the multipart request, if there is one.\r\n\t\tif (request instanceof MultipartRequestWrapper) {\r\n\t\t\trequest = ((MultipartRequestWrapper) request).getRequest();\r\n\t\t}\r\n\r\n\t\tRequestDispatcher rd = getServletContext().getRequestDispatcher(uri);\r\n\t\tif (rd == null) {\r\n\t\t\tresponse.sendError(\r\n\t\t\t\tHttpServletResponse.SC_INTERNAL_SERVER_ERROR,\r\n\t\t\t\tgetInternal().getMessage(\"requestDispatcher\", uri));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\trd.forward(request, response);\r\n\t}", "protected void internalModuleRelativeForward(\r\n\t\tString uri,\r\n\t\tHttpServletRequest request,\r\n\t\tHttpServletResponse response)\r\n\t\tthrows IOException, ServletException {\r\n \r\n\t\t// Construct a request dispatcher for the specified path\r\n\t\turi = moduleConfig.getPrefix() + uri;\r\n\r\n\t\t// Delegate the processing of this request\r\n\t\t// :FIXME: - exception handling?\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\" Delegating via forward to '\" + uri + \"'\");\r\n\t\t}\r\n\t\tdoForward(uri, request, response);\r\n\t}", "private void forward(ServletRequest request, ServletResponse response, AuthTokenState state){\n\t\tRequestDispatcher dispatcher = null;\n\t\t\n\t\t/**\n\t\t * Following codes not work in case of couple with Spring Security !!!\n\t\t * FilterConfig filterConfig = this.getFilterConfig();\n\t\t * filterConfig.getServletContext().getRequestDispatcher(FILTER_PREFIX + ACT_REISSUE_TOKEN);\n\t\t **/\n\t\ttry {\n\t\t\tif(AuthTokenState.NEED_AUTHC == state){\n\t\t\t\n\t\t\t\tdispatcher = request.getRequestDispatcher(FILTER_PREFIX + ACT_AUTH_TOKEN);\n\t\t\t\n\t\t\t}else if(AuthTokenState.BAD_TOKEN == state ||\n\t\t\t\t\tAuthTokenState.GHOST_TOKEN == state ||\n\t\t\t\t\tAuthTokenState.INVALID_TOKEN == state){\n\t\t\t\n\t\t\t\tdispatcher = request.getRequestDispatcher(FILTER_PREFIX + ACT_BAD_TOKEN);\n\t\t\t\n\t\t\t}else if(AuthTokenState.EXPIRE_TOKEN == state){\n\t\t\t\t\n\t\t\t\tdispatcher = request.getRequestDispatcher(FILTER_PREFIX + ACT_EXPIRE_TOKEN);\n\t\t\t}else if(AuthTokenState.REISSUE_TOKEN == state){\n\t\t\t\t\n\t\t\t\tdispatcher = request.getRequestDispatcher(FILTER_PREFIX + ACT_REISSUE_TOKEN);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tdispatcher = request.getRequestDispatcher(FILTER_PREFIX + ACT_TRAP_ALL);\n\t\t\t}\n\t\t\t\n\t\t\tdispatcher.forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t\n\t\t\tLOGGER.error(\"fail to forward the request\", e);\n\t\t\t// ignore\n\t\t}\n\t}", "public ServletMappingDispatcher() {\n super(new ServletMethodResolver());\n }", "public void handleRequest(Request req) {\n\n }", "private void routeRequest(RoutingContext context) {\r\n\r\n\t\tSystem.out.println( \"GatewayService called...\");\r\n\r\n\t\t// get request path\r\n\t\tString path = context.request().uri();\r\n\r\n\t\tint port = 0;\r\n\r\n\t\t// get the port - crude - we obviously need a better service discovery process...!\r\n\t\tif(Arrays.stream(new String[]{\"/account\",\"/accountdetails/\"}).parallel().anyMatch(path::contains)) {\r\n\t\t\tport = 8082;\r\n\t\t}\r\n\t\telse if (Arrays.stream(new String[]{\"/limitorder\",\"/orderdetails/\"}).parallel().anyMatch(path::contains)) {\r\n\t\t\tport = 8083;\t\t\t\r\n\t\t}\t\t\r\n\r\n\t\tHttpClient client = vertx.createHttpClient();\r\n\r\n\t\tdispatch(context, port, path, client); \r\n\r\n\t}", "private Dispatcher getDispatcher()\r\n \t{\r\n \t\treturn getDirectory().getContext().getDispatcher();\r\n \t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
stop if there are some errors
public boolean proceedOnErrors() { return false; }
[ "public boolean abortOnFailedAnalysis()\n {\n return true;\n }", "private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }", "public boolean hasContinueOnError();", "private void checkHalt() {\n if (state.getIsStop()) {\n console.shutdown();\n monitor.shutdown();\n System.exit(0);\n }\n }", "public boolean hasError();", "void recordExecutionError() {\n hadExecutionError = true;\n }", "private void checkTerminationCondition() {\n \n // If at least 30 detections were made, the app's end has been reached.\n if (detectionCount >= 30) {\n String newline = System.getProperty(\"line.separator\");\n System.out.println(newline + newline + \"Terminating due to machting condition.\" + newline + newline);\n \n driveForward = false;\n run = false;\n }\n }", "protected void userErrorOccurred()\n {\n traceOK = false;\n }", "private void raiseError() {\n System.out.println(\"Unexpected token at \" + currentTokenIndex);\n System.exit(1); //die.\n }", "@Override\n\tpublic void stop() {\n\t\tabort = true;\n\t}", "public synchronized boolean isFailed() {\n\t\treturn isStateError() || (exitValue != 0) || !checkOutputFiles().isEmpty();\n\t}", "private static void error( Exception e ) {\n e.printStackTrace();\n System.exit(-1);\n }", "public void breakDown() {\n\t\tbroken = true;\n\t}", "protected void firstFailure() {\n }", "protected boolean stopConditionLoop() {\n return false;\n }", "public void checkErrorLimit(int increment) {\n errorCounter += increment;\n if (errorCounter >= AppyAdService.getInstance().maxErrors()) {\n setAdProcessing(false);\n // todo ????\n }\n }", "boolean isFailed();", "public void checkError() {\n if (this.threadError != null) {\n throw new EncogError(this.threadError);\n }\n }", "public boolean foundError () {\n // alludes to how we will implement the other error catching\n return aquaponicsError();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if sensor is in hybrid mode
public boolean isHybridMode(long sensorAddress) throws SQLException { boolean isHybrid = false; PreparedStatement l_pstmt = m_db .prepareStatement("select sens_is_in_hybrid_mode from sensor where sens_address = ?"); l_pstmt.setLong(1, sensorAddress); ResultSet l_rs = l_pstmt.executeQuery(); if (l_rs.next()) isHybrid = l_rs.getBoolean(1); l_rs.close(); l_pstmt.close(); return isHybrid; }
[ "public boolean canDetectSensors();", "private boolean onlineMode() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n boolean allowed = preferences.getBoolean(Constants.PREF_ALLOW_TRACKING_WITHOUT_WLAN, false);\n\n ConnectivityManager connManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeInfo = connManager.getActiveNetworkInfo();\n\n return (allowed && activeInfo != null && activeInfo.isConnected());\n }", "public boolean HasGotSensorCaps()\n {\n PackageManager pm = context.getPackageManager();\n\n // Require at least Android KitKat\n\n int currentApiVersion = Build.VERSION.SDK_INT;\n\n // Check that the device supports the step counter and detector sensors\n\n return currentApiVersion >= 19\n && pm.hasSystemFeature(PackageManager.FEATURE_SENSOR_STEP_COUNTER)\n && pm.hasSystemFeature(PackageManager.FEATURE_SENSOR_STEP_DETECTOR)\n && pm.hasSystemFeature(PackageManager.FEATURE_SENSOR_ACCELEROMETER);\n }", "boolean isSensorIsHigh();", "boolean hasSensorEvent();", "boolean isPlatform();", "private boolean isModeDriver()\n {\n return ledMode.getDouble(0.0) == LEDMode.OFF.modeValue && camMode.getDouble(0.0) == CamMode.DRIVER.modeValue;\n }", "boolean isInStandbyMode();", "@Schema(description = \"Flag indicating a hybrid organism.\")\n @Nullable\n public Boolean isHybrid() {\n return hybrid;\n }", "boolean hasDevicebrand();", "private boolean isSmartModeEnabled()\n {\n try\n {\n return Integer.parseInt((String) _smartModeComboBox.getSelectedItem()) > 0;\n }\n catch (NumberFormatException neverOccurs)\n {\n return false;\n }\n }", "public static boolean isAutoTechnologySwitch() { return cacheAutoTechnologySwitch.getBoolean(); }", "boolean needSensorRunningLp() {\n if (mSupportAutoRotation) {\n if (mCurrentAppOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR\n || mCurrentAppOrientation == ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR\n || mCurrentAppOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT\n || mCurrentAppOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE) {\n // If the application has explicitly requested to follow the\n // orientation, then we need to turn the sensor on.\n return true;\n }\n }\n if ((mCarDockEnablesAccelerometer && mDockMode == Intent.EXTRA_DOCK_STATE_CAR) ||\n (mDeskDockEnablesAccelerometer && (mDockMode == Intent.EXTRA_DOCK_STATE_DESK\n || mDockMode == Intent.EXTRA_DOCK_STATE_LE_DESK\n || mDockMode == Intent.EXTRA_DOCK_STATE_HE_DESK))) {\n // enable accelerometer if we are docked in a dock that enables accelerometer\n // orientation management,\n return true;\n }\n if (mUserRotationMode == USER_ROTATION_LOCKED) {\n // If the setting for using the sensor by default is enabled, then\n // we will always leave it on. Note that the user could go to\n // a window that forces an orientation that does not use the\n // sensor and in theory we could turn it off... however, when next\n // turning it on we won't have a good value for the current\n // orientation for a little bit, which can cause orientation\n // changes to lag, so we'd like to keep it always on. (It will\n // still be turned off when the screen is off.)\n\n // When locked we can provide rotation suggestions users can approve to change the\n // current screen rotation. To do this the sensor needs to be running.\n return mSupportAutoRotation &&\n mShowRotationSuggestions == Settings.Secure.SHOW_ROTATION_SUGGESTIONS_ENABLED;\n }\n return mSupportAutoRotation;\n }", "public boolean getDeviceStatus();", "protected boolean isDndOn() {\n return mZenModeController.getZen() != Settings.Global.ZEN_MODE_OFF;\n }", "boolean hasDeviceRestriction();", "public boolean isAbovePlatform() { return isAbovePlatform; }", "private boolean isHIDGametelConnected() {\r\n return true;\r\n }", "public abstract boolean hasControlMode();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getMagnitude method, of class Unit.
@Test public void testGetMagnitude() { System.out.println("getMagnitude"); Unit instance = new Unit(); Magnitude expResult = null; Magnitude result = instance.getMagnitude(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
[ "@Test\n public void testSetMagnitude() {\n System.out.println(\"setMagnitude\");\n Magnitude magnitude = null;\n Unit instance = new Unit();\n instance.setMagnitude(magnitude);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "boolean testMag(Tester t) {\n return t.checkExpect(this.p6.magnitude(), 1) && t.checkExpect(this.p7.magnitude(), 1)\n && t.checkExpect(this.p2.magnitude(), 150);\n }", "@Test\r\n public void testMag() {\r\n double expected = 5;\r\n Complex c = new Complex(-4, -3);\r\n double actual = c.mag();\r\n assertEquals(expected, actual);\r\n \r\n }", "@Test\r\n public void testAppartentMagnitude() {\r\n System.out.println(\"appartentMagnitude\");\r\n \r\n // Test case one.\r\n System.out.println(\"Test case #1\"); \r\n \r\n double magnitude = 12;\r\n double distance = 200;\r\n \r\n SceneControl instance = new SceneControl();\r\n \r\n double expResult = 0.0003;\r\n double result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case two.\r\n System.out.println(\"Test case #2\"); \r\n \r\n magnitude = 13;\r\n distance = -50;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case three.\r\n System.out.println(\"Test case #3\"); \r\n \r\n magnitude = 56;\r\n distance = 20;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, -999999);\r\n \r\n // Test case four.\r\n System.out.println(\"Test case #4\"); \r\n \r\n magnitude = 56;\r\n distance = 20;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case five.\r\n System.out.println(\"Test case #5\"); \r\n \r\n magnitude = 14;\r\n distance = 0;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case six.\r\n System.out.println(\"Test case #6\"); \r\n \r\n magnitude = -50;\r\n distance = 12;\r\n \r\n expResult = -0.3472;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case seven.\r\n System.out.println(\"Test case #7\"); \r\n \r\n magnitude = 50;\r\n distance = 20;\r\n \r\n expResult = 0.125;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case eight.\r\n System.out.println(\"Test case #8\"); \r\n \r\n magnitude = 13;\r\n distance = 1;\r\n \r\n expResult = 13;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n }", "boolean hasMagnitudeStatus();", "public void setMagnitude()\n {\n magnitude = (float) Math.sqrt(Math.pow(fx, 2) + Math.pow(fy, 2) + Math.pow(fz, 2));\n }", "public float getMagnitude() {\r\n\t\treturn Float.parseFloat(getProperty(\"magnitude\").toString());\r\n\t}", "public double getMagnitude() {\r\n\t\t\r\n\t\treturn Math.sqrt(Math.pow(real, 2) + Math.pow(imaginary, 2));\r\n\t}", "Unit getUnit();", "@Test\r\n public void testMedia() {\r\n EstatisticasUmidade e = new EstatisticasUmidade();\r\n e.setValor(5.2);\r\n e.setValor(7.0);\r\n e.setValor(1.3);\r\n e.setValor(6);\r\n e.setValor(0.87);\r\n double result= e.media(1);\r\n assertArrayEquals(\"ESPERA RESULTADO\", 5.2 , result, 0.1);\r\n }", "@Test\n\tpublic void testGetCarSpeed() {\n\t\tSystem.out.println(\"getCarSpeed\");\n\t\tMeasure expResult = new Measure(22.2, \"km\");\n\t\tthis.step.setCarSpeed(expResult);\n\t\tassertEquals(expResult, this.step.getCarSpeed());\n\t}", "String getUnit();", "public double getMagnitude() {\n\t\treturn Math.sqrt(Math.pow(real, 2) + Math.pow(imaginary, 2));\n\t}", "public double getMagnitude() {\n\t\treturn Math.sqrt(imaginary * imaginary + real * real);\n\t}", "public void setMagnitude(int magnitude)\r\n {\r\n this.magnitude = magnitude; \r\n }", "private void countMagnitudes(){\n\t\tif(!transformed){\n\t\t\ttransform();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i< (toTransform.length / 2); i++){\n\t\t\tdouble re = toTransform[2*i];\n\t\t\tdouble im = toTransform[2*i+1];\n\t\t\tmagnitudes[i] = Math.sqrt(re*re + im*im);\n\t\t}\n\t}", "public double magnitude(){\n return Math.sqrt((this.x * this.x) + (this.y * this.y));\n }", "public double getMagnitude() {\n\t\treturn Math.sqrt(real * real + imaginary * imaginary);\n\t}", "public void setMagnitude(float magnitude) {\n this.magnitude = magnitude;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sorts an array of clocks in place, using insertion sorting. Used public because the method needs to be accessed from outside, void because the method does not return something
public void inPlaceInsertionSort(Clock [] s){ int x; int i; Clock temp= new Clock(0,0,0); for(x=1;x<s.length;x++){ temp = s[x]; for (i=x-1;(i>=0)&&(s[i].isAfter(temp));i--){ s[i+1]= s[i]; } s[i+1]=temp; } }
[ "@Test\n public void testInsertionSort() {\n Integer[] copy = Arrays.copyOf(data, data.length);\n System.out.println(\"\\nUnsorted Data\");\n sorter.timedSort(SortAlgorithm.INSERTION, copy, comp);\n assertTrue(\"Not sorted\", isSorted(copy, comp));\n System.out.println(\"\\nSorted Data\");\n sorter.timedSort(SortAlgorithm.INSERTION, copy, comp);\n assertTrue(\"Not sorted\", isSorted(copy, comp));\n }", "private void insertionSort() {\r\n\t\t//Runs through the 30 arrays.\r\n\t\tfor (int i = 0; i < 30; i++)\r\n\t\t\tSorting.insertionSort(array[i]);\r\n\t}", "private void happyHourSort() {\r\n\t\t//Runs through the 30 arrays.\r\n\t\tfor (int i = 0; i < 30; i++)\r\n\t\t\tSorting.happyHourSort(array[i], array[i].length);\r\n\t}", "public void insertionSort() {\n Comparable p = (Comparable) array[0];\n Comparable[] sorted = new Comparable[array.length];\n sorted[0] = p;\n for (int i = 0; i < array.length - 1; i++) {\n if (p.compareTo(array[i + 1]) < 0) {\n p = (Comparable) array[i + 1];\n sorted[i + 1] = p;\n } else {\n Comparable temp = (Comparable) array[i + 1];\n int j = i;\n while (j >= 0 && sorted[j].compareTo(array[i + 1]) > 0) {\n j--;\n }\n for (int q = i; q > j; q--) {\n sorted[q + 1] = sorted[q];\n }\n sorted[j + 1] = temp;\n }\n }\n this.array = (T[]) sorted;\n }", "public void sort(long[] array, boolean ascending);", "public void sort(long[] array, boolean ascending, int from, int to);", "public void sort(long[] array);", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "static double [] insertionSort (double a[]){\r\n \t\r\n \tfor(int i = 1; i < a.length; i++) {\r\n \t\t\r\n \t\tint j = i - 1;\r\n \t\tdouble currentKey = a[i];\r\n \t\t\r\n \t\t// If j is not less than 0 and is greater than the currentKey\r\n \t\t// move it up one position in the array and decrement j\r\n \t\twhile(j >= 0 && a[j] > currentKey)\r\n \t\t\ta[j + 1] = a[j--];\r\n \t\t\r\n \t\t// Swap currentKey with a[j+1]\r\n \t\t// (i.e put currentKey in the position where the key to its right\r\n \t\t// is greater than currentKey and the key to its left is less than\r\n \t\t// or equal to currentKey\r\n \t\ta[j + 1] = currentKey;\t\t\r\n \t}\r\n \r\n \treturn a;\r\n }", "private static Long[] sortTimestamps(Long[] ts) {\n\t\tfor (int i = 0; i < ts.length - 1; i++) {\n\t\t\tfor (int j = 1; j < ts.length; j++) {\n\t\t\t\tif (ts[j] < ts[i]) {\n\t\t\t\t\tlong temp = 0;\n\t\t\t\t\ttemp = ts[i];\n\t\t\t\t\tts[i] = ts[j];\n\t\t\t\t\tts[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ts;\n\t}", "@Test\r\n public void testSort() {\r\n System.out.println(\"sort\");\r\n int[] array = {6, 3, 7, 9, 4, 1, 3, 7, 0};\r\n int[] expResult = {0, 1, 3, 3, 4, 6, 7, 7, 9};\r\n\r\n int[] result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n \r\n array = new int[10000];\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = new Random().nextInt(Integer.MAX_VALUE);\r\n }\r\n expResult = Arrays.copyOf(array, array.length);\r\n Arrays.sort(expResult);\r\n \r\n result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n }", "public void sort(long[] array, int from, int to);", "static double [] insertionSort (double a[]){\r\n \tdouble temp;\r\n \tfor(int i=1; i<a.length; i++)\r\n\t\t{\r\n\t\t\tfor(int j=i;j>0;j--)\r\n\t\t\t{\r\n\t\t\t\tif(a[j]<a[j-1])\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp = a[j];\r\n\t\t\t\t\ta[j] = a[j-1];\r\n\t\t\t\t\ta[j-1] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn a;\r\n //todo: implement the sort\r\n }", "@Test\n public void shellSort() {\n int[] array = {57, 68, 59, 52, 72, 28, 96, 33, 24};\n int[] arrayEx = {24, 28, 33, 52, 57, 59, 68, 72, 96};\n for (int gap = array.length / 2; gap > 0; gap = gap / 2) {\n for (int i = gap; i < array.length; i++) {\n int tmp = array[i];\n int j = i;\n\n for (; j >= gap && tmp < array[j - gap]; j -= gap) {\n array[j] = array[j - gap];\n }\n array[j] = tmp;\n }\n }\n\n printResult(array, arrayEx);\n\n }", "public void sort() {\n\t\tthis.sort(\"qk\", \"dt\", 1);\n\t}", "void sort() {\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) { // if the first term is larger\n\t\t\t\t\t\t\t\t\t\t\t\t// than the last term, then the\n\t\t\t\t\t\t\t\t\t\t\t\t// temp holds the previous term\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];// swaps places within the array\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public void sortSpeeds() {\n\n//\t\tSystem.out.println(\"BEGIN: SORT SPEEDS\");\n\t\tthis.printMoves();\n\n\t\tArrayList<Move> temp = new ArrayList<Move>();\n\t\tint i = 1;\n\t\tint x = 0;\n\t\tboolean y = true;\n\n\t\ttemp.add(niceMoves.get(0));\n\t\tint size = niceMoves.size();\n\n\t\twhile (i < niceMoves.size()) {\n\n//\t\t\tSystem.out.println(\"Reiterating.\");\n\t\t\ty = true;\n\n\t\t\twhile (y) {\n\n\t\t\t\t//System.out.println(\"I: \" + i + \" X: \" + x);\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (niceMoves.get(i).getSpeed() > temp.get(x).getCalcedSpeed()) {\n\n//\t\t\t\t\t\tSystem.out.println(\"Adding \" + niceMoves.get(i).getCaster() + \" to spot \" + x);\n\t\t\t\t\t\ttemp.add(x, niceMoves.get(i));\n\t\t\t\t\t\ty = false;\n\t\t\t\t\t}\n\t\t\t\t\t//X has cycled through temp, meaning nicemoves.i should be added to the end\n\t\t\t\t\t//The only way to check for this is to let it overflow lol\n\t\t\t\t} catch (Exception E) {\n//\t\t\t\t\tSystem.out.println(\"Adding \" + niceMoves.get(i).getCaster() + \" to spot \" + x);\n\t\t\t\t\ttemp.add(x, niceMoves.get(i));\n\t\t\t\t\ty = false;\n\n\t\t\t\t}\n\n\t\t\t\tx += 1;\n\t\t\t}\n\n\t\t\ti += 1;\n\t\t\tx = 0;\n\t\t}\n\n\t\tniceMoves = temp;\n\n//\t\tSystem.out.println();\n//\t\tSystem.out.println(\"Sorting Complete! New Order: \");\n//\t\tthis.printMoves();\n\t\t//end of sort speeds\n\t}", "private static void allSorts(int[] array) {\n\t\tSystem.out.printf(\"%12d\",array.length);\n\t\tint[] temp;\n\t\tStopWatch1 timer;\n\t\t\n\t\t//Performs bubble sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.bubbleSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "@Test\r\n\tpublic void testSortInsert() throws FileNotFoundException {\n\t\tsw.start();\r\n\t\tInsertion.sortInsert(wordArray16);\r\n\t\tsw.stop();\r\n\t\tt11 = sw.getNanoTime();\r\n\t\tsw.reset();\r\n\r\n//Starts stop watch, performs simple insertion sort on 256 word array, stores result in t12, stops and resets timer\r\n\t\tsw.start();\r\n\t\tInsertion.sortInsert(wordArray256);\r\n\t\tsw.stop();\r\n\t\tt12 = sw.getNanoTime();\r\n\t\tsw.reset();\r\n\r\n//Starts stop watch, performs simple insertion sort on 4096 word array, stores result in t13, stops and resets timer\r\n\t\tsw.start();\r\n\t\tInsertion.sortInsert(wordArray4096);\r\n\t\tsw.stop();\r\n\t\tt13 = sw.getNanoTime();\r\n\t\tsw.reset();\r\n\t\t\r\n\t\tassertTrue(Insertion.isSorted(wordArray16));\r\n\t\tassertTrue(Insertion.isSorted(wordArray256));\r\n\t\tassertTrue(Insertion.isSorted(wordArray4096));\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Represents the status of the changed resource. .google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation resource_status = 8;
public com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation getResourceStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation result = com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation.valueOf(resourceStatus_); return result == null ? com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation.UNRECOGNIZED : result; }
[ "public com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation getResourceStatus() {\n @SuppressWarnings(\"deprecation\")\n com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation result = com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation.valueOf(resourceStatus_);\n return result == null ? com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation.UNRECOGNIZED : result;\n }", "com.google.ads.googleads.v1.resources.ChangeStatus getChangeStatus();", "public Builder setResourceStatus(com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n resourceStatus_ = value.getNumber();\n onChanged();\n return this;\n }", "com.google.ads.googleads.v6.resources.ChangeStatus getChangeStatus();", "com.google.ads.googleads.v1.resources.ChangeStatusOrBuilder getChangeStatusOrBuilder();", "com.google.ads.googleads.v6.resources.ChangeStatusOrBuilder getChangeStatusOrBuilder();", "@java.lang.Override\n public com.google.cloud.compute.v1.ResourceStatus getResourceStatus() {\n return resourceStatus_ == null\n ? com.google.cloud.compute.v1.ResourceStatus.getDefaultInstance()\n : resourceStatus_;\n }", "@java.lang.Override\n public com.google.cloud.compute.v1.ResourceStatusOrBuilder getResourceStatusOrBuilder() {\n return resourceStatus_ == null\n ? com.google.cloud.compute.v1.ResourceStatus.getDefaultInstance()\n : resourceStatus_;\n }", "public String getResourceStatus() {\n return this.resourceStatus;\n }", "public com.google.ads.googleads.v0.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType getResourceType() {\n @SuppressWarnings(\"deprecation\")\n com.google.ads.googleads.v0.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType result = com.google.ads.googleads.v0.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType.valueOf(resourceType_);\n return result == null ? com.google.ads.googleads.v0.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType.UNRECOGNIZED : result;\n }", "com.google.container.v1beta1.Operation.Status getStatus();", "public com.google.ads.googleads.v0.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType getResourceType() {\n @SuppressWarnings(\"deprecation\")\n com.google.ads.googleads.v0.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType result = com.google.ads.googleads.v0.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType.valueOf(resourceType_);\n return result == null ? com.google.ads.googleads.v0.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType.UNRECOGNIZED : result;\n }", "public Integer getOperationStatus() {\n return operationStatus;\n }", "@ApiModelProperty(value = \"Possible values: 1: Pending 2: Failed 3: Scheduled 4: Pending_Rev 5: Failed_Rev 6: Scheduled_Rev \")\n public Integer getStatus() {\n return status;\n }", "public java.lang.String getOperationStatus() {\r\n return operationStatus;\r\n }", "@ApiModelProperty(required = true, value = \"The new status of the alert level\")\n public StatusEnum getStatus() {\n return status;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"scheduled\", value = \"The incident status. For realtime incidents, valid values are investigating, identified, monitoring, and resolved. For scheduled incidents, valid values are scheduled, in_progress, verifying, and completed.\")\n\n public StatusEnum getStatus() {\n return status;\n }", "@Schema(example = \"PAID\", description = \"Status of the refund. Status Description: --- - PENDING > The refund has been scheduled and will be completed as soon as there is enough money in the account. If there is not enough money in the account on a particular day, the refund will be carried over to the next day, and completed when the amount is available. > The refund will remain in a scheduled state indefinitely, until the amount is available and the refund is executed. - PAID > The refund has been paid out. \")\n public StatusEnum getStatus() {\n return status;\n }", "public CMnServicePatch.RequestStatus getStatus() {\n return status;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Dokumentacni komentar metody na zaklade hlavnich parametru obrazovky, vypocet parametru: PPI na vysku a na sirku a vypocet horizontalni roztec bodu "pitch"
public static void main(String[] args) { //zakladni parametry obrazovky int hSize = 332; int vSize = 186; int hResolution = 1920; int vResolution = 1080; //vypocet PPI na vysku a na sirku double hPPI = hResolution/(hSize/25.4); double vPPI = vResolution/(vSize/25.4); double rPPI = hPPI/vPPI; //vypocet horizontalni roztec bodu (pitch) a velikost obrazku v milimetrech double pitch = ((double)(1) / hResolution)*hSize; double width = (200 / hPPI)* 25.4; double height = (100/vPPI)*25.4; /*vypis vsech parametru */ System.out.println("hSize [mm] = "+hSize); System.out.println("vSize [mm] = "+vSize); System.out.println("hResolution [pixels] = "+hResolution); System.out.println("vResolution [pixels] = "+vResolution); System.out.println("----------------------------"); System.out.println("hPPI = "+hPPI); System.out.println("vPPI = "+vPPI); System.out.println("rPPI = "+rPPI); System.out.println("pitch [mm] = "+pitch); System.out.println("width [mm] = "+width); System.out.println("height [mm] = "+height); }
[ "public void setPitch(int pitch);", "@Override\r\n public void setParams() {\r\n addParam(PERIOD, 10, 1200, 10, 360);\r\n addParam(ENTRY, 1, 30, 1, 12);\r\n }", "public void setPitch(double x){\n pitch = x;\n }", "float getPitch();", "public float getPitchAngle() { return PitchAngle; }", "public String getPitchAsString(){ return Integer.toString(this.pitch);}", "public PitchImpl(int pitch) {\n if (pitch < -1 || pitch > 127) {\n throw new IllegalArgumentException(\"This is not a valid pitch\");\n }\n this.pitch = pitch;\n }", "public void setPitchWeight(double pitch_weight)\n {\n pitch_weight_ = pitch_weight;\n }", "public void setPitch(int pitch) {\n\t\tsetPitch((float)pitch);\n\t}", "public int getPitch() {\n return pitch;\n }", "private void calPitch() {\n int index = midiValue % 12;\n this.pitchClass = PitchClass.readPitchClass(index);\n }", "public Pocisk() \n {\n\t\tziemia = true;\n\t\tzatrzymaj = true;\n\t\tvPocz = 30.0;\n\t\tkatPocz = Math.PI / 4;\n yPocz = 0;\n k = 0;\n dt = 0.08;\n\t}", "public void setPitch(double pitch) {\n\t\tsetPitch((float)pitch);\n\t}", "public Pitch getPitch() {\n return pitch;\n }", "private String pitchToScale(float pitch) {\n String scale=\"?!?!\";\n // 뭔가 녹음이 됐을때 일한다.\n if (pitch != -1){\n //피아노 기준 C1\n if(33<=pitch && pitch<65){\n scale=\"1\";\n if(33<=pitch && pitch<35){\n scale=\"C\"+scale;\n }else if(35<=pitch && pitch<37){\n scale=\"C#\"+scale;\n }else if(37<=pitch && pitch<39){\n scale=\"D\"+scale;\n }else if(39<=pitch && pitch<41){\n scale=\"D#\"+scale;\n }else if(41<=pitch && pitch<44){\n scale=\"E\"+scale;\n }else if(44<=pitch && pitch<46){\n scale=\"F\"+scale;\n }else if(46<=pitch && pitch<49){\n scale=\"F#\"+scale;\n }else if(49<=pitch && pitch<52){\n scale=\"G\"+scale;\n }else if(52<=pitch && pitch<55){\n scale=\"G#\"+scale;\n }else if(55<=pitch && pitch<58){\n scale=\"A\"+scale;\n }else if(58<=pitch && pitch<62){\n scale=\"A#\"+scale;\n }else if(62<=pitch && pitch<65){\n scale=\"B\"+scale;\n }\n }\n //C2\n else if(65<=pitch && pitch<131){\n scale=\"2\";\n if(65<=pitch && pitch<69){\n scale=\"C\"+scale;\n }else if(69<=pitch && pitch<73){\n scale=\"C#\"+scale;\n }else if(73<=pitch && pitch<78){\n scale=\"D\"+scale;\n }else if(78<=pitch && pitch<82){\n scale=\"D#\"+scale;\n }else if(82<=pitch && pitch<87){\n scale=\"E\"+scale;\n }else if(87<=pitch && pitch<92.5){\n scale=\"F\"+scale;\n }else if(92.5<=pitch && pitch<98){\n scale=\"F#\"+scale;\n }else if(98<=pitch && pitch<104){\n scale=\"G\"+scale;\n }else if(104<=pitch && pitch<110){\n scale=\"G#\"+scale;\n }else if(110<=pitch && pitch<116.5){\n scale=\"A\"+scale;\n }else if(116.5<=pitch && pitch<123.5){\n scale=\"A#\"+scale;\n }else if(123.5<=pitch && pitch<131){\n scale=\"B\"+scale;\n }\n }\n //C3\n else if(131<=pitch && pitch<262){\n scale=\"3\";\n if(131<=pitch && pitch<139){\n scale=\"C\"+scale;\n }else if(139<=pitch && pitch<147){\n scale=\"C#\"+scale;\n }else if(147<=pitch && pitch<156){\n scale=\"D\"+scale;\n }else if(156<=pitch && pitch<165){\n scale=\"D#\"+scale;\n }else if(165<=pitch && pitch<175){\n scale=\"E\"+scale;\n }else if(175<=pitch && pitch<185){\n scale=\"F\"+scale;\n }else if(185<=pitch && pitch<196){\n scale=\"F#\"+scale;\n }else if(196<=pitch && pitch<208){\n scale=\"G\"+scale;\n }else if(208<=pitch && pitch<220){\n scale=\"G#\"+scale;\n }else if(220<=pitch && pitch<233){\n scale=\"A\"+scale;\n }else if(233<=pitch && pitch<247){\n scale=\"A#\"+scale;\n }else if(247<=pitch && pitch<262){\n scale=\"B\"+scale;\n }\n }\n //C4\n else if(262<=pitch && pitch<523){\n scale=\"4\";\n if(262<=pitch && pitch<139){\n scale=\"C\"+scale;\n }else if(277<=pitch && pitch<294){\n scale=\"C#\"+scale;\n }else if(294<=pitch && pitch<311){\n scale=\"D\"+scale;\n }else if(311<=pitch && pitch<330){\n scale=\"D#\"+scale;\n }else if(330<=pitch && pitch<349){\n scale=\"E\"+scale;\n }else if(349<=pitch && pitch<370){\n scale=\"F\"+scale;\n }else if(370<=pitch && pitch<392){\n scale=\"F#\"+scale;\n }else if(392<=pitch && pitch<415){\n scale=\"G\"+scale;\n }else if(415<=pitch && pitch<440){\n scale=\"G#\"+scale;\n }else if(440<=pitch && pitch<466){\n scale=\"A\"+scale;\n }else if(466<=pitch && pitch<494){\n scale=\"A#\"+scale;\n }else if(494<=pitch && pitch<523){\n scale=\"B\"+scale;\n }\n }\n //C5\n else if(523<=pitch && pitch<1046.5){\n scale=\"5\";\n if(523<=pitch && pitch<554){\n scale=\"C\"+scale;\n }else if(554<=pitch && pitch<587){\n scale=\"C#\"+scale;\n }else if(587<=pitch && pitch<622){\n scale=\"D\"+scale;\n }else if(622<=pitch && pitch<659){\n scale=\"D#\"+scale;\n }else if(659<=pitch && pitch<698.5){\n scale=\"E\"+scale;\n }else if(698.5<=pitch && pitch<740){\n scale=\"F\"+scale;\n }else if(740<=pitch && pitch<784){\n scale=\"F#\"+scale;\n }else if(784<=pitch && pitch<831){\n scale=\"G\"+scale;\n }else if(831<=pitch && pitch<880){\n scale=\"G#\"+scale;\n }else if(880<=pitch && pitch<932){\n scale=\"A\"+scale;\n }else if(932<=pitch && pitch<988){\n scale=\"A#\"+scale;\n }else if(988<=pitch && pitch<1046.5){\n scale=\"B\"+scale;\n }\n }\n //C6\n else if(1046.5<=pitch && pitch<2093){\n scale=\"6\";\n if(1046.5<=pitch && pitch<1109){\n scale=\"C\"+scale;\n }else if(1109<=pitch && pitch<1175){\n scale=\"C#\"+scale;\n }else if(1175<=pitch && pitch<1244.5){\n scale=\"D\"+scale;\n }else if(1244.5<=pitch && pitch<1318.5){\n scale=\"D#\"+scale;\n }else if(1318.5<=pitch && pitch<1397){\n scale=\"E\"+scale;\n }else if(1397<=pitch && pitch<1480){\n scale=\"F\"+scale;\n }else if(1480<=pitch && pitch<1568){\n scale=\"F#\"+scale;\n }else if(1568<=pitch && pitch<1661){\n scale=\"G\"+scale;\n }else if(1661<=pitch && pitch<1760){\n scale=\"G#\"+scale;\n }else if(1760<=pitch && pitch<1865){\n scale=\"A\"+scale;\n }else if(1865<=pitch && pitch<1975.5){\n scale=\"A#\"+scale;\n }else if(1975.7<=pitch && pitch<2093){\n scale=\"B\"+scale;\n }\n }\n //C7\n else if(2093<=pitch && pitch<4186){\n scale=\"7\";\n if(2093<=pitch && pitch<2217.5){\n scale=\"C\"+scale;\n }else if(2217.5<=pitch && pitch<2349){\n scale=\"C#\"+scale;\n }else if(2349<=pitch && pitch<2489){\n scale=\"D\"+scale;\n }else if(2489<=pitch && pitch<2637){\n scale=\"D#\"+scale;\n }else if(2637<=pitch && pitch<2794){\n scale=\"E\"+scale;\n }else if(2794<=pitch && pitch<2960){\n scale=\"F\"+scale;\n }else if(2960<=pitch && pitch<3136){\n scale=\"F#\"+scale;\n }else if(3136<=pitch && pitch<3322.5){\n scale=\"G\"+scale;\n }else if(3322.5<=pitch && pitch<3520){\n scale=\"G#\"+scale;\n }else if(3520<=pitch && pitch<3729){\n scale=\"A\"+scale;\n }else if(3729<=pitch && pitch<3951){\n scale=\"A#\"+scale;\n }else if(3951<=pitch && pitch<4186){\n scale=\"B\"+scale;\n }\n }\n }\n return scale;\n }", "public Pitch getPitch() {\n return this.pitch;\n }", "public float getPitch() {\n return pitch;\n }", "public double getPitch()\n\t{\n\t\treturn this.pitch;\n\t}", "public void editPAParameters() {\r\n \t\tdialogFactory.getDialog(new ParametricAnalysisPanel(model, model, model, this), \"Define What-if analysis parameters\");\r\n \t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Define o valor da propriedade dsComplementoCep.
public void setDsComplementoCep(int value) { this.dsComplementoCep = value; }
[ "double setPrecioCompra(double dtopp,double prCompraEdicion,double impPortes,double impComision)\n {\n return prCompraEdicion+impPortes+impComision;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getProdsCompldOpsELPOverride();", "public PaqueteComerciar getPaqueteComercio() {\r\n\treturn paqueteComercio;\r\n }", "public BigDecimal getCOMP_CODE() {\r\n return COMP_CODE;\r\n }", "public String getCpe() {\n return cpe;\n }", "public BigDecimal getCOMP_CODE()\r\n {\r\n\treturn COMP_CODE;\r\n }", "public String getEQP_POS_CD() {\n return EQP_POS_CD;\n }", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public TblEditOffrCncptDataRecord() {\n\t\tsuper(Wetrn.WETRN, \"TBL_EDIT_OFFR_CNCPT_DATA\", org.jooq.udt.TEditOffrCncptData.T_EDIT_OFFR_CNCPT_DATA.getDataType());\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getProdsCompldOpsBIPDDeductible();", "public java.lang.String getCEP() {\r\n return CEP;\r\n }", "public java.lang.String getComplemento() {\r\n return complemento;\r\n }", "public BigDecimal getIdpartieproduitpfnlconsultation() {\n return (BigDecimal) getAttributeInternal(IDPARTIEPRODUITPFNLCONSULTATION);\n }", "public java.lang.String getComplemento() {\n return complemento;\n }", "public double getPrecioCompra() {\n return precioCompra;\n }", "public float getPrecioCompra() {\n\treturn precioCompra;\n}", "public java.math.BigDecimal getImportoCompensi() {\r\n return importoCompensi;\r\n }", "public BigDecimal getCodPart() {\r\n return codPart;\r\n }", "public void setProdsCompldOpsELPOverride(java.math.BigDecimal value);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Try to find and set a path to EntityLiving. Returns true if successful. Args : entity, speed
public boolean tryMoveToEntityLiving(WrappedEntity entityIn, double speedIn) { return navigation.a(entityIn.getEntity(), speedIn); }
[ "public boolean tryMoveToEntityLiving(org.bukkit.entity.Entity entityIn, double speedIn) {\n\t\treturn navigation.a(((CraftEntity) entityIn).getHandle(), speedIn);\n\t}", "public void walkTo(Location loc, float speed) {\n try {\n\n Object handle = getHandle();\n\n // Set the onGround status, in case the entity spawned slightly above ground level.\n // Otherwise walking does not work.\n handle.getClass().getField(\"onGround\").set(handle, true);\n\n // Invoke the .a(double x, double y, double z, double speed) method in NavigationAbstract.\n Object nav = handle.getClass().getMethod(\"getNavigation\").invoke(handle);\n Method walk = nav.getClass().getMethod(\"a\", double.class, double.class, double.class, double.class);\n walk.invoke(nav, loc.getX(), loc.getY(), loc.getZ(), speed);\n\n } catch (Exception ex) {\n MirrorMirror.logger().warning(\"Error walking entity: \" + baseEntity.getUniqueId());\n MirrorMirror.logger().warning(ex.getMessage());\n ex.printStackTrace();\n }\n }", "private void checkTarget () {\n\t\ttry {\n\t\t\tif (targetEntity.getEntity().getMovement().teleported() || !targetEntity.getEntity().exists()) {\n\t\t\t\t//If the entity has teleported or no longer exists, remove them as a target\n\t\t\t\tentity.stopAll();\n\t\t\t\tstop();\n\t\t\t} else if (targetEntity.getEntity().getCurrentTile().equals(entity.getCurrentTile())) {\n\t\t\t\tmoveAdjacent();\n\t\t\t} else if (entity.getCurrentTile().withinDistance(\n\t\t\t\t\ttargetEntity.getEntity().getCurrentTile(), targetEntity.getRange())) {\n\t\t\t\tif (targetEntity.onReachTarget()) {\n\t\t\t\t\tstop();\n\t\t\t\t}\t\t\t\n\t\t\t} else if (walkSteps.isEmpty()) {\t\t\t\n\t\t\t\tif (!calculateTargetPath(targetEntity.getEntity())) {\n\t\t\t\t\tstop();\n\t\t\t\t}\n\t\t\t}\t\n\t\t} catch (RuntimeException ex) {\n\t\t\tlogger.error(\"Error processing target for entity \"+entity.getName(), ex);\n\t\t\tstop();\n\t\t}\n\t\t/*if (targetEntity.getEntity().getCurrentTile().equals(targetTile)) {\n\t\t\t//Recalculate the path if the entity has moved\n\t\t\twalkSteps.clear();\n\t\t\t\n\t\t}*/\n\t}", "public void followPath(List<Node> path) {\r\n\t\tfloat xlocation = creature.getXlocation();\r\n\t\tfloat ylocation = creature.getYlocation();\r\n\t\t//Path check timer\r\n\t\t/*-------------------------------------------------------------*/\r\n\t\tpathCheck += System.currentTimeMillis() - lastPathCheck;\r\n\t\tlastPathCheck = System.currentTimeMillis();\r\n\t\tif(pathCheck >= pathCheckCooldown) {\r\n\t\t/*-------------------------------------------------------------*/\r\n\t\t\tcreature.xMove = 0;\r\n\t\t\tcreature.yMove = 0;\r\n\t\t\tcreature.path = path;\r\n\t\t\tif (creature.path != null) {\r\n\t\t\t\tif (creature.path.size() > 0) {\r\n\t\t\t\t\tVector2i vec = creature.path.get(creature.path.size() - 1).tile;\r\n\t\t\t\t\tif (xlocation / Tile.TILEWIDTH < vec.getX() + .5) creature.xMove = creature.speed;\t\t//Right\r\n\t\t\t\t\telse if (xlocation / Tile.TILEWIDTH > vec.getX() + .5) creature.xMove = -creature.speed;\t//Left\t\t/\r\n\t\t\t\t\tif (ylocation / Tile.TILEHEIGHT < vec.getY() + .5) creature.yMove = creature.speed;\t\t//Down\r\n\t\t\t\t\telse if (ylocation / Tile.TILEHEIGHT > vec.getY() + .5) creature.yMove = -creature.speed;\t//Up\t\t/\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tPoint p = moveToCenter(2, creature);\r\n\t\t\t\t\tif(p.getX() == 0 && p.getY() == 0) {\r\n\t\t\t\t\t\tcreature.travelling = false;\r\n\t\t\t\t\t} else {\t\t\t\t\r\n\t\t\t\t\tcreature.xMove = creature.speed * p.getX();\r\n\t\t\t\t\tcreature.yMove = creature.speed * p.getY();\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}", "public static void setSpeed(LivingEntity entity, double speed) {\n\t\tEntityLiving nmsEntity = CommonNMS.getNative(entity);\n\t\tnmsEntity.getAttributeInstance(GenericAttributes.d).setValue(speed);\n\t}", "protected boolean teleportToEntity(Entity entity) {\n Vec3 vector = Vec3.createVectorHelper(this.posX - entity.posX, this.boundingBox.minY + this.height / 2.0F - entity.posY + entity.getEyeHeight(), this.posZ - entity.posZ);\n vector = vector.normalize();\n double x = this.posX + (this.rand.nextDouble() - 0.5) * 8.0 - vector.xCoord * 16.0;\n double y = this.posY + (this.rand.nextInt(16) - 8) - vector.yCoord * 16.0;\n double z = this.posZ + (this.rand.nextDouble() - 0.5) * 8.0 - vector.zCoord * 16.0;\n return this.teleportTo(x, y, z);\n }", "@Override\r\n\tprotected void process(Entity e) {\n\t\tif (state == State.FIND_PATH) {\r\n\t\t\tstate = State.ENTITY_SELECTED;\r\n\t\t\tlastState = State.FIND_PATH;\r\n\t\t\t\r\n\t\t\t// Get the entity's position\r\n\t\t\tMapPosition pos = pm.getSafe(e);\r\n\t\t\t\r\n\t\t\t// Add a Movement component to the entity\r\n\t\t\tMovement movement = new Movement(pos.x,pos.y,pathTarget.x,pathTarget.y, gameMap);\r\n\t\t\te.addComponent(movement);\r\n\t\t\te.changedInWorld();\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean shouldReplace (Entity entity) {\n if (entity != null)\n {\n\n if (entity instanceof Creeper)\n {\n if (replaceAbove)\n {\n if (isAbove (entity.getLocation ()))\n return creepers;\n return false;\n }\n return creepers;\n }\n else if (entity instanceof TNTPrimed)\n {\n if (replaceAbove)\n {\n if (isAbove (entity.getLocation ()))\n return tnt;\n return false;\n }\n else\n return tnt;\n }\n else if (entity instanceof Fireball)\n {\n if (replaceAbove)\n {\n if (isAbove (entity.getLocation ()))\n return ghast;\n return false;\n }\n else\n return ghast;\n }\n else if (entity instanceof EnderDragon)\n return dragons;\n else if (entity instanceof Wither)\n return wither;\n else\n return magical;\n\n }\n else\n return magical;\n }", "public boolean updateBullet()\r\n\t{\r\n\t\tPoint foeLoc = target.getLocation();\r\n\t\tPoint direction = new Point(foeLoc.x - location.x, foeLoc.y - location.y);\r\n\t\t/*Normalize direction vector*/\r\n\t\tdouble magnitude = Math.sqrt(direction.x*direction.x + direction.y*direction.y);\r\n\t\tdouble xDirection = direction.x / magnitude;\r\n\t\tdouble yDirection = direction.y / magnitude;\r\n\t\t/* Multiply by speed*/\r\n\t\txDirection *= speed;\r\n\t\tyDirection *= speed;\r\n\r\n\t\tlocation.x = Math.round((float)xDirection) + location.x;\r\n\t\tlocation.y = Math.round((float)yDirection) + location.y;\r\n\r\n\t\tboolean hit = Math.abs(location.x - foeLoc.x) <= targetLeeway;\r\n\t\thit = hit && Math.abs(location.y - foeLoc.y) <= targetLeeway;\r\n\r\n\t\treturn hit;\r\n\t}", "public void path(){\n\t\tif(myTarget==null || !me.exists())\n\t\t\treturn;\n\t\tSystem.out.println(me.getTilePosition() + \" \" + myTarget);\n\t\tsteps = 0;\n\t\twaiting = false;\n\t\tpath = (new AStarThreat()).getPath(threatGrid,me.getTilePosition(),myTarget);\n\t}", "public boolean applyDynamicCollisions(Step step, Entity entity) {\n boolean collided = false;\n for (Entity e : localStore.getEntities()) {\n MinimumTranslationVector vector = applyCollision(step, entity, e);\n collided = collided || (vector != null);\n // Update current position to resolve collision\n if (vector != null) {\n step.position.x += vector.normal.x * vector.depth;\n step.position.y += vector.normal.y * vector.depth;\n }\n }\n return collided;\n }", "public abstract boolean entityUnderPoint(Point point);", "@Test\n public void testPathEntityDefAvailable() throws Exception {\n AtlasEntityDef pathEntityDef = atlasClientV2.getEntityDefByName(\"Path\");\n assertNotNull(pathEntityDef);\n }", "public boolean canMoveEntity (Entity entity, Point dest) {\n if (entity == null) throw new IllegalArgumentException(\"Entity is null\");\n if (dest == null) throw new IllegalArgumentException(\"Point is null\");\n if (!grid.containsKey(dest)) throw new IllegalArgumentException(\"The cell is not on the grid\");\n\n Point origin = entity.getCoords();\n\n if (origin.equals(dest)) return false;\n\n Vector vector = Vector.findStraightVector(origin, dest);\n\n if (vector == null) return false;\n Vector step = new Vector(vector.axis(), (int) (1 * Math.signum(vector.length())));\n Point probe = (Point) origin.clone();\n while (!probe.equals(dest)) {\n probe = step.applyVector(probe);\n if (!grid.containsKey(probe)) return false;\n }\n\n\n return true;\n }", "public boolean PlaceEntity(Entity entity){\n return PlaceEntityAt(entity, entity.GetCoordinates());\n }", "boolean isObstacle(final IEntity entity);", "private void checkPathing() {\n if(pathing == null) {\n while(pathing == null) {\n map.destroyRandomTower();\n pathing = findPath(74, 17, xDest, yDest);\n }\n }\n }", "public boolean isProjectile();", "@SuppressWarnings(\"ConstantConditions\")\n private boolean isStuck(Position pos, Position posNow) {\n if (pos.isSimilar(posNow)) {\n return true;\n }\n\n Instance instance = getInstance();\n Chunk chunk = null;\n Collection<Entity> entities = null;\n\n /*\n What we're about to do is to discretely jump from the previous position to the new one.\n For each point we will be checking blocks and entities we're in.\n */\n double part = .25D; // half of the bounding box\n Vector dir = posNow.toVector().subtract(pos.toVector());\n int parts = (int) Math.ceil(dir.length() / part);\n Position direction = dir.normalize().multiply(part).toPosition();\n for (int i = 0; i < parts; ++i) {\n // If we're at last part, we can't just add another direction-vector, because we can exceed end point.\n if (i == parts - 1) {\n pos.setX(posNow.getX());\n pos.setY(posNow.getY());\n pos.setZ(posNow.getZ());\n } else {\n pos.add(direction);\n }\n BlockPosition bpos = pos.toBlockPosition();\n Block block = instance.getBlock(bpos.getX(), bpos.getY() - 1, bpos.getZ());\n if (!block.isAir() && !block.isLiquid()) {\n teleport(pos);\n return true;\n }\n\n Chunk currentChunk = instance.getChunkAt(pos);\n if (currentChunk != chunk) {\n chunk = currentChunk;\n entities = instance.getChunkEntities(chunk)\n .stream()\n .filter(entity -> entity instanceof LivingEntity)\n .collect(Collectors.toSet());\n }\n /*\n We won't check collisions with entities for first ticks of arrow's life, because it spawns in the\n shooter and will immediately damage him.\n */\n if (getAliveTicks() < 3) {\n continue;\n }\n Optional<Entity> victimOptional = entities.stream()\n .filter(entity -> entity.getBoundingBox().intersect(pos.getX(), pos.getY(), pos.getZ()))\n .findAny();\n if (victimOptional.isPresent()) {\n LivingEntity victim = (LivingEntity) victimOptional.get();\n victim.setArrowCount(victim.getArrowCount() + 1);\n callEvent(EntityAttackEvent.class, new EntityAttackEvent(this, victim));\n remove();\n return super.onGround;\n }\n }\n return false;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
stop() is used to stop event simulation
public synchronized void stop() { isStopped = true; generators.forEach(EventGenerator::stop); EventSimulatorDataHolder.getSimulatorMap().remove(uuid); if (log.isDebugEnabled()) { log.debug("Stop event simulation for uuid : " + uuid); } }
[ "private void handleStop(ActionEvent actionEvent)\n {\n simulator.stop();\n }", "public void stop() {\n setClosedLoopControl(false);\n }", "public void stop ()\n {\n stopped = true;\n\t\ttrc.info( \"signal is stopped \" + Coroutine.getTime () );\n // trc.show (\"run\", \"signal is stopped\", Coroutine.getTime ());\n runCoroutine.end();\n\n }", "public void stop() {\n intake(0.0);\n }", "@Override\n protected void doStop()\n {\n }", "public void onStopSimulation()\n {\n setStatus(\"STATUS\", \"Stopping simulation.\");\n ProcessSimulator.endThread = true;\n disableButtons(false);\n }", "public void stop() {\n synchronized (eventQueue) {\n isAlive = false;\n }\n }", "public synchronized void stop() {\n\t\t// stop the test here\n\t}", "protected void on_stop()\n {\n }", "boolean shouldStop();", "public void stop() {\n\t\tthis.stopped = true;\n\t\tthis.sendRawMessage(\"Stopping\"); //so that the bot has one message to process to actually stop\n\t}", "@Override\n public void stop() {\n buzz(STOP_FREQUENCY);\n }", "public void stop() {\n _running = false;\n }", "TimeInstrument stop();", "void stopPumpingEvents();", "Stop createStop();", "private synchronized void stop(){\n this.go = false;\n }", "public synchronized void stop(){\n\t\tif (tickHandle != null){\n\t\t\ttickHandle.cancel(false);\n\t\t\ttickHandle = null;\n\t\t}\n\t}", "public void stopSequencer() {this.cancelEvent();}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method increases the number of visited nodes by 1.
public void UpNumberOfVisitedNodes() { NumberOfVisitedNodes++; }
[ "public void setNumberOfVisitedNodes(int numberOfVisitedNodes) {\n NumberOfVisitedNodes = numberOfVisitedNodes;\n }", "public void markAllNodesAsUnvisited() {\r\n visitedToken++;\r\n }", "public void increaseInEdgeCount() {\n\t\tinEdgeCount++;\n\t}", "protected void incEdgeCount() {\n ++ownerGraph.edgeCount;\n }", "public void setVisited() { visited = true; }", "public void setVisited()\r\n {\r\n visited = true;\r\n }", "public void setVisited()\n {\n visited = true;\n }", "public void setVisited()\n\t{\n\t\tthis.visited = true;\n\t}", "public void setNumberOfNodes () {\n this.numOfStates++;\n }", "public void updateNeighbourCount();", "public static void resetNodeCount() {\n\t\tnodeCount = 0;\n\t}", "private void resetVisited() {\n listFriendships.forEach(friendship -> {\n visited.put(friendship.getId().getLeft(), 0L);\n visited.put(friendship.getId().getRight(), 0L);\n });\n }", "public int countReachableNodes() {\n\t\t\n\t\tvar visited = new java.util.HashSet<LinkedListNode<T>>();\n\n\t\tvar node = this;\n\n\t\twhile (!visited.contains(node) && node != null) {\n\t\t\tvisited.add(node);\n\t\t\tnode = node.next;\n\t\t}\n\t\t\n\t\treturn visited.size();\n\t}", "public int getNodeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return visited.size();\r\n }", "public void isVisited() \n\t{\n\t\tvisited = true;\n\n\t}", "public void loadNodesToVisit(){\n for(int i = 0; i <= nodesToVisit.length - 1; i++){\n nodesToVisit[i] = i;\n }\n }", "public void increaseOutEdgeCount() {\n\t\toutEdgeCount++;\n\t}", "public void update(){\n\t\t\n\t\t\n\n\t\tLinkedHashSet<Node> nodes = network.getNodes();\n\t\tint sizeNodes = nodes.size();\n\t\tint sizeArray = this.nodeCounts.size();\n\t\tif (sizeNodes > sizeArray){\n\t\t\tint diff = sizeNodes-sizeArray;\n\t\t\t\n\t\t\tfor (int i =0 ; i < diff ; i++){\n\t\t\t\t\n\t\t\t\tArrayList<Integer> tmp = new ArrayList<Integer>(9);\n\t\t\t\t\n\t\t\t\tfor(int j = 0 ; j < 9;j++){\n\t\t\t\t\ttmp.add(0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\n\t\t\t\t\n\t\t\t\tthis.nodeCounts.add(tmp);\n\t\t\t}\n\t\t\n\t\t}\n\t\telse if (sizeArray> sizeNodes){\n\t\t\t\n\t\t\tint diff = sizeArray-sizeNodes;\n\t\t\tfor (int i =0 ; i < diff ; i++){\n\t\t\t\t\n\t\t\t\tthis.nodeCounts.remove(this.nodeCounts.size()-1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tint i = 0;\n\t\tthis.nodeToNodeCount.clear();\n\t\tfor (Node a: network.getNodes()){\n\t\t\tthis.nodeToNodeCount.put(a, i);\n\t\t\t\n\t\t\tthis.count(a,network,i);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t\n\t\tthis.graphletCount();\n\t\tthis.graphletFrequency();\n\t\t\n\t\tthis.inited = true;\n\n\t}", "public int getNextNodeCount();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the connection with bad password
@Test public void testConnectionWhenBadPass() { Form form = new Form(); form.param("login", "user"); form.param("psw", "00000"); Response connect = target.path(auth).request().post(Entity.form(form)); assertEquals(530,connect.getStatus()); }
[ "public void testIncorrectPassword() {\n Password p = new Password(\"jesus\".toCharArray());\n assertFalse(p.checkPassword(\"buddha\".toCharArray()));\n }", "@Test\n public void testConnectionWhenBadUser() {\n \tForm form = new Form();\n \tform.param(\"login\", \"test\");\n \tform.param(\"psw\", \"12345\");\n \t\n \tResponse connect = target.path(auth).request().post(Entity.form(form));\n \tassertEquals(530,connect.getStatus());\n }", "@Test\n\tpublic void testLoginBadPassword()\n\t{\n\t\ttry\n\t\t{\n\t\t\tbetFair.login(userName, password + \"A\", filePassword, new File(\"./certs/client-2048.p12\"));\n\t\t\tfail(\"BadLoginDetailsException expected in testLoginBadPassword()\");\n\t\t}\n\t\tcatch (BadLoginDetailsException expectedException)\n\t\t{\n\t\t\tSystem.out.println(\"testLoginBadPassword() pass!\");\n\t\t}\n\t}", "@Test\n\tpublic void testCheckPasswordWrong() {\n\t\tassertFalse(u1.checkPassword(\"dsauj\"));\n\t}", "@Test\n public void testCorrectUAndWrongP() {\n assertFalse(\"Invalid Credentials\",\n instance.login(\"admin\", \"password@123\"));\n }", "@Test\n public void testConnectionNeg() throws Exception {\n miniHiveKdc.loginUser(MiniHiveKdc.HIVE_TEST_USER_1);\n try {\n String url = miniHS2.getJdbcURL().replaceAll(\";principal.*\", \"\");\n hs2Conn = DriverManager.getConnection(url);\n fail(\"NON kerberos connection should fail\");\n } catch (SQLException e) {\n // expected error\n assertEquals(\"08S01\", e.getSQLState().trim());\n }\n }", "@Test\n public void getPasswordTest() {\n Assert.assertEquals(\"123456\", credentials.getPassword());\n }", "void validatePassword(String usid, String password) throws Exception;", "@Test\n public void invalidCredentials_errorMessage()\n {\n \tString invalidEmail = \"admin@gmail.com\";\n \tString invalidPwd = \"123456\";\n \tloginToLynkmanager(invalidEmail, invalidPwd);\n \tverifyInvalidCredentialsErrorMsg();\n }", "@Test\n public void testWrongUAndCorrectP() {\n assertFalse(\"Invalid Credentials\", instance.login(\"Users\", \"epam123\"));\n }", "@Test\n public void testJmxDoesNotExposePassword() throws Exception {\n final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n\n try (Connection c = ds.getConnection()) {\n // nothing\n }\n final ObjectName objectName = new ObjectName(ds.getJmxName());\n\n final MBeanAttributeInfo[] attributes = mbs.getMBeanInfo(objectName).getAttributes();\n\n assertTrue(attributes != null && attributes.length > 0);\n\n Arrays.asList(attributes).forEach(attrInfo -> {\n assertFalse(\"password\".equalsIgnoreCase(attrInfo.getName()));\n });\n\n assertThrows(AttributeNotFoundException.class, () -> {\n mbs.getAttribute(objectName, \"Password\");\n });\n }", "@Test\n public void testEmptyUAndP() {\n assertFalse(\"Invalid Credentials\", instance.login(\"\", \"\"));\n }", "public void testCorrectPassword() {\n Password p = new Password(\"jesus\".toCharArray());\n assertTrue(p.checkPassword(\"jesus\".toCharArray()));\n }", "@Test\r\n public void getPasswordTest()\r\n {\r\n Assert.assertEquals(stub.getPassword(), PASS);\r\n }", "@Test(expected = SQLException.class)\n public void testNegativeProxyAuth() throws Exception {\n miniHiveKdc.loginUser(MiniHiveKdc.HIVE_TEST_SUPER_USER);\n hs2Conn = DriverManager\n .getConnection(miniHS2.getJdbcURL(\"default\", \";hive.server2.proxy.user=\" + MiniHiveKdc.HIVE_TEST_USER_2));\n }", "@Test\r\n\tpublic void testLoginWrong() {\r\n\t\tboolean b;\r\n\t\tb=mc.input(\"!login adminZ adminY\");\r\n\t\tassertFalse(b);\r\n\t}", "@Test\n public void testGetPassword() {\n assertEquals(\"test_pass\", account.getPassword());\n }", "@Test\n\tpublic void testInvalidLengthPassword1()\n\t{\n\t\tString password = \"2Shrt\";\n\t\tassertFalse(Validate.password(password));\n\t}", "public void testIncorrectUserPassword() {\n final String key = \"mysecret\";\n final String value = \"keepsafe\";\n\n SecurePreferences securePrefs = new SecurePreferences(getContext(), \"password\", USER_PREFS_WITH_PASSWORD);\n securePrefs.edit().putString(key, value).commit();\n securePrefs=null;\n\n SecurePreferences securePrefsWithWrongPass = new SecurePreferences(getContext(), \"incorrectpassword\", USER_PREFS_WITH_PASSWORD);\n String myValue = securePrefsWithWrongPass.getString(key, null);\n if(value.equals(myValue)){\n fail(\"Using the wrong password, should not return the decrpyted value\");\n }\n\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the given item to the heap.
public void add(T item) { ensureCapacity(); array_heap[num_items + 1] = item; num_items++; bubbleUp(num_items); }
[ "public void add(int item)\n {\n if (isEmpty())\n {\n heap[1] = item;\n }\n else\n {\n int newIndex = lastIndex + 1;\n int parentIndex = newIndex / 2;\n while (parentIndex > 0 && item > heap[parentIndex])\n {\n heap[newIndex] = heap[parentIndex];\n swapsAdd++;\n newIndex = parentIndex;\n parentIndex = newIndex / 2;\n }\n heap[newIndex] = item;\n lastIndex++;\n }\n }", "@Override\n public void add(T item, int priority) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n\n heap.add(new Node(item, priority));\n size++;\n swim(size);\n\n }", "@Override\n public void add(T item, double priority) {\n if (contains(item)) {\n throw new IllegalArgumentException();\n }\n\n heap.add(new Node(item, priority));\n itemMapIndex.put(item, heap.size() - 1);\n swim(heap.size() - 1);\n }", "public void insert(Process item) {\n if(numItems >= data.length)\n doubleCapacity();\n\n data[numItems] = item;\n heapAndFreeStack[numItems] = numItems;\n bubbleUp(numItems);\n numItems++;\n }", "public int Insert(DHeap_Item item) \n { \n \tthis.size++;\n \tthis.array[this.size-1]=item;\n \titem.setPos(this.size-1);\n \tint compCnt=heapifyUp(this,item.getPos());\n \treturn compCnt;\n }", "public void push(Item item){\n this.stack.add(item);\n\n }", "@Override\n public void addElement(T element) {\n if (count == heap.length) {\n expandCapacity();\n }\n heap[count++] = element;\n heapifyAdd(); // call this to ensure that the item swaps up, as needed\n\n }", "public void insert(Item it) {\n // If the array is at capacity, resize it up.\n if (N >= heap.length) {\n Item[] temp = (Item[]) new Comparable[2*N];\n for (int i=0; i<N; i++)\n temp[i] = heap[i];\n heap = temp;\n }\n heap[N] = it;\n N++;\n swim(N);\n }", "@Override\n public void insert(Item itemToAdd){\n if(numberOfItems == pq.length){\n resize(2*pq.length);\n }\n pq[numberOfItems++] = itemToAdd; // add item to pq and increment numberOfItems\n }", "public void add(T item, double priority) {\n if(contains(item)) throw new IllegalArgumentException();\n /* Add to the last */\n array.add(size + 1, new PQNode<>(item, priority));\n size += 1;\n /* Take care of MAP */\n map.put(item, size);\n /* The new node should go to the right place */\n goToRightPlace(size, 1);\n }", "public void addItem(HashItem item) {\r\n\t\thashTable.add(item);\r\n\t}", "public void push(ByteBufferWithInfo item)\n {\n list.addFirst(item);\n }", "public void push(T item)\r\n\t{\r\n\t\t if (size == Stack.length) \r\n\t\t {\r\n\t\t\t doubleSize();\r\n\t }\r\n\t\tStack[size++] = item;\r\n\t}", "public boolean add(AgeData item){\r\n\r\n boolean isFound = false;\r\n int child;\r\n int parent;\r\n int index = 0;\r\n\r\n for(int i=0; i < heap_list.size(); i++){\r\n if(heap_list.get(i).compareTo(item) ==0){\r\n heap_list.get(i).numberOfPeople++;\r\n isFound = true;\r\n index = i;\r\n break;\r\n }\r\n }\r\n if(!isFound){\r\n item.numberOfPeople++;\r\n heap_list.add(item);\r\n child = heap_list.size() - 1;\r\n parent = (child - 1) / 2;\r\n }\r\n else{\r\n child = index;\r\n parent = (child-1)/2;\r\n }\r\n while(parent >= 0 && comparator.compare(heap_list.get(parent),heap_list.get(child)) == 1){\r\n AgeData temp = heap_list.get(parent);\r\n heap_list.set(parent, heap_list.get(child));\r\n heap_list.set(child, temp);\r\n child = parent;\r\n parent = (child - 1) / 2;\r\n }\r\n return true;\r\n }", "public void add(Answer item) {\r\n for (int i = AIKey.MAX_HISTORY-1; i > 0; i--) {\r\n history[i] = history[i-1];\r\n }\r\n history[0] = item;\r\n currentSize++;\r\n }", "public void add(T item)\n\t{\n\t\tint index = 0;\n\t\tboolean found = false;\n\t\t\n\t\t// Find the location to insert item in array\n\t\t// Iterate until index does not reach the end of the list and location has not been found yet\n\t\twhile(index < this.num && found != true)\n\t\t{\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tT curr = (T) this.data[index];\n\t\t\t\n\t\t\t// Found the location of the first object that is greater than the provided item\n\t\t\tif(curr.compareTo(item) > 0)\n\t\t\t{\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\t\t\t\t\t\n\t\t// Shift elements to right of the array starting at the new space (located next to the last item in array)\n\t\tfor(int j = this.num; j > index; j--)\n\t\t{\n\t\t\tthis.data[j] = this.data[j - 1];\n\t\t}\n\t\t\n\t\tthis.data[index] = item; // insert item at the proper location\n\t\tthis.num++; // increment number of elements in array\n\t}", "public void push(ILocation item)\n {\n stack.add(top, item);\n top++;\n }", "void push(T item, int priority);", "public void add(Node node) {\n this.heapSize ++;\n int i = this.heapSize;\n while ((i > 1) && !(this.heap[parent(i)].smaller(node))) {\n this.heap[i] = this.heap[parent(i)];\n i = parent(i);\n }\n this.heap[i] = node;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The UriDelegationPeer is used as a mechanism to pass arguments from the UriArgManager which resides in "launcher space" to our argument delegation service implementation that lives as an osgi bundle. An instance of this peer is created from within the argument delegation service impl and is registered with the UriArgManager.
public interface ArgDelegationPeer { /** * Handles <code>uriArg</code> in whatever way it finds fit. * * @param uriArg the uri argument that this delegate has to handle. */ public void handleUri(String uriArg); /** * Called when the user has tried to launch a second instance of * SIP Communicator while a first one was already running. A typical * implementation of this method would simply bring the application on * focus but it may also show an error/information message to the user * notifying them that a second instance is not to be launched. */ public void handleConcurrentInvocationRequest(); }
[ "void addPeerEndpoint(PeerEndpoint peer);", "java.lang.String getDelegatorAddress();", "protected void setPeer() {\n //--ARM-- setPeer()\n }", "public void setPeer(Peer peer);", "void addPeer(Uuid peer) throws RemoteException;", "public P2PSocketLeaseManager(PeerGroup group,PipeAdvertisement adv,Object referent) {\n this.group = group;\n this.disc = group.getDiscoveryService();\n this.adv = adv;\n this.reference = new WeakReference(referent);\n thread = new Thread(this);\n }", "@Mangling({\"_Z18udp_set_remote_urlP10URLContextPKc\", \"?udp_set_remote_url@@YAHPAUURLContext@@PAD@Z\"}) \n\tint udp_set_remote_url(URLContext h, String uri);", "@Test\n public void undelegatedUri() {\n XMLResolverConfiguration uconfig = new XMLResolverConfiguration(Collections.emptyList(), Collections.emptyList());\n uconfig.setFeature(ResolverFeature.CATALOG_FILES, Collections.singletonList(catalog2));\n CatalogManager umanager = new CatalogManager(uconfig);\n\n URI result = umanager.lookupURI(\"https://example.com/delegated/sample/3.0/sample.rng\");\n assertEquals(catloc.resolve(\"sample30/fail.rng\"), result);\n }", "public void handleUri(String uriArg);", "public interface ChannelEndpointManager {\n\n /**\n\t * \n\t */\n public static final int NO_POLICY = 0;\n\n /**\n\t * \n\t */\n public static final int FAILOVER_REDUNDANCY_POLICY = 1;\n\n /**\n\t * \n\t */\n static final int LOADBALANCING_ANY_POLICY = 2;\n\n /**\n\t * \n\t */\n static final int LOADBALANCING_ONE_POLICY = 3;\n\n /**\n\t * add a reduntant binding for a service. <i>EXPERIMENTAL</i>.\n\t * \n\t * @param service\n\t * the URI of the service.\n\t * @param redundant\n\t * the URI of the redundant service.\n\t */\n public void addRedundantEndpoint(final URI service, final URI redundant);\n\n /**\n\t * remove a redundant binding from a service. <i>EXPERIMENTAL</i>.\n\t * \n\t * @param service\n\t * the URI of the service.\n\t * @param redundant\n\t * the URI of the redundant service.\n\t */\n public void removeRedundantEndpoint(final URI service, final URI redundant);\n\n /**\n\t * set a policy for making use of redundant service bindings.\n\t * <i>EXPERIMENTAL</i>.\n\t * \n\t * @param service\n\t * the URI of the service.\n\t * @param policy\n\t * the policy to be used.\n\t */\n public void setEndpointPolicy(final URI service, final int policy);\n\n /**\n\t * get the local address of the managed channel endpoint.\n\t * \n\t * @return the local URI.\n\t */\n public URI getLocalAddress();\n\n /**\n\t * transform a timestamp into the peer's local time.\n\t * \n\t * @param timestamp\n\t * the Timestamp.\n\t * @return the transformed timestamp.\n\t * @throws RemoteOSGiException\n\t * if the transformation fails.\n\t * @since 0.2\n\t */\n public Timestamp transformTimestamp(final Timestamp timestamp) throws RemoteOSGiException;\n}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tSystem.out.println(\"start Peer ...\");\n\t\t\tPeer peerServer = new Peer();\n\t\t\tSystem.out.println(\"RMI registry at port \"+ Port +\".\");\n\t\t\tLocateRegistry.createRegistry(Port); \n\t\t\tNaming.rebind(PeerUrl+\":\"+Port+\"/Peer\", peerServer); \n\t\t\tSystem.out.println(\"Bind Succussfully.\");\n\t\t\t\n\t\t\t//Thread for Peer Client to provide the functions for users.\n\t\t\tnew peerClient().start();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Peer Main Error: \" + e);\n\t\t}\n\t}", "public interface IIncomingProtocolNegotiationReceiver {\r\n\t/**\r\n\t * Notifies that a protocol negotiation request from the given party has been received and asks for permission to proceed with it. It also includes a reference to the ProtocolNegotiator that shall process the request.\r\n\t * @param party\r\n\t * @param incoming\r\n\t */\r\n public void protocolNegotiationReceived(URI party, IIncomingProtocolNegotiator incoming);\r\n\r\n}", "public ParsedURI resolve(ParsedURI relURI) {\n\t\t// This algorithm is based on the algorithm specified in chapter 5 of\n\t\t// RFC 2396: URI Generic Syntax. See http://www.ietf.org/rfc/rfc2396.txt\n\n\t\t// RFC, step 3:\n\t\tif (relURI.isAbsolute()) {\n\t\t\treturn relURI;\n\t\t}\n\n\t\t// relURI._scheme == null\n\n\t\t// RFC, step 2:\n\t\tif (relURI._authority == null && relURI._query == null && relURI._path.length() == 0) {\n\t\t\t// Reference to this URI\n\t\t\tParsedURI result = (ParsedURI) this.clone();\n\n\t\t\t// Inherit any fragment identifier from relURI\n\t\t\tresult._fragment = relURI._fragment;\n\n\t\t\treturn result;\n\t\t}\n\n\t\t// We can start combining the URIs\n\t\tString scheme, authority, path, query, fragment;\n\t\tboolean normalizeURI = false;\n\n\t\tscheme = this._scheme;\n\t\tquery = relURI._query;\n\t\tfragment = relURI._fragment;\n\n\t\t// RFC, step 4:\n\t\tif (relURI._authority != null) {\n\t\t\tauthority = relURI._authority;\n\t\t\tpath = relURI._path;\n\t\t} else {\n\t\t\tauthority = this._authority;\n\n\t\t\t// RFC, step 5:\n\t\t\tif (relURI._path.startsWith(\"/\")) {\n\t\t\t\tpath = relURI._path;\n\t\t\t} else if (relURI._path.length() == 0) {\n\t\t\t\tpath = this._path;\n\t\t\t} else {\n\t\t\t\t// RFC, step 6:\n\t\t\t\tpath = this._path;\n\n\t\t\t\tif (path == null) {\n\t\t\t\t\tpath = \"/\";\n\t\t\t\t} else {\n\t\t\t\t\tif (!path.endsWith(\"/\")) {\n\t\t\t\t\t\t// Remove the last segment of the path. Note: if\n\t\t\t\t\t\t// lastSlashIdx is -1, the path will become empty,\n\t\t\t\t\t\t// which is fixed later.\n\t\t\t\t\t\tint lastSlashIdx = path.lastIndexOf('/');\n\t\t\t\t\t\tpath = path.substring(0, lastSlashIdx + 1);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (path.length() == 0) {\n\t\t\t\t\t\t// No path means: start at root.\n\t\t\t\t\t\tpath = \"/\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Append the path of the relative URI\n\t\t\t\tpath += relURI._path;\n\n\t\t\t\t// Path needs to be normalized.\n\t\t\t\tnormalizeURI = true;\n\t\t\t}\n\t\t}\n\n\t\tParsedURI result = new ParsedURI(scheme, authority, path, query, fragment);\n\n\t\tif (normalizeURI) {\n\t\t\tresult.normalize();\n\t\t}\n\n\t\treturn result;\n\t}", "public void beginRoutingWithNewIntent();", "private void init(URI uri)\n {\n uri.normalize(); // a VRL is a stricter implementation then an URI ! \n\n // scheme: \n String newScheme=uri.getScheme();\n\n boolean hasAuth=StringUtil.notEmpty(uri.getAuthority()); \n \n String newUserInf=uri.getUserInfo();\n String newHost=uri.getHost(); // Not: resolveLocalHostname(uri.getHost()); // resolveHostname(uri.getHost());\n int newPort=uri.getPort();\n \n // ===========\n // Hack to get path,Query and Fragment part from SchemeSpecific parth if the URI is a reference\n // URI. \n // The java.net.URI doesn't parse \"file:relativePath?query\" correctly\n // ===========\n String pathOrRef=null;\n String newQuery=null; \n String newFraq=null; \n \n if ((hasAuth==false) && (uri.getRawSchemeSpecificPart().startsWith(\"/\")==false)) \n {\n // Parse Reference URI or Relative URI which is not URL compatible: \n // hack to parse query and fragment from non URL compatible \n // URI \n try\n {\n // check: \"ref:<blah>?query#frag\"\n URI tempUri=null ;\n \n tempUri = new URI(newScheme+\":/\"+uri.getRawSchemeSpecificPart());\n String path2=tempUri.getPath(); \n // get path but skip added '/': \n // set Path but keep as Reference ! (path is reused for that) \n \n pathOrRef=path2.substring(1,path2.length()); \n newQuery=tempUri.getQuery(); \n newFraq=tempUri.getFragment(); \n }\n catch (URISyntaxException e)\n {\n \tGlobal.errorPrintStacktrace(e);\n // Reference URI: ref:<blahblahblah> without starting '/' ! \n // store as is without parsing: \n \tpathOrRef=uri.getRawSchemeSpecificPart(); \n }\n }\n else\n {\n // plain PATH URI: get Path,Query and Fragment. \n pathOrRef=uri.getPath(); \n newQuery=uri.getQuery(); \n newFraq=uri.getFragment();\n }\n \n // ================================\n // use normalized initializer\n // ================================\n init(newScheme,newUserInf,newHost,newPort,pathOrRef,newQuery,newFraq); \n }", "void addPeer(final PeerId peer, final Closure done);", "public CallPeerAdapter(CallPeer callPeer, CallPeerRenderer renderer)\n {\n this.callPeer = callPeer;\n this.renderer = renderer;\n }", "WithCreate withPeeringServiceLocation(String peeringServiceLocation);", "com.google.protobuf.ByteString\n getDelegatorAddressBytes();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Disable the inventory menu if the user has no items. Disable the pick up item menu if there are no items to pick up.
private void setUsabilityOfMenus(World world) { inventoryMenu.setDisable(world.getInventory().size() == 0); pickupItemMenu.setDisable(world.getPickupItems().size() == 0); }
[ "private void setUsabilityOfInventoryMenuItems(World world) {\n\t\tif (!roomToDrop(world)) {\n\t\t\tfor (MenuItem itemToDisable : inventoryMenu.getItems()) {\n\t\t\t\titemToDisable.setDisable(true);\n\t\t\t}\n\t\t}\n\t}", "private void disableBoughtItems() {\n for (int i = 0; i < itemButtons.size(); i++) {\n if (storeViewModel.isItemBought(i)) {\n setDisableEffect(i);\n }\n }\n }", "private void disableMenuItems() {\n\t\tcancelAction.setEnabled(true);\n\t\tif ((gtRefreshGame != null) && (!gtRefreshGame.isDisposed())) {\n\t\t\tgtRefreshGame.setEnabled(false);\n\t\t}\n\t\tif ((gtUpdateGame != null) && (!gtUpdateGame.isDisposed())) {\n\t\t\tgtUpdateGame.setEnabled(false);\n\t\t}\n\t\tif ((gtPingAllItem != null) && (!gtPingAllItem.isDisposed())) {\n\t\t\tgtPingAllItem.setEnabled(false);\t\t\t\n\t\t}\n\n\t\tgameTree.setEnabled(false);\n\t\tserverTable.setEnabled(false);\n\n\t\tstUpdateSelectedItem.setEnabled(false);\n\t\tstPingSelectedItem.setEnabled(false);\n\t\tstJoinSelectedItem.setEnabled(false);\n\t\t\n\t\tif ((stAddServerToFolder!= null) && !stAddServerToFolder.isDisposed()) {\n\t\t\tstAddServerToFolder.setEnabled(false);\n\t\t}\n\t\tif ((stRemoveFolderServers!= null) && !stRemoveFolderServers.isDisposed()) {\n\t\t\tstRemoveFolderServers.setEnabled(false);\n\t\t}\n\t\tstWatchSelected.setEnabled(false);\n\t\tstCopyAddress.setEnabled(false);\n\t\tstCopyServer.setEnabled(false);\n\n\t\trebuildMaster.setEnabled(false);\n\t\tupdateCurrent.setEnabled(false);\n\t\tpingCurrent.setEnabled(false);\n\t\tupdateSelected.setEnabled(false);\n\t\tpingSelected.setEnabled(false);\n\t\tconnectSelected.setEnabled(false);\n\t\twatchServer.setEnabled(false);\n//\t\tfindPlayer.setEnabled(false);\n\t\tconfigureGames.setEnabled(false);\n\t\tconfigurePrefs.setEnabled(false);\n\t\t\t\t\n\t\tserverUpdateSelectedItem.setEnabled(false);\n\t\tserverPingSelectedItem.setEnabled(false);\n\t\tserverWatchSelectedItem.setEnabled(false);\n\t\tserverConnectItem.setEnabled(false);\n//\t\tserverRconItem.setEnabled(false);\n//\t\tserverFindLanItem.setEnabled(false);\n//\t\tserverAddTriggerItem.setEnabled(false);\n//\t\tserverEditTriggerItem.setEnabled(false);\n\t}", "protected boolean shouldShowItemNone() {\n return false;\n }", "private void setMenuItemstate() {\n\n // get the item that has to be disabled\n MenuItem selectedMenuItem = optionsMenu.findItem(R.id.most_popular);\n switch (order_by) {\n case NetUtils.SORT_BY_POPULAR:\n selectedMenuItem = optionsMenu.findItem(R.id.most_popular);\n break;\n case NetUtils.SORT_BY_TOP_RATED:\n selectedMenuItem = optionsMenu.findItem(R.id.top_rated);\n break;\n case SHOW_FAVOURITES:\n selectedMenuItem = optionsMenu.findItem(R.id.favourites);\n break;\n }\n\n // set the item as disabled, enable the rest\n\n\n\n for(int i=0; i<optionsMenu.size(); i++)\n if (optionsMenu.getItem(i).equals(selectedMenuItem ))\n optionsMenu.getItem(i).setEnabled(false);\n else\n optionsMenu.getItem(i).setEnabled(true);\n\n }", "public void updateMenuItems() {\n\t\tfor (int i = 0; i < this.selectEnemyMenu.getItemCount(); i++) {\n\t\t\tif (this.enemies.get(i).getCurrentHealth() <= 0) {\n\t\t\t\tthis.selectEnemyMenu.getItem(i).setText(this.enemies.get(i).getName() + \": Deceased\");\n\t\t\t\tthis.selectEnemyMenu.getItem(i).setEnabled(false);\n\t\t\t} else {\n\t\t\t\tthis.selectEnemyMenu.getItem(i)\n\t\t\t\t\t\t.setText(this.enemies.get(i).getName() + \": \" + this.enemies.get(i).getCurrentHealth());\n\t\t\t}\n\t\t}\n\t}", "boolean shouldHideMenuItems();", "private void equip()\n\t{\n\t\tZuulObject item = searchInventory(object);\n\t\t\n\t\tif(item == null)\n\t\t\tSystem.out.println(\"You don't have one of those\");\n\t\telse\n\t\t{\n\t\t\tif(item instanceof Weapon)\n\t\t\t{\n\t\t\t\tif(equipped != null)\n\t\t\t\t\tinventory.add(equipped);\n\t\t\t\tequipped = item;\n\t\t\t\tinventory.remove(item);\n\t\t\t\tSystem.out.println(\"You equipped a \" + equipped);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"You can't equip that\");\n\t\t\t\tinventory.add(item);\n\t\t\t}\n\t\t}\n\t}", "public boolean isEquipable()\n\t{\n\t\treturn !(_item.getBodyPart() == 0 || _item instanceof L2EtcItem);\n\t}", "public boolean canEquip()\r\n\t{\r\n\t\treturn !(type == ItemSlot.UNEQUIPPABLE);\r\n\t}", "public void disableMenus() {\n mMenuEnabled = false;\n }", "public void showMyInventory() {\n\n try {\n List<String> items = tradingFacade.fetchItems().query().onlyApproved()\n .notDeleted()\n .onlyOwnedBy(this.userId)\n .heldByOwner()\n .getNames();\n if(!items.isEmpty()) controllerPresenter.displayList(items);\n else controllerPresenter.get(\"NoItemInventory\");\n } catch (IOException e) {\n errorPresenter.displayIOException();\n }\n\n }", "@Test\n\tpublic void testInventoryNoItems() {\n\t\tgame.parseUserInput(\"I\", mockRoom);\n\t\tassertEquals(\"-coffee -cream -sugar\", game.getLastCommand());\t\t// Should match the lastCommand String when the player has no items\n\t}", "@Override\n public boolean active() {\n return !Inventory.isFull();\n }", "public static void emptyInventoryListMessage() {\n System.out.println(\"You do not have any Items in your inventory:(\");\n }", "@Override\r\n\tpublic boolean canDropInventory(IBlockState state)\r\n\t{\r\n\t\treturn false;\r\n\t}", "private void noneAction() {\r\n\r\n\t\t// Executes the command that corresponds\r\n\t\tAcideMainWindow.getInstance().getConsolePanel()\r\n\t\t\t.executeCommand(item.getItemConfiguration().getCommand(), \"\");\r\n\t}", "@Override\n\tpublic boolean canDropInventory(IBlockState state)\n\t{\n\t\treturn false;\n\t}", "public boolean isSelectingWeapon() {\n return false;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the given filter to the idAttrs edition editor.
public void addFilterToIdAttrs(ViewerFilter filter);
[ "public void addFilterToIdParams(ViewerFilter filter);", "public void addFilterToAttributes(ViewerFilter filter);", "public void addBusinessFilterToIdAttrs(ViewerFilter filter);", "public void addBusinessFilterToIdParams(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "public void setIdFilter(String idFilter) {\n\t\tthis.idFilter = idFilter;\n\t}", "public void addFilterToCreator(ViewerFilter filter);", "public void addFilterToReader(ViewerFilter filter);", "public void addBusinessFilterToAttributes(ViewerFilter filter);", "public void setIdFilter(Long id) {\n this.idFilter = id;\n }", "public void addFilterToPolicyEntries(ViewerFilter filter);", "void addRecipeFilter(RecipeFilter recipeFilter);", "public void addFilterToCombo(ViewerFilter filter);", "public void addNodeFilter (INodeFilter filter);", "public void addFilter(Filter<NDLStitchingDetail> filter) {\n\t\tthis.filter = filter;\n\t}", "public void addFilterToComboRO(ViewerFilter filter);", "public void addFilterToMigRelations(ViewerFilter filter);", "public void addFilterToMethodArguments(ViewerFilter filter);", "public void setIdFilter(Long idFilter) {\n\t\tthis.idFilter = idFilter;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Download Stock data every night at 10 PM
@Scheduled(cron="0 51 22 * * *") public void downloadStockData() throws IOException { System.out.println("Downloading Stock Quotes...."); DownloadData.main(null); }
[ "public void getHistoricalData(KiteConnect kiteConnect) throws KiteException, IOException {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date from = new Date();\n Date to = new Date();\n try {\n from = formatter.parse(\"2019-12-20 09:15:00\");\n to = formatter.parse(\"2019-12-20 15:30:00\");\n }catch (ParseException e) {\n e.printStackTrace();\n }\n //for SBI alone\n HistoricalData historicalData = kiteConnect.getHistoricalData(from, to, \"779521\", \"15minute\", false, true);\n System.out.println(historicalData.dataArrayList.size());\n System.out.println(historicalData.dataArrayList.get(0).volume);\n System.out.println(historicalData.dataArrayList.get(historicalData.dataArrayList.size() - 1).volume);\n System.out.println(historicalData.dataArrayList.get(0).oi);\n }", "@Scheduled(cron=\"* 0 9-17/1 * * MON-FRI\")\n public void updateEveryHour() {\n if (marketOpen) {\n this.marketTrades = autoCreate();\n return;\n }\n\n expireTrades();\n }", "@Override\n public void launchDownload() {\n\n new NewsDownload(this,\"https://api.nytimes.com/svc/topstories/v2/home.json?api-key=1ae7b601c1c7409796be77cce450f631\",\n getContext(),true)\n .execute();\n }", "@Scheduled(cron = \"0 0 0/2 * * ?\")\n\tpublic void pullNewsFeedFromNyTimes() throws Exception {\n\t\tNyTimes nyTimes = getNewsFromNyTimes();\n\t\tlogger.info(\"Completed fetching news from Ny Times at :\" + new java.util.Date());\n\t}", "private String downloadFile(String theTicker) throws MalformedURLException, IOException\r\n {\r\n String preUrl = \"http://chart.finance.yahoo.com/table.csv?s=\" + theTicker + \"&a=3&b=12&c=1996&d=0&e=31&f=2017&g=d&ignore=.csv\";\r\n String fileLocString = \"StockFiles\\\\\" + theTicker + \".csv\";\r\n\r\n File currentFile = new File (fileLocString); // creates the file object to be used two lines down\r\n URL currentUrl = new URL (preUrl); //creates a url to use on next line\r\n FileUtils.copyURLToFile(currentUrl, currentFile); //actually downloads the file\r\n \r\n \r\n return fileLocString;\r\n }", "String getStockData(String symbol) throws Exception\n\t{\n\t\tfinal String urlHalf1 = \"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=\";\n\t\tfinal String urlHalf2 = \"&apikey=\";\n\t\tfinal String apiKey = \"FKS0EU9E4K4UQDXI\";\n\n\t\tString url = urlHalf1 + symbol + urlHalf2 + apiKey;\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString hitUrl = url;\n\t\tString jsonData = getJsonData(hitUrl);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tString returnData = \"\";\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject jsonObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement timeSeries = jsonObject.get(\"Time Series (Daily)\");\n\n\t\t\tif (timeSeries.isJsonObject())\n\t\t\t{\n\t\t\t\tJsonObject timeObject = timeSeries.getAsJsonObject();\n\n\t\t\t\tDate date = new Date();\n\n\t\t\t\tCalendar calendar = new GregorianCalendar();\n\t\t\t\tcalendar.setTime(date);\n\n\t\t\t\t// Loop until we reach most recent Friday (market closes on Friday)\n\t\t\t\twhile (calendar.get(Calendar.DAY_OF_WEEK) < Calendar.FRIDAY\n\t\t\t\t\t\t|| calendar.get(Calendar.DAY_OF_WEEK) > Calendar.FRIDAY)\n\t\t\t\t{\n\t\t\t\t\tcalendar.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\t\t}\n\n\t\t\t\tint year = calendar.get(Calendar.YEAR);\n\t\t\t\tint month = calendar.get(Calendar.MONTH) + 1;\n\t\t\t\tint day = calendar.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t\tString dayToString = Integer.toString(day);\n\n\t\t\t\tif (dayToString.length() == 1)\n\t\t\t\t\tdayToString = \"0\" + dayToString;\n\n\t\t\t\tJsonElement currentData = timeObject.get(year + \"-\" + month + \"-\" + dayToString);\n\n\t\t\t\tif (currentData.isJsonObject())\n\t\t\t\t{\n\t\t\t\t\tJsonObject dataObject = currentData.getAsJsonObject();\n\n\t\t\t\t\tJsonElement openPrice = dataObject.get(\"1. open\");\n\t\t\t\t\tJsonElement closePrice = dataObject.get(\"4. close\");\n\t\t\t\t\tJsonElement highPrice = dataObject.get(\"2. high\");\n\t\t\t\t\tJsonElement lowPrice = dataObject.get(\"3. low\");\n\n\t\t\t\t\treturnData = year + \"-\" + month + \"-\" + dayToString + \" - \" + symbol + \": Opening price: $\"\n\t\t\t\t\t\t\t+ openPrice.getAsString() + \" / Closing price: $\" + closePrice.getAsString()\n\t\t\t\t\t\t\t+ \" / High price: $\" + highPrice.getAsString() + \" / Low price: $\" + lowPrice.getAsString();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn returnData;\n\t}", "@Scheduled(cron = \"0 0 0 * * *\") //for 30 seconds trigger -> 0,30 * * * * * for 12am fires every day -> 0 0 0 * * *\n\tpublic void cronJob() {\n\t\tList<TodayBalance> tb = balanceService.findTodaysBalance();\n\t\tList<TodayBalance> alltb = new ArrayList<TodayBalance>();\n\t\talltb.addAll(tb);\n\t\t\n\t\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.DATE, -1);\n\t\n\t\tif(!alltb.isEmpty()) {\n\t\t\tfor (TodayBalance tbal : alltb ) {\n\t\t\t \n\t\t\t\tClosingBalance c = new ClosingBalance();\n\t\t\t\tc.setCbalance(tbal.getBalance());\n\t\t\t\tc.setDate((cal.getTime()).toString());\n\t\t \n\t\t\t\tclosingRepository.save(c);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void downloadData() {\n\t\tint start = millis();\n\t\tdthread = new DaysimDownloadThread();\n\t\tdthread.start();\n\t\tdataready = false;\n\t\twhile(!dataready) {\n\t\t\tif((millis() - start)/175 < 99) {\n\t\t\t\tLightMaskClient.setMainText(\"\\n\\n\" + \"Downloading: \" + (millis() - start)/175 + \"% completed\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tLightMaskClient.setMainText(\"Downloading: \" + 99 + \"% completed\");\n\t\t\t}\n\t\t\tdelay(100);\n\t\t}\n\t\tdthread.quit();\n\t\tLightMaskClient.setMainText(\"\\n\\n\" + \"Downloading: 100% completed\");\n\t\tToolkit.getDefaultToolkit().beep();\n\t\tdelay(1000); \n\t\tLightMaskClient.setMainText(\"Please disconnect the Daysimeter\");\n\t\tLightMaskClient.dlComplete = true;\n\t\t//setup the download for processing\n\t\tfor(int i = 0; i < EEPROM.length; i++) {\n\t\t\tEEPROM[i] = bytefile1[i] & 0xFF;\n\t\t}\n\t \n\t\tfor(int i = 0; i < header.length; i++) {\n\t\t\theader[i] = bytefile2[i] & 0xFF;\n\t\t}\n\t\t\n\t\tasciiheader = MakeList(header);\n\t\tisnew = asciiheader[2].contains(\"daysimeter\");\n\t\tisUTC = asciiheader[1].contains(\"1.3\") || asciiheader[1].contains(\"1.4\")\n\t\t\n\t\torganizeEEPROM();\n\t\tprocessData();\n\t\tsavefile();\n\t}", "public void downloadRateSheetHistory()\n\t{\n\t\tclick_button(\"Download CSV Button\", downloadCSVButton);\n\t\tfixed_wait_time(5);\n\t\t\n\t\tif(isFileDownloaded(\"rateSheetHistory.csv\"))\n\t\t\toReport.AddStepResult(\"\", \"Clicked on Download CSV icon, Verified that filtered results are downloaded\", \"PASS\");\n\t\telse\n\t\t\toReport.AddStepResult(\"\", \"Clicked on Download CSV icon, but that filtered results are not downloaded\", \"FAIL\");\n\t\t\n\t\tcsvToExcel();\n\t\t@SuppressWarnings(\"static-access\")\n\t\tint recordsCount = oExcelData.getRowCount(getTheNewestFile(oParameters.GetParameters(\"downloadFilepath\"), \"xlsx\"));\n\t\toParameters.SetParameters(\"recordsInExcel\", String.valueOf(recordsCount));\n\t\t\n\t\tdeleteFile(\"C:/CCM/Downloads/rateSheetHistory.csv\");\n\t\t\n\t\tdeleteFile(\"C:/CCM/Downloads/rateSheetHistory.xlsx\");\n\t\t\n/*\t\tFile csvFile = new File(oParameters.GetParameters(\"downloadFilepath\")+\"/rateSheetHistory.csv\");\n\t\tcsvFile.delete();\n\t\t\n\t\tFile xlsxFile = new File(oParameters.GetParameters(\"downloadFilepath\")+\"/rateSheetHistory.xlsx\");\n\t\txlsxFile.delete();*/\n\t\t\n\t\tif(oParameters.GetParameters(\"UserFilteredRecords\").equals(oParameters.GetParameters(\"recordsInExcel\")))\n\t\t\toReport.AddStepResult(\"\", \"Clicked on Download CSV icon, Verified that filtered results are displayed in excel sheet \", \"PASS\");\n\t\telse\n\t\t\toReport.AddStepResult(\"\", \"Clicked on Download CSV icon, But that filtered results are not displayed in excel sheet \", \"FAIL\");\t\t\n\t}", "long getDailyRefreshTime();", "private static synchronized StockBean refreshStockInfo(String symbol, long time)\n {\n try\n {\n URL yahoofin = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\" + symbol + \"&f=sl1d1t1c1ohgv&e=.csv\");\n URLConnection yc = yahoofin.openConnection();\n BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));\n String inputLine;\n while ((inputLine = in.readLine()) != null)\n {\n String[] yahooStockInfo = inputLine.split(\",\");\n StockBean stockInfo = new StockBean();\n stockInfo.setTicker(yahooStockInfo[0].replaceAll(\"\\\"\", \"\"));\n stockInfo.setPrice(Float.valueOf(yahooStockInfo[1]));\n stockInfo.setChange(Float.valueOf(yahooStockInfo[4]));\n stockInfo.setChartUrlSmall(\"http://ichart.finance.yahoo.com/t?s=\" + stockInfo.getTicker());\n stockInfo.setChartUrlLarge(\"http://chart.finance.yahoo.com/w?s=\" + stockInfo.getTicker());\n stockInfo.setLastUpdated(time);\n stocks.put(symbol, stockInfo);\n break;\n }\n in.close();\n }\n catch (Exception ex)\n {\n System.out.print(\"Unable to get stock quote\");\n ex.printStackTrace();\n //log.error(\"Unable to get stockinfo for: \" + symbol + ex);\n }\n return stocks.get(symbol);\n }", "protected void runEach10Minutes() {\n try {\n saveHistoryData();\n if (isEnabledScheduler()) {\n boolean action = getLightSchedule().getCurrentSchedule();\n if (action) {\n if (!currentState) switchOn();\n } else {\n if (currentState) switchOff();\n }\n }\n } catch (RemoteHomeManagerException e) {\n RemoteHomeManager.log.error(44,e);\n } catch (RemoteHomeConnectionException e) {\n RemoteHomeManager.log.error(45,e);\n }\n }", "public static void printDailyVolumeForSingleStock() throws Exception {\r\n\t\tString symbol = \"GOOG\";\r\n\t\tFile file = new File(StockConst.INTRADAY_DIRECTORY_PATH_GOOGLE + symbol + \".txt\");\r\n\t\tMultiDaysCandleList mdstockCandleList = getIntraDaystockCandleList(file);\r\n\t\tfor (int i = 0; i < mdstockCandleList.size(); i++) {\r\n\t\t\tlong volumeDay = 0;\r\n\t\t\tIntraDaystockCandleList idstockCandleList = mdstockCandleList.get(i);\r\n\t\t\tfor (int j = 0; j < idstockCandleList.size(); j++) {\r\n\t\t\t\tvolumeDay += idstockCandleList.get(j).getVolume();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(idstockCandleList.getTimestamp() + \" \" + volumeDay);\r\n\t\t}\r\n\t}", "public void readPrices() {\n\t\tDate version = new Date();\n\t\tString altparty = getAltpartyid();\n\t\tboolean checkedVersion = false;\n\t\tString message = \"Interhome readPrices \" + altparty;\n\t\tLOG.debug(message);\n\t\tString fn = null;\n\t\t\n\t\tString salesoffice = getSalesOfficeCode(Currency.Code.EUR.name());\n\t\tCurrency.Code currency = Currency.Code.EUR;\n\t\t\n\t\tfinal SqlSession sqlSession = RazorServer.openSession();\n\t\ttry {\n\t\t\tfn = \"dailyprice_\" + salesoffice + \"_\" + currency.name().toLowerCase() + \".xml\";\n\n\t\t\t//check version of svn file and last price database entry\n\t\t\tnet.cbtltd.shared.Price action = new net.cbtltd.shared.Price();\n\t\t\taction.setState(net.cbtltd.shared.Price.CREATED);\n\t\t\taction.setPartyid(\"90640\");\n\t\t\taction.setAvailable(1);\n\n\t\t\tDate priceVersion = sqlSession.getMapper(PriceMapper.class).maxVersion(action);\n\t\t\tcheckedVersion = checkVersion(fn, priceVersion);\n\t\t\tif (checkedVersion) {\n\t\t\t\tJAXBContext jc = JAXBContext.newInstance(\"net.cbtltd.rest.interhome.price\");\n\t\t\t\tUnmarshaller um = jc.createUnmarshaller();\n\t\t\t\t\n\t\t\t\tPrices prices = (Prices) um.unmarshal(ftp(fn));\n\t\t\t\t\n\t\t\t\tif (prices != null && prices.getPrice() != null) {\n\t\t\t\t\tint count = prices.getPrice().size();\n\t\t\t\t\tLOG.debug(\"Total daily prices count: \" + count);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.debug(\"Error, no dailyprices file\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\n\t\t\t\tint i = 0;\n\t\t\t\tfor (Price price : prices.getPrice()) {\n\t\t\t\t\tString altid = price.getCode();\n//\t\t\t\t\tif (!altid.equals(\"CH3920.126.1\") || !\"CH3920.126.1\".equalsIgnoreCase(altid)) continue;\n\t\t\t\t\tString productid = getProductId(altid);\n\t\t\t\t\t\n\t\t\t\t\tif (productid == null) {\n\t\t\t\t\t\tProduct product = sqlSession.getMapper(ProductMapper.class).altread(new NameId(altparty, altid));\n\t\t\t\t\t\tif (product == null) {\n\t\t\t\t\t\t\tLOG.error(Error.product_id.getMessage() + \" \" + price.getCode());\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPRODUCTS.put(altid, product.getId());\n\t\t\t\t\t\tproductid = getProductId(altid);\n\t\t\t\t\t}\n\t\n//\t\t\t\t\tif (!productid.equals(\"27077\") || !String.valueOf(27077).equalsIgnoreCase(productid)) continue;\n\t\n\t\t\t\t\taction = new net.cbtltd.shared.Price();\n\t\t\t\t\taction.setPartyid(altparty);\n\t\t\t\t\taction.setEntitytype(NameId.Type.Product.name());\n\t\t\t\t\taction.setEntityid(productid);\n\t\t\t\t\taction.setCurrency(currency.name());\n\t\t\t\t\taction.setQuantity(1.0);\n\t\t\t\t\taction.setUnit(Unit.DAY);\n\t\t\t\t\taction.setName(net.cbtltd.shared.Price.RACK_RATE);\n\t\t\t\t\taction.setType(NameId.Type.Reservation.name());\n\t\t\t\t\taction.setDate(price.getStartdate().toGregorianCalendar().getTime());\n\t\t\t\t\taction.setTodate(price.getEnddate().toGregorianCalendar().getTime());\n\t\n\t\t\t\t\tnet.cbtltd.shared.Price exists = sqlSession.getMapper(PriceMapper.class).exists(action);\n\t\t\t\t\tif (exists == null) {sqlSession.getMapper(PriceMapper.class).create(action);}\n\t\t\t\t\telse {action = exists;}\n\t\n\t\t\t\t\taction.setState(net.cbtltd.shared.Price.CREATED);\n\t\t\t\t\taction.setRule(net.cbtltd.shared.Price.Rule.AnyCheckIn.name());\n\t\t\t\t\taction.setFactor(1.0);\n//\t\t\t\t\tDouble rentalPrice = price.getRentalprice().doubleValue();\n//\t\t\t\t\tDouble value = duration > 0.0 ? NameId.round(rentalPrice / quantity) : rentalPrice;\n\t\t\t\t\taction.setValue(price.getRentalprice().doubleValue());\n//\t\t\t\t\taction.setMinimum(price.getMinrentalprice().doubleValue());\n\t\t\t\t\taction.setVersion(version);\n\t\t\t\t\taction.setAvailable(1);\n\t\t\t\t\tsqlSession.getMapper(PriceMapper.class).update(action);\n\t\t\t\t\tsqlSession.getMapper(PriceMapper.class).cancelversion(action);\n\t\n\t\t\t\t\tLOG.debug(i++ + \" DailyPrice: \" + \" \" + price.getCode() + \" \" + productid + \" \" + salesoffice + \" \" + action.getValue() + \" \" + currency + \" daily\");\n\t\n//\t\t\t\t\tif (price.getFixprice().signum() != 0) {\n\t\t\t\t\t\tAdjustment adjust = setAdjustment(sqlSession, productid, 5, 999, currency.name(), action.getDate(), action.getTodate(), price, Adjustment.WEEK, \"fixprice\", version);\n\t\t\t\t\t\tDAILYPRICES.put(adjust.getID(), price.getRentalprice().doubleValue());\n\t\n\t\t\t\t\t\tLOG.debug(i++ + \" FixPrice: \" + \" \" + price.getCode() + \" \" + productid + \" \" + salesoffice + \" \" + adjust.getExtra() + \" \" + currency + \" fixprice\");\n//\t\t\t\t\t}\n\t\t\t\t\tif (price.getMidweekrentalprice().signum() != 0) {\n\t\t\t\t\t\tadjust = setAdjustment(sqlSession, productid, 1, 1, currency.name(), action.getDate(), action.getTodate(), price, (byte)0x1E, \"midweek\", version);\n\t\t\t\t\t\tadjust = setAdjustment(sqlSession, productid, 2, 2, currency.name(), action.getDate(), action.getTodate(), price, (byte)0xE, \"midweek\", version);\n\t\t\t\t\t\tadjust = setAdjustment(sqlSession, productid, 3, 3, currency.name(), action.getDate(), action.getTodate(), price, (byte)0x6, \"midweek\", version);\n\t\t\t\t\t\tadjust = setAdjustment(sqlSession, productid, 4, 4, currency.name(), action.getDate(), action.getTodate(), price, Adjustment.MONDAY, \"midweek\", version);\n\t\n\t\t\t\t\t\tLOG.debug(i++ + \" MidweekPrice: \" + \" \" + price.getCode() + \" \" + productid + \" \" + salesoffice + \" \" + adjust.getExtra() + \" \" + currency + \" midweek\");\n\t\t\t\t\t}\n\t\t\t\t\tif (price.getWeekendrentalprice().signum() != 0) {\n\t\t\t\t\t\tadjust = setAdjustment(sqlSession, productid, 1, 1, currency.name(), action.getDate(), action.getTodate(), price, Adjustment.SATURDAY, \"weekend\", version);\n\t\t\t\t\t\tadjust = setAdjustment(sqlSession, productid, 2, 2, currency.name(), action.getDate(), action.getTodate(), price, (byte)0x60, \"weekend\", version);\n\t\t\t\t\t\tadjust = setAdjustment(sqlSession, productid, 3, 3, currency.name(), action.getDate(), action.getTodate(), price, (byte)0x70, \"weekend\", version);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tLOG.debug(i++ + \" WeekendPrice: \" + \" \" + price.getCode() + \" \" + productid + \" \" + salesoffice + \" \" + adjust.getExtra() + \" \" + currency + \" weekend\");\n\t\t\t\t\t}\n//\t\t\t\t\tLOG.debug(i++ + \"DailyPrice: \" + \" \" + price.getCode() + \" \" + product.getId() + \" \" + salesoffice + \" \" + action.getValue() + \" \" + currency + \" \" + duration);\n\t\t\t\t}\n\t\t\t\tAdjustment cancelAction = new Adjustment();\n\t\t\t\tcancelAction.setCurrency(currency.name());\n\t\t\t\tcancelAction.setPartyID(altparty);\n\t\t\t\tcancelAction.setVersion(version);\n\t\t\t\t\n\t\t\t\tsqlSession.getMapper(AdjustmentMapper.class).cancelversion(cancelAction);\n\t\t\t\tsqlSession.commit();\n\t\t\t}\n\t\t}\n\t\tcatch (Throwable x) {\n\t\t\tsqlSession.rollback();\n\t\t\tLOG.error(x.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\tsqlSession.close();\n\t\t\tdelete(fn);\n\t\t}\n\t\tif (checkedVersion) {\n\t\t\treadPrices(version, salesoffice, currency, 7);\n\t\t\treadPrices(version, salesoffice, currency, 14);\n\t\t\treadPrices(version, salesoffice, currency, 21);\n\t\t\treadPrices(version, salesoffice, currency, 28);\n\t\t}\n\t}", "public void backloadRecentHistoData() throws APIUnavailableException {\n\n //gets a list of the coins in the top_30 coins table\n ArrayList<TopCoins> topCoins = topCoinsMapper.getTopCoins();\n\n\n //gets the coin symbols from the top 30 coins table and backloads the histo\n //data for each coin in each table\n for (int i = 0; i < topCoins.size(); i++) {\n\n //the symbol of the coin in the current loop through the list of top coins;\n //used in the call to the CryptoCompare API to specify for which coin data\n //is requested for\n String fsym = topCoins.get(i).getSymbol();\n\n //the coin ID that corresponds to the fsym parameter;\n //assigning the id of the given coin to variable coinID in order to\n //save the historical data to DB with the id of the coin for which the data\n //is being saved\n int coinID = topCoins.get(i).getEntry_id();\n\n\n\n\n //----------------MINUTES----------------\n\n String urlMinutes = \"https://min-api.cryptocompare.com/data/histominute?fsym=\" + fsym + \"&tsym=USD\"\n + \"&limit=2000&e=CCCAGG\";\n\n //object that will contain the response from the API call\n HistoMinute histoMinute = new HistoMinute();\n try {\n //API call using Nicola's method to log call and check remaining calls\n histoMinute = (HistoMinute) cryptoCompareService.callCryptoCompareAPI(urlMinutes, histoMinute);\n\n if (histoMinute.getData().length < 1) {\n throw new APIUnavailableException();\n }\n\n } catch (Exception e) {\n throw new APIUnavailableException();\n }\n\n //holds the timestamp of the latest entry in the histo_minute table\n long lastHistominTime;\n\n //used as index in Data array in the response from the API call (the histoMinute object)\n int indexMinute = 0;\n\n //tries to retrieve timestamp of last entry in DB for the given coin;\n //if no entry exists for given coin, the catch statement executes\n try {\n lastHistominTime = backloadHistoDataMapper.getLastHistominEntry(coinID).getTime();\n\n //used to determine from which element in the Data array from the API response\n //backloading should start; this is to avoid backloading duplicate data\n for (Data meetingPoint : histoMinute.getData()) {\n\n //each time through the loop indexMinute is incremented; when a match is found between\n //the timestamp of the last entry in the DB for the given coin and a timestamp in the\n //API response for the given coin, the loop breaks; now, when indexMinute is used as the index\n //when looping through the array from the API response, the first element retrieved from\n //the API response to be backloaded into the DB will be the element at indexMinute, hence\n //it will be the element that should be right after the last entry in the DB\n indexMinute++;\n if (meetingPoint.getTime() == lastHistominTime) {\n break;\n }\n\n /*\n since only 2001 elements can be received from the API response at a time, if indexMinute\n reaches 2001, it is reset back to 0 since no entry in the DB was found that matched\n any of the elements in the response from the API call; now that it is reset back to 0,\n all the elements from the response will be backloaded since not finding a match either means\n that the method has not been run for so long that the API data has advanced too\n much in time or that simply no entries have been uploaded to the DB for that given coin;\n also, the lastHistoMinTime is assigned timestamp of first element in array\n from API response so that backloading starts from the first element in the array\n */\n if (indexMinute == 2001) {\n indexMinute = 0;\n lastHistominTime = histoMinute.getData()[0].getTime();\n break;\n }\n\n }\n\n //if no entry exists for given coin, timestamp of first element in array\n //from API response assigned to lastHistoMinTime so that backloading starts\n //from the first element in the array, thus backloading all the data received from\n //the response since no data exists for given coin\n } catch (Exception e) {\n lastHistominTime = histoMinute.getData()[0].getTime();\n }\n\n\n //variables for calculating percentage change between opening and closing prices of a given coin\n double open;\n double close;\n //% increase = Increase ÷ Original Number × 100.\n //if negative number, then this is a percentage decrease\n double percentChange;\n\n //will hold all the objects to be uploaded to DB as a batch insert\n ArrayList<HistoDataDB> histoDataDBArrayList = new ArrayList<>();\n\n //loop that will iterate as many times as there are data objects in the response,\n //assign each data object to a HistoDataDB object and add it to histoDataDBArrayList\n for (long j = lastHistominTime;\n j < histoMinute.getData()[histoMinute.getData().length - 1].getTime(); j = j + 60) {\n\n HistoDataDB histoDataDB = new HistoDataDB();\n\n// can be used to convert time in seconds from API call to specific date and time\n// histoDataDB.setTime( DateUnix.secondsToSpecificTime( histoMinute.getData()[i].getTime() ) );\n\n open = histoMinute.getData()[indexMinute].getOpen();\n close = histoMinute.getData()[indexMinute].getClose();\n percentChange = (((close - open) / open) * 100);\n\n histoDataDB.setTime(histoMinute.getData()[indexMinute].getTime());\n histoDataDB.setClose(histoMinute.getData()[indexMinute].getClose());\n histoDataDB.setHigh(histoMinute.getData()[indexMinute].getHigh());\n histoDataDB.setLow(histoMinute.getData()[indexMinute].getLow());\n histoDataDB.setOpen(histoMinute.getData()[indexMinute].getOpen());\n histoDataDB.setVolumefrom(histoMinute.getData()[indexMinute].getVolumefrom());\n histoDataDB.setVolumeto(histoMinute.getData()[indexMinute].getVolumeto());\n histoDataDB.setCoin_id(coinID);\n histoDataDB.setPercent_change(percentChange);\n\n// backloadHistoDataMapper.insertHistoMinuteIntoDB(histoDataDB);\n\n histoDataDBArrayList.add(histoDataDB);\n\n indexMinute++;\n\n }\n\n backloadHistoDataMapper.insertHistoMinuteData(histoDataDBArrayList);\n\n }\n }", "public void writeDataFile(String stock) throws FileNotFoundException {\n\n\t\tStringBuilder jsonData = new StringBuilder(\"\");\n\t\tStringBuilder priceData = new StringBuilder(\"\");\n\t\tStringBuilder volumeData = new StringBuilder(\"\");\n\t\tStringBuilder summaryData = new StringBuilder(\"\");\n\n\t\tString[] str = { \"January\", \"February\", \"March\", \"April\", \"May\",\n\t\t\t\t\"June\", \"July\", \"August\", \"September\", \"October\", \"November\",\n\t\t\t\t\"December\" };\n\n\t\tLocalDate fromDate = new LocalDate(2010, 11, 17);\n\n\t\tLocalDate toDate = new LocalDate();\n\n\t\tLinkedList<Stock> ll = FinanceQuery.getHistorical(stock, fromDate,\n\t\t\t\ttoDate, \"d\");\n\n\t\tIterator<Stock> iterator = ll.iterator();\n\n\t\tFile file = new File(\"./WebRoot/static/javascript/Vis_Files/data-\"\n\t\t\t\t+ stock + \".js\");\n\t\tfile.deleteOnExit();\n\t\tPrintWriter write = new PrintWriter(file);\n\n\t\tint i = 0;\n\n\t\twhile (iterator.hasNext()) {\n\t\t\tString jD = \"\";\n\t\t\tString pD = \"\";\n\t\t\tString vD = \"\";\n\t\t\tString sD = \"\";\n\t\t\tStock s = iterator.next();\n\n\t\t\t// will contain all the key points about the share\n\t\t\tjD += \"{date:'\" + str[s.getDate().getMonthOfYear() - 1] + \" \"\n\t\t\t\t\t+ s.getDate().getDayOfMonth() + \", \"\n\t\t\t\t\t+ s.getDate().getYear() + \"',\";\n\t\t\tjD += \"open:\" + s.getOpen() + \",\";\n\t\t\tjD += \"high:\" + s.getHigh() + \",\";\n\t\t\tjD += \"low:\" + s.getLow() + \",\";\n\t\t\tjD += \"close:\" + s.getClose() + \",\";\n\t\t\tjD += \"volume:\" + s.getVolume() + \"}\";\n\t\t\t// -----------------------------\n\t\t\t// will store the closing price of the share over the range of time\n\t\t\tpD += \"[\" + (ll.size() - 1 - i) + \",\" + s.getClose() + \"]\";\n\t\t\t// -----------------------------\n\t\t\t// will store the volume sold of the share over the range in time\n\t\t\tvD += \"[\" + (ll.size() - 1 - i) + \",\" + s.getVolume() + \"]\";\n\t\t\t// -----------------------------\n\t\t\t// summary of the data, same as price data\n\t\t\tsD += \"[\" + (ll.size() - 1 - i) + \",\" + s.getClose() + \"]\";\n\n\t\t\tif (i != 0) {\n\t\t\t\tjD += \",\";\n\t\t\t\tpD += \",\";\n\t\t\t\tvD += \",\";\n\t\t\t\tsD += \",\";\n\t\t\t}\n\n\t\t\ti++;\n\t\t\t// add to the front of the string\n\t\t\t// [so that olds dates are first and newest dates are last]\n\t\t\t// when iterating over the list - new dates are done first\n\t\t\tjsonData.insert(0, jD);\n\t\t\tpriceData.insert(0, pD);\n\t\t\tvolumeData.insert(0, vD);\n\t\t\tsummaryData.insert(0, sD);\n\t\t}\n\t\tjsonData.insert(0, \"var jsonData = [\");\n\t\tpriceData.insert(0, \"var priceData = [\");\n\t\tvolumeData.insert(0, \"var volumeData = [\");\n\t\tsummaryData.insert(0, \"var summaryData = [\");\n\n\t\twrite.println(jsonData + \"];\");\n\t\twrite.println(priceData + \"];\");\n\t\twrite.println(volumeData + \"];\");\n\t\twrite.println(summaryData + \"];\");\n\n\t\twrite.close();\n\t}", "@OnClick(R.id.bn_data_sync_download_data) void onClickDownload() {\n Toast.makeText(getApplicationContext(), \"Download is in progress...\", Toast.LENGTH_SHORT).show();\n\n // delete the current local cache before downloading new tables from server db\n deleteLocationData();\n deleteQuestionnaireData();\n deleteQuestionData();\n deleteAnswerData();\n deleteQAData();\n deleteLogicData();\n deleteQuestionRelationData();\n\n downloadLocationData();\n downloadQuestionnaireData();\n downloadQuestionData();\n downloadAnswerData();\n downloadQAData();\n downloadLogicData();\n downloadQuestionRelationData();\n\n Toast.makeText(getApplicationContext(), \"Download is done!\", Toast.LENGTH_SHORT).show();\n }", "@Scheduled(fixedRate = 120000)\n public void readRss() {\n\n List<ItemNews> itemList = new ArrayList<>();\n\n try {\n String url = \"https://www.nytimes.com/svc/collections/v1/publish/https://www.nytimes.com/section/world/rss.xml\";\n\n try (XmlReader reader = new XmlReader(new URL(url))) {\n SyndFeed feed = new SyndFeedInput().build(reader);\n for (SyndEntry entry : feed.getEntries()) {\n LocalDateTime localDateTime = entry.getPublishedDate().toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDateTime();\n ItemNews item = new ItemNews();\n item.setTitle(entry.getTitle());\n item.setAuthor(entry.getAuthor());\n item.setLink(entry.getLink());\n item.setDescription(entry.getDescription().getValue());\n item.setDateTime(localDateTime);\n modifyItem(item);\n itemList.add(item);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (!itemList.isEmpty()) {\n Collections.sort(itemList , Comparator.comparing(ItemNews::getDateTime));\n saveItems(itemList);\n }\n }", "private void downloadDataFromServer() {\n if(Network.isAvailable(getActivity())) {\n PlacesDownload.downloadFromServer(getActivity());\n }else{\n mApp.getErrorManager().showError(R.string.error_action_refresh);\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
verify the required parameter 'remoteSignTaskWorkRequest' is set
@SuppressWarnings("rawtypes") private com.squareup.okhttp.Call signRemoteSignTaskWorkValidateBeforeCall(RemoteSignTaskWorkRequestDTO remoteSignTaskWorkRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { if (remoteSignTaskWorkRequest == null) { throw new ApiException("Missing the required parameter 'remoteSignTaskWorkRequest' when calling signRemoteSignTaskWork(Async)"); } com.squareup.okhttp.Call call = signRemoteSignTaskWorkCall(remoteSignTaskWorkRequest, progressListener, progressRequestListener); return call; }
[ "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call signRemoteSignValidateBeforeCall(RemoteSignRequestDTO remoteSignRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (remoteSignRequest == null) {\n throw new ApiException(\"Missing the required parameter 'remoteSignRequest' when calling signRemoteSign(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = signRemoteSignCall(remoteSignRequest, progressListener, progressRequestListener);\n return call;\n\n }", "public com.squareup.okhttp.Call signRemoteSignTaskWorkCall(RemoteSignTaskWorkRequestDTO remoteSignTaskWorkRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n Object localVarPostBody = remoteSignTaskWorkRequest;\n\n // create path and map variables\n String localVarPath = \"/api/Sign/RemoteSignTaskWork\";\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\", \"text/json\", \"application/xml\", \"text/xml\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\", \"text/json\", \"application/xml\", \"text/xml\", \"application/x-www-form-urlencoded\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n if(progressListener != null) {\n apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {\n @Override\n public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {\n com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());\n return originalResponse.newBuilder()\n .body(new ProgressResponseBody(originalResponse.body(), progressListener))\n .build();\n }\n });\n }\n\n String[] localVarAuthNames = new String[] { \"Authorization\" };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);\n }", "boolean hasSignInit();", "@Test\n public void verify_just_me_send_sign_request() throws Exception{\n verify_file_upload();\n justMeSignPage.click_fill_out_sign_button();\n justMeSignPage.drag_and_drop_date_text_box();\n justMeSignPage.click_on_continue_button();\n justMeSignPage.send_sign_request();\n }", "private void signRequest(HttpRequestBase request){\n\t}", "protected void validateSignRequestV2(SignRequestV2[] param){\r\n \r\n }", "public void remoteExceptionInVerify() {\n\tremoteExceptionInVerify = true;\n }", "@Test\n public void testStartTaskReadyByPotentialOwner() throws HTException {\n\n Task t = createTask_TwoPotentialOwners();\n this.services.startTask(t.getId(), \"user1\");\n \n org.junit.Assert.assertEquals(\"user1\", t.getActualOwner().getName());\n org.junit.Assert.assertEquals(Status.IN_PROGRESS, t.getStatus());\n }", "public Task<PendingIntent> getSignPendingIntent(BrowserPublicKeyCredentialRequestOptions requestOptions) {\n return scheduleTask((PendingGoogleApiCall<PendingIntent, Fido2PrivilegedGmsClient>) (client, completionSource) -> {\n try {\n client.sign(new IFido2PrivilegedCallbacks.Stub() {\n @Override\n public void onPendingIntent(Status status, PendingIntent pendingIntent) throws RemoteException {\n if (status.isSuccess()) {\n completionSource.setResult(pendingIntent);\n } else {\n completionSource.setException(new ApiException(status));\n }\n }\n }, requestOptions);\n } catch (Exception e) {\n completionSource.setException(e);\n }\n });\n }", "protected void checkMyTask(GWCTask task) {\n \tcheckArgument(task.getJob()==this, \"Task %s does not belong to Job %s\", task.getTaskId(), this.getId());\n }", "boolean hasSignedGitSimCommit();", "public void receiveResultverifysign(\n core.sakai.wsdl.SakaiSigningServiceStub.VerifysignResponse result\n ) {\n }", "boolean hasCheckoutTokenRequired();", "@Test\n public void testNotSigningKey() throws Exception {\n GHRepository r = gitHub.getRepository(\"hub4j/github-api\");\n GHCommit commit = r.getCommit(\"86a2e245aa6d71d54923655066049d9e21a15f02\");\n assertThat(commit.getCommitShortInfo().getAuthor().getName(), equalTo(\"Sourabh Parkala\"));\n assertThat(commit.getCommitShortInfo().getVerification().isVerified(), is(false));\n assertThat(commit.getCommitShortInfo().getVerification().getReason(),\n equalTo(GHVerification.Reason.NOT_SIGNING_KEY));\n }", "public SynchronizationJobValidateCredentialsParameterSet() {}", "void sign(QCloudHttpRequest request, QCloudCredentials credentials) throws QCloudClientException;", "@Suspendable\n @Override\n protected void checkTransaction(SignedTransaction stx) throws FlowException {\n }", "boolean isBlockedBy(Task otherTask);", "void acceptSignature(VerifySignatureRequest request);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
auto generated Axis2 call back method for loadbal1 method override this method for handling normal response from loadbal1 operation
public void receiveResultloadbal1( loadbalance.LoadBalanceStub.Loadbal1Response result ) { }
[ "public void receiveResultloadBal(\n loadbalance.LoadBalanceStub.LoadBalResponse result\n ) {\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public void receiveResultpassLoad(\n loadbalance.LoadBalanceStub.PassLoadResponse result\n ) {\n }", "protected abstract List<T2> manageResponse(String methodName, String extractedData);", "public void receiveResultgetAge(\n axis2.GetAgeResponse result\n ) {\n }", "private CallResponse() {\n initFields();\n }", "public List<BLGetDTO> processGetBL(String xmlResponse, String methodType) throws XmlPullParserException, IOException{\n\t\tboolean isLoadingMessage=false;\n\t\tboolean isPaginationParam=false;\n\n\t\tBLColumnDTO column = null;\n\t\tList<BLColumnDTO> getBLColList = null;\n\t\tString tagName = null;\n\t String tagText;\n\t List<BLGetDTO> getBLList = new ArrayList<BLGetDTO>();\n\t BLGetDTO blGet = new BLGetDTO();\n\t boolean isColumn=false;\n\t\tXmlPullParserFactory xmlPullParserFactory = XmlPullParserFactory\n\t\t\t\t.newInstance();\n\t\txmlPullParserFactory.setNamespaceAware(true);\n\t\tXmlPullParser xmlPullParser = xmlPullParserFactory.newPullParser();\n\t\txmlPullParser.setInput(new StringReader(xmlResponse));\n\t\tint eventType = xmlPullParser.getEventType();\n\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\n\t\t\ttagName = xmlPullParser.getName();\n\t\t\tswitch (eventType) {\n\t\t\tcase XmlPullParser.START_TAG:\n\t\t\t\tif (tagName.equalsIgnoreCase(methodType)) {\n\t\t\t\t\tfor (int i = 0; i < xmlPullParser.getAttributeCount(); i++) {\n\t\t\t\t\t\tif (xmlPullParser\n\t\t\t\t\t\t\t\t.getAttributeName(i)\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\tOMSMessages.DB_TABLENAME.getValue())) {\n\t\t\t\t\t\t\tblGet.getDataTable = xmlPullParser\n\t\t\t\t\t\t\t\t\t.getAttributeValue(i);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if (xmlPullParser.getAttributeName(i)\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\tOMSMessages.URL.getValue())) {\n\t\t\t\t\t\t\tblGet.getURL=xmlPullParser\n \t\t\t\t\t\t\t\t\t.getAttributeValue(i);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if (xmlPullParser.getAttributeName(i)\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\tOMSMessages.HASUSERID.getValue())) {\n\t\t\t\t\t\t\tblGet.hasUserId= xmlPullParser\n\t\t\t\t\t\t\t\t\t.getAttributeValue(i);\n\t\t\t\t\t\t}else if (xmlPullParser.getAttributeName(i)\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\tOMSMessages.HAS_MODIFIED_DATE.getValue())) {\n\t\t\t\t\t\t\tblGet.hasModifiedDate= xmlPullParser\n\t\t\t\t\t\t\t\t\t.getAttributeValue(i);\n\t\t\t\t\t\t}else if (xmlPullParser.getAttributeName(i)\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\tOMSMessages.HAS_LOCATION.getValue())) {\n\t\t\t\t\t\t\tblGet.hasLocation= xmlPullParser\n\t\t\t\t\t\t\t\t\t.getAttributeValue(i);\n\t\t\t\t\t\t}else if (xmlPullParser.getAttributeName(i)\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"haspagination\")) { //Pagination Code\n\t\t\t\t\t\t\tblGet.hasPagination= xmlPullParser\n\t\t\t\t\t\t\t\t\t.getAttributeValue(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else if (tagName\n\t\t\t\t\t\t.equalsIgnoreCase(OMSMessages.BL_GET_COLUMN.getValue())\n\t\t\t\t\t\t&& !xmlPullParser.isEmptyElementTag()) {\n\t\t\t\t\tisColumn=true;\n\t\t\t\t\tcolumn = new BLColumnDTO();\n\t\t\t\t}else if(tagName\n\t\t\t\t\t\t.equalsIgnoreCase(OMSMessages.BL_GET_QUERY_PARAMS.getValue())\n\t\t\t\t\t\t&& !xmlPullParser.isEmptyElementTag()){\n\t\t\t\t\tgetBLColList = new ArrayList<BLColumnDTO>();\n\t\t\t\t}else if(tagName\n\t\t\t\t\t\t.equalsIgnoreCase(\"loadingmessage\")\n\t\t\t\t\t\t&& !xmlPullParser.isEmptyElementTag()){\n\t\t\t\t\tisLoadingMessage=true;\n\t\t\t\t}else if(tagName\n\t\t\t\t\t\t.equalsIgnoreCase(\"paginationparam\")\n\t\t\t\t\t\t&& !xmlPullParser.isEmptyElementTag()){ //Pagination Code\n\t\t\t\t\tisPaginationParam=true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase XmlPullParser.END_DOCUMENT:\n\t\t\t\tbreak;\n\t\t\tcase XmlPullParser.START_DOCUMENT:\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase XmlPullParser.END_TAG:\n\t\t\t\tif (tagName.equalsIgnoreCase(OMSMessages.BL_GET_COLUMN.getValue())) {\n\t\t\t\t\tgetBLColList.add(column);\n\t\t\t\t\tisColumn=false;\n\t\t\t\t}else if (tagName.equalsIgnoreCase(methodType)) {\n\t\t\t\t\tgetBLList.add(blGet);\n\t\t\t\t}else if(tagName\n\t\t\t\t\t\t.equalsIgnoreCase(OMSMessages.BL_GET_QUERY_PARAMS.getValue())){\n\t\t\t\t\tblGet.getColList=getBLColList;\n\t\t\t\t\t\n\t\t\t\t}else if(tagName\n\t\t\t\t\t\t.equalsIgnoreCase(\"loadingmessage\")){\n\t\t\t\t\tisLoadingMessage=false;\n\t\t\t\t}else if(tagName\n\t\t\t\t\t\t.equalsIgnoreCase(\"paginationparam\")){ //Pagination Code\n\t\t\t\t\tisPaginationParam=false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase XmlPullParser.TEXT:\n\t\t\t//\tif (tagName.equalsIgnoreCase(OMSMessages.BL_GET_COLUMN.getValue())) {\n\t\t\t\tif(isColumn){\n\t\t\t\t tagText=xmlPullParser.getText();\n\t\t\t\t\tcolumn.columnName=tagText;\n\t\t\t\t} else if(isLoadingMessage){\n\t\t\t\t\ttagText=xmlPullParser.getText();\n\t\t\t\t\tblGet.blGetLoadingMessage=tagText;\n\t\t\t\t} else if(isPaginationParam){ //Pagination Code\n\t\t\t\t\t\ttagText=xmlPullParser.getText();\n\t\t\t\t\t\tblGet.paginationParam=tagText;\n\t\t\t\t\t}\n\t\t\t\t//}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\teventType = xmlPullParser.next();\n\t\t}\n\t\treturn getBLList;\n\t}", "public void receiveResultminload(\n loadbalance.LoadBalanceStub.MinloadResponse result\n ) {\n }", "public void receiveResultdivide2(\n loadbalance.LoadBalanceStub.Divide2Response result\n ) {\n }", "public void receiveResultadd(\n org.apache.ws.axis2.WebserviceStub.AddResponse result\n ) {\n }", "com.google.openrtb.OpenRtb.BidResponse getBidresponse();", "top.itcat.pb_gen.common.Base.BaseResponse getBase();", "public T caseLoadResponseCharacteristic(LoadResponseCharacteristic object) {\n\t\treturn null;\n\t}", "com.cdiscount.www.GetSellerIndicatorsResponseDocument.GetSellerIndicatorsResponse getGetSellerIndicatorsResponse();", "private void processSubBPResponse(Properties props, \n MessageContainer container, \n InComingEventModel mainBPModel,\n InComingEventModel subBPModel,\n Engine eng) { \n \ttry {\n \t\t// get the response message type of the MainBP \n \t\tString respMesgType = props.getProperty(\"INVOKE_2WAY_RESPONSE\");\n QName respMsgTypeQName = QName.valueOf(respMesgType);\n Message wsdlMessage = mainBPModel.getBPELProcess().getWSDLMessage(respMsgTypeQName);\n JBIMessageImpl inMsg = (JBIMessageImpl) container.getContent();\n \n //create the message associated with the MainBP two-way invoke response.\n Element elem = inMsg.getElement();\n String typeVal = elem.getAttribute(\"type\");\n QName typeValQName = QName.valueOf(typeVal);\n QName outputType = new QName(null, respMsgTypeQName.getLocalPart(), typeValQName.getPrefix());\n elem.setAttribute(\"type\", outputType.toString());\n JBIMessageImpl outMsg = new JBIMessageImpl(elem.getOwnerDocument(), wsdlMessage);\n\n Transaction tx = EngineDriver.lookupTransaction(container.getId());\n //create the MainBP two-way invoke activity response container\n MessageContainer responseContainer = \n MessageContainerFactory.createMessage\n \t(container.getId(), outMsg, container.getCRMPInvokeId(), tx);\n \n \n // send the response to the two-invoke of MainBP that is waiting for response\n ResponseInComingEventKeyImpl event = new ResponseInComingEventKeyImpl(\n mainBPModel.getBPELProcess(), Event.REPLY_FAULT, responseContainer.getId());\n eng.process(event, responseContainer);\n\n //eng.processResponse(responseContainer, mainBPModel.getBPELProcess());\n \n \t}\n catch (Exception e) {\n MessageContainer statusContainer = MessageContainerFactory\n .createErrorStatus(container.getId(), e.getMessage(), null, null);\n ResponseInComingEventKeyImpl event = new ResponseInComingEventKeyImpl(\n mainBPModel.getBPELProcess(), Event.ERROR, statusContainer.getId());\n eng.process(event, statusContainer);\n //eng.processDone(statusContainer, mainBPModel.getBPELProcess());\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n \t\n }", "com.cfwf.cb.business_proto.ClientConnSchool.BeginSeatWorkTestingResponse.CMD_RESULT getResult();", "@Override public void requestLoader(org.kde.necessitas.ministro.IMinistroCallback callback, android.os.Bundle parameters) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null)));\nif ((parameters!=null)) {\n_data.writeInt(1);\nparameters.writeToParcel(_data, 0);\n}\nelse {\n_data.writeInt(0);\n}\nmRemote.transact(Stub.TRANSACTION_requestLoader, _data, _reply, 0);\n_reply.readException();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the angle representing the hue.
private void setHueAngle(double angle) { double oldAngle = this.angle; this.angle = angle; if (angle != oldAngle) { setFlag(FLAGS_CHANGED_ANGLE, true); repaint(); } }
[ "private void setAngleFromHue(float hue) {\n\t setHueAngle((1.0 - hue) * Math.PI * 2);\n\t}", "public void setAngle(double angle);", "void setAngle(double angle);", "public void setAngle(final float angle);", "public void setIshaAngle(double angle)\n {\n double customParams[] = {-1, -1, -1, 0, angle};\n setCustomParams(customParams);\n }", "void setHue(int hue);", "public void setAngle(double angle){\n mAngle = angle; // set the angle with the value which was passed in\n }", "public void setAngle(double angle){\n\t\tturtleImage.setRotate(angle);\n\t}", "public void setHue(double hue)\n {\n // Normalize hue in range [0; 2pi)\n while (hue < 0)\n {\n hue += 2.0 * Math.PI;\n }\n hue = hue % (2.0 * Math.PI);\n\n // Convert HSI to RGB\n double i = getIntensity();\n double s = getSaturation();\n double a = i * (1.0 - s);\n if (hue < 2.0 * Math.PI / 3.0) // 0 - 120 degrees\n {\n b = a;\n r = i * (1.0 + s * Math.cos(hue) / Math.cos(Math.PI / 3.0 - hue));\n g = 3.0 * i - (b + r);\n }\n else if (hue < 4.0 * Math.PI / 3.0) // 120 - 240 degrees\n {\n r = a;\n g = i * (1.0 + s * Math.cos(hue - 2.0 * Math.PI / 3.0) / Math.cos(Math.PI - hue));\n b = 3.0 * i - (r + g);\n }\n else // 240 - 360 degrees\n {\n g = a;\n b = i * (1.0 + s * Math.cos(hue - 4.0 * Math.PI / 3.0) / Math.cos(5.0 * Math.PI / 3.0 - hue));\n r = 3.0 * i - (g + b);\n }\n }", "public void setPerihelionAngle(double value) {\n this.perihelionAngle = value;\n }", "public void changeAngle() {\r\n\t\tup = !up;\r\n\t\t\r\n\t\tif (up) { //Angles piston to 60 degrees\r\n\t\t\tpiston.set(Value.kReverse);\r\n\t\t}\r\n\t\telse if (!up) { //Angles piston to 30 degrees\r\n\t\t\tpiston.set(Value.kForward);\r\n\t\t}\r\n\t}", "public void setAngle(float angle) {\n this.angle = angle;\n cosAngle = (float) Math.cos(angle);\n sinAngle = 1 - cosAngle * cosAngle;\n }", "public void setAngle(double angle) {\n double slope = Math.tan(angle); \n setSlope(slope);\n }", "private void SetAngleForAction(int angle) {\n // substitute angle to variable\n this.mAngle = angle;\n }", "public void setAzimuth(double angle) {\n alpha = angle;\n cosAlpha = Math.cos(alpha);\n sinAlpha = Math.sin(alpha);\n updateCamera(CHANGE_ANGLES);\n }", "public void setHoodAngleDegrees(double goalAngle) {\n m_hoodPID.setReference(goalAngle, ControlType.kPosition);\n m_goalHoodAngle = goalAngle;\n }", "public void setOrientationAngle(double angle) {\n fOrientationAngle = angle;\n }", "public void setCompassAngle(float angle){\n\t\tcompass.animate().rotation((float)(angle)).setDuration((long) (10.0*(long) Math.abs((compass.getRotation()-angle)))).setInterpolator(new SmoothInterpolator());\n\t\tcompass.setX(compassBaseX);\n\t\tcompass.setY(compassBaseY);\n\t}", "void setHuePicker(@NonNull HuePicker huePicker);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To verify whether the page is navigated correctly
public void verify_page() { System.out.println("page navigatedd to corresponding clicked link"); String expected_text="CONTINUOUS TESTING CLOUD"; WebElement w1=d.visibility(verify_text,20); String actual_text=w1.getText(); Assert.assertTrue(expected_text.contains(actual_text)); System.out.println("page navigated correctly"); }
[ "public abstract void verifyCurrentPage();", "public void isRedirectionCorrect() {\n\n\t\tString title = WebUtility.getTitle();\n\t\tAssert.assertEquals(title, data.getValidatingData(\"homepage_Title\"));\n\t\tSystem.out.println(\"Redirection is on the correct page\");\n\t}", "public void verifyNavigateToJoinACSPage() {\n\t\tlogMessage(\"Verified: Navigation to join ACS Page.\");\r\n\t}", "public void verifyHomePage()\n\t{\n\t}", "public boolean verify_nextPageAfterGettingSim() {\n\t WebDriverWait wait = new WebDriverWait(session.driver, 20);\n\t\tWebElement status = wait.until(ExpectedConditions\n\t\t\t\t.presenceOfElementLocated(By.xpath(\"//button[text()='TRY AGAIN']\")));\n\t\treturn status.isDisplayed();\n }", "public boolean verifyPreAdmission_StatusPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_PreadmissionStatusPage.getText());\r\n\t\t\ttxt_PreadmissionStatusPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Status page is dispalyed and object is:-\" + txt_PreadmissionStatusPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isPageOpened() {\n if (!getPageURL().equals(MainPage.URL)) {\n System.out.println(\"Current URL is \" + getPageURL());\n System.out.println(\"But URL should be \" + MainPage.URL);\n\n return false;\n }\n return true;\n }", "@Test(priority = 2)\n\tpublic void navigateToHealthCheckLandingPage() {\n\t\tlog.info(line);\n\t\tAssert.assertTrue(clickAllActionButton.navigateToHealthCheckLandingPage(), \"Landing page is displayed\");\n\t}", "public void validatePageLoad() {\n\t\tJavascriptExecutor js;\n\t\tjs = (JavascriptExecutor) uiElementAction.driver;\n\t\tboolean assertion =\n\t\t\t\tjs.executeScript(\"return document.readyState\").equals(\"complete\") == true;\n\t\tLog.info(\"The page loaded successfully: \" + assertion);\n\t\tAssert.assertTrue(\"The page loaded successfully: \" + assertion, assertion);\n\t}", "@Test\n public void testHomePageAvailable () {\n wicketTester.startPage(HomePage.class, null);\n wicketTester.assertRenderedPage(HomePage.class);\n checkSideLinks();\n }", "public void urlPageValidation() {\n\t\thelper.navigateToUrl(loadUrl);\n\t\thelper.maximizeWindow();\n\t\thelper.assertString(helper.getCurrentUrl(), loadUrl);\n\t\t\n\t}", "public boolean verifyPage() {\n\n WebElement title = driver.findElement(titleElement);\n logger.debug(\"\\t-- -- verifying page with title: \\\"\" + title.getText() + \"\\\" contains(\\\"\" + getTitleLabel()+\"\\\")\");\n return title.getText().contains(getTitleLabel());\n }", "public abstract void checkPage();", "public void validateStep1RegistrationPagePresent() throws Exception {\n assertEquals(context().getURL(\"nature.com/mockalhambra/register\"), browser().getCurrentUrl());\n }", "public abstract void isOnPage();", "public void verifyHomepage() {\n\t //check all images, javascript and json objects\n }", "abstract boolean isPageLoaded();", "private static void validateMainMenu() {\n\t\tString xpathHomeLink = \"//nav//a[text() = 'Home']\";\n\t\tWebElement homeLink = driver.findElement(By.xpath(xpathHomeLink));\n\t\tif(homeLink.isDisplayed()) {\n\t\t\tSystem.out.println(\"Home link is displayed\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Home link is not displayed\");\n\t\t}\n\t\t//validar que existe el link 'About'\n\t\tString xpathAboutLink = \"//nav//a[text() = 'About']\";\n\t\tWebElement aboutLink = driver.findElement(By.xpath(xpathAboutLink));\n\t\tif(aboutLink.isDisplayed()) {\n\t\t\tSystem.out.println(\"About link is displayed\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"About link is not displayed\");\n\t\t}\n\t}", "boolean isPageLoaded();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validate identity number and contract code of customer when verify_identity_number fail
@PostMapping(value = "/verify_identity_number_and_contract_code") public ResponseEntity<?> verifyIdentityNumberAndContractCode(@RequestBody RequestDTO<ContractSearchRequest> req) { ContractSearchRequest searchRequest = req.init(); if (HDUtil.isNullOrEmpty(searchRequest.getIdentityNumber())) return badRequest(1222, "empty identityNumber"); if (HDUtil.isNullOrEmpty(searchRequest.getContractCode())) return badRequest(1221, "empty contractCode"); VerifyResponse response = invokeContact_getPhoneNumber(searchRequest, "checkValidateForgotPasswordByIdentifyIdAndContractCode"); if (response == null) return notFound(1400); //validate customer exist Customer customer = customerService.findByUuid(response.getCustomerUuid(), -1); if (customer == null || customer.getStatus() == -1) { Log.error("customer", this.getClass().getName() + " [BAD REQUEST] verify_identity_number " + response.toString()); return badRequest(1107); } if (customer.getStatus() == HDConstant.STATUS.DISABLE) { Log.error("customer", this.getClass().getName() + " [BAD REQUEST] verify_identity_number " + response.toString()); return badRequest(1115); } writeLogAction(req, "customer", "verify identity number and contract code", searchRequest.toString(), "", "", "", ""); return ok(response); }
[ "@PostMapping(value = \"/verify_identity_number\")\n public ResponseEntity<?> verifyIdentityNumber(@RequestBody RequestDTO<ContractSearchRequest> req) {\n\n ContractSearchRequest searchRequest = req.init();\n searchRequest.setContractCode(\"\");\n if (HDUtil.isNullOrEmpty(searchRequest.getIdentityNumber()))\n return badRequest(1222, \"empty identityNumber\");\n VerifyResponse response = invokeContact_getPhoneNumber(searchRequest, \"checkValidateForgotPasswordByIdentifyId\");\n if (response == null)\n return notFound(1421);\n //validate customer exist\n Customer customer = customerService.findByUuid(response.getCustomerUuid(), HDConstant.STATUS.ENABLE);\n if (customer == null || customer.getStatus() == -1) {\n Log.error(\"customer\", this.getClass().getName() + \" [BAD REQUEST] verify_identity_number \" + response.toString());\n return badRequest(1107);\n }\n if (customer.getStatus() == HDConstant.STATUS.DISABLE) {\n Log.error(\"customer\", this.getClass().getName() + \" [BAD REQUEST] verify_identity_number \" + response.toString());\n return badRequest(1115);\n }\n writeLogAction(req, \"customer\", \"verify identity number\", searchRequest.toString(), \"\", \"\", \"\", \"\");\n return ok(response);\n }", "@Test\n\tpublic void TC_05_inputCustomerIDvalid() {\n\t\tlogTestCase(\"inputCustomerIDvalid\");\n\t\teditCustomer.inputCustomerId(NewCustomerScript.customerId);\n\t\teditCustomer.clickSummit();\n\t}", "@Test\n\tpublic void TestValidAccountNumber() {\n\t\tsetup();\n\t\tassertTrue(_bank.validate(card1));\n\t\tassertTrue(_bank.validate(card2));\n\t\n\t}", "void verifyInvoiceDetails(DataCarrier carrier);", "SimplePromise<Boolean> verifyContractCode(String address, String code);", "@Test\npublic void CNIC_valid()\n{\n\n /** This function should return TRUE for values of CNIC = 13 digit number */\n assertTrue(\"Valid CNIC.\",testUser.checkCNIC(\"1330287666624\"));\n assertTrue(\"Valid CNIC\",testUser.checkCNIC( \"1987625419286\"));\n}", "public static void main(String[] args) {\n String idNum = \"410326880818551\";\n System.out.println(verify15(idNum));\n// String idNum2 = \"411111198808185510\";\n String idNum2 = \"410326198808185515\";\n System.out.println(verify(idNum2));\n }", "@Test\n\tpublic void TestInvalidAccountNumber() {\n\t\tsetup();\n\t\tassertFalse(_bank.validate(card3));\n\t\tassertFalse(_bank.validate(card4));\n\t\n\t}", "public boolean verifyCustomer(AddCustomer customer) throws SQLException {\n\t\t// TODO Auto-generated method stub\n\t\tcon = Util.getConnection();\n\t\tboolean flag = true;\n\t\tPreparedStatement ps1 = con.prepareStatement(\"select ssnid from addCustomer where SSNID=?\");\n\t\tps1.setString(1, customer.getSsnid());\n\t\tResultSet rs = ps1.executeQuery();\n\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tflag = false;\n\t\t\t\n\t\t}\n\t\treturn flag;\n\t}", "public static boolean verifyCustomer(String customerid){\r\n\t\t//return DBAPI.verify(table, customerid);\r\n\t\treturn true;\r\n\t}", "public void verifyCreditCard(CustomerSubsystem cust) throws BusinessException {\r\n\t\t//implement\r\n\t\tcust.checkCreditCard();\r\n\t}", "void validateMobileNumber(String stringToBeValidated,String name);", "@Ignore\r\n\t@Test(expected = IdValidationFailedException.class)\r\n\tpublic void testValidateUIN() throws IdAuthenticationBusinessException {\r\n\t\tString uin = \"1234567890\";\r\n//\t\tMockito.when(uinRepository.findByUinRefId(Mockito.anyString())).thenReturn(null);\r\n\t\tidAuthServiceImpl.getIdRepoByUinNumber(uin, false);\r\n\t}", "public ErrorMessage verifyCode(String code, Integer year, Long exception);", "public PersonalIdentityNumber(final String number) throws PersonalIdentityNumberException {\n Assert.notNull(number, \"number must not be null\");\n\n final Matcher matcher = pattern.matcher(number.trim());\n if (!matcher.find()) {\n throw new PersonalIdentityNumberException(\"Invalid format of personal identity number\");\n }\n\n try {\n // First handle the year\n //\n this.processYear(matcher.group(1), matcher.group(2), matcher.group(5));\n\n // The month\n this.month = Integer.parseInt(matcher.group(3));\n\n // The date (may be larger for a samordningsnummer).\n this.date = Integer.parseInt(matcher.group(4));\n if (this.date < 1 || this.date > 31 && this.date < 61 || this.date > 91) {\n throw new PersonalIdentityNumberException(\"Invalid date - \" + matcher.group(4));\n }\n\n // OK, we have the complete birth date. Let's check if it is a valid date ...\n //\n final Calendar cal = Calendar.getInstance();\n cal.setLenient(false);\n cal.set(this.century * 100 + this.year, this.month - 1, this.date > 60 ? this.date - 60 : this.date);\n try {\n cal.getTime();\n }\n catch (Exception e) {\n final String msg = this.date > 60 ? \"Invalid samordningsnummer\" : \"Invalid birth date\";\n throw new PersonalIdentityNumberException(String.format(\"%s - %02d%02d%02d%02d\",\n msg, this.century, this.year, this.month, this.date));\n }\n\n // The birth number and control digit\n this.birthNumber = Integer.parseInt(matcher.group(6));\n this.controlDigit = Integer.parseInt(matcher.group(7));\n\n // Validate the control digit\n //\n final int luhn = calculateLuhn(this.getNumber(Format.TEN_DIGITS_NO_DELIMITER).substring(0, 9));\n if (luhn != this.controlDigit) {\n throw new PersonalIdentityNumberException(\"Invalid personal identity number - control digit is incorrect\");\n }\n }\n catch (NumberFormatException e) {\n throw new PersonalIdentityNumberException(\"Invalid personal number\", e);\n }\n }", "@Test\n\tpublic void CheckValidAccountIncorrectPin() {\n\t\tsetup();\n\t\tassertFalse(_bank.validate(card1, 1235));\n\t\tassertFalse(_bank.validate(card2, 6781)); \n\t\n\t}", "public static boolean is_valid (long cc_num) {\n \n int sumOdd = 0 ;\n long oddNum = cc_num/10;\n \n // get all the odd digits and multiply by 2 \n while(oddNum >0)\n {\n int odd = (int)((oddNum)%10) ;\n odd = odd * 2 ;\n // Sum the digits of each product.\n if (odd >=10)\n {\n odd=odd/10+odd%10 ;\n } \n \n // sum the single digit products of the odd digits.\n sumOdd += odd ;\n oddNum=oddNum/100 ; \n } \n \n int sumEven = 0 ;\n long evenNum = cc_num;\n \n // Now add all the even digits\n while(evenNum > 0)\n {\n int even = (int)(evenNum % 10) ;\n\n sumEven += even ;\n evenNum=evenNum/100 ; \n } \n \n // If the final sum is divisible by 10 then the credit card is valid, otherwise it is invalid.\n return ((sumOdd+sumEven)%10==0); \n \n }", "@Test\n\tpublic void TC_02_inputCustomerIDnumberandCharacter() {\n\t\tlogTestCase(\"inputCustomerIDnumberandCharacter\");\n\t\teditCustomer.inputCustomerId(data.EditCustomerPage().getCustomerIDnumberandCharacter());\n\t\tverifyEqual(editCustomer.getDynamicText(data.EditCustomerPage().getCustomerIDmustBeNumbericMsg()),\n\t\t\t\tdata.ExpectedMsgPage().getCustomerIDmustBeNumbericMsg());\n\t}", "@Test\n public void testSsnValidator(){\n assertTrue(register.ssnValidator(\"16019135954\"));\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the contexts that apply for this lookup
@Nonnull public ContextSet getContexts() { return this.context; }
[ "@NonNull ImmutableContextSet getContexts();", "public List<String> getContexts() {\r\n\t\treturn contexts;\r\n\t}", "public Context[] getContexts() {\r\n\t\treturn m_mapContexts.values().toArray(new Context[m_mapContexts.size()]);\r\n\t}", "public Set<Context> getContexts() {\n NodeList contexts = xbrlDocument.getElementsByTagName(\"xbrli:context\");\n Set<Context> parsed = new HashSet<Context>();\n for (int i = 0; i < contexts.getLength(); i++) {\n Element contextElement = (Element) contexts.item(i);\n String id = contextElement.getAttribute(\"id\");\n\n Context context;\n try {\n context = new Context(id, parsePeriodFromContext(contextElement));\n } catch (DOMException | ParseException e) {\n throw new RuntimeException(e);\n }\n parsed.add(context);\n }\n return parsed;\n }", "public static List<Context> getRegisteredContexts() {\n\t\treturn registeredContexts;\n\t}", "private Stack getContextsStack() {\n if (contextsStack == null) {\n contextsStack = new Stack();\n }\n return contextsStack;\n }", "public Map<String, CockpitConfigurationContextStrategy> getContextStrategies()\n\t{\n\t\treturn contextStrategies;\n\t}", "public Set<Ctxt> getContexts(SootMethod meth);", "public Map<String, TelepatContext> getContexts() { return mServerContexts; }", "public List<ContextMapping> getContextMappings() {\n return contextMappings;\n }", "private Map<String, Object> getContext() {\n Map<String, Object> outputData = getContextOutputs();\n if (outputData == null) {\n outputData = new HashMap<String, Object>();\n }\n return outputData;\n }", "boolean useContextLookup();", "@NotNull\n Collection<String> getContextHints();", "public Context getContext();", "public Set<String> getPotentialContextEntries() {\n return _potentialContextEntries;\n }", "public final static ContextMap getCurrentContext() {\r\n return getCurrentContext(true);\r\n }", "public HashMap<String, List<TextEvent>> getContextMap() {\n\t\treturn this.contextMap;\n\t}", "public java.lang.String[] getContextIds() {\n return contextIds;\n }", "public Collection<AeFunctionContextInfo> getFunctionContexts() {\r\n return getNamespaceToFunctionContextMap().values();\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calls the method that handles the Save menu item action from the fileMenuController.
@FXML private void handleSaveAction() { this.fileMenuController.handleSaveAction(); }
[ "public void onMenuSave() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n onMenuSaveAs();\n return;\n }\n\n handleFileStorageFactoryResult(controller.saveFile(lastSavedPath));\n }", "private void handleMenuSave() {\n String initialDirectory = getInitialDirectory();\n String initialFileName = getInitialFilename(Constants.APP_FILEEXTENSION_SPV);\n File file = FileChooserHelper.showSaveDialog(initialDirectory, initialFileName, this);\n\n if (file == null) {\n return;\n }\n\n handleFileStorageFactoryResult(controller.saveFile(file.getAbsolutePath()));\n }", "public void onMenuSaveAs() {\n handleMenuSave();\n }", "@FXML private void handleSaveAsAction() { this.fileMenuController.handleSaveAsAction(); }", "public void onSaveMenuItemClickedHandler(ActionEvent actionEvent) {\n if (mainFile != null) {\n App.getStage().fireEvent(new FileEvent(mainFile, saveFileEvent));\n } else {\n onSaveAsMenuItemClickedHandler(actionEvent);\n }\n }", "public void handleSaveModelMenuItem(){\n // Check if there is something to save\n if((Main.qualityModel.getCharacteristics().size() != 0) || (Main.qualityModel.getProperties().size() != 0)){\n\n // Create a file chooser\n FileChooser fileChooser = new FileChooser();\n\n //Set extension filter\n FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"XML files (*.xml)\", \"*.xml\");\n fileChooser.getExtensionFilters().add(extFilter);\n\n //Show save file dialog\n File file = fileChooser.showSaveDialog(mainApp.getPrimaryStage());\n\n if(file != null){\n SaveFile(Main.qualityModel, file);\n }\n\n }else{\n\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"Warning\");\n alert.setHeaderText(\"There is nothing to save!\");\n alert.showAndWait();\n\n }\n }", "private void saveMenuItemActionPerformed() {//GEN-FIRST:event_saveMenuItemActionPerformed\r\n this.controller.OnSaveAlbum();\r\n }", "private void menuSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuSaveActionPerformed\n saveDataToFile();\n }", "private void actionfor_saveButton() {\r\n\t\t\r\n\t\tif(csvController.dataColl.cbActionListener.isHaveData() == false){\r\n\t\t\tString title = \"Error\";\r\n\t\t\tString message = \"Missing data for CSV-File!\"; \r\n\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(resultsFXPanel, message, title, JOptionPane.ERROR_MESSAGE);\r\n\r\n\t\t} else if(haveDestination == false){\r\n\t\t\tString title = \"Error\";\r\n\t\t\tString message = \"Missing name and directory for CSV-File!\"; \r\n\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(resultsFXPanel, message, title, JOptionPane.ERROR_MESSAGE);\r\n\t\t}else {\r\n\t\t\tcsvController.dataObj.cbActionListener.actionfor_saveButton();//same here\r\n\t\t\tcloseView();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//enable the menuitem to see the choosen Tree\r\n\t\t\tMenuController.setTreeNotEmpty(true);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\r\n\t}", "public void onSaveAsMenuItemClickedHandler(ActionEvent actionEvent) {\n FileChooser fileChooser = new FileChooser();\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(Constants.PROJECT_FILE, Constants.PROJECT_FILE_EXTENSION));\n File file = fileChooser.showSaveDialog(App.getStage());\n if (file != null) {\n // Saving file to the static field for future use\n mainFile = file;\n App.getStage().fireEvent(new FileEvent(file, saveAsFileEvent));\n }\n }", "@FXML\r\n private void saveTradesMenuHandler(ActionEvent event) throws FileNotFoundException, IOException {\r\n \r\n FileChooser filechooser=new FileChooser();\r\n filechooser.setTitle(\"Save Trades\");\r\n filechooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\r\n filechooser.getExtensionFilters().addAll(\r\n new FileChooser.ExtensionFilter(\"All Trades\", \"*.*\"),\r\n new FileChooser.ExtensionFilter(\"txt\", \"*.txt\")\r\n );\r\n File file=filechooser.showSaveDialog(stage);\r\n if(file!=null){\r\n FileWriter fw=new FileWriter(file);\r\n BufferedWriter bfw=new BufferedWriter(fw);\r\n \r\n for(Trade t:list){\r\n String str=FileUtilities.getTradeString(t)+\"\\n\";\r\n bfw.write(str);\r\n }\r\n bfw.flush();\r\n fw.flush();\r\n bfw.close();\r\n fw.close();\r\n }\r\n \r\n stage.close();\r\n }", "private void save() {\r\n ((MetadataEditorEventBus) eventBus).fireSaveFileEvent();\r\n }", "private void invokeSaveHandler() {\r\n xmlTreeDisplay.getSaveButton().addClickHandler(new ClickHandler() {\r\n @Override\r\n public void onClick(final ClickEvent event) {\r\n if (MatContext.get().getMeasureLockService()\r\n .checkForEditPermission()) {\r\n xmlTreeDisplay.clearMessages();\r\n xmlTreeDisplay.setDirty(false);\r\n MatContext.get().recordTransactionEvent(\r\n MatContext.get().getCurrentMeasureId(), null,\r\n rootNode.toUpperCase() + \"_TAB_SAVE_EVENT\",\r\n rootNode.toUpperCase().concat(\" Saved.\"),\r\n ConstantMessages.DB_LOG);\r\n xmlTreeDisplay.addCommentNodeToSelectedNode();\r\n CellTreeNode cellTreeNode = (CellTreeNode) xmlTreeDisplay\r\n .getXmlTree().getRootTreeNode().getChildValue(0);\r\n final MeasureXmlModel measureXmlModel = createMeasureExportModel(XmlConversionlHelper\r\n .createXmlFromTree(cellTreeNode));\r\n service.saveMeasureXml(measureXmlModel,\r\n MatContext.get().getCurrentMeasureId(),\r\n \"FHIR\".equals(MatContext.get().getCurrentMeasureModel()),\r\n new AsyncCallback<Void>() {\r\n @Override\r\n public void onFailure(final Throwable caught) {\r\n }\r\n\r\n @Override\r\n public void onSuccess(final Void result) {\r\n xmlTreeDisplay.getSuccessMessageAddCommentDisplay()\r\n .removeStyleName(\"successMessageCommentPanel\");\r\n xmlTreeDisplay.getSuccessMessageAddCommentDisplay().clear();\r\n xmlTreeDisplay.getWarningMessageDisplay().clear();\r\n xmlTreeDisplay\r\n .getSuccessMessageDisplay()\r\n .setMessage(\r\n \"Changes are successfully saved.\");\r\n setOriginalXML(measureXmlModel.getXml());\r\n System.out.println(\"originalXML is:\"\r\n + getOriginalXML());\r\n }\r\n });\r\n }\r\n }\r\n });\r\n xmlTreeDisplay.getSaveBtnClauseWorkSpace().addClickHandler(new ClickHandler() {\r\n @Override\r\n public void onClick(final ClickEvent event) {\r\n if (MatContext.get().getMeasureLockService()\r\n .checkForEditPermission()) {\r\n if (xmlTreeDisplay.getXmlTree() != null) {\r\n xmlTreeDisplay.clearMessages();\r\n final CellTreeNode cellTreeNode = (CellTreeNode) (xmlTreeDisplay\r\n .getXmlTree().getRootTreeNode().getChildValue(0));\r\n if (cellTreeNode.hasChildren()) {\r\n xmlTreeDisplay.setDirty(false);\r\n xmlTreeDisplay.setQdmVariableDirty(false);\r\n MatContext.get().recordTransactionEvent(\r\n MatContext.get().getCurrentMeasureId(), null,\r\n \"CLAUSEWORKSPACE_TAB_SAVE_EVENT\",\r\n rootNode.toUpperCase().concat(\" Saved.\"),\r\n ConstantMessages.DB_LOG);\r\n cellTreeNode.getChilds().get(0).getUUID();\r\n cellTreeNode.getChilds().get(0).getName();\r\n //for adding qdmVariable as an attribute\r\n String isQdmVariable = xmlTreeDisplay.getIncludeQdmVaribale().getValue().toString();\r\n CellTreeNode subTreeNode = cellTreeNode.getChilds().get(0);\r\n HashMap<String, String> map = new HashMap<String, String>();\r\n map.put(\"qdmVariable\", isQdmVariable);\r\n subTreeNode.setExtraInformation(PopulationWorkSpaceConstants.EXTRA_ATTRIBUTES, map);\r\n String xml = XmlConversionlHelper.createXmlFromTree(cellTreeNode.getChilds().get(0));\r\n\r\n createMeasureXmlModel(xml);\r\n } else {\r\n xmlTreeDisplay.getErrorMessageDisplay().setMessage(\r\n \"Unable to save clause as no subTree found under it.\");\r\n }\r\n }\r\n }\r\n }\r\n });\r\n xmlTreeDisplay.getDeleteClauseButton().addClickHandler(new ClickHandler() {\r\n\r\n @Override\r\n public void onClick(ClickEvent event) {\r\n if (MatContext.get().getMeasureLockService()\r\n .checkForEditPermission()) {\r\n MatContext.get().getCurrentMeasureId();\r\n final int selectedClauseindex = xmlTreeDisplay.getClauseNamesListBox().getSelectedIndex();\r\n if (selectedClauseindex < 0) {\r\n return;\r\n }\r\n final String clauseName = xmlTreeDisplay.getClauseNamesListBox().getItemText(selectedClauseindex);\r\n\r\n final CellTreeNode cellTreeNode = (CellTreeNode) (xmlTreeDisplay\r\n .getXmlTree().getRootTreeNode().getChildValue(0));\r\n if (cellTreeNode.getChilds().size() > 0) {\r\n CellTreeNode childNode = cellTreeNode.getChilds().get(0);\r\n System.out.println(\"current clause is:\" + childNode.getName());\r\n if (childNode.getName().equals(clauseName)) {\r\n return;\r\n }\r\n }\r\n }\r\n }\r\n });\r\n xmlTreeDisplay.getCommentButtons().addClickHandler(new ClickHandler() {\r\n @Override\r\n public void onClick(ClickEvent event) {\r\n xmlTreeDisplay.getSuccessMessageDisplay().clear();\r\n @SuppressWarnings(\"unchecked\")\r\n List<CellTreeNode> commentList = (List<CellTreeNode>) xmlTreeDisplay\r\n .getSelectedNode().getExtraInformation(COMMENT);\r\n if (commentList == null) {\r\n commentList = new ArrayList<CellTreeNode>();\r\n }\r\n commentList.clear();\r\n CellTreeNode node = new CellTreeNodeImpl();\r\n node.setName(PopulationWorkSpaceConstants.COMMENT_NODE_NAME);\r\n node.setNodeType(CellTreeNode.COMMENT_NODE);\r\n node.setNodeText(xmlTreeDisplay.getCommentArea().getText());\r\n commentList.add(node);\r\n xmlTreeDisplay.getSelectedNode().setExtraInformation(COMMENT, commentList);\r\n xmlTreeDisplay.refreshCellTreeAfterAddingComment(xmlTreeDisplay.getSelectedNode());\r\n\r\n xmlTreeDisplay.getSuccessMessageDisplay().setMessage(\r\n MatContext.get().getMessageDelegate().getCOMMENT_ADDED_SUCCESSFULLY());\r\n }\r\n });\r\n\r\n xmlTreeDisplay.getIncludeQdmVaribale().addValueChangeHandler(new ValueChangeHandler<Boolean>() {\r\n\r\n @Override\r\n public void onValueChange(ValueChangeEvent<Boolean> event) {\r\n\r\n final CellTreeNode cellTreeNode = (CellTreeNode) (xmlTreeDisplay\r\n .getXmlTree().getRootTreeNode().getChildValue(0));\r\n CellTreeNode subTreeNode = cellTreeNode.getChilds().get(0);\r\n if (!xmlTreeDisplay.isQdmVariable().equals(event.getValue().toString())) {\r\n xmlTreeDisplay.setQdmVariableDirty(true);\r\n } else {\r\n xmlTreeDisplay.setQdmVariableDirty(false);\r\n }\r\n\r\n // Update qdmVariable map in extraAttribute map of subtreeNode.\r\n if (subTreeNode.getExtraInformation(\"extraAttributes\") != null) {\r\n @SuppressWarnings(\"unchecked\")\r\n HashMap<String, String> extraInfoMap = (HashMap<String, String>)\r\n subTreeNode.getExtraInformation(\"extraAttributes\");\r\n if (extraInfoMap.containsKey(\"qdmVariable\")) {\r\n extraInfoMap.put(\"qdmVariable\", event.getValue().toString());\r\n } else {\r\n HashMap<String, String> map = new HashMap<String, String>();\r\n map.put(\"qdmVariable\", event.getValue().toString());\r\n subTreeNode.setExtraInformation(PopulationWorkSpaceConstants.EXTRA_ATTRIBUTES, map);\r\n }\r\n }\r\n }\r\n });\r\n }", "private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void eventHandlerSaveButton() {\r\n view.saveUpdate();\r\n }", "protected abstract void addToFileMenuHook(JMenu filemenu);", "public void menuItemSaveListener(ActionListener e){\r\n menuItemSave.addActionListener(e);\r\n }", "@FXML private void handleNewAction() { this.fileMenuController.handleNewAction(); }", "public void onSaveButtonClick(ActionEvent e){\n\t\tsaveFile(false);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column lt_ebay_entity_decimal.parent_value_id
public Integer getParentValueId() { return parentValueId; }
[ "public BigDecimal getParentId() {\n return (BigDecimal)getAttributeInternal(PARENTID);\n }", "public Integer getParentValueEntityAttributeId() {\r\n return parentValueEntityAttributeId;\r\n }", "public void setParentValueId(Integer parentValueId) {\r\n this.parentValueId = parentValueId;\r\n }", "public Integer getParentid() {\r\n return parentid;\r\n }", "public int getParentID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PARENTID$2, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }", "public Long getParentId() {\r\n return parentId;\r\n }", "public void setParentId(BigDecimal value) {\n setAttributeInternal(PARENTID, value);\n }", "public Long getParent_id() {\n return parent_id;\n }", "public void setParentValueEntityAttributeId(Integer parentValueEntityAttributeId) {\r\n this.parentValueEntityAttributeId = parentValueEntityAttributeId;\r\n }", "public int getParentId() {\n return parentId;\n }", "public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }", "public Integer parentID() {\n return this.parentID;\n }", "public String getRatesPropertyParent() throws SQLException {\r\n String chiff = null;\r\n String query = \"SELECT ParentRatesProperty from Rate_Parent_company ;\";\r\n Statement stmt = conn.prepareStatement(query);\r\n ResultSet resultat = stmt.executeQuery(query);\r\n if (resultat.first()) {\r\n chiff = resultat.getString(\"ParentRatesProperty\");\r\n }\r\n System.out.println(\"requete = \" + stmt.toString());\r\n System.out.println(chiff);\r\n return chiff;\r\n }", "long getParentId();", "public Long getParentCodeId() {\r\n return parentCodeId;\r\n }", "@SuppressWarnings(\"unchecked\")\n \tpublic List<Integer> getParents(Integer childId){\n \t Query query = getSession()\n .createSQLQuery(\"select a.item_id from item_dependency a \" +\n \t\t\"WHERE a.child_item_id=:childId ORDER BY a.item_id ASC\")\n \t\t.setParameter(\"childId\", childId);\n \t \n \t if(query.list()!=null && !query.list().isEmpty() && query.list().get(0) instanceof BigDecimal){\n \t\t List<Integer> x=new ArrayList<Integer>();\n \t\t List<BigDecimal> a=query.list();\n \t\tfor(int i=0;i<a.size();i++){\n \t\tx.add(Integer.valueOf(a.get(i).intValue()));\n \t}\n \t\treturn x;\n \t }\n \t else{\n \t\treturn query.list();\n \t }\n }", "public Integer getnParentid() {\n return nParentid;\n }", "public String getParentId() {\n return parentId;\n }", "public BigDecimal getPARENT_COUNTRY_CODE()\r\n {\r\n\treturn PARENT_COUNTRY_CODE;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new contact in specified group.
public SyncedContact createContact(Account account, SyncedGroup group, Contact loadedContact) throws SyncOperationException { String username = loadedContact.getUsername(); String version = loadedContact.getVersion(); String unsyncedPhotoUrl = loadedContact.getPhotoUrl(); Log.d(TAG, format("Create contact for {0} in group {1}.", username, group.getName())); ArrayList<ContentProviderOperation> batch = new ArrayList<ContentProviderOperation>(); batch.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) .withValue(RawContacts.ACCOUNT_NAME, account.name) .withValue(RawContacts.ACCOUNT_TYPE, account.type) .withValue(RawContacts.SYNC1, username) .withValue(RawContacts.SYNC2, version) .withValue(RawContacts.SYNC3, unsyncedPhotoUrl).build()); ContentValues name = new ContentValues(); name.put(StructuredName.GIVEN_NAME, loadedContact.getFirstName()); name.put(StructuredName.FAMILY_NAME, loadedContact.getLastName()); batch.add(doInsert(StructuredName.CONTENT_ITEM_TYPE, name)); batch.add(doInsert(Email.CONTENT_ITEM_TYPE, Email.ADDRESS, loadedContact.getMail())); /* * See issue #17: for HTC Phone.TYPE is mandatory. */ ContentValues phone = new ContentValues(); phone.put(Phone.NUMBER, loadedContact.getPhone()); phone.put(Phone.TYPE, Phone.TYPE_WORK); batch.add(doInsert(Phone.CONTENT_ITEM_TYPE, phone)); batch.add(doInsert(Organization.CONTENT_ITEM_TYPE, Organization.OFFICE_LOCATION, loadedContact.getLocation())); batch.add(doInsert(GroupMembership.CONTENT_ITEM_TYPE, GroupMembership.GROUP_ROW_ID, group.getId())); batch.add(doInsert(Photo.CONTENT_ITEM_TYPE, Photo.PHOTO, null)); try { ContentProviderResult[] results = contentResolver.applyBatch( ContactsContract.AUTHORITY, batch); long id = ContentUris.parseId(results[0].uri); Log.d(TAG, format("Contact for {0} was created.", username)); return SyncedContact .create(id, username, version, unsyncedPhotoUrl); } catch (Exception exception) { throw new SyncOperationException("Could not create contact.", exception); } }
[ "void create(Group group) throws DAOException;", "private void createContact() {\n System.out.format(\"\\033[31m%s\\033[0m%n\", \"Create Contact\");\n System.out.format(\"\\033[31m%s\\033[0m%n\", \"======\");\n InputHelper inputHelper = new InputHelper();\n String fName = inputHelper.readString(\"type first name\");\n String lName = inputHelper.readString(\"type last name\");\n int num = inputHelper.readInt(\"type phone number\");\n String email = inputHelper.readString(\"type email\");\n String contactType = inputHelper.readString(\"personal or business?\");\n this.repository.insertAtEnd(new Contact(fName, lName, num, email, Calendar.getInstance(), contactType));\n System.out.println(\"Contact added.\");\n }", "public void createGroup(String groupName)\n {\n // TODO\n }", "public com.liferay.newsletter.model.NewsletterContact create(long contactId);", "UserGroup createGroup(String companyId, String name, String groupLead);", "Contact createUnresolvedContact(String address, String persistentData, ContactGroup parentGroup);", "public ApiSuccessResponse createContact() throws ApiException {\n ApiResponse<ApiSuccessResponse> resp = createContactWithHttpInfo();\n return resp.getData();\n }", "ID create(NewRoamingGroup group);", "void createServerStoredContactGroup(ContactGroup parent, String groupName)\n throws OperationFailedException;", "IDeviceGroup createDeviceGroup(IDeviceGroupCreateRequest request) throws SiteWhereException;", "void addContact(String name, String number);", "void createGroup(GroupMetaDataDto group) throws GroupAlreadyExistsException, RegistryStorageException;", "public boolean addContact(String groupName, List<Integer> ids) {\n\t\tList<Contacto> components = currentUser.getContacts().stream().filter(c -> ids.contains(c.getId()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tint newId = Id.generateUniqueId();\n\t\tint msgId = messageDAO.createMessageList();\n\t\tContacto group = new Grupo(newId, msgId, 0, groupName, null, currentUser.getId(), components);\n\t\tgroup.setMessages(messageDAO.getMessageList(msgId));\n\n\t\t// adds the group as a contact in currentUser\n\t\tcontactDAO.registerContact(group);\n\t\tcurrentUser.addContact(group);\n\t\tuserCatalog.modifyUser(currentUser);\n\n\t\t// Inserts the group in each of it's components\n\t\tcomponents.stream().forEach(component -> {\n\t\t\tUsuario user = userCatalog.getUser(component.getUserId());\n\t\t\tuser.addContact(group);\n\t\t\tuserCatalog.modifyUser(user);\n\t\t});\n\t\tcontactDAO.registerContact(group);\n\t\treturn true;\n\t}", "UserGroup createGroup(String companyId, String name);", "public void onSubmit(String groupName) {\r\n HashMap<String, String> dataMap = new HashMap<>();\r\n dataMap.put(\"Email\", client.getClientEmail());\r\n dataMap.put(\"FirstName\", client.getClientFirstName());\r\n dataMap.put(\"LastName\", client.getClientLastName());\r\n dataMap.put(\"Admin\", \"1\");\r\n dataMap.put(\"GroupName\", groupName);\r\n dataMap.put(\"GroupId\", generateGroupId(groupName));\r\n client.setCommand(ClientCommand.CREATE_GROUP);\r\n client.createGroup(dataMap);\r\n }", "Group createGroup ( Group group, boolean createRoot ) throws FileshareException;", "public boolean addContact(Contact contact);", "Businessemailcontact create(Businessemailcontact businessemailcontact);", "public static void createContact(final String name) {\n String contactEndPoint = \"https://na132.salesforce.com/services/data/v39.0/sobjects/Contact/\";\n Response response = given()\n .contentType(ContentType.JSON)\n .auth().oauth2(CommonApi.getToken())\n .body(\"{ \\\"LastName\\\": \\\"\" + name + \"\\\" }\")\n .when().post(contactEndPoint);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new compressed color object. Allowed ranges for colors is 0255. Allowed range for compression is 4 or greater
public CompressedColorImpl(int red, int green, int blue, int compression) { String exeptionString = ""; if(red > RGB_MAX || red < RGB_MIN){ exeptionString = "Red: " + red + "."; } if(green > RGB_MAX || green < RGB_MIN){ exeptionString += "Green: " + green + "."; } if(blue > RGB_MAX || blue < RGB_MIN){ exeptionString += "Blue: " + blue + "."; } if(compression < 4) { exeptionString += "Compression rate: " + compression; } if(!exeptionString.equals("")){ castInputException(exeptionString); } this.compression = compression; this.red = red / this.compression; this.green = green / this.compression; this.blue = blue / this.compression; }
[ "public abstract CompressedColor createCompressedColor(int red, int green,\n\t\t\tint blue, int compression);", "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 }", "public Bitmap3DColor(\n float v1Red, float v1Green, float v1Blue, float v1Alpha,\n float v2Red, float v2Green, float v2Blue, float v2Alpha,\n float v3Red, float v3Green, float v3Blue, float v3Alpha,\n float v4Red, float v4Green, float v4Blue, float v4Alpha\n ) {\n if(\n v1Red < 0 || v1Red > 1 || v2Red < 0 || v2Red > 1 || v3Red < 0 || v3Red > 1 || v4Red < 0 || v4Red > 1 ||\n v1Green < 0 || v1Green > 1 || v2Green < 0 || v2Green > 1 || v3Green < 0 || v3Green > 1 || v4Green < 0 || v4Green > 1 ||\n v1Blue < 0 || v1Blue > 1 || v2Blue < 0 || v2Blue > 1 || v3Blue < 0 || v3Blue > 1 || v4Blue < 0 || v4Blue > 1 ||\n v1Alpha < 0 || v1Alpha > 1 || v2Alpha < 0 || v2Alpha> 1 || v3Alpha < 0 || v3Alpha > 1 || v4Alpha < 0 || v4Alpha > 1\n ) {\n throw new IllegalArgumentException(\"Values should be between 0 and 1\");\n }\n\n float[] colors = {\n v1Red, v1Green, v1Blue, v1Alpha,\n v2Red, v2Green, v2Blue, v2Alpha,\n v3Red, v3Green, v3Blue, v3Alpha,\n v4Red, v4Green, v4Blue, v4Alpha\n };\n\n ByteBuffer clb = ByteBuffer.allocateDirect(colors.length * 4);\n clb.order(ByteOrder.nativeOrder());\n this.colorBuffer = clb.asFloatBuffer();\n this.colorBuffer.put(colors);\n this.colorBuffer.position(0);\n }", "public ImgCompressed(int width, int height, byte[] redRL, byte[] greenRL, byte[] blueRL, int compresslevel)\n {\n imgHeight = height;\n imgWidth = width;\n redRLCompressed = redRL;\n greenRLCompressed = greenRL;\n blueRLCompressed = blueRL;\n compressLevel = compresslevel;\n totalByteSize = redRL.length + greenRL.length + blueRL.length;\n\n System.out.println(\"A compressed image object was created in memory. Total Size of Image (Bytes): \" + totalByteSize);\n }", "IColor createColorInt(int r, int g, int b);", "public static final Compression fromValue(final int value) throws InvalidCompressionException {\n switch (value) {\n case 0:\n return UNCOMPRESSED;\n case 1:\n return ZLIB;\n case 2:\n return SNAPPY;\n default:\n throw new InvalidCompressionException(String.format(\"invalid compression method: %d\", value));\n }\n }", "public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }", "public Color(){\r\n\t\tthis(0,0,0);\r\n\t}", "private static int[][] decompressColourLevel(byte[] compressedColourArray, int imgWidth, int imgHeight)\n {\n int[][] decompressedColourLevel = new int[imgWidth][imgHeight];\n int curSelectedByte = 0;\n\n for (int ypos = 0; ypos < imgHeight; ypos++) {\n for (int xpos = 0; xpos < imgWidth; ) { //For each pixel in the image\n int colourValue = compressedColourArray[curSelectedByte++]; //Read the colour level value\n int runLength = Byte.toUnsignedInt(compressedColourArray[curSelectedByte++]); //Read the run length\n\n for (int rx = 0; rx < runLength; rx++) { //Up to the run length, set the colour level\n decompressedColourLevel[xpos++][ypos] = colourValue & 0xFF;\n\n }\n }\n }\n\n return decompressedColourLevel;\n }", "public ColorObject(float red, float green, float blue, float alpha) {\n \n this.red = red;\n this.green = green;\n this.blue = blue;\n this.alpha = alpha;\n }", "Color createColor();", "Color(){}", "public native void setCompression(int value) throws MagickException;", "private static Color newColor(int red, int green, int blue) {\n return new Color(red / 255.0, green / 255.0, blue / 255.0);\n }", "public static int toColor(@FloatRange(from = 0.0, to = 360.0) float hue,\n @FloatRange(from = 0.0, to = Double.POSITIVE_INFINITY, toInclusive = false)\n float chroma,\n @FloatRange(from = 0.0, to = 100.0) float lStar) {\n return toColor(hue, chroma, lStar, ViewingConditions.DEFAULT);\n }", "public Colour() {\n this(0, 0, 0, 1);\n }", "static @ColorInt int toColor(@FloatRange(from = 0.0, to = 360.0) float hue,\n @FloatRange(from = 0.0, to = Double.POSITIVE_INFINITY, toInclusive = false)\n float chroma,\n @FloatRange(from = 0.0, to = 100.0) float lstar,\n @NonNull ViewingConditions viewingConditions) {\n // This is a crucial routine for building a color system, CAM16 itself is not sufficient.\n //\n // * Why these dimensions?\n // Hue and chroma from CAM16 are used because they're the most accurate measures of those\n // quantities. L* from L*a*b* is used because it correlates with luminance, luminance is\n // used to measure contrast for a11y purposes, thus providing a key constraint on what\n // colors\n // can be used.\n //\n // * Why is this routine required to build a color system?\n // In all perceptually accurate color spaces (i.e. L*a*b* and later), `chroma` may be\n // impossible for a given `hue` and `lstar`.\n // For example, a high chroma light red does not exist - chroma is limited to below 10 at\n // light red shades, we call that pink. High chroma light green does exist, but not dark\n // Also, when converting from another color space to RGB, the color may not be able to be\n // represented in RGB. In those cases, the conversion process ends with RGB values\n // outside 0-255\n // The vast majority of color libraries surveyed simply round to 0 to 255. That is not an\n // option for this library, as it distorts the expected luminance, and thus the expected\n // contrast needed for a11y\n //\n // * What does this routine do?\n // Dealing with colors in one color space not fitting inside RGB is, loosely referred to as\n // gamut mapping or tone mapping. These algorithms are traditionally idiosyncratic, there is\n // no universal answer. However, because the intent of this library is to build a system for\n // digital design, and digital design uses luminance to measure contrast/a11y, we have one\n // very important constraint that leads to an objective algorithm: the L* of the returned\n // color _must_ match the requested L*.\n //\n // Intuitively, if the color must be distorted to fit into the RGB gamut, and the L*\n // requested *must* be fulfilled, than the hue or chroma of the returned color will need\n // to be different from the requested hue/chroma.\n //\n // After exploring both options, it was more intuitive that if the requested chroma could\n // not be reached, it used the highest possible chroma. The alternative was finding the\n // closest hue where the requested chroma could be reached, but that is not nearly as\n // intuitive, as the requested hue is so fundamental to the color description.\n\n // If the color doesn't have meaningful chroma, return a gray with the requested Lstar.\n //\n // Yellows are very chromatic at L = 100, and blues are very chromatic at L = 0. All the\n // other hues are white at L = 100, and black at L = 0. To preserve consistency for users of\n // this system, it is better to simply return white at L* > 99, and black and L* < 0.\n if (chroma < 1.0 || Math.round(lstar) <= 0.0 || Math.round(lstar) >= 100.0) {\n return CamUtils.intFromLStar(lstar);\n }\n\n hue = hue < 0 ? 0 : Math.min(360, hue);\n\n // The highest chroma possible. Updated as binary search proceeds.\n float high = chroma;\n\n // The guess for the current binary search iteration. Starts off at the highest chroma,\n // thus, if a color is possible at the requested chroma, the search can stop after one try.\n float mid = chroma;\n float low = 0.0f;\n boolean isFirstLoop = true;\n\n CamColor answer = null;\n\n while (Math.abs(low - high) >= CHROMA_SEARCH_ENDPOINT) {\n // Given the current chroma guess, mid, and the desired hue, find J, lightness in\n // CAM16 color space, that creates a color with L* = `lstar` in the L*a*b* color space.\n CamColor possibleAnswer = findCamByJ(hue, mid, lstar);\n\n if (isFirstLoop) {\n if (possibleAnswer != null) {\n return possibleAnswer.viewed(viewingConditions);\n } else {\n // If this binary search iteration was the first iteration, and this point\n // has been reached, it means the requested chroma was not available at the\n // requested hue and L*.\n // Proceed to a traditional binary search that starts at the midpoint between\n // the requested chroma and 0.\n isFirstLoop = false;\n mid = low + (high - low) / 2.0f;\n continue;\n }\n }\n\n if (possibleAnswer == null) {\n // There isn't a CAM16 J that creates a color with L* `lstar`. Try a lower chroma.\n high = mid;\n } else {\n answer = possibleAnswer;\n // It is possible to create a color. Try higher chroma.\n low = mid;\n }\n\n mid = low + (high - low) / 2.0f;\n }\n\n // There was no answer: meaning, for the desired hue, there was no chroma low enough to\n // generate a color with the desired L*.\n // All values of L* are possible when there is 0 chroma. Return a color with 0 chroma, i.e.\n // a shade of gray, with the desired L*.\n if (answer == null) {\n return CamUtils.intFromLStar(lstar);\n }\n\n return answer.viewed(viewingConditions);\n }", "IColor createColor();", "public int pack(){\n\t\tint rgb = 0;\n\t\trgb = rgb | (int)(b*255);\n\t\trgb = rgb | ((int)(g*255) << 8);\n\t\trgb = rgb | ((int)(r*255) << 16);\n\t\trgb = rgb | ((int)(a*255) << 24);\n\t\t\n\t\treturn rgb;\n\t\t\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'relatedIMEventMsg' field has been set
public boolean hasRelatedIMEventMsg() { return fieldSetFlags()[8]; }
[ "public void setRelatedIMEventMsg(gr.grnet.aquarium.message.avro.gen.IMEventMsg value) {\n this.relatedIMEventMsg = value;\n }", "public boolean is_set_msg() {\n return this.msg != null;\n }", "public gr.grnet.aquarium.message.avro.gen.IMEventMsg getRelatedIMEventMsg() {\n return relatedIMEventMsg;\n }", "public gr.grnet.aquarium.message.avro.gen.IMEventMsg getRelatedIMEventMsg() {\n return relatedIMEventMsg;\n }", "public boolean isSetMsg() {\n return this.msg != null;\n }", "public boolean isSetMsg() {\n return this.msg != null;\n }", "public boolean isSetMsg() {\n return this.msg != null;\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setRelatedIMEventMsg(gr.grnet.aquarium.message.avro.gen.IMEventMsg value) {\n validate(fields()[8], value);\n this.relatedIMEventMsg = value;\n fieldSetFlags()[8] = true;\n return this; \n }", "public boolean hasRelatedIMEventOriginalID() {\n return fieldSetFlags()[1];\n }", "boolean hasIsPerMsg();", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder clearRelatedIMEventMsg() {\n relatedIMEventMsg = null;\n fieldSetFlags()[8] = false;\n return this;\n }", "private boolean checkEventInfo(Event event) {\r\n if ((event.getEvent_type() != null) && (event.getPerson_ID() != null) && (event.getAssociated_username() != null) &&\r\n (event.getCountry() != null) && (event.getCity() != null) && (event.getYear() != 0) &&\r\n (event.getLatitude() != 0) && (event.getLongitude() != 0)) {\r\n if (event.getID() == null) {\r\n event.setID(rsg.generateRandomID(null));\r\n }\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean hasIsPerMsg() {\n return ((bitField1_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetExceptionOccurred() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EXCEPTIONOCCURRED_ISSET_ID);\n }", "public boolean isSetMessage() {\n return this.Message != null;\n }", "public boolean hasIsPerMsg() {\n return ((bitField1_ & 0x00000800) == 0x00000800);\n }", "public String getMessageCouldHaveFired()\r\n\t{\r\n\t\treturn getMessageCouldHaveFired( getSession().getSessionContext() );\r\n\t}", "public boolean isSetMessageid() {\n return this.messageid != null;\n }", "public boolean isSelfMessageProcessingEvent();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
SELECT DISTINCT(model),brand_name FROM inverter WHERE brand_id =7 AND del =0;
@Query("SELECT new Inverter(id,model,brandName,brandId) FROM Inverter WHERE brandId =:id AND del =0") List<Inverter> getInverter(@Param("id") Integer id);
[ "public List<String> getAllMobileBrand(){\n return mobileDao.getAllDistinctBrand();\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public Manufacturer getManufacturer(String brand){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from Manufacturer where brand='\"+brand+\"'\");\n return (Manufacturer) query.uniqueResult();\n }", "public List<stock> selectstock(String modelNo);", "public List<CarModel> getModelsByBrandId(final int id) {\n return (List<CarModel>) this.template.find(\"from CarModel where carBrand.id=?\", id);\n }", "public List<BrandInfoDTO> getDistributorInfo(String brand) {\r\n\t\tList<BrandInfoDTO> list = new ArrayList<BrandInfoDTO>();\r\n\t\tString channelName = null;\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tCriteria criteria = session.createCriteria(BrandEntity.class);\r\n\t\tcriteria.add(Restrictions.eq(\"brandName\", brand));\r\n\t\tList<BrandEntity> brandList = criteria.list();\r\n\t\tif (brandList.size() > 0) {\r\n\t\t\tBrandEntity brandEntity = (BrandEntity) brandList.get(0);\r\n\t\t\tInteger channelID = brandEntity.getChannelID();\r\n\t\t\tcriteria = session.createCriteria(ChannelEntity.class);\r\n\t\t\tcriteria.add(Restrictions.eq(\"channelID\", channelID));\r\n\t\t\tList<ChannelEntity> channelList = criteria.list();\r\n\t\t\tChannelEntity channelEntity = (ChannelEntity) channelList.get(0);\r\n\t\t\tchannelName = channelEntity.getChannelName();\r\n\t\t}\r\n\t\tfor (BrandEntity brandEntity : brandList) {\r\n\t\t\tBrandInfoDTO brandInfoDTO = new BrandInfoDTO();\r\n\t\t\tbrandInfoDTO.setBrandName(brandEntity.getBrandName());\r\n\t\t\tbrandInfoDTO.setChannelName(channelName);\r\n\t\t\tbrandInfoDTO.setLocationsInvoiced(brandEntity\r\n\t\t\t\t\t.getLocationsInvoiced());\r\n\t\t\tbrandInfoDTO.setSubmisions(brandEntity.getSubmisions());\r\n\t\t\tbrandInfoDTO.setStartDate(brandEntity.getStartDate());\r\n\t\t\tBeanUtils.copyProperties(brandEntity, brandInfoDTO);\r\n\t\t\tlist.add(brandInfoDTO);\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "com.vitessedata.llql.llql_proto.LLQLQuery.Distinct getDistinct();", "TVmManufacturer selectByPrimaryKey(String vendorid);", "public List<Car> findCarsByBrand(String brand){\r\n return repository.findCarsByBrand(brand);\r\n }", "public List<VehicleBrand> listBrandByProduct(long productId);", "@Override\n\tpublic java.lang.String getBrand() {\n\t\treturn _join.getBrand();\n\t}", "java.lang.String getBrand();", "List<CatalogItem> getAllCatalogItemsByBrand(Long brand_id);", "@RequestMapping(value = \"/brandId={brandId}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\t@ApiOperation(value = \"得到某品牌的所有型号\", notes = \"find All mdoels by brand\",httpMethod=\"GET\",response=ResultMessage.class)\n\tpublic ResultMessage getModelsByBrandId(\n\t\t\t@ApiParam(required = true, name = \"brandId\", value = \"品牌id\")\n\t\t\t@PathVariable\n\t\t\tLong brandId) {\n\t\tResultMessage result = new ResultMessage();\n\t\tresult.getResultParm().put(\"models\",modelsService.findModelsByBrand(brandId));\n\t\treturn result;\n\t}", "public List<Brand> getBrands(Integer shopinfoid);", "public List<String> executeDistinctBillSerialNo() throws SQLException,Exception{\n\t\tConnection objConnection = getConnection(this.jndiName);\n\t\tPreparedStatement objPreparedStatement;\n\t\tResultSet resultSet;\n\t\t\n\t\tList<String> billSerialList=new ArrayList<String>();\n\t\t\t\ttry{\t\t\n\t\t// objConnection = getConnection();\t\t \n\t\t //System.out.println(\"SELECT_DISTINCT_BILL_SERIAL_NO: \" + SELECT_DISTINCT_BILL_SERIAL_NO);\n\t\tobjPreparedStatement = objConnection.prepareStatement(SELECT_DISTINCT_BILL_SERIAL_NO);\t\n\t\tresultSet = objPreparedStatement.executeQuery();\t\t\n\t\twhile(resultSet.next()){\n\t\t\tbillSerialList.add(resultSet.getString(1));\n\t\t}\n\t\t\t\t}finally{\n\t\t\t\t\t try {\n\t\t\t\t\t\tobjConnection.close();\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tresultSet = null;\n\t\t\t\t\tobjPreparedStatement = null;\n\t\t\t\t\tobjConnection = null;\n\t\t\t\t}\n\t\treturn billSerialList;\t\t\t\n\t}", "private void fillBrandComboBox() {\n\t\tArrayList<String> brands = _vehiclesDB.getDistinctFields(VEHICLE_FIELDS[IDX_BRAND]);\n\t\tif (brands != null) {\n\t\t\t_modelBrandsCBox.removeAllElements();\n\t\t\tfor (String brand : brands)\n\t\t\t\t_modelBrandsCBox.addElement(brand);\n\t\t} else {\n\t\t\t_modelBrandsCBox.removeAllElements();\n\t\t\t_modelBrandsCBox.addElement(\"No hay vehÝculos\");\n\t\t}\n\t}", "public String getSdetVnameBrand() {\n\t return sdetVnameBrand;\n\t }", "List<Car> findByBrand(String brand);", "public String getEle_brand() {\n\t\treturn ele_brand;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XAssignment__Group_1_1_0_0__1" $ANTLR start "rule__XAssignment__Group_1_1_0_0__1__Impl" ../org.xtext.lwc.instances.ui/srcgen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3545:1: rule__XAssignment__Group_1_1_0_0__1__Impl : ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) ;
public final void rule__XAssignment__Group_1_1_0_0__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3549:1: ( ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) ) // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3550:1: ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) { // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3550:1: ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3551:1: ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) { if ( state.backtracking==0 ) { before(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); } // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3552:1: ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3552:2: rule__XAssignment__FeatureAssignment_1_1_0_0_1 { pushFollow(FOLLOW_rule__XAssignment__FeatureAssignment_1_1_0_0_1_in_rule__XAssignment__Group_1_1_0_0__1__Impl7455); rule__XAssignment__FeatureAssignment_1_1_0_0_1(); state._fsp--; if (state.failed) return ; } if ( state.backtracking==0 ) { after(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); } } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__XAssignment__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3808:1: ( rule__XAssignment__Group_1_1_0_0__1__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3809:2: rule__XAssignment__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0_0__1__Impl_in_rule__XAssignment__Group_1_1_0_0__18178);\n rule__XAssignment__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3538:1: ( rule__XAssignment__Group_1_1_0_0__1__Impl )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3539:2: rule__XAssignment__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0_0__1__Impl_in_rule__XAssignment__Group_1_1_0_0__17428);\n rule__XAssignment__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3715:1: ( rule__XAssignment__Group_1_1__1__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3716:2: rule__XAssignment__Group_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1__1__Impl_in_rule__XAssignment__Group_1_1__17997);\n rule__XAssignment__Group_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17371:1: ( ( ( rule__XAssignment__Group_1_1_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17372:1: ( ( rule__XAssignment__Group_1_1_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17372:1: ( ( rule__XAssignment__Group_1_1_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17373:1: ( rule__XAssignment__Group_1_1_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17374:1: ( rule__XAssignment__Group_1_1_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17374:2: rule__XAssignment__Group_1_1_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0__0_in_rule__XAssignment__Group_1_1__0__Impl35260);\r\n rule__XAssignment__Group_1_1_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAssignment__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3747:1: ( rule__XAssignment__Group_1_1_0__0__Impl )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3748:2: rule__XAssignment__Group_1_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0__0__Impl_in_rule__XAssignment__Group_1_1_0__08058);\n rule__XAssignment__Group_1_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5425:1: ( ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5426:1: ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5426:1: ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5427:1: ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5428:1: ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5428:2: rule__XAssignment__FeatureAssignment_1_1_0_0_1\n {\n pushFollow(FOLLOW_rule__XAssignment__FeatureAssignment_1_1_0_0_1_in_rule__XAssignment__Group_1_1_0_0__1__Impl11459);\n rule__XAssignment__FeatureAssignment_1_1_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3698:1: ( ( ( rule__XAssignment__Group_1_1_0__0 ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3699:1: ( ( rule__XAssignment__Group_1_1_0__0 ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3699:1: ( ( rule__XAssignment__Group_1_1_0__0 ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3700:1: ( rule__XAssignment__Group_1_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3701:1: ( rule__XAssignment__Group_1_1_0__0 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3701:2: rule__XAssignment__Group_1_1_0__0\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0__0_in_rule__XAssignment__Group_1_1__0__Impl7967);\n rule__XAssignment__Group_1_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5414:1: ( rule__XAssignment__Group_1_1_0_0__1__Impl )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5415:2: rule__XAssignment__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0_0__1__Impl_in_rule__XAssignment__Group_1_1_0_0__111432);\n rule__XAssignment__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1_0_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17481:1: ( rule__XAssignment__Group_1_1_0_0__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17482:2: rule__XAssignment__Group_1_1_0_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0_0__1__Impl_in_rule__XAssignment__Group_1_1_0_0__135471);\r\n rule__XAssignment__Group_1_1_0_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAssignment__Group_1_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3758:1: ( ( ( rule__XAssignment__Group_1_1_0_0__0 ) ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3759:1: ( ( rule__XAssignment__Group_1_1_0_0__0 ) )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3759:1: ( ( rule__XAssignment__Group_1_1_0_0__0 ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3760:1: ( rule__XAssignment__Group_1_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3761:1: ( rule__XAssignment__Group_1_1_0_0__0 )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3761:2: rule__XAssignment__Group_1_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0_0__0_in_rule__XAssignment__Group_1_1_0__0__Impl8085);\n rule__XAssignment__Group_1_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1_0_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17492:1: ( ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17493:1: ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17493:1: ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17494:1: ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17495:1: ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17495:2: rule__XAssignment__FeatureAssignment_1_1_0_0_1\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__FeatureAssignment_1_1_0_0_1_in_rule__XAssignment__Group_1_1_0_0__1__Impl35498);\r\n rule__XAssignment__FeatureAssignment_1_1_0_0_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAssignment__Group_1_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5364:1: ( ( ( rule__XAssignment__Group_1_1_0_0__0 ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5365:1: ( ( rule__XAssignment__Group_1_1_0_0__0 ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5365:1: ( ( rule__XAssignment__Group_1_1_0_0__0 ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5366:1: ( rule__XAssignment__Group_1_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5367:1: ( rule__XAssignment__Group_1_1_0_0__0 )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:5367:2: rule__XAssignment__Group_1_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0_0__0_in_rule__XAssignment__Group_1_1_0__0__Impl11339);\n rule__XAssignment__Group_1_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4517:1: ( rule__XAssignment__Group_1_1_0_0__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4518:2: rule__XAssignment__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0_0__1__Impl_in_rule__XAssignment__Group_1_1_0_0__19619);\n rule__XAssignment__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3477:1: ( rule__XAssignment__Group_1_1_0__0__Impl )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3478:2: rule__XAssignment__Group_1_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0__0__Impl_in_rule__XAssignment__Group_1_1_0__07308);\n rule__XAssignment__Group_1_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3384:1: ( rule__XAssignment__Group_1__1__Impl )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:3385:2: rule__XAssignment__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1__1__Impl_in_rule__XAssignment__Group_1__17125);\n rule__XAssignment__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17388:1: ( rule__XAssignment__Group_1_1__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17389:2: rule__XAssignment__Group_1_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1__1__Impl_in_rule__XAssignment__Group_1_1__135290);\r\n rule__XAssignment__Group_1_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAssignment__Group_1_1_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17431:1: ( ( ( rule__XAssignment__Group_1_1_0_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17432:1: ( ( rule__XAssignment__Group_1_1_0_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17432:1: ( ( rule__XAssignment__Group_1_1_0_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17433:1: ( rule__XAssignment__Group_1_1_0_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17434:1: ( rule__XAssignment__Group_1_1_0_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17434:2: rule__XAssignment__Group_1_1_0_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1_0_0__0_in_rule__XAssignment__Group_1_1_0__0__Impl35378);\r\n rule__XAssignment__Group_1_1_0_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAssignment__Group_1_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4528:1: ( ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4529:1: ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4529:1: ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4530:1: ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4531:1: ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4531:2: rule__XAssignment__FeatureAssignment_1_1_0_0_1\n {\n pushFollow(FOLLOW_rule__XAssignment__FeatureAssignment_1_1_0_0_1_in_rule__XAssignment__Group_1_1_0_0__1__Impl9646);\n rule__XAssignment__FeatureAssignment_1_1_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAssignment__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3665:1: ( ( ( rule__XAssignment__Group_1_1__0 )? ) )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3666:1: ( ( rule__XAssignment__Group_1_1__0 )? )\n {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3666:1: ( ( rule__XAssignment__Group_1_1__0 )? )\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3667:1: ( rule__XAssignment__Group_1_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getGroup_1_1()); \n }\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3668:1: ( rule__XAssignment__Group_1_1__0 )?\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==16) ) {\n int LA41_1 = input.LA(2);\n\n if ( (synpred77_InternalHelloXcore()) ) {\n alt41=1;\n }\n }\n else if ( (LA41_0==17) ) {\n int LA41_2 = input.LA(2);\n\n if ( (synpred77_InternalHelloXcore()) ) {\n alt41=1;\n }\n }\n switch (alt41) {\n case 1 :\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:3668:2: rule__XAssignment__Group_1_1__0\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_1_1__0_in_rule__XAssignment__Group_1__1__Impl7902);\n rule__XAssignment__Group_1_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getGroup_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleWrappingDataTypeTest" $ANTLR start "ruleWrappingDataTypeTest" PsiInternalFormatterTestLanguage.g:1269:1: ruleWrappingDataTypeTest returns [Boolean current=false] : (otherlv_0= 'wrappingdt' ( (lv_datatype_1_0= ruleWrappingDataType ) ) otherlv_2= 'kw1' ) ;
public final Boolean ruleWrappingDataTypeTest() throws RecognitionException { Boolean current = false; Token otherlv_0=null; Token otherlv_2=null; Boolean lv_datatype_1_0 = null; try { // PsiInternalFormatterTestLanguage.g:1270:1: ( (otherlv_0= 'wrappingdt' ( (lv_datatype_1_0= ruleWrappingDataType ) ) otherlv_2= 'kw1' ) ) // PsiInternalFormatterTestLanguage.g:1271:2: (otherlv_0= 'wrappingdt' ( (lv_datatype_1_0= ruleWrappingDataType ) ) otherlv_2= 'kw1' ) { // PsiInternalFormatterTestLanguage.g:1271:2: (otherlv_0= 'wrappingdt' ( (lv_datatype_1_0= ruleWrappingDataType ) ) otherlv_2= 'kw1' ) // PsiInternalFormatterTestLanguage.g:1272:3: otherlv_0= 'wrappingdt' ( (lv_datatype_1_0= ruleWrappingDataType ) ) otherlv_2= 'kw1' { markLeaf(elementTypeProvider.getWrappingDataTypeTest_WrappingdtKeyword_0ElementType()); otherlv_0=(Token)match(input,40,FollowSets000.FOLLOW_6); doneLeaf(otherlv_0); // PsiInternalFormatterTestLanguage.g:1279:3: ( (lv_datatype_1_0= ruleWrappingDataType ) ) // PsiInternalFormatterTestLanguage.g:1280:4: (lv_datatype_1_0= ruleWrappingDataType ) { // PsiInternalFormatterTestLanguage.g:1280:4: (lv_datatype_1_0= ruleWrappingDataType ) // PsiInternalFormatterTestLanguage.g:1281:5: lv_datatype_1_0= ruleWrappingDataType { markComposite(elementTypeProvider.getWrappingDataTypeTest_DatatypeWrappingDataTypeParserRuleCall_1_0ElementType()); pushFollow(FollowSets000.FOLLOW_28); lv_datatype_1_0=ruleWrappingDataType(); state._fsp--; doneComposite(); if(!current) { associateWithSemanticElement(); current = true; } } } markLeaf(elementTypeProvider.getWrappingDataTypeTest_Kw1Keyword_2ElementType()); otherlv_2=(Token)match(input,38,FollowSets000.FOLLOW_2); doneLeaf(otherlv_2); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return current; }
[ "public final Boolean entryRuleWrappingDataTypeTest() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleWrappingDataTypeTest = null;\n\n\n try {\n // PsiInternalFormatterTestLanguage.g:1262:62: (iv_ruleWrappingDataTypeTest= ruleWrappingDataTypeTest EOF )\n // PsiInternalFormatterTestLanguage.g:1263:2: iv_ruleWrappingDataTypeTest= ruleWrappingDataTypeTest EOF\n {\n markComposite(elementTypeProvider.getWrappingDataTypeTestElementType()); \n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleWrappingDataTypeTest=ruleWrappingDataTypeTest();\n\n state._fsp--;\n\n current =iv_ruleWrappingDataTypeTest; \n match(input,EOF,FollowSets000.FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final Boolean entryRuleWrappingDataType() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleWrappingDataType = null;\n\n\n try {\n // PsiInternalFormatterTestLanguage.g:1305:58: (iv_ruleWrappingDataType= ruleWrappingDataType EOF )\n // PsiInternalFormatterTestLanguage.g:1306:2: iv_ruleWrappingDataType= ruleWrappingDataType EOF\n {\n markComposite(elementTypeProvider.getWrappingDataTypeElementType()); \n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleWrappingDataType=ruleWrappingDataType();\n\n state._fsp--;\n\n current =iv_ruleWrappingDataType; \n match(input,EOF,FollowSets000.FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final Boolean ruleRoot() throws RecognitionException {\n Boolean current = false;\n\n Token otherlv_0=null;\n Boolean this_TestLinewrap_1 = null;\n\n Boolean this_TestIndentation_2 = null;\n\n Boolean this_TestLinewrapMinMax_3 = null;\n\n Boolean this_WrappingDataTypeTest_4 = null;\n\n\n try {\n // PsiInternalFormatterTestLanguage.g:60:1: ( (otherlv_0= 'test' (this_TestLinewrap_1= ruleTestLinewrap | this_TestIndentation_2= ruleTestIndentation | this_TestLinewrapMinMax_3= ruleTestLinewrapMinMax | this_WrappingDataTypeTest_4= ruleWrappingDataTypeTest ) ) )\n // PsiInternalFormatterTestLanguage.g:61:2: (otherlv_0= 'test' (this_TestLinewrap_1= ruleTestLinewrap | this_TestIndentation_2= ruleTestIndentation | this_TestLinewrapMinMax_3= ruleTestLinewrapMinMax | this_WrappingDataTypeTest_4= ruleWrappingDataTypeTest ) )\n {\n // PsiInternalFormatterTestLanguage.g:61:2: (otherlv_0= 'test' (this_TestLinewrap_1= ruleTestLinewrap | this_TestIndentation_2= ruleTestIndentation | this_TestLinewrapMinMax_3= ruleTestLinewrapMinMax | this_WrappingDataTypeTest_4= ruleWrappingDataTypeTest ) )\n // PsiInternalFormatterTestLanguage.g:62:3: otherlv_0= 'test' (this_TestLinewrap_1= ruleTestLinewrap | this_TestIndentation_2= ruleTestIndentation | this_TestLinewrapMinMax_3= ruleTestLinewrapMinMax | this_WrappingDataTypeTest_4= ruleWrappingDataTypeTest )\n {\n\n \t\t\tmarkLeaf(elementTypeProvider.getRoot_TestKeyword_0ElementType());\n \t\t\n otherlv_0=(Token)match(input,11,FollowSets000.FOLLOW_3); \n\n \t\t\tdoneLeaf(otherlv_0);\n \t\t\n // PsiInternalFormatterTestLanguage.g:69:3: (this_TestLinewrap_1= ruleTestLinewrap | this_TestIndentation_2= ruleTestIndentation | this_TestLinewrapMinMax_3= ruleTestLinewrapMinMax | this_WrappingDataTypeTest_4= ruleWrappingDataTypeTest )\n int alt1=4;\n switch ( input.LA(1) ) {\n case 24:\n {\n alt1=1;\n }\n break;\n case 26:\n {\n alt1=2;\n }\n break;\n case 25:\n {\n alt1=3;\n }\n break;\n case 40:\n {\n alt1=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 1, 0, input);\n\n throw nvae;\n }\n\n switch (alt1) {\n case 1 :\n // PsiInternalFormatterTestLanguage.g:70:4: this_TestLinewrap_1= ruleTestLinewrap\n {\n\n \t\t\t\tmarkComposite(elementTypeProvider.getRoot_TestLinewrapParserRuleCall_1_0ElementType());\n \t\t\t\n pushFollow(FollowSets000.FOLLOW_2);\n this_TestLinewrap_1=ruleTestLinewrap();\n\n state._fsp--;\n\n\n \t\t\t\tcurrent = this_TestLinewrap_1;\n \t\t\t\tdoneComposite();\n \t\t\t\n\n }\n break;\n case 2 :\n // PsiInternalFormatterTestLanguage.g:79:4: this_TestIndentation_2= ruleTestIndentation\n {\n\n \t\t\t\tmarkComposite(elementTypeProvider.getRoot_TestIndentationParserRuleCall_1_1ElementType());\n \t\t\t\n pushFollow(FollowSets000.FOLLOW_2);\n this_TestIndentation_2=ruleTestIndentation();\n\n state._fsp--;\n\n\n \t\t\t\tcurrent = this_TestIndentation_2;\n \t\t\t\tdoneComposite();\n \t\t\t\n\n }\n break;\n case 3 :\n // PsiInternalFormatterTestLanguage.g:88:4: this_TestLinewrapMinMax_3= ruleTestLinewrapMinMax\n {\n\n \t\t\t\tmarkComposite(elementTypeProvider.getRoot_TestLinewrapMinMaxParserRuleCall_1_2ElementType());\n \t\t\t\n pushFollow(FollowSets000.FOLLOW_2);\n this_TestLinewrapMinMax_3=ruleTestLinewrapMinMax();\n\n state._fsp--;\n\n\n \t\t\t\tcurrent = this_TestLinewrapMinMax_3;\n \t\t\t\tdoneComposite();\n \t\t\t\n\n }\n break;\n case 4 :\n // PsiInternalFormatterTestLanguage.g:97:4: this_WrappingDataTypeTest_4= ruleWrappingDataTypeTest\n {\n\n \t\t\t\tmarkComposite(elementTypeProvider.getRoot_WrappingDataTypeTestParserRuleCall_1_3ElementType());\n \t\t\t\n pushFollow(FollowSets000.FOLLOW_2);\n this_WrappingDataTypeTest_4=ruleWrappingDataTypeTest();\n\n state._fsp--;\n\n\n \t\t\t\tcurrent = this_WrappingDataTypeTest_4;\n \t\t\t\tdoneComposite();\n \t\t\t\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final Boolean ruleWrappingDataType() throws RecognitionException {\n Boolean current = false;\n\n Token this_ID_0=null;\n\n try {\n // PsiInternalFormatterTestLanguage.g:1313:1: ( (this_ID_0= RULE_ID )+ )\n // PsiInternalFormatterTestLanguage.g:1314:2: (this_ID_0= RULE_ID )+\n {\n // PsiInternalFormatterTestLanguage.g:1314:2: (this_ID_0= RULE_ID )+\n int cnt19=0;\n loop19:\n do {\n int alt19=2;\n int LA19_0 = input.LA(1);\n\n if ( (LA19_0==RULE_ID) ) {\n alt19=1;\n }\n\n\n switch (alt19) {\n \tcase 1 :\n \t // PsiInternalFormatterTestLanguage.g:1315:3: this_ID_0= RULE_ID\n \t {\n\n \t \t\t\tmarkLeaf(elementTypeProvider.getWrappingDataType_IDTerminalRuleCallElementType());\n \t \t\t\n \t this_ID_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_30); \n\n \t \t\t\tdoneLeaf(this_ID_0);\n \t \t\t\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt19 >= 1 ) break loop19;\n EarlyExitException eee =\n new EarlyExitException(19, input);\n throw eee;\n }\n cnt19++;\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final Boolean ruleDatatypeRule() throws RecognitionException {\n Boolean current = false;\n\n Token otherlv_0=null;\n Token lv_val_1_0=null;\n\n try {\n // PsiInternalUnassignedTextTestLanguage.g:260:1: ( (otherlv_0= 'datatype' ( (lv_val_1_0= RULE_INT ) ) ruleDatatype ) )\n // PsiInternalUnassignedTextTestLanguage.g:261:2: (otherlv_0= 'datatype' ( (lv_val_1_0= RULE_INT ) ) ruleDatatype )\n {\n // PsiInternalUnassignedTextTestLanguage.g:261:2: (otherlv_0= 'datatype' ( (lv_val_1_0= RULE_INT ) ) ruleDatatype )\n // PsiInternalUnassignedTextTestLanguage.g:262:3: otherlv_0= 'datatype' ( (lv_val_1_0= RULE_INT ) ) ruleDatatype\n {\n\n \t\t\tmarkLeaf(elementTypeProvider.getDatatypeRule_DatatypeKeyword_0ElementType());\n \t\t\n otherlv_0=(Token)match(input,17,FollowSets000.FOLLOW_3); \n\n \t\t\tdoneLeaf(otherlv_0);\n \t\t\n // PsiInternalUnassignedTextTestLanguage.g:269:3: ( (lv_val_1_0= RULE_INT ) )\n // PsiInternalUnassignedTextTestLanguage.g:270:4: (lv_val_1_0= RULE_INT )\n {\n // PsiInternalUnassignedTextTestLanguage.g:270:4: (lv_val_1_0= RULE_INT )\n // PsiInternalUnassignedTextTestLanguage.g:271:5: lv_val_1_0= RULE_INT\n {\n\n \t\t\t\t\tmarkLeaf(elementTypeProvider.getDatatypeRule_ValINTTerminalRuleCall_1_0ElementType());\n \t\t\t\t\n lv_val_1_0=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_6); \n\n \t\t\t\t\tif(!current) {\n \t\t\t\t\t\tassociateWithSemanticElement();\n \t\t\t\t\t\tcurrent = true;\n \t\t\t\t\t}\n \t\t\t\t\n\n \t\t\t\t\tdoneLeaf(lv_val_1_0);\n \t\t\t\t\n\n }\n\n\n }\n\n\n \t\t\tmarkComposite(elementTypeProvider.getDatatypeRule_DatatypeParserRuleCall_2ElementType());\n \t\t\n pushFollow(FollowSets000.FOLLOW_2);\n ruleDatatype();\n\n state._fsp--;\n\n\n \t\t\tdoneComposite();\n \t\t\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final Boolean ruleDatatypes() throws RecognitionException {\n Boolean current = false;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n Token otherlv_5=null;\n Boolean lv_val1_1_0 = null;\n\n Boolean lv_val2_3_0 = null;\n\n Boolean lv_val3_4_0 = null;\n\n\n try {\n // PsiInternalFormatterTestLanguage.g:1190:1: ( (otherlv_0= 'datatypes' ( (lv_val1_1_0= ruleDatatype1 ) ) otherlv_2= 'kw1' ( (lv_val2_3_0= ruleDatatype2 ) ) ( (lv_val3_4_0= ruleDatatype3 ) ) otherlv_5= 'kw3' ) )\n // PsiInternalFormatterTestLanguage.g:1191:2: (otherlv_0= 'datatypes' ( (lv_val1_1_0= ruleDatatype1 ) ) otherlv_2= 'kw1' ( (lv_val2_3_0= ruleDatatype2 ) ) ( (lv_val3_4_0= ruleDatatype3 ) ) otherlv_5= 'kw3' )\n {\n // PsiInternalFormatterTestLanguage.g:1191:2: (otherlv_0= 'datatypes' ( (lv_val1_1_0= ruleDatatype1 ) ) otherlv_2= 'kw1' ( (lv_val2_3_0= ruleDatatype2 ) ) ( (lv_val3_4_0= ruleDatatype3 ) ) otherlv_5= 'kw3' )\n // PsiInternalFormatterTestLanguage.g:1192:3: otherlv_0= 'datatypes' ( (lv_val1_1_0= ruleDatatype1 ) ) otherlv_2= 'kw1' ( (lv_val2_3_0= ruleDatatype2 ) ) ( (lv_val3_4_0= ruleDatatype3 ) ) otherlv_5= 'kw3'\n {\n\n \t\t\tmarkLeaf(elementTypeProvider.getDatatypes_DatatypesKeyword_0ElementType());\n \t\t\n otherlv_0=(Token)match(input,37,FollowSets000.FOLLOW_6); \n\n \t\t\tdoneLeaf(otherlv_0);\n \t\t\n // PsiInternalFormatterTestLanguage.g:1199:3: ( (lv_val1_1_0= ruleDatatype1 ) )\n // PsiInternalFormatterTestLanguage.g:1200:4: (lv_val1_1_0= ruleDatatype1 )\n {\n // PsiInternalFormatterTestLanguage.g:1200:4: (lv_val1_1_0= ruleDatatype1 )\n // PsiInternalFormatterTestLanguage.g:1201:5: lv_val1_1_0= ruleDatatype1\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getDatatypes_Val1Datatype1ParserRuleCall_1_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_28);\n lv_val1_1_0=ruleDatatype1();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\tif(!current) {\n \t\t\t\t\t\tassociateWithSemanticElement();\n \t\t\t\t\t\tcurrent = true;\n \t\t\t\t\t}\n \t\t\t\t\n\n }\n\n\n }\n\n\n \t\t\tmarkLeaf(elementTypeProvider.getDatatypes_Kw1Keyword_2ElementType());\n \t\t\n otherlv_2=(Token)match(input,38,FollowSets000.FOLLOW_6); \n\n \t\t\tdoneLeaf(otherlv_2);\n \t\t\n // PsiInternalFormatterTestLanguage.g:1221:3: ( (lv_val2_3_0= ruleDatatype2 ) )\n // PsiInternalFormatterTestLanguage.g:1222:4: (lv_val2_3_0= ruleDatatype2 )\n {\n // PsiInternalFormatterTestLanguage.g:1222:4: (lv_val2_3_0= ruleDatatype2 )\n // PsiInternalFormatterTestLanguage.g:1223:5: lv_val2_3_0= ruleDatatype2\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getDatatypes_Val2Datatype2ParserRuleCall_3_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_6);\n lv_val2_3_0=ruleDatatype2();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\tif(!current) {\n \t\t\t\t\t\tassociateWithSemanticElement();\n \t\t\t\t\t\tcurrent = true;\n \t\t\t\t\t}\n \t\t\t\t\n\n }\n\n\n }\n\n // PsiInternalFormatterTestLanguage.g:1236:3: ( (lv_val3_4_0= ruleDatatype3 ) )\n // PsiInternalFormatterTestLanguage.g:1237:4: (lv_val3_4_0= ruleDatatype3 )\n {\n // PsiInternalFormatterTestLanguage.g:1237:4: (lv_val3_4_0= ruleDatatype3 )\n // PsiInternalFormatterTestLanguage.g:1238:5: lv_val3_4_0= ruleDatatype3\n {\n\n \t\t\t\t\tmarkComposite(elementTypeProvider.getDatatypes_Val3Datatype3ParserRuleCall_4_0ElementType());\n \t\t\t\t\n pushFollow(FollowSets000.FOLLOW_29);\n lv_val3_4_0=ruleDatatype3();\n\n state._fsp--;\n\n\n \t\t\t\t\tdoneComposite();\n \t\t\t\t\tif(!current) {\n \t\t\t\t\t\tassociateWithSemanticElement();\n \t\t\t\t\t\tcurrent = true;\n \t\t\t\t\t}\n \t\t\t\t\n\n }\n\n\n }\n\n\n \t\t\tmarkLeaf(elementTypeProvider.getDatatypes_Kw3Keyword_5ElementType());\n \t\t\n otherlv_5=(Token)match(input,39,FollowSets000.FOLLOW_2); \n\n \t\t\tdoneLeaf(otherlv_5);\n \t\t\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final Boolean entryRuleDatatype2() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleDatatype2 = null;\n\n\n try {\n // PsiInternalFormatterTestLanguage.g:1144:51: (iv_ruleDatatype2= ruleDatatype2 EOF )\n // PsiInternalFormatterTestLanguage.g:1145:2: iv_ruleDatatype2= ruleDatatype2 EOF\n {\n markComposite(elementTypeProvider.getDatatype2ElementType()); \n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleDatatype2=ruleDatatype2();\n\n state._fsp--;\n\n current =iv_ruleDatatype2; \n match(input,EOF,FollowSets000.FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final AntlrDatatypeRuleToken ruleDataType() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:5113:2: ( (kw= 'String' | kw= 'Array' | kw= 'Object' | kw= 'Number' | kw= 'null' | kw= 'Boolean' ) )\n // InternalMyDsl.g:5114:2: (kw= 'String' | kw= 'Array' | kw= 'Object' | kw= 'Number' | kw= 'null' | kw= 'Boolean' )\n {\n // InternalMyDsl.g:5114:2: (kw= 'String' | kw= 'Array' | kw= 'Object' | kw= 'Number' | kw= 'null' | kw= 'Boolean' )\n int alt30=6;\n switch ( input.LA(1) ) {\n case 100:\n {\n alt30=1;\n }\n break;\n case 101:\n {\n alt30=2;\n }\n break;\n case 102:\n {\n alt30=3;\n }\n break;\n case 103:\n {\n alt30=4;\n }\n break;\n case 104:\n {\n alt30=5;\n }\n break;\n case 105:\n {\n alt30=6;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 30, 0, input);\n\n throw nvae;\n }\n\n switch (alt30) {\n case 1 :\n // InternalMyDsl.g:5115:3: kw= 'String'\n {\n kw=(Token)match(input,100,FOLLOW_2); \n\n \t\t\tcurrent.merge(kw);\n \t\t\tnewLeafNode(kw, grammarAccess.getDataTypeAccess().getStringKeyword_0());\n \t\t\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:5121:3: kw= 'Array'\n {\n kw=(Token)match(input,101,FOLLOW_2); \n\n \t\t\tcurrent.merge(kw);\n \t\t\tnewLeafNode(kw, grammarAccess.getDataTypeAccess().getArrayKeyword_1());\n \t\t\n\n }\n break;\n case 3 :\n // InternalMyDsl.g:5127:3: kw= 'Object'\n {\n kw=(Token)match(input,102,FOLLOW_2); \n\n \t\t\tcurrent.merge(kw);\n \t\t\tnewLeafNode(kw, grammarAccess.getDataTypeAccess().getObjectKeyword_2());\n \t\t\n\n }\n break;\n case 4 :\n // InternalMyDsl.g:5133:3: kw= 'Number'\n {\n kw=(Token)match(input,103,FOLLOW_2); \n\n \t\t\tcurrent.merge(kw);\n \t\t\tnewLeafNode(kw, grammarAccess.getDataTypeAccess().getNumberKeyword_3());\n \t\t\n\n }\n break;\n case 5 :\n // InternalMyDsl.g:5139:3: kw= 'null'\n {\n kw=(Token)match(input,104,FOLLOW_2); \n\n \t\t\tcurrent.merge(kw);\n \t\t\tnewLeafNode(kw, grammarAccess.getDataTypeAccess().getNullKeyword_4());\n \t\t\n\n }\n break;\n case 6 :\n // InternalMyDsl.g:5145:3: kw= 'Boolean'\n {\n kw=(Token)match(input,105,FOLLOW_2); \n\n \t\t\tcurrent.merge(kw);\n \t\t\tnewLeafNode(kw, grammarAccess.getDataTypeAccess().getBooleanKeyword_5());\n \t\t\n\n }\n break;\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final Boolean entryRuleDatatypes() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleDatatypes = null;\n\n\n try {\n // PsiInternalFormatterTestLanguage.g:1182:51: (iv_ruleDatatypes= ruleDatatypes EOF )\n // PsiInternalFormatterTestLanguage.g:1183:2: iv_ruleDatatypes= ruleDatatypes EOF\n {\n markComposite(elementTypeProvider.getDatatypesElementType()); \n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleDatatypes=ruleDatatypes();\n\n state._fsp--;\n\n current =iv_ruleDatatypes; \n match(input,EOF,FollowSets000.FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final Boolean ruleDatatype() throws RecognitionException {\n Boolean current = false;\n\n Token kw=null;\n Token this_INT_1=null;\n\n try {\n // PsiInternalUnassignedTextTestLanguage.g:305:1: ( (kw= 'str' | this_INT_1= RULE_INT | ruleDatatype2 ) )\n // PsiInternalUnassignedTextTestLanguage.g:306:2: (kw= 'str' | this_INT_1= RULE_INT | ruleDatatype2 )\n {\n // PsiInternalUnassignedTextTestLanguage.g:306:2: (kw= 'str' | this_INT_1= RULE_INT | ruleDatatype2 )\n int alt2=3;\n switch ( input.LA(1) ) {\n case 18:\n {\n alt2=1;\n }\n break;\n case RULE_INT:\n {\n alt2=2;\n }\n break;\n case RULE_STRING:\n {\n alt2=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 2, 0, input);\n\n throw nvae;\n }\n\n switch (alt2) {\n case 1 :\n // PsiInternalUnassignedTextTestLanguage.g:307:3: kw= 'str'\n {\n\n \t\t\tmarkLeaf(elementTypeProvider.getDatatype_StrKeyword_0ElementType());\n \t\t\n kw=(Token)match(input,18,FollowSets000.FOLLOW_2); \n\n \t\t\tdoneLeaf(kw);\n \t\t\n\n }\n break;\n case 2 :\n // PsiInternalUnassignedTextTestLanguage.g:315:3: this_INT_1= RULE_INT\n {\n\n \t\t\tmarkLeaf(elementTypeProvider.getDatatype_INTTerminalRuleCall_1ElementType());\n \t\t\n this_INT_1=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_2); \n\n \t\t\tdoneLeaf(this_INT_1);\n \t\t\n\n }\n break;\n case 3 :\n // PsiInternalUnassignedTextTestLanguage.g:323:3: ruleDatatype2\n {\n\n \t\t\tmarkComposite(elementTypeProvider.getDatatype_Datatype2ParserRuleCall_2ElementType());\n \t\t\n pushFollow(FollowSets000.FOLLOW_2);\n ruleDatatype2();\n\n state._fsp--;\n\n\n \t\t\tdoneComposite();\n \t\t\n\n }\n break;\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final EObject ruleBooleanDataType() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4501:28: ( (otherlv_0= 'bool' () ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4502:1: (otherlv_0= 'bool' () )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4502:1: (otherlv_0= 'bool' () )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4502:3: otherlv_0= 'bool' ()\n {\n otherlv_0=(Token)match(input,71,FOLLOW_71_in_ruleBooleanDataType10236); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getBooleanDataTypeAccess().getBoolKeyword_0());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4506:1: ()\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4507:5: \n {\n\n current = forceCreateModelElement(\n grammarAccess.getBooleanDataTypeAccess().getBooleanDataTypeAction_1(),\n current);\n \n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final Boolean entryRuleDatatype() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleDatatype = null;\n\n\n try {\n // PsiInternalUnassignedTextTestLanguage.g:297:50: (iv_ruleDatatype= ruleDatatype EOF )\n // PsiInternalUnassignedTextTestLanguage.g:298:2: iv_ruleDatatype= ruleDatatype EOF\n {\n markComposite(elementTypeProvider.getDatatypeElementType()); \n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleDatatype=ruleDatatype();\n\n state._fsp--;\n\n current =iv_ruleDatatype; \n match(input,EOF,FollowSets000.FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final Boolean entryRuleDataTypeExpression() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleDataTypeExpression = null;\n\n\n try {\n // PsiInternalBug296889ExTestLanguage.g:309:60: (iv_ruleDataTypeExpression= ruleDataTypeExpression EOF )\n // PsiInternalBug296889ExTestLanguage.g:310:2: iv_ruleDataTypeExpression= ruleDataTypeExpression EOF\n {\n if ( state.backtracking==0 ) {\n markComposite(elementTypeProvider.getDataTypeExpressionElementType()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleDataTypeExpression=ruleDataTypeExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleDataTypeExpression; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final Boolean entryRuleDatatypeRule() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleDatatypeRule = null;\n\n\n try {\n // PsiInternalUnassignedTextTestLanguage.g:252:54: (iv_ruleDatatypeRule= ruleDatatypeRule EOF )\n // PsiInternalUnassignedTextTestLanguage.g:253:2: iv_ruleDatatypeRule= ruleDatatypeRule EOF\n {\n markComposite(elementTypeProvider.getDatatypeRuleElementType()); \n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleDatatypeRule=ruleDatatypeRule();\n\n state._fsp--;\n\n current =iv_ruleDatatypeRule; \n match(input,EOF,FollowSets000.FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final Boolean entryRuleDatatype2() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleDatatype2 = null;\n\n\n try {\n // PsiInternalUnassignedTextTestLanguage.g:334:51: (iv_ruleDatatype2= ruleDatatype2 EOF )\n // PsiInternalUnassignedTextTestLanguage.g:335:2: iv_ruleDatatype2= ruleDatatype2 EOF\n {\n markComposite(elementTypeProvider.getDatatype2ElementType()); \n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleDatatype2=ruleDatatype2();\n\n state._fsp--;\n\n current =iv_ruleDatatype2; \n match(input,EOF,FollowSets000.FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final EObject entryRuleBooleanDataType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleBooleanDataType = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4490:2: (iv_ruleBooleanDataType= ruleBooleanDataType EOF )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4491:2: iv_ruleBooleanDataType= ruleBooleanDataType EOF\n {\n newCompositeNode(grammarAccess.getBooleanDataTypeRule()); \n pushFollow(FOLLOW_ruleBooleanDataType_in_entryRuleBooleanDataType10189);\n iv_ruleBooleanDataType=ruleBooleanDataType();\n\n state._fsp--;\n\n current =iv_ruleBooleanDataType; \n match(input,EOF,FOLLOW_EOF_in_entryRuleBooleanDataType10199); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final Boolean ruleTestLinewrap() throws RecognitionException {\n Boolean current = false;\n\n Token otherlv_1=null;\n Boolean lv_items_2_0 = null;\n\n\n try {\n // PsiInternalFormatterTestLanguage.g:587:1: ( ( () otherlv_1= 'linewrap' ( (lv_items_2_0= ruleLine ) )* ) )\n // PsiInternalFormatterTestLanguage.g:588:2: ( () otherlv_1= 'linewrap' ( (lv_items_2_0= ruleLine ) )* )\n {\n // PsiInternalFormatterTestLanguage.g:588:2: ( () otherlv_1= 'linewrap' ( (lv_items_2_0= ruleLine ) )* )\n // PsiInternalFormatterTestLanguage.g:589:3: () otherlv_1= 'linewrap' ( (lv_items_2_0= ruleLine ) )*\n {\n // PsiInternalFormatterTestLanguage.g:589:3: ()\n // PsiInternalFormatterTestLanguage.g:590:4: \n {\n\n \t\t\t\tprecedeComposite(elementTypeProvider.getTestLinewrap_TestLinewrapAction_0ElementType());\n \t\t\t\tdoneComposite();\n \t\t\t\tassociateWithSemanticElement();\n \t\t\t\n\n }\n\n\n \t\t\tmarkLeaf(elementTypeProvider.getTestLinewrap_LinewrapKeyword_1ElementType());\n \t\t\n otherlv_1=(Token)match(input,24,FollowSets000.FOLLOW_16); \n\n \t\t\tdoneLeaf(otherlv_1);\n \t\t\n // PsiInternalFormatterTestLanguage.g:603:3: ( (lv_items_2_0= ruleLine ) )*\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( (LA8_0==RULE_ID||LA8_0==19||LA8_0==23||LA8_0==29||(LA8_0>=31 && LA8_0<=33)||LA8_0==37) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // PsiInternalFormatterTestLanguage.g:604:4: (lv_items_2_0= ruleLine )\n \t {\n \t // PsiInternalFormatterTestLanguage.g:604:4: (lv_items_2_0= ruleLine )\n \t // PsiInternalFormatterTestLanguage.g:605:5: lv_items_2_0= ruleLine\n \t {\n\n \t \t\t\t\t\tmarkComposite(elementTypeProvider.getTestLinewrap_ItemsLineParserRuleCall_2_0ElementType());\n \t \t\t\t\t\n \t pushFollow(FollowSets000.FOLLOW_16);\n \t lv_items_2_0=ruleLine();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\tdoneComposite();\n \t \t\t\t\t\tif(!current) {\n \t \t\t\t\t\t\tassociateWithSemanticElement();\n \t \t\t\t\t\t\tcurrent = true;\n \t \t\t\t\t\t}\n \t \t\t\t\t\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop8;\n }\n } while (true);\n\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "public final String entryRuleDataType() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleDataType = null;\n\n\n try {\n // InternalMyDsl.g:5100:48: (iv_ruleDataType= ruleDataType EOF )\n // InternalMyDsl.g:5101:2: iv_ruleDataType= ruleDataType EOF\n {\n newCompositeNode(grammarAccess.getDataTypeRule()); \n pushFollow(FOLLOW_1);\n iv_ruleDataType=ruleDataType();\n\n state._fsp--;\n\n current =iv_ruleDataType.getText(); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final Boolean entryRuleTestLinewrap() throws RecognitionException {\n Boolean current = false;\n\n Boolean iv_ruleTestLinewrap = null;\n\n\n try {\n // PsiInternalFormatterTestLanguage.g:579:54: (iv_ruleTestLinewrap= ruleTestLinewrap EOF )\n // PsiInternalFormatterTestLanguage.g:580:2: iv_ruleTestLinewrap= ruleTestLinewrap EOF\n {\n markComposite(elementTypeProvider.getTestLinewrapElementType()); \n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleTestLinewrap=ruleTestLinewrap();\n\n state._fsp--;\n\n current =iv_ruleTestLinewrap; \n match(input,EOF,FollowSets000.FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The test sends a get all networks (GET) request, the JSON response having a key and name for each network in the list.
@Test public void testGetNetworksJSON() throws Exception { // persist two new networks Network network1 = testDataFactory.newPersistedNetwork(); assertNotNull(network1.getKey()); Network network2 = testDataFactory.newPersistedNetwork(); assertNotNull(network2.getKey()); // construct request uri String uri = "/registry/network.json"; // send GET request with no credentials ResultActions actions = requestTestFixture.getRequest(uri).andExpect(status().is2xxSuccessful()); // JSON array expected, with single entry List<Network> response = requestTestFixture.extractJsonResponse(actions, new TypeReference<List<Network>>() {}); assertEquals(2, response.size()); assertNotNull(response.get(0).getKey()); assertNull(response.get(0).getTitle()); assertNotNull(response.get(1).getKey()); assertNull(response.get(1).getTitle()); }
[ "@Override\n @GET\n @Path(\"/networks\")\n @Produces(\"application/json\")\n public Response getNetworks() {\n String json = String.format(\"Provider %d cluster %d networks.\", provider.getProviderId(), cluster.getClusterId());\n return Response.ok(json).build();\n }", "@GET\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response getServiceNetworks() {\n log.trace(MESSAGE + \"GET\");\n\n Set<ServiceNetwork> snets = adminService.serviceNetworks();\n return ok(encodeArray(ServiceNetwork.class, SERVICE_NETWORKS, snets)).build();\n }", "@GET(\"smartload/networks\")\n Call<GetAllNetworksResponse> requestSmartCallGetAllNetworks();", "public Iterator getNetworkList(){\n NeutronTest nt=new NeutronTest(this.idsEndpoint,this.tenantName,this.userName,this.password,this.region);\n Networks ns=nt.listNetworks();\n Iterator<Network> itNet=ns.iterator();\n return itNet;\n }", "ListNetworksResult listNetworks(ListNetworksRequest listNetworksRequest);", "LinkedList<Network> getNetworks();", "java.util.List<com.google.cloud.baremetalsolution.v2.NetworkConfig> getNetworksList();", "GetNetworkResult getNetwork(GetNetworkRequest getNetworkRequest);", "@RequestMapping(\n \t\tvalue=\"/api/v1/lustre/networkAllStop\"\n \t\t,method= {RequestMethod.GET,RequestMethod.POST}\n \t\t,consumes=\"application/json\"\n \t\t,produces=\"application/json\"\n \t\t)\n public @ResponseBody List<Map<String, Object>> networkAllStop(@RequestBody List<Map<String, Object>> list){\n \tList<Map<String, Object>> result = new ArrayList<>();\n \t\n \tfor (Map<String, Object> node : list) {\n \t\tLustreNodesVO search_node = new LustreNodesVO();\n \t\tMap<String, Object> tmp_map = new HashMap<>();\n \t\t\n \t\tString host_name = (String) node.get(\"host_name\");\n \t\tString node_type = (String) node.get(\"node_type\");\n \t\t\n \tsearch_node.setHost_name(host_name);\n \tsearch_node.setNode_type(node_type);\n \t\n \ttry {\n \t\tString radom_key = IdGeneration.generateId(16);\n \t\t\tasyncTaskLustreManager.networkStop(search_node,radom_key);\n \t\t\ttmp_map.put(\"data\", radom_key);\n \t\t\ttmp_map.put(\"status\", true);\n \t\t} catch (TaskRejectedException e) {\n \t\t\ttmp_map.put(\"status\", false);\n \t\t\ttmp_map.put(\"data\", e.getMessage());\n \t\t}\n \tresult.add(tmp_map);\n\t\t}\n \t\n \treturn result;\n }", "@Test\n public void shouldListNetworks() {\n assertFalse(NetworkResolver.getParameters().isEmpty());\n assertFalse(NetworkResolver.getNames().isEmpty());\n assertFalse(NetworkResolver.getCodes().isEmpty());\n }", "public List<NetworkCallITable> getAllNetworkInformation() {\n return daoInterface.getAllNetworkInformation();\n\n }", "public List<SosNetwork> getNetworks(){\n\t\treturn networks;\n\t}", "public static void listNetworksCommand()\n \t{\n \t\tCell cell = WindowFrame.getCurrentCell();\n \t\tif (cell == null) return;\n \t\tNetlist netlist = cell.getUserNetlist();\n \t\tint total = 0;\n \t\tfor(Iterator it = netlist.getNetworks(); it.hasNext(); )\n \t\t{\n \t\t\tNetwork net = (Network)it.next();\n \t\t\tString netName = net.describe();\n \t\t\tif (netName.length() == 0) continue;\n \t\t\tStringBuffer infstr = new StringBuffer();\n \t\t\tinfstr.append(\"'\" + netName + \"'\");\n //\t\t\tif (net->buswidth > 1)\n //\t\t\t{\n //\t\t\t\tformatinfstr(infstr, _(\" (bus with %d signals)\"), net->buswidth);\n //\t\t\t}\n \t\t\tboolean connected = false;\n \t\t\tfor(Iterator aIt = net.getArcs(); aIt.hasNext(); )\n \t\t\t{\n \t\t\t\tArcInst ai = (ArcInst)aIt.next();\n \t\t\t\tif (!connected)\n \t\t\t\t{\n \t\t\t\t\tconnected = true;\n \t\t\t\t\tinfstr.append(\", on arcs:\");\n \t\t\t\t}\n \t\t\t\tinfstr.append(\" \" + ai.describe());\n \t\t\t}\n \n \t\t\tboolean exported = false;\n \t\t\tfor(Iterator eIt = net.getExports(); eIt.hasNext(); )\n \t\t\t{\n \t\t\t\tExport pp = (Export)eIt.next();\n \t\t\t\tif (!exported)\n \t\t\t\t{\n \t\t\t\t\texported = true;\n \t\t\t\t\tinfstr.append(\", with exports:\");\n \t\t\t\t}\n \t\t\t\tinfstr.append(\" \" + pp.getName());\n \t\t\t}\n \t\t\tSystem.out.println(infstr.toString());\n \t\t\ttotal++;\n \t\t}\n \t\tif (total == 0) System.out.println(\"There are no networks in this cell\");\n \t}", "private void testGetChainRequest() throws TestFailed\n {\n for (int c = 0; c < 2; c++)\n {\n int chain_id = CHAIN_IDS[c];\n\n GetChainRequest request = new GetChainRequest(chain_id);\n\n for (int i = 0; i < nodes.size(); i++) {\n int port = nodes.get(i);\n String uri = HOST_URI + port + GET_CHAIN_URI;\n\n GetChainReply reply;\n try\n {\n reply = client.post(uri, request, GetChainReply.class);\n\n if (reply == null) throw new Exception();\n }\n catch (Exception ex)\n {\n throw new TestFailed(\"GetBlockChain failed: \" +\n \"No response or incorrect format.\");\n }\n\n if (reply.getChainId() != chain_id)\n {\n throw new TestFailed(\"GetBlockChain failed: \" +\n \"Incorrect chain_id.\");\n }\n if (reply.getChainLength() != reply.getBlocks().size())\n {\n throw new TestFailed(\"GetBlockChain failed: \" +\n \"Unmatched chain length.\");\n }\n }\n }\n }", "@Test\r\n\tpublic void testGetDNSList(){\r\n\t\tList<String> lst = new ArrayList<String>();\r\n\t\tlst = dnsService.getAllDNS();\r\n\t\tSystem.out.println(\"==>dns list:\");\r\n\t\tSystem.out.println(JSON.toJSONString(lst));\r\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/networks/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Network> readNetwork(\n @Path(\"name\") String name);", "INetworkCollection getNetworks();", "public List<Network> getNetworks() throws IOException {\n return getNetworks(GetNetworksParams.create());\n }", "Map<String, String> getNetworkServiceURLs();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
&x60;nonResourceURLs&x60; is a set of url prefixes that a user should have access to and may not be empty. For example: \"/healthz\" is legal \"/hea\" is illegal \"/hea\" is legal but matches nothing \"/hea/_\" also matches nothing \"/healthz/_\" matches all percomponent health checks. \"\" matches all nonresource urls. if it is present, it must be the only entry. Required.
@JsonProperty("nonResourceURLs") @NotNull public List<String> getNonResourceURLs() { return nonResourceURLs; }
[ "@Test\n public void testRemainingResourceStringValid() {\n Matcher mtch = filter.getMatcher(FULL_URI);\n\n filter.isResourceAccess(mtch);\n\n assertEquals(\"resource string differs\", REMAINING_RES_STRING, filter.getRootResourceString(mtch));\n }", "public int getNonResourceUrlsCount() {\n return nonResourceUrls_.size();\n }", "protected boolean allowed(String value) {\r\n\t\tfor (String disallowed : disallow) {\r\n\t\t\tif (value.startsWith(baseUrl + disallowed)\r\n\t\t\t\t\t|| value.startsWith(disallowed)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public int getNonResourceUrlsCount() {\n return nonResourceUrls_.size();\n }", "@Test\n public void testValidator276() {\n UrlValidator validator = new UrlValidator();\n\n assertTrue(\"http://apache.org/ should be allowed by default\",\n validator.isValid(\"http://www.apache.org/test/index.html\"));\n\n assertFalse(\"file:///c:/ shouldn't be allowed by default\",\n validator.isValid(\"file:///C:/some.file\"));\n\n assertFalse(\"file:///c:\\\\ shouldn't be allowed by default\",\n validator.isValid(\"file:///C:\\\\some.file\"));\n\n assertFalse(\"file:///etc/ shouldn't be allowed by default\",\n validator.isValid(\"file:///etc/hosts\"));\n\n assertFalse(\"file://localhost/etc/ shouldn't be allowed by default\",\n validator.isValid(\"file://localhost/etc/hosts\"));\n\n assertFalse(\"file://localhost/c:/ shouldn't be allowed by default\",\n validator.isValid(\"file://localhost/c:/some.file\"));\n\n // Turn it on, and check\n // Note - we need to enable local urls when working with file:\n validator = new UrlValidator(new String[] {\"http\", \"file\"}, UrlValidator.ALLOW_LOCAL_URLS);\n\n assertTrue(\"http://apache.org/ should be allowed by default\",\n validator.isValid(\"http://www.apache.org/test/index.html\"));\n\n assertTrue(\"file:///c:/ should now be allowed\",\n validator.isValid(\"file:///C:/some.file\"));\n\n assertFalse(\"file:///c:\\\\ should not be allowed\", // Only allow forward slashes\n validator.isValid(\"file:///C:\\\\some.file\"));\n\n assertTrue(\"file:///etc/ should now be allowed\",\n validator.isValid(\"file:///etc/hosts\"));\n\n assertTrue(\"file://localhost/etc/ should now be allowed\",\n validator.isValid(\"file://localhost/etc/hosts\"));\n\n assertTrue(\"file://localhost/c:/ should now be allowed\",\n validator.isValid(\"file://localhost/c:/some.file\"));\n\n // These are never valid\n assertFalse(\"file://c:/ shouldn't ever be allowed, needs file:///c:/\",\n validator.isValid(\"file://C:/some.file\"));\n\n assertFalse(\"file://c:\\\\ shouldn't ever be allowed, needs file:///c:/\",\n validator.isValid(\"file://C:\\\\some.file\"));\n }", "@Test(priority = 10)\n\tpublic void testGetAllClientsBadUrl() {\n\t\tResponse response = given().header(\"Authorization\", token).when().get(URL + \"/notAURL/\").then().extract().response();\n\n\t\tassertTrue(response.statusCode() == 404);\n\t}", "@Test\n public void testRemainingResourceStringValidDeepString() {\n Matcher mtch = filter.getMatcher(FULL_URI + \"/something/very/deep/nested\");\n\n filter.isResourceAccess(mtch);\n\n assertEquals(\"resource string differs\", REMAINING_RES_STRING, filter.getRootResourceString(mtch));\n }", "java.util.List<java.lang.String>\n getBadUrlList();", "public void testIllegalReadableContentUrls()\n {\n ContentStore store = getStore();\n checkIllegalReadContentUrl(store, \"://bogus\");\n checkIllegalReadContentUrl(store, \"bogus://\");\n checkIllegalReadContentUrl(store, \"bogus://bogus\");\n }", "protected String[] getRLSLRCIgnoreURLs( Properties properties ) {\n String urls = properties.getProperty( this.LRC_IGNORE_KEY,\n null );\n if ( urls != null ) {\n String[] urllist = urls.split( \",\" );\n return urllist;\n } else {\n return null;\n }\n }", "private boolean allRest(List<String> strings) {\r\n for (String string : strings) {\r\n if (!string.equals(\"rest\")) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Override\n\tpublic String[] getAuthorizedUrlPatterns() {\n\t\treturn null;\n\t}", "@Override\n public boolean validate(String str) {\n\n if (Utils.isEmpty(str)) {\n return false;\n }\n\n // Assuming str is relative url\n if (str.startsWith(\"/\")) {\n try {\n URL url = new URL(\"http://www.stub.com\" + str);\n if (url.getQuery() != null) {\n for (String word : keyWords) {\n Map<String, String> params = getQueryParams(url.getQuery());\n if (params.containsKey(word)) {\n resource = str;\n return true;\n }\n }\n }\n } catch (MalformedURLException ignored) {\n return false;\n }\n }\n\n // Or plain 'get/update/etc' resources\n if (str.chars().allMatch(Character::isLetter)) {\n for (String keyWord : keyWords) {\n if (str.startsWith(keyWord)) {\n resource = str;\n return true;\n }\n }\n }\n\n return false;\n }", "@Test\n public void testInvalidS3Prefixes() throws GenieException {\n final String[] invalidPrefixes = new String[]{ \"\", \" \", \"s3/\", \"s3//\", \"s3:/\", \"s3x:/\", \"foo://\", \"file://\", \"http://\" };\n for (final String invalidPrefix : invalidPrefixes) {\n final String path = invalidPrefix + \"bucket/key\";\n Assert.assertFalse((\"Passed validation: \" + path), this.s3FileTransfer.isValid(path));\n boolean genieException = false;\n try {\n this.s3FileTransfer.getS3Uri(path);\n } catch (GenieBadRequestException e) {\n genieException = true;\n } finally {\n Assert.assertTrue((\"Parsed without error: \" + path), genieException);\n }\n }\n }", "@Override\n\tpublic String[] getRequestFilterIgnoreUrlPatterns() {\n\t\treturn aryIgnoreUrl;\n\t}", "private Set<String> getIgnoredResourceNames()\n \t{\n \t\tSet<String> ignored = new HashSet<String>(1);\n \t\tignored.add(IGNORED_TEMPLATE_FILE_NAME);\n \t\treturn ignored;\n \t}", "@Test\r\n\t@RunAsClient\r\n\tpublic void test_invalidUrl() {\r\n\t\tfinal String[] suffixes = {\r\n\t\t\t\t\"iframe.htm\",\r\n\t\t\t\t\"iframe\", \r\n\t\t\t\t\"IFRAME.HTML\", \r\n\t\t\t\t\"IFRAME\", \r\n\t\t\t\t\"iframe.HTML\", \r\n\t\t\t\t\"iframe.xml\", \r\n\t\t\t\t\"iframe-/.html\"\r\n\t\t};\r\n\r\n\t\tfor (String suffix : suffixes) {\r\n\t\t\ttry (ClosableResponse res = get(target().path(suffix))) {\r\n\t\t\t\tverify404(suffix, res);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void testArticleDoubleUrlsWithPrefixes() throws Exception {\n Iterator<ArticleFiles> artIter = getArticleIteratorAfterSimCrawl(au, \"article/123/456\");\n Pattern pat = getPattern((SubTreeArticleIterator) artIter);\n\n // issue\n assertNotMatchesRE(pat,\"https://www.foo.com/index.php/test/issue/view/99\");\n // wont exist\n assertMatchesRE(pat,\"https://www.foo.com/index.php/test/article/view/99/100\");\n // abstract, wont exist\n assertNotMatchesRE(pat,\"https://www.foo.com/index.php/test/article/view/99\");\n // an article view but not an abstract\n assertMatchesRE(pat,\"https://www.foo.com/index.php/test/article/view/99/22\");\n // probably pdf\n assertNotMatchesRE(pat,\"https://www.foo.com/index.php/test/article/download/99/22\");\n }", "public Urls getNotApprovedUrls() {\n\t\tPropertySelector propertySelector = new PropertySelector(\"approved\");\n\t\tpropertySelector.defineEqual(Boolean.FALSE);\n\t\treturn getUrls(propertySelector);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if at results update panel, check for selection and go to update panel
@Override public void actionPerformed(ActionEvent event){ if (state == State.RESULTS){ if (resultsTable.getSelectedRow() > -1){ selectedId = (int) tableModel.getValueAt(resultsTable.getSelectedRow(), 0); selectedMediaType = (String) tableModel.getValueAt(resultsTable.getSelectedRow(), 1); String updatedTitle = (String) tableModel.getValueAt(resultsTable.getSelectedRow(), 2); String updatedArtist = (String) tableModel.getValueAt(resultsTable.getSelectedRow(), 3); updateTitleField.setText(updatedTitle); updateArtistField.setText(updatedArtist); hideAllComponents(); updateButton.setVisible(true); cancelButton.setVisible(true); updatePanel.setVisible(true); state = State.UPDATE; } else { resultsMessage.setText(" Please select an item to update."); } } // if at update panel, send UPDATE request to controller else { System.out.println("update button pressed"); currentCommand = getUpdateInfo(); controller.requestModelUpdate(currentCommand); } }
[ "@Override\r\n\tpublic void resultsUpdated() {\r\n\t\tmLayout.hideText();\r\n\t\t\r\n\t\tif(mModel.getResults().size() == 1){\r\n\t\t\tmModel.selectPerson(mModel.getResults().get(0));\r\n\t\t\tmController.getProfilePicture(mModel.getResults().get(0).sciper);\r\n\t\t\tmDialog = new PersonDetailsDialog(this, mModel.getSelectedPerson());\r\n\t\t\tmDialog.show();\r\n\t\t}else\r\n\t\t\tstartActivity(new Intent(getApplicationContext(), DirectoryResultListView.class));\r\n\t\t\r\n\t}", "public void triggerSearchResultFirstRowSelect() {\r\n clickLink(Page.INPUT_SEARCH_RESULT_FIRST_ROW_SELECT);\r\n }", "protected void switchToResultPage() {\r\n IFormPage resultPage = currentEditor.findPage(AnalysisEditor.RESULT_PAGE);\r\n if (resultPage != null && !resultPage.isActive()) {\r\n IFormPage activePageInstance = currentEditor.getActivePageInstance();\r\n if (activePageInstance.canLeaveThePage()) {\r\n currentEditor.setActivePage(AnalysisEditor.RESULT_PAGE);\r\n }\r\n }\r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif(arg0.getActionCommand() == \"Submit selection\"){\n\t\t\tuserChoices.add(fpList.getFlightPlansList(modeLocal).get((int) flightPlanSpinner.getValue() - 1));\n\t\t\t// enter confirmation page if no return flight, otherwise call self?\n\t\t\tif(!isReturn && hasReturn){\n\t\t\t\tuserParams.SetReturnParams(userParams); // convert to return params\n\t\t\t\tnew SearchResultsGui(fpListArr, userChoices, true, 0, userParams);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew ConfirmationGui(userChoices);\n\t\t\t}\n\t\t\tdispose();\n\t\t}\n\t\telse if(arg0.getActionCommand() == \"Sort by Price\"){\n\t\t\tdispose();\n\t\t\tif(modeLocal == SORT_BY_PRICE_DESCENDING){\n\t\t\t\tmodeLocal = SORT_BY_PRICE_ASCENDING;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmodeLocal = SORT_BY_PRICE_DESCENDING;\n\t\t\t}\n\t\t\tnew SearchResultsGui(fpListArr, userChoices, isReturn, modeLocal, userParams);\n\t\t}\n\t\telse if(arg0.getActionCommand() == \"Sort by Time\"){\n\t\t\tif(modeLocal == SORT_BY_TIME_DESCENDING){\n\t\t\t\tmodeLocal = SORT_BY_TIME_ASCENDING;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmodeLocal = SORT_BY_TIME_DESCENDING;\n\t\t\t}\n\t\t\tnew SearchResultsGui(fpListArr, userChoices, isReturn, modeLocal, userParams);\n\t\t\tdispose();\n\t\t}\n\t}", "public void selectReps() {\n // this sets the values of the top table to the infromation entered on tab 1\n missing.setValueAt(searchName, 0, 0);\n missing.setValueAt(enterPeriods, 0, 1);\n missing.setValueAt(enterDate, 0, 2);\n\n int buttonNum = Integer.parseInt(getSelectedButtonText(group1));\n\n //--------------------------------------------------------------//\n Object selection = \" \";\n Object duty = \" \";\n\n\n if (buttonNum == 1) {\n selection = storeName.get(0);\n duty = storeDuty.get(0);\n\n } else if (buttonNum == 2) {\n\n selection = storeName.get(1);\n duty = storeDuty.get(1);\n\n } else if (buttonNum == 3) {\n\n selection = storeName.get(2);\n duty = storeDuty.get(2);\n\n } else if (buttonNum == 4) {\n\n selection = storeName.get(3);\n duty = storeDuty.get(3);\n\n } else {\n selection = \" \";\n duty = \" \";\n\n }\n selections.setValueAt(selection, 0, 0);\n selections.setValueAt(duty, 0, 1);\n selections.setValueAt(enterDate, 0, 2);\n\n }", "public void showSearchResultScreen(){\r\n this.Inp.setVisible(false);\r\n this.results.setVisible(true);\r\n }", "private void actionSwitchSelect()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleSelectOn)\r\n\t\t{\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchSelectOn();\r\n\r\n\t\t\t//---- If we can select sample, we can not move it\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t}", "public void gotoNextResultsTab()\n \t{\n \t\tfinal int tabCount = _tabbedExecutionsPanel.getTabCount();\n \t\tif (tabCount > 1)\n \t\t{\n \t\t\tint nextTabIdx = _tabbedExecutionsPanel.getSelectedIndex() + 1;\n \t\t\tif (nextTabIdx >= tabCount)\n \t\t\t{\n \t\t\t\tnextTabIdx = 0;\n \t\t\t}\n \t\t\t_tabbedExecutionsPanel.setSelectedIndex(nextTabIdx);\n \t\t}\n \t}", "boolean hasSelectFlg();", "public void showSelection () {\n checkWidget();\n if( selectedIndex != -1 ) {\n showItem( getSelection() );\n }\n }", "void afterMasterSelectionChange();", "public void actionPerformed(ActionEvent event) {\n if(event.getSource() == findcourses){\n Vector<Course> results = new Vector<Course>();\n if(!dept.getSelectedItem().equals(\"...\")){//user has selected a department\n results = courses.coursesInDepartment(dept.getSelectedItem().toString());\n if(!distr.getSelectedItem().equals(\"...\")){//use has also selected a distribution\n// System.out.println(\"Entered Distribution block\");\n results = courses.refineByDistribution(distr.getSelectedItem().toString(), results);\n }\n if(!time.getSelectedItem().equals(\"...\")){//user has also selected a time\n results = timeRefine(results);\n }\n }else if(!distr.getSelectedItem().equals(\"...\")){//user did not select a department, but did select a distr\n results = courses.coursesInDistribution(distr.getSelectedItem().toString());\n if(!time.getSelectedItem().equals(\"...\"))//user also selected a time\n results = timeRefine(results);\n }else if(!time.getSelectedItem().equals(\"...\")){//user only selected a time\n results = timeTranslate(results);\n \n }\n \n found.setListData(results);\n }\n if(event.getSource() == addSched){\n Course selected = (Course)found.getSelectedValue();\n if(selected != null){//check to make sure a course is selected\n sched.addCourse(selected);\n vp.updateDisplay();//updates the viewpanel with the new schedule\n found.clearSelection();\n }\n }\n \n }", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "boolean beforeMasterSelectionChange();", "public void chooseFirstOption() {\n\t\tdriver.findElement(searchResultOpt1).click();\n\t}", "protected boolean verifySelection()\n {\n return true;\n }", "private void resultsConfigButton(){\n if(!resultsOpened){\n resultsUI = new ResultsUI(this, false);\n resultsOpened = true;\n } \n }", "public String search() {\n // Unselect previously selected game if any before showing the search results\n selected = null;\n\n // Invalidate list of search items to trigger re-query.\n searchItems = null;\n \n //System.out.println(\"..................Done\");\n return \"/SearchResults?faces-redirect=true\";\n \n }", "protected void itemSelected()\n {\n mvToOtherBtn.setEnabled(!favPanel.getOrderList().isSelectionEmpty());\n mvToFreqBtn.setEnabled(!otherPanel.getOrderList().isSelectionEmpty());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return our SyncAdapter's IBinder
@Nullable @Override public IBinder onBind(Intent intent) { return syncAdapter.getSyncAdapterBinder(); }
[ "Binding getBinding();", "@Override\n public IBinder onBind(Intent intent) {\n return mAuthenticator.getIBinder();\n }", "private IBinder getNvRAMAgentIBinder() {\n Class<?> clazz = null;\n try {\n clazz = Class.forName(\"android.os.ServiceManager\");\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n Method method_getService = null;\n try {\n method_getService = clazz.getMethod(\"getService\", String.class);\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n\n IBinder iBinder = null;\n try {\n iBinder = (IBinder) method_getService.invoke(null, \"NvRAMAgent\");\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n\n if (iBinder != null) {\n Log.d(\"NvRAMAgent----- \",\"NvRAMAgentIBinder Exist\");\n return iBinder;\n } else {\n Log.d(\"NvRAMAgent----- \",\"NvRAMAgentIBinder Not Exist\");\n return null;\n }\n }", "@Override\n public IBinder onBind(Intent intent) {\n return mIDashboardAuthenticator.getIBinder();\n }", "public CommunicationAdapter<T> getCommunicationAdapter();", "public String getBindingClass()\n {\n return bindingClass;\n }", "public String getBind()\r\n {\r\n return bind;\r\n }", "public String getBindType() {\r\n return bindType;\r\n }", "public BinderImpl() {\n bindings = new HashMap<Class<? extends Annotation>, Binding<T>>();\n }", "public Binding getBinding() {\n return binding;\n }", "interface Binder extends UiBinder<Widget, BrowseJobsViewImpl> {\n }", "ServiceBinding getBinding();", "public static Binder binder(Object module) {\n if (module instanceof AbstractModule) {\n try {\n Method method = AbstractModule.class.getDeclaredMethod(\"binder\");\n if (!method.isAccessible()) {\n method.setAccessible(true);\n }\n return (Binder) method.invoke(module);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n } else {\n throw new IllegalArgumentException(\"Module must be an instance of AbstractModule\");\n }\n }", "String getBind();", "public String getBindingType();", "public VarBindingDef getBinding()\n {\n return binding_;\n }", "public Bind getModelBinding() {\n String bindAttribute = getXFormsAttribute(REPEAT_BIND_ATTRIBUTE);\n if (bindAttribute != null) {\n return (Bind) this.container.lookup(bindAttribute);\n }\n\n return super.getModelBinding();\n }", "public static com.trx.neon.binder.PublicSettingsBinder asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.trx.neon.binder.PublicSettingsBinder))) {\nreturn ((com.trx.neon.binder.PublicSettingsBinder)iin);\n}\nreturn new com.trx.neon.binder.PublicSettingsBinder.Stub.Proxy(obj);\n}", "public BindingContainer getBindings() {\r\n return BindingContext.getCurrent().getCurrentBindingsEntry();\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the objectives that the given user needs to assess.
List<Objective> findAssessorsObjectives(Long userId) throws TalentStudioException;
[ "Receptionist findReceptionistByUser(User user);", "List<Election> searchActiveWithUser(long date, User user);", "private int getRewardPoints(Attraction attraction, User user) {\r\n\t\treturn rewardsCentral.getAttractionRewardPoints(attraction.attractionId, user.getUserId());\r\n\t}", "Set<Authority> getAuthorities(User user);", "public com.cboe.interfaces.application.UserAccessV8 find();", "boolean isSetObjectives();", "public List<UserPrivileges> findUserPrivilegesByUser(User user) {\r\n List<UserPrivileges> userPrivilegesList = null;\r\n try {\r\n\r\n\r\n String sql = \"FROM UserPrivileges u WHERE u.user = :user \";\r\n\r\n Query query = HibernateUtil.getSession().createQuery(sql).setParameter(\"user\", user);\r\n userPrivilegesList = findMany(query);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n return userPrivilegesList;\r\n }", "List<Election> searchMyAvailable(long date, User owner);", "List<Substitute> searchActiveSubstitutionDuties(String userName);", "public List<Objective> getObjectives() {\n return this.tracker.getObjectives();\n }", "List<ChallengeTo> findAllChallengesByUser(int userId);", "List<Election> searchAvailableWithUser(long date, User user);", "private ArrayList<Reward> getRewardsList(User user) {\n ArrayList<Task> userRewardedTasks = new ArrayList<>();\n //finds all accomplished task related with the user\n for(Task task : PrincipalActivity.tasks) {\n if(user.getUserId().equals(task.getAssignedUserId()) && task.getAssociatedRewardId()!= null && task.getIsAccomplished()) {\n userRewardedTasks.add(task);\n }\n }\n ArrayList<Reward> userRewards = new ArrayList<>();\n //if those tasks have a reward it adds the reward to the list of the user rewards\n for(Task task : userRewardedTasks) {\n userRewards.add(rewards.get(task.getAssociatedRewardId()));\n }\n return userRewards;\n }", "List<TrainingsSession> searchByUser(User user) throws PersistenceException;", "public void calculateRewards(User user) {\r\n\t\tList<VisitedLocation> userLocations = user.getVisitedLocations();\r\n\t\tList<Attraction> attractions = gpsUtil.getAttractions();\r\n\r\n\t\t/// V2 ok\r\n\t\tfor (int i = 0; i < userLocations.size(); i++) {\r\n\t\t\tfor (Attraction attraction : attractions) {\r\n\t\t\t\tif (user.getUserRewards().parallelStream()\r\n\t\t\t\t\t\t.filter(r -> r.attraction.attractionName.equals(attraction.attractionName)).count() == 0) {\r\n\t\t\t\t\tif (nearAttraction(userLocations.get(i), attraction)) {\r\n\t\t\t\t\t\tuser.addUserReward(\r\n\t\t\t\t\t\t\t\tnew UserReward(userLocations.get(i), attraction, getRewardPoints(attraction, user)));\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}", "People getObjUser();", "public List<Issue> getUserActiveIssues(User user);", "private void queryStoriesFromUser() {\n ParseQuery<Story> query = ParseQuery.getQuery(Story.class);\n // include objects related to a story\n query.include(Story.KEY_AUTHOR);\n query.include(Story.KEY_ITEM);\n query.include(Story.KEY_LIST);\n query.include(Story.KEY_CATEGORY);\n // where author is current user and order by time created\n query.whereEqualTo(Story.KEY_AUTHOR, user);\n query.orderByDescending(Story.KEY_CREATED_AT);\n query.findInBackground((stories, e) -> {\n mUserStories.clear();\n for (int i = 0; i < stories.size(); i++) {\n Story story = stories.get(i);\n Item item = (Item) story.getItem();\n mUserStories.add(story);\n queryPhotosInStory(story, item);\n }\n\n if (stories.size() == 0) {\n emptyLayout.setVisibility(View.VISIBLE);\n } else {\n emptyLayout.setVisibility(View.GONE);\n }\n });\n }", "List<Resource> getAssociatedResources(PerunSession sess, User user);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cycles through all the PWM inputs between the ranges of start and stops. Start and stop values can be between 000 and 999 but only values up to 255 will work.
public void cyclePWMInputs(String firstThreeBytes, int start, int stop) throws IOException{ System.out.println("PWM Cycle Test Active: "); System.out.println("Starting PWM = " + start + " Ending PWM = " + stop); System.out.println("Cycling through PWM values..."); for(int x=start;x<=stop;x++){ System.out.println("Desired Speed is" + x); this.sendControlWord(firstThreeBytes,x); } }
[ "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n System.out.println(\"ENTER STARTING SPEED AND ENDING SPEED\");\n\n\n int start = scan.nextInt();\n int end = scan.nextInt();\n\n\n for (int i = start; i <= end; ++i) {\n System.out.print(i + \" ,\");\n\n }\n }", "public void setLoopPoints(int start, int stop) {\n\t\tif (start <= 0 || start > stop) {\n\t\t\tloopBegin = 0;\n\t\t} else {\n\t\t\tloopBegin = start;\n\t\t}\n\t\tif (stop <= getMillisecondLength() && stop > start) {\n\t\t\tloopEnd = AudioUtils.millis2BytesFrameAligned(stop, format);\n\t\t} else {\n\t\t\tloopEnd = AudioUtils.millis2BytesFrameAligned(getMillisecondLength(), format);\n\t\t}\n\t}", "void enablePWM(double initialDutyCycle);", "public void range(){\t\n\t\t//set pin value 1\n for(int j=0;j<=temperatureRange;j++){\n\t\t\tsetGpioPin(j, 1);\n\t\t}\n if(temperatureRange!=7){\n \t//set pin value 0\n \tfor(int j=temperatureRange;j<8;j++){\n \t\tsetGpioPin(j, 0);\n \t}\n }\n \n \n\t}", "public Integer[] range(int start, int stop) {\n\n int length = stop - start + 1;\n\n Integer[] numbers = new Integer[length];\n int count = start;\n\n for (int i = 0; i < length ; i++) {\n numbers[i] = count;\n count++;\n }\n\n return numbers;\n }", "public static List<IpMaskPair> rangeToIpMaskPairs(long start, long end)\n\t{\n\t\tArrayList<IpMaskPair> ret = new ArrayList<IpMaskPair>();\n\t\tstart &= 0xffffffffl;\n\t\tend &= 0xffffffffl;\n\t\tif (start < end)\n\t\t\trangeToIpMaskPairs(start, end, ret, 0);\n\t\telse\n\t\t\trangeToIpMaskPairs(end, start, ret, 0);\n\t\treturn ret;\n\t}", "void setPWMRate(double rate);", "private double ComputeTurnAroundRoundRobin(int slice,JTextField[] textBoxes) {\n int waitTime = 0;\n int maxTime = 0;\n int results = textBoxes.length;\n boolean allFinished = false; \n double finalResult = 0;\n Integer[] finishedArr = new Integer[results]; // Using a hash map is probably better but for simplictiy sake we will use the array index as the process id\n Integer[] burstTimeMod = new Integer[results]; // Table used for modifiying the burst times\n Integer[] burstRef = new Integer[results]; // This is used to keep as an easy reference\n int whileItt = 0;\n for (int i = 0; i < textBoxes.length; i++){\n burstTimeMod[i] = Integer.parseInt(textBoxes[i].getText());\n burstRef[i] = Integer.parseInt(textBoxes[i].getText());\n maxTime = maxTime + Integer.parseInt(textBoxes[i].getText());\n } \n \n do{\n if (burstTimeMod[whileItt] > 0){\n int burst = burstTimeMod[whileItt]; // Store ref\n burstTimeMod[whileItt] = burst - slice; // Edit\n if (burstTimeMod[whileItt] == 0){ // 0? Good!\n waitTime = waitTime + slice;\n finishedArr[whileItt] = waitTime;\n }\n else if(burstTimeMod[whileItt] < 0){ // less than 0 subtracts the ref with the slice\n waitTime = waitTime + burst;\n finishedArr[whileItt] = waitTime;\n }else{\n waitTime = waitTime + slice;\n }\n }\n boolean good2Go = true;\n \n for (int i = 0; i < finishedArr.length; i++){\n if (finishedArr[i] == null){\n good2Go = false;\n } \n }\n \n if (good2Go){\n allFinished = true;\n }else{\n whileItt = whileItt + 1;\n if (whileItt > textBoxes.length-1){\n whileItt = 0;\n }\n }\n \n }while(!allFinished);\n \n for (int i = 0; i < finishedArr.length; i++){\n finalResult = finalResult + finishedArr[i];\n }\n \n drawChartRobin(textBoxes,slice,maxTime);\n ComputeWaitTimeRoundRobin(finishedArr, burstRef);\n \n return (finalResult / finishedArr.length);\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint startRange, endRange, stepRange;\r\n\t\t\r\n\t\tSystem.out.print(\"Please enter value for the start of the range: \");\r\n\t\twhile (!input.hasNextInt()) {\r\n\t\t\tSystem.out.println(\"I'm sorry, I need an integer.\");\r\n\t\t\tinput.next();\t\t\t\r\n\t\t\tSystem.out.print(\"Please enter value for the start of the range: \");\r\n\t\t} startRange = input.nextInt();\r\n\t\t\r\n\t\tSystem.out.print(\"Please enter value for the end of the range: \");\r\n\t\twhile (!input.hasNextInt()) {\r\n\t\t\tSystem.out.println(\"I'm sorry, I need an integer.\");\r\n\t\t\tinput.next();\t\t\t\r\n\t\t\tSystem.out.print(\"Please enter value for the end of the range: \");\r\n\t\t} endRange = input.nextInt();\r\n\t\t\r\n\t\tdo {\r\n\t\t\tSystem.out.print(\"Please enter value for the step: \");\r\n\t\t\twhile (!input.hasNextInt()) {\r\n\t\t\t\tSystem.out.println(\"I'm sorry, I need an integer.\");\r\n\t\t\t\tinput.next();\t\t\t\r\n\t\t\t\tSystem.out.print(\"Please enter value for the step: \");\r\n\t\t\t} stepRange = input.nextInt();\t\t\t\r\n\t\t} while(((startRange < endRange) && stepRange < 0) || ((startRange > endRange) && stepRange > 0));\r\n\t\t\r\n\t\tSystem.out.print(\"The sum of the range of the sum is: \");\r\n\t\tSystem.out.println(sumOfArray(rangeOfArray(startRange, endRange, stepRange)));\r\n\t\t\r\n\t\tinput.close();\r\n\t}", "public int[][] FractalMulti(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tMultibrotSet multi = new MultibrotSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\t\t\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = multi.multibrot(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\treturn fractal;\r\n\t\r\n}", "public PiCalculator(Object[] controlVariables, int id, long from, long to) {\n this.controlVariables = controlVariables;\n this.id = id;\n beforeId = id == 0 ? controlVariables.length - 1 : id - 1;\n current = from;\n max = to;\n }", "public int[][] FractalMandel(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tMandelbrotSet man = new MandelbrotSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\t\t\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = man.mandelbrot(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\treturn fractal;\r\n\t\r\n}", "private static void rangeToIpMaskPairs(long start, long end, ArrayList<IpMaskPair> ret, int maskBits)\n\t{\n\t\tif (start == end)\n\t\t{\n\t\t\tret.add(new IpMaskPair(start, 32));\n\t\t\treturn;\n\t\t}\n\n\t\twhile (maskBits < 32 && bit(start, maskBits) == bit(end, maskBits))\n\t\t\tmaskBits++;\n\n\t\tif (start == ipMaskToFirstIp(end, maskBits) && end == ipMaskToLastIp(start, maskBits))\n\t\t{\n\t\t\tret.add(new IpMaskPair(start, maskBits));\n\t\t} else\n\t\t{\n\t\t\trangeToIpMaskPairs(start, ipMaskToLastIp(start, maskBits + 1), ret, maskBits);\n\t\t\trangeToIpMaskPairs(ipMaskToFirstIp(end, maskBits + 1), end, ret, maskBits);\n\t\t}\n\t}", "public double[] simulate() throws IllegalArgumentException {\n /*\n Scanner input = new Scanner(System.in);\n System.out.print(\"Enter the number of In Route busses:\");\n int numInBusses = input.nextInt();\n System.out.print(\"Enter the number of Out Route busses:\");\n int numOutBusses = input.nextInt();\n\n if(numInBusses < 0 || numOutBusses <0)\n throw new IllegalArgumentException(\"Invalid input\");\n System.out.print(\"Enter the minimum group size:\");\n int minGroupSize = input.nextInt();\n System.out.print(\"Enter the maximum group size:\");\n int maxGroupSize = input.nextInt();\n\n if(minGroupSize > maxGroupSize)\n throw new IllegalArgumentException(\"Invalid input\");\n\n System.out.print(\"Enter the maximum capacity of the bus:\");\n int capacity = input.nextInt();\n\n System.out.print(\"Enter the probability of arrival:\");\n double arrivalProb = input.nextDouble();\n\n if(arrivalProb < 0 || arrivalProb > 1)\n throw new IllegalArgumentException(\"Invalid input\");\n System.out.print(\"Enter the duration of the simulation:\");\n int simulationTime = input.nextInt();\n\n if (simulationTime < 0)\n throw new IllegalArgumentException(\"Invalid input\");\n */\n\n int numInBusses = 2;\n int numOutBusses = 2;\n int minGroupSize = 1;\n int maxGroupSize = 5;\n int capacity = 7;\n double arrivalProb = 1;\n int simulationTime = 115;\n\n\n Bus[] inBus = createInBus(numInBusses, capacity);\n Bus[] outBus = createOutBus(numOutBusses, capacity);\n\n int busNumberIn = 0;\n int busNumberOut = 0;\n setRestTimes(inBus);\n setRestTimes(outBus);\n\n int[] counter = {0,0};\n /**\n * The for loop that starts the simulation by calling all the methods listed above\n */\n for(int currentMinute = 1; currentMinute <= simulationTime; currentMinute++) {\n\n System.out.println(\"Minute \" +currentMinute);\n System.out.println(\"----------\");\n createStop(minGroupSize, maxGroupSize, arrivalProb, currentMinute);\n printBusArray(inBus);\n printBusArray(outBus);\n printStops();\n System.out.println();\n dropOff(inBus);\n dropOff(outBus);\n counter = adder(pickUp(inBus, currentMinute), counter);\n counter = adder(pickUp(outBus, currentMinute), counter);\n decreaseTimes(inBus);\n decreaseTimes(outBus);\n\n\n if (currentMinute%20==0 && busNumberIn < inBus.length)\n busNumberIn++;\n if (currentMinute%20==0 && busNumberOut < outBus.length)\n busNumberOut++;\n\n System.out.println();\n }\n\n System.out.printf(\"The average wait time was %.2f\", averageTime(counter));\n System.out.println();\n System.out.printf(counter[1]+ \" passenger groups were served\");\n System.out.println();\n\n return new double[] {averageTime(counter), counter[1]};\n }", "public abstract void setRange(double value, int start, int count);", "public void run() {\n Integer i = start;\n while(i != end) {\n if (isPrime(i)) { // Will there be type issues, since isPrime takes an int?\n // Add i to primes\n i++;\n } else {\n i++;\n }\n }\n }", "public void cleanStops() {\n for(int i = 0; i < 21; i++) {\n toStop[i] = false;\n }\n }", "public void variableLoadTest(int start, int step, int stop){\n this.logParameters();\n resultLogger.log(Level.INFO, \"p \\t Packet latency \\t avg_hops \\t alpha \\t time [s]\");\n double avgHops = 0.0;\n\n boolean maxLatencyReached = false;\n for(int j = start; j <= stop && !maxLatencyReached; j+= step) {\n gui.updateProb(j);\n System.out.println(\"--- Simulation for p = \" + j + \"/\" + precision);\n debugLogger.log(Level.FINER, \"Simulation for p = \" + j + \"/\" + precision);\n\n /* Create CLUSTERED mesh */\n ClusteredMesh mesh = new ClusteredMesh(radix, this.sizeX, this.sizeY, this.sizeZ, numPorts, numVCs, bufferSize, sourceQueueSize, adaptive, flitsPerPacket, j, 1000, hotspots, hotSpotFactor, rentExponent);\n\n /* Simulation initial parameters */\n boolean idle = false;\n int phase = 0;\n int cycle = 0;\n double prevLatency = 1.0;\n int warmup = minWarmupTime;\n\n final long startTime = System.currentTimeMillis();\n\n\n while (!idle) {\n debugLogger.log(Level.FINE, \"/ ---------------------- SIMULATION CYCLE \" + cycle + \" ---------------------- /\");\n /* Simulate all routers */\n mesh.simulateMesh();\n\n /* After minimum warm up time, check if latency of mesh has already converged */\n if (mesh.getNetworkTime() > minWarmupTime && phase == 0 && mesh.getNetworkTime() % 100 == 0) {\n /* Compute packet latency */\n double latency = mesh.calculateAveragePacketLatency();\n\n\n /* Check convergence */\n if ((latency - prevLatency) / latency < convConst) {\n System.out.println(\"Measurement started\");\n mesh.startMeasurement();\n cycle = 0;\n warmup = mesh.getNetworkTime();\n phase = 1;\n }\n prevLatency = latency;\n }\n\n /* STOP CONDITION */\n if(mesh.getNetworkTime() % 500 == 0){\n double latency = mesh.calculateAveragePacketLatency();\n if(latency > 750){\n idle = true;\n System.out.println(\"Latency larger than 750, stopped simulation\");\n maxLatencyReached = true;\n }\n }\n\n\n /* After measurement phase, start drain phase */\n if (mesh.getNetworkTime() > (warmup + measurementTime) && phase == 1) {\n double latency = mesh.calculateAveragePacketLatency();\n System.out.println(\"Drain started, avg packet latency is now: \" + latency );\n phase = 2;\n mesh.startDrain();\n }\n\n if(mesh.getNetworkTime() % 500 == 0 && mesh.getNetworkTime() > (warmup + measurementTime) && mesh.isIdle()){\n idle= true;\n }\n\n if(mesh.getNetworkTime() > 20*measurementTime){\n System.out.println(\"Process stopped because taking too long, might have to check!\");\n idle = true;\n\n }\n\n cycle++;\n\n }\n\n double alpha = (1.0*(mesh.getNetworkTime() - warmup)) / cycle;\n System.out.println(\"alpha: \" + alpha);\n\n\n final long endTime = System.currentTimeMillis();\n long duration = endTime - startTime;\n System.out.println(\"Excecution took \" + duration + \" ms\");\n\n\n double prob = 1.0*j / precision;\n double latency = mesh.calculateAveragePacketLatency();\n avgHops = mesh.calculateAverageHops();\n String msg = prob + \"\\t\" + latency + \"\\t\" + avgHops + \"\\t\" + alpha + \"\\t\" + Math.round(duration/1000);\n resultLogger.log(Level.INFO, msg);\n\n /* Print number of received packets test */\n //mesh.printNumReceivedPackets();\n\n debugLogger.log(Level.INFO, \"/ - - - - - NUMBER OF RECEIVED PACKETS PER CORE - - - - - /\");\n debugLogger.log(Level.INFO, \"PARAMETERS:\");\n debugLogger.log(Level.INFO, \"Radix: \" + this.radix);\n debugLogger.log(Level.INFO, \"prob: \" + prob);\n mesh.logNumReceivedPackets();\n\n\n System.out.println(\"Average hop count: \" + avgHops);\n System.out.println(\"Latency: \" + latency);\n\n }\n\n /* Report average hop count : */\n resultLogger.log(Level.INFO, \"Average hop count : \" + avgHops);\n\n }", "private void getAllTotesCenterTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 6:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds the header necessary for the tenant ID.
private Map<String, String> getTenantHeader(String tenantId) { if (tenantId == null) { throw new IllegalArgumentException("tenantId must not be null"); } return Collections.singletonMap("Hawkular-Tenant", tenantId); }
[ "private Map<String, String> buildHeaders() {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"User-Agent\", \"Tinder/6.9.1 (iPhone; iOS 10.2; Scale/2.00)\");\n headers.put(\"X-Auth-Token\", token);\n headers.put(\"Host\", \"api.gotinder.com\");\n headers.put(\"Authorization\", String.format(\"Token token=\\\"%s\\\"\", token));\n return headers;\n }", "public String createAuthorizationHeader() {\n return Oauth2AuthorizationHeader + this.accessToken;\n }", "public JWSHeader build() {\n\n return new JWSHeader(\n alg, typ, cty, crit,\n jku, jwk, x5u, x5t256, x5c, kid, b64,\n parameters, parsedBase64URL);\n }", "private void generateHeader() {\n\t\tcharset = Charset.forName(encoding);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(\"HTTP/1.1 \" + statusCode + \" \" + statusText + \"\\r\\n\");\n\t\tsb.append(\"Content-Type: \" + mimeType);\n\t\tif (mimeType.startsWith(\"text/\")) {\n\t\t\tsb.append(\"; charset=\" + encoding);\n\t\t}\n\t\tsb.append(\"\\r\\n\");\n\n\t\tif (!outputCookies.isEmpty()) {\n\t\t\tfor (RCCookie cookie : outputCookies) {\n\t\t\t\tsb.append(\"Set-Cookie: \").append(cookie.getName()).append(\"=\").append(cookie.getValue());\n\n\t\t\t\tif (cookie.getDomain() != null) {\n\t\t\t\t\tsb.append(\"; Domain=\").append(cookie.getDomain());\n\t\t\t\t}\n\t\t\t\tif (cookie.getPath() != null) {\n\t\t\t\t\tsb.append(\"; Path=\").append(cookie.getPath());\n\t\t\t\t}\n\t\t\t\tif (cookie.getMaxAge() != null) {\n\t\t\t\t\tsb.append(\"; Max-Age=\").append(cookie.getMaxAge());\n\t\t\t\t}\n\n\t\t\t\tsb.append(\"\\r\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// end of the header\n\t\tsb.append(\"\\r\\n\");\n\n\t\ttry {\n\t\t\toutputStream.write(sb.toString().getBytes(charset));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\theaderGenerated = true;\n\t}", "abstract protected byte[] buildHeaders() throws IOException, RequestException;", "public void copyQuoteHeader() {\n\n\t\tresetRfqSubmission();\n\t\tif (requestQuoteId != null) {\n\t\t\tlong id = Long.parseLong(requestQuoteId);\n\t\t\tQuote requestQuote = quoteSB.findQuoteByPK(id);\n\t\t\tif (requestQuote.getSales() != null) {\n\t\t\t\trfqHeader.setSalesEmployeeNumber(requestQuote.getSales().getEmployeeId());\n\t\t\t\trfqHeader.setSalesEmployeeName(requestQuote.getSales().getName());\n\t\t\t\tif (requestQuote.getSales().getTeam() != null)\n\t\t\t\t\trfqHeader.setTeam(requestQuote.getSales().getTeam().getName());\n\t\t\t}\n\t\t\t// WebQuote 2.2 enhancement : fields changes.\n\t\t\t// rfqHeader.setBmtChecked(requestQuote.getBmtCheckedFlag());\n\t\t\trfqHeader.setDesignInCat(requestQuote.getDesignInCat());\n\t\t\trfqHeader.setEnquirySegment(requestQuote.getEnquirySegment());\n\n\t\t\tif (requestQuote.getSoldToCustomer() != null) {\n\t\t\t\trfqHeader.setSoldToCustomerNumber(requestQuote.getSoldToCustomer().getCustomerNumber());\n\t\t\t\trfqHeader.setSoldToCustomerName(getCustomerFullName(requestQuote.getSoldToCustomer()));\n\t\t\t}\n\t\t\trfqHeader.setCustomerType(requestQuote.getCustomerType());\n\n\t\t\tif (requestQuote.getSoldToCustomerNameChinese() != null\n\t\t\t\t\t&& !StringUtils.isEmpty(requestQuote.getSoldToCustomerNameChinese())) {\n\t\t\t\trfqHeader.setChineseSoldToCustomerName(requestQuote.getSoldToCustomerNameChinese());\n\t\t\t}\n\n\t\t\tif (requestQuote.getEndCustomer() != null) {\n\t\t\t\trfqHeader.setEndCustomerNumber(requestQuote.getEndCustomer().getCustomerNumber());\n\t\t\t\trfqHeader.setEndCustomerName(getCustomerFullName(requestQuote.getEndCustomer()));\n\t\t\t} else if (requestQuote.getEndCustomerName() != null) {\n\t\t\t\trfqHeader.setEndCustomerName(requestQuote.getEndCustomerName());\n\t\t\t}\n\t\t\tif (requestQuote.getShipToCustomer() != null) {\n\t\t\t\trfqHeader.setShipToCustomerNumber(requestQuote.getShipToCustomer().getCustomerNumber());\n\t\t\t\trfqHeader.setShipToCustomerName(getCustomerFullName(requestQuote.getShipToCustomer()));\n\t\t\t} else if (requestQuote.getShipToCustomerName() != null) {\n\t\t\t\trfqHeader.setShipToCustomerName(requestQuote.getShipToCustomerName());\n\t\t\t}\n\n\t\t\trfqHeader.setBizUnit(requestQuote.getBizUnit().getName()); // fix\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// defect\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 69\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// June\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 20140904\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// project\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// quote_matching_logic_enhance\n\n\t\t\trfqHeader.setProjectName(requestQuote.getProjectName());\n\t\t\trfqHeader.setApplication(requestQuote.getApplication());\n\n\t\t\trfqHeader.setDesignLocation(requestQuote.getDesignLocation());\n\t\t\trfqHeader.setDesignRegion(requestQuote.getDesignRegion());\n\t\t\trfqHeader.setMpSchedule(requestQuote.getMpSchedule());\n\t\t\trfqHeader.setPpSchedule(requestQuote.getPpSchedule());\n\t\t\trfqHeader.setYourReference(requestQuote.getYourReference());\n\t\t\trfqHeader.setCopyToCs(requestQuote.getCopyToCS());\n\t\t\t// Material restructure and quote_item delinkage. changed on 10 Apr\n\t\t\t// 2014.\n\t\t\trfqHeader.setCopyToCsName(requestQuote.getCopyToCsName());\n\n\t\t\trfqHeader.setRemarks(requestQuote.getRemarks());\n //fixed by DamonChen@20180102,as will throw a null poiter exception if the requestQuote.getLoaFlag() is null\n\t\t\trfqHeader.setLoa(requestQuote.getLoaFlag()== null?false:requestQuote.getLoaFlag());\n\n\t\t\t// WebQuote 2.2 enhancement : fields changes.\n\t\t\t// rfqHeader.setOrderOnHand(requestQuote.getOrderOnHandFlag());\n\t\t\t// rfqHeader.setBom(requestQuote.getBomFlag());\n\t\t\trfqHeader.setDesignInCat(requestQuote.getDesignInCat());\n\t\t\trfqHeader.setQuoteType(requestQuote.getQuoteType());\n\t\t\t// added by damon@20160719\n\t\t\tif (rfqHeader.getSalesBizUnit() == null) {\n\t\t\t\tUser saleUser = userSB.findByEmployeeIdWithAllRelation(rfqHeader.getSalesEmployeeNumber());\n\t\t\t\tif (saleUser != null) {\n\t\t\t\t\trfqHeader.setSalesBizUnit(saleUser.getDefaultBizUnit());\n\t\t\t\t}\n\t\t\t}\n\t\t\t// INC0155169\n\t\t\tif (requestQuote.getEndCustomer() != null) {\n\t\t\t\trfqHeader.setEndCustomerNumber(requestQuote.getEndCustomer().getCustomerNumber());\n\t\t\t\trfqHeader.setEndCustomerName(requestQuote.getEndCustomer().getCustomerFullName());\n\t\t\t}\n\t\t\t\n\t\t\t//Multi-currency 201810 (whwong)\n\t\t\tif (requestQuote.getQuoteItems().size()>0) rfqHeader.setRfqCurr(requestQuote.getQuoteItems().get(0).getRfqCurr().name());\n\t\t\trfqHeader.setdLinkFlag(requestQuote.isdLinkFlag());\n\t\t\t\n\t\t\tif (isInsideSalesRole || isCSRole || isQCOperation) {\n\t\t\t\tupdateCsForSales();\n\t\t\t}\n\t\t}\n\n\t\t// logger.log(Level.INFO, \"PERFORMANCE END - copyQuoteHeader()\");\n\t}", "protected String buildHeader(String documentType) {\n return (\"<?xml version=\\\"1.0\\\" ?>\" + \n \"\\n<!DOCTYPE \" + \n documentType + \n \" SYSTEM \\\"\" + \n ConocoInformation.MESSAGE_DTD + \n \"\\\">\\n\");\n }", "public Builder setHeaderTableId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n headerTableId_ = value;\n onChanged();\n return this;\n }", "public static void buildHeader(DataBuffer buffer, OutMessage sendMessage, int noOfMessages) {\n if (buffer.getCapacity() < HEADER_SIZE) {\n throw new RuntimeException(\"The buffers should be able to hold the complete header\");\n }\n ByteBuffer byteBuffer = buffer.getByteBuffer();\n // now lets put the content of header in\n byteBuffer.putInt(sendMessage.getSource());\n // the path we are on, if not grouped it will be 0 and ignored\n byteBuffer.putInt(sendMessage.getFlags());\n // the destination id\n byteBuffer.putInt(sendMessage.getPath());\n // we set the number of messages\n byteBuffer.putInt(noOfMessages);\n // lets set the size for 16 for now\n buffer.setSize(HEADER_SIZE);\n }", "public static String getAuthorizationHeader() {\n if (enableOAuth) {\n return \"Bearer \" + oauthAccessToken;\n }\n return getBase64EncodedBasicAuthHeader(userName, password);\n }", "private void buildHeader(boolean compact, Bundle savedInstanceState) {\n accountHeader = new AccountHeaderBuilder()\n .withActivity(this)\n .withHeaderBackground(R.drawable.header_green)\n .withCompactStyle(compact)\n .withProfiles(\n getUserProfilesAndItems() //gets user profiles and other drawer items\n )\n .withOnAccountHeaderListener(new AccountHeader.OnAccountHeaderListener() {\n @Override\n public boolean onProfileChanged(View view, IProfile profile, boolean current) {\n //sample usage of the onProfileChanged listener\n //if the clicked item has the identifier ADD_ACCOUNT add a new profile\n Intent intent = null;\n if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_ADD_ACCOUNT) {\n intent = new Intent(MainActivity.this, AddAccountActivity.class);\n //TODO: Save profile\n //TODO: Create profile drawer item from saved profile and show it in UI\n /*\n IProfile profileNew = new ProfileDrawerItem()\n .withNameShown(true)\n .withName(\"New Profile\")\n .withEmail(\"new@gmail.com\")\n .withIcon(getResources().getDrawable(R.drawable.profile_new));\n\n if (accountHeader.getProfiles() != null) {\n //we know that there are 2 setting elements. set the new profile above them\n accountHeader.addProfile(profileNew, accountHeader.getProfiles().size() - 2);\n } else {\n accountHeader.addProfiles(profileNew);\n }\n */\n } else if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_MANAGE_ACCOUNT) {\n intent = new Intent(MainActivity.this, ManageAccountActivity.class);\n //TODO: update the UI\n }else if(profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_USER) {\n Toast.makeText(sApplicationContext, \"The User\", Toast.LENGTH_SHORT).show();\n SharedPreferences sp = sApplicationContext.getSharedPreferences(PREF_NAME, MODE_PRIVATE);\n String currentUserUUIDString = sp.getString(PREF_CURRENT_USER_UUID, null);\n if(((UserProfile)profile).getId().toString().equalsIgnoreCase(currentUserUUIDString)){\n Toast.makeText(sApplicationContext, \"SAME User\", Toast.LENGTH_SHORT).show();\n //TODO:\n }else{\n Toast.makeText(sApplicationContext, \"Different User\", Toast.LENGTH_SHORT).show();\n //TODO:\n SharedPreferences.Editor spe = sp.edit();\n spe.putString(PREF_CURRENT_USER_UUID, ((UserProfile)profile).getId().toString());\n spe.commit();\n\n UpdateContentUI();\n }\n }\n\n if(intent != null){\n MainActivity.this.startActivity(intent);\n }\n\n //false if you have not consumed the event And it should close the drawer\n return false;\n }\n })\n .withSavedInstance(savedInstanceState)\n .build();\n }", "private AuthorizationHeaderBuilder prepare(HttpRequest request) throws IOException {\n AuthorizationHeaderBuilder builder = AuthorizationHeaderBuilder.factory();\n\n builder.authzParam(\"from\", clientId);\n builder.secretKey(secretKeyBytes);\n\n String uri = request.getRequestLine().getUri();\n URL url = new URL(uri);\n String scheme = url.getProtocol();\n String port = \"\";\n if (url.getPort() > -1) {\n port = \":\" + String.valueOf(url.getPort());\n }\n builder.httpMethod(request.getRequestLine().getMethod());\n builder.uri(String.format(\"%s://%s%s%s\", scheme, url.getHost(), port, url.getPath()));\n builder.digestAlg(digestAlg);\n\n builder.nonce();\n\n Header dateHeader = request.getFirstHeader(\"Date\");\n if (dateHeader != null) {\n String requestDate = dateHeader.getValue();\n if (requestDate == null) {\n builder.timestamp();\n } else {\n // try parsing in http date format\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss z\", Locale.US);\n try {\n builder.timestamp(dateFormat.parse(requestDate));\n } catch (ParseException e) {\n log.error(\"Cannot parse date from http header: {}\", requestDate, e);\n log.debug(\"Using current date for timestamp\");\n builder.timestamp();\n }\n }\n }\n\n // add client request headers\n Header[] headers = request.getAllHeaders();\n String[] httpHeaderNames = new String[]{\"Content-Type\", \"Content-Length\"};\n for (String httpHeaderName : httpHeaderNames) {\n for (Header header : headers) {\n if (header.getName().equalsIgnoreCase(httpHeaderName)) {\n builder.headerParam(httpHeaderName, header.getValue());\n }\n }\n }\n\n // add query parameters\n String queryString = url.getQuery();\n if (queryString != null) {\n Map<String, List<String>> queryParameterMap = Query.parse(queryString);\n for (String queryParameterName : queryParameterMap.keySet()) {\n List<String> values = queryParameterMap.get(queryParameterName);\n if (values != null) {\n for (String value : values) {\n builder.queryParam(queryParameterName, value);\n }\n }\n }\n }\n\n return builder;\n\n }", "private void generateHeader() throws IOException {\n charset = Charset.forName(encoding);\n String sb = \"HTTP/1.1 \" + statusCode + \" \" + statusText + \"\\r\\n\" +\n \"Content-Type: \" + mimeType + resolveMime() + \"\\r\\n\" +\n generateCookieRecords();\n if (contentLength != null) {\n sb += \"Content-Length: \" + contentLength + \"\\r\\n\";\n }\n sb += \"\\r\\n\";\n outputStream.write(sb.getBytes(charset));\n headerGenerated = true;\n\n }", "Header createHeader();", "static DNSHeader buildResponseHeader(DNSMessage request, DNSMessage response) {\n DNSHeader header = new DNSHeader();\n\n header.id = request.getHeader().getId();\n header.flags = request.getHeader().getFlags();\n header.flags[0] = (byte) (header.flags[0] | 0b10000000);\n header.flags[1] = (byte) (header.flags[1] | 0b10000000);\n\n header.qdcount = header.getByteCount(request.getQuestions().size());\n header.ancount = header.getByteCount(response.getAnswers().size());\n header.nscount = header.getByteCount(request.getAuthorityRecords().size());\n header.arcount = header.getByteCount(request.getAdditionalRecords().size());\n\n return header;\n }", "Headers createHeaders();", "private HttpHeaders constructResponseHeaders() {\n var headers = new HttpHeaders();\n var authHeader = \"\"; // Construct the auth header for response\n headers.put(HttpHeaders.AUTHORIZATION, List.of(authHeader));\n return headers;\n }", "protected byte[] createHeader(AC35StreamMessage type, int sourceId) {\n byte[] header = super.createHeader(type);\n addFieldToByteArray(header, HEADER_SOURCE_ID, sourceId);\n return header;\n }", "public eu.rawfie.uxv.Header.Builder getHeaderBuilder() {\n if (headerBuilder == null) {\n if (hasHeader()) {\n setHeaderBuilder(eu.rawfie.uxv.Header.newBuilder(header));\n } else {\n setHeaderBuilder(eu.rawfie.uxv.Header.newBuilder());\n }\n }\n return headerBuilder;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new index with a name articles[timestamp] and creates an Alias with the name articles. The index is created with a shard and no replicas.
public void createIndex() { String indexName = INDEX_BASE + "-" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")); Settings settings = Settings.builder() .put("number_of_shards", 1) .put("number_of_replicas", 0) .build(); CreateIndexRequest request = new CreateIndexRequest(indexName, settings); String mapping = "{\n" + " \"article\": {\n" + " \"properties\": {\n" + " \"title\": {\n" + " \"type\": \"text\"\n" + " },\n" + " \"author\": {\n" + " \"type\": \"keyword\"\n" + " },\n" + " \"issue\": {\n" + " \"type\": \"keyword\"\n" + " },\n" + " \"link\": {\n" + " \"type\": \"keyword\"\n" + " },\n" + " \"description\": {\n" + " \"type\": \"text\"\n" + " },\n" + " \"postDate\": {\n" + " \"type\": \"date\",\n" + " \"format\": \"yyyy-MM-dd\"\n" + " }\n" + " }\n" + " }\n" + " }"; request.mapping("article", mapping, XContentType.JSON); request.alias(new Alias(INDEX_BASE)); try { CreateIndexResponse createIndexResponse = this.client.admin().indices().create(request).get(); if (!createIndexResponse.isAcknowledged()) { throw new ElasticExecutionException("Create java_magazine index was not acknowledged"); } } catch (InterruptedException | ExecutionException e) { logger.error("Error while creating an index", e); throw new ElasticExecutionException("Error when trying to create an index"); } }
[ "@Test\n public void creatIndex() {\n\n boolean flag = elasticsearchTemplate.createIndex(CoursePub.class);\n System.out.println(\"flag = \" + flag);\n\n flag = elasticsearchTemplate.putMapping(CoursePub.class);\n System.out.println(\"flag = \" + flag);\n }", "private void indexArticle(IndexMessage indexMessage) {\n ESIndexAction indexAction = new ESIndexAction.Builder().index(\"articles\").\n type(\"article\").body(indexMessage).build();\n\n client.executeAsyncBlocking(indexAction);\n }", "public abstract TIndexDefinition createIndexDefinition();", "InstAssignIndex createInstAssignIndex();", "@Override\n public final void createIndex(String indexName, String documentType, String mapping, String settings, String alias)\n {\n LOGGER.info(\"Creating Elasticsearch index, indexName={}, documentType={}.\", indexName, documentType);\n\n CreateIndex createIndex = new CreateIndex.Builder(indexName).settings(settings).build();\n PutMapping putMapping = new PutMapping.Builder(indexName, documentType, mapping).build();\n ModifyAliases modifyAliases = new ModifyAliases.Builder(new AddAliasMapping.Builder(indexName, alias).build()).build();\n\n JestResult jestResult = jestClientHelper.execute(createIndex);\n LOGGER.info(\"Creating Elasticsearch index, indexName={}, documentType={} successful={}\", indexName, documentType, jestResult.isSucceeded());\n jestResult = jestClientHelper.execute(putMapping);\n LOGGER\n .info(\"Creating Elasticsearch index put mappings, indexName={}, documentType={} successful={}\", indexName, documentType, jestResult.isSucceeded());\n jestResult = jestClientHelper.execute(modifyAliases);\n LOGGER.info(\"Creating Elasticsearch index alias, indexName={}, alias={}\", indexName, alias, jestResult.isSucceeded());\n // If there are failures log them\n if (!jestResult.isSucceeded())\n {\n LOGGER.error(\"Error in index creation= {}\", jestResult.getErrorMessage());\n }\n }", "void createInitialFulltextIndex();", "public void indexArticle(Article article) {\n try {\n String articleAsString = objectMapper.writeValueAsString(article);\n client.prepareIndex(INDEX_BASE, \"article\").setSource(articleAsString, XContentType.JSON).get();\n } catch (IOException e) {\n throw new ElasticExecutionException(\"Error indexing document\");\n }\n }", "boolean createIndex(String indexName);", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "private void createAndMapIndex(SensorRecord sensorRecord)\n {\n logger.info(\"try creating index: [\" + this. esIndex + \"]\");\n try {\n transportClient.admin().indices().prepareCreate(this.esIndex)\n .addMapping(sensorRecord.getClass().getSimpleName(), \"{\\n\" +\n \" \\\"\" + sensorRecord.getClass().getSimpleName() + \"\\\": {\\n\" +\n \" \\\"properties\\\": {\\n\" +\n \" \\\"\" + this.esTimestampName + \"\\\": {\\n\" +\n \" \\\"type\\\": \\\"date\\\"\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\")\n .get();\n } catch (ResourceAlreadyExistsException e) {\n logger.warn(\"index: [\" + this.esIndex + \"] already exist, not created\");\n return;\n }\n logger.info(\"index: [\" + this.esIndex + \"] created.\");\n \n }", "IndexNameReference createIndexNameReference();", "public static void indexAvailableArticles() throws IOException, SQLException {\r\n String query = \"SELECT ar.id, ar.title, ar.year, j.name, ar.doi, ar.is_isi, ar.is_scopus, ar.uri, ar.journal_id FROM articles ar \" +\r\n \"JOIN journals j ON ar.journal_id = j.id\";\r\n ResultSet articleSet = DataUtl.queryDB(Config.DB.OUTPUT, query);\r\n\r\n Client client = DataUtl.getESClient();\r\n BulkRequestBuilder bulkRequest = client.prepareBulk();\r\n\r\n while (articleSet.next()) {\r\n bulkRequest.add(client.prepareIndex(\"available_articles\", \"articles\", String.valueOf(articleSet.getInt(1)))\r\n .setSource(jsonBuilder()\r\n .startObject()\r\n .field(\"original_id\", articleSet.getInt(1))\r\n .field(\"title\", articleSet.getString(2))\r\n .field(\"year\", articleSet.getString(3))\r\n .field(\"journal\", articleSet.getString(4))\r\n .field(\"doi\", articleSet.getString(5))\r\n .field(\"is_isi\", articleSet.getString(6) != null && articleSet.getString(6).equals(\"1\"))\r\n .field(\"is_scopus\", articleSet.getString(7) != null && articleSet.getString(7).equals(\"1\"))\r\n .field(\"uri\", articleSet.getString(8))\r\n .field(\"journal_id\", articleSet.getInt(9))\r\n .endObject()\r\n )\r\n );\r\n }\r\n\r\n bulkRequest.get();\r\n DataUtl.flushES(\"available_articles\");\r\n }", "public static IndexOnDisk createIndex() {\n\t//\tSystem.out.println(\"@Index\\t\"+ ApplicationSetup.TERRIER_INDEX_PATH+\"\\t\"+ApplicationSetup.TERRIER_INDEX_PREFIX);\n\t\tApplicationSetup.TERRIER_INDEX_PATH =\"/home/Lee/data/index/index-all\";\n\t\treturn createIndex(ApplicationSetup.TERRIER_INDEX_PATH,\n\t\t\t\tApplicationSetup.TERRIER_INDEX_PREFIX);\n\t}", "private void createIndex(String[][] docs) {\n Collections.shuffle(Arrays.asList(docs), random());\n for (String[] doc : docs) {\n assertU(adoc(doc));\n if (random().nextBoolean()) {\n assertU(commit());\n }\n }\n assertU(commit());\n }", "String createIndex() {\n\t\tboolean res = indexExists();\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode;\n\t\tif (!res) {\n\t\t\tresCode = doHttpOperation(esIndexUrl, HTTP_PUT, null);\n\t\t}\n\t\treturn lastResponse;\n\t}", "@Test\n public void testCreateIndexMapping() throws Exception {\n String json = EsJsonUtils.generateItemMapping();\n System.out.println(json);\n elasticSearchDao.createIndexMapping(TENANT_ID+Constants.INDEX_SPLIT+ Constants.ITEM,json);\n }", "public void createIndexEntry(SolrInputDocument document) throws Exception {\r\n\r\n\t\tCollection<SolrInputDocument> docs = new ArrayList<SolrInputDocument>();\r\n\t\tdocs.add(document);\r\n\r\n\t\tserver.add(docs);\r\n\t\tserver.commit();\r\n\r\n\t}", "SetIndexName createSetIndexName();", "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Here, we return the absolute distance between the two vectors.
public double getAbsoluteDistance( ArrayList< Double > a, ArrayList< Double > b ) { double dist = -1.0; if( a.size() == b.size() ) { dist = 0; for( int k=0; k<a.size(); k++ ) { dist += Math.abs( a.get( k ) - b.get( k ) ); } } return dist; }
[ "public static double calculateDistance(List<Double> vector1, List<Double> vector2) {\n double distance = 0;\n for (int i = 0; i < vector1.size(); i++) {\n distance += Math.abs(vector2.get(i) - vector1.get(i));\n }\n return distance;\n }", "public static double absoluteDistance(Prototype one, Prototype two)\r\n {\r\n double[] oneInputs = one.getInputs();\r\n double[] twoInputs = two.getInputs();\r\n //int _size = one.numberOfInputs();\r\n double acc = 0.0;\r\n for (int i = 0; i < numberOfInputs; ++i)\r\n {\r\n acc += Math.abs(oneInputs[i] - twoInputs[i]);\r\n }\r\n\r\n return acc;\r\n }", "public static Vector vectorDistance(Vector a, Vector b){\n return new Vector(Math.abs(a.getX() - b.getX()), Math.abs(a.getY() - b.getY()), false);\n }", "public double distance(V a, V b);", "public static double dist(Vector first, Vector second) {\n return Vector.sub(first, second).mag();\n }", "private double dist(double [] v1, double [] v2){\n \t\tdouble sum=0;\n \t\tfor (int i=0; i<nDimensions; i++){\n \t\t\tdouble d = v1[i]-v2[i];\n \t\t\tsum += d*d;\n \t\t}\n \t\treturn Math.sqrt(sum);\n \t}", "double getDistance(V v1, V v2);", "double distanceTo(Vector2D other) {\n\t\treturn Math.sqrt(Math.pow(other.x - this.x, 2) + Math.pow(other.y - this.y, 2));\n\t}", "public static Double getEuclideanDistance(Vector<Float> first, Vector<Float> second) {\n\t\tif (first == null || second == null) {\n\t\t\tthrow new IllegalArgumentException(\"Please specify two vectors.\");\n\t\t}\n\t\tif (first.size() != second.size()) {\n\t\t\tthrow new RuntimeException(\"Both vectors must be in the same dimensional space.\");\n\t\t}\n\t\tfloat sum = 0;\n\t\tfor (int i = 0; i < first.size(); i++) {\n\t\t\tsum += Math.pow(first.get(i) - second.get(i), 2);\n\t\t}\n\n\t\treturn Math.sqrt(sum);\n\t}", "public double euclideDistance(ArrayList<Double> vectorA, ArrayList<Double> vectorB) {\n double distance = 0.0;\n for (int i = 0; i < vectorA.size(); i++) {\n distance += Math.pow(vectorA.get(i) - vectorB.get(i), 2);\n }\n return Math.sqrt(distance);\n }", "public static double getDistance( GameObject one, GameObject two )\n {\n double deltaX = getDeltaX( one, two );\n double deltaY = getDeltaY( one, two );\n return Math.sqrt( deltaX * deltaX + deltaY * deltaY );\n }", "private static float euclideanDistance(float[] v1, float[] v2) {\n float distance = 0.0f;\n\n for (int i = 0; i < v1.length; i++) {\n distance += Math.pow((v1[i] - v2[i]), 2);\n }\n\n return (float) Math.sqrt(distance);\n }", "private double getDistance(final RectCoordinates a, final RectCoordinates b) {\n return Math.sqrt(Math.pow(a.getX() - b.getX(), 2)\n + Math.pow(a.getY() - b.getY(), 2)\n + Math.pow(a.getZ() - b.getZ(), 2));\n }", "double distance(double x1, double y1, double x2, double y2){return Math.sqrt(Math.pow(x2-x1,2)+Math.pow(y2-y1,2));}", "public static double scalarDistance(Vector a, Vector b){\n return Math.abs(magnitude(a) - magnitude(b));\n }", "public double distance(double[] vector1, double[] vector2) throws MetricException;", "public float distance (Vector2f other)\n {\n return FloatMath.sqrt(distanceSquared(other));\n }", "default double euclideanDistance(double[] a, double[] b) {\n checkLengthOfArrays(a, b);\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n final double d = a[i] - b[i];\n sum += d * d;\n }\n return Math.sqrt(sum);\n }", "public static double deltaX(Vector v1, Vector v2)\n {\n try\n {\n return (v2.getX() - v1.getX());\n }\n catch (Exception ex)\n {\n return Double.NaN;\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates scroll panel with templates tree in it.
private JScrollPane createTreeScrollPanel() { for (Map.Entry<VirtualFile, VcsRoot> entry : files.entrySet()) { createDirectoryNodes(entry.getKey(), entry.getValue()); } final FileTreeRenderer renderer = new FileTreeRenderer(); tree = new CheckboxTree(renderer, root); tree.setCellRenderer(renderer); tree.setRootVisible(true); tree.setShowsRootHandles(false); UIUtil.setLineStyleAngled(tree); TreeUtil.installActions(tree); final JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(tree); scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); TreeUtil.expandAll(tree); tree.getModel().addTreeModelListener(treeModelListener); treeExpander = new DefaultTreeExpander(tree); return scrollPane; }
[ "private void createScrollPanel() {\n if(!ScreenHelper.supportsTouch()) {\n scrollPanel = new FlowPanel();\n scrollPanel.setStyleName(\"scroll-data\");\n \n SimplePanel up = new SimplePanel();\n up.setStyleName(\"scroll-data-image\");\n up.setWidget(Icon.UP.image()); \n \n SimplePanel down = new SimplePanel();\n down.setStyleName(\"scroll-data-image\");\n down.setWidget(Icon.DOWN.image());\n \n // Add scrolling events\n ComponentEventHelper.addScrollEvents(up, down, pager.getElement().getId());\n \n scrollPanel.add(up);\n scrollPanel.add(down);\n \n mainContainer.add(scrollPanel);\n }\n }", "private void createScrollPanel() {\r\n\t\tscrollBorder.setTitleJustification(TitledBorder.CENTER);\r\n\t\tscrollBorder.setTitlePosition(TitledBorder.TOP);\r\n\t\tscrollPanel.setLayout(new BorderLayout());\r\n\t\tscrollPanel.setPreferredSize(new Dimension(250, 100));\r\n\t\tscrollPanel.setBorder(scrollBorder);\r\n\t\tscrollPanel.add(jScrollPane, BorderLayout.CENTER);\r\n\t\tselectionViewFrame.add(scrollPanel, BorderLayout.EAST);\r\n\t}", "public void createScrollPanel(JPanel panel) {\n scrollPanel = new JScrollPane(panel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n scrollPanel.setPreferredSize(new Dimension(710, 600));\n }", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}", "public PreviewTreeSidePanel() {\r\n\r\n super(new BorderLayout());\r\n\r\n tree = new ModernTree<ModernWidget>();\r\n\r\n tree.setNodeRenderer(new PreviewModernTreeNodeRenderer());\r\n\r\n ModernScrollPane scrollPane = new ModernScrollPane(tree);\r\n\r\n scrollPane.setHorizontalScrollBarPolicy(ScrollBarPolicy.NEVER);\r\n\r\n add(scrollPane, BorderLayout.CENTER);\r\n }", "private void createScrollbar()\n\t{\n\t\tsbar_mainpane = new JScrollPane();\n\t\tsbar_mainpane.setPreferredSize(new Dimension(845,672)); // Sadly these value has is a product of trial and error\n\t\tsbar_mainpane.setViewportView(main_data_panel);\n\t\tadd(sbar_mainpane);\n\n\t}", "public void makePanel(){\r\n\t\t\r\n panel.setLayout(new BorderLayout());\r\n panel.add(new_game, BorderLayout.LINE_START);\r\n panel.add(roll_dice, BorderLayout.CENTER);\r\n panel.add(clear, BorderLayout.LINE_END);\r\n panel.add(stats, BorderLayout.PAGE_START);\r\n panel.add(scroll, BorderLayout.PAGE_END);\r\n \r\n\t}", "private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private ScrollPane createRightPane() {\n\t\t// right scrollpane (frame for gridpane)\n\t\tnewsfeedScroll = new ScrollPane();\n\t\tnewsfeedScroll.setMaxSize(250 / scaleWidth, 787 / scaleHeight);\n\t\tnewsfeedScroll.setMinSize(250 / scaleWidth, 787 / scaleHeight);\n\n\t\t// gridpane containing all news\n\t\tGridPane allNews = displayAllNews();\n\t\tnewsfeedScroll.setContent(allNews);\n\n\t\treturn newsfeedScroll;\n\t}", "public JComponent createTopPanel() {\n\n\t//\tcontent();\n\t\tfields = new JTextField[NBR_FIELDS];\n\t\tmyTable = new PalletTable(db);\n\t\ttable = new JTable(myTable);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(750, 100));\n table.setFillsViewportHeight(true);\n\t\tscroll = new JScrollPane(table);\n\t//\tcontent();\n\t\tmainPanel= new JPanel();\n\t\tmainPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.gridy=0;\n\t\tmainPanel.add(scroll,c);\n\t\tc.gridy=1;\n\t\tmainPanel.add(content(),c);\n\t\t//scroll.setPreferredSize(new Dimension(300,250));\n\t\treturn mainPanel;\n\t}", "protected Component createContents(StandardDrawingView view) {\n ScrollPane sp = new ScrollPane();\n Adjustable vadjust = sp.getVAdjustable();\n Adjustable hadjust = sp.getHAdjustable();\n hadjust.setUnitIncrement(16);\n vadjust.setUnitIncrement(16);\n\n sp.add(view);\n return sp;\n }", "private void createPager() { \n pager = new ScrollingPager(); \n pager.getElement().setId(\"data-list\");\n pager.setWidget(listContainer);\n pager.setDisplay(cellList); \n \n // Adjust pager to fit in screen and generate scroll if needed\n Window.addResizeHandler(new ResizeHandler() { \n @Override\n public void onResize(ResizeEvent event) {\n adjustPager(pager);\n }\n });\n pager.addAttachHandler(new AttachEvent.Handler() { \n @Override\n public void onAttachOrDetach(AttachEvent event) { \n adjustPager(pager);\n }\n });\n \n // Initialize widget\n mainContainer.add(pager);\n }", "public void setupScroll() {\n\t\ttabs = new JLayeredPane();\n\t\tscroll = new JScrollPane(panel);\n\t\tchampions = new ArrayList<JButton>();\n\t\taddChampions(panel, CHAMPIONLIST);\n\t\ttabs = new JLayeredPane();\n\t\tURL url = getClass().getResource(\".coredata/background/ChampionsTab.png\");\n\t\tImageIcon tabIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\ttabs.setPreferredSize(new Dimension(724, 53));\n\t\tJLabel championTab = new JLabel();\n\t\tchampionTab.setIcon(tabIcon);\n\t\ttabs.add(championTab, 50);\n\t\tchampionTab.setBounds(0, 0, tabIcon.getIconWidth(), tabIcon.getIconHeight());\n\t\tsearch = new JTextField(10);\n\t\tsearch.addFocusListener(new FocusListener() {\n\t\t\tpublic void focusGained(FocusEvent e) {search.setText(\"\");}\n\t\t\tpublic void focusLost(FocusEvent e) {}\n\t\t});\n\t\ttabs.add(search, 1000);\n\t\tsearch.setBounds(600, 10, 100, 25);\n\t}", "private void createWorldList()\n\t{\n\t\t//Creates the profile buttons and adds them to the 'profileButtonTable'.\n\t\tcreateButtonList();\n\t\t\n\t\t//Places the table of entry buttons inside the ScrollPane to add scrolling functionality to that list.\n\t\tscrollPane = new ScrollPane(profileButtonTable, assets.inventoryScrollPaneStyle);\n\t\t//Modifies the overscroll of the scroll pane. Args: maxOverscrollDistance, minVelocity, maxVelocity\n\t\tscrollPane.setupOverscroll(30, 100, 200);\n\t\t//Disables scrolling in the x-direction.\n\t\tscrollPane.setScrollingDisabled(true, false);\n\t\t\n\t\t//Enables smooth scrolling. Its effects are unknown.\n\t\tscrollPane.setSmoothScrolling(true);\n\t\t\n\t\t//Always make the scroll bar appear.\n\t\tscrollPane.setFadeScrollBars(false);\n\n\t}", "public void fillTreeScrollPane() {\n //prevent of too early creation\n if(scrollPane == null) return;\n scrollPane.getViewport().add(createTreeOfContentsArea());\n }", "private JScrollPane setInnerScrollPane() {\n JScrollPane jsp = new JScrollPane();\n jsp.setViewportView(setOrderList());\n return jsp;\n }", "public void onModuleLoad() {\r\n\r\n\t \tSplitLayoutPanel s = new SplitLayoutPanel();\r\n\t \ts.addWest (new HTML (\"navigation\"), 130);\r\n\t \tSplitLayoutPanel p = new SplitLayoutPanel();\r\n\t \tp.addEast (new HTML(\"detailsPanel\"), 380);\r\n\t \tRootPanel.get(\"ItProjektFrame\").add(s);\r\n\t RootPanel.get(\"ItProjektFrame\").add(p);\r\n\r\n\r\n\t /*\r\n\t * Das SplitLayoutPanel wird einem DIV-Element namens \"Details\" in der\r\n\t * zugehörigen HTML-Datei zugewiesen und erhält so seinen Darstellungsort.\r\n\t */\r\n\t \r\n\t /*\r\n\t * Ab hier bauen wir sukzessive den Navigator mit seinen Buttons aus.\r\n\t */\r\n\t final Button dozentButton = new Button (\"Dozent\");\r\n\t final Button zeitslotButton = new Button (\"Zeitslot\");\r\n\t final Button raumButton = new Button (\"Raum\");\r\n\t final Button semesterverbandButton = new Button (\"Semesterverband\");\r\n\t final Button lehrveranstaltungButton = new Button (\"Lehrveranstaltung\");\r\n\t final Button studiengangButton = new Button (\"Studiengang\");\r\n\t final Button stundenplaneintragButton = new Button (\"Stundenplaneintrag\");\r\n\t final Button raumplanButton = new Button (\"Raumplan\");\r\n\t final Button stundenplanButton = new Button (\"Stundenplan\");\r\n\t \t \r\n\t /*\r\n\t * Unter welchem Namen können wir den Button durch die CSS-Datei des\r\n\t * Projekts formatieren?\r\n\t */\r\n\t dozentButton.setStylePrimaryName(\"BaumButton\");\r\n\t zeitslotButton.setStylePrimaryName(\"BaumButton\");\r\n\t raumButton.setStylePrimaryName(\"BaumButton\");\r\n\t semesterverbandButton.setStylePrimaryName(\"BaumButton\");\r\n\t lehrveranstaltungButton.setStylePrimaryName(\"BaumButton\");\r\n\t studiengangButton.setStylePrimaryName(\"BaumButton\");\r\n\t stundenplaneintragButton.setStylePrimaryName(\"BaumButton\");\r\n\t stundenplanButton.setStylePrimaryName(\"BaumButton\");\r\n\t raumplanButton.setStylePrimaryName(\"BaumButton\");\r\n\t \r\n\t Tree uebersicht = new Tree();\r\n\t\t\r\n\t\tTreeItem report = new TreeItem();\r\n\t\treport.setText(\"Report\");\r\n\t\treport.addItem(stundenplanButton);\r\n\t\treport.addItem(raumplanButton);\r\n\t\t\t\r\n\t\tstundenplanButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tStundenplanForm spf = new StundenplanForm();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").clear();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").add(spf);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\traumplanButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tRaumplanForm rpf = new RaumplanForm();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").clear();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").add(rpf);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\t\t\r\n\t\tTreeItem stammdaten = new TreeItem();\r\n\t\tstammdaten.setText(\"Stammdaten\");\r\n\t\tstammdaten.addItem(dozentButton);\r\n\t\tstammdaten.addItem(zeitslotButton);\r\n\t\tstammdaten.addItem(raumButton);\r\n\t\tstammdaten.addItem(studiengangButton);\r\n\t\tstammdaten.addItem(semesterverbandButton);\r\n\t\tstammdaten.addItem(lehrveranstaltungButton);\r\n\t\t\r\n\t\tdozentButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tDozentForm df = new DozentForm();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").clear();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").add(df);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tzeitslotButton.addClickHandler(new ClickHandler(){\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tZeitslotForm zf = new ZeitslotForm();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").clear();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").add(zf);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\traumButton.addClickHandler(new ClickHandler(){\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tRaumForm rf = new RaumForm();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").clear();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").add(rf);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tstudiengangButton.addClickHandler(new ClickHandler(){\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tStudiengangForm sgf = new StudiengangForm();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").clear();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").add(sgf);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tsemesterverbandButton.addClickHandler(new ClickHandler(){\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tSemesterverbandForm svf = new SemesterverbandForm();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").clear();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").add(svf);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t/*lehrveranstaltungButton.addClickHandler(new ClickHandler(){\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tLehrveranstaltungForm lf = new LehrveranstaltungForm();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").clear();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\"),add(lf);\r\n\t\t\t}\r\n\t\t}); */\r\n\t\t\r\n\t\t\r\n\t\tTreeItem bewegungsdaten = new TreeItem();\r\n\t\tbewegungsdaten.setText(\"Bewegungsdaten\");\r\n\t\tbewegungsdaten.addItem(stundenplaneintragButton);\r\n\t\t\r\n\t\tstundenplaneintragButton.addClickHandler(new ClickHandler(){\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tStundenplaneintragForm sef = new StundenplaneintragForm();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").clear();\r\n\t\t\t\tRootPanel.get(\"ItProjektFrame\").add(sef);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tuebersicht.addItem(report);\r\n\t\tuebersicht.addItem(stammdaten);\r\n\t\tuebersicht.addItem(bewegungsdaten);\r\n\t\t\r\n\t\tRootPanel.get(\"navigation\").add(uebersicht);\r\n\t\t\r\n\t}", "public void setupSidePanels() {\n\t\tURL url = getClass().getResource(\".coredata/background/LeftTeam.png\");\n\t\tleftTeamIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\tleftTeam = new JLabel(leftTeamIcon);\n\t\turl = getClass().getResource(\".coredata/background/RightTeam.png\");\n\t\trightTeamIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\trightTeam = new JLabel(rightTeamIcon);\n\t\tleftTeam.setPreferredSize(new Dimension(273, 501));\n\t\trightTeam.setPreferredSize(new Dimension(273, 501));\n\t\tscroll.setPreferredSize(new Dimension(724, 484));\n\t\tleftPanel = new JLayeredPane();\n\t\tleftPanel.setPreferredSize(new Dimension(273, 501));\n\t\tleftTeam.setBounds(0, 0, 273, 501);\n\t\tleftPanel.add(leftTeam, new Integer(0));\n\t\tadd(leftPanel, BorderLayout.LINE_START);\n\t\trightPanel = new JLayeredPane();\n\t\trightPanel.setPreferredSize(new Dimension(273, 501));\n\t\trightTeam.setBounds(0, 0, 273, 501);\n\t\trightPanel.add(rightTeam, new Integer(0));\n\t\tadd(rightPanel, BorderLayout.LINE_END);\n\t}", "private ScrollPane createLeftPane() {\n\t\t// left scrollpane (frame for gridpane)\n\t\tcommoditiesScroll = new ScrollPane();\n\t\tcommoditiesScroll.setMaxSize(250 / scaleWidth, 787 / scaleHeight);\n\t\tcommoditiesScroll.setMinSize(250 / scaleWidth, 787 / scaleHeight);\n\n\t\t// gridpane containing all commodities\n\t\tGridPane allCommodities = displayAllCommodities();\n\t\tcommoditiesScroll.setContent(allCommodities);\n\n\t\treturn commoditiesScroll;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns (given a boolean) a html string containing available or not available
protected String booleanToString(boolean b) { if (b) return FONT_TEXT_GOOD + "available" + "</font>"; else return FONT_TEXT_BAD + "not available" + "</font>"; }
[ "boolean getHtml();", "boolean hasDeviceAvailabilityDescriptionHtml();", "boolean hasErrorHtml();", "boolean hasDescriptionHtml();", "private static String htmlInputTruthValue(boolean b) {\n return b ? \"true\" : \"false\"; \n }", "public static boolean elementAvailiable(String s) { // Check if page contains\n\t\tboolean available=false; \n\t\ttry {\n\t\t\tif(driver.getPageSource().contains(s)){\n\t\t\t\tavailable=true;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn available; \n\t}", "public boolean getUsesHtml () {\n return usesHtml;\n }", "boolean hasGaiaDescriptionTextHtml();", "public boolean hasAllowHtml() {\n return result.hasAllowHtml();\n }", "public boolean hasAllowhtml() {\n return result.hasAllowhtml();\n }", "public void setUsesHtml (boolean b) {\n usesHtml = b;\n }", "boolean hasPinDescriptionTextHtml();", "boolean hasRecentChangesHtml();", "boolean isEscapeHTML();", "public boolean getIsHTML() {\n\t\treturn isHTML;\n\t}", "public static String outUnavailable(Execution exec) {\n\t\tif (exec.getAttribute(ATTR_UNAVAILABLE_GENED) == null\n\t\t && !exec.isAsyncUpdate(null)) {\n\t\t\texec.setAttribute(ATTR_UNAVAILABLE_GENED, Boolean.TRUE);\n\n\t\t\tfinal Device device = exec.getDesktop().getDevice();\n\t\t\tString s = device.getUnavailableMessage();\n\t\t\treturn s != null ?\n\t\t\t \"<noscript>\\n\" + s + \"\\n</noscript>\": \"\";\n\t\t}\n\t\treturn \"\"; //nothing to generate\n\t}", "private String renderStatusHtml() {\n\t\tString ret = \"\";\n\t\tif (model.getLastErrorTs()!= null) {\n\t\t\tret += String.format(template1, \n\t\t\t\t\tmodel.getLastErrorTs(), model.getLastErrorMessage());\n\t\t}\n\t\tif (model.getLastCheckTs()!= null) {\n\t\t\tret += String.format(template2,\n\t\t\t\t\tmodel.getLastCheckTs(), model.getLastCheckMessage());\n\t\t}\n\t\tif (model.getLastDownloadTs()!= null) {\n\t\t\tret += String.format(template3,\n\t\t\t\t\tmodel.getLastDownloadTs(), model.getLastDownloadMessage());\n\t\t}\n\t\tif (ret.length() == 0) {\n\t\t\tret = \"<br/><em>There are no updates to report yet</em><br>\";\n\t\t}\n\t\treturn ret;\n\t}", "public boolean isBoldAvailable() {\r\n \treturn bold;\r\n }", "String renderHTML();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs SelectOptions when passed with an object list of EachOption.
public SelectOptions(String initialValue, List<EachOption> optionList) { this._initialValue = initialValue; if (CollectionUtils.isNotEmpty(optionList)) { this._eachOptionArray = optionList.toArray(new EachOption[optionList.size()]); } }
[ "public SelectOptions(String initialValue, EachOption[] optionArray)\n {\n this._initialValue = initialValue;\n this._eachOptionArray = optionArray;\n }", "private Options createOptions() {\n Options opts = new Options();\n\n for (ICLICommandProcessorFactory factory : this.factoryMap.values()) {\n opts.addOption(OptionBuilder\n .withLongOpt(factory.getCommand())\n .withDescription(factory.getDescription())\n .create()\n );\n }\n\n return opts;\n }", "private static void initOptionList() {\n int valueIndex;\n\n for (int i = 0; i < optionArray.length; i++) {\n if (optionArray[i].startsWith(\"--\")) {\n valueIndex = i + 1;\n\n try {\n if (valueIndex == optionArray.length\n || (optionArray[valueIndex].startsWith(\"-\")\n && !FormatManager.isDouble(optionArray[valueIndex]))) {\n optionList.add(new CommandOption(optionArray[i], \"\"));\n } else {\n optionList.add(new CommandOption(optionArray[i], optionArray[++i]));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n System.out.println(\"Invalid command option: \" + optionArray[i]);\n System.exit(0);\n }\n }\n }", "private void buildOptionList()\r\n\t\t{\r\n\t\toptions.removeAll();\r\n\t\tfor(int i=0; i<myOptionList.size(); i++)\r\n\t\t\t{\r\n\t\t\tmyOptionList.get(i).setBackgroundColor((i%2==0)?Color.WHITE:Color.LIGHT_GRAY);\r\n\t\t\tmyOptionList.get(i).getOptionName().setFont(new Font(myOptionList.get(i).getOptionName().getFont().getFontName(), Font.PLAIN, 15));\r\n\t\t\tthis.options.add(myOptionList.get(i));\r\n\t\t\t}\r\n\t\t}", "public List<WebElement> getOptions() {\n selectBox = new Select(getUnderlyingWebElement());\n return selectBox.getOptions();\n }", "public static ArrayList<CharacterOption> generateCharacterOptions() {\r\n\t\tArrayList<CharacterOption> options = new ArrayList<>();\r\n\t\tfor (String character : playerClassMap.keySet()) {\r\n\t\t\t// the game by default prepends \"images/ui/charSelect\" to the image\r\n\t\t\t// load request\r\n\t\t\t// so we override that with \"../../..\"\r\n\t\t\tCharacterOption option = new CharacterOption(playerSelectTextMap.get(character),\r\n\t\t\t\t\tAbstractPlayer.PlayerClass.valueOf(character),\r\n\t\t\t\t\t// note that these will fail so we patch this in\r\n\t\t\t\t\t// basemode.patches.com.megacrit.cardcrawl.screens.charSelect.CharacterOption.CtorSwitch\r\n\t\t\t\t\tplayerSelectButtonMap.get(character), playerPortraitMap.get(character));\r\n\t\t\toptions.add(option);\r\n\t\t}\r\n\t\treturn options;\r\n\t}", "protected void createOptions(String[] optTexts){\n\t\toptGroup = new GOptionGroup();\n\t\tGOption option;\n\t\tfor(int i = 0; i < optTexts.length; i++){\n\t\t\toption = makeOption(optTexts[i]);\n\t\t\tif(option != null){\n\t\t\t\toptGroup.addOption(option);\n\t\t\t\tadd(option);\n\t\t\t}\n\t\t}\n\t\toptGroup.setSelected(0);\n\t\ttext = optGroup.selectedText();\n\t\tnbrRowsToShow = Math.min(optTexts.length, maxRows);\n\t}", "T setJavaOptions(List<String> javaOptions);", "public SelectMenuBuilder addOptions(List<SelectMenuOption> selectMenuOptions) {\n selectMenuOptions.forEach(delegate::addOption);\n return this;\n }", "private void renderSelectOptions(FacesContext context,\n UIComponent component, Set lookupSet,\n List selectItemList) throws IOException {\n ResponseWriter writer = context.getResponseWriter();\n\n for (Iterator it = selectItemList.iterator(); it.hasNext();) {\n SelectItem selectItem = (SelectItem) it.next();\n\n if (selectItem instanceof SelectItemGroup) {\n writer.startElement(OPTGROUP_ELEM, component);\n writer.writeAttribute(HTML.LABEL_ATTR, selectItem.getLabel(),\n null);\n SelectItem[] selectItems = ((SelectItemGroup) selectItem).getSelectItems();\n renderSelectOptions(context, component, lookupSet,\n Arrays.asList(selectItems));\n writer.endElement(OPTGROUP_ELEM);\n } else {\n String itemStrValue = getConvertedStringValue(context, component, selectItem);\n\n writer.write(TABULATOR);\n writer.startElement(HTML.OPTION_ELEM, component);\n if (itemStrValue != null) {\n writer.writeAttribute(HTML.value_ATTRIBUTE, itemStrValue, null);\n }\n\n if (lookupSet.contains(itemStrValue)) { //TODO/FIX: we always compare the String vales, better fill lookupSet with Strings only when useSubmittedValue==true, else use the real item value Objects\n writer.writeAttribute(HTML.SELECTED_ATTR,\n HTML.SELECTED_ATTR, null);\n }\n\n boolean disabled = selectItem.isDisabled();\n if (disabled) {\n writer.writeAttribute(HTML.DISABLED_ATTR,\n HTML.DISABLED_ATTR, null);\n }\n\n String labelClass;\n boolean componentDisabled = isTrue(component.getAttributes().get(\"disabled\"));\n\n if (componentDisabled || disabled) {\n labelClass = (String) component.getAttributes().get(\"disabledClass\");\n } else {\n labelClass = (String) component.getAttributes().get(\"enabledClass\");\n }\n if (labelClass != null) {\n writer.writeAttribute(HTML.class_ATTRIBUTE, labelClass, \"labelClass\");\n }\n\n boolean escape;\n\n escape = getBooleanAttribute(component, \"escape\",\n true); //default is to escape\n if (escape) {\n writer.writeText(selectItem.getLabel(), null);\n } else {\n writer.write(selectItem.getLabel());\n }\n\n writer.endElement(HTML.OPTION_ELEM);\n }\n }\n }", "public JSHTMLOptionsCollection() {\r\n\r\n\t}", "public Options() {\n init();\n }", "public Option[] SetSitesDropDownData(){\n List<SiteDTO> instDTOList = this.getinventory$GatheringSessionBean().SetSitesDropDownData();\n ArrayList<Option> allOptions = new ArrayList<Option>();\n Option[] allOptionsInArray;\n Option option;\n //Crear opcion titulo\n option = new Option(null,\" -- \"+BundleHelper.getDefaultBundleValue(\"drop_down_default\",getMyLocale())+\" --\");\n allOptions.add(option);\n //Crear todas las opciones del drop down\n for(SiteDTO sDTO : instDTOList){\n option = new Option(sDTO.getSiteId(), sDTO.getDescription().trim());\n allOptions.add(option);\n }\n //Sets the elements in the SingleSelectedOptionList Object\n allOptionsInArray = new Option[allOptions.size()];\n return allOptions.toArray(allOptionsInArray);\n }", "public void setupWidgetSelectorDropdowns(){\n for(int i = 0; i < widgets.size(); i++){\n widgetOptions.add(widgets.get(i).widgetTitle);\n }\n //println(\"widgetOptions.size() = \" + widgetOptions.size());\n for(int i = 0; i <widgetOptions.size(); i++){\n widgets.get(i).setupWidgetSelectorDropdown(widgetOptions);\n widgets.get(i).setupNavDropdowns();\n }\n }", "Select createSelect();", "protected abstract void initializeOptions(Options options);", "@Override\n\tpublic void selectMultipelOptions(List<?> values) throws ParkarCoreMobileException {\n\t\tParkarLogger.traceEnter();\n\t\tString infoMsg = \"selectMultipelOptions: \" + \" [ \" + locatorKey + \" : \" + locator + \" ]\";\n\t\ttry {\n\t\t\tSelect select = getSelect();\n\t\t\tif (values != null && values.size() > 0) {\n\t\t\t\tfor (Object value : values) {\n\t\t\t\t\tif (value != null)\n\t\t\t\t\t\tselect.selectByValue(value.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(infoMsg, e);\n\t\t\treporter.deepReportStep(StepStatus.FAIL, infoMsg, BasicPageSyncHelper.saveAsScreenShot(driver), e);\n\t\t\tthrow new ParkarCoreMobileException(infoMsg, e);\n\t\t}\n\t\tlogger.info(infoMsg);\n\t\treporter.deepReportStep(StepStatus.INFO, infoMsg);\n\t\tParkarLogger.traceLeave();\n\t}", "private void addSingleOptions(Element list, List<Option> options) {\r\n\t\tfor (int i = 0; i < options.size(); i++) {\r\n\t\t\tOptionSingle os = (OptionSingle)options.get(i);\r\n\r\n\t\t\tElement option = mDocument.createElement(\"Option\");\r\n\r\n\t\t\toption.setAttribute(\"Selected\", os.mSelected ? \"TRUE\" : \"FALSE\");\r\n\t\t\t\r\n\t\t\tif (os.mKey != null && os.mValue != null) {\r\n\t\t\t\toption.setAttribute(\"Key\", os.mKey);\r\n\t\t\t\toption.setAttribute(\"Value\", os.mValue);\r\n\t\t\t}\r\n\t\t\tlist.appendChild(option);\r\n\r\n\t\t\tappendOptionText(option, os);\r\n\t\t}\r\n\t}", "List<Option> findAllOptions();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XArtifactType__Group__1__Impl" $ANTLR start "rule__XArtifactType__Group__2" ../org.eclipse.osee.framework.core.dsl.ui/srcgen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2320:1: rule__XArtifactType__Group__2 : rule__XArtifactType__Group__2__Impl rule__XArtifactType__Group__3 ;
public final void rule__XArtifactType__Group__2() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2324:1: ( rule__XArtifactType__Group__2__Impl rule__XArtifactType__Group__3 ) // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2325:2: rule__XArtifactType__Group__2__Impl rule__XArtifactType__Group__3 { pushFollow(FOLLOW_rule__XArtifactType__Group__2__Impl_in_rule__XArtifactType__Group__24997); rule__XArtifactType__Group__2__Impl(); state._fsp--; pushFollow(FOLLOW_rule__XArtifactType__Group__3_in_rule__XArtifactType__Group__25000); rule__XArtifactType__Group__3(); state._fsp--; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__XArtifactType__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2293:1: ( rule__XArtifactType__Group__1__Impl rule__XArtifactType__Group__2 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2294:2: rule__XArtifactType__Group__1__Impl rule__XArtifactType__Group__2\n {\n pushFollow(FOLLOW_rule__XArtifactType__Group__1__Impl_in_rule__XArtifactType__Group__14935);\n rule__XArtifactType__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XArtifactType__Group__2_in_rule__XArtifactType__Group__14938);\n rule__XArtifactType__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XArtifactType__Group_3__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2641:1: ( rule__XArtifactType__Group_3__2__Impl )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2642:2: rule__XArtifactType__Group_3__2__Impl\n {\n pushFollow(FOLLOW_rule__XArtifactType__Group_3__2__Impl_in_rule__XArtifactType__Group_3__25625);\n rule__XArtifactType__Group_3__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XArtifactType__Group_3_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2706:1: ( rule__XArtifactType__Group_3_2__1__Impl )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2707:2: rule__XArtifactType__Group_3_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XArtifactType__Group_3_2__1__Impl_in_rule__XArtifactType__Group_3_2__15751);\n rule__XArtifactType__Group_3_2__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XArtifactMatcher__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:6763:1: ( rule__XArtifactMatcher__Group__2__Impl rule__XArtifactMatcher__Group__3 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:6764:2: rule__XArtifactMatcher__Group__2__Impl rule__XArtifactMatcher__Group__3\n {\n pushFollow(FOLLOW_rule__XArtifactMatcher__Group__2__Impl_in_rule__XArtifactMatcher__Group__213751);\n rule__XArtifactMatcher__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XArtifactMatcher__Group__3_in_rule__XArtifactMatcher__Group__213754);\n rule__XArtifactMatcher__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ArtifactTypeRestriction__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8279:1: ( rule__ArtifactTypeRestriction__Group__2__Impl rule__ArtifactTypeRestriction__Group__3 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8280:2: rule__ArtifactTypeRestriction__Group__2__Impl rule__ArtifactTypeRestriction__Group__3\n {\n pushFollow(FOLLOW_rule__ArtifactTypeRestriction__Group__2__Impl_in_rule__ArtifactTypeRestriction__Group__216733);\n rule__ArtifactTypeRestriction__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__ArtifactTypeRestriction__Group__3_in_rule__ArtifactTypeRestriction__Group__216736);\n rule__ArtifactTypeRestriction__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XArtifactType__Group_3_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2675:1: ( rule__XArtifactType__Group_3_2__0__Impl rule__XArtifactType__Group_3_2__1 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2676:2: rule__XArtifactType__Group_3_2__0__Impl rule__XArtifactType__Group_3_2__1\n {\n pushFollow(FOLLOW_rule__XArtifactType__Group_3_2__0__Impl_in_rule__XArtifactType__Group_3_2__05689);\n rule__XArtifactType__Group_3_2__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XArtifactType__Group_3_2__1_in_rule__XArtifactType__Group_3_2__05692);\n rule__XArtifactType__Group_3_2__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__EArtifactType__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:7029:1: ( rule__EArtifactType__Group__2__Impl rule__EArtifactType__Group__3 )\n // InternalAADMParser.g:7030:2: rule__EArtifactType__Group__2__Impl rule__EArtifactType__Group__3\n {\n pushFollow(FOLLOW_24);\n rule__EArtifactType__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__EArtifactType__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XArtifactType__Group_3__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2652:1: ( ( ( rule__XArtifactType__Group_3_2__0 )* ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2653:1: ( ( rule__XArtifactType__Group_3_2__0 )* )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2653:1: ( ( rule__XArtifactType__Group_3_2__0 )* )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2654:1: ( rule__XArtifactType__Group_3_2__0 )*\n {\n before(grammarAccess.getXArtifactTypeAccess().getGroup_3_2()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2655:1: ( rule__XArtifactType__Group_3_2__0 )*\n loop31:\n do {\n int alt31=2;\n int LA31_0 = input.LA(1);\n\n if ( (LA31_0==57) ) {\n alt31=1;\n }\n\n\n switch (alt31) {\n \tcase 1 :\n \t // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2655:2: rule__XArtifactType__Group_3_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XArtifactType__Group_3_2__0_in_rule__XArtifactType__Group_3__2__Impl5652);\n \t rule__XArtifactType__Group_3_2__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop31;\n }\n } while (true);\n\n after(grammarAccess.getXArtifactTypeAccess().getGroup_3_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ArtifactMatchRestriction__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8131:1: ( ( 'artifact' ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8132:1: ( 'artifact' )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8132:1: ( 'artifact' )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8133:1: 'artifact'\n {\n before(grammarAccess.getArtifactMatchRestrictionAccess().getArtifactKeyword_2()); \n match(input,94,FOLLOW_94_in_rule__ArtifactMatchRestriction__Group__2__Impl16451); \n after(grammarAccess.getArtifactMatchRestrictionAccess().getArtifactKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ArtifactTypeRestriction__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8248:1: ( rule__ArtifactTypeRestriction__Group__1__Impl rule__ArtifactTypeRestriction__Group__2 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8249:2: rule__ArtifactTypeRestriction__Group__1__Impl rule__ArtifactTypeRestriction__Group__2\n {\n pushFollow(FOLLOW_rule__ArtifactTypeRestriction__Group__1__Impl_in_rule__ArtifactTypeRestriction__Group__116671);\n rule__ArtifactTypeRestriction__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__ArtifactTypeRestriction__Group__2_in_rule__ArtifactTypeRestriction__Group__116674);\n rule__ArtifactTypeRestriction__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XArtifactType__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2264:1: ( rule__XArtifactType__Group__0__Impl rule__XArtifactType__Group__1 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2265:2: rule__XArtifactType__Group__0__Impl rule__XArtifactType__Group__1\n {\n pushFollow(FOLLOW_rule__XArtifactType__Group__0__Impl_in_rule__XArtifactType__Group__04874);\n rule__XArtifactType__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XArtifactType__Group__1_in_rule__XArtifactType__Group__04877);\n rule__XArtifactType__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ArtifactTypeRestriction__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8291:1: ( ( 'artifactType' ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8292:1: ( 'artifactType' )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8292:1: ( 'artifactType' )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8293:1: 'artifactType'\n {\n before(grammarAccess.getArtifactTypeRestrictionAccess().getArtifactTypeKeyword_2()); \n match(input,52,FOLLOW_52_in_rule__ArtifactTypeRestriction__Group__2__Impl16764); \n after(grammarAccess.getArtifactTypeRestrictionAccess().getArtifactTypeKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XArtifactType__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2612:1: ( rule__XArtifactType__Group_3__1__Impl rule__XArtifactType__Group_3__2 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2613:2: rule__XArtifactType__Group_3__1__Impl rule__XArtifactType__Group_3__2\n {\n pushFollow(FOLLOW_rule__XArtifactType__Group_3__1__Impl_in_rule__XArtifactType__Group_3__15565);\n rule__XArtifactType__Group_3__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XArtifactType__Group_3__2_in_rule__XArtifactType__Group_3__15568);\n rule__XArtifactType__Group_3__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__EArtifactType__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:7041:1: ( ( RULE_BEGIN ) )\n // InternalAADMParser.g:7042:1: ( RULE_BEGIN )\n {\n // InternalAADMParser.g:7042:1: ( RULE_BEGIN )\n // InternalAADMParser.g:7043:2: RULE_BEGIN\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEArtifactTypeAccess().getBEGINTerminalRuleCall_2()); \n }\n match(input,RULE_BEGIN,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEArtifactTypeAccess().getBEGINTerminalRuleCall_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__EArtifactType__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:7002:1: ( rule__EArtifactType__Group__1__Impl rule__EArtifactType__Group__2 )\n // InternalAADMParser.g:7003:2: rule__EArtifactType__Group__1__Impl rule__EArtifactType__Group__2\n {\n pushFollow(FOLLOW_5);\n rule__EArtifactType__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__EArtifactType__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XArtifactMatcher__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:6734:1: ( rule__XArtifactMatcher__Group__1__Impl rule__XArtifactMatcher__Group__2 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:6735:2: rule__XArtifactMatcher__Group__1__Impl rule__XArtifactMatcher__Group__2\n {\n pushFollow(FOLLOW_rule__XArtifactMatcher__Group__1__Impl_in_rule__XArtifactMatcher__Group__113691);\n rule__XArtifactMatcher__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XArtifactMatcher__Group__2_in_rule__XArtifactMatcher__Group__113694);\n rule__XArtifactMatcher__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XArtifactType__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2305:1: ( ( 'artifactType' ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2306:1: ( 'artifactType' )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2306:1: ( 'artifactType' )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:2307:1: 'artifactType'\n {\n before(grammarAccess.getXArtifactTypeAccess().getArtifactTypeKeyword_1()); \n match(input,52,FOLLOW_52_in_rule__XArtifactType__Group__1__Impl4966); \n after(grammarAccess.getXArtifactTypeAccess().getArtifactTypeKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ArtifactMatchRestriction__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8119:1: ( rule__ArtifactMatchRestriction__Group__2__Impl rule__ArtifactMatchRestriction__Group__3 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:8120:2: rule__ArtifactMatchRestriction__Group__2__Impl rule__ArtifactMatchRestriction__Group__3\n {\n pushFollow(FOLLOW_rule__ArtifactMatchRestriction__Group__2__Impl_in_rule__ArtifactMatchRestriction__Group__216420);\n rule__ArtifactMatchRestriction__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__ArtifactMatchRestriction__Group__3_in_rule__ArtifactMatchRestriction__Group__216423);\n rule__ArtifactMatchRestriction__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void ruleXArtifactType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:187:2: ( ( ( rule__XArtifactType__Group__0 ) ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:188:1: ( ( rule__XArtifactType__Group__0 ) )\n {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:188:1: ( ( rule__XArtifactType__Group__0 ) )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:189:1: ( rule__XArtifactType__Group__0 )\n {\n before(grammarAccess.getXArtifactTypeAccess().getGroup()); \n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:190:1: ( rule__XArtifactType__Group__0 )\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:190:2: rule__XArtifactType__Group__0\n {\n pushFollow(FOLLOW_rule__XArtifactType__Group__0_in_ruleXArtifactType336);\n rule__XArtifactType__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getXArtifactTypeAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__SimpleWait__Group_3__0__Impl" $ANTLR start "rule__SimpleWait__Group_3__1" InternalDroneScript.g:4037:1: rule__SimpleWait__Group_3__1 : rule__SimpleWait__Group_3__1__Impl ;
public final void rule__SimpleWait__Group_3__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDroneScript.g:4041:1: ( rule__SimpleWait__Group_3__1__Impl ) // InternalDroneScript.g:4042:2: rule__SimpleWait__Group_3__1__Impl { pushFollow(FOLLOW_2); rule__SimpleWait__Group_3__1__Impl(); state._fsp--; if (state.failed) return ; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__SimpleWait__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:3987:1: ( rule__SimpleWait__Group__3__Impl )\r\n // InternalDroneScript.g:3988:2: rule__SimpleWait__Group__3__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__SimpleWait__Group__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__SimpleWait__Group__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:3998:1: ( ( ( rule__SimpleWait__Group_3__0 )? ) )\r\n // InternalDroneScript.g:3999:1: ( ( rule__SimpleWait__Group_3__0 )? )\r\n {\r\n // InternalDroneScript.g:3999:1: ( ( rule__SimpleWait__Group_3__0 )? )\r\n // InternalDroneScript.g:4000:2: ( rule__SimpleWait__Group_3__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getSimpleWaitAccess().getGroup_3()); \r\n }\r\n // InternalDroneScript.g:4001:2: ( rule__SimpleWait__Group_3__0 )?\r\n int alt48=2;\r\n int LA48_0 = input.LA(1);\r\n\r\n if ( (LA48_0==57) ) {\r\n alt48=1;\r\n }\r\n switch (alt48) {\r\n case 1 :\r\n // InternalDroneScript.g:4001:3: rule__SimpleWait__Group_3__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__SimpleWait__Group_3__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getSimpleWaitAccess().getGroup_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__SimpleWait__Group_3__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:4014:1: ( rule__SimpleWait__Group_3__0__Impl rule__SimpleWait__Group_3__1 )\r\n // InternalDroneScript.g:4015:2: rule__SimpleWait__Group_3__0__Impl rule__SimpleWait__Group_3__1\r\n {\r\n pushFollow(FOLLOW_14);\r\n rule__SimpleWait__Group_3__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__SimpleWait__Group_3__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__ExprSimple__Group_3_1_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWhdsl.g:3018:1: ( rule__ExprSimple__Group_3_1_0__2__Impl )\n // InternalWhdsl.g:3019:2: rule__ExprSimple__Group_3_1_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ExprSimple__Group_3_1_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__S_Reflex__Group__3__Impl() throws RecognitionException {\n int rule__S_Reflex__Group__3__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 401) ) { return ; }\n // InternalGaml.g:7355:1: ( ( ( rule__S_Reflex__Group_3__0 )? ) )\n // InternalGaml.g:7356:1: ( ( rule__S_Reflex__Group_3__0 )? )\n {\n // InternalGaml.g:7356:1: ( ( rule__S_Reflex__Group_3__0 )? )\n // InternalGaml.g:7357:1: ( rule__S_Reflex__Group_3__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getS_ReflexAccess().getGroup_3()); \n }\n // InternalGaml.g:7358:1: ( rule__S_Reflex__Group_3__0 )?\n int alt94=2;\n int LA94_0 = input.LA(1);\n\n if ( (LA94_0==121) ) {\n alt94=1;\n }\n switch (alt94) {\n case 1 :\n // InternalGaml.g:7358:2: rule__S_Reflex__Group_3__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__S_Reflex__Group_3__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getS_ReflexAccess().getGroup_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 401, rule__S_Reflex__Group__3__Impl_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__SingleValue__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTaskDefinition.g:3025:1: ( rule__SingleValue__Group_3__1__Impl )\n // InternalTaskDefinition.g:3026:2: rule__SingleValue__Group_3__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__SingleValue__Group_3__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__SchedulerDSL__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:17340:1: ( rule__SchedulerDSL__Group__3__Impl )\n // InternalDsl.g:17341:2: rule__SchedulerDSL__Group__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__SchedulerDSL__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__SimpleExpr__Group_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:4229:1: ( rule__SimpleExpr__Group_3__0__Impl rule__SimpleExpr__Group_3__1 )\n // InternalMGPL.g:4230:2: rule__SimpleExpr__Group_3__0__Impl rule__SimpleExpr__Group_3__1\n {\n pushFollow(FOLLOW_12);\n rule__SimpleExpr__Group_3__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__SimpleExpr__Group_3__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__SimpleExpr__Group_3__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:4283:1: ( rule__SimpleExpr__Group_3__2__Impl )\n // InternalMGPL.g:4284:2: rule__SimpleExpr__Group_3__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__SimpleExpr__Group_3__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__S_Definition__Group__3__Impl() throws RecognitionException {\n int rule__S_Definition__Group__3__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 417) ) { return ; }\n // InternalGaml.g:7605:1: ( ( ( rule__S_Definition__Group_3__0 )? ) )\n // InternalGaml.g:7606:1: ( ( rule__S_Definition__Group_3__0 )? )\n {\n // InternalGaml.g:7606:1: ( ( rule__S_Definition__Group_3__0 )? )\n // InternalGaml.g:7607:1: ( rule__S_Definition__Group_3__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getS_DefinitionAccess().getGroup_3()); \n }\n // InternalGaml.g:7608:1: ( rule__S_Definition__Group_3__0 )?\n int alt96=2;\n int LA96_0 = input.LA(1);\n\n if ( (LA96_0==123) ) {\n alt96=1;\n }\n switch (alt96) {\n case 1 :\n // InternalGaml.g:7608:2: rule__S_Definition__Group_3__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__S_Definition__Group_3__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getS_DefinitionAccess().getGroup_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 417, rule__S_Definition__Group__3__Impl_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ExprSimple__Group_3_1_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWhdsl.g:3180:1: ( rule__ExprSimple__Group_3_1_2__2__Impl )\n // InternalWhdsl.g:3181:2: rule__ExprSimple__Group_3_1_2__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ExprSimple__Group_3_1_2__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__S_Reflex__Group_3__1__Impl() throws RecognitionException {\n int rule__S_Reflex__Group_3__1__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 407) ) { return ; }\n // InternalGaml.g:7453:1: ( ( ':' ) )\n // InternalGaml.g:7454:1: ( ':' )\n {\n // InternalGaml.g:7454:1: ( ':' )\n // InternalGaml.g:7455:1: ':'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getS_ReflexAccess().getColonKeyword_3_1()); \n }\n match(input,122,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getS_ReflexAccess().getColonKeyword_3_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 407, rule__S_Reflex__Group_3__1__Impl_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ExprSimple__Group_3__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWhdsl.g:2937:1: ( rule__ExprSimple__Group_3__2__Impl )\n // InternalWhdsl.g:2938:2: rule__ExprSimple__Group_3__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__ExprSimple__Group_3__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Interface__Group_3__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5611:1: ( ( ( rule__Interface__Group_3_1__0 )* ) )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5612:1: ( ( rule__Interface__Group_3_1__0 )* )\r\n {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5612:1: ( ( rule__Interface__Group_3_1__0 )* )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5613:1: ( rule__Interface__Group_3_1__0 )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getInterfaceAccess().getGroup_3_1()); \r\n }\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5614:1: ( rule__Interface__Group_3_1__0 )*\r\n loop39:\r\n do {\r\n int alt39=2;\r\n int LA39_0 = input.LA(1);\r\n\r\n if ( (LA39_0==33) ) {\r\n alt39=1;\r\n }\r\n\r\n\r\n switch (alt39) {\r\n \tcase 1 :\r\n \t // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5614:2: rule__Interface__Group_3_1__0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__Interface__Group_3_1__0_in_rule__Interface__Group_3__1__Impl11388);\r\n \t rule__Interface__Group_3_1__0();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop39;\r\n }\r\n } while (true);\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getInterfaceAccess().getGroup_3_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__ExprSimple__Group_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWhdsl.g:2883:1: ( rule__ExprSimple__Group_3__0__Impl rule__ExprSimple__Group_3__1 )\n // InternalWhdsl.g:2884:2: rule__ExprSimple__Group_3__0__Impl rule__ExprSimple__Group_3__1\n {\n pushFollow(FOLLOW_30);\n rule__ExprSimple__Group_3__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__ExprSimple__Group_3__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ExprSimple__Group_3_1_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWhdsl.g:3207:1: ( rule__ExprSimple__Group_3_1_3__0__Impl rule__ExprSimple__Group_3_1_3__1 )\n // InternalWhdsl.g:3208:2: rule__ExprSimple__Group_3_1_3__0__Impl rule__ExprSimple__Group_3_1_3__1\n {\n pushFollow(FOLLOW_35);\n rule__ExprSimple__Group_3_1_3__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__ExprSimple__Group_3_1_3__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Mission__Group_3_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDronesDsl.g:655:1: ( rule__Mission__Group_3_3__1__Impl )\n // InternalDronesDsl.g:656:2: rule__Mission__Group_3_3__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Mission__Group_3_3__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ExprSimple__Group_3_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWhdsl.g:3045:1: ( rule__ExprSimple__Group_3_1_1__0__Impl rule__ExprSimple__Group_3_1_1__1 )\n // InternalWhdsl.g:3046:2: rule__ExprSimple__Group_3_1_1__0__Impl rule__ExprSimple__Group_3_1_1__1\n {\n pushFollow(FOLLOW_33);\n rule__ExprSimple__Group_3_1_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__ExprSimple__Group_3_1_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Interface__Group_3_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5663:1: ( rule__Interface__Group_3_0__1__Impl )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5664:2: rule__Interface__Group_3_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group_3_0__1__Impl_in_rule__Interface__Group_3_0__111485);\r\n rule__Interface__Group_3_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
searching Mobile by multiple networkType
public List<Mobile> getAllMobilesByMobileNetworkType(String networkType){ return dao.getAllMobilesBymobileNetworkType(networkType); }
[ "@Test\n public void testSearch() throws Exception {\n System.out.println(\"***** search ******\");\n NetworkSearchSignalingPredicate predicate = new NetworkSearchSignalingPredicate();\n predicate.setDeviceType(DeviceType.Sensor);\n\n List result = instance.search(predicate);\n assertNotNull(result);\n assertEquals(3, result.size());\n }", "@Override\n\tpublic void searchByMobile() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Mobile\").toString().equals(search)) {\n\t\t\t\tpMob = jsnobj.get(\"Mobile\").toString();\n\t\t\t\tpName = jsnobj.get(\"Patient's name\").toString();\n\t\t\t\tpId = jsnobj.get(\"Patient's ID\").toString();\n\t\t\t\tSystem.out.print(++count + \" Name:\" + pName + \" ID:\" + pId + \" Mobile:\" + pMob + \" Age:\"\n\t\t\t\t\t\t+ jsnobj.get(\"Age\") + \"\\n\\n\");\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public abstract List<CustomerType> findCustomerTypebyCustomerTypeNumber(String searchString);", "List<Person> getAllPersonsWithMobile();", "private void doMyNearbySearch(String query, String type) {\n\n Intent intent = new Intent();\n intent.putExtra(NetworkConstants.REQUEST_STRING, query);\n intent.putExtra(NetworkConstants.REQUEST_TYPE, type);\n intent.putExtra(NetworkConstants.REQUEST_LAT, mLocation.getLatitude());\n intent.putExtra(NetworkConstants.REQUEST_LNG, mLocation.getLongitude());\n\n intent.setClass(MainActivity.this, SearchServiceNearby.class);\n startService(intent);\n }", "public static List<Car> carSearch(String type, String make, String model) {\n List<Car> carList = Car.carList;\n List<Car> searchResults = new ArrayList<Car>();\n if (make.equals(\"empty\") && model.equals(\"empty\") && type.equals(\"empty\")) {\n //user submitted no search criteria, the search will fail\n return searchResults;\n }\n if (make.equals(\"empty\") && model.equals(\"empty\")) {\n //user is searching for type\n System.out.println(type);\n for (int i = 0; i < carList.size(); i++) {\n if (carList.get(i).getType().toLowerCase().equals(type.toLowerCase())) {\n System.out.println(\"1 criteria met\");\n searchResults.add(carList.get(i));\n }\n }\n }\n if (type.equals(\"empty\") && model.equals(\"empty\")) {\n //user is searching for make\n System.out.println(make);\n for (int i = 0; i < carList.size(); i++) {\n if (carList.get(i).getMake().toLowerCase().equals(make.toLowerCase())) {\n System.out.println(\"1 criteria met\");\n searchResults.add(carList.get(i));\n }\n }\n }\n if (model.equals(\"empty\")) {\n //user is searching for type and make\n System.out.println(type + make);\n for (int i = 0; i < carList.size(); i++) {\n if (carList.get(i).getType().toLowerCase().equals(type.toLowerCase())) {\n System.out.println(\"1 criteria met\");\n if (carList.get(i).getMake().toLowerCase().equals(make.toLowerCase())) {\n System.out.println(\"2 criteria met\");\n searchResults.add(carList.get(i));\n }\n }\n }\n }\n if (type.equals(\"empty\")) {\n //user is searching for make and model\n System.out.println(make + model);\n for (int i = 0; i < carList.size(); i++) {\n if (carList.get(i).getMake().toLowerCase().equals(make.toLowerCase())) {\n System.out.println(\"1 criteria met\");\n if (carList.get(i).getModel().toLowerCase().equals(model.toLowerCase())) {\n System.out.println(\"2 criteria met\");\n searchResults.add(carList.get(i));\n }\n }\n }\n } else {\n //user is searching for type, make, model\n System.out.println(type + make + model);\n for (int i = 0; i < carList.size(); i++) {\n if (carList.get(i).getType().toLowerCase().equals(type.toLowerCase())) {\n System.out.println(\"1 criteria met\");\n if (carList.get(i).getMake().toLowerCase().equals(make.toLowerCase())) {\n System.out.println(\"2 criteria met\");\n if (carList.get(i).getModel().toLowerCase().equals(model.toLowerCase())) {\n System.out.println(\"all criteria met\");\n searchResults.add(carList.get(i));\n }\n }\n }\n }\n }\n return searchResults;\n }", "ISearchResults<? extends IDeviceType> listDeviceTypes(ISearchCriteria criteria) throws SiteWhereException;", "private Contact searchByPhonenum() {\n System.out.format(\"\\033[31m%s\\033[0m%n\", \"Search By Phone Number\");\n System.out.format(\"\\033[31m%s\\033[0m%n\", \"=================\");\n InputHelper inputHelper = new InputHelper();\n int ans = inputHelper.readInt(\"Type phone number\");\n return this.repository.searchTelNum(ans);\n\n }", "public List<TDeviceInfo> findWhereWcommunityEquals(String wcommunity) throws TDeviceInfoDaoException;", "private static boolean isFastMobileNetwork() {\n TelephonyManager telephonyManager = (TelephonyManager)\n ApiManager.getInstance().getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);\n if (telephonyManager == null) {\n return false;\n }\n\n switch (telephonyManager.getNetworkType()) {\n case TelephonyManager.NETWORK_TYPE_1xRTT:\n return false;\n case TelephonyManager.NETWORK_TYPE_CDMA:\n return false;\n case TelephonyManager.NETWORK_TYPE_EDGE:\n return false;\n case TelephonyManager.NETWORK_TYPE_EVDO_0:\n return true;\n case TelephonyManager.NETWORK_TYPE_EVDO_A:\n return true;\n case TelephonyManager.NETWORK_TYPE_GPRS:\n return false;\n case TelephonyManager.NETWORK_TYPE_HSDPA:\n return true;\n case TelephonyManager.NETWORK_TYPE_HSPA:\n return true;\n case TelephonyManager.NETWORK_TYPE_HSUPA:\n return true;\n case TelephonyManager.NETWORK_TYPE_UMTS:\n return true;\n case TelephonyManager.NETWORK_TYPE_EHRPD:\n return true;\n case TelephonyManager.NETWORK_TYPE_EVDO_B:\n return true;\n case TelephonyManager.NETWORK_TYPE_HSPAP:\n return true;\n case TelephonyManager.NETWORK_TYPE_IDEN:\n return false;\n case TelephonyManager.NETWORK_TYPE_LTE:\n return true;\n case TelephonyManager.NETWORK_TYPE_UNKNOWN:\n return false;\n default:\n return false;\n }\n }", "private static boolean isFastMobileNetwork(Context context) {\n TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n if (telephonyManager == null) {\n return false;\n }\n\n switch (telephonyManager.getNetworkType()) {\n case TelephonyManager.NETWORK_TYPE_1xRTT:\n return false;\n case TelephonyManager.NETWORK_TYPE_CDMA:\n return false;\n case TelephonyManager.NETWORK_TYPE_EDGE:\n return false;\n case TelephonyManager.NETWORK_TYPE_EVDO_0:\n return true;\n case TelephonyManager.NETWORK_TYPE_EVDO_A:\n return true;\n case TelephonyManager.NETWORK_TYPE_GPRS:\n return false;\n case TelephonyManager.NETWORK_TYPE_HSDPA:\n return true;\n case TelephonyManager.NETWORK_TYPE_HSPA:\n return true;\n case TelephonyManager.NETWORK_TYPE_HSUPA:\n return true;\n case TelephonyManager.NETWORK_TYPE_UMTS:\n return true;\n case TelephonyManager.NETWORK_TYPE_EHRPD:\n return true;\n case TelephonyManager.NETWORK_TYPE_EVDO_B:\n return true;\n case TelephonyManager.NETWORK_TYPE_HSPAP:\n return true;\n case TelephonyManager.NETWORK_TYPE_IDEN:\n return false;\n case TelephonyManager.NETWORK_TYPE_LTE:\n return true;\n case TelephonyManager.NETWORK_TYPE_UNKNOWN:\n return false;\n default:\n return false;\n }\n }", "List<TypePatientPropertyCondition> search(String query);", "public static List<Apn> query(Context context) {\n String[] simCodes = getSimOperatorCodes(context);\n String[] networkCodes = getNetworkOperatorCodes(context);\n\n Set<Apn> resultSet = new HashSet<>();\n resultSet.addAll(query(context, simCodes[0], simCodes[1]));\n resultSet.addAll(query(context, networkCodes[0], networkCodes[1]));\n\n List<Apn> result = new ArrayList<>(resultSet.size());\n result.addAll(resultSet);\n return result;\n }", "private void SearchItemType()\n {\n int searchBy = cmbSearchCriteria.getSelectedIndex();\n MasterItemTypeBean[] res;\n\n //SvrUtilities.isDebug = true;\n if(null==p) p = new MasterItemTypeProcessor();\n System.out.println(\"SEARCH BY: \" + searchBy);\n switch(searchBy)\n {\n case 0://Search by item id\n res = p.getItemTypeList(Constants.ITEMTYPE_SEARCHBY_ITEMID,\n txtSearchValue.getText(),\n null);\n break; \n default://Search by item name\n res = p.getItemTypeList(\n Constants.ITEMTYPE_SEARCHBY_ITEMNAME,\n txtSearchValue.getText(),\n null);\n break;\n }\n dataItemType = res;\n //Repaint the item list\n this.repaintItemTypeList(res);\n }", "public PostingsList search( Query query, int queryType, int rankingType, int structureType ) {\r\n\t//\r\n\t// REPLACE THE STATEMENT BELOW WITH YOUR CODE\r\n\t//\r\n PostingsList results = null;\r\n int term_count = query.terms.size();\r\n for(int i = 0; i < term_count; i++){\r\n\r\n }\r\n if(queryType == Index.INTERSECTION_QUERY){\r\n results = intersect(query);\r\n }\r\n if(queryType == Index.PHRASE_QUERY){\r\n results = phrase_search(query);\r\n }\r\n\treturn results;\r\n }", "public String findMobile(String fn, String ln){\n int i = 0;\n String mobile = \"not found\";\n while(members[i] != null){\n if(members[i].fn.equals(fn) && members[i].ln.equals(ln)){\n mobile = members[i].mobile;\n return mobile;\n }\n else{\n i++;\n }\n }\n return mobile;\n }", "private int haveNetworkConnectionType(Context context)\n\t {\n\t\t\tint WIFI = 1;\n\t\t\tint GGG = 2;\n\t\t\tint type = 0;\n\t\t\t\n\t boolean haveConnectedWifi = false;\n\t boolean haveConnectedMobile = false;\n\n\t ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t NetworkInfo[] netInfo = cm.getAllNetworkInfo();\n\t for (NetworkInfo ni : netInfo)\n\t {\n\t if (ni.getTypeName().equalsIgnoreCase(\"WIFI\"))\n\t {\n\t if (ni.isConnected())\n\t {\n\t haveConnectedWifi = true;\n\t //Log.v(\"WIFI CONNECTION \", \"AVAILABLE\");\n\t //Toast.makeText(this,\"WIFI CONNECTION is Available\", Toast.LENGTH_LONG).show();\n\t type = WIFI; \n\t } else\n\t {\n\t // Log.v(\"WIFI CONNECTION \", \"NOT AVAILABLE\");\n\t //Toast.makeText(this,\"WIFI CONNECTION is NOT AVAILABLE\", Toast.LENGTH_LONG).show();\n\t }\n\t }\n\t if (ni.getTypeName().equalsIgnoreCase(\"MOBILE\"))\n\t {\n\t if (ni.isConnected())\n\t {\n\t haveConnectedMobile = true;\n\t // Log.v(\"MOBILE INTERNET CONNECTION \", \"AVAILABLE\");\n\t //Toast.makeText(this,\"MOBILE INTERNET CONNECTION - AVAILABLE\", Toast.LENGTH_LONG).show();\n\t type = GGG;\n\t } else\n\t {\n\t // Log.v(\"MOBILE INTERNET CONNECTION \", \"NOT AVAILABLE\");\n\t //Toast.makeText(this,\"MOBILE INTERNET CONNECTION - NOT AVAILABLE\", Toast.LENGTH_LONG).show();\n\t }\n\t }\n\t }\n\t if (!haveConnectedWifi && !haveConnectedMobile)\n\t \treturn 0;\n\t \n\t return type;\n\t }", "public NetworkInstance[] queryServers(NetworkFilter filter);", "public abstract List<LocationDto> search_type_building\n (BuildingDto building, LocationTypeDto type);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column uc_member.show_flag
public Byte getShowFlag() { return showFlag; }
[ "public String getShowFlag() {\r\n return (String) getAttributeInternal(SHOWFLAG);\r\n }", "public String getDisplayFlag() {\n return displayFlag;\n }", "public Boolean getShowColumn() {\n return this.showColumn;\n }", "public String getMemberStatus(){\n return this.memberStatus;\n }", "public String getDisplayFlag() {\n\t\treturn displayFlag;\n\t}", "public Boolean getFlag() {\n return flag;\n }", "public Boolean getOtaMember() {\n\t\treturn otaMember;\n\t}", "public String getIsFlag() {\r\n return isFlag;\r\n }", "public char getShortflag() {\n return (shortFlag);\n }", "public Integer getIsShow() {\n return isShow;\n }", "public void setShowColumn(Boolean value) {\n this.showColumn = value;\n }", "java.lang.String getFlag();", "public String getFlag() {\n return (String) getAttributeInternal(FLAG);\n }", "boolean getFlag();", "public abstract java.lang.String getFlag_mat_sap();", "protected Boolean getAnonFlag(Element metaElement) {\n Boolean retFlag = null;\n if (metaElement != null) {\n Element userElement = metaElement.getChild(\"user_id\");\n if (userElement != null) {\n String anonString = userElement.getAttributeValue(\"anonFlag\");\n if (anonString != null) {\n if (anonString.equals(\"true\") || anonString.equals(\"false\")) {\n retFlag = new Boolean(anonString);\n }\n }\n }\n }\n return retFlag;\n }", "public Integer getFlag() {\n return flag;\n }", "public String getLongflag() {\n return (longFlag);\n }", "public Byte getIsShow() {\n return isShow;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter method for the COM property "InstancesFailed"
@DISPID(48) // = 0x30. The runtime will prefer the VTID if present @VTID(46) int instancesFailed();
[ "public Integer failedInstanceCount() {\n return this.failedInstanceCount;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsFailed() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSFAILED_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsFailed() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSFAILED_PROP.get());\n }", "public int failed() {\n return this.failed;\n }", "@DISPID(47)\r\n\t// = 0x2f. The runtime will prefer the VTID if present\r\n\t@VTID(45)\r\n\tint instancesSucceeded();", "public Map<String, ClientInfoStatus> getFailedProperties() {\n\n return this.failedProperties;\n }", "public Integer getFailedCount() {\n return failedCount;\n }", "public int getFailedCount() {\n return failedCount;\n }", "public int getFailedCount()\n {\n return failedCount;\n }", "public int getErros() {\n return erros;\n }", "public int getFailedCheckCount() {\n return iFailedCheckCount;\n }", "public int getFailures()\n {\n return ( dom.getAttribute( \"status\" ).equals( \"failure\" ) ) ? 1 : 0; //JG\n }", "public Integer getFailedStackInstancesCount() {\n return this.failedStackInstancesCount;\n }", "int getFailures();", "public Map<Object, Exception> getFailedMessages() {\n\t\treturn failedMessages;\n\t}", "public Integer failedPatchCount() {\n return this.failedPatchCount;\n }", "public int getFailedItemCount() {\n return this.failedItemCount;\n }", "public int getFailures() {\r\n return failures;\r\n }", "Object getFail();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the sessionProperty of a given key , null if the key is not defined..
public void setSessionProperty(String key, Object value) { _sessionPropertyList.put(key, value); }
[ "public static void setObjectInSession(String key, Object object) {\r\n\t\tgetSession().setAttribute(key, object);\r\n\t}", "public void setSessionPrivateObject(Object key, Object o);", "public void setSessionKey(String sessionKey) {\n this.sessionKey = sessionKey == null ? null : sessionKey.trim();\n }", "public Object getSessionProperty(String key) {\n\t\tif (_sessionPropertyList.containsKey(key)) {\n\t\t\treturn _sessionPropertyList.get(key);\n\t\t}\n\t\treturn null;\n\t}", "public void setSessionConfig( Properties sessionConfig )\n\t{\n\t\tif ( sessionConfig == null )\n\t\t{\n\t\t\tMessageFormat problem = new MessageFormat( rbm.getString( rbKeySetNullProp ) );\n\t\t\tthrow new NullPointerException( problem\n\t\t\t\t\t.format( new Object[]{ cl +\"ssc\" } ) );\n\t\t}\n\t\tthis.sessionConfig = sessionConfig;\n\t}", "public void setRuntimeProperty(String key, String value) {\n if (value == null) {\n return;\n }\n this.runtimeProps.setProperty(key, value);\n }", "public void setMadkitProperty(String key, String value) { \n\t\tgetMadkitConfig().setProperty(key, value);\t\n\t}", "void putClientProperty(Object key, Object value);", "public void setKey_property_name(String key_property_name) {\n this.key_property_name = key_property_name == null ? null : key_property_name.trim();\n }", "public void setSessionObject(String name, Object obj);", "public void setPropKey(String propKey) {\n this.propKey = propKey;\n }", "void setSessionData(HashMap<String, String> sessionData);", "void setConfigProperty(String pid, String key, String value, String connection) throws Exception;", "void putProperty( String key, String value )\n {\n Assert.notNull( key, \"Property key must not be null\" );\n Assert.hasLength( key, \"Property key must not be empty\" );\n context.putProperty( key, value );\n addInfo( String.format( \"added property '%s' to logback property map\", key ) );\n }", "public void setJspVariable(String key, Object value) {\n\t\tthis.request.setAttribute(key, value);\n\t}", "public void setRequestProperty(String key, String value) throws IOException {\n if (conn == null) {\n throw new IOException(\"Cannot open output stream on non opened connection\");\n }\n conn.setRequestProperty(key, value);\n }", "public void setKey_property_code(String key_property_code) {\n\t\tthis.key_property_code = key_property_code == null ? null : key_property_code.trim();\n\t}", "public void put(Object key, Object value) throws AspException\n {\n throw new AspReadOnlyException(\"Request.ServerVariables\");\n }", "void setObjectKey(String objectKey);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verify that server side renderers are defined as local.
public void testIsLocal() throws Exception { JavaRendererDef.Builder builder = new JavaRendererDef.Builder().setRendererClass(TestSimpleRenderer.class); JavaRendererDef def = builder.build(); assertTrue("Server side renderers should be defined as Local", def.isLocal()); }
[ "public boolean hasRenderers()\r\n {\r\n return !_renderers.isEmpty();\r\n }", "boolean hasStaticRendering();", "public boolean IsLocal() {\r\n\t\treturn BrickFinder.getDefault().isLocal();\r\n\t}", "public static boolean checkForRender() {\n\t\tif (isDisabled || FlawlessFrames.isActive()) return true;\n\t\t\n\t\tcheckForGC();\n\t\t\n\t\tlong currentTime = Util.getMeasuringTimeMs();\n\t\tlong timeSinceLastRender = currentTime - lastRender;\n\t\t\n\t\tif (!checkForRender(timeSinceLastRender)) return false;\n\t\t\n\t\tlastRender = currentTime;\n\t\treturn true;\n\t}", "public static boolean checkForRender() {\n\t\tMinecraftClient client = MinecraftClient.getInstance();\n\t\tWindow window = ((WindowHolder) client).getWindow();\n\t\t\n\t\tlong currentTime = Util.getMeasuringTimeMs();\n\t\tlong timeSinceLastRender = currentTime - lastRender;\n\t\t\n\t\tboolean isVisible = GLFW.glfwGetWindowAttrib(window.getHandle(), GLFW.GLFW_VISIBLE) != 0;\n\t\tboolean shouldReduceFPS = isForcingLowFPS || !client.isWindowFocused();\n\t\t\n\t\tboolean shouldRender = isVisible && (!shouldReduceFPS || timeSinceLastRender > 1000);\n\t\tif (shouldRender) {\n\t\t\tlastRender = currentTime;\n\t\t} else {\n\t\t\tLockSupport.parkNanos(\"waiting to render\", 30_000_000); // 30 ms\n\t\t}\n\t\treturn shouldRender;\n\t}", "public boolean hasIsLocalMultiplayer() {\n return game.isLocalMultiplayer != null;\n }", "public boolean hasIsLocalMultiplayer() {\n return isLocalMultiplayer != null;\n }", "private boolean multiview(){\n\t\treturn this.LOCAL_PIECE != null;\n\t}", "private boolean isLiveReloadServerDefined(){\n boolean result = false;\n try{\n SWTBotTreeItem tiServer = servers.findServerByName(LiveReloadServerTest.SERVER_NAME);\n if (tiServer != null){\n result = true; \n }\n } catch (WidgetNotFoundException wnfe){\n result = false;\n }\n \n return result;\n }", "boolean isSetWebEnv();", "public boolean isIncludeLocalLimiters() {\n return includeLocalLimiters;\n }", "public static boolean isSecurityOnlyLocalRequests() {\r\n return (isSecurityOnlyLocalRequests);\r\n }", "public boolean isSurfaceWorld() {\n\t\treturn false;\n\t}", "private boolean browserCantRenderFontsConsistently() {\n\r\n return getPage().getWebBrowser().getBrowserApplication()\r\n .contains(\"PhantomJS\")\r\n || (getPage().getWebBrowser().isIE() && getPage()\r\n .getWebBrowser().getBrowserMajorVersion() <= 9);\r\n }", "public boolean isRenderedSupported() {\n return false;\n }", "public boolean isSurfaceWorld()\n {\n return false;\n }", "boolean IsRender();", "private boolean isRequestedFromLocalTransport() {\r\n MessageContext msgCtx = MessageContext.getCurrentMessageContext();\r\n if (msgCtx != null) {\r\n String incomingTransportName = msgCtx.getIncomingTransportName();\r\n return incomingTransportName.equals(ServerConstants.LOCAL_TRANSPORT);\r\n }\r\n return false;\r\n }", "public boolean isLoopbackRequest() {\n\t\tif (this.httpServletRequest == null) {\n\t\t\tlog.warn(\"Missing HTTP Servlet request reference; unable to verify whether this is a loopback request or not\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString headerValue = this.httpServletRequest.getHeader(EndpointConstants.HTTP_HEADER_PROMREGATOR_INSTANCE_IDENTIFIER);\n\t\tif (headerValue == null) {\n\t\t\t// the header was not set - so this can't be a Promregator instance anyway\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tboolean loopback = this.promregatorInstanceIdentifier.toString().equals(headerValue);\n\t\t\n\t\tif (loopback) {\n\t\t\tlog.error(\"Erroneous loopback request detected. One of your targets is improperly pointing back to Promregator itself. Please revise your configuration!\");\n\t\t}\n\t\t\n\t\treturn loopback;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a planet with a radius, orbitRadius, tilt, texture and a number of moons
public void createPlanet(float radius, float orbitRadius, float axisTilt, Texture texture, List<Moon> moons, float speed){ Planet planet = new Planet(radius,orbitRadius, axisTilt, speed); planet.setTexture(texture); for(Moon moon : moons) moon.setCenter(planet); planet.addMoons(moons); planets.add(planet); }
[ "public void createPlanet(float radius, float orbitRadius, float axisTilt, Texture texture, List<Moon> moons,List<Float []> ringsSpecs, List<Float [] > ringsColors, float speed){\n\t\tPlanet planet = new Planet(radius,orbitRadius, axisTilt, ringsSpecs,ringsColors, speed);\n\t\tplanet.setTexture(texture);\n\n\t\tfor(Moon moon : moons)\n\t\t\tmoon.setCenter(planet);\n\t\t\n\t\tplanet.addMoons(moons);\n\n\t\tplanets.add(planet);\n\t}", "public void createPlanet(float radius, float orbitRadius, float axisTilt, Texture texture, float speed){\n\t\tPlanet planet = new Planet(radius,orbitRadius, axisTilt, speed);\n\t\tplanet.setTexture(texture);\n\t\tplanets.add(planet);\n\t}", "public void createPlanet(float radius, float orbitRadius, float axisTilt, float speed){\n\t\tPlanet planet = new Planet(radius,orbitRadius, axisTilt, speed);\n\t\tplanets.add(planet);\n\t}", "protected void initializeCirclesOfPlanet(){ // FIXME: 18.11.2018 put normal data references\n this.addNewCharacter(new PlanetObject(Textures.circle, Fin.planetCenter, Fin.CentralCircleRadius));\n for(int i = 1; i <= Fin.numberOfLayers; i++){\n float layerRadius = this.layerRadius(Fin.CentralCircleRadius, i, Fin.defaultCircleRadius);\n int numberOfCirclesPerLayer = (int)( Math.PI * layerRadius / Fin.defaultCircleRadius);\n float deltaAngle = (float) (2 * Math.PI / numberOfCirclesPerLayer);\n float angle = 0.0f;\n for(int j = 0; j < numberOfCirclesPerLayer; j++){\n this.addNewCharacter(\n new PlanetObject(Textures.circle,\n Fin.planetCenter,\n angle,\n layerRadius,\n Fin.defaultCircleRadius\n )\n );\n angle += deltaAngle;\n }\n }\n characters.get(10).setColor(new Color(1,1,0,1));\n characters.get(112).setColor(new Color(0,1,1,1));\n characters.get(104).setColor(new Color(0,1,1,1));\n characters.get(134).setColor(new Color(0,1,1,1));\n characters.get(112).setColor(new Color(0,1,1,1));\n characters.get(101).setColor(new Color(1,0.5f,1,1));\n characters.get(45).setColor(new Color(1,0,1,1));\n }", "private void createPlanets()\n\t{\n\t\tdouble semimajorAxis;\n\t\tdouble eccentricityOfOrbit;\n\t\tdouble inclinationOnPlane;\n\t\tdouble perihelion;\n\t\tdouble longitudeOfAscendingNode;\n\t\tdouble meanLongitude;\n String unicode_icon;\n\t\t\n\t\tplanetList.clear();\n\t\t\n\t\t//*****************\n\t\t//create Mercury\n\t\t//*****************\n\t\tPlanet mercury = new Planet(\"Mercury\");\n\t\tunicode_icon = \"\\u263f\";\n\t\tmeanLongitude = 60.750646;\n\t\tsemimajorAxis = 0.387099;\n\t\teccentricityOfOrbit = 0.205633;\n\t\tinclinationOnPlane = 7.004540;\n\t\tperihelion = 77.299833;\n\t\tlongitudeOfAscendingNode = 48.212740;\n\t\t\n\t\tmercury.setUnicodeIcon(unicode_icon);\n\t\tmercury.setSemimajorAxis(semimajorAxis);\n\t\tmercury.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tmercury.setInclinationOnPlane(inclinationOnPlane);\n\t\tmercury.setPerihelion(perihelion);\n\t\tmercury.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tmercury.setMeanLongitude(meanLongitude);\n\t\tmercury.setOrbitalPeriod(0.24852);\n\t\tplanetList.add(mercury);\n\t\t\n\t\t//*****************\n\t\t//create Venus\n\t\t//*****************\n\t\tPlanet venus = new Planet(\"Venus\");\n\t\tunicode_icon = \"\\u2640\";\n\t\tmeanLongitude = 88.455855;\n\t\tsemimajorAxis = 0.723332;\n\t\teccentricityOfOrbit = 0.006778;\n\t\tinclinationOnPlane = 3.394535;\n\t\tperihelion = 131.430236;\n\t\tlongitudeOfAscendingNode = 76.589820;\n\t\t\n\t\tvenus.setUnicodeIcon(unicode_icon);\n\t\tvenus.setSemimajorAxis(semimajorAxis);\n\t\tvenus.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tvenus.setInclinationOnPlane(inclinationOnPlane);\n\t\tvenus.setPerihelion(perihelion);\n\t\tvenus.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tvenus.setMeanLongitude(meanLongitude);\n\t\tvenus.setOrbitalPeriod(0.615211);\n\t\tplanetList.add(venus);\n\t\t\n\t\t//*****************\n\t\t//create Earth\n\t\t//*****************\n\t\tearth = new Planet(\"Earth\");\n\t\tunicode_icon = \"\\u2695\";\t\n\t\tmeanLongitude = 99.403308;\n\t\tsemimajorAxis = 1.000;\n\t\teccentricityOfOrbit = 0.016713;\n\t\tinclinationOnPlane = 1.00;\n\t\tperihelion = 102.768413;\n\t\tlongitudeOfAscendingNode = 1.00;\n\t\t\n\t\tearth.setUnicodeIcon(unicode_icon);\n\t\tearth.setSemimajorAxis(semimajorAxis);\n\t\tearth.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tearth.setInclinationOnPlane(inclinationOnPlane);\n\t\tearth.setPerihelion(perihelion);\n\t\tearth.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tearth.setMeanLongitude(meanLongitude);\n\t\tearth.setOrbitalPeriod(1.00004);\n\t\t//earth not added to list, kept as separate object\n\t\t\n\t\t//*****************\n\t\t//create Mars\n\t\t//*****************\n\t\tPlanet mars = new Planet(\"Mars\");\n\t\tunicode_icon = \"\\u2642\";\n\t\tmeanLongitude = 240.739474;\n\t\tsemimajorAxis = 1.523688;\n\t\teccentricityOfOrbit = 0.093396;\n\t\tinclinationOnPlane = 1.849736;\n\t\tperihelion = 335.874939;\n\t\tlongitudeOfAscendingNode = 49.480308;\n\t\t\n\t\tmars.setUnicodeIcon(unicode_icon);\n\t\tmars.setSemimajorAxis(semimajorAxis);\n\t\tmars.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tmars.setInclinationOnPlane(inclinationOnPlane);\n\t\tmars.setPerihelion(perihelion);\n\t\tmars.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tmars.setMeanLongitude(meanLongitude);\n\t\tmars.setOrbitalPeriod(1.880932);\n\t\tplanetList.add(mars);\n\t\t\n\t\t//*****************\n\t\t//create Jupiter\n\t\t//*****************\n\t\tPlanet jupiter = new Planet(\"Jupiter\");\n\t\tunicode_icon = \"\\u2643\";\n\t\tmeanLongitude = 90.638185;\n\t\tsemimajorAxis = 5.202561;\n\t\teccentricityOfOrbit = 0.048482;\n\t\tinclinationOnPlane = 1.303613;\n\t\tperihelion = 14.170747;\n\t\tlongitudeOfAscendingNode = 100.353142;\n\t\t\n\t\tjupiter.setUnicodeIcon(unicode_icon);\n\t\tjupiter.setSemimajorAxis(semimajorAxis);\n\t\tjupiter.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tjupiter.setInclinationOnPlane(inclinationOnPlane);\n\t\tjupiter.setPerihelion(perihelion);\n\t\tjupiter.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tjupiter.setMeanLongitude(meanLongitude);\n\t\tjupiter.setOrbitalPeriod(11.863075);\n\t\tplanetList.add(jupiter);\n\t\t\n\t\t//*****************\n\t\t//create Saturn\n\t\t//*****************\n\t\tPlanet saturn = new Planet(\"Saturn\");\n\t\tunicode_icon = \"\\u2644\";\n\t\tmeanLongitude = 287.690033;\n\t\tsemimajorAxis = 9.554747;\n\t\teccentricityOfOrbit = 0.055581;\n\t\tinclinationOnPlane = 2.488980;\n\t\tperihelion = 92.861407;\n\t\tlongitudeOfAscendingNode = 113.576139;\n\t\t\t\t\n\t\tsaturn.setUnicodeIcon(unicode_icon);\n\t\tsaturn.setSemimajorAxis(semimajorAxis);\n\t\tsaturn.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tsaturn.setInclinationOnPlane(inclinationOnPlane);\n\t\tsaturn.setPerihelion(perihelion);\n\t\tsaturn.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tsaturn.setMeanLongitude(meanLongitude);\n\t\tsaturn.setOrbitalPeriod(29.471362);\n\t\tplanetList.add(saturn);\n\t\t\n\t\t//*****************\n\t\t//create Uranus\n\t\t//*****************\n\t\tPlanet uranus = new Planet(\"Uranus\");\n\t\tunicode_icon = \"\\u2645\";\n\t\tmeanLongitude = 271.063148;\n\t\tsemimajorAxis = 19.21814;\n\t\teccentricityOfOrbit = 0.046321;\n\t\tinclinationOnPlane = 0.773059;\n\t\tperihelion = 172.884833;\n\t\tlongitudeOfAscendingNode = 73.926961;\n\t\t\n\t\turanus.setUnicodeIcon(unicode_icon);\n\t\turanus.setSemimajorAxis(semimajorAxis);\n\t\turanus.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\turanus.setInclinationOnPlane(inclinationOnPlane);\n\t\turanus.setPerihelion(perihelion);\n\t\turanus.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\turanus.setMeanLongitude(meanLongitude);\n\t\turanus.setOrbitalPeriod(84.039492);\n\t\tplanetList.add(uranus);\n\t\t\n\t\t//*****************\n\t\t//create Neptune\n\t\t//*****************\n\t\tPlanet neptune = new Planet(\"Neptune\");\n\t\tunicode_icon = \"\\u2646\";\n\t\tmeanLongitude = 282.349556;\n\t\tsemimajorAxis = 30.109570;\n\t\teccentricityOfOrbit = 0.009003;\n\t\tinclinationOnPlane = 1.770646;\n\t\tperihelion = 48.009758;\n\t\tlongitudeOfAscendingNode = 131.670599;\n\t\t\n\t\tneptune.setUnicodeIcon(unicode_icon);\n\t\tneptune.setSemimajorAxis(semimajorAxis);\n\t\tneptune.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tneptune.setInclinationOnPlane(inclinationOnPlane);\n\t\tneptune.setPerihelion(perihelion);\n\t\tneptune.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tneptune.setMeanLongitude(meanLongitude);\n\t\tneptune.setOrbitalPeriod(164.79246);\n\t\tplanetList.add(neptune);\n\t\t\n\t\t//*****************\n\t\t//create Pluto\n\t\t//*****************\n\t\tPlanet pluto = new Planet(\"Pluto\");\n\t\tunicode_icon = \"\\u263f\";\n\t\tmeanLongitude = 246.77027;\n\t\tsemimajorAxis = 39.3414;\n\t\teccentricityOfOrbit = 0.24624;\n\t\tinclinationOnPlane = 17.1420;\n\t\tperihelion = 224.133;\n\t\tlongitudeOfAscendingNode = 110.144;\n\t\t\n\t\tpluto.setUnicodeIcon(unicode_icon);\n\t\tpluto.setSemimajorAxis(semimajorAxis);\n\t\tpluto.setEccentricityOfOrbit(eccentricityOfOrbit);\n\t\tpluto.setInclinationOnPlane(inclinationOnPlane);\n\t\tpluto.setPerihelion(perihelion);\n\t\tpluto.setLongitudeOfAscendingNode(longitudeOfAscendingNode);\n\t\tpluto.setMeanLongitude(meanLongitude);\n\t\tpluto.setOrbitalPeriod(246.77027);\n\t\tplanetList.add(pluto);\n\t}", "void createPlanetSurface(int width, int height) {\r\n\t\trenderer.surface = new PlanetSurface();\r\n\t\trenderer.surface.width = width;\r\n\t\trenderer.surface.height = height;\r\n\t\trenderer.surface.computeRenderingLocations();\r\n\t\tui.allocationPanel.buildings = renderer.surface.buildings;\r\n\t}", "private void init() {\r\n\r\n\t\tPlanetLayoutGenerator gen = new PlanetLayoutGenerator();\r\n\t\tint planetCount = 15;\r\n\t\tint width = 5, height = 5, depth = 5;\r\n\t\tint[][][] layout = gen.generate(width, height, depth, planetCount);\r\n\t\tfinal float minSize = 4, maxSize = 10;\r\n\t\tfinal float gap = (C.World.PlanetBoxSize - maxSize*width)/(width-1);\r\n\r\n\t\tTextureRegion textures[] = new TextureRegion[] {\r\n\t\t\tassets.planetNeptune,\r\n\t\t\tassets.planetSaturn,\r\n\t\t\tassets.planetEarth,\r\n\t\t};\r\n\t\tfloat x = -C.World.PlanetBoxSize/2 + maxSize/2;\r\n\t\tfloat y = -C.World.PlanetBoxSize/2 + maxSize/2;\r\n\t\tfloat z = -C.World.PlanetBoxSize/2 + maxSize/2;\r\n\r\n\t\tfor (int ix = 0; ix < width; ++ix) {\r\n\t\t\tfor (int iy = 0; iy < height; ++iy) {\r\n\t\t\t\tfor (int iz = 0; iz < depth; ++iz) {\r\n\t\t\t\t\tif (layout[ix][iy][iz] == 1) {\r\n\t\t\t\t\t\tTextureRegion tex = textures[(ix+iy+iz)%3];\r\n\t\t\t\t\t\tfloat size = MathUtils.random(minSize, maxSize);\r\n\r\n\t\t\t\t\t\tfactory.createPlanet(x+ix*(maxSize+gap), y+iy*(maxSize+gap), z+iz*(maxSize+gap), size, 0, tex);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tEntity player = factory.createPlayerShip(0, 0, 5);\r\n\t\tplayerSystem.setPlayer(player);\r\n\r\n\t\tcollisions.relations.connectGroups(CollisionGroups.PLAYER_2D, CollisionGroups.PLANETS_2D);\r\n\t}", "private void addRandomSphere(){\n \t\tRandom randy = new Random();\n \t\tfloat sphereSize = randy.nextInt(200) / 10.0f;\n \t\t\n \t\tTextures sphereTexture;\n \t\tString tex;\n \t\t\n \t\tswitch(randy.nextInt(4)){\n \t\tcase 0:\n \t\t\tsphereTexture = Textures.EARTH;\n \t\t\ttex = \"Earth\";\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\tsphereTexture = Textures.MERCURY;\n \t\t\ttex = \"Mercury\";\n \t\t\tbreak;\n \t\tcase 2:\n \t\t\tsphereTexture = Textures.VENUS;\n \t\t\ttex = \"Venus\";\n \t\t\tbreak;\n \t\tcase 3:\n \t\t\tsphereTexture = Textures.MARS;\n \t\t\ttex = \"Mars\";\n \t\t\tbreak;\n \t\tdefault:\n \t\t\tsphereTexture = Textures.EARTH;\n \t\t\ttex = \"Earth\";\n \t\t}\n \t\t\n \t\tfloat sphereX = randy.nextFloat() * 75.0f;\n \t\tfloat sphereY = randy.nextFloat() * 75.0f;\n \t\tfloat sphereZ = -100.0f;\n \t\tVector3f sphereLocation = new Vector3f(sphereX, sphereY, sphereZ);\n \t\t\n \t\t// put the sphere right in front of the camera\n \t\tVector3f downInFront = QuaternionHelper.rotateVectorByQuaternion(new Vector3f(0.0f, 0.0f, 300.0f), camera.rotation);\n \t\t\n \t\tVector3f.add(camera.location, downInFront, downInFront);\n \t\t\n \t\tVector3f.add(sphereLocation, downInFront, sphereLocation);\n \t\t\n \t\tQuaternion sphereRotation = new Quaternion(0.0f, 0.0f, 0.0f, 1.0f);\n \t\t\n \t\t//float sphereMass = randy.nextFloat() * 10.0f;\n \t\tfloat sphereMass = sphereSize * 2.0f;\n \t\t\n \t\tPlanet p = new Planet(sphereLocation, sphereRotation, sphereSize, sphereMass, 0.0f, sphereTexture);\n \t\tp.type = tex;\n \t\t\n \t\tEntities.addDynamicEntity(p);\n \t}", "@Ignore\n public Planet(String planetName) {\n this.planetName = planetName;\n this.xLoc = (int)(Math.random() * Universe.xRange);\n this.yLoc = (int)(Math.random() * Universe.yRange);\n this.techLevel = TechLevel.values()[(int)(Math.random() * TechLevel.numLevels)];\n this.resourceType = ResourceType.values()[(int)(Math.random() * ResourceType.numTypes)];\n\n planetPrices = calculatePrices();\n planetInventory = calculateAmounts();\n\n Log.i(\"Planet Information: \", this.toString());\n }", "public static void createPlanets() {\n\t\tplanets = new PlanetV4[planetNames.length];\n\t\tfor (int i = 0; i < planetNames.length; i ++) {\n\t\t\tplanets[i] = new PlanetV4(planetNames[i], planetMasses[i], planetDiameters[i], planetPositions[i], planetVelocities[i], planetCircles[i]);\n\t\t\t//mainFrame.add(planets[i]);\n\t\t}\n\t}", "public TerrestrialPlanet(String name, double diameter, double mass, boolean oxygen) \r\n\t{\r\n\t\tsuper(name, diameter, mass);\r\n\t\t\r\n\t\tthis._oxygen = oxygen;\r\n\t}", "public Planet(String pplanetName) {\n this.planetName = pplanetName;\n Random rand = new Random();\n clockwiseOrbit = rand.nextBoolean();\n size = 10 + rand.nextInt(10);\n \n int randPlanetTech = rand.nextInt(PlanetTechLevel.values().length);\n techLevel = PlanetTechLevel.values()[randPlanetTech];\n color = UIHelper.randomColorString();\n \n int randPlanetType = rand.nextInt(PlanetType.values().length);\n type = PlanetType.values()[randPlanetType];\n event = PlanetEvent.NONE;\n \n int randGovernmentType = rand.nextInt(GovernmentType.values().length);\n GovernmentType governmentType = GovernmentType.values()[randGovernmentType];\n government = new Government(governmentType);\n }", "public Planet(double x, double y, double velocity_x, double velocity_y, double my_mass, double my_radius,\r\n\t\t\tString name) {\r\n\t\tsuper(x, y, velocity_x, velocity_y, my_mass, my_radius, name);\r\n\t}", "public void processPlanet(XElement planet) {\r\n\t\tPlanet p = new Planet();\r\n\t\tp.id = planet.get(\"id\");\r\n\t\tp.name = planet.get(\"name\");\r\n\t\tString nameLabel = planet.get(\"label\");\r\n\t\tif (nameLabel != null) {\r\n\t\t\tp.name = labels.get(nameLabel); \r\n\t\t}\r\n\t\tp.owner = players.get(planet.get(\"owner\"));\r\n\t\tp.race = planet.get(\"race\");\r\n\t\tp.x = Integer.parseInt(planet.get(\"x\"));\r\n\t\tp.y = Integer.parseInt(planet.get(\"y\"));\r\n\t\t\r\n\t\tp.diameter = Integer.parseInt(planet.get(\"size\"));\r\n\t\tp.population = Integer.parseInt(planet.get(\"population\"));\r\n\t\t\r\n\t\tp.allocation = ResourceAllocationStrategy.valueOf(planet.get(\"allocation\"));\r\n\t\tp.autoBuild = AutoBuild.valueOf(planet.get(\"autobuild\"));\r\n\t\tp.tax = TaxLevel.valueOf(planet.get(\"tax\"));\r\n\t\tp.rotationDirection = RotationDirection.valueOf(planet.get(\"rotate\"));\r\n\t\tp.morale = Integer.parseInt(planet.get(\"morale\"));\r\n\t\tp.taxIncome = Integer.parseInt(planet.get(\"tax-income\"));\r\n\t\tp.tradeIncome = Integer.parseInt(planet.get(\"trade-income\"));\r\n\t\t\r\n\t\tString populationDelta = planet.get(\"population-last\");\r\n\t\tif (populationDelta != null && !populationDelta.isEmpty()) {\r\n\t\t\tp.lastPopulation = Integer.parseInt(populationDelta);\r\n\t\t} else {\r\n\t\t\tp.lastPopulation = p.population;\r\n\t\t}\r\n\t\tString lastMorale = planet.get(\"morale-last\");\r\n\t\tif (lastMorale != null && !lastMorale.isEmpty()) {\r\n\t\t\tp.lastMorale = Integer.parseInt(lastMorale);\r\n\t\t} else {\r\n\t\t\tp.lastMorale = p.morale;\r\n\t\t}\r\n\t\t\r\n\t\tXElement surface = planet.childElement(\"surface\");\r\n\t\tString si = surface.get(\"id\");\r\n\t\tString st = surface.get(\"type\");\r\n\t\tp.type = galaxyModel.planetTypes.get(st);\r\n\t\tp.surface = p.type.surfaces.get(Integer.parseInt(si)).copy();\r\n\t\tp.surface.parseMap(planet, null, buildingModel);\r\n\t\t\r\n\t\tplanets.add(p);\r\n\t\tif (p.owner != null) {\r\n\t\t\tp.owner.planets.put(p, PlanetKnowledge.BUILDING);\r\n\t\t\tif (p.owner == player) {\r\n\t\t\t\tPlanetInventoryItem sat = new PlanetInventoryItem();\r\n\t\t\t\tsat.owner = player;\r\n\t\t\t\tsat.count = 1;\r\n\t\t\t\tsat.type = researches.get(\"Hubble2\");\r\n\t\t\t\tp.inventory.add(sat);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (p.owner == null || p.owner != player) {\r\n\t\t\t// FIXME for testing the radar/info\r\n\t\t\tPlanetInventoryItem sat = new PlanetInventoryItem();\r\n\t\t\tsat.owner = player;\r\n\t\t\tsat.count = 1;\r\n\t\t\tif (planets.size() % 2 == 0) {\r\n\t\t\t\tsat.type = researches.get(\"Satellite\");\r\n\t\t\t\tp.inventory.add(sat);\r\n\t\t\t} else {\r\n\t\t\t\tif (p.owner != null && p.owner != player) {\r\n\t\t\t\t\tif (planets.size() % 3 == 0) {\r\n\t\t\t\t\t\tsat.type = researches.get(\"SpySatellite1\");\r\n\t\t\t\t\t\tp.inventory.add(sat);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsat.type = researches.get(\"SpySatellite2\");\r\n\t\t\t\t\t\tp.inventory.add(sat);\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}", "public Planet(Planet p){\n this.xxPos = p.xxPos;\n this.yyPos = p.yyPos;\n this.xxVel = p.xxVel;\n this.yyVel = p.yyVel;\n this.mass = p.mass;\n this.imgFileName = p.imgFileName;\n }", "public MinorPlanet(double posX, double posY, double speedX, double speedY, double radius) {\r\n\t\tsuper(posX,posY,speedX,speedY,radius);\r\n\t}", "public Ocean()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n BF bf = new BF();\n addObject(bf,500,300);\n SF sf = new SF();\n addObject(sf,100,300);\n }", "private Vector3f getPlanetPosition() {\r\n\t\tVector3f position = new Vector3f();\r\n\t\tdouble theta = Math.random() * 2 * Math.PI;\r\n\t\tdouble r = MathUtils.randRange(MIN_ORBITAL_RADIUS, MAX_ORBITAL_RADIUS);\r\n\t\tposition.x = (float) (r * Math.cos(theta));\r\n\t\tposition.z = (float) (r * Math.sin(theta));\r\n\t\t// Introduce y variation\r\n\t\tposition.y = (float) MathUtils.randRange(MIN_PLANET_Y, MAX_PLANET_Y);\r\n\t\treturn position;\r\n\t}", "public Planet(Planet p) {\n this.xxPos = p.xxPos;\n this.yyPos = p.yyPos;\n this.xxVel = p.xxVel;\n this.yyVel = p.yyVel;\n this.mass = p.mass;\n this.imgFileName = p.imgFileName;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
7 number of customers in each country, ordered DESC
public ArrayList<CustomerCountry> getCountryByCustomerCount(){ ArrayList<CustomerCountry> customerCountry = new ArrayList<>(); try{ // try and connect conn = DriverManager.getConnection(URL); // make sql query // (https://stackoverflow.com/questions/39565394/how-to-rename-result-set-of-count-in-sql) PreparedStatement preparedStatement = conn.prepareStatement("SELECT Country, COUNT(*) as numcustomers FROM Customer GROUP BY Country ORDER BY numcustomers DESC"); // execute query ResultSet set = preparedStatement.executeQuery(); while(set.next()){ customerCountry.add(new CustomerCountry(set.getString("Country"), set.getString("numcustomers"))); } } catch(Exception exception){ System.out.println(exception.toString()); } finally{ try{ conn.close(); } catch (Exception exception){ System.out.println(exception.toString()); } } return customerCountry; }
[ "int getCountriesCount();", "public void streamPipeline7() {\n countries.stream().sorted(new Comparator<Country>() {\n @Override\n public int compare(Country o1, Country o2) {\n return Long.compare(o1.getTimezones().size(), o2.getTimezones().size());\n }\n }).map(Country::getName).forEach(System.out::println);\n }", "public CountryList sortByCount() {\n\t\tCountryList sorted = new CountryList();\n\t\tfor (int i = 0; i < this.nextAvailable; i++)\n\t\t\tsorted.binInsert(new Country(this.countries.get(i)));\n\t\tsorted.totalCount = this.totalCount;\n\t\treturn sorted;\n\t}", "public static void printGroupByCountryCount(){\n for (CountryGroup group : query.groupByCountry()) {\n System.out.println(\"There are \" + group.people.size() + \" people in \" + group.country);\n }\n }", "@RequestMapping(value = \"/country\", method = RequestMethod.GET)\n public List<CountryCustomerCount> customersInCountry() {\n return customerRepository.customerInCountry();\n }", "@RequestMapping(value=\"/api/customers/country\", method = RequestMethod.GET)\n public ArrayList<CustomersPerCountry> countAmountPerCountry(){\n return customerRepository.countAmountPerCountry();\n }", "private void setCountryLabels()\n {\n int usCount = 0;\n int ukCount = 0;\n int canadaCount = 0;\n\n for (Customer customer : customerList) {\n if (customer.getCountry().equals(\"U.S\")) { usCount++; }\n if (customer.getCountry().equals(\"UK\")) { ukCount++; }\n if (customer.getCountry().equals(\"Canada\")) { canadaCount++; }\n }\n\n usCountLabel.setText(Integer.toString(usCount));\n ukCountLabel.setText(Integer.toString(ukCount));\n canadaCountLabel.setText(Integer.toString(canadaCount));\n\n }", "public CountryList sortByCountDesc() {\n\t\tCountryList sorted = new CountryList();\n\t\tfor (int i = 0; i < this.nextAvailable; i++)\n\t\t\tsorted.binInsertDesc(new Country(this.countries.get(i)));\n\t\tsorted.totalCount = this.totalCount;\n\t\treturn sorted;\n\t}", "public static long howManyMoreAContinentCountries( Stream<Country> countries ) {\n\t\treturn -1; // TODO\n\t}", "public int getNoOfCountries()\r\n {\r\n return this._noOfCountries;\r\n }", "public List<CountDTO> getDataProviderCountsForCountry(String isoCountryCode) throws ServiceException;", "@Query(\"SELECT c.region, COUNT(c) FROM Country c GROUP BY c.region ORDER BY COUNT(c) DESC\")\n\tList<Object[]> query8();", "@FXML\r\n void onActionGetReport(ActionEvent event) {\r\n int usCount = 0;\r\n int ukCount = 0;\r\n int canadaCount = 0;\r\n String us = \"U.S\";\r\n String uk = \"UK\";\r\n String can = \"Canada\";\r\n\r\n for(Customer c : DBCustomer.getAllCustomers()){\r\n if(c.getCountry().equals(can)){\r\n canadaCount += 1;\r\n }\r\n if(c.getCountry().equals(uk)){\r\n ukCount += 1;\r\n }\r\n if(c.getCountry().equals(us)){\r\n usCount += 1;\r\n }\r\n }\r\n canadaCountTxt.setText(canadaCount + \" Customers\");\r\n ukCountTxt.setText(ukCount + \" Customers\");\r\n usCountTxt.setText(usCount + \" Customers\");\r\n }", "int getCountries(int index);", "public int countryCount(){\n\t\treturn this.countries.size();\n\t}", "private List<Map<String, Object>> selectMaxCitiesCountries(List<Map<String, Object>> descCountryList) {\n long requiredCitiesCount = (Long)descCountryList.get(0).get(\"citiesCount\");\n List<Map<String, Object>> maxCityCountries = new LinkedList<>();\n\n for (Map<String, Object> countryMap : descCountryList) {\n if ((Long)countryMap.get(\"citiesCount\") < requiredCitiesCount) {\n break;\n }\n maxCityCountries.add(countryMap);\n }\n\n return maxCityCountries;\n }", "public String dominantCountry(String orbit) {\n Collection<Launch> launches = dao.loadAll(Launch.class);\n Collection<Rocket> rockets = dao.loadAll(Rocket.class);\n List<Launch> launchList = new ArrayList<>(launches);\n List<Rocket> rocketList = new ArrayList<>(rockets);\n Map<String, Integer> countryMap = new HashMap<>();\n for(Launch launch: launchList) {\n if (launch.getOrbit().equals(orbit)) {\n Rocket rocket = launch.getLaunchVehicle();\n if (countryMap.containsKey(launch.getLaunchVehicle().getCountry())) {\n String country = rocket.getCountry();\n int number_launches = countryMap.get(country);\n countryMap.put(country, ++number_launches);\n }\n else\n {\n countryMap.put(rocket.getCountry(),1);\n }\n }\n }\n Map<String, Integer> sortedRocket = countryMap\n .entrySet()\n .stream()\n .sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,\n LinkedHashMap::new));\n String topRockets = sortedRocket.toString();\n System.out.println(topRockets);\n //for (String country : sortedRocket.keySet()){\n //topRockets.valueOf(country);\n //}\n Map.Entry<String,Integer> entry = countryMap.entrySet().iterator().next();\n String country = entry.getKey();\n return country;\n }", "public List<CountDTO> getDataResourceCountsForCountry(String isoCountryCode, boolean georeferencedOnly) throws ServiceException;", "@RequestMapping(value = \"/api/customers/country\", method = RequestMethod.GET)\n public ArrayList<CustomerCountry> getCustomersPerCountry() {\n return customerRepository.getCustomersPerCountry();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'IMPLEMENT_FX' field.
public void setIMPLEMENTFX(java.lang.CharSequence value) { this.IMPLEMENT_FX = value; }
[ "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setIMPLEMENTFX(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.IMPLEMENT_FX = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "public java.lang.CharSequence getIMPLEMENTFX() {\n return IMPLEMENT_FX;\n }", "public java.lang.CharSequence getIMPLEMENTFX() {\n return IMPLEMENT_FX;\n }", "public boolean hasIMPLEMENTFX() {\n return fieldSetFlags()[3];\n }", "void setFx(Fx fx);", "public void setFxQuoteType(java.lang.String fxQuoteType) {\r\n this.fxQuoteType = fxQuoteType;\r\n }", "public void setFxQuoteID(java.lang.String fxQuoteID) {\r\n this.fxQuoteID = fxQuoteID;\r\n }", "void xsetFE(org.apache.xmlbeans.XmlDate fe);", "public void setDocFlavor() {\n if(useServiceFormat) {\n if(pageable) {\n myFlavor = DocFlavor.SERVICE_FORMATTED.PAGEABLE;\n }\n if(printable) {\n myFlavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;\n }\n if(renderable_image) {\n myFlavor = DocFlavor.SERVICE_FORMATTED.RENDERABLE_IMAGE;\n }\n }\n if(filetypestr.equalsIgnoreCase( \"text\") || filetypestr.equalsIgnoreCase( \"txt\") || filetypestr.equalsIgnoreCase( \"text/plain\")) {\n myFlavor = new DocFlavor(\"application/octet-stream\", \"java.io.InputStream\");\n }\n if(filetypestr.equalsIgnoreCase( \"html\") || filetypestr.equalsIgnoreCase( \"text/html\")) {\n // System.out.println(\"setDocFlaovr is setting HTML....\");\n myFlavor = new DocFlavor(\"application/octet-stream\", \"java.io.InputStream\");\n }\n if(filetypestr.equalsIgnoreCase( \"rtf\") || filetypestr.equalsIgnoreCase( \"text/rtf\")) {\n // System.out.println(\"setDocFlaovr is setting RTF....\");\n myFlavor = new DocFlavor(\"application/octet-stream\", \"java.io.InputStream\");\n }\n if(filetypestr.equalsIgnoreCase( \"GIF\")) {\n myFlavor = DocFlavor.INPUT_STREAM.GIF;\n }\n if(filetypestr.equalsIgnoreCase( \"JPEG\")) {\n myFlavor = DocFlavor.INPUT_STREAM.JPEG;\n }\n if(filetypestr.equalsIgnoreCase( \"PCL\")) {\n myFlavor = DocFlavor.INPUT_STREAM.PCL;\n }\n if(filetypestr.equalsIgnoreCase( \"PDF\")) {\n // System.out.println(\"setDocFlaovr is setting PDF....\");\n myFlavor = DocFlavor.INPUT_STREAM.PDF;\n }\n if(filetypestr.equalsIgnoreCase( \"POSTSCRIPT\")) {\n // System.out.println(\"setDocFlaovr is setting POSTSCRIPT....\");\n myFlavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;\n }\n }", "Fx getFx();", "public void setTypeFx(Integer typeFx) {\n this.typeFx = typeFx;\n }", "public void setPROMISSORY_FX_TYPE(String PROMISSORY_FX_TYPE) {\r\n this.PROMISSORY_FX_TYPE = PROMISSORY_FX_TYPE == null ? null : PROMISSORY_FX_TYPE.trim();\r\n }", "public void setFxQuoteRate(java.lang.String fxQuoteRate) {\r\n this.fxQuoteRate = fxQuoteRate;\r\n }", "public void setPolicyFXRate(entity.PolicyFXRate value) {\n __getInternalInterface().setFieldValue(POLICYFXRATE_PROP.get(), value);\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder clearIMPLEMENTFX() {\n IMPLEMENT_FX = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "public void setPolicyFXRate(entity.PolicyFXRate value) {\n __getInternalInterface().setFieldValue(POLICYFXRATE_PROP.get(), value);\n }", "public String getPROMISSORY_FX_TYPE() {\r\n return PROMISSORY_FX_TYPE;\r\n }", "public boolean isSetFx() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FX_ISSET_ID);\n }", "void xsetF(cl.sii.siiDte.FolioType f);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This method builds key map. The keyMap holds key if any for an element for comparison puprose If no key is mapped then that element has no key to comapre Usually if there are multiple elements () then key is needed for comparison. If there are ? (1 or zero) or mandatory element then key is not needed.
private void buildKeyMapping(){ if(keyMap == null){ keyMap = new HashMap(); } // all resources keyMap.put("custom-resource", "jndi-name"); keyMap.put("jdbc-resource","jndi-name"); keyMap.put("external-jndi-resource", "jndi-name"); keyMap.put("jdbc-connection-pool", "name"); keyMap.put("mail-resource", "jndi-name"); keyMap.put("persistence-manager-factory-resource", "jndi-name"); keyMap.put("jms-resource", "jndi-name"); keyMap.put("admin-object-resource", "jndi-name"); keyMap.put("connector-resource", "jndi-name"); keyMap.put("resource-adapter-config", "name"); keyMap.put("connector-connection-pool", "name"); keyMap.put("jms-host", "name"); keyMap.put("server-instance", "name"); keyMap.put("jmx-connector", "name"); keyMap.put("iiop-listener", "id"); keyMap.put("config", "name"); keyMap.put("thread-pool","thread-pool-id"); keyMap.put("cluster","name"); keyMap.put("server-ref","ref"); keyMap.put("resource-ref","ref"); keyMap.put("application-ref","ref"); keyMap.put("jacc-provider","name"); keyMap.put("audit-module","name"); keyMap.put("message-security-config","auth-layer"); keyMap.put("provider-config","provider-id"); // Added for AS9 upgrade. keyMap.put("node-agent","name"); keyMap.put("lb-config","name"); keyMap.put("cluster-ref","ref"); keyMap.put("alert-subscription","name"); keyMap.put("listener-config","listener-class-name"); keyMap.put("filter-config","filter-class-name"); keyMap.put("security-map","name"); keyMap.put("load-balancer","name"); keyMap.put("management-rule","name"); keyMap.put("system-property","name"); }
[ "private void buildKeyMap() {\n\t\tcharMapKey = new HashMap<Character , Integer>();\n\t\tcharMapKey.put('a', 0);\n\t\tcharMapKey.put('b', 0);\n\t\tcharMapKey.put('c', 1);\n\t\tcharMapKey.put('d', 1);\n\t\tcharMapKey.put('e', 2);\n\t\tcharMapKey.put('f', 2);\n\t\tcharMapKey.put('g', 3);\n\t\tcharMapKey.put('h', 3);\n\t\tcharMapKey.put('i', 4);\n\t\tcharMapKey.put('j', 4);\n\t\tcharMapKey.put('k', 5);\n\t\tcharMapKey.put('l', 5);\n\t\tcharMapKey.put('m', 6);\n\t\tcharMapKey.put('n', 6);\n\t\tcharMapKey.put('o', 7);\n\t\tcharMapKey.put('p', 7);\n\t\tcharMapKey.put('q', 8);\n\t\tcharMapKey.put('r', 8);\n\t\tcharMapKey.put('s', 9);\n\t\tcharMapKey.put('t', 9);\n\t\tcharMapKey.put('u', 10);\n\t\tcharMapKey.put('v', 10);\n\t\tcharMapKey.put('w', 11);\n\t\tcharMapKey.put('x', 11);\n\t\tcharMapKey.put('y', 12);\n\t\tcharMapKey.put('z', 12);\n\t}", "ArrayList<String> makeMapKey(){\n\t\tArrayList<String>keys=new ArrayList<String>();\n\n\t\t//you know the suits are in this order\n\t\tCard ace= cardDeck.deal();\n\t\tCard two= cardDeck.deal();\n\t\tCard three= cardDeck.deal();\n\t\tCard four= cardDeck.deal();\n\t\tCard five= cardDeck.deal();\n\t\tCard six= cardDeck.deal();\n\t\tCard seven= cardDeck.deal();\n\t\tCard eight= cardDeck.deal();\n\t\tCard nine= cardDeck.deal();\n\t\tCard ten= cardDeck.deal();\n\t\tCard jack= cardDeck.deal();\n\t\tCard queen= cardDeck.deal();\n\t\tCard king= cardDeck.deal();\n\n\n\t\t//you've got all the keys for the map, now for the actual JLabels/values\n\n\t\tString aceKey=ace.getSuitAsString()+ace.getValueAsString();\n\t\tString twoKey=two.getSuitAsString()+two.getValueAsString();\n\t\tString threeKey=three.getSuitAsString()+three.getValueAsString();\n\t\tString fourKey=four.getSuitAsString()+four.getValueAsString();\n\t\tString fiveKey= five.getSuitAsString()+five.getValueAsString();\n\t\tString sixKey= six.getSuitAsString()+six.getValueAsString();\n\t\tString sevenKey= seven.getSuitAsString()+seven.getValueAsString();\n\t\tString eightKey=eight.getSuitAsString()+eight.getValueAsString();\n\t\tString nineKey=nine.getSuitAsString()+nine.getValueAsString();\n\t\tString tenKey= ten.getSuitAsString()+ten.getValueAsString();\n\t\tString jackKey= jack.getSuitAsString()+jack.getValueAsString();\n\t\tString queenKey= queen.getSuitAsString()+queen.getValueAsString();\n\t\tString kingKey= king.getSuitAsString()+king.getValueAsString();\n\n\t\tSystem.out.println (aceKey);\n\t\tSystem.out.println (twoKey);\n\t\tSystem.out.println (threeKey);\n\t\tSystem.out.println (fourKey);\n\t\tSystem.out.println (fiveKey);\n\t\tSystem.out.println (sixKey);\n\t\tSystem.out.println (sevenKey);\n\t\tSystem.out.println (eightKey);\n\t\tSystem.out.println (nineKey);\n\t\tSystem.out.println (tenKey);\n\t\tSystem.out.println (jackKey);\n\t\tSystem.out.println (queenKey);\n\t\tSystem.out.println (kingKey);\n\n\t\tkeys.add (aceKey);\n\t\tkeys.add (twoKey);\n\t\tkeys.add (threeKey);\n\t\tkeys.add (fourKey);\n\t\tkeys.add (fiveKey);\n\t\tkeys.add (sixKey);\n\t\tkeys.add (sevenKey);\n\t\tkeys.add (eightKey);\n\t\tkeys.add (nineKey);\n\t\tkeys.add (tenKey);\n\t\tkeys.add (jackKey);\n\t\tkeys.add (queenKey);\n\t\tkeys.add (kingKey);\n\n\t\treturn keys;\n\t}", "@Test\n public void mapKeys() {\n check(MAPKEYS);\n query(\"for $i in \" + MAPKEYS.args(\n MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i+1\"))) + \" order by $i return $i\", \"1 2 3\");\n query(\"let $map := \" + MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i + 1\")) +\n \"for $k in \" + MAPKEYS.args(\"$map\") + \" order by $k return \" +\n MAPGET.args(\"$map\", \"$k\"), \"2 3 4\");\n }", "public void generateKeys(){\n\t\t//Apply permutation P10\n\t\tString keyP10 = permutation(key,TablesPermutation.P10);\n\t\tresults.put(\"P10\", keyP10);\n\t\t//Apply LS-1\n\t\tString ls1L = leftShift(keyP10.substring(0,5),1);\n\t\tString ls1R = leftShift(keyP10.substring(5,10),1);\n\t\tresults.put(\"LS1L\", ls1L);\n\t\tresults.put(\"LS1R\", ls1R);\n\t\t//Apply P8 (K1)\n\t\tk1 = permutation(ls1L+ls1R, TablesPermutation.P8);\n\t\tresults.put(\"K1\", k1);\n\t\t//Apply LS-2\n\t\tString ls2L = leftShift(ls1L,2);\n\t\tString ls2R = leftShift(ls1R,2);\n\t\tresults.put(\"LS2L\", ls2L);\n\t\tresults.put(\"LS2R\", ls2R);\n\t\t//Apply P8 (K2)\n\t\tk2 = permutation(ls2L+ls2R, TablesPermutation.P8);\n\t\tresults.put(\"K2\", k2);\n\t}", "public Map<String, String> buildItemKeyMap(final JCoTable ttItemKey)\r\n\t{\r\n\r\n\t\tif (ttItemKey == null)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tfinal int numLines = ttItemKey.getNumRows();\r\n\t\tif (numLines <= 0)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tfinal HashMap<String, String> itemKey = new HashMap<String, String>(numLines);\r\n\r\n\t\tfor (int i = 0; i < numLines; i++)\r\n\t\t{\r\n\r\n\t\t\tttItemKey.setRow(i);\r\n\r\n\t\t\tfinal String posNr = JCoHelper.getString(ttItemKey, \"POSNR\");\r\n\t\t\tfinal String handle = JCoHelper.getString(ttItemKey, ConstantsR3Lrd.FIELD_HANDLE);\r\n\r\n\t\t\titemKey.put(posNr, handle);\r\n\t\t}\r\n\r\n\t\treturn itemKey;\r\n\t}", "private void createBitStremMap(){\n itemListMap = new HashMap<>();\n \n for (ArrayList<Integer> transactions_set1 : transactions_set) {\n ArrayList curr_tr = (ArrayList) transactions_set1;\n if(curr_tr.size() >= min_itemset_size_K) \n for (Object curr_tr1 : curr_tr) {\n int item = (int) curr_tr1;\n itemListMap.put(item, itemListMap.getOrDefault(item, 0)+1);\n }\n }\n \n // 3. Remove items without minimum support\n itemListMap.values().removeIf(val -> val<min_sup);\n \n // 4. Sort the map to a set of entries\n Set<Map.Entry<Integer, Integer>> set = itemListMap.entrySet();\n frequentItemListSetLenOne = new ArrayList<>(set);\n Collections.sort( frequentItemListSetLenOne, new Comparator<Map.Entry<Integer, Integer>>(){\n @Override\n public int compare( Map.Entry<Integer, Integer> o1, Map.Entry<Integer, Integer> o2 )\n {\n return (o2.getValue()).compareTo( o1.getValue() );\n }\n });\n\n // 5.\n itemIndex = new HashMap<>();\n for(Map.Entry<Integer, Integer> entry : frequentItemListSetLenOne){\n itemIndex.put(entry.getKey(), itemIndex.size());\n }\n\n // 6.\n bitsetLen = frequentItemListSetLenOne.size();\n }", "public static void Test() {\t\t\n\t\tTreeMap<String, Integer> treeMap = new TreeMap<String, Integer>();\n\t\ttreeMap.put(\"Key#1\", 1);\n\t\ttreeMap.put(\"Key#2\", 2);\n\t\ttreeMap.put(\"Key#2\", 3); // Duplicate is not allowed. Replaces old value with new\n\t\t//treeMap.put(null, 1); //NULL key is not allowed; throws NPE \n\t\t//treeMap.put(null, 2);\n\t\tSystem.out.println(\"Tree Map: \" + treeMap.toString());\n\t\t\n\t\t// Sorts key based on natural ordering (sorts in \"ascending order\")\n\t\tTreeMap<MapKey<String>, Integer> treeMap2 = new TreeMap<MapKey<String>, Integer>(); // uses \"natural ordering\" provided by the key object for comparison i.e. MapKey.compareTo() method\n\t\ttreeMap2.put(new MapKey<String>(\"x\"), 1);\n\t\ttreeMap2.put(new MapKey<String>(\"y\"), 2);\t\t\n\t\t// Comparable\n\t\tboolean status = treeMap2.put(new MapKey<String>(\"z\"), 3) == null;\n\t\tMapKey<String> mapKey = new MapKey<String>(\"xyz\");\t\t\n\t\tstatus = treeMap2.put(mapKey, 123) == null;\n\t\tstatus = treeMap2.put(mapKey, 1234) == null;\n\t\tSystem.out.println(\"Tree Map: \" + treeMap2.toString());\n\t\t\n\t\tTreeMap<String, Integer> treeMap3 = new TreeMap<String, Integer>(new TestComparator());\n\t\t\n\t\tTreeMap<MyKey, Integer> treeMap4 = new TreeMap<MyKey, Integer>();\n\t\ttreeMap4.put(new MyKey(), 10);\n\t\ttreeMap4.put(new MyKey(), 20);\n\t\t\n\t\t\n\t}", "private static void createMap()\n\t {\n\t\t \n\t\t hm.put(1, \"a\");hm.put(2, \"b\");hm.put(3, \"c\");hm.put(4, \"d\");hm.put(5, \"e\");\n\t\t hm.put(6, \"f\");hm.put(7, \"g\");hm.put(8, \"h\");hm.put(9, \"d\");hm.put(10, \"j\");\n\t\t hm.put(11, \"k\");hm.put(12, \"l\");hm.put(13, \"m\");hm.put(14, \"n\");hm.put(15, \"o\");\n\t\t hm.put(16, \"p\");hm.put(17, \"q\");hm.put(18, \"r\");hm.put(19, \"s\");hm.put(20, \"t\");\n\t\t hm.put(21, \"u\");hm.put(22, \"v\");hm.put(23, \"w\");hm.put(24, \"x\");hm.put(25, \"y\");\n\t\t hm.put(\"z\", 26);\n\t\t \n\t }", "private HashMap<String, Object> getKeysAsMap(\n HashMap<String, ArrayList<MenuContributionItem>> map) {\n HashMap<String, Object> newKeyMap = new HashMap<String, Object>();\n\n Set<String> keys = map.keySet();\n\n for (String keyStr : keys) {\n newKeyMap.put(keyStr, null);\n }\n\n return newKeyMap;\n }", "private Map<DoubleArrayWrapper, List<Example>> createKeyMapping(ExampleSet exampleSet, Attribute[] keyAttributes,\n\t\t\tAttribute[] matchKeyAttributes) {\n\t\tMap<DoubleArrayWrapper, List<Example>> keyMapping = new HashMap<>();\n\n\t\tassert keyAttributes.length == matchKeyAttributes.length;\n\n\t\t// create mapping from nominal values of keyAttributes to matchKeyAttributes\n\t\tMap<Attribute, Map<Double, Double>> valueMapping = null;\n\t\tif (matchKeyAttributes != null) {\n\t\t\tvalueMapping = new HashMap<>();\n\t\t\tfor (int attributeNumber = 0; attributeNumber < keyAttributes.length; ++attributeNumber) {\n\t\t\t\tif (keyAttributes[attributeNumber].isNominal()) {\n\t\t\t\t\tMap<Double, Double> valueMap = new HashMap<>();\n\t\t\t\t\t// TODO: iterate over getMappint().values() rather than relying on the\n\t\t\t\t\t// assumption that values appear in increasing order\n\t\t\t\t\tfor (int valueNumber = 0; valueNumber < keyAttributes[attributeNumber].getMapping()\n\t\t\t\t\t\t\t.size(); ++valueNumber) {\n\t\t\t\t\t\tString valueString = keyAttributes[attributeNumber].getMapping().mapIndex(valueNumber);\n\t\t\t\t\t\tvalueMap.put((double) valueNumber,\n\t\t\t\t\t\t\t\t(double) matchKeyAttributes[attributeNumber].getMapping().mapString(valueString));\n\t\t\t\t\t}\n\t\t\t\t\tvalueMapping.put(keyAttributes[attributeNumber], valueMap);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tdouble[] keyValues;\n\n\t\tfor (Example example : exampleSet) {\n\t\t\tboolean continueIteration = false;\n\t\t\t// fetch key values from example\n\t\t\tkeyValues = getKeyValues(example, keyAttributes);\n\t\t\tif (valueMapping != null) {\n\t\t\t\t// remap keyValues to match values of other attributes:\n\t\t\t\tfor (int i = 0; i < keyValues.length; ++i) {\n\t\t\t\t\tif (Double.isNaN(keyValues[i])) {\n\t\t\t\t\t\tcontinueIteration = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (keyAttributes[i].isNominal()) {\n\t\t\t\t\t\tkeyValues[i] = valueMapping.get(keyAttributes[i]).get(keyValues[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (continueIteration) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// check if this key is in keyMapping. If not, add:\n\t\t\tList<Example> keyExamples = keyMapping.get(new DoubleArrayWrapper(keyValues));\n\t\t\tif (keyExamples != null) {\n\t\t\t\t// add current example:\n\t\t\t\tkeyExamples.add(example);\n\t\t\t} else {\n\t\t\t\t// create set and add to keyMapping:\n\t\t\t\tkeyExamples = new LinkedList<>();\n\t\t\t\tkeyExamples.add(example);\n\t\t\t\tkeyMapping.put(new DoubleArrayWrapper(keyValues), keyExamples);\n\t\t\t}\n\t\t}\n\t\t;\n\t\treturn keyMapping;\n\t}", "public DBRecordKey<gDBR> createKey(Map<String,String> valMap, int partialKeyType)\n throws DBException \n {\n String utableName = this.getUntranslatedTableName();\n\n /* no keys specified */\n if (ListTools.isEmpty(valMap) && (partialKeyType != DBWhere.KEY_PARTIAL_ALL_EMPTY)) {\n throw new DBException(\"Creating Key: No key fields - \" + utableName);\n }\n\n /* key fields */\n DBField pk[];\n if (partialKeyType == DBWhere.KEY_AUTO_INDEX) {\n DBField autoKey = this.getAutoIndexField();\n if (autoKey == null) {\n throw new DBException(\"Creating Key: auto-index key not found - \" + utableName);\n }\n pk = new DBField[] { autoKey };\n } else {\n pk = this.getKeyFields();\n }\n\n /* create key */\n DBRecordKey<gDBR> key = this.createKey(); // may throw DBException\n for (int i = 0; i < pk.length; i++) {\n String name = pk[i].getName();\n String sval = (valMap != null)? valMap.get(name) : null; // may be defined, but null\n if (sval == null) { // either not defined, or no value assigned\n if (partialKeyType == DBWhere.KEY_AUTO_INDEX) {\n // -- \"autoIndex\" key required\n throw new DBException(\"Creating Key: auto-index required, but auto-index not found/specified - \" + utableName + \".\" + name);\n } else\n if (partialKeyType == DBWhere.KEY_FULL) {\n // -- all keys required\n throw new DBException(\"Creating Key: full key required, but field not specified - \" + utableName + \".\" + name);\n } else\n if (partialKeyType == DBWhere.KEY_PARTIAL_ALL_EMPTY) {\n // -- missing first key is allowed\n continue;\n } else\n if (i == 0) {\n // -- first key is required\n throw new DBException(\"Creating Key: first key required, but first field not found/specified - \" + utableName + \".\" + name);\n } else\n if (partialKeyType == DBWhere.KEY_PARTIAL_FIRST) {\n // -- we at-least have the first key, skip remaining after first missing key\n break;\n } else { // DBWhere.KEY_PARTIAL_ALL\n // -- we at-least have the first key, continue seaarching for keys\n continue;\n }\n } else {\n Object val = pk[i].parseStringValue(sval);\n key.setKeyValue(name, val); // setFieldValue\n }\n } // primary key loop\n return key;\n\n }", "public static void nullKey()\n {\n try {\n TreeMap<String, Integer> map = new TreeMap();\n map.put(null, 9);\n map.put(\"Five\", 5);\n map.put(\"Six\", 6);\n map.put(\"Seven\", 7);\n map.put(\"Eight\", 8);\n map.put(\"Nine\", 9);\n map.put(\"Apple\", 9);\n\n\n System.out.println(map);\n }catch(Exception e)\n {\n System.out.println(\"Error: Cant have null as key\");\n\n }\n }", "private static Map<Node, Node> emptyElementMapping()\n {\n return Collections.emptyMap();\n }", "interface MapComp<K extends Comparable<K>, V> {\n\n // Add given key-value to this map\n MapComp<K, V> add(K k, V v);\n\n // Count the number of key-values in this map\n Integer count();\n\n // Look up the value associated with given key in this map (if it exists)\n Optional<V> lookup(K k);\n\n // Produce a set of key-values in this map\n Set<Pairof<K, V>> keyVals();\n\n // Produce a list of key-values in ascending sorted order\n Listof<Pairof<K, V>> sortedKeyVals();\n\n // Produce a set of keys in this map\n Set<K> keys();\n\n // Produce a set of keys in ascending sorted order\n Listof<K> sortedKeys();\n\n // Produce a list of values in this map (order is unspecified)\n Listof<V> vals();\n\n // Produce a list of values in the ascending sorted order\n // of their keys in this map\n // NOTE: list is not itself sorted\n Listof<V> sortedVals();\n\n // Is this map the same as m?\n // (Does it have the same keys mapping to the same values?)\n Boolean same(MapComp<K, V> m);\n\n // Remove any key-value with the given key from this map\n MapComp<K, V> remove(K k);\n\n // Remove all key-values with keys that satisfy given predicate\n MapComp<K, V> removeAll(Predicate<K> p);\n\n // Remove all key-values w/ key-values that satisfy given binary predicate\n MapComp<K, V> removeAllPairs(BiPredicate<K, V> p);\n\n // Join this map and given map (entries in this map take precedence)\n MapComp<K, V> join(MapComp<K, V> m);\n}", "public final void rule__MapElement__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOCLlite.g:8052:1: ( ( ( rule__MapElement__KeyAssignment_1 ) ) )\n // InternalOCLlite.g:8053:1: ( ( rule__MapElement__KeyAssignment_1 ) )\n {\n // InternalOCLlite.g:8053:1: ( ( rule__MapElement__KeyAssignment_1 ) )\n // InternalOCLlite.g:8054:2: ( rule__MapElement__KeyAssignment_1 )\n {\n before(grammarAccess.getMapElementAccess().getKeyAssignment_1()); \n // InternalOCLlite.g:8055:2: ( rule__MapElement__KeyAssignment_1 )\n // InternalOCLlite.g:8055:3: rule__MapElement__KeyAssignment_1\n {\n pushFollow(FOLLOW_2);\n rule__MapElement__KeyAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getMapElementAccess().getKeyAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private static Map<KeyCode, LevelElementAction> createKeyMappingP1() {\n Map<KeyCode, LevelElementAction> keyMapping = new HashMap<KeyCode, LevelElementAction>();\n keyMapping.put(KeyCode.LEFT, LevelElementAction.MoveLeft);\n keyMapping.put(KeyCode.RIGHT, LevelElementAction.MoveRight);\n keyMapping.put(KeyCode.UP, LevelElementAction.Jump);\n keyMapping.put(KeyCode.CONTROL, LevelElementAction.Shoot);\n\n return keyMapping;\n }", "private static Map<String, String> buildMapKeys(String filenameKeys) {\n\t\tMap<String, String> sourceMap = new HashMap<String, String>();\n\t\ttry {\n\t\t\t// Read\n\t\t\tFileInputStream fileInputStream = new FileInputStream(filenameKeys);\n\t InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, StandardCharsets.UTF_8);\n\t BufferedReader reader = new BufferedReader(inputStreamReader);\n\t \n\t String line = null;\n\t while ((line = reader.readLine()) != null) {\n\t \t// Insert non-empty sentences as keys\n\t \tif (!line.equals(\"\")) {\n\t \t\tsourceMap.put(line, \"\");\n\t \t}\n\t }\n\t \n\t reader.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn sourceMap;\n\t}", "protected abstract @Nullable K getKeyFromElement(@NonNull E element);", "private static List<Map<KeyCode, LevelElementAction>> createKeyMapping() {\n List<Map<KeyCode, LevelElementAction>> keyMapping \n = new ArrayList<Map<KeyCode, LevelElementAction>>();\n\n keyMapping.add(createKeyMappingP1());\n keyMapping.add(createKeyMappingP2());\n\n return keyMapping;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to set the item details to be used in the current controller GUI
public void setDetails(String itemDetails) { this.itemDetails = itemDetails; }
[ "public void handleGetItemDetailsButtonAction(ActionEvent event) {\n String itemID = updateItemItemID.getText();\n try{\n //get the details from mgr\n HashMap itemInfo = updateMgr.getItemInfo(itemID);\n //display on the fields\n updateItemTitle.setText((String)itemInfo.get(Table.BOOK_TITLE));\n updateItemAuthor.setText((String)itemInfo.get(Table.BOOK_AUTHOR));\n updateItemDescription.setText((String)itemInfo.get(Table.BOOK_DESCRIPTION));\n updateItemPublishDate.setText(formatDateString((Calendar)itemInfo.get(Table.BOOK_DATE)));\n updateItemISBN.setText((String)itemInfo.get(Table.BOOK_ISBN));\n updateItemGenre.setText((String)itemInfo.get(Table.BOOK_GENRE));\n //enable item info pane\n updateItemInfoPane.setDisable(false);\n this.tempItemID = itemID;\n }\n catch(ItemNotFoundException | SQLException | ClassNotFoundException e){\n this.displayWarning(\"Error\", e.getMessage());\n } catch (Exception ex) {\n this.displayWarning(\"Error\", ex.getMessage());\n } \n }", "public void setItem(Item item) {\n this.item = item;\n }", "public void setItem(Item item) \r\n\t{\r\n\t\tthis.item = item;\r\n\t}", "public void setItemName(String in)\n {\n itemName = in; \n }", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "public void setEditedItem(Object item) {editedItem = item;}", "public ModifyItem() {\n initComponents();\n }", "public void setItem(Item item) {\n\t\tthis.item = item;\n\n\t\tif (item.getDate() == null)\n\t\t\tdateField.setText(DateUtil.format(LocalDate.now()));\n\t\telse\n\t\t\tdateField.setText(DateUtil.format(item.getDate()));\n\n\t\tdateField.setPromptText(\"dd.mm.yyyy\");\n\t\tif (item.getCategory() == null)\n\t\t\tcategoryField.getSelectionModel().select(\"Lebensmittel\");\n\t\telse \n\t\t\tcategoryField.getSelectionModel().select(item.getCategory());\n\t\tuseField.setText(item.getUse());\n\t\tamountField.setText(Double.toString(item.getAmount()).replace(\".\", \",\"));\n\t\tif (item.getDistributionKind() == null)\n\t\t\tdistributionKindField.setText(\"Giro\");\n\t\telse\n\t\t\tdistributionKindField.setText(item.getDistributionKind());\n\n\t\tif (useField.getText() == null) {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tuseField.requestFocus();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public void setItemDescription(String value)\n {\n itemDescription = value;\n }", "@Override\n public void editItem() {\n getView().displayEditItemView();\n }", "public void itemDetails(){\r\n System.out.println(\"Item: \" + iName + \", Quantity: \" + stock + \", Price: \" + iPrice);\r\n }", "private void showCurrentItem() {\n mNameTextView.setText(currentItem.getName());\n mDateTextView.setText(currentItem.getDeliveryDateString());\n mQuantityTextView.setText(currentItem.getQuantity() + \"\");\n }", "public void setQuickAccessItems() {\n Map<String, Integer> quickAccess = gmm.getInventory().getQuickAccess();\n\n int size = 80;\n\n float sideBarWidth = 35;\n\n // Places each item to quick access\n for (Map.Entry<String, Integer> entry : quickAccess.entrySet()) {\n Image selected = new Image(gmm.generateTextureRegionDrawableObject(\"selected\"));\n selected.setName(entry.getKey() + QA_SELECTED);\n selected.setSize((float) size + 15, (float) size + 15);\n selected.setPosition((float) -7.5, (float) -7.5);\n selected.setVisible(false);\n\n String weaponName = entry.getKey();\n\n Table iconCell = new Table();\n iconCell.setName(\"iconCell\");\n ImageButton icon =\n new ImageButton(gmm.generateTextureRegionDrawableObject(weaponName + \"_inv\"));\n icon.setName(entry.getKey());\n\n createListener(icon);\n\n icon.setSize(size, size);\n iconCell.addActor(selected);\n iconCell.addActor(icon);\n quickAccessPanel.add(iconCell).width(size).height(size).padTop(10).padLeft(20 + sideBarWidth / 2);\n Label num = new Label(entry.getValue().toString(), skin, \"white-label\");\n num.setFontScale(0.4f);\n quickAccessPanel.add(num).top().left().padLeft(-20).padTop(5);\n quickAccessPanel.row();\n }\n\n int sizeDifference = 4 - quickAccess.entrySet().size();\n while (sizeDifference > 0) {\n sizeDifference -= 1;\n Table blankCell = new Table();\n quickAccessPanel.add(blankCell).width(size).height(size).padTop(10).padLeft(20 + sideBarWidth / 2);\n quickAccessPanel.row();\n }\n }", "public void setInfo() {\n if (songList.get(position).getTitle().equals(null)) {\n txt_Title.setText(\"unknown\");\n } else {\n txt_Title.setText(songList.get(position).getTitle());\n }\n\n if (songList.get(position).getArtist().equals(null)) {\n txt_Artist.setText(\"unknown\");\n } else {\n txt_Artist.setText(songList.get(position).getArtist());\n }\n }", "@FXML\n\tpublic void setSelectedItem(MouseEvent event) {\n\t\ttry {\n\t\t\tString s=inventoryList.getSelectionModel().getSelectedItem();\t// Get selected item\n\t\t\tItem i=Item.getItem(ItemList, s);\n\t\t\titemselect.setText(s);\t// Set selected item information\n\t\t\tif(i.getStat().equals(\"HP\"))\n\t\t\t\titemStats.setText(\"+\"+i.getChange()+\" Health\");\n\t\t\telse if(i.getStat().equals(\"DMG\"))\n\t\t\t\titemStats.setText(\"+\"+i.getChange()+\" Damage\");\n\t\t\telse\n\t\t\t\titemStats.setText(\"+\"+i.getChange()+\" Evasion\");\n\t\t} catch(Exception e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t}", "private void updateOverview() {\n\t\t\n\t\t//check if anything is selected\n\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\n\t\t\tnameLabel.setText(itemBox.getName());\n\t\t\tamountLabel.setText(String.valueOf(itemBox.getAmount()) + \"x\");\n\t\t\tgtinLabel.setText(itemBox.getGtin());\n\t\t\tcategoriesLabel.setText(itemBox.getCategoriesText(\"long\"));\n\t\t\tattributesLabel.setText(itemBox.getAttributes());\n\t\t\tlog.info(\"Overview set to \" + itemBox.getName());\n\t\t}\t\n\t}", "public void setItem (String item) {\n mItem = item; // XX good, this works properly.\n ListFragment listFrag = (ListFragment)getSupportFragmentManager().findFragmentById(R.id.fragment_container_list);\n listFrag.addNewItem(mItem);\n //Log.i(TAG, \"item is \" + mItem);\n }", "void EditItem() throws IOException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/fxml/ItemGuiTemplates/EditItem.fxml\"));\n loader.setController(this);\n\n Parent root = loader.load();\n Stage stage = new Stage();\n stage.setScene(new Scene(root));\n stage.setTitle(\"Add Item\");\n stage.show();\n\n //Initialize the panel's fields\n NameText.setText(CurrentItem.getType());\n PriceText.setText(String.valueOf(CurrentItem.getPrice()));\n DiscountField.setText(String.valueOf(CurrentItem.getDiscount()));\n ReccuringText.setText(CurrentItem.getRecurring());\n if (CurrentItem.isRecurring())\n {\n Scaling.setSelected(true);\n RecurrenceFlag = true;\n }\n\n }", "protected abstract void editItem();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the prepayment property.
public void setPrepayment(boolean value) { this.prepayment = value; }
[ "public void setPrepayment_option(int prepayment_option) {\n this.prepayment_option = prepayment_option;\n }", "public void setPrepayment_req(int prepayment_req) {\n this.prepayment_req = prepayment_req;\n }", "public void setPrepayCode(String prepayCode) {\r\n this.prepayCode = prepayCode == null ? null : prepayCode.trim();\r\n }", "public boolean isPrepayment() {\n return prepayment;\n }", "public void setPrepayId(String prepayId) {\r\n this.prepayId = prepayId == null ? null : prepayId.trim();\r\n }", "public void setPrepayId(String prepayId) {\n this.prepayId = prepayId == null ? null : prepayId.trim();\n }", "public void setPREPAID_PROFIT_AMOUNT(BigDecimal PREPAID_PROFIT_AMOUNT) {\r\n this.PREPAID_PROFIT_AMOUNT = PREPAID_PROFIT_AMOUNT;\r\n }", "public void setPREPAID_AMOUNT(BigDecimal PREPAID_AMOUNT) {\r\n this.PREPAID_AMOUNT = PREPAID_AMOUNT;\r\n }", "public int getPrepayment_option() {\n return prepayment_option;\n }", "public void setUnpaid() {\n //make the bill unpaid by setting it to null\n this.paidDate = null;\n }", "@Test\r\n public void testSetPrepBy() {\r\n System.out.println(\"setPrepBy\");\r\n String PrepBy = \"\";\r\n OBJSalesInvoiceQO instance = null;\r\n instance.setPrepBy(PrepBy);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void setPaid() {\n isPaid = true;\n }", "public int getPrepayment_req() {\n return prepayment_req;\n }", "public void setPrepayTypeCode(String prepayTypeCode) {\r\n this.prepayTypeCode = prepayTypeCode == null ? null : prepayTypeCode.trim();\r\n }", "public void setPaid(double paid)\r\n\t{\r\n\t\tthis.m_paid = paid;\r\n\t}", "public void setPrepaidDscrId(Integer prepaidDscrId) {\n _prepaidDscrId = prepaidDscrId;\n }", "public void setPREPAID_PRINCIPAL_AMOUNT(BigDecimal PREPAID_PRINCIPAL_AMOUNT) {\r\n this.PREPAID_PRINCIPAL_AMOUNT = PREPAID_PRINCIPAL_AMOUNT;\r\n }", "public void setPbackPaid(BigDecimal pbackPaid) {\n this.pbackPaid = pbackPaid;\n }", "public void setPendingPaymentNo(int value) {\n this.pendingPaymentNo = value;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the duration of the song
public long getDuration() { return mediaPlayerComponent.mediaPlayer().media().info().duration(); }
[ "public double getMusicDuration() {\n if (music == null) {\n return -1;\n }\n \n return music.getDuration();\n }", "public String getSongDuration() {\n return mSongDuration;\n }", "public String getmSongDuration() {\n return mSongDuration;\n }", "public Long getSongFileLength()\n\t{\n\t\tSystem.out.println(\"manager.getSongFileLength() CALLED\");\n\t\tLong duration = null;\n\t\ttry\n\t\t{\n\t\t\tAudioFileFormat baseFileFormat = new MpegAudioFileReader().getAudioFileFormat(file); \n\t\t\tMap properties = baseFileFormat.properties();\n \tduration = (Long) properties.get(\"duration\");\n \treturn duration;\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\t\n\t\t}\n\t\t// this system out is never being called because the duration is returned before this\n\t\tSystem.out.println(\"This is the duration: \" + duration);\n\t\treturn duration;\n\t}", "public int getDuration() {\n\t\tif(currentPlayingItem==null) return 100;\n\t\treturn mediaPlayer.getDuration();\n\t}", "public Double getDuration() throws FileNotFoundException {\n if (duration != null) {\n return duration;\n } else {\n throw new FileNotFoundException(\"The song \" + name + \" does not have a duration associated with it.\");\n }\n }", "public int getDuration(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn 0;\r\n \t\treturn mediaplayer.getDuration();\r\n \t}", "String getDuration();", "float getDuration();", "java.lang.String getDuration();", "public native double getPlaybackDuration() /*-{\n\t\treturn this.@com.pmt.wrap.titanium.media.Item::handler.playbackDuration;\n\t}-*/;", "public int getDurationSecs();", "int getMovieDuration();", "public int getAudioDuration() \r\n\t{\r\n\t\treturn audioDuration;\r\n\t}", "public int getTotalAudioDuration()\n {\n int ret = 0;\n if(player != null)\n {\n ret = player.getDuration();\n }\n return ret;\n }", "public Duration getDuration() {\n\n\t\tTrack tempTrack;\t\n\t\tDuration tempDuration;\n\t\tint total = 0;\n\n\t\tfor (int i=0; i < trackList.length; i++) {\n\t\t\ttempTrack = trackList[i];\n\t\t\ttempDuration = \ttempTrack.getDuration();\n\t\t\ttotal += tempDuration.getTotalSeconds();\n\t\t}\n\t\t\n\t\treturn new Duration(total);\n\t}", "int getDuration(String videoFile);", "org.apache.xmlbeans.GDuration getDuration();", "int songLength();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds a frequency matrix containing a terms vector for each cluster, sum of tweets terms vector contained by the current cluster
private static HashMap<Integer, HashMap<String, Long>> getClustersFrequencyMatrix(HashMap<Integer, List<String>> clustering, HashMap<String, HashMap<String, Long>> tweetsFrequencyMatrix) { System.out.println("Building cluster frequency matrix..."); HashMap<Integer, HashMap<String, Long>> clusterFrequencyMatrix = new HashMap<Integer, HashMap<String, Long>>(); Long occurrences; //Browsing each cluster for(Integer clusterId : clustering.keySet()) { HashMap<String, Long> clusterTermsVector = new HashMap<String, Long>(); //Browsing each tweet in the cluster for(String tweetId : tweetsFrequencyMatrix.keySet()) { //Adding the tweet terms vector to the cluster one HashMap<String, Long> tweetsTermVector = tweetsFrequencyMatrix.get(tweetId); //Browsing the terms of the current tweets for(String term : tweetsTermVector.keySet()) { //Adding the term occurrences to the clusters frequency matrix occurrences = clusterTermsVector.get(term); if(occurrences == null) { clusterTermsVector.put(term, tweetsTermVector.get(term)); } else { clusterTermsVector.put(term, occurrences + tweetsTermVector.get(term)); } } } clusterFrequencyMatrix.put(clusterId, clusterTermsVector); } System.out.println("Done"); return clusterFrequencyMatrix; }
[ "private void createTermFreqVector(JCas jcas, Document doc) {\n\n\t\tString docText = doc.getText();\n\t\tList<String> tokenized = tokenize0(docText); //Given Tokenizer T0\n\t\t//List<String> tokenized = MyTokenizerAux(docText); // T0 A1\n\t//List<String> tokenized = MyTokenizerAux2(docText); // T0 A2\n\t\t//List<String> tokenized = MyTokenizer1(docText); //My Tokenizer T1\n\t\t//List<String> tokenized = MyStanfordStemmerTokenizer1(docText); //T2\n\t// List<String> tokenized = MyStanfordStemmerTokenizer2(docText);// T3\n\t\tMap<String, Integer> tokens = new HashMap<String, Integer>();\n\t\tfor(String s: tokenized)\n\t\t{\n\t\t \n\t\t if(!tokens.containsKey(s)){\n\t\t tokens.put(s, (int) 1.0);\n\t\t }\n\t\t else{\n\t\t Integer freq = tokens.get(s);\n\t\t Integer new_freq = freq + 1;\n\t\t tokens.put(s, new_freq);\n\t\t \n\t\t }\n\t\t Collection<Token> tokenlist = new ArrayList<Token>(); \n\t\t for(String k:tokens.keySet())\n\t\t {\n\t\t \n\t\t Token t = new Token(jcas);\n\t\t t.setFrequency((int) tokens.get(k));\n\t\t t.setText(k);\n\n\t tokenlist.add(t);\n\t \n\t\t }\n\t\t doc.setTokenList(Utils.fromCollectionToFSList(jcas, tokenlist));\n \n \n\t\t}\n\t\n\t\t\n\n\t}", "private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText().toLowerCase();\n\n // TODO: construct a vector of tokens and update the tokenList in CAS\n\n String[] wordList = docText.split(\" \");\n HashMap<String, Integer> tokenCount = new HashMap<String, Integer>();\n for (String word : wordList) {\n String newWord = word;\n if(word.charAt(word.length()-1)<'a' || word.charAt(word.length()-1)>'z'){\n newWord = word.substring(0, word.length()-1);\n }\n //if(Utils.GetStopWordFilter().isStopword(newWord))continue;\n if (!tokenCount.containsKey(newWord)) {\n tokenCount.put(newWord, 1);\n } else {\n tokenCount.put(newWord, tokenCount.get(newWord) + 1);\n }\n }\n\n ArrayList<Token> tokenList = new ArrayList<Token>();\n for (String word : tokenCount.keySet()) {\n Token token = new Token(jcas);\n token.setText(word);\n token.setFrequency(tokenCount.get(word));\n tokenList.add(token);\n }\n FSList tokenFSList = Utils.fromCollectionToFSList(jcas, tokenList);\n doc.setTokenList(tokenFSList);\n }", "private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText();\n // construct a vector of tokens and update the tokenList in CAS\n // use tokenize0 from above\n List<String> ls = tokenize0(docText);\n Map<String, Integer> map = new HashMap<String, Integer>();\n Collection<Token> token_collection = new ArrayList<Token>();\n for (String d : ls) {\n if (map.containsKey(d)) {\n int inc = map.get(d) + 1;\n map.put(d, inc);\n } else {\n map.put(d, 1);\n }\n }\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry) it.next();\n Token t = new Token(jcas);\n String k = pairs.getKey().toString();\n int v = Integer.parseInt(pairs.getValue().toString());\n t.setFrequency(v);\n t.setText(k);\n token_collection.add(t);\n it.remove(); // avoids a ConcurrentModificationException\n }\n // use util tool to convert to FSList\n doc.setTokenList(Utils.fromCollectionToFSList(jcas, token_collection));\n doc.addToIndexes(jcas);\n\n }", "public ComputeTermFrequencies() { super(); }", "public int[] getTermFrequencies();", "public void tfIdfCalculator() {\r\n double tf; //term frequency\r\n double idf; //inverse document frequency\r\n double tfidf; //term requency inverse document frequency \r\n for (String[] docTermsArray : termsDocsArray) {\r\n double[] tfidfvectors = new double[allTerms.size()];\r\n int count = 0;\r\n for (String terms : allTerms) {\r\n tf = new TfIdf().tfCalculator(docTermsArray, terms);\r\n idf = new TfIdf().idfCalculator(termsDocsArray, terms);\r\n tfidf = tf * idf;\r\n tfidfvectors[count] = tfidf;\r\n count++;\r\n }\r\n tfidfDocsVector.add(tfidfvectors); //storing document vectors; \r\n }\r\n // System.out.println(tfidfDocsVector);\r\n }", "private void normByTopicAndMultiByCount(Vector doc, List<Integer> terms, Matrix perTopicSparseDistributions) {\n for (Integer termIndex : terms) {\n double sum = 0;\n for (int x = 0; x < numTopics; x++) {\n sum += perTopicSparseDistributions.viewRow(x).getQuick(termIndex);\n }\n double count = doc.getQuick(termIndex);\n for (int x = 0; x < numTopics; x++) {\n perTopicSparseDistributions.viewRow(x).setQuick(termIndex,\n perTopicSparseDistributions.viewRow(x).getQuick(termIndex) * count / sum);\n }\n }\n }", "private static HashMap<String, Integer> wordFrequency(ArrayList<String> tweets) {\r\n\t\tHashMap<String, Integer> word_frequency = new HashMap<String, Integer>();\r\n\t\tfor (String tweet : tweets) {\r\n\t\t\tString[] words = tweet.split(\" \");\r\n\t\t\tfor (String word : words) {\r\n\t\t\t\tif (word_frequency.containsKey(word)) {\r\n\t\t\t\t\tint freq = word_frequency.get(word);\r\n\t\t\t\t\tfreq++;\r\n\t\t\t\t\tword_frequency.put(word, freq);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tword_frequency.put(word, 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn word_frequency;\r\n\t}", "public List<HashMap<String, Double>> getTFMatrix() {\n List<HashMap<String, Double>> tf_idf = new ArrayList<HashMap<String, Double>>();\n //TF\n HashMap<String, Double> term_numOcc = new HashMap<>();\n String[] splitLine;\n int counterwordsQuery = 1;\n\n //IDF\n HashMap<String, Double> term_numOcc2 = new HashMap<>();\n BufferedReader reader2;\n for (String str : query_rank.keySet())\n try {\n String fileNameToSearch = \"NUMBER\";\n str = str.toUpperCase();\n if (str.charAt(0) >= 'A' && str.charAt(0) <= 'Z')\n fileNameToSearch = \"\" + str.charAt(0);\n reader2 = new BufferedReader(new FileReader(path + \"//\" + fileNameToSearch/*\"InvertedIndex\"*/ + \"\" + stem + \".txt\"));\n String line = reader2.readLine();\n while (line != null) {\n splitLine = line.split(\"@|#\");\n String term = splitLine[0];\n if (query_rank.containsKey(term) || query_rank.containsKey(term.toUpperCase()) || query_rank.containsKey(term.toLowerCase())) {\n if (query_rank.containsKey(term.toUpperCase()))\n term = term.toUpperCase();\n if (query_rank.containsKey(term.toLowerCase()))\n term = term.toLowerCase();\n double result = 0;\n int DocNumber = 0;\n\n //for all doc in the line of the term\n for (int j = 1; j < splitLine.length; j++) {\n String[] splitDoc = splitLine[j].split(\",\");\n DocNumber = Integer.parseInt(splitDoc[0]);\n double numOccInDoc = Double.parseDouble(splitDoc[1]);\n result = numOccInDoc * (query_rank.get(term));\n term_numOcc.put(term + \":\" + DocNumber, result);\n }\n\n //IDF\n double numOcc = splitLine.length - 1;\n term_numOcc2.put(term, Math.log((corpusSize) / numOcc) / Math.log(10));\n counterwordsQuery++;\n\n\n if (counterwordsQuery > query_rank.size())\n break;\n }\n line = reader2.readLine();\n }\n reader2.close();\n } catch(IOException e){\n e.printStackTrace();\n }\n tf_idf.add(term_numOcc);\n tf_idf.add(term_numOcc2);\n return tf_idf;\n }", "private static void computeTfIdfSumsOfWords(){\n\t\tsumOfWordWeightsForSpam = new ArrayList<WordTfIdf>();\n\t\tsumOfWordWeightsForLegitimate = new ArrayList<WordTfIdf>();\n\t\t\n\t\tArrayList<String> keySet = new ArrayList<String>(invertedIndex.keySet());\n\t\t\n\t\t//initialize Lists\n\t\tfor(int k = 0; k<keySet.size(); k++){\n\t\t\tWordTfIdf wdIdf = new WordTfIdf();\n\t\t\tsumOfWordWeightsForLegitimate.add(wdIdf);\n\t\t\tsumOfWordWeightsForSpam.add(wdIdf);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t//for spam mail documents\n\t\tfor(int i = 0; i<documentList.size()/2; i++){\n\t\t\tfor(int k = 0; k<keySet.size(); k++){\n\t\t\t\tdouble tf_idfSum = sumOfWordWeightsForSpam.get(k).getTf_idf();\n\t\t\t\tTreeMap<String, Double> map = documentList.get(i);//get vector of current document\n\t\t\t\tdouble tf_idfDocWord = map.get(keySet.get(k));\n\t\t\t\tdouble sum = tf_idfSum + tf_idfDocWord;\n\t\t\t\tWordTfIdf wdIdf = new WordTfIdf();\n\t\t\t\twdIdf.setTf_idf(sum);\n\t\t\t\twdIdf.setWord(keySet.get(k));\n\t\t\t\tsumOfWordWeightsForSpam.set(k, wdIdf);\t//add words tf-idf score\n\t\t\t}\n\t\t}\n\t\t\n\t\t//for legitimate mail documents\n\t\tfor(int i = documentList.size()/2; i<documentList.size(); i++){\n\t\t\tfor(int k = 0; k<keySet.size(); k++){\n\t\t\t\tdouble sum = sumOfWordWeightsForLegitimate.get(k).getTf_idf() + documentList.get(i).get(keySet.get(k));//incrase words tf idf score with the tf idf score of it in current document\n\t\t\t\tWordTfIdf wdIdf = new WordTfIdf();\n\t\t\t\twdIdf.setTf_idf(sum);\n\t\t\t\twdIdf.setWord(keySet.get(k));\n\t\t\t\tsumOfWordWeightsForLegitimate.set(k, wdIdf);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this part is for printing tf-idf total scores of top 20 words\n\t\t/*\n\t\tCollections.sort(sumOfWordWeightsForSpam);\n\t\tCollections.sort(sumOfWordWeightsForLegitimate);\n\t\t\n\t\tSystem.out.println(\"top 20 spam words\");\n\t\tfor(int i = 0; i<20; i++){\n\t\t\tSystem.out.println(i + \" inci spam word : \" + sumOfWordWeightsForSpam.get(i).getWord()+ \" with score : \"+ sumOfWordWeightsForSpam.get(i).getTf_idf());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"top 20 legitimate words\");\n\t\tfor(int i = 0; i<20; i++){\n\t\t\tSystem.out.println(i + \" inci legitimate word : \" + sumOfWordWeightsForLegitimate.get(i).getWord()+ \" with score : \"+ sumOfWordWeightsForLegitimate.get(i).getTf_idf());\n\t\t}*/\n\t}", "private static Map<String, Integer> getTermFrequencyMap(List<String> tokens) {\n Map<String, Integer> termFrequencyMap = new HashMap<>();\n tokens.forEach(token -> {\n if (!termFrequencyMap.containsKey(token)) termFrequencyMap.put(token, 0);\n termFrequencyMap.put(token, termFrequencyMap.get(token)+1);\n });\n return termFrequencyMap;\n }", "private void getWordCounts() {\n Map<String, List<String>> uniqueWordsInClass = new HashMap<>();\n List<String> uniqueWords = new ArrayList<>();\n\n for (ClassificationClass classificationClass : classificationClasses) {\n uniqueWordsInClass.put(classificationClass.getName(), new ArrayList<>());\n }\n\n for (Document document : documents) {\n String[] terms = document.getContent().split(\" \");\n\n for (String term : terms) {\n if (term.isEmpty()) {\n continue;\n }\n if (!uniqueWords.contains(term)) {\n uniqueWords.add(term);\n }\n\n for (ClassificationClass docClass : document.getClassificationClasses()) {\n if (!uniqueWordsInClass.get(docClass.getName()).contains(term)) {\n uniqueWordsInClass.get(docClass.getName()).add(term);\n }\n if (totalWordsInClass.containsKey(docClass.getName())) {\n this.totalWordsInClass.put(docClass.getName(), this.totalWordsInClass.get(docClass.getName()) + document.getFeatures().get(term));\n } else {\n this.totalWordsInClass.put(docClass.getName(), document.getFeatures().get(term));\n }\n }\n }\n }\n\n this.totalUniqueWords = uniqueWords.size();\n }", "private static HashMap<Integer, Integer> linkRealClustersWithCosSimilarity(HashMap<String, HashMap<String, Long>> realClustersThemesFreqMatrix, HashSet<String> realClustersUniqueTerms, HashMap<Integer, HashMap<String, Long>> newClustersFreqMatrix)\r\n {\r\n HashMap<Integer, Integer> clustersLinked = new HashMap<Integer, Integer>();\r\n double minCos, tmpCos;\r\n Integer bestCluster = null;\r\n \r\n System.out.println(\"Linking real clusters with calculated clusters...\");\r\n \r\n //Browsing each calculated cluster ID\r\n for(Integer newClusterId : newClustersFreqMatrix.keySet())\r\n {\r\n HashMap<String, Long> newTermsVector = newClustersFreqMatrix.get(newClusterId);\r\n Long[] newClusterFreqVector = FSDBuilder.getFrequencyVector(realClustersUniqueTerms, newTermsVector);\r\n minCos = -1;\r\n \r\n //Browsing the real clusters ID\r\n for(String realClusterId : realClustersThemesFreqMatrix.keySet())\r\n {\r\n HashMap<String, Long> realTermsVector = realClustersThemesFreqMatrix.get(realClusterId);\r\n Long[] realClusterFreqVector = FSDBuilder.getFrequencyVector(realClustersUniqueTerms, realTermsVector);\r\n \r\n tmpCos = FSDBuilder.getCosineSimilarity(newClusterFreqVector, realClusterFreqVector);\r\n if(tmpCos > minCos)\r\n {\r\n minCos = tmpCos;\r\n bestCluster = Integer.parseInt(realClusterId);\r\n }\r\n }\r\n \r\n //Assigning the closest (regarding to cosine similarity) real cluster ID to a calculated cluster ID\r\n clustersLinked.put(newClusterId, bestCluster);\r\n }\r\n \r\n System.out.println(\"Done\");\r\n \r\n return clustersLinked;\r\n }", "public static int termFrequency(String term, String[] document)\n {\n return 0;\n }", "public synchronized static ComputeTermFrequencies createComputeAndPrintTermFrequency() \n\t{\n\t\treturn new ComputeTermFrequencies();\n\t}", "private Map<String, Map<String, Integer>> computeConfusionMatrix(List<String> sentences, List<String> targets) {\r\n Map<String, Map<String, Integer>> confusionMap = new HashMap<>();\r\n // initialize the map (confusion matrix) of occurrences to be all zeros\r\n for (String trueCategory : categories) {\r\n Map<String, Integer> subConfusionMap = new HashMap<>();\r\n for (String predictedCategory : categories) {\r\n subConfusionMap.put(predictedCategory, 0);\r\n }\r\n confusionMap.put(trueCategory, subConfusionMap);\r\n }\r\n\r\n List<String> predictions = predict(sentences);\r\n for (int i = 0; i < sentences.size(); i++) {\r\n String trueCategory = targets.get(i);\r\n String predictedCategory = predictions.get(i);\r\n Map<String, Integer> subConfusionMap = confusionMap.get(trueCategory);\r\n subConfusionMap.put(predictedCategory, subConfusionMap.get(predictedCategory) + 1);\r\n }\r\n return confusionMap;\r\n }", "public static HashMap<TermPair, Integer> generateCooccurences (String text, HashMap<String, Integer> sourceTermFreq, Analyzer analyzer) throws IOException {\n HashMap<TermPair, Integer> cooccurList = new HashMap();\n BreakIterator sentences = BreakIterator.getSentenceInstance(Locale.US);\n sentences.setText(text);\n int start = sentences.first();\n for (int end = sentences.next(); end != BreakIterator.DONE; start = end, end = sentences.next()) {\n String sentence = text.substring(start,end);\n List words = tokenizeString(analyzer, sentence);\n for (int i = 0 ; i < words.size() ; i++) {\n Integer wFreq = sourceTermFreq.get(words.get(i).toString());\n wFreq = (wFreq == null) ? 1 : ++wFreq;\n sourceTermFreq.put(words.get(i).toString(), wFreq);\n for (int j = i+1 ; j < words.size() ; j++) {\n TermPair tp = new TermPair(words.get(i).toString(), words.get(j).toString());\n Integer freq = cooccurList.get(tp);\n if (freq!=null)\n freq += 1;\n else\n freq = 1;\n cooccurList.put(tp, freq);;\n }\n }\n }\n return cooccurList;\n }", "private static void calculateCentrois(){\n\t\t\n\t\tcentroidOfSpam = new TreeMap<String,Double>();\n\t\tcentroidOfLegitimate = new TreeMap<String,Double>();\n\t\t\n\t\tfor(int i=0; i< sumOfWordWeightsForSpam.size();i++){//for each spam word divide its total idf value by 240\n\t\t\tWordTfIdf wd = sumOfWordWeightsForSpam.get(i);\n\t\t\tcentroidOfSpam.put(wd.getWord(), wd.getTf_idf()/240);\n\t\t}\n\t\t\n\t\tfor(int i=0; i< sumOfWordWeightsForLegitimate.size();i++){//for each legitimate word divide its total idf value by 240\n\t\t\tWordTfIdf wd = sumOfWordWeightsForLegitimate.get(i);\n\t\t\tcentroidOfLegitimate.put(wd.getWord(), wd.getTf_idf()/240);\n\t\t}\n\t}", "public int numberOfTerms() {\n if (TermFreqVector.isEmpty()) {\n return 0;\n }\n int sum = 0;\n sum = TermFreqVector.values().stream().map((i) -> i).reduce(sum, Integer::sum);\n return sum;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the Subline field.
public void setSubline(java.lang.String value);
[ "public void setSUB_LINE_NO(BigDecimal SUB_LINE_NO) {\r\n this.SUB_LINE_NO = SUB_LINE_NO;\r\n }", "public void setSublines(entity.GL7Subline[] value);", "public void setSublineCd(String sublineCd) {\n\t\tthis.sublineCd = sublineCd;\n\t}", "public void setSub(Long sub) {\r\n this.sub = sub;\r\n }", "public void setSubarea(String _subarea){\n subarea=_subarea;\n }", "public void setSub(Subunit sub) \n\t{ mySub = sub; }", "public Builder setSubSubSubDisplay(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n subSubSubDisplay_ = value;\n onChanged();\n return this;\n }", "public void setSubText(String text) {\n\t\tsubText = text;\n\t\trepaint();\n\t}", "public void setSubId(String value) {\r\n setAttributeInternal(SUBID, value);\r\n }", "public void setSubtime(String subtime) {\n this.subtime = subtime == null ? null : subtime.trim();\n }", "public Builder setSubSubDisplay(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n subSubDisplay_ = value;\n onChanged();\n return this;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getSubline();", "public void\nsetSubpDefinition( SubpDefinition pSubpDefinition );", "public void setSubLength(Short subLength) {\n this.subLength = subLength;\n }", "public com.autodesk.ws.avro.Call.Builder setSuboperation(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.suboperation = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public void setSubVariation(String subVariation) {\n notNull(subVariation, \"subVariation cannot be null\");\n this.subVariation = subVariation;\n }", "public void setSubNum(String subNum) {\n this.subNum = subNum == null ? null : subNum.trim();\n }", "public BigDecimal getSUB_LINE_NO() {\r\n return SUB_LINE_NO;\r\n }", "public void setSubcontact(java.lang.String value);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for property idxSearchSort.
public void setIdxSearchSort(String idxSearchSort) { Preferences prefs = getPreferences(); prefs.put(PROP_SEARCH_SORT, idxSearchSort); }
[ "public String getIdxSearchSort() {\n Preferences prefs = getPreferences();\n return prefs.get(PROP_SEARCH_SORT, \"A\"); // NOI18N\n }", "public void setSortIndex(Integer sortIndex) {\r\n this.sortIndex = sortIndex;\r\n }", "public void setSortindex(Integer sortindex) {\n this.sortindex = sortindex;\n }", "public void setSort(int v) \r\n {\r\n\r\n if (this.sort != v)\r\n {\r\n this.sort = v;\r\n setModified(true);\r\n }\r\n\r\n\r\n }", "public Integer getSortIndex() {\r\n return sortIndex;\r\n }", "public void setSortIndex(Integer sortIndex) {\n\t\tthis.sortIndex = sortIndex;\n\t}", "public Integer getSortindex() {\n return sortindex;\n }", "Imports setSortkey(String sortkey);", "public void setSort(Long sort) {\n this.sort = sort;\n }", "public void setSortord(Integer sortord) {\n this.sortord = sortord;\n }", "public void setSortNo(int sortNo) {\n this.sortNo = sortNo;\n }", "public void setSortnum(Integer sortnum) {\n this.sortnum = sortnum;\n }", "public void setSortValue(String sortValue) { mSortValue = sortValue; }", "public void setSortNum(Integer sortNum) {\n this.sortNum = sortNum;\n }", "public void setSortId(Integer sortId) {\r\n this.sortId = sortId;\r\n }", "@Override\n @Transient\n public void setupSortIndex(final Session hibernateSession) {\n final Object object = hibernateSession.getNamedQuery(ChangeRequestProduct.FIND_NEXT_INDEX_VALUE).uniqueResult();\n if (object == null) {\n sortIndex = 1;\n } else {\n sortIndex = new Integer(object.toString());\n }\n }", "public void setSort(boolean value) {\n this.sort = value;\n }", "public void setSort(final SortParam<S> param)\n\t{\n\t\tstate.setSort(param);\n\t}", "public void setInstSort(Integer instSort) {\n this.instSort = instSort;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
"Add" a copy of the map to the dependencies
synchronized void addDependencies(Map<String, Set<String>> map) { Map<String, Set<String>> newMap = new HashMap<String, Set<String>>(); for (String name : map.keySet()){ newMap.put(name, map.get(name)); } dependencies.putAll(map); checkRep(); }
[ "private DependencyManager(Map<TypedKey<?>, Object> inputs)\n\t{\n\t\tmap.putAll(inputs);\n\t}", "public void add(AssetMap assetMap) {\n for(String key: assetMap.keySet()){\n add(key, assetMap.get(key));\n }\n }", "public void addLanguageMap (LanguageMap langMap) {\r\n \t\tlangMaps.add(langMap);\r\n \t\tmodified = true;\r\n \t}", "protected void map(Map map)\r\n\t{\r\n this.map = map;\r\n\t}", "protected abstract void addToConceptMap(T map, Dataset<Mapping> mappings);", "public void linkMap(Map map)\r\n\t{\r\n\t\tthis.map=map;\r\n\t}", "public void addMap(String map){\n if(!maps.contains(map))\n this.maps.add(map);\n }", "org.hl7.fhir.ConceptMap addNewConceptMap();", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "public void add(Mapping map)\r\n\t{\r\n\t\talign.add(map);\t\t\r\n\t}", "public synchronized void addDataMap(DataMap map) {\n if (!maps.contains(map)) {\n maps.add(map);\n clearCache();\n }\n }", "private MapPreservingOrderBuilder(LinkedHashMap<A, B> map) {\n this.map = map;\n }", "@SuppressWarnings(\"rawtypes\")\n EzyObjectBuilder append(Map map);", "public void addPoolMap(PoolMap poolMap){\n\n\t\tpoolMaps.add(poolMap);\n\t}", "void addDependencies(List<Dependency> dependencies);", "public void addDefines(Map<String, String> subs) {}", "protected static void addParam(Map map, Object key, Object value) {\n if (map.containsKey(key)) {\n Object oldValue = map.get(key);\n \n Collection newValue; \n if (oldValue instanceof Collection) {\n newValue = (Collection)oldValue;\n } else {\n newValue = new ArrayList();\n newValue.add(oldValue);\n }\n \n newValue.add(value);\n } else {\n map.put(key, value);\n }\n }", "void remapDependencies(DocRef docRef, Map<DocRef, DocRef> remappings);", "private void add(Element filterMap) {\n synchronized (lock) {\n Element[] results = Arrays.copyOf(array, array.length + 1);\n results[array.length] = filterMap;\n array = results;\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
delete not needed for this assinment so not added Method to find a particular item in the tree. Calls the private find method to recursively find a node containing the data.
public BTNode<T> find ( T data ){ //reset the find count findCount = 0; if (root == null) return null; else return find (data, root); }
[ "TreeItem<Node> findItem(Node node);", "private BinaryTreeNode findNode(T item) {\n\t\tif (item.equals(root.data)) {\n\t\t\treturn root;\n\t\t}\n\n\t\telse return findNodeRecursive(item, root);\n\t}", "public E find(E item){\n\t\tE found = find(item, root);\n\t\treturn found;\n\t}", "Node find(E data){\n Node current = first();\n while (current != null){\n current = current.next;\n if (current == null && current.getData() != data)\n continue; //if the current node does not contain the data, skip the loop\n break;\n }\n\n return current;\n }", "public BinaryTree<E> find(E item) \r\n\t{\r\n\t\treturn finderHelper(item, root);\r\n\t}", "public void testFind() {\r\n assertNull(tree.find(\"apple\"));\r\n tree.insert(\"apple\");\r\n tree.insert(\"act\");\r\n tree.insert(\"bagel\");\r\n assertEquals(\"act\", tree.find(\"act\"));\r\n assertEquals(\"apple\", tree.find(\"apple\"));\r\n assertEquals(\"bagel\", tree.find(\"bagel\"));\r\n }", "public DoublyLinkedListNode<E> findAndRemoveNode(E dataOfNodeToFind) {\n\tDoublyLinkedListNode<E> currentNode = this.head.getNextNode();\n\twhile (currentNode != this.tail) {\n\t if (currentNode.getData().equals(dataOfNodeToFind)) {\n\t\tcurrentNode.getPreviousNode().setNextNode(\n\t\t\tcurrentNode.getNextNode());\n\t\tcurrentNode.getNextNode().setPreviousNode(\n\t\t\tcurrentNode.getPreviousNode());\n\t\tcurrentNode.setNextNode(null);\n\t\tcurrentNode.setPreviousNode(null);\n\n\t\tthis.size--;\n\t\treturn currentNode;\n\t }\n\t currentNode = currentNode.getNextNode();\n\t}\n\treturn null;\n }", "private boolean find(mbynum_TreeNode<T> tree, T item )\n {\n boolean found = false;\n\n if (tree == null)\n found = false; // item is not\n // found.\n else if (item.compareTo(tree.data) < 0)\n found = find(tree.leftNode, item); // Search left\n // subtree.\n else if (item.compareTo(tree.data) > 0)\n found = find(tree.rightNode, item); // Search right\n // subtree.\n else\n found = true;\n return found;\n }", "public SNode<T> find (T searchdata){\r\n SNode<T> cur = head;\r\n while (cur!=null){\r\n if (cur.element().equals(searchdata)){\r\n return cur;\r\n }\r\n cur = cur.getNext();\r\n }\r\n return null;\r\n}", "public GObject find(Object userData) {\n\t\tif (userData_ == userData)\n\t\t\treturn this;\n\n\t\tfor (Iterator i = children_.iterator(); i.hasNext();) {\n\t\t\tGObject child = (GObject) i.next();\n\t\t\tGObject found = child.find(userData);\n\t\t\tif (found != null)\n\t\t\t\treturn found;\n\t\t}\n\n\t\t// Not found\n\t\treturn null;\n\t}", "protected TreeNode deleteItem(TreeNode tNode, Comparable searchKey) throws TreeException\n {\n if (tNode == null) \n {\n throw new TreeException(\"Item not found\");\n }\n\n TreeNode subtree;\n KeyedItem nodeItem = (KeyedItem)tNode.getItem();\n int comparison = searchKey.compareTo(nodeItem.getKey());\n\n if (comparison == 0) \n {\n // item is in the root of some subtree\n tNode = deleteNode(tNode); // delete the item\n }\n // else search for the item\n else if (comparison < 0) \n {\n // search the left subtree\n tNode = deleteLeft(tNode, searchKey);\n }\n else \n { \n // search the right subtree\n tNode = deleteRight(tNode, searchKey);\n } \n\n return tNode;\n }", "public Node find( int uid ) { return find(uid,new VBitSet()); }", "boolean find(Comparable item) {\r\n return find(item, root);\r\n }", "ANode<T> find(IPred<T> p) {\n if (p.apply(this.data)) {\n return this;\n }\n else {\n return this.next.find(p);\n }\n }", "private Node<T> search (T data) {\n Node<T> curr;\n curr = head;\n boolean findPosition = false;\n\n// //FIXME so weird\n// while (!findPosition) {\n// if (curr.getNext() != null) {\n// int comp = data.compareTo(curr.getNext().getData());\n// if (comp == 0) {\n// curr = curr.getNext();\n// while (curr.getDown() != null) {\n// curr = curr.getDown();\n// }\n// findPosition = true;\n// } else if (comp > 0) {\n// curr = curr.getNext();\n// } else {\n// if (curr.getDown()!=null) {\n// curr = curr.getDown();\n// } else {\n// findPosition = true;\n// }\n// }\n// } else {\n// if (curr.getDown()!=null) {\n// curr = curr.getDown();\n// } else {\n// findPosition = true;\n// }\n// }\n// }\n\n\n while (!findPosition) {\n Node<T> next = curr.getNext();\n if (next == null || (next != null && data.compareTo(next.getData()) < 0)) {\n if (curr.getDown() != null) {\n curr = curr.getDown();\n } else {\n findPosition = true;\n }\n } else {\n int comp = data.compareTo(next.getData());\n if (comp == 0) {\n curr = next;\n while (curr.getDown() != null) {\n curr = curr.getDown();\n }\n findPosition = true;\n } else {\n curr = next;\n }\n }\n }\n\n return curr;\n }", "public int find(Data d) { return search(d, true, true); }", "private PropertyItem findItem(IPropertySheetEntry entry) {\r\n\t\t// Iterate through treeItems to find item\r\n\t\tPropertyItem[] items = pv2.getItems();\r\n\t\tfor (int i = 0; i < items.length; i++) {\r\n\t\t\tPropertyItem item = items[i];\r\n\t\t\tPropertyItem findItem = findItem(entry, item);\r\n\t\t\tif (findItem != null) {\r\n\t\t\t\treturn findItem;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void delete(Any data)\n\t{\n\t\tint i = mHeight - 1;\n\n\t\t// nothing has been deleted yet\n\t\tboolean deleted = false; \n\n\t\t// this node calls the get method and sends \"data\" as a parameter.\n\t\tNode<Any> check = get(data);\n\n\t\tNode<Any> prev = head, temp = head.next(i);\n\n\t\t// if the Skiplist is empty or the node containing\n\t\t// data is not found, return.\n\t\tif (n == 0 || check == null)\n\t\t\treturn;\n\n\t\t// store height of the node to be deleted in h.\n\t\tint h = check.height - 1; \n\n\t\t// This loop goes thru the Skiplist in expected O(logn) runtime\n\t\t// until it finds the right node to be deleted, deletes it.\n\t\twhile (i >= 0)\n\t\t{\n\t\t\t// checks if the next node is null OR if data < temp node's value\n\t\t\tif (temp == null || data.compareTo(temp.value) < 0)\n\t\t\t{\n\t\t\t\t// checks if i is on level 0\n\t\t\t\tif (i == 0)\n\t\t\t\t\ttemp = prev.next(i); \n\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\ti--; // drop 1 level\n\n\t\t\t\t\t// move to next node on new level i\n\t\t\t\t\ttemp = prev.next(i); \n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// checks if data is found in temp node\n\t\t\telse if (data.compareTo(temp.value) == 0)\n\t\t\t{\n\t\t\t\t// current level i > 0 and i > check node's height\n\t\t\t\tif (i > 0 && i > h)\n\t\t\t\t{\n\t\t\t\t\ti--; // drop 1 level\n\n\t\t\t\t\t// move to next node on new level i\n\t\t\t\t\ttemp = prev.next(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// checks if level i <= check node's height\n\t\t\t\tif (i <= h)\n\t\t\t\t{\n\t\t\t\t\t// move to next node\n\t\t\t\t\ttemp = temp.next(i); \n\n\t\t\t\t\t// point prev node to temp node\n\t\t\t\t\tprev.refs.set(i, temp);\n\n\t\t\t\t\tif (i > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\ti--;\n\n\t\t\t\t\t\t// move to next node on new level i\n\t\t\t\t\t\ttemp = prev.next(i);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Successfully deleted node containing data\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tdeleted = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// checks if data > temp node's value\n\t\t\telse // > 0\n\t\t\t{\n\t\t\t\t// move nodes to next nodes on level i\n\t\t\t\tprev = temp; \n\t\t\t\ttemp = temp.next(i);\n\t\t\t}\n\t\t}\n\n\t\t// checks if a node is deleted\n\t\tif (deleted)\n\t\t{\n\t\t\tint logHeight = 1;\n\t\t\tn--; // Size - 1\n\n\t\t\tif (n > 1)\n\t\t\t\t logHeight = getMaxHeight(n); // logbase2(n)\n\n\t\t\t// keep trimming Skiplist until logHeight is achieved\n\t\t\twhile (logHeight < mHeight)\n\t\t\t\ttrimSkipList();\n\t\t}\n\n\t\treturn;\n\t}", "private BinaryNode<T> remove(BinaryNode<T> node, T searchKey4) {\r\n\t// if item not found, throw exception\r\n\t\t if (node == null) {\r\n\t\t\t throw new TreeException(\"Item not found!\");\r\n\t\t }\r\n\t\t // if search key is less than node's search key,\r\n\t\t // continue to left subtree\r\n\t\t else if (searchKey4.compareTo(node.getData()) < 0) {\r\n\t\t\t node.setLeftChild(this.remove(node.getLeftChild(), searchKey4));\r\n\t\t\t return node;\r\n\t\t }\r\n\t\t // if search key is greater than node's search key,\r\n\t\t // continue to right subtree\r\n\t\t else if (searchKey4.compareTo(node.getData()) > 0) {\r\n\t\t\t node.setRightChild(this.remove(node.getRightChild(), searchKey4));\r\n\t\t\t return node;\r\n\t\t }\r\n\t\t // found node containing object with same search key,\r\n\t\t // so delete it\r\n\t\t else {\r\n\t\t // call private method remove\r\n\t\t\t node = this.remove(node);\r\n\t\t\t return node;\r\n\t\t }\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Atomic__Group_3__0__Impl" $ANTLR start "rule__Atomic__Group_3__1" InternalTym.g:3364:1: rule__Atomic__Group_3__1 : rule__Atomic__Group_3__1__Impl ;
public final void rule__Atomic__Group_3__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalTym.g:3368:1: ( rule__Atomic__Group_3__1__Impl ) // InternalTym.g:3369:2: rule__Atomic__Group_3__1__Impl { pushFollow(FOLLOW_2); rule__Atomic__Group_3__1__Impl(); state._fsp--; if (state.failed) return ; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__Atomic__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:33324:1: ( rule__Atomic__Group_3__1__Impl )\n // InternalDsl.g:33325:2: rule__Atomic__Group_3__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_3__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:3260:1: ( rule__Atomic__Group_1__1__Impl )\n // InternalTym.g:3261:2: rule__Atomic__Group_1__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:3206:1: ( rule__Atomic__Group_0__1__Impl )\n // InternalTym.g:3207:2: rule__Atomic__Group_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:3341:1: ( rule__Atomic__Group_3__0__Impl rule__Atomic__Group_3__1 )\n // InternalTym.g:3342:2: rule__Atomic__Group_3__0__Impl rule__Atomic__Group_3__1\n {\n pushFollow(FOLLOW_17);\n rule__Atomic__Group_3__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_3__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:33297:1: ( rule__Atomic__Group_3__0__Impl rule__Atomic__Group_3__1 )\n // InternalDsl.g:33298:2: rule__Atomic__Group_3__0__Impl rule__Atomic__Group_3__1\n {\n pushFollow(FOLLOW_201);\n rule__Atomic__Group_3__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_3__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8412:1: ( rule__Atomic__Group_1__1__Impl )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8413:2: rule__Atomic__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__Atomic__Group_1__1__Impl_in_rule__Atomic__Group_1__116510);\n rule__Atomic__Group_1__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8349:1: ( rule__Atomic__Group_0__1__Impl )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8350:2: rule__Atomic__Group_0__1__Impl\n {\n pushFollow(FOLLOW_rule__Atomic__Group_0__1__Impl_in_rule__Atomic__Group_0__116388);\n rule__Atomic__Group_0__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:3233:1: ( rule__Atomic__Group_1__0__Impl rule__Atomic__Group_1__1 )\n // InternalTym.g:3234:2: rule__Atomic__Group_1__0__Impl rule__Atomic__Group_1__1\n {\n pushFollow(FOLLOW_34);\n rule__Atomic__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:33216:1: ( rule__Atomic__Group_1__1__Impl )\n // InternalDsl.g:33217:2: rule__Atomic__Group_1__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:33162:1: ( rule__Atomic__Group_0__1__Impl )\n // InternalDsl.g:33163:2: rule__Atomic__Group_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8381:1: ( rule__Atomic__Group_1__0__Impl rule__Atomic__Group_1__1 )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8382:2: rule__Atomic__Group_1__0__Impl rule__Atomic__Group_1__1\n {\n pushFollow(FOLLOW_rule__Atomic__Group_1__0__Impl_in_rule__Atomic__Group_1__016449);\n rule__Atomic__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Atomic__Group_1__1_in_rule__Atomic__Group_1__016452);\n rule__Atomic__Group_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:33189:1: ( rule__Atomic__Group_1__0__Impl rule__Atomic__Group_1__1 )\n // InternalDsl.g:33190:2: rule__Atomic__Group_1__0__Impl rule__Atomic__Group_1__1\n {\n pushFollow(FOLLOW_199);\n rule__Atomic__Group_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:3179:1: ( rule__Atomic__Group_0__0__Impl rule__Atomic__Group_0__1 )\n // InternalTym.g:3180:2: rule__Atomic__Group_0__0__Impl rule__Atomic__Group_0__1\n {\n pushFollow(FOLLOW_33);\n rule__Atomic__Group_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ActionAtomic__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6715:1: ( rule__ActionAtomic__Group_3__1__Impl )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6716:2: rule__ActionAtomic__Group_3__1__Impl\n {\n pushFollow(FOLLOW_rule__ActionAtomic__Group_3__1__Impl_in_rule__ActionAtomic__Group_3__113193);\n rule__ActionAtomic__Group_3__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_12__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:34026:1: ( rule__Atomic__Group_12__1__Impl )\n // InternalDsl.g:34027:2: rule__Atomic__Group_12__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Atomic__Group_12__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8475:1: ( rule__Atomic__Group_2__1__Impl )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8476:2: rule__Atomic__Group_2__1__Impl\n {\n pushFollow(FOLLOW_rule__Atomic__Group_2__1__Impl_in_rule__Atomic__Group_2__116632);\n rule__Atomic__Group_2__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__PredicateAtomic__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4944:1: ( rule__PredicateAtomic__Group_1__1__Impl )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:4945:2: rule__PredicateAtomic__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__PredicateAtomic__Group_1__1__Impl_in_rule__PredicateAtomic__Group_1__19705);\n rule__PredicateAtomic__Group_1__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8318:1: ( rule__Atomic__Group_0__0__Impl rule__Atomic__Group_0__1 )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:8319:2: rule__Atomic__Group_0__0__Impl rule__Atomic__Group_0__1\n {\n pushFollow(FOLLOW_rule__Atomic__Group_0__0__Impl_in_rule__Atomic__Group_0__016327);\n rule__Atomic__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Atomic__Group_0__1_in_rule__Atomic__Group_0__016330);\n rule__Atomic__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Atomic__Group_3__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:33309:1: ( ( () ) )\n // InternalDsl.g:33310:1: ( () )\n {\n // InternalDsl.g:33310:1: ( () )\n // InternalDsl.g:33311:2: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAtomicAccess().getStateIDAction_3_0()); \n }\n // InternalDsl.g:33312:2: ()\n // InternalDsl.g:33312:3: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAtomicAccess().getStateIDAction_3_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getAverageFitness: This takes in the chromosome and calculates the average fitness of all the chromosomes as an int
private int getAverageFitness(ArrayList<ArrayList<Integer>> chromosomeSet) { int sumOfFitness = 0; int averageFitness; for (int j = 0; j < chromosomeSet.size(); j++) { sumOfFitness += getChromosomeFitness(chromosomeSet.get(j)); } averageFitness = sumOfFitness / chromosomeSet.size(); this.averageFitness = averageFitness; return averageFitness; }
[ "double getAverageFitness() {\n return getTotalFitness()/population.length;\n }", "public double getAvgPopulationFitness() {\n\t\tdouble sum=0;\n\t\tfor (int i = 0; i < individuals.length; i++) {\n\t\t\tsum+=individuals[i].getFitness();\n\t\t}\n\t\treturn sum/(double)individuals.length;\n\t}", "double fitnessFunction(Chromosome chromosome);", "public float getAveragePercentageCoverage(int[] Chromosome){\n\t\tfloat AveragePercentageCoverage = 0;\n\t\tint firstCoveredSum = 0; //Sum of the first test case in the order that covers the Block/Statement/Branch i.\n\t\t\t//System.out.println(\"testCaseCovered Size: \"+this.testCaseCovered.size());\n\t\tfor(int k=0; k<this.testCaseCovered.size(); k++){\n\t\t\tfor(int i=0; i<Chromosome.length; i++){\n\t\t\t\tif(this.CoverageMatrix[Chromosome[i]][this.testCaseCovered.get(k)] == '1'){\n\t\t\t\t\tfirstCoveredSum += i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"firstCoveredSum: \"+firstCoveredSum);\n\t\tAveragePercentageCoverage = 1-(float)((float)firstCoveredSum / (float)(this.GenesNum * this.testCaseCovered.size()))+(1.0F / (float)(2 * this.GenesNum));\n\t\treturn AveragePercentageCoverage;\n\t}", "private int getChromosomeFitness(ArrayList<Integer> chromosome) {\r\n int fitness = 0;\r\n int currentCity;\r\n int nextCity;\r\n\r\n for (int i = 0; i < chromosome.size() - 1; i++) {\r\n currentCity = chromosome.get(i);\r\n nextCity = chromosome.get(i + 1);\r\n // getsTheCostTo go from currCity to nextCity and adds to fitness\r\n fitness += cityCostList.get(currentCity).get(nextCity);\r\n }\r\n\r\n return fitness;\r\n }", "public float[] getAllAveragePercentageCoverageMetricAndFitness(){\n\t\tfloat Metrics[] = new float[this.PopulationSize];\n\t\tfloat Fitness[] = new float[this.PopulationSize];\n\n\t\tfor(int i=0; i<this.PopulationSize; i++){\n\t\t\tMetrics[i] = this.getAveragePercentageCoverage(this.Population[i]);\n\t\t}\n\t\tfloat[] tempMetrics = Arrays.copyOf(Metrics, Metrics.length); // Copy the original Array to sort it.\n\t\tArrays.sort(tempMetrics); //Sort the temp Metric Value Array.\n\t\t//this.Print(tempMetrics);\n\t\tint[] Positions = new int[Metrics.length];\n\t\t//Get the Position value for each Chromosome.\n\t\tfor(int i=0; i<Metrics.length; i++){\n\t\t\tfor(int j=0; j<tempMetrics.length; j++){\n\t\t\t\tif(tempMetrics[j] == Metrics[i]){\n\t\t\t\t\tPositions[i] = j+1; //Larger APC will get larger Position Value.\n\t\t\t\t\ttempMetrics[j] = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Arrays.sort(Positions);\n\t\t//System.out.println(\"Positions len: \"+Positions.length);\n\t\t//this.Print(Positions); // Print the Metrics Value.\n\t\t//Compute the Fitness for each Chromosome.\n\t\tfor(int i=0; i<Positions.length; i++){\n\t\t\tFitness[i] = 2 * ((Positions[i] -1) / (float)this.PopulationSize);\n\t\t}\n\t\t//this.Print(Fitness);\n\t\treturn Fitness;\n\t}", "double avgFitness()\n\t{\n\t\tdouble sum = 0;\n\t\tfor(int i = 0; i < L.size(); i++)\n\t\t{\n\t\t\tsum += L.get(i).fitness;\n\t\t}\n\t\treturn sum / (double)L.size();\n\t}", "public double averageFitness()\r\n {\r\n\treturn averageFitness;\r\n }", "public double getAvgFitness(){\n return avg_fitness;\n }", "public static double meanFitness(Individuals population[],int pop){\r\n\t\tdouble total = totalFitness(population,pop);\r\n\t\tdouble meanFitness = total/pop;\r\n\t\treturn meanFitness;\r\n\t}", "public double getAverageFitness () {\n return this.current_avg;\n }", "private Integer getFitness(int[] chromosome) {\n\t\tint[] bins = new int[binCount]; //list of found bins\n\t\tfor (int binIndex = 0; binIndex < bins.length; binIndex++) { //initialize list of bins to unfound\n\t\t\tbins[binIndex] = -1;\n\t\t}\n\t\tint[] newChrom = bestFitModified(chromosome.clone()); //fix if infeasible\n\t\tif (newChrom == null) { //this is an unfixable chromosome, inform caller\n\t\t\treturn binCount * 2 + totalInfeasibility(chromosome);\n\t\t}\n\n\t\tfor (int i = 0; i < newChrom.length; i++) {\n\t\t\tchromosome[i] = newChrom[i]; //copy over to take advantage of side-effects\n\t\t}\n\t\tint uniqueBins = 0;\n\n\t\tfor (int i = 0; i < chromosome.length; i++) {\n\t\t\tif (bins[chromosome[i]] == -1) { //if we haven't seen this bin before track it and increment bin counter\n\t\t\t\tbins[chromosome[i]] = chromosome[i];\n\t\t\t\tuniqueBins++;\n\t\t\t} else\n\t\t\t\tcontinue;\n\t\t}\n\n\t\treturn uniqueBins;\n\t}", "double getTotalFitness() {\n double totalFitness = 0;\n\n for (int i=0; i < population.length; i++) {\n totalFitness += Algorithm.getFitness(getIndividual(i));\n }\n\n return totalFitness;\n }", "public double averageGPA() {\r\n\t\tdouble score = 0;\r\n\t\tint students = 0;\r\n\t\tfor (int i = 0; i < this.roster.length; i++) {\r\n\t\t\tif (this.roster[i].getStudentID() != 0) {\r\n\t\t\t\tscore = score + this.roster[i].getGPA();\r\n\t\t\t\tstudents = students + 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble GPA = score/students;\r\n\t\t\r\n\t\treturn GPA;\r\n\t}", "private float calcAvg() {\n\t\tfloat sum = 0;\n\t\tfor (Integer a : gradesOfExam)\n\t\t\tsum += a;\n\t\tsum /= gradesOfExam.size();\n\t\treturn sum;\n\t}", "int getFitnessScore(Fitness fitness) {\n\t\tif (score == -1) {\n\t\t\tscore = fitness.computeFitness(this);\n\t\t}\n\n\t\treturn score;\n\t}", "public double getAverage(){\n\t\treturn (grades[0].getScore() + grades[1].getScore() + grades[2].getScore() + grades[3].getScore()) / grades.length;\r\n\t}", "public int getAverage() {\n\n // Create variables for sum and length of array.\n double sum = 0;\n double length = testScores.length;\n\n // for loop to go through each number in the testScores array.\n for(int n: testScores) {\n\n // if statement to throw exception if a number is > 100 or < 0.\n if(n < 0 || n > 100) {\n throw new IllegalArgumentException(\"One or more of the Test Scores is Less than 0 or Greater than 100\");\n }\n\n // Add the number to the sum if it's valid.\n sum+= (double)n;\n }\n\n // return an integer, use Math.round() to round the sum up.\n return (int)Math.round(sum / length);\n }", "private double calculateFitness() {\n\t\tdouble val; // calculate fitness as 1/number_given+1 (if 1/5 then count as -10, since student can't do the slot)\n\t\treturn 0.0;\n\t\t\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Generic Trigger'.
GenericTrigger createGenericTrigger();
[ "Trigger createTrigger();", "SimpleTrigger createSimpleTrigger();", "LOTrigger createLOTrigger();", "TriggerType createTriggerType();", "@Nonnull\n public static JDK8TriggerBuilder <ITrigger> newTrigger ()\n {\n return new JDK8TriggerBuilder <> ();\n }", "protected abstract Trigger createEventPayload();", "public T caseGenericTrigger(GenericTrigger object)\n {\n return null;\n }", "public TTriggersRecord() {\n\t\tsuper(org.jooq.test.mysql.generatedclasses.tables.TTriggers.T_TRIGGERS);\n\t}", "@NonNull\n public Trigger build() {\n return new Trigger(type, goal, null);\n }", "Trigger getTrigger();", "public static ProcessingTimeTrigger create() {\n\t\treturn new ProcessingTimeTrigger();\n\t}", "TriggerTable createTriggerTable();", "public Triggers() {\n this(\"TRIGGERS\", null);\n }", "public TriggerSub() {\n\n }", "TimingTriggeringEntityStartImplementation createTimingTriggeringEntityStartImplementation();", "@NonNull\n public Trigger build() {\n if (UAStringUtil.isEmpty(eventName)) {\n return new Trigger(type, goal, null);\n }\n\n JsonPredicate predicate = JsonPredicate.newBuilder()\n .setPredicateType(JsonPredicate.AND_PREDICATE_TYPE)\n .addMatcher(JsonMatcher.newBuilder()\n .setKey(CustomEvent.EVENT_NAME)\n .setValueMatcher(ValueMatcher.newValueMatcher(JsonValue.wrap(eventName)))\n .build())\n .build();\n return new Trigger(type, goal, predicate);\n }", "public TTrigger getTrigger() {\r\n return _trigger;\r\n }", "protected TriggerFactory getTriggerFactory() {\n\t\treturn this.triggerFactory;\n\t}", "public TriggerType getTriggerType()\n {\n return _trigger;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the current tail id
protected long getTail() { Object obj = couch.get(tail_key); if (obj != null) { return Long.parseLong(obj.toString()); } return 0; }
[ "public int getTailId() {\n\t\treturn tailId;\n\t}", "public int getTail() {\r\n\t\treturn tail;\r\n\t}", "java.lang.String getHeadId();", "public int getCurrentServerId() {\n return currentServerId;\n }", "protected long findTailLogID(long aHeadLogID)\r\n {\r\n // reverse the list to start of the bottom\r\n Collections.reverse(mLogEntries);\r\n long logID = findLogID(mHeadLimit, aHeadLogID);\r\n // put the list back in its proper order\r\n Collections.reverse(mLogEntries);\r\n return logID;\r\n }", "public static int getLastId()\n {\n return lastId;\n }", "public Long getHeadId() {\n return headId;\n }", "protected long findHeadLogID()\r\n {\r\n return findLogID(mHeadLimit, -1);\r\n }", "public static int getMostRecentLineId() {\n\t\treturn lineId-1;\n\t}", "public long getTaille() {\n return taille;\n }", "private static long uniqueTid() {\n return ((long) getProcessId() << 24) | currentThread().getId();\n }", "public Long getTrailId() {\n\t\treturn trailId;\n\t}", "public int getTaille() {\r\n\t\treturn taille;\r\n\t}", "public static int getThreadID() {\n return threadId.get();\n }", "public long nextTeLinkId() {\n return nextTeLinkId;\n }", "public String getUniqueId() {\n return getCurrentInstance().getViewRoot().createUniqueId();\n }", "public synchronized String getLastPostId() {\n try {\n this.connect();\n Post lastPost = linkedin.groupOperations().getGroupDetails(groupId).getPosts().getPosts().get(0);\n return lastPost.getId();\n } catch (Exception e) {\n log.debug(\"An exception occured when reading id of the last inserted post from group: \" + groupId);\n }\n return null;\n }", "public UUID getId() {\r\n\t\treturn ticket.getId();\r\n\t}", "public Point getTailLocation ()\r\n {\r\n if (tailLocation == null) {\r\n computeLocations();\r\n }\r\n\r\n return tailLocation;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the list of attributes exposed by the mbean having the supplied URN.
private List<String> getAttributes(ModuleURN inURN) throws Exception { MBeanInfo beanInfo = getMBeanServer().getMBeanInfo(inURN.toObjectName()); List<String> attribs = new ArrayList<String>(); for(MBeanAttributeInfo info: beanInfo.getAttributes()) { attribs.add(info.getName()); } return attribs; }
[ "public List<IRobotAttribute> getAttributes();", "public List<NitobiAttribute> getComponentAttributes();", "java.util.List<bosphorus2.Aomgen.CATTRIBUTE> \n getAttributesList();", "java.util.List<com.google.ads.googleads.v13.resources.FeedAttribute> \n getAttributesList();", "java.util.List<tendermint.abci.EventAttribute> \n getAttributesList();", "List<RoomAttribute> getRoomAttributes();", "public Entry[] getLookupAttributes() throws RemoteException {\n\t\treturn mgr.getAttributes();\n\t}", "Collection getVisibleUserDefinedRDFProperties();", "public String getListAttributesPref()\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n return serializer.serialize(tree.getChildren());\n }", "@JsonIgnore\n public List<Attr> getAttrListValue() {\n if (type != Type.ATTRLIST) {\n throw new IllegalStateException(\"Attribute \" + name + \" is type \" + type);\n }\n return listFromJson(value);\n }", "@JsonIgnore\n\tpublic synchronized List<Attribute> getAttributeList(){\n\t\treturn attributes;\n\t}", "List<IAttribute> getAttributes();", "@Accessor(qualifier = \"attributes\", type = Accessor.Type.GETTER)\n\tpublic Set<IntegrationObjectItemAttributeModel> getAttributes()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ATTRIBUTES);\n\t}", "String userGetAttributes();", "RegionAttributesData listRegionAttributes();", "@GetMapping(\"/user-custom-atributes\")\n @Timed\n public List<UserCustomAtributes> getAllUserCustomAtributes() {\n log.debug(\"REST request to get all UserCustomAtributes\");\n List<UserCustomAtributes> userCustomAtributes = userCustomAtributesRepository.findAll();\n return userCustomAtributes;\n }", "protected AttributeList getAttributes() {\r\n\t\treturn this.space.getAttributes(this);\r\n\t}", "public com.flexnet.operations.webservices.OrgCustomAttributesQueryListType getCustomAttributes() {\n return customAttributes;\n }", "Map<String, Attribute> getAttributes();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read some URL resource in as a UTF8 encoded string.
protected String readResource(URL url) { InputStreamReader reader = null; try { reader = new InputStreamReader(url.openStream(), "UTF-8"); final StringWriter writer = new StringWriter(); char[] buf = new char[1024]; for (int r; (r = reader.read(buf)) != -1; ) writer.write(buf, 0, r); return writer.toString(); } catch (IOException e) { throw new RuntimeException("error reading from " + url, e); } finally { if (reader != null) { try { reader.close(); } catch (IOException e) { // ignore } } } }
[ "public static String readUtf8Url(URL url) {\n try (InputStream is = url.openStream()) {\n return toUtf8String(is);\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }", "private String readString(String urlString) throws MalformedURLException, IOException {\n\t\tURL url = new java.net.URL(urlString);\n\t\tURLConnection connection = url.openConnection();\n\n\t\tInputStream stream = connection.getInputStream();\n\t\ttry {\n\t\t\treturn IOUtils.toString(stream, \"UTF-8\");\n\t\t} finally {\n\t\t\tif (stream != null) {\n\t\t\t\t// close the stream\n\t\t\t\tstream.close();\n\t\t\t}\n\t\t}\n\t}", "public static String readFromResourceURL(final URL fileUrl) throws Exception {\n final Path path = Paths.get(fileUrl.getFile());\n return new String(Files.readAllBytes(path));\n }", "String read(StreamableResource resource) throws IOException;", "private static String loadStream(InputStream in) throws IOException {\r\n int ptr = 0;\r\n in = new BufferedInputStream(in);\r\n StringBuffer buffer = new StringBuffer();\r\n while( (ptr = in.read()) != -1 ) {\r\n buffer.append((char)ptr);\r\n }\r\n return buffer.toString();\r\n }", "protected String readUnicodeInputStream(InputStream in) throws IOException {\n\t\tUnicodeReader reader = new UnicodeReader(in, null);\n\t\tString data = FileCopyUtils.copyToString(reader);\n\t\treader.close();\n\t\treturn data;\n\t}", "private static String readUrl(String urlString) throws Exception {\n\t BufferedReader reader = null;\n\t try {\n\t URL url = new URL(urlString);\n\t reader = new BufferedReader(new InputStreamReader(url.openStream()));\n\t StringBuffer buffer = new StringBuffer();\n\t int read;\n\t char[] chars = new char[1024];\n\t while ((read = reader.read(chars)) != -1)\n\t buffer.append(chars, 0, read); \n\n\t return buffer.toString();\n\t } finally {\n\t if (reader != null)\n\t reader.close();\n\t }\n\t}", "static String loadStream(InputStream in) throws IOException {\n int ptr = 0;\n in = new BufferedInputStream(in);\n StringBuffer buffer = new StringBuffer();\n while( (ptr = in.read()) != -1 ) {\n buffer.append((char)ptr);\n }\n return buffer.toString();\n }", "public String readUTF() throws IOException;", "static String loadStream(InputStream in) throws IOException { \n\t\tint ptr = 0; \n\t\tin = new BufferedInputStream(in); \n\t\tStringBuffer buffer = new StringBuffer(); \n\t\twhile( (ptr = in.read()) != -1 ) { \n\t\t\tbuffer.append((char)ptr); \n\t\t} \n\t\treturn buffer.toString(); \n\t}", "public static String loadResource(String filename) {\n try (InputStream in = streamResource(filename)) {\n return CharStreams.toString(new InputStreamReader(in, Charsets.UTF_8));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public String readString() throws HttpClientException, IOException {\n\t\treturn FileUtils.readFileString(getReader());\n\t}", "public String loadResourceAsString(String path, String encoding)\n\t\t\tthrows IOException;", "public String loadResourceAsString(String path) throws IOException;", "public static String loadStream(InputStream in) throws IOException {\n int ptr = 0;\n in = new BufferedInputStream(in);\n StringBuffer buffer = new StringBuffer();\n try {\n while ((ptr = in.read()) != -1) {\n buffer.append((char) ptr);\n }\n } finally {\n in.close();\n }\n return buffer.toString();\n }", "String getURLString() {\n FileObject urlFile = getPrimaryFile();\n if (!urlFile.isValid()) {\n return null;\n }\n String urlString = null;\n \n InputStream is = null;\n try {\n is = urlFile.getInputStream();\n urlString = new BufferedReader(new InputStreamReader(is))\n .readLine();\n } catch (FileNotFoundException fne) {\n ErrorManager.getDefault().notify(ErrorManager.WARNING, fne);\n return null;\n } catch (IOException ioe) {\n ErrorManager.getDefault().notify(ErrorManager.WARNING, ioe);\n return null;\n } finally {\n if (is != null) {\n try {\n is.close ();\n } catch (IOException e) {\n ErrorManager.getDefault().notify(\n ErrorManager.INFORMATIONAL, e);\n }\n }\n }\n \n if (urlString == null) {\n /*\n * If the file is empty, return an empty string.\n * <null> is reserved for notifications of failures.\n */\n urlString = \"\"; //NOI18N\n }\n return urlString;\n }", "public String openHttp2String(URL url) throws IOException {\r\n return EntityUtils.toString(openHttpEntity(url), Charset.forName(\"UTF-8\"));\r\n }", "String readString() throws IOException;", "private static String getFromURL(String url, int sampleSize) throws IOException {\n char[] sample = new char[sampleSize];\n URL fileUrl = new URL(url);\n BufferedReader in = new BufferedReader(new InputStreamReader(fileUrl.openStream()));\n if(in.read(sample) != sampleSize){\n in.close();\n throw new IOException();\n }\n in.close();\n return String.valueOf(sample);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
utility routine used to return screen z coordinate given world coordinates.
public float getScreenZ(float[] v) { double[] screenXYZ = new double[3]; glu.gluProject(v[0], v[1], v[2], modelViewMatrix, 0, projectionMatrix, 0, viewPort, 0, screenXYZ, 0); return (float)screenXYZ[0]; }
[ "Vector3f getScreenCoordinates( Vector3f worldPosition );", "public double getZProjection(double x, double y, double z){ \n double wz=P[2]*x+P[6]*y+P[10]*z+P[14];\n double winz=0.5*(wz+1);\n return winz;\n }", "Vector3f getScreenCoordinates( Vector3f worldPosition, Vector3f store );", "String getZPosition();", "double getCurrentZPos();", "float getPositionZ();", "godot.wire.Wire.Vector3 getZ();", "public double getZ() \n\t{\n\t\treturn z.coord;\n\t}", "public double getZ(){\n return zCoord;\n }", "public double getZ() {\n return zCoord;\n }", "float getZ();", "public double getZ(double r, double x, double y){\n return Math.sqrt(r*r - x*x - y*y);\n }", "public double[] getWorldCoordinateWGS84(int screenX, int screenY);", "private GridPoint2 getTileCoords(float x, float z) {\n\t\tint tileX = (int)z;\n\t\tint tileY = (int)x;\n\t\treturn new GridPoint2(tileX, tileY);\n\t}", "public double getZDistance() {\n position = imu.getPosition();\n return position.z;\n }", "public int[] getScreenCoordinateWGS84(double worldLat, double worldLon);", "private double z(double x, double y) {\n double xTwo = Utils.inRoundTwoDigits(x);\n double yTwo = Utils.inRoundTwoDigits(y);\n double result = (16 - 2*xTwo - yTwo) / 3;\n\n return Utils.inRoundTwoDigits(result);\n }", "public int getzPos() {\n return zPos;\n }", "public int getZGridOfElement(float wz) {\r\n\t\tfloat tz = wz - (size * -1);\r\n\t\tfloat gridSize = (float) size / (numberOfVertex - 1);\r\n\t\tint gridZ = (int) Math.floor(tz / gridSize);\r\n\t\treturn gridZ;\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
@ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") public Boolean getRepublish() { return republish; }
[ "public abstract boolean keepOldAttributes();", "private boolean newFileIsNotAlreadyAFile(String newFile) {\n boolean result = true;\n File fileToCopy = new File(newFile);\n if(fileToCopy.exists()) {\n if (!overwriteConfirm()) {\n System.out.println(\"Denied overwrite.\");\n result = false;\n }\n }\n return result;\n }", "public boolean canOverwrite() {\n return this.overwrite;\n }", "public void setIsDuplicate();", "public void setIsDuplicable(Short isDuplicable)\n {\n this.isDuplicable = isDuplicable;\n }", "@Override\r\n public boolean sameItemAs(Package pkg) {\n if (pkg instanceof ExtraPackage) {\r\n ExtraPackage ep = (ExtraPackage) pkg;\r\n\r\n String[] epOldPaths = ep.getOldPaths();\r\n int lenEpOldPaths = epOldPaths.length;\r\n for (int indexEp = -1; indexEp < lenEpOldPaths; indexEp++) {\r\n if (sameVendorAndPath(\r\n mVendor, mPath,\r\n ep.mVendor, indexEp < 0 ? ep.mPath : epOldPaths[indexEp])) {\r\n return true;\r\n }\r\n }\r\n\r\n String[] thisOldPaths = getOldPaths();\r\n int lenThisOldPaths = thisOldPaths.length;\r\n for (int indexThis = -1; indexThis < lenThisOldPaths; indexThis++) {\r\n if (sameVendorAndPath(\r\n mVendor, indexThis < 0 ? mPath : thisOldPaths[indexThis],\r\n ep.mVendor, ep.mPath)) {\r\n return true;\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n }", "private void reportDuplications(boolean toDelete) {\r\n\r\n\t\tfor (Map.Entry<String, ArrayList<ApkInfo>> entry : this.packageHash.entrySet()) {\r\n\t\t\t// String key = entry.getKey();\r\n\t\t\tArrayList<ApkInfo> value = entry.getValue();\r\n\t\t\tif (value.size() > 1) {\r\n\t\t\t\tArrayList<CApkInfo> cvalue = new ArrayList<ApKing.CApkInfo>();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\r\n\t\t\t\tList<Version> versions = new ArrayList<Version>();\r\n\r\n\t\t\t\tboolean versionerror = false;\r\n\t\t\t\tboolean versionerror2 = false;\r\n\r\n\t\t\t\tfor (ApkInfo ai : value) {\r\n\r\n\t\t\t\t\tCApkInfo cai = new CApkInfo();\r\n\r\n\t\t\t\t\tcai.apkinfo = ai;\r\n\r\n\t\t\t\t\t// System.out.println(ai.fullpath + \" \" + ai.version);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tversions.add(new Version(ai.version));\r\n\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tversionerror = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tcai.cmp = new ComparableVersion(ai.version);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tversionerror2 = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcvalue.add(cai);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (versionerror2) {\r\n\t\t\t\t\tSystem.out.println(\"BAD VERSION FORMAT 2\");\r\n\t\t\t\t\tfor (ApkInfo ais : value) {\r\n\t\t\t\t\t\tSystem.out.println(\"#del \" + ais.fullpath);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tCApkInfo maxi = Collections.max(cvalue, new Comparator<CApkInfo>() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic int compare(CApkInfo left, CApkInfo right) {\r\n\t\t\t\t\t\t\treturn left.cmp.compareTo(right.cmp);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tmaxi.max = true;\r\n\r\n\t\t\t\t\tString warning = \"\";\r\n\t\t\t\t\tif (versionerror || versionerror2) {\r\n\t\t\t\t\t\twarning = \"WARNING!! \";\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tString vers = \"\";\r\n\t\t\t\t\tfor (CApkInfo aic : cvalue) {\r\n\t\t\t\t\t\tif (aic.max) {\r\n\t\t\t\t\t\t\tvers = vers + \"-->\" + aic.apkinfo.version + \"<-- , \";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tvers = vers + aic.apkinfo.version + \" , \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"::\" + warning + maxi.apkinfo.name + \" // \" + vers);\r\n\r\n\t\t\t\t\tfor (CApkInfo aic : cvalue) {\r\n\t\t\t\t\t\t// String max ;\r\n\t\t\t\t\t\tif (aic.max) {\r\n\t\t\t\t\t\t\t// max = \"rem #\";\r\n\t\t\t\t\t\t\t// A LEGUJABB\r\n\t\t\t\t\t\t\tSystem.out.println(\"!OK \" + aic.apkinfo.fullpath);\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// REGEBBI , TOROLNI KELL (MOVE TO DELETEFOLDER)\r\n\t\t\t\t\t\t\tSystem.out.println(\"del \" + aic.apkinfo.fullpath);\r\n\r\n\t\t\t\t\t\t\tif (toDelete) {\r\n\t\t\t\t\t\t\t\tString renamedfile = this.init.deletePath + \"/\" + FilenameUtils.getName(aic.apkinfo.fullpath);\r\n\t\t\t\t\t\t\t\tFile file = new File(aic.apkinfo.fullpath);\r\n\t\t\t\t\t\t\t\tif (file.renameTo(new File(renamedfile))) {\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"File is failed to move!\" + renamedfile);\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\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\t// System.out.println(\"MAX: \" + maxi.apkinfo.version +\r\n\t\t\t\t// \" \"+maxi.apkinfo.filename);\r\n\r\n\t\t\t}\r\n\t\t\t// do stuff\r\n\t\t}\r\n\r\n\t}", "public boolean isDuplicateSupported()\n\t{\n\t\treturn duplicateSupported;\n\t}", "public void setUpdateAllDuplicates(boolean updateAllDuplicates);", "public boolean isDuplicateSupported() {\n\t\treturn duplicateSupported;\n\t}", "private boolean shouldAppendPackagingData(StackTraceElementProxy step, StackTraceElementProxy previousStep) {\n if (step == null || step.getClassPackagingData() == null) {\n return false;\n }\n if (previousStep == null || previousStep.getClassPackagingData() == null) {\n return true;\n }\n return !step.getClassPackagingData().equals(previousStep.getClassPackagingData());\n }", "public static boolean isDupCopiesExports() { return cacheDupCopiesExports.getBoolean(); }", "public abstract boolean canBeDuplicated( );", "boolean canDuplicate() ;", "public static void noOverwrite() {\n\t\tdefaultOverwriteMode = NO_OVERWRITE;\n\t}", "private OperationStatus dupsPutOverwrite(final DatabaseEntry key,\n final DatabaseEntry data) {\n final DatabaseEntry twoPartKey = DupKeyData.combine(key, data);\n return putNoDups(twoPartKey, EMPTY_DUP_DATA, PutMode.OVERWRITE);\n }", "public Boolean deduplicate() {\n\t\t\treturn deduplicate;\n\t\t}", "@objid (\"ef9777b4-ed2a-4341-bb22-67675cddb70a\")\n boolean isIsUnique();", "public boolean canOverwrite() {\n synchronized (this) {\n return this.overwrite;\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the user role assignment for that role If there's no assignment for that role, returns null. If there is more than one assignment for that role, then the first role will be returned. Note: getUserRoleAssignmentsByRole(UserRole) should be called if multiple assignments are expected to return.
public entity.PolicyUserRoleAssignment getUserRoleAssignmentByRole(typekey.UserRole role) { return ((com.guidewire.pc.domain.policy.PolicyPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pc.domain.policy.PolicyPublicMethods")).getUserRoleAssignmentByRole(role); }
[ "public entity.PolicyUserRoleAssignment getUserRoleAssignmentByRole(typekey.UserRole role) {\n return ((com.guidewire.pc.domain.policy.PolicyPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pc.domain.policy.PolicyPublicMethods\")).getUserRoleAssignmentByRole(role);\n }", "public entity.PolicyUserRoleAssignment[] getUserRoleAssignmentsByRole(typekey.UserRole role) {\n return ((com.guidewire.pc.domain.policy.PolicyPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pc.domain.policy.PolicyPublicMethods\")).getUserRoleAssignmentsByRole(role);\n }", "public entity.PolicyUserRoleAssignment[] getUserRoleAssignmentsByRole(typekey.UserRole role) {\n return ((com.guidewire.pc.domain.policy.PolicyPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pc.domain.policy.PolicyPublicMethods\")).getUserRoleAssignmentsByRole(role);\n }", "public entity.PolicyUserRoleAssignment getOrCreateUserRoleAssignmentByRole(typekey.UserRole role) {\n return ((com.guidewire.pc.domain.policy.PolicyPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pc.domain.policy.PolicyPublicMethods\")).getOrCreateUserRoleAssignmentByRole(role);\n }", "public entity.PolicyUserRoleAssignment getOrCreateUserRoleAssignmentByRole(typekey.UserRole role) {\n return ((com.guidewire.pc.domain.policy.PolicyPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pc.domain.policy.PolicyPublicMethods\")).getOrCreateUserRoleAssignmentByRole(role);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyUserRoleAssignment[] getRoleAssignments() {\n return (entity.PolicyUserRoleAssignment[])__getInternalInterface().getFieldValue(ROLEASSIGNMENTS_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyUserRoleAssignment[] getRoleAssignments() {\n return (entity.PolicyUserRoleAssignment[])__getInternalInterface().getFieldValue(ROLEASSIGNMENTS_PROP.get());\n }", "public entity.PolicyUserRoleAssignment getUserRoleAssignment(entity.User user, typekey.UserRole userRole) {\n return ((com.guidewire.pc.domain.policy.PolicyPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pc.domain.policy.PolicyPublicMethods\")).getUserRoleAssignment(user, userRole);\n }", "public entity.PolicyUserRoleAssignment getUserRoleAssignment(entity.User user, typekey.UserRole userRole) {\n return ((com.guidewire.pc.domain.policy.PolicyPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pc.domain.policy.PolicyPublicMethods\")).getUserRoleAssignment(user, userRole);\n }", "public entity.PolicyUserRoleAssignment getCurrentRoleAssignment() {\n return ((com.guidewire.pc.domain.policy.PolicyPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pc.domain.policy.PolicyPublicMethods\")).getCurrentRoleAssignment();\n }", "public entity.PolicyUserRoleAssignment getCurrentRoleAssignment() {\n return ((com.guidewire.pc.domain.policy.PolicyPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pc.domain.policy.PolicyPublicMethods\")).getCurrentRoleAssignment();\n }", "public ResourceSetDescription roleAssignments() {\n return this.roleAssignments;\n }", "public RoleAssignment withRoleAssignments(ResourceSetDescription roleAssignments) {\n this.roleAssignments = roleAssignments;\n return this;\n }", "public final void rule__Community__RolesAssignment_4() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28205:1: ( ( ruleRole ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28206:1: ( ruleRole )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28206:1: ( ruleRole )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:28207:1: ruleRole\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getCommunityAccess().getRolesRoleParserRuleCall_4_0()); \r\n }\r\n pushFollow(FOLLOW_ruleRole_in_rule__Community__RolesAssignment_456629);\r\n ruleRole();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getCommunityAccess().getRolesRoleParserRuleCall_4_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void setRoleAssignments(entity.PolicyUserRoleAssignment[] value) {\n __getInternalInterface().setFieldValue(ROLEASSIGNMENTS_PROP.get(), value);\n }", "public void setRoleAssignments(entity.PolicyUserRoleAssignment[] value) {\n __getInternalInterface().setFieldValue(ROLEASSIGNMENTS_PROP.get(), value);\n }", "public List<RoleAssignmentPE> listRoleAssignments() throws DataAccessException;", "public void addToRoleAssignments(entity.PolicyUserRoleAssignment element) {\n __getInternalInterface().addArrayElement(ROLEASSIGNMENTS_PROP.get(), element);\n }", "public void addToRoleAssignments(entity.PolicyUserRoleAssignment element) {\n __getInternalInterface().addArrayElement(ROLEASSIGNMENTS_PROP.get(), element);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column TRS_SYN_SETLMT_ACC.MT200_SWIFT_MESSAGE1
public void setMT200_SWIFT_MESSAGE1(String MT200_SWIFT_MESSAGE1) { this.MT200_SWIFT_MESSAGE1 = MT200_SWIFT_MESSAGE1 == null ? null : MT200_SWIFT_MESSAGE1.trim(); }
[ "public String getMT200_SWIFT_MESSAGE1() {\r\n return MT200_SWIFT_MESSAGE1;\r\n }", "public void setMessage3 (String Message3);", "public void setMessage2 (String Message2);", "public void setMT200_SWIFT_MESSAGE2(String MT200_SWIFT_MESSAGE2) {\r\n this.MT200_SWIFT_MESSAGE2 = MT200_SWIFT_MESSAGE2 == null ? null : MT200_SWIFT_MESSAGE2.trim();\r\n }", "public String getMT200_SWIFT_MESSAGE2() {\r\n return MT200_SWIFT_MESSAGE2;\r\n }", "public void setSWIFT_MESS1(String SWIFT_MESS1) {\r\n this.SWIFT_MESS1 = SWIFT_MESS1 == null ? null : SWIFT_MESS1.trim();\r\n }", "public void set2300CRC06MentalStatusCode$1(java.lang.CharSequence value) {\n this._2300CRC06MentalStatusCode = value;\n }", "public void setMessageField1(java.lang.String messageField1) {\r\n this.messageField1 = messageField1;\r\n }", "public void set2300CRC05MentalStatusCode$1(java.lang.CharSequence value) {\n this._2300CRC05MentalStatusCode = value;\n }", "public void set2300CRC07MentalStatusCode$1(java.lang.CharSequence value) {\n this._2300CRC07MentalStatusCode = value;\n }", "public void setSWIFT_SEND_RECEIVE1(String SWIFT_SEND_RECEIVE1) {\r\n this.SWIFT_SEND_RECEIVE1 = SWIFT_SEND_RECEIVE1 == null ? null : SWIFT_SEND_RECEIVE1.trim();\r\n }", "void setHelloMsg(String value)\n {\n\tmarkModified();\n mHelloMsg = value;\n }", "public void set2300CRC03MentalStatusCode$1(java.lang.CharSequence value) {\n this._2300CRC03MentalStatusCode = value;\n }", "public AbstractMT() {\n\t\tthis.m = new SwiftMessage(true);\n\t\tif (getMessageType() != null) {\n\t\t\tthis.m.getBlock2().setMessageType(getMessageType());\n\t\t}\n\t}", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public MxTsmt04500102(final MxSwiftMessage mxSwiftMessage) {\n this(mxSwiftMessage.message());\n }", "void setMessageID(long messageID);", "public String getSWIFT_SEND_RECEIVE1() {\r\n return SWIFT_SEND_RECEIVE1;\r\n }", "public void set2300CRC04MentalStatusCode$1(java.lang.CharSequence value) {\n this._2300CRC04MentalStatusCode = value;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ExStart ExFor:FieldFormula ExSummary:Shows how to use the formula field to display the result of an equation.
@Test public void fieldFormula() throws Exception { Document doc = new Document(); // Use a field builder to construct a mathematical equation, // then create a formula field to display the equation's result in the document. FieldBuilder fieldBuilder = new FieldBuilder(FieldType.FIELD_FORMULA); fieldBuilder.addArgument(2); fieldBuilder.addArgument("*"); fieldBuilder.addArgument(5); FieldFormula field = (FieldFormula) fieldBuilder.buildAndInsert(doc.getFirstSection().getBody().getFirstParagraph()); field.update(); Assert.assertEquals(field.getFieldCode(), " = 2 * 5 "); Assert.assertEquals(field.getResult(), "10"); doc.updateFields(); doc.save(getArtifactsDir() + "Field.FORMULA.docx"); //ExEnd doc = new Document(getArtifactsDir() + "Field.FORMULA.docx"); TestUtil.verifyField(FieldType.FIELD_FORMULA, " = 2 * 5 ", "10", doc.getRange().getFields().get(0)); }
[ "public String getFormula();", "@DISPID(261)\n @PropGet\n java.lang.String getFormula();", "public String getFormula() {\r\n return formula;\r\n }", "public Expression getFormula() {\n\t\treturn expression;\n\t}", "public java.lang.String getFormula() {\r\n return formula;\r\n }", "@DISPID(264)\n @PropGet\n java.lang.String getFormulaR1C1();", "public static void Formula(){\n System.out.println(\"4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11))=\"+4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11)));\n }", "public void setFormula(String formula);", "@Override\n\tpublic String toString() {\n\t\treturn this.formula;\n\t}", "@DISPID(263)\n @PropGet\n java.lang.String getFormulaLocal();", "public void addFormula(BASE_FORMULA formula) { this.formula = formula; }", "public CycList getFormula() {\n return hlFormula;\n }", "public void makeFormulas() {\n form += (\"P(\" + Query.getName());\n\n if (O.size() > 0) {\n form += \"|\";\n for (int i = 0; i < O.size(); i++) {\n form += (O.get(i).getName() + \"=\" + O.get(i).getValue() + \",\");\n\n }\n form = form.substring(0, form.length() - 1);\n }\n form += \") = \";\n pform += form;\n productForm();\n reducedForm();\n\n }", "@DISPID(265)\n @PropGet\n java.lang.String getFormulaR1C1Local();", "@Then(\"^(?:I should see |)the \\\"(.*?)\\\" field value is calculated using the following formula:$\")\n public void fieldValueIsCalculatedByFormula(\n String field, String formula) throws Throwable {\n final double precision = 0.0099;\n final int precisionNumbers = 6;\n double pageVal = Double.parseDouble(Page.getCurrent().field(field)\n .getText());\n for (String key : Context.variables()) {\n formula = formula.replaceAll(key, Context.get(key).toString());\n }\n Expression expression = new Expression(formula);\n double calcVal = expression\n .setRoundingMode(RoundingMode.HALF_EVEN).setPrecision(precisionNumbers).eval().doubleValue();\n\n Assert.assertEquals(\"Wrong \" + field + \"! on page (\" + pageVal\n + \") vs calulated (\" + calcVal + \")\", pageVal, calcVal, precision);\n }", "public String getFormula() {\n return chemicalFormula;\n }", "public TypeFormula getFirstFormula ( ) ;", "public void addFormula(CNFformula f)\n {\n formula.addFormula(f);\n }", "public interface Formula {\r\n\r\n\r\n\r\n /**\r\n * To get the value of the formula in the cell using accumulator.\r\n *\r\n * @param acc accumulator that record the cell value that has been evaluated.\r\n * @return the cellvalue of the formula.\r\n */\r\n CellValue getCellValue(Map<Coord, CellValue> acc, Map<Coord, Cell> grid);\r\n\r\n String toString(Map<Coord, Cell> grid);\r\n\r\n /**\r\n * Check whether the formula refer to itself.\r\n * @param l list of Coord visited.\r\n * @return if the formula is cyclic reference.\r\n */\r\n boolean checkCyclicReference(List<Coord> l, Set<Coord> noCycles, Map<Coord, Cell> grid);\r\n\r\n <R> R accept(FunctionFormula.FormulaVisitor<R> visitor, Map acc, Map<Coord, Cell> grid);\r\n\r\n Formula moveRefTo(int col, int row);\r\n\r\n String getRowContent();\r\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the number of pixels that the document's content is scrolled from the top.
@Override public final void setScrollTop(int top) { DOMImpl.impl.setScrollTop(documentFor(), top); }
[ "void setScrollTop(int scrollTop);", "public void scrollToTop () {\n\t\t// Update the scroll panel\n\t\tthis.update ();\n\t\t// Scroll to the top of the panel, based on the content panel height\n\t\tthis.verticalScrollBar.setValue ( 0 );\n\t}", "private void scrollToTopOfPage() {\r\n JavaScriptRunner.runScript(FacesContext.getCurrentInstance(), \"javascript:scroll(0,0);\");\r\n }", "public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }", "public void scrollToTop() {\r\n\t\tDriverUtils.executeJavaScript(\"window.scrollTo(0, 0);\");\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public void scrollToTop() {\n //TODO: Rewrite\n solo.scrollToTop();\n }", "public void setTopOffset(float topOffset) {\n float old = this.topOffset;\n this.topOffset = topOffset;\n }", "@Override\n public void resetScrollPosition() {\n }", "private void setScrollPosition() {\n // The calendar gets scrolled to 08:00 instead of 00:00\n // wait until calendar is initialized and then scroll\n while (calendar == null) {\n Thread.onSpinWait();\n }\n calendar.setScrollPosition(new Point(0, 16));\n }", "public void scrollToTop() {\n getWebDriver().findElementByClassName(\"UIAStatusBar\").click();\n }", "void setScrollPosition(int x, int y);", "public void setTop (float value){ top = value; }", "public void setTop(int top) {\n this.top = top;\n }", "public final void setTopRow(int value) {\r\n if (value < 0) \r\n value = 0;\r\n \r\n if (value > tableRows.size()-1)\r\n value = tableRows.size()-1;\r\n \r\n if (topRow != value) {\r\n topRow = value;\r\n requestLayout();\r\n }\r\n \r\n }", "public void setYTop(int top) {\n this.yTop = top;\n }", "public void setTop(float top)\n\t{\n\t\tthis.top = top;\n\t\tinvalidateSelf();\n\t}", "int getScrollTop();", "private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }", "private void setScrollOffsetY(int value) {\n bitField0_ |= 0x00000020;\n scrollOffsetY_ = value;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the resyncTotalTransferredBytes property: The resync total transferred bytes.
public Long resyncTotalTransferredBytes() { return this.resyncTotalTransferredBytes; }
[ "public String getTransferredBytes() {\n return String.format(\"Transferred Bytes: %d\", transferredBytes);\n }", "public Long resyncProcessedBytes() {\n return this.resyncProcessedBytes;\n }", "public int getTotalBytesRead() {\r\n return this.totalBytesRead;\r\n }", "public long getTotalBytes();", "public int getTotalBytesWritten () {\n return totalBytesWritten;\n }", "public InMageProtectedDiskDetails withResyncTotalTransferredBytes(Long resyncTotalTransferredBytes) {\n this.resyncTotalTransferredBytes = resyncTotalTransferredBytes;\n return this;\n }", "public Integer resyncProgressPercentage() {\n return this.resyncProgressPercentage;\n }", "public long getTotalSize() {\n return totalSize;\n }", "public long totalUpload() {\n return totalUpload;\n }", "public Long getTotalResizeDataInMegaBytes() {\n return this.totalResizeDataInMegaBytes;\n }", "public long receivedBytesCount() {\n return rcvdBytesCnt.longValue();\n }", "public long getTotalCompactedSize() {\n return totalCompactedSize;\n }", "public double Get_Total(Context context){\n return ((double) (TrafficStats.getTotalRxBytes()+TrafficStats.getTotalTxBytes())/1048576);\n }", "public Long resyncLast15MinutesTransferredBytes() {\n return this.resyncLast15MinutesTransferredBytes;\n }", "public final int numberOfTransfers() {\n return numberOfTransfers;\n }", "public Long getSizeTotal() { return this.sizeTotal; }", "public long getTotalDeleted() {\n return deleted;\n }", "public Integer getTotalNumBytes() {\n totalNumBytes = 0;\n for (final Org org: childOrgs) {\n totalNumBytes += org.getTotalNumBytes();\n }\n for (final User user: orgUsers) {\n totalNumBytes += user.getNumBytes();\n }\n return totalNumBytes;\n }", "public int getTotalNumSyncPoints() {\n return (Integer) getProperty(\"numTotalSyncPoints\");\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleLanguage" $ANTLR start "entryRuleAction" InternalCsv.g:104:1: entryRuleAction : ruleAction EOF ;
public final void entryRuleAction() throws RecognitionException { try { // InternalCsv.g:105:1: ( ruleAction EOF ) // InternalCsv.g:106:1: ruleAction EOF { if ( state.backtracking==0 ) { before(grammarAccess.getActionRule()); } pushFollow(FOLLOW_1); ruleAction(); state._fsp--; if (state.failed) return ; if ( state.backtracking==0 ) { after(grammarAccess.getActionRule()); } match(input,EOF,FOLLOW_2); if (state.failed) return ; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
[ "public final void entryRuleAction() throws RecognitionException {\n try {\n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:235:1: ( ruleAction EOF )\n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:236:1: ruleAction EOF\n {\n before(grammarAccess.getActionRule()); \n pushFollow(FOLLOW_ruleAction_in_entryRuleAction426);\n ruleAction();\n\n state._fsp--;\n\n after(grammarAccess.getActionRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAction433); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final void entryRuleAction() throws RecognitionException {\n try {\n // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:259:1: ( ruleAction EOF )\n // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:260:1: ruleAction EOF\n {\n before(grammarAccess.getActionRule()); \n pushFollow(FOLLOW_ruleAction_in_entryRuleAction483);\n ruleAction();\n\n state._fsp--;\n\n after(grammarAccess.getActionRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAction490); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final EObject entryRuleAction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAction = null;\n\n\n try {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:1310:2: (iv_ruleAction= ruleAction EOF )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:1311:2: iv_ruleAction= ruleAction EOF\n {\n newCompositeNode(grammarAccess.getActionRule()); \n pushFollow(FollowSets000.FOLLOW_ruleAction_in_entryRuleAction2517);\n iv_ruleAction=ruleAction();\n\n state._fsp--;\n\n current =iv_ruleAction; \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleAction2527); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final void entryRuleAction() throws RecognitionException {\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n\n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:388:1: ( ruleAction EOF )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:389:1: ruleAction EOF\n {\n before(grammarAccess.getActionRule()); \n pushFollow(FOLLOW_ruleAction_in_entryRuleAction686);\n ruleAction();\n\n state._fsp--;\n\n after(grammarAccess.getActionRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAction693); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "public final void entryRuleAction() throws RecognitionException {\r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:986:1: ( ruleAction EOF )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:987:1: ruleAction EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getActionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleAction_in_entryRuleAction2048);\r\n ruleAction();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getActionRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleAction2055); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public final void entryRuleAction() throws RecognitionException {\n try {\n // InternalMyDsl.g:1454:1: ( ruleAction EOF )\n // InternalMyDsl.g:1455:1: ruleAction EOF\n {\n before(grammarAccess.getActionRule()); \n pushFollow(FOLLOW_1);\n ruleAction();\n\n state._fsp--;\n\n after(grammarAccess.getActionRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final EObject entryRuleAction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleAction = null;\r\n\r\n\r\n try {\r\n // ../hu.bme.mit.inf.gomrp.statemachine.dsl.text/src-gen/hu/bme/mit/inf/gomrp/statemachine/dsl/text/parser/antlr/internal/InternalStateMachineDSL.g:426:2: (iv_ruleAction= ruleAction EOF )\r\n // ../hu.bme.mit.inf.gomrp.statemachine.dsl.text/src-gen/hu/bme/mit/inf/gomrp/statemachine/dsl/text/parser/antlr/internal/InternalStateMachineDSL.g:427:2: iv_ruleAction= ruleAction EOF\r\n {\r\n newCompositeNode(grammarAccess.getActionRule()); \r\n pushFollow(FOLLOW_ruleAction_in_entryRuleAction856);\r\n iv_ruleAction=ruleAction();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleAction; \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleAction866); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public final EObject entryRuleAction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAction = null;\n\n\n try {\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:837:2: (iv_ruleAction= ruleAction EOF )\n // ../br.ufpe.cin.Tupi/src-gen/br/ufpe/cin/parser/antlr/internal/InternalTupi.g:838:2: iv_ruleAction= ruleAction EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getActionRule()); \n }\n pushFollow(FOLLOW_ruleAction_in_entryRuleAction1580);\n iv_ruleAction=ruleAction();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleAction; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleAction1590); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final void entryRuleAction() throws RecognitionException {\n try {\n // InternalMyDsl.g:329:1: ( ruleAction EOF )\n // InternalMyDsl.g:330:1: ruleAction EOF\n {\n before(grammarAccess.getActionRule()); \n pushFollow(FOLLOW_1);\n ruleAction();\n\n state._fsp--;\n\n after(grammarAccess.getActionRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final EObject entryRuleAction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleAction = null;\r\n\r\n\r\n try {\r\n // InternalShome.g:1112:47: (iv_ruleAction= ruleAction EOF )\r\n // InternalShome.g:1113:2: iv_ruleAction= ruleAction EOF\r\n {\r\n newCompositeNode(grammarAccess.getActionRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleAction=ruleAction();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleAction; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "public final EObject entryRuleAction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAction = null;\n\n\n try {\n // InternalPlatoon.g:399:47: (iv_ruleAction= ruleAction EOF )\n // InternalPlatoon.g:400:2: iv_ruleAction= ruleAction EOF\n {\n newCompositeNode(grammarAccess.getActionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAction=ruleAction();\n\n state._fsp--;\n\n current =iv_ruleAction; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final EObject entryRuleAction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleAction = null;\r\n\r\n\r\n try {\r\n // InternalDsl.g:374:47: (iv_ruleAction= ruleAction EOF )\r\n // InternalDsl.g:375:2: iv_ruleAction= ruleAction EOF\r\n {\r\n newCompositeNode(grammarAccess.getActionRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleAction=ruleAction();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleAction; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "public final EObject entryRuleAction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAction = null;\n\n\n try {\n // InternalDsl.g:2811:47: (iv_ruleAction= ruleAction EOF )\n // InternalDsl.g:2812:2: iv_ruleAction= ruleAction EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getActionRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleAction=ruleAction();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleAction; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final void entryRuleExpression() throws RecognitionException {\n try {\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:117:1: ( ruleExpression EOF )\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:118:1: ruleExpression EOF\n {\n before(grammarAccess.getExpressionRule()); \n pushFollow(FOLLOW_ruleExpression_in_entryRuleExpression181);\n ruleExpression();\n\n state._fsp--;\n\n after(grammarAccess.getExpressionRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleExpression188); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final void entryRuleEntry() throws RecognitionException {\n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:62:1: ( ruleEntry EOF )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:63:1: ruleEntry EOF\n {\n before(grammarAccess.getEntryRule()); \n pushFollow(FollowSets000.FOLLOW_ruleEntry_in_entryRuleEntry61);\n ruleEntry();\n _fsp--;\n\n after(grammarAccess.getEntryRule()); \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleEntry68); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final void entryRuleAstAction() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1071:1: ( ruleAstAction EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1072:1: ruleAstAction EOF\n {\n before(grammarAccess.getAstActionRule()); \n pushFollow(FOLLOW_ruleAstAction_in_entryRuleAstAction2223);\n ruleAstAction();\n\n state._fsp--;\n\n after(grammarAccess.getAstActionRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstAction2230); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public final void entryRuleActionDefinition() throws RecognitionException {\n int entryRuleActionDefinition_StartIndex = input.index();\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 185) ) { return ; }\n // InternalGaml.g:2653:1: ( ruleActionDefinition EOF )\n // InternalGaml.g:2654:1: ruleActionDefinition EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getActionDefinitionRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n ruleActionDefinition();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getActionDefinitionRule()); \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 185, entryRuleActionDefinition_StartIndex); }\n }\n return ;\n }", "public final void entryRuleExpression() throws RecognitionException {\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n\n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:1144:1: ( ruleExpression EOF )\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:1145:1: ruleExpression EOF\n {\n before(grammarAccess.getExpressionRule()); \n pushFollow(FOLLOW_ruleExpression_in_entryRuleExpression2134);\n ruleExpression();\n\n state._fsp--;\n\n after(grammarAccess.getExpressionRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleExpression2141); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "public final void entryRuleNode() throws RecognitionException {\n try {\n // ../fr.irisa.cairn.model.mathematica.xtext.ui/src-gen/fr/irisa/cairn/model/ui/contentassist/antlr/internal/InternalMathematica.g:62:1: ( ruleNode EOF )\n // ../fr.irisa.cairn.model.mathematica.xtext.ui/src-gen/fr/irisa/cairn/model/ui/contentassist/antlr/internal/InternalMathematica.g:63:1: ruleNode EOF\n {\n before(grammarAccess.getNodeRule()); \n pushFollow(FOLLOW_ruleNode_in_entryRuleNode61);\n ruleNode();\n _fsp--;\n\n after(grammarAccess.getNodeRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleNode68); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the domain of this voice.
protected void setDomain(String domain) { this.domain = domain; }
[ "public void setDomain(String domain)\n {\n _domain = domain;\n }", "public static synchronized void setDomain(String domain) {\n TargetingParams.domain = domain;\n }", "public void setDomain(String domain) {\r\n if (!domain.startsWith(\".\")) {\r\n int dot = domain.indexOf('.');\r\n if (dot >= 0)\r\n domain = domain.substring(dot);\r\n\r\n }\r\n this.domain = domain;\r\n }", "public void setDomain(String domain) {\r\n this.domain = domain;\r\n }", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "void setXMPPDomain(String domainName);", "public void \n setWinDomain\n (\n String domain\n ) \n throws IllegalConfigException\n {\n if((domain == null) || (domain.length() == 0)) \n throw new IllegalConfigException\n (\"No Windows Domain was specified!\");\n pProfile.put(\"WinDomain\", domain);\n }", "public Site setDomain(String domain) {\n this.domain = domain;\n return this;\n }", "public void setDomain(Domain d)\r\n\t{\r\n\t\tif(!domain.equals(d))\r\n\t\t{\r\n\t\t\tdomain = d;\r\n\t\t\tmodified = true;\r\n\t\t}\r\n\t}", "public void changeDomain(String newDomain);", "public Target setDomainId(String domain) {\n if (Strings.isValid(domain)) {\n this.domain = domain;\n }\n logger.trace(\"target '{}' is under domain '{}'\", id, this.domain);\n return this;\n }", "public void setDomain(ContextDomain value);", "void setDomainID(T domainID);", "void setDomainCode(java.lang.String domainCode);", "public void setIdDomain( Long idDomain ) {\n this.idDomain = idDomain;\n }", "public void setDomainName(java.lang.String domainName) {\r\n this.domainName = domainName;\r\n }", "public void setDomainAddress(String domainAddress) {\n this.domainAddress = domainAddress;\n }", "public void setHostDomain(String domain) {\r\n String authority = getAuthority();\r\n \r\n if (authority != null) {\r\n if (domain == null) {\r\n domain = \"\";\r\n } else {\r\n // URI specification indicates that host names should be\r\n // produced in lower case\r\n domain = domain.toLowerCase();\r\n }\r\n \r\n int index1 = authority.indexOf('@');\r\n int index2 = authority.indexOf(':');\r\n \r\n if (index1 != -1) {\r\n // User info found\r\n if (index2 != -1) {\r\n // Port found\r\n setAuthority(authority.substring(0, index1 + 1) + domain\r\n + authority.substring(index2));\r\n } else {\r\n // No port found\r\n setAuthority(authority.substring(0, index1 + 1) + domain);\r\n }\r\n } else {\r\n // No user info found\r\n if (index2 != -1) {\r\n // Port found\r\n setAuthority(domain + authority.substring(index2));\r\n } else {\r\n // No port found\r\n setAuthority(domain);\r\n }\r\n }\r\n }\r\n }", "@ApiModelProperty(example = \"null\", value = \"The domain name of the source which is extracted from the source URL\")\n public String getDomain() {\n return domain;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the GetCompetitivePricingForSKUResult property.
public GetCompetitivePricingForSKUResponse withGetCompetitivePricingForSKUResult(GetCompetitivePricingForSKUResult... values) { for (GetCompetitivePricingForSKUResult value: values) { getGetCompetitivePricingForSKUResult().add(value); } return this; }
[ "public void setPreciousResult(boolean preciousResult) {\n this.preciousResult = preciousResult;\n }", "public boolean updatePricingForId(int productId, Pricing pricing);", "public Integer getComplaintSkuId() {\n return complaintSkuId;\n }", "public void setCompetitive(boolean value) {\n this.competitive = value;\n }", "public void setPROFITPAYABLE_CV(BigDecimal PROFITPAYABLE_CV) {\r\n this.PROFITPAYABLE_CV = PROFITPAYABLE_CV;\r\n }", "public Pricing getPricingForId(int productId);", "public void setPricingAdjustment(String pricingAdjustment) {\r\n this.pricingAdjustment = pricingAdjustment;\r\n }", "public BigDecimal getPROFITPAYABLE_CV() {\r\n return PROFITPAYABLE_CV;\r\n }", "void setCheckProductEligibilityResponse(amdocs.iam.pd.pdwebservices.CheckProductEligibilityResponseDocument.CheckProductEligibilityResponse checkProductEligibilityResponse);", "public void setACCRUED_PROFIT(BigDecimal ACCRUED_PROFIT) {\r\n this.ACCRUED_PROFIT = ACCRUED_PROFIT;\r\n }", "private void onIabPremiumItemSucceeded(Purchase purchase, IabResult result) {\n\n String purchaseSku = purchase.getSku();\n\n // Double check it is premium item\n if (purchaseSku.equals(SKU_PREMIUM)) {\n if (result.isSuccess()) {\n Log.d(LOG_TAG, \"Premium item Provisioning.\");\n ((DoaPilihanApp) DoaPilihanApp.getContext()).savePremium(true);\n\n // Broadcast SuccessPurchase\n if (mRxBus.hasObservers()) {\n mRxBus.send(new GeneralEvent.SuccessPurchased(true, true));\n }\n\n Analytic.sendEvent(Analytic.EVENT_IAP, \"ClickUpgrade\", \"Success\");\n\n } else {\n complain(\"Error while provisioning premium item: \" + result);\n Analytic.sendEvent(Analytic.EVENT_IAP, \"Failed\", result.toString());\n }\n }\n\n // Broadcast SuccessPurchase\n if (mRxBus.hasObservers()) {\n boolean isPremium = ((DoaPilihanApp) DoaPilihanApp.getContext()).isPremium();\n mRxBus.send(new GeneralEvent.SuccessPurchased(result.isSuccess(), isPremium));\n shouldShowAds(!isPremium);\n }\n }", "public String supportedSku() {\n return this.supportedSku;\n }", "public MrktPerdSkuPrc() {\n\t\tthis(\"MRKT_PERD_SKU_PRC\", null);\n\t}", "private void checkProductUsingUPC()\n\t{\n\t\tString upc = upcField.getDisplay();\n\t\t//DefaultTableModel model = (DefaultTableModel) dialog.getMiniTable().getModel();\n\t\tListModelTable model = (ListModelTable) window.getWListbox().getModel();\n\t\t\n\t\t// Lookup UPC\n\t\tList<MProduct> products = MProduct.getByUPC(Env.getCtx(), upc, null);\n\t\tfor (MProduct product : products)\n\t\t{\n\t\t\tint row = findProductRow(product.get_ID());\n\t\t\tif (row >= 0)\n\t\t\t{\n\t\t\t\tBigDecimal qty = (BigDecimal)model.getValueAt(row, 1);\n\t\t\t\tmodel.setValueAt(qty, row, 1);\n\t\t\t\tmodel.setValueAt(Boolean.TRUE, row, 0);\n\t\t\t\tmodel.updateComponent(row, row);\n\t\t\t}\n\t\t}\n\t\tupcField.setValue(\"\");\n\t}", "public BigDecimal getACCRUED_PROFIT() {\r\n return ACCRUED_PROFIT;\r\n }", "public String getSku() {\r\n return sku;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.Currency getCededPremium_cur() {\n return (typekey.Currency)__getInternalInterface().getFieldValue(CEDEDPREMIUM_CUR_PROP.get());\n }", "public void setPROFIT(BigDecimal PROFIT) {\r\n this.PROFIT = PROFIT;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.Currency getCededPremium_cur() {\n return (typekey.Currency)__getInternalInterface().getFieldValue(CEDEDPREMIUM_CUR_PROP.get());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gives next guess Tells Player number of black and white pegs resulting from last guess
public abstract void nextGuessResult(ResultPegs resultPegs);
[ "boolean perfectGuess(){\n return blackPegAmount == GameConfiguration.pegNumber;\n }", "abstract int nextTry(String guess);", "int[] countPegs(Token[] code, Token[] guess) {\n\t\tint[] bw = new int[2];\n\t\tbw[1] = countBlack(code, guess);\n\t\tbw[0] = Math.max(countWhite(code, guess) - bw[1], 0); // make sure white pegs stay >=0.\n\t\treturn bw;\n\t}", "@Override\r\n\tpublic void nextGuessResult(ResultPegs resultPegs) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\t// Not used here\r\n\t}", "public byte score(Codeword guess) {\n int b = 0;\n int w = 0;\n long colorCounts = 0; // Room for 16 4-bit counters\n\n for (int i = 0; i < Mastermind.pinCount; i++) {\n if (guess.digits[i] == digits[i]) {\n b++;\n } else {\n colorCounts += 1L << (digits[i] * 4);\n }\n }\n\n for (int i = 0; i < Mastermind.pinCount; i++) {\n if (guess.digits[i] != digits[i] && (colorCounts & (0xFL << (guess.digits[i] * 4))) > 0) {\n w++;\n colorCounts -= 1L << (guess.digits[i] * 4);\n }\n }\n\n return (byte) ((b << 4) | w);\n }", "public int myGuessIs() {\n if(possibleGuesses.size() == 0){\n return -1;\n }else{\n int index = (int) (Math.random()*(possibleGuesses.size()));\n int num = possibleGuesses.get(index);\n myGuess = num;\n numberOfGuesses++;\n\n return myGuess;\n }\n\t}", "public static int numGuessable() {\n\t\n\t\tint counter = 0;\n\t\t\n\t\tfor( Colors current : Colors.values() ) {\n\t\t\tif( current.isGuessable() ) {\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn counter;\n\t\t\n\t}", "private int guess( ){\r\n\treturn 0;\r\n }", "private static int guessing() {\n\t\t\n\t\tSystem.out.println(\"Guess a number between 1 and 100, you have 5 trials: \");\n\t\t\n\t\tint trials = 5;\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\t//set a random number as the number to be guessed\n\t\tint num = (int)(100 * Math.random()) + 1;\n\t\tint points = 0;\n\t\t\n\t\t//use a flag to check if player guess the correct number or not\n\t\tboolean flag = false;\n\t\twhile ( trials > 0) {\n\t\t\tint guess = input.nextInt();\n\t\t\ttrials--;\n\t\t\tif ( guess == num ) {\n\t\t\t\tpoints = trials == 0? 20 : trials * 20;\n\t\t\t\t//System.out.println(\"You guess the number with\"+trials+\"trials left, congratulation! +\"+ (points = trials == 0? 20 : trials * 20)+\" points\");\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}else if ( guess < num ) {\n\t\t\t\tSystem.out.println(\"The guess is too small, please try again, you have \"+trials+\" trials left.\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"The guess is too large, please try again, you have \"+trials+\" trials left.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif ( !flag ) System.out.println(\"Trials used up, + 0 points\");\n\t\treturn points;\n\t\t\n\t}", "public int numGuesses() {\n return numGuess;\n }", "private void makeGuess(){\r\n\tint g = guess();\r\n\tSystem.out.println(\"guess # \" + _numGuesses + \" : \" + g);\r\n }", "@Override\r\n\tpublic Code nextGuess() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tRandom randGen = new Random();\r\n\t\tCode newCode;\r\n\t\t\r\n\t\tArrayList<String> values;\r\n\t\twhile(true)\r\n\t\t{values = new ArrayList<String>();\r\n\t\tfor (int i = 0; i < super.getNumVars(); i++)\r\n\t\t{\r\n\t\t\tint colorIndex = randGen.nextInt((super.getColorList().size()));\r\n\t\t\tvalues.add(super.getColorList().get(colorIndex));\r\n\t\t}\r\n\t\t\r\n\t\tnewCode = new Code(super.getNumVars());\r\n\t\t\r\n\t\tfor (int i = 0; i < values.size(); i++)\r\n\t\t{\r\n\t\t\tnewCode.addEntry(values.get(i));\r\n\t\t}\r\n\t\t//contains method for code\r\n\t\t\r\n\t\tboolean shouldBreak=true;//(guessHistory.size()==0?true:false);\r\n\t\tfor(int i=0,totalequal=0;i<guessHistory.size();++i,totalequal=0)\r\n\t\t{\r\n\t\t\tCode itrHistory=guessHistory.get(i);\r\n\t\t\tfor(int j=0;j<super.getNumVars();++j)\r\n\t\t\tif(newCode.colorAt(j).equals(itrHistory.colorAt(j)))\r\n\t\t\t\t\ttotalequal++;\r\n\t\t\t\t\r\n\t\t\tif(totalequal==super.getNumVars())\r\n\t\t\t\tshouldBreak=false;\r\n\t\t\t\r\n\t\t}\r\n\t\tif(shouldBreak)\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tguessHistory.add(newCode);\r\n\t\treturn newCode;\r\n\t}", "public int getGuessIndex()\r\n {\r\n return _guessIndex;\r\n }", "Token[] playGuess(int black, int white) {\n\t\t\n\t\tif (black == -1 && white == -1) {\n\t\t\t// it's the first guess\n\t\t\tlastGuess = firstGuess.clone();\n\t\t\treturn firstGuess;\n\t\t}\t\t\n\t\t\n\t\t// wikipedia mastermind algorithm step 5. this works perfectly\n\t\tfor (int i=0; i<remainingCombos.length; i++) {\n\t\t\t\n\t\t\tif (tokenArrayEquals(remainingCombos[i], lastGuess)) {\n\t\t\t\tremainingCombos[i] = null;\n\t\t\t}\n\t\t\t\n\t\t\tif (remainingCombos[i] == null) {\n\t\t\t\tcontinue; // skip null entries\n\t\t\t}\n\t\t\t\n\t\t\tint[] temp = countPegs(lastGuess, remainingCombos[i]);\n\t\t\tif (temp[1] != black || temp[0] != white) {\n\t\t\t\t\n\t\t\t\tremainingCombos[i] = null;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] scores = new int[allPossibleCombos.length];\n\t\t\n\t\t// wikipedia mastermind algorithm step 6\n\t\tfor (int i=0; i<allPossibleCombos.length; i++) {\n\t\t\tscores[i] = calculateMinScore(allPossibleCombos[i], black, white); // working here\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t// RETURN THE NEXT GUESS\n\t\t\n\t\tscores = removeNonMaxScores(scores);\n\t\t\n\t\tToken[] nextGuess = isThereAnElementInS(scores);\n\t\t\n\t\t// if there is an element in remaining\n\t\tif (nextGuess != null) {\n\t\t\t// choose the first one in S you find\n\t\t\tlastGuess = nextGuess.clone();\n\t\t\treturn nextGuess;\n\t\t} else {\n\t\t\t// choose the first one you find\n\t\t\tnextGuess = firstElement(scores);\n\t\t\tlastGuess = nextGuess.clone();\n\t\t\treturn nextGuess;\n\t\t}\n\n\t}", "Feedback(Code guess, Code secret){\n\n whitePegAmount = 0;\n blackPegAmount = 0;\n char [] guessTemp = guess.charArray.clone();\n char [] secretTemp = secret.charArray.clone();\n char dash = '-';\n\n for(int i = 0; i < GameConfiguration.pegNumber; i++) {\n\n if (guessTemp[i] == secretTemp[i]) {\n blackPegAmount++;\n guessTemp[i] = dash;\n secretTemp[i] = dash;\n }\n }\n\n for(int i = 0; i < GameConfiguration.pegNumber; i++) {\n\n for(int j = 0; j < GameConfiguration.pegNumber; j++){\n\n if ((guessTemp[i] == secretTemp[j])&&(guessTemp[i]!= dash)) {\n whitePegAmount++;\n guessTemp[i] = dash;\n secretTemp[j] = dash;\n }\n\n }\n\n }\n\n }", "public int getGuess()\r\n {\r\n return guesses;\r\n }", "public int checkGuess(String letter){\n\t\t\n\t\tString winString = \"\";\n\t\t// Converting the user's guess (letter) to a char for manipulation\n\t\tchar guessedChar = letter.charAt(0);\n\t\tnumberOfGuesses++;\n\t\t\n\t\t// If the user guessed a letter that is already missed or correct\n\t\tif ((missedLetters.toString()).contains(letter) || \n\t\t(guessedWord.toString()).contains(letter)){\n\t\t\tnumberOfGuesses--;\n\t\t\tresult = 1;\n\t\t}\n\t\t\n\t\t// If the user guesses a correct letter that is in hiddenWord\n\t\telse if (hiddenWord.contains(letter)){\n\t\t\t\n\t\t\t// Setting result to 2 as the letter is correct\n\t\t\tresult = 2;\n\t\t\tArrayList<Integer> letterIndices = new ArrayList<Integer>(10);\n\t\t\tint charIndex = hiddenWord.indexOf(guessedChar);\n\t\t\tint j = 0;\n\t\t\t\n\t\t\t// Checking how many times the letter appears in the word\n\t\t\twhile (charIndex >= 0)\n\t\t\t{\n\t\t\t\tletterIndices.add(j, charIndex);\n\t\t\t\tcharIndex = hiddenWord.indexOf(guessedChar, charIndex + 1);\n\t\t\t\tj++;\n\t\t\t}\n\t\t\t\n\t\t\t// For each index I gathered, assign that letter to the guessedWord\n\t\t\tfor (int i = 0; i < letterIndices.size(); ++i){\n\t\t\t\tguessedWord.setCharAt(letterIndices.get(i), guessedChar);\n\t\t\t}\n\t\t\t\n\t\t\t// Checking if the player has won,\n\t\t\tif ((guessedWord.toString()).indexOf('*') == -1)\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tresult = 4;\n\t\t\t\twinString = \"won!\";\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t// Does not contain the char.... (User guessed wrong)\n\t\telse{\n\t\t\tresult = 3;\n\t\t\tmissedLetters.append(guessedChar);\n\t\t\tnumberOfMisses++;\n\t\t\t\n\t\t\t\n\t\t\t// Checking if the player has lost (This is changed to a fixed 10 guesses)\n\t\t\t//if (numberOfMisses > hiddenWord.length()){\n\t\t\tif (numberOfMisses > 9){\n\t\t\t\tgamesLost++;\n\t\t\t\tresult = 4;\n\t\t\t\twinString = \"lost!\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\t\n\t\t\n\t\t// If the user won or lost\n\t\tif (result == 4){\n\t\t\tint correctGuesses = numberOfGuesses - numberOfMisses;\n\t\t\tdouble correctGuessPct = 100.0 * ((float)correctGuesses / (float)numberOfGuesses);\n\t\t\t\n\t\t\t// Creating a single game summary for the user\n\t\t\tgameOverString = \"You \" + winString + \" - The word was: \" + hiddenWord + \"\\nYou correctly guessed \" + correctGuesses + \n\t\t\t\" letter(s).\\nYou incorrectly guessed \" + numberOfMisses + \n\t\t\t\" letter(s).\\nYour success percentage was \" + formatter.format(correctGuessPct) + \n\t\t\t\"%\";\n\t\t\t\n\t\t\t// Creating the entire end game summary for the user (all games played)\n\t\t\tgoodByeString = \"Hello, \" + name + \"\\nYou won: \" + gamesWon + \n\t\t\t\" game(s).\\nYou lost: \" + gamesLost + \" game(s).\\nThanks for playing!\";\n\t\t\n\t\t}\n\t\t\n\n\t\t\n\t\treturn result;\n\t\t\n\t}", "private void processGuess() {\n \n int guess;\n try {\n guess = Integer.parseInt(guessEntryField.getDocument().getText());\n } catch (NumberFormatException ex) {\n statusLabel.setText(\"Your guess was not valid.\");\n return;\n }\n\n ++numberOfTries;\n\n if (guess == randomNumber) {\n ((NumberGuessApp) ApplicationInstance.getActive()).congratulate(numberOfTries);\n return;\n }\n \n if (guess < 1 || guess > 100) {\n statusLabel.setText(\"Your guess, \" + guess + \" was not between 1 and 100.\");\n } else if (guess < randomNumber) {\n if (guess >= lowerBound) {\n lowerBound = guess + 1;\n }\n statusLabel.setText(\"Your guess, \" + guess + \" was too low. Try again:\");\n } else if (guess > randomNumber) {\n statusLabel.setText(\"Your guess, \" + guess + \" was too high. Try again:\");\n if (guess <= upperBound) {\n upperBound = guess - 1;\n }\n }\n\n // Update number of tries label.\n if (numberOfTries == 1) {\n countLabel.setText(\"You have made 1 guess.\");\n } else {\n countLabel.setText(\"You have made \" + numberOfTries + \" guesses.\");\n }\n \n // Update the prompt label to reflect the new sensible range of numbers.\n promptLabel.setText(\"Guess a number between \" + lowerBound + \" and \" + upperBound + \": \");\n }", "public void testCorrectGuess() {\n\t\tassertEquals(NBR_OF_PAIRS, controller.getPairsLeft());\n\t\tcontroller.correctGuess();\n\t\tassertEquals(NBR_OF_PAIRS - 1, controller.getPairsLeft());\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes encoder with block data component and its binary encoding info
public abstract void init(DataComponent blockComponent, BinaryBlock binaryBlock) throws CDMException;
[ "public abstract void encode(DataOutputExt outputStream, DataComponent blockComponent) throws CDMException;", "private void init() {\n bf1 = new BitField_16();\r\n // Initialize bf2\r\n bf2 = new BitField_16();\r\n }", "private void initEncoderDecoder(Node node, String osf) { // osf - output so far\n\t\tif(node.data != '\\0') { \n\t\t\tthis.encoder.put(node.data, osf);\n\t\t\tthis.decoder.put(osf, node.data);\n\t\t\treturn;\n\t\t}\n\t\tinitEncoderDecoder(node.left, osf + 0);\n\t\tinitEncoderDecoder(node.right, osf + 1);\n\t}", "public PBEPasswordEncoder() {\n super();\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 MQCoder(ByteOutputBuffer oStream, int nrOfContexts, int init[]){\n out = oStream;\n\n // --- INITENC\n\n // Default initialization of the statistics bins is MPS=0 and\n // I=0\n I=new int[nrOfContexts];\n mPS=new int[nrOfContexts];\n initStates = init;\n\n a=0x8000;\n c=0;\n if(b==0xFF)\n cT=13;\n else\n cT=12;\n\n resetCtxts();\n\n // End of INITENC ---\n\n b=0;\n }", "public EncoderData publishEncoderData(EncoderData data);", "private void initEncoder(final XMLEncoder encoder) {\n // abstract view\n encoder.setPersistenceDelegate(AbstractCellView.class, new DefaultPersistenceDelegate(new String[]{CELL_PROPERTY, ATTRIBUTES_PROPERTY}));\n\n // project diagram\n encoder.setPersistenceDelegate(ProjectDiagram.class, new DefaultPersistenceDelegate(\n new String[]{DISPLAY_NAME_PROPERTY, NOTATION_IDENTIFIER_PROPERTY, UUID_PROPERTY, DIAGRAM_MODEL_PROPERTY})\n );\n\n // diagram model\n encoder.setPersistenceDelegate(UCDiagramModel.class, new DefaultPersistenceDelegate(new String[]{LAYOUT_CACHE_PROPERTY}));\n\n // vertex\n encoder.setPersistenceDelegate(UCVertexView.class, new DefaultPersistenceDelegate(new String[]{CELL_PROPERTY}));\n encoder.setPersistenceDelegate(DefaultGraphCell.class, new DefaultPersistenceDelegate(new String[]{USER_OBJECT_PROPERTY}));\n\n // vertex models\n encoder.setPersistenceDelegate(UseCaseModel.class, new DefaultPersistenceDelegate(new String[]{UUID_PROPERTY}));\n encoder.setPersistenceDelegate(ActorModel.class, new DefaultPersistenceDelegate(new String[]{UUID_PROPERTY}));\n encoder.setPersistenceDelegate(SystemBorderModel.class, new DefaultPersistenceDelegate(new String[]{UUID_PROPERTY}));\n\n // ports\n encoder.setPersistenceDelegate(UCPortView.class, new DefaultPersistenceDelegate(new String[]{CELL_PROPERTY}));\n\n // edges\n encoder.setPersistenceDelegate(EdgeModel.class, new DefaultPersistenceDelegate(new String[]{EDGE_TYPE_PROPERTY}));\n encoder.setPersistenceDelegate(DefaultEdge.class, new DefaultPersistenceDelegate(new String[]{USER_OBJECT_PROPERTY}));\n encoder.setPersistenceDelegate(DefaultEdge.DefaultRouting.class, new PersistenceDelegate() {\n protected Expression instantiate(Object oldInstance, Encoder out) {\n return new Expression(oldInstance, GraphConstants.class, ROUNTING_SIMPLE_PROPERTY, null);\n }\n });\n encoder.setPersistenceDelegate(DefaultEdge.LoopRouting.class, new PersistenceDelegate() {\n protected Expression instantiate(Object oldInstance, Encoder out) {\n return new Expression(oldInstance, GraphConstants.class, ROUNTING_DEFAULT_PROPERTY, null);\n }\n });\n \n // graph models\n encoder.setPersistenceDelegate(DefaultGraphModel.class, new DefaultPersistenceDelegate(new String[]{ROOTS_PROPERTY, ATTRIBUTES_PROPERTY}));\n encoder.setPersistenceDelegate(UCGraphModel.class, new DefaultPersistenceDelegate(new String[]{ROOTS_PROPERTY, ATTRIBUTES_PROPERTY}));\n\n // graph layout cache\n encoder.setPersistenceDelegate(GraphLayoutCache.class, new DefaultPersistenceDelegate(\n new String[]{MODEl_PROPERTY, FACTORY_PROPERTY, CELL_VIEWS_PROPERTY, HIDD_CELLS_PROPERTY, PARTIAL_PROPERTY}));\n\n // utils\n encoder.setPersistenceDelegate(UUID.class, new DefaultPersistenceDelegate(new String[]{MSB_PROPERTY, LSB_PROPERTY}));\n encoder.setPersistenceDelegate(ArrayList.class, encoder.getPersistenceDelegate(List.class));\n }", "public StandardPBEByteEncryptor() {\n super();\n }", "public void startEncoder(){\n if(mMediaCodec != null){\n Log.i(TAG, \"encoder format is \" + mMediaFormat.toString());\n mMediaCodec.setCallback(mCallback, mVideoEncoderHandler);\n mMediaCodec.configure(mMediaFormat, mSurface, null, CONFIGURE_FLAG_ENCODE);\n mMediaCodec.start();\n }else{\n throw new IllegalArgumentException(\"startEncoder failed,is the MediaCodec has been init correct?\");\n }\n }", "public FBinPacking(){}", "private void initialize() {\n\t\tdecoder = new ReflectDecoder();\n\t\tencoder = new ReflectEncoder();\n\t\tcodecFactory = new MessageCodecFactory();\n\t}", "public FrameBodyAENC() {\n this.setObjectValue(DataTypes.OBJ_OWNER, \"\");\n this.setObjectValue(DataTypes.OBJ_PREVIEW_START, (short) 0);\n this.setObjectValue(DataTypes.OBJ_PREVIEW_LENGTH, (short) 0);\n this.setObjectValue(DataTypes.OBJ_ENCRYPTION_INFO, new byte[0]);\n }", "@Test\n public void testConstructor3()\n {\n final BinaryEncoder encoder = new BinaryEncoder(0, 16, 1.0);\n assertThat(encoder.getMin(), is(0.0));\n assertThat(encoder.getMax(), is(16.0));\n assertThat(encoder.getDelta(), is(1.0));\n assertThat(encoder.getLength(), is(4));\n }", "public AISDecoder() {\n initComponents();\n }", "protected ECBlockGroup prepareBlockGroupForEncoding() {\n ECBlock[] dataBlocks = new TestBlock[numDataUnits];\n ECBlock[] parityBlocks = new TestBlock[numParityUnits];\n\n for (int i = 0; i < numDataUnits; i++) {\n dataBlocks[i] = generateDataBlock();\n }\n\n for (int i = 0; i < numParityUnits; i++) {\n parityBlocks[i] = allocateOutputBlock();\n }\n\n return new ECBlockGroup(dataBlocks, parityBlocks);\n }", "public EncodePort() {\n initComponents();\n }", "void huffmanEncode(BlockI quantBlock, int compType, BufferedOutputStream bos) throws IOException;", "public abstract void setEncodedBy(TagContent encoder)\r\n\t\t\tthrows TagFormatException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a Builder by copying an existing AuctionRound instance
private Builder(com.fretron.Model.AuctionRound other) { super(SCHEMA$); if (isValidValue(fields()[0], other.status)) { this.status = data().deepCopy(fields()[0].schema(), other.status); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.startTime)) { this.startTime = data().deepCopy(fields()[1].schema(), other.startTime); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.endTime)) { this.endTime = data().deepCopy(fields()[2].schema(), other.endTime); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.roundNumber)) { this.roundNumber = data().deepCopy(fields()[3].schema(), other.roundNumber); fieldSetFlags()[3] = true; } }
[ "public static com.fretron.Model.AuctionRound.Builder newBuilder(com.fretron.Model.AuctionRound other) {\n return new com.fretron.Model.AuctionRound.Builder(other);\n }", "public static com.fretron.Model.AuctionRound.Builder newBuilder(com.fretron.Model.AuctionRound.Builder other) {\n return new com.fretron.Model.AuctionRound.Builder(other);\n }", "public static com.fretron.Model.AuctionRound.Builder newBuilder() {\n return new com.fretron.Model.AuctionRound.Builder();\n }", "public BidBuilder(Bid bidToCopy) {\n propertyId = bidToCopy.getPropertyId();\n bidderId = bidToCopy.getBidderId();\n bidAmount = bidToCopy.getBidAmount();\n }", "private Round(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static CustomObjectDraftBuilder of() {\n return new CustomObjectDraftBuilder();\n }", "public protocol.Message.Fence.Shape.Round.Builder getRoundBuilder() {\n return getRoundFieldBuilder().getBuilder();\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "private RoundItemRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static PriceBuilder builder() {\n return PriceBuilder.of();\n }", "public static CartDraftBuilder builder() {\n return CartDraftBuilder.of();\n }", "public static Builder newBuilder(QueryBankBalanceMessage other) {\n return new Builder(other);\n }", "public static edu.pa.Rat.Builder newBuilder(edu.pa.Rat other) {\n return new edu.pa.Rat.Builder(other);\n }", "private Builder(com.trg.fms.api.Trip other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.driverId)) {\n this.driverId = data().deepCopy(fields()[1].schema(), other.driverId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.carId)) {\n this.carId = data().deepCopy(fields()[2].schema(), other.carId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.state)) {\n this.state = data().deepCopy(fields()[3].schema(), other.state);\n fieldSetFlags()[3] = true;\n }\n }", "Round createNewRound(int gameId);", "public BasketItemBuilder(BasketItem copyFrom) {\n this.id = copyFrom.getId();\n this.quantity = copyFrom.getQuantity();\n this.label = copyFrom.getLabel();\n this.category = copyFrom.getCategory();\n this.amount = copyFrom.getIndividualAmount();\n this.baseAmount = copyFrom.getIndividualBaseAmount();\n this.measurement = copyFrom.getMeasurement();\n if (copyFrom.hasReferences()) {\n this.references = copyFrom.getReferences();\n }\n if (copyFrom.hasItemData()) {\n this.itemData = copyFrom.getItemData();\n }\n if (copyFrom.hasModifiers()) {\n this.modifiers = copyFrom.getModifiers();\n }\n }", "public static com.trg.fms.api.Trip.Builder newBuilder(com.trg.fms.api.Trip.Builder other) {\n if (other == null) {\n return new com.trg.fms.api.Trip.Builder();\n } else {\n return new com.trg.fms.api.Trip.Builder(other);\n }\n }", "private TripTime(Builder builder) {\r\n super(builder);\r\n }", "public static MoneyAttributeBuilder builder() {\n return MoneyAttributeBuilder.of();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set GlassFish cloud entity reference.
public void setCloudEntity(GlassFishCloud cloudEntity) { this.cloudEntity = cloudEntity; }
[ "public void entityReference(String name);", "public final void setReferenceEntity(java.lang.String referenceentity)\r\n\t{\r\n\t\tsetReferenceEntity(getContext(), referenceentity);\r\n\t}", "public void setReferenceEntity(ExternalId referenceEntity) {\n JodaBeanUtils.notNull(referenceEntity, \"referenceEntity\");\n this._referenceEntity = referenceEntity;\n }", "public void setEntity(Entity entity) {\r\n this.entity = entity;\r\n }", "public void elSetReference(Object bean);", "public void setESTADOReference(org.datacontract.schemas._2004._07.System_Data_Objects_DataClasses.EntityReferenceOfESTADOFG7C7FF7 ESTADOReference) {\r\n this.ESTADOReference = ESTADOReference;\r\n }", "public void setENTIDADReference(org.datacontract.schemas._2004._07.System_Data_Objects_DataClasses.EntityReferenceOfENTIDADFG7C7FF7 ENTIDADReference) {\r\n this.ENTIDADReference = ENTIDADReference;\r\n }", "public void setEntity(EntityType entity) {\n\t\t\n\t\tentity_ = entity;\n\t\t\n\t\ttype_ = \"entity\";\n\t\t\n\t\tid_ = RDrops.getEntityRecipeId(entity_);\n\t\t\n\t\tRDrops.hasEntityDropRecipes(true);\n\t}", "public void setEntity(String entity)\n\t\t{\n\t\t\tif (entity == null || entity.equals(\"\"))\n\t\t\t\tendpointElement.removeAttribute(ENTITY_ATTR_NAME);\n\t\t\telse\n\t\t\t\tendpointElement.setAttribute(ENTITY_ATTR_NAME, entity);\n\t\t}", "EntityReference getEntityReference();", "public void setReference (SoftReference ref)\r\n {\r\n _reference = ref;\r\n }", "@Override\n public GlassFishCloud getCloudEntity() {\n return cloudEntity;\n }", "public void setEntityReferenceName(String name)\r\n\t{\tentityReferenceName = DxfPreprocessor.convertToSvgCss(name,true);\t}", "public ExternalId getReferenceEntity() {\n return _referenceEntity;\n }", "YAnnotEntity getEntityref();", "public void setENTIDAD1Reference(org.datacontract.schemas._2004._07.System_Data_Objects_DataClasses.EntityReferenceOfENTIDADFG7C7FF7 ENTIDAD1Reference) {\r\n this.ENTIDAD1Reference = ENTIDAD1Reference;\r\n }", "public String getEntityReference() {\n\t\tif(entityReference == null && resource.hasProperty(FISE.ENTITY_REFERENCE)) {\n\t\t\tentityReference = resource.getPropertyResourceValue(FISE.ENTITY_REFERENCE).getURI();\n\t\t}\n\t\treturn entityReference;\n\t}", "public void setEntity(org.bukkit.entity.Entity entity) {\n if (this.entity != null)\n throw new RuntimeException(\"This disguise is already in use! Try .clone()\");\n this.entity = entity;\n setupWatcher();\n runnable.runTaskTimer(plugin, 1, 1);\n }", "void setRef(java.lang.String ref);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Dynamically call either the Desktop or Android EventManager handleResponse method with requests incoming on the socket. Reflection was used to prevent having to compile both projects into each other.
private static void reflectEvent(Protocol protocol) { try { handleResponseMethod.invoke(null, (Object) protocol); } catch (Exception e) { e.printStackTrace(); } }
[ "public Object handleCommandResponse(Object response) throws RayoProtocolException;", "private void receiveAndDispatchMessage() {\n String response = null;\n try {\n while((response = bufferedReader.readLine()) != null) {\n System.out.println(\"received message from server: \" + response);\n String messageKind = \"\";\n if(response.contains(\":\")) {\n messageKind = response.substring(0, response.indexOf(\":\"));\n } else {\n messageKind = response;\n }\n Bundle bundle = new Bundle();\n bundle.putString(\"response\", response);\n switch (messageKind) {\n case ClientMessageKind.SIGNUPDENIED:\n case ClientMessageKind.SIGNUPOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNUPACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNUPACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.SIGNINDENIED:\n case ClientMessageKind.SIGNINOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNINACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNINACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMDRIVER:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMPASSENGER:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERDEST:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.STARTRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n } else if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.ENDRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERENDSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERENDSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEPASSENGERPROFILEDENIED:\n case ClientMessageKind.UPDATEPASSENGERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEDRIVERPROFILEDENIED:\n case ClientMessageKind.UPDATEDRIVERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n default:\n break;\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void onReceived(HttpResponse aResponse);", "public interface Response {\n\n /**\n * Run user-defined code for defined responses\n * @param data The data sent by the client/server\n * @param socket The socket for the client/server\n */\n public abstract void run(Data data, Socket socket);\n}", "protected abstract T handle(final Socket socket) throws Throwable;", "protected Object dispatcher() {\n // this method is used by execute() JSNI native method to dispatch java\n // call.\n return onExecute(this.arguments);\n }", "BaseHttpClientHandler createHttpClientHandler( Socket socket );", "H getHandler(Method m, Object o, Tunable t);", "void receiveResponse(String invocationId, HttpResponse response);", "public void handleMessage(Message message, DatagramSocket socket) throws HandlingException, IOException, ClassNotFoundException;", "private void handleInvocationCommand() throws IOException, ClassNotFoundException {\r\n final Object context = m_in.readObject();\r\n final String handle = (String) m_in.readObject();\r\n final String methodName = (String) m_in.readObject();\r\n final Class[] paramTypes = (Class[]) m_in.readObject();\r\n final Object[] args = (Object[]) m_in.readObject();\r\n Object result = null;\r\n try {\r\n result = m_invoker.invoke(handle, methodName, paramTypes, args, context);\r\n } catch (Exception e) {\r\n result = e;\r\n }\r\n m_out.writeObject(result);\r\n m_out.flush();\r\n }", "private void dispatchMethod(Request request, Response response) throws Exception {\n HttpUtil.setConnectionHeader(request, response);\n PatternPathRouter.RoutableDestination<HttpResourceModel> destination =\n microservicesRegistry.\n getMetadata().\n getDestinationMethod(request.getUri(), request.getHttpMethod(), request.getContentType(),\n request.getAcceptTypes());\n HttpResourceModel resourceModel = destination.getDestination();\n response.setMediaType(getResponseType(request.getAcceptTypes(),\n resourceModel.getProducesMediaTypes()));\n InterceptorExecutor interceptorExecutor =\n new InterceptorExecutor(resourceModel, request, response, microservicesRegistry.getInterceptors());\n if (interceptorExecutor.execPreCalls()) { // preCalls can throw exceptions\n\n HttpMethodInfoBuilder httpMethodInfoBuilder =\n new HttpMethodInfoBuilder().\n httpResourceModel(resourceModel).\n httpRequest(request).\n httpResponder(response).\n requestInfo(destination.getGroupNameValues());\n\n HttpMethodInfo httpMethodInfo = httpMethodInfoBuilder.build();\n if (httpMethodInfo.isStreamingSupported()) {\n while (!(request.isEmpty() && request.isEomAdded())) {\n httpMethodInfo.chunk(request.getMessageBody());\n }\n httpMethodInfo.end();\n } else {\n httpMethodInfo.invoke();\n }\n interceptorExecutor.execPostCalls(response.getStatusCode()); // postCalls can throw exceptions\n }\n }", "void onResponse(Connection connection, Message response);", "public void handleMessage(Message message, DatagramSocket socket, DatagramPacket packet) throws HandlingException, IOException, ClassNotFoundException;", "private void invokeListenerMethod(Object obj) {\n\n // are there any registered protocol listeners,\n // generate the event and callback.\n long t0 = System.currentTimeMillis();\n\n Object[] allListeners = this.protocolListeners.toArray(new Object[0]);\n U2UFileSharingProtocolEvent event = null;\n String objId = null;\n\n if(obj instanceof U2UFSProtocolOrder)\n {\n U2UFSProtocolOrder order = (U2UFSProtocolOrder) obj;\n event = U2UFileSharingProtocolEvent.newOrderEvent(\n order,\n protocolID);\n\n objId = \"order\" + order.getOrderId();\n }\n else if(obj instanceof U2UFSProtocolResponse)\n {\n U2UFSProtocolResponse response = (U2UFSProtocolResponse) obj;\n event = U2UFileSharingProtocolEvent.newResponseEvent(\n response,\n protocolID);\n\n objId = \"response\" + response.getResponseId();\n }\n\n for (Object allListener : allListeners) {\n \n ((U2UFileSharingProtocolListener) allListener).protocolEvent(event);\n }\n\n System.out.println(protocolID + \" Called all listenters to query \" + objId +\n \" in : \" + (System.currentTimeMillis() - t0));\n }", "H getHandler(Method gmethod, Method smethod, Object o, Tunable tg, Tunable ts);", "public static Runnable getServiceHandler(TcpPacket request, Socket socket, IndexFile index) {\n MessageType requestType = request.getMessageType();\n Request toProcess = null;\n if (requestType != MessageType.LIST){\n toProcess = NetworkUtils.getPacketContents(request);\n }\n switch (requestType) {\n case DOWNLOAD:\n return new DownloadServiceHandler(socket, toProcess, index);\n case UPLOAD:\n return new UploadServiceHandler(socket, toProcess, index);\n case DELETE:\n return new DeleteServiceHandler(socket, toProcess, index);\n case LIST:\n return new FileListServiceHandler(socket, index);\n default:\n //\n // throw new Exception(\"Wrong request type\");\n return null;\n }\n\n }", "public void run() {\n\t\tString TAG = \"CommsRcv\";\n\t\tfinal byte[] PROT_NAME = {'E','m','C','a','n',':','M','o','r','B','u','s'};\n\t\tint protVersion = 0;\n\n\t\tbyte rspCode = 0;\t\t\t\t\t/* Byte read from server. */\n\t\tbyte[] rcvBuf = new byte[1024];\t\t/* buffer store for the stream. */\n\t\tint bytes = 0;\t\t /* number of bytes returned from read. */\n\t\t\n\t\twhile(true) {\n\t\t\t/* Make a blocking call to read response code from input stream. */\n\t\t\ttry {\n\t\t\t\trspCode = (byte)inputStream.read();\t\t\t\t\n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\tLog.d(TAG, e.getLocalizedMessage());\n\t\t\t\t//TODO Send message to service that read on socket failed.\n\t\t\t}\n\t\t\t\n\n\t\t\t/* Dispatch received server response. */\n\t\t\tswitch (EmCanRsp.fromCode(rspCode)) {\n\t\t\t\n\t\t\tcase EOF:\n\t\t\t\t/* Indicates attempt to read a closed socket. */\n\t\t\t\tif (L) Log.i(TAG, \"Reached EOF\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase NOP:\n\t\t\t\t/* We ignore NOP except to log it if logging enabled. */\n\t\t\t\tif (L) Log.i(TAG, \"Received NOP\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase PONG:\n\t\t\t\t/* If server was BUSY, receiving PONG indicates it's now READY. */\n\t\t\t\tif (L) Log.i(TAG, \"Received PONG\");\n\t\t\t\tif (mSrvrState.is(SrvrStates.BUSY)) {\n\t\t\t\t\tmSrvrState.set(SrvrStates.READY);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase ID:\n\t\t\t\t/* If state is INIT, ID says server connected. Otherwise, ignored. */\n\t\t\t\tif (L) Log.i(TAG, \"Received ID\");\n\t\t\t\tif (mSrvrState.is(SrvrStates.INIT)) {\n\t\t\t\t\t/*Read rest of the ID response... */\n\t\t\t\t\tfor (bytes = 0; bytes < 1024; bytes++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvBuf[bytes] = (byte)inputStream.read();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tLog.d(TAG, e.getLocalizedMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (rcvBuf[bytes] == 0) break;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/* ...and verify isequal EmCan:Morbus */\n\t\t\t\t\tbyte[] rcvdId = Arrays.copyOf(rcvBuf,bytes);\n\t\t\t\t\tif (Arrays.equals(rcvdId, PROT_NAME)) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t/* Read the protocol version. */\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprotVersion = inputStream.read();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tLog.d(TAG, e.getLocalizedMessage());\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t/* Send \"Connect\" event to Morbus service. Attach the server's message handler. */\n\t\t\t\t\t\tMessage msg = MbusService.mSrvcFmCommsHandler.obtainMessage();\n\t\t\t\t\t\tmsg.what = CommsEvt.CONNECT.toCode();\n\t\t\t\t\t\tmsg.arg1 = protVersion; // Report protocol version.\n\t\t MbusService.mSrvcFmCommsHandler.sendMessage(msg);\n\t\t \n\t\t /* Update server state to \"Connected, ready for commands\" */\n\t\t\t mSrvrState.set(SrvrStates.READY);\n\n\t\t //Start a thread to send keep alive commands every 50 seconds\n\t\t\t\t\t\tKeepAliveThread();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t/* ID returned did not match. */\n\t\t\t\t\t\t//TODO Respond with a Stop and shutdown.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase FWINFO:\n\t\t\t\tif (L) Log.i(TAG, \"Received FWINFO\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase CMDS:\n\t\t\t\tif (L) Log.i(TAG, \"Received CMDS\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase CANFR:\n\t\t\t\tif (L) Log.i(TAG, \"Received CANFR\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase RESET:\n\t\t\t\tif (L) Log.i(TAG, \"Received RESET\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase ADR:\n\t\t\t\tif (L) Log.i(TAG, \"Received ADR\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase UNADR:\n\t\t\t\tif (L) Log.i(TAG, \"Received UNADR\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase STROUT:\n\t\t\t\tif (L) Log.i(TAG, \"Received STROUT\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase STRINRES:\n\t\t\t\tif (L) Log.i(TAG, \"Received STRINRES\");\n\t\t\t\tbreak;\n\n\t\t\tcase STRIN:\n\t\t\t\tif (L) Log.i(TAG, \"Received STRIN\");\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tLog.d(TAG,\"Unknown EMCan response\");\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\t/* end switch */\n\t\t\t\n\t\t\t//TODO If we get to here with a state of STOP end the thread.\n\t\t}\t/* end while */\n\t}", "public abstract void runProtocol();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If set, the properties file loaded by StdPropFileOnFilesystemLoader is optional and will not throw an error if it is not found. This is set by default, so there is no need to explicitly call it.
public S filesystemPropFileNotRequired() { _missingFilesystemPropFileAProblem = false; return (S) this; }
[ "public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}", "public S filesystemPropFileRequired() {\n\t\t\t_missingFilesystemPropFileAProblem = true;\n\t\t\treturn (S) this;\n\t\t}", "private static Properties loadOverrideProperties() {\n String confFile = System.getProperty(HAPI_PROPERTIES);\n if(confFile != null) {\n try {\n Properties props = new Properties();\n props.load(new FileInputStream(confFile));\n return props;\n }\n catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties file: \" + confFile, e);\n }\n }\n\n return null;\n }", "public S classpathPropertiesNotRequired() {\n\t\t\t_missingClasspathPropFileAProblem = false;\n\t\t\treturn (S) this;\n\t\t}", "public S classpathPropertiesRequired() {\n\t\t\t_missingClasspathPropFileAProblem = true;\n\t\t\treturn (S) this;\n\t\t}", "public void loadProperties() {\n\n\t\tqueryProperties = new Properties();\n\t\ttry (InputStream propStream = SkylerQueryTool.class.getResourceAsStream(DEFAULT_PROPERTIES_FILE);)\n\t\t{\t\n\t\t\tif (propStream != null) {\n\t\t\t\tqueryProperties.load(propStream);\n\t\t\t\tlogger.info(\"Loaded SkylerQueryTool properties file from default location: \"+DEFAULT_PROPERTIES_FILE); \n\t\t\t}\n\t\t\telse {\n\t\t\t\tlogger.debug(\"SkylerQueryTool: loadProperties, unable to locate default properties file on classpath\");\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// now see if the configuration file should be overriden\n\t\t\tString configFile = System.getProperty(SYSTEM_CONFIG_LOCATION_NAME);\n\t\t\tif (configFile != null) {\n\t\t\t\ttry (FileInputStream configFOS = new FileInputStream(configFile)){\n\t\t\t\t\tqueryProperties.load(configFOS);\n\t\t\t\t}\n\t\t\t\tlogger.info(\"Loaded custom SkylerQueryTool properties from system property location at \" + configFile); \n\t\t\t}\t\t\n\t\t}\n\t\tcatch (IOException e) { \n\t\t\tlogger.error(\"SkylerQueryTool: loadProperties - IOException: \"+e);\n\t\t}\n\t}", "@Test(expectedExceptions = {MissingRequiredPropertyException.class })\r\n\tpublic void testGetRequiredPropertyWithUnknownProperty() throws MissingRequiredPropertyException {\r\n\t\ttry {\r\n\t\t\tPropertiesHelper props = new PropertiesHelper(RESOURCES_DIR + \"testGetRequiredProperty.txt\");\r\n\t\t\tprops.getRequiredProperty(\"unknown\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }", "public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void test_loadConfigFrom_badFile() {\n System.setProperty(\"test\", \"asdfasdf\");\n assertNotThrows(() -> {\n Config config = Config.loadConfigFrom(\"asdfasdf\");\n assertEquals(\"asdfasdf\", config.getStringPropertyWithDefault(\"test\", null));\n });\n }", "private static void checkProperties() throws IOException\n {\n if ( null == common_properties )\n {\n _log.info ( \"Read from default properties file\" );\n \n common_properties = new Properties(); \n c = (new Toolkit()).getClass();\n cl = c.getClassLoader();\n is = cl.getResourceAsStream ( \"portlet-common.properties\" );\n common_properties.load ( is ); \n \n retrieveProperties();\n }\n }", "public PropertyLoader(InputStream defaultPropertyFile)\n throws IOException {\n Assertions.IsNotNull(defaultPropertyFile, \"defaultPropertyFile\");\n cache = new Properties();\n cache.load(defaultPropertyFile);\n }", "private static synchronized void initialize(String prop) {\n\t\tFileInputStream is=null;\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tis = new FileInputStream(prop);\n\t\t\tif (is == null) {\n\t\t\t System.out.println(\"The prop is null.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproperties.load(is);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t System.out.println(\"properties loading fails.\");\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\tfinally{\n\t\t\t\ttry{\n\t\t\t\t\tif(is!=null)\n\t\t\t\t\t\tis.close();\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex){\n\t\t\t\t System.out.println(\"properties loading fails for runtime exception.\");\n\t\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t}\n\t}", "public static File getDefaultPropertiesFile() {\n return AprsSystemPropDefaults.getSINGLE_PROPERTY_DEFAULTS().getPropFile();\n }", "@Test\n public void testSetEnvPropFile() {\n Assert.assertNull(this.c.getSetupFile());\n final String propFile = \"s3://netflix.propFile\";\n this.c.setSetupFile(propFile);\n Assert.assertEquals(propFile, this.c.getSetupFile());\n }", "@Test\n public void testLoadOptionalForceCreate() throws ConfigurationException\n {\n factory.setBasePath(TEST_FILE.getParent());\n CombinedConfiguration config = prepareOptionalTest(\"xml\", true);\n assertEquals(\"Wrong number of configurations\", 1, config\n .getNumberOfConfigurations());\n FileConfiguration fc = (FileConfiguration) config\n .getConfiguration(OPTIONAL_NAME);\n assertNotNull(\"Optional config not found\", fc);\n assertEquals(\"File name was not set\", \"nonExisting.xml\", fc\n .getFileName());\n assertNotNull(\"Base path was not set\", fc.getBasePath());\n }", "@Test\n public void testLoadOptional() throws Exception\n {\n factory.setURL(OPTIONAL_FILE.toURI().toURL());\n Configuration config = factory.getConfiguration();\n assertTrue(config.getBoolean(\"test.boolean\"));\n assertEquals(\"value\", config.getProperty(\"element\"));\n }", "public void testGetOptionalProperty() {\r\n\t\tPropertiesHelper props = TestHelper.readEntropyProperties(RESOURCES_DIR + \"testGetRequiredProperty.txt\");\r\n\t\t\t\r\n\t\t//Property exists, must return the current value\r\n\t\tAssert.assertEquals(props.getOptionalProperty(\"oneProp\", \"myDefault\"), \"ok\");\t\t\t \t\t\t\t\t\t\r\n\t\t//Unknown property, must return the default value\r\n try {\r\n\t\t Assert.assertEquals(props.getOptionalProperty(\"unknown\", 2), 2);\r\n Assert.assertEquals(props.getOptionalProperty(\"unknown\", \"myDefault\"), \"myDefault\");\r\n } catch (WrongPropertyTypeException e) {\r\n Assert.fail(e.getMessage(), e);\r\n }\t\t\r\n\t}", "public TowerProperties(Optional<String> towerProps) throws IOException {\n if(towerProps.isEmpty()){\n myTowerProperties = DEFAULT_TOWER_PROPS;\n } else {\n myTowerProperties = towerProps.get();\n }\n PROPERTIES_INPUT_STREAM = getClass().getClassLoader().getResourceAsStream(PROPERTY_DIRECTORY+ TOWER_DIRECTORY\n + myTowerProperties);\n prop.load(PROPERTIES_INPUT_STREAM);\n setFiringSpeed();\n setPrice();\n setImage();\n setRange();\n setProjectilesPerShot();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the initialization blocks.
public List<InitializationBlock> getInitializationBlocks() { return initializationBlocks; }
[ "public List<Initializer> getInitializers()\r\n {\r\n return initializers;\r\n }", "default List<_staticBlock> listStaticBlocks(){\n NodeWithMembers nwm = (NodeWithMembers)((_node)this).ast();\n List<_staticBlock> sbs = new ArrayList<>();\n NodeList<BodyDeclaration<?>> mems = nwm.getMembers();\n for( BodyDeclaration mem : mems ){\n if( mem instanceof InitializerDeclaration){\n sbs.add(new _staticBlock( (InitializerDeclaration)mem));\n }\n }\n return sbs;\n }", "public static void init() {\n Handler.log(Level.INFO, \"Loading Blocks\");\n\n oreAluminum = new BaseOre(Config.oreAluminumID).setUnlocalizedName(Archive.oreAluminum)\n .setHardness(3.0F).setResistance(5.0F);\n\n blockGrinder = new BaseContainerBlock(Config.blockGrinderID, Archive.grinderGUID)\n .setUnlocalizedName(Archive.blockGrinder);\n\n blockOven = new BaseContainerBlock(Config.blockOvenID, Archive.ovenGUID)\n .setUnlocalizedName(Archive.blockOven);\n }", "public IASTInitializer[] getInitializers();", "public List initializers() {\n return initializers; }", "public List<Expression> initializers() {\n\t\treturn this.initializers;\n\t}", "private void setBlocks() {\n // load the class\n ClassLoader cl = ClassLoader.getSystemClassLoader();\n // create an InputStream object\n InputStream inputStream = cl.getResourceAsStream(this.map.get(\"block_definitions\"));\n // initialize this factory with a factory\n this.factory = BlocksDefinitionReader.fromReader(new InputStreamReader(inputStream));\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private List<String> getAllInitializers()\n {\n final List<String> ret = new ArrayList<>();\n for (final CacheMethod cacheMethod : cacheMethods) {\n ret.add(cacheMethod.className);\n }\n if (parent != null) {\n ret.addAll(parent.getAllInitializers());\n }\n return ret;\n }", "public static void init () {\n\t\t\n\t\t/*\n\t\t * Letter block naming and registry code\n\t\t */\n\t\tfor (int i = 0; i <= NameHandler.length(); ++i) {\n\t\t\tBlockLetter bL = new BlockLetter();\n\t\t\tString name = NameHandler.getNameFromIndex(i);\n\t\t\tbL.setBlockName(name);\n\t\t\tGameRegistry.registerBlock(bL, name);\n\t\t\tletterBlocks.add(bL);\n\t\t}\n\t\t\n\t\tcopperBlock.setBlockName(Names.Blocks.COPPER_BLOCK);\n\t\ttinBlock.setBlockName(Names.Blocks.TIN_BLOCK);\n\t\tsilverBlock.setBlockName(Names.Blocks.SILVER_BLOCK);\n\t\tclassicBronzeBlock.setBlockName(Names.Blocks.CLASSIC_BRONZE_BLOCK);\n\t\tmildBronzeBlock.setBlockName(Names.Blocks.MILD_BRONZE_BLOCK);\n\t\telectrumBlock.setBlockName(Names.Blocks.ELECTRUM_BLOCK);\n\t\tcopperDustBlock.setBlockName(Names.Blocks.COPPER_DUST_BLOCK);\n\t\t\n\t\tcopperOre.setBlockName(Names.Blocks.COPPER_ORE);\n\t\ttinOre.setBlockName(Names.Blocks.TIN_ORE);\n\t\tsilverOre.setBlockName(Names.Blocks.SILVER_ORE);\n\t\t\n\t\tmarble.setBlockName(Names.Blocks.MARBLE);\n\t\t\n\t\tgrindstone.setBlockName(Names.Blocks.GRINDSTONE);\n\t\t\n\t\tGameRegistry.registerBlock(column, Names.Blocks.COLUMN);\n\t\tGameRegistry.registerBlock(copperBlock, Names.Blocks.COPPER_BLOCK);\n\t\tGameRegistry.registerBlock(tinBlock, Names.Blocks.TIN_BLOCK);\n\t\tGameRegistry.registerBlock(silverBlock, Names.Blocks.SILVER_BLOCK);\n\t\tGameRegistry.registerBlock(classicBronzeBlock, Names.Blocks.CLASSIC_BRONZE_BLOCK);\n\t\tGameRegistry.registerBlock(mildBronzeBlock, Names.Blocks.MILD_BRONZE_BLOCK);\n\t\tGameRegistry.registerBlock(electrumBlock, Names.Blocks.ELECTRUM_BLOCK);\n\t\tGameRegistry.registerBlock(copperDustBlock, Names.Blocks.COPPER_DUST_BLOCK);\n\t\t\n\t\tGameRegistry.registerBlock(copperOre, Names.Blocks.COPPER_ORE);\n\t\tGameRegistry.registerBlock(tinOre, Names.Blocks.TIN_ORE);\n\t\tGameRegistry.registerBlock(silverOre, Names.Blocks.SILVER_ORE);\n\t\tGameRegistry.registerBlock(marble, Names.Blocks.MARBLE);\n\t\t\n\t\tGameRegistry.registerBlock(grindstone, Names.Blocks.GRINDSTONE);\n\t}", "public Block[] getBlocks() {\n\t\treturn blocks;\n\t}", "public BlockList getBlocks() {\n return blocks;\n }", "public int getInitializerCount() {\r\n\t\treturn initializers.length;\r\n\t}", "public List<Block> blocks() {\r\n return this.blocks;\r\n }", "@Override\n\tprotected void initializeBlock() {\n\t}", "@ZenCodeType.Method\n @ZenCodeType.Getter(\"blocks\")\n public Collection<Block> getBlocks() {\n \n return getRegistryObjects(BuiltInRegistries.BLOCK);\n }", "PsiClassInitializer @NotNull [] getInitializers();", "public static void initializeBlockFields() {\n KitchenMod.LOGGER.log(\"Initializing static block fields\");\n KMComposterBlock.rinit();\n\n StakeBlock.registerPlant(GRAPE_VINE);\n StakeBlock.registerPlant(TOMATO_VINE);\n StakeBlock.registerPlant(VANILLA_VINE);\n }", "public Collection<Block> getBlockCollection() {\n\t\treturn this.blocks.values();\n\t}", "public Proofs getStaticInitLemmas() {\n\t\treturn staticInitLemmas;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of ClientRequestGetRevisionForCompare.
public ClientRequestGetRevisionForCompare(ClientRequestGetRevisionForCompareData data) { request = data; }
[ "public ClientRequestGetRevisionForCompare(ClientRequestGetRevisionForCompareData data) {\n this.databaseManager = DatabaseManager.getInstance();\n this.schemaName = databaseManager.getSchemaName();\n setRequest(data);\n }", "public static SnapshotRequest createVersionRequest() {\r\n\t\treturn new SnapshotRequest();\r\n\t}", "private void makeRequest() {\n\t\tRequest request = new Request(RequestCode.GET_REVISION_HISTORY);\n\t\trequest.setDocumentName(tabs.getTitleAt(tabs.getSelectedIndex()));\n\t\ttry {\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "long getCreateRevision();", "PortalRevisionContract get(String resourceGroupName, String serviceName, String portalRevisionId);", "Revision getRevision(long revisionId);", "public Revision create(Revision revID);", "public ListVersionsRequest() {}", "public com.vodafone.global.er.decoupling.binding.request.GetVersionRequest createGetVersionRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetVersionRequestImpl();\n }", "public static schema.Revision.Builder newBuilder() {\n return new schema.Revision.Builder();\n }", "public static schema.Revision.Builder newBuilder(schema.Revision other) {\n return new schema.Revision.Builder(other);\n }", "com.google.protobuf.ByteString getRevision();", "public IContentRetriever createContentRetriever(VssFileRevision revision) {\r\n if (config.isUseOnlyLastRevisionContent() && !revision.isLastRevision()) {\r\n return ZeroContentRetriever.INSTANCE;\r\n } else {\r\n return new VssContentRetriever(this, revision);\r\n }\r\n }", "pb.lyft.datacatalog.Datacatalog.IntQueryKeyOrBuilder getRevisionOrBuilder();", "PortalRevisionContract getById(String id);", "pb.lyft.datacatalog.Datacatalog.IntQueryKey getRevision();", "java.lang.String getRevision();", "long getRevision();", "@Test\n public void testGetRevisionInfoList() throws ClientAPIException {\n LOGGER.info(\"ClientAPIServerTest.getRevisionInfoList\");\n ClientAPIContext clientAPIContext = ClientAPIFactory.createClientAPIContext();\n clientAPIContext.setUserName(USERNAME);\n clientAPIContext.setPassword(PASSWORD);\n clientAPIContext.setServerIPAddress(SERVER_IP_ADDRESS);\n clientAPIContext.setPort(SERVER_PORT);\n clientAPIContext.setProjectName(TestHelper.getTestProjectName());\n clientAPIContext.setBranchName(QVCSConstants.QVCS_TRUNK_BRANCH);\n clientAPIContext.setAppendedPath(\"\");\n clientAPIContext.setFileName(FILENAME);\n ClientAPI instance = ClientAPIFactory.createClientAPI(clientAPIContext);\n instance.login();\n List<RevisionInfo> result = instance.getRevisionInfoList();\n assertTrue(!result.isEmpty());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends the value of the barcode scan.
void sendScanRequest(String barcodeValue);
[ "void handleScan(String barcodeValue);", "void barcodeCaptured(String barcodeString);", "final void sendData()\n {\n sendData( this.serialInputTextField.getText() );\n }", "@Override\n public void run() {\n barcodeValue.setText(barcodes.valueAt(0).displayValue);\n if(lock){\n\n String data = barcodes.valueAt(0).displayValue;\n System.out.println();\n Decoder decoder = new Decoder();\n decoder.hex = data;\n decoder.execute();\n\n lock = false;\n }\n\n\n }", "@SuppressWarnings({ \"nls\", \"boxing\" })\n @Override\n public final void command(final byte value) {\n LOG.trace(\"sending value in command mode to SSD1306 I2C : i2c = [%d:%s] ; value = [%s]\",\n bus, hex(asByte(addr)), hex(value));\n runSync(lock, () -> {\n cmdBytes[1] = value;\n writeBufferSafe(cmdBytes);\n });\n }", "private void onBarcodeDetected(Barcode barcode) {\n Log.d(TAG, \"Detected barcode with value: \" + barcode.displayValue);\n\n Intent returnIntent = new Intent();\n returnIntent.putExtra(INTENT_EXTRA_BARCODE_VALUE, barcode.displayValue);\n setResult(RESULT_OK, returnIntent);\n finish();\n }", "private static void sendScanCodeEvent (int keyScanCode) {\n INPUT input = new INPUT();\n // Common properties\n input.input.setType(\"ki\");\n input.type = new WinDef.DWORD(WinUser.INPUT.INPUT_KEYBOARD);\n input.input.ki.time = new WinDef.DWORD(0);\n input.input.ki.wVk = new WinDef.WORD(0);\n\n // Not really needed. Can be used to identify generated keyboard inputs\n input.input.ki.dwExtraInfo = new BaseTSD.ULONG_PTR(0xBAADC0FE);\n\n // \"keyDown\": Key\n input.input.ki.wScan = new WinDef.WORD(keyScanCode);\n input.input.ki.dwFlags = new WinDef.DWORD(KEYEVENTF_SCANCODE); // default key down\n User32.INSTANCE.SendInput(new WinDef.DWORD(1), (WinUser.INPUT[]) input.toArray(1), input.size());\n\n // \"keyUp\" : Key\n input.input.ki.dwFlags = new WinDef.DWORD(KEYEVENTF_SCANCODE | KEYEVENTF_KEYUP);\n User32.INSTANCE.SendInput(new WinDef.DWORD(1), (WinUser.INPUT[]) input.toArray(1), input.size());\n }", "java.lang.String getBarcode();", "private void sendText() {\n String str = txtInput.getText();\n // TODO: Build a history for recalling later.\n \n // Append the newline.\n if (chkCRLF.isSelected()) {\n str += \"\\r\\n\";\n } else {\n str += \"\\n\";\n }\n \n // Ecco The Dolphin mode.\n if (chkEcho.isSelected()) {\n txtMonitor.append(str);\n }\n \n // Send and clear the input field.\n serial.sendString(str);\n txtInput.setText(\"\");\n }", "private void sendCode(int a){\n if(btSocket != null){\n try {\n btSocket.getOutputStream().write(a);\n }catch (IOException e){\n msg(e.getMessage());\n }\n }\n }", "private void scan() {\n IntentIntegrator intentIntegrator = new IntentIntegrator(this);\n intentIntegrator.setCaptureActivity(CaptureAct.class);\n intentIntegrator.setOrientationLocked(false);\n intentIntegrator.setDesiredBarcodeFormats(IntentIntegrator.ALL_CODE_TYPES);\n intentIntegrator.setPrompt(\"Scanning Code\");\n intentIntegrator.initiateScan();\n }", "@Override\n public void run() {\n progressBarScanWait.setVisibility(View.GONE);\n buttonScanSendDataToSignalR.setVisibility(View.VISIBLE);\n\n // menage result\n if (result) {\n Toast.makeText(ActivityScreans.this, \"Wysłano.\", Toast.LENGTH_SHORT).show();\n\n // clear view\n editTextScanQuantity.setText(\"\"); // clear edit text\n editTextScanCode.setText(\"\"); // clear edit text\n editTextScanCode.requestFocus(); // after send to signalR start editing editTextScanCode\n\n } else {\n showAlertDialog(\"Błąd! \\nNie dostarczono.\");\n\n // change color of background for time\n changeBackgroudColorForTimeInSec(1);\n }\n }", "private String getBarcode()\n {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"\");\n System.out.print(\"Indtast stregkode: \");\n return scanner.nextLine();\n }", "public void sendRCCommand(String keycode);", "void requestBarcode(Activity activity);", "@Override\n public void onObjectDetected(Barcode data) {\n if (map.containsValue(data.displayValue)) {\n // If QR already scanned, move on\n MakeSnakckbar(getString(R.string.barcode_exists), 0);\n\n } else {\n // Set the number of QR codes to read. On the last one, send the message to the URL\n if (counter == 0) {\n map.put(\"1\", data.displayValue);\n } else if (counter == 1) {\n map.put(\"2\", data.displayValue);\n } else if (counter == 2) {\n map.put(\"3\", data.displayValue);\n } else if (counter == 3) {\n map.put(\"4\", data.displayValue);\n\n // Send a POST request to the server. Increment the counter for every qrcode you have\n // in the desktop application.\n new SendPostRequest().execute(map.get(\"1\"), map.get(\"2\"), map.get(\"3\"), map.get(\"4\"), URL, codeName);\n\n // Return to the main UI with a success code\n Intent returnMainUi = new Intent();\n returnMainUi.putExtra(BarcodeObject, data);\n setResult(CommonStatusCodes.SUCCESS, returnMainUi);\n finish();\n }\n\n // Increment counter and display results to the user\n counter=counter+1;\n MakeSnakckbar(\"QR\" + counter + \" Captured!\", 0);\n }\n }", "public String getBarcode() {\n return barcode;\n }", "void setBarcode(java.lang.String barcode);", "public void setBarcode(String value) {\n setAttributeInternal(BARCODE, value);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Request to end a meeting.
boolean endMeeting(String id);
[ "ConferenceScheduleBuilderService endEvent();", "public void onCloseMeeting() {\n controller.closeMeeting();\n }", "void end(String roomId);", "ConferenceScheduleBuilderService endLunch();", "void conversationEnding(Conversation conversation);", "boolean leaveMeeting(long meetingId, long userId);", "private void sendInformEnded() {\n\t\tACLMessage message = new ACLMessage(ACLMessage.INFORM);\n\n\t\tfor (AID participant : participants) {\n\t\t\tmessage.addReceiver(participant);\n\t\t}\n\n\t\tauction.setNote(\"ENDED\");\n\t\ttry {\n\t\t\tmessage.setContentObject(auction);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tmessage.setOntology(\"AUCTION\");\n\t\tmyAgent.send(message);\n\t}", "private void finaliseMeeting() {\n mMeetingApiService.generateMeeting(mMeeting);\n }", "private static void deleteMeeting() {\n\t\t//show existing meetings\n\t\tList<List<String>> meetings = eventScheduler.getMeetings();\n\t\tif (meetings.size() != 0) {\n\t\t\tSystem.out.println(\"Existing meetings in meeting databse:\");\n\t\t\tfor (List<String> meeting : meetings) {\n\t\t\t\tSystem.out.println(\"Meeting ID: \" + meeting.get(0));\n\t\t\t\tSystem.out.println(\"Meeting date: \" + meeting.get(1));\n\t\t\t\tSystem.out.println(\"Start time: \" + meeting.get(2));\n\t\t\t\tSystem.out.println(\"End time: \" + meeting.get(3));\n\t\t\t\tSystem.out.println(\"Attendee(s): \" + meeting.get(4));\n\t\t\t\tSystem.out.println(\"Description: \" + meeting.get(5));\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Read in meeting id\n\t\tString pMeetingId = inputOutput(\"\\nPlease enter the id of meeting to delete: \");\n\t\t\n\t\tList<Arguments> aList = new ArrayList<Arguments>();\n\t\tArguments a = new Arguments(\"meeting-id\", pMeetingId);\n\t\taList.add(a);\n\t\n\t\tboolean isAdded = eventScheduler.deleteMeeting(aList);\n\t\tif (isAdded) {\n\t\t\tSystem.out.print(\"Meeting successsfully deleted!\\n\");\t\n\t\t} else {\n\t\t\tSystem.out.print(\"Meeting not deleted!\\n\");\n\t\t}\n\t\tmainMenu();\n\t}", "public void endOfWork() {\n\t\tClientCom clientCom = new ClientCom(RunParameters.ArrivalQuayHostName, RunParameters.ArrivalQuayPort);\n\t\twhile (!clientCom.open()) {\n\t\t\tSystem.out.println(\"Arrival Quay not active yet, sleeping for 1 seccond\");\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t}\n\t\t}\n\t\t;\n\t\tPassenger passenger = (Passenger) Thread.currentThread();\n\t\tMessage pkt = new Message();\n\t\tpkt.setType(MessageType.SIM_ENDED);\n\t\tpkt.setId(passenger.getPassengerId());\n\n\t\tclientCom.writeObject(pkt);\n\t\tpkt = (Message) clientCom.readObject();\n\n\t\tpassenger.setCurrentState(pkt.getState());\n\t\tclientCom.close();\n\t}", "public static void endQuestion() {\r\n\t\tif (currQuestion.allocatedTime != 0) {\r\n\t\t\tsetAllocatedTime(0);\r\n\t\t}\r\n\t\tView.voterWaitingNextQuestion();\r\n\t}", "private static void editMeetingRemoveAttendee() {\n\t\t//show existing meetings\n\t\tList<List<String>> meetings = eventScheduler.getMeetings();\n\t\tSystem.out.println(\"Existing meetings in meeting databse:\");\n\t\tfor (List<String> meeting : meetings) {\n\t\t\tSystem.out.println(\"Meeting ID: \" + meeting.get(0));\n\t\t\tSystem.out.println(\"Meeting date: \" + meeting.get(1));\n\t\t\tSystem.out.println(\"Start time: \" + meeting.get(2));\n\t\t\tSystem.out.println(\"End time: \" + meeting.get(3));\n\t\t\tSystem.out.println(\"Attendee(s): \" + meeting.get(4));\n\t\t\tSystem.out.println(\"Description: \" + meeting.get(5));\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n\t\t//Read in meeting id\n\t\tString pMeetingId = inputOutput(\"\\nPlease enter the id of meeting to edit: \");\n\t\t//Read in attendee\n\t\tString pAttendee = inputOutput(\"\\nPlease enter attendee remove: \");\n\t\t\n\t\tList<Arguments> aList = new ArrayList<Arguments>();\n\t\tArguments a = new Arguments(\"meeting-id\", pMeetingId);\n\t\taList.add(a);\n\t\ta = new Arguments(\"attendee\", pAttendee);\n\t\taList.add(a);\n\t\t\n\t\tboolean isAdded = eventScheduler.editMeetingRemoveAttendee(aList);\n\t\tif (isAdded) {\n\t\t\tSystem.out.print(\"Attendee successsfully removed!\\n\");\t\n\t\t} else {\n\t\t\tSystem.out.print(\"Attendee not removed!\\n\");\n\t\t}\n\t\tmainMenu();\n\t}", "void endTask();", "String endSessionResponse(String clientName, long chatStartTime);", "public void endTrip(int terminalId) {\n if(isUserTraveling) {\n aUserTrip.endGoodTrip(terminalId);\n isUserTraveling = false;\n System.out.println(\"Thank you for using MoovMe. Have a great day!\");\n }\n System.out.println(\"Sorry can't end a trip. You're not traveling\");\n }", "void declineInvitation(String eventId);", "@Test\n public void endConferenceOnExitTest() {\n // TODO: test endConferenceOnExit\n }", "boolean deleteMeeting(long meetingId);", "void endConversation(String key);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a widget Label Panel
public WidgetLabelPanel(String labelText, Widget widget){ super(); this.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); Label myLabel = new Label(labelText); myLabel.addStyleName("widgetLabel"); this.add(myLabel); this.add(widget); }
[ "private void generateLabelPanel() {\n speedLabel = new JLabel(\"\");\n loopbackLabel = new JLabel(\"\");\n playingLabel = new JLabel(\"\");\n\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new FlowLayout());\n labelPanel.add(playingLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(speedLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(loopbackLabel);\n mainPanel.add(labelPanel);\n }", "private void makeLabelPanel()\n {\n labelPanel = new JPanel();\n labelPanel.setBackground(Color.CYAN);\n imageCitation = new JLabel(\"\",JLabel.CENTER);\n sentenceToDisplay = new JLabel(\"\",JLabel.CENTER);\n labelPanel.setLayout(new BoxLayout(labelPanel, BoxLayout.Y_AXIS));\n labelPanel.add(imageCitation);\n labelPanel.add(sentenceToDisplay);\n }", "JLabel createLabel(String text);", "private JPanel createPanelLabelText(String lab, JTextField text) {\r\n JLabel l = new JLabel(lab, JLabel.RIGHT);\r\n l.setPreferredSize(LABEL_SIZE);\r\n JPanel p = new JPanel(new FlowLayout(FlowLayout.CENTER));\r\n\r\n p.add(l);\r\n p.add(text);\r\n\r\n return p;\r\n }", "private void setUpLabelField()\n {\n Panel labelLabel = new FlowPanel();\n labelLabel.setStyleName(INFO_LABEL_STYLE);\n labelLabel.add(new InlineLabel(Strings.INSTANCE.linkLabelLabel()));\n InlineLabel mandatoryLabel = new InlineLabel(Strings.INSTANCE.mandatory());\n mandatoryLabel.addStyleName(\"xMandatory\");\n labelLabel.add(mandatoryLabel);\n Label helpLabelLabel = new Label(getLabelTextBoxTooltip());\n helpLabelLabel.setStyleName(HELP_LABEL_STYLE);\n\n labelErrorLabel.addStyleName(ERROR_LABEL_STYLE);\n labelErrorLabel.setVisible(false);\n // on enter in the textbox, submit the form\n labelTextBox.addKeyPressHandler(this);\n labelTextBox.setTitle(getLabelTextBoxTooltip());\n display().add(labelLabel);\n display().add(helpLabelLabel);\n display().add(labelErrorLabel);\n display().add(labelTextBox);\n }", "protected Label createLabel(Composite parent, String text, boolean bold) {\n Label label = new Label(parent, SWT.NONE);\n if (bold)\n label.setFont(JFaceResources.getBannerFont());\n label.setText(text);\n GridData data = new GridData();\n data.verticalAlignment = GridData.FILL;\n data.horizontalAlignment = GridData.FILL;\n label.setLayoutData(data);\n return label;\n }", "public LabelPanel(JLabel lab){\n setLayout(new BorderLayout());\n lab.setHorizontalAlignment(JLabel.CENTER);\n add(lab);\n }", "private Label createLeftPanelLabel() {\n Label toReturn = new Label(\"Spaces\");\n return toReturn;\n }", "private void makeInsomniaLabel(){\n insomniaName = new JLabel();\n insomniaName.setText(\" Insomnia\");\n insomniaName.setFont(new Font(\"Arial\" , Font.BOLD , 22));\n insomniaName.setBackground(Color.BLUE);\n insomniaName.setForeground(Color.white);\n insomniaName.setOpaque(true);\n insomniaName.setPreferredSize(new Dimension(200,70));\n }", "@Override\n protected void createLabels()\n {\n String text = this.getGraphicLabel();\n\n this.addLabel(text); // Start label\n this.addLabel(text); // End label\n }", "private static JLabel createLabel(JComponent parent, String text, int style) {\n JLabel label = new JLabel(text, style);\n parent.add(label);\n return label;\n }", "private void createLabelPanel( SpinListener sl, int kount ) {\n\t\tthis.vField = new Vector();\n\t\tthis.vLabel = new Vector();\n\t\t\n\t\tthis.labelPanel = new JPanel( new BorderLayout() );\n\t\tthis.labelPanel.setBorder( BorderFactory.createTitledBorder( \"Enter all Class Labels\") );\n\t\t\n\t\t//JSpinner, the class labels and the labels for class labels should go on labelPanel\n\t\tthis.fieldPanel = new JPanel();\n\t\tBoxLayout fieldBoxLayout = new BoxLayout( this.fieldPanel, BoxLayout.Y_AXIS );\n\t\tthis.fieldPanel.setLayout( fieldBoxLayout );\n\t\t\n\t\tthis.textPanel = new JPanel();\n\t\tBoxLayout textBoxLayout = new BoxLayout( this.textPanel, BoxLayout.Y_AXIS );\n\t\tthis.textPanel.setLayout( textBoxLayout );\n\t\t\n\t\tJPanel centerPanel = new JPanel();\n\t\tcenterPanel.add( this.textPanel );\n\t\tcenterPanel.add( this.fieldPanel );\n\t\t\n\t\tfor( int i = 0; i < kount; i ++ ) {\n\t\t\tJLabel label = new JLabel( \"Label \" + ( i + 1 ) );\n\t\t\tlabel.setMaximumSize( this.dLabel );\n\t\t\tlabel.setMinimumSize( this.dLabel );\n\t\t\tlabel.setPreferredSize( this.dLabel );\n\t\t\t\n\t\t\tJTextField field = new JTextField();\n\t\t\tfield.setMaximumSize( this.dField );\n\t\t\tfield.setMinimumSize( this.dField );\n\t\t\tfield.setPreferredSize( this.dField );\n\t\t\t\n\t\t\ttextPanel.add( label );\n\t\t\tfieldPanel.add( field );\n\t\t\t\n\t\t\tthis.vLabel.add( label );\n\t\t\tthis.vField.add( field );\n\t\t}\n\t\t\n\t\t//create a sub JPanel for JSpinner\n\t\tJPanel spinPanel = new JPanel();\n\t\t\n\t\t//create JSpinner for # of classes\n\t\tSpinnerNumberModel model = new SpinnerNumberModel( kount, 2, 50, 1 );\n\t\tthis.numClasses = new JSpinner( model );\n\t\tthis.numClasses.setMaximumSize( this.dLabel );\n\t\tthis.numLabel = new JLabel( \"# of Classes\" );\n\t\tspinPanel.add( this.numLabel );\n\t\tspinPanel.add( this.numClasses );\n\t\tthis.numClasses.addChangeListener( sl );\n\t\t\n\t\tthis.labelPanel.add( spinPanel, BorderLayout.NORTH );\n\t\tthis.labelPanel.add( centerPanel, BorderLayout.CENTER );\n\t}", "JLabel addLabel(String text, int style, Object constraints);", "void createMousePositionLabel() {\r\n mousePosition = new Label(\"here\");\r\n mousePosition.setMinWidth(800);\r\n mousePosition.setLayoutX(0);\r\n mousePosition.setLayoutY(500);\r\n }", "JLabel addLabel(String text, int style, float size, Object constraints);", "private Label createTitle() {\n Label titleLbl = new Label(\"Tank Royale\");\n titleLbl.setFont(Font.loadFont(getClass().getResourceAsStream(\"/resources/fonts/ToetheLineless.ttf\"), 50));\n titleLbl.setPrefWidth(400);\n titleLbl.setLayoutX(545 - titleLbl.getWidth() - 157);\n titleLbl.setLayoutY(125);\n return titleLbl;\n }", "@Override protected JComponent create(ActionListener handler, Map<String,JComponent> componentMap) {\n JLabel label = new JLabel(text);\n if(name!=null) componentMap.put(name,label);\n return label;\n }", "public void addLabels() {\n\t\t// *LABEL CREATION*\n\t\tlblInfoLogger = new JLabel();\n\t\tlblInfoLogger.setText(\"System Information Log\");\n\t\tlblInfoLogger.setBounds(20, 30, 150, 20);\n\t\tmainPanel.add(lblInfoLogger);\n\t\t\n\t\tlblOptionsTab = new JLabel(); //Reposition\n\t\tlblOptionsTab.setText(\"Options\");\n\t\tlblOptionsTab.setBounds(325, 30, 100, 20);\n\t\tmainPanel.add(lblOptionsTab);\n\t\t\n\t\tlblInfoOption = new JLabel();\n\t\tlblInfoOption.setText(\"Information to Include:\");\n\t\tlblInfoOption.setBounds(325, 60, 150, 20);\n\t\tmainPanel.add(lblInfoOption);\n\t\t\n\t\tlblMemFormatOption = new JLabel();\n\t\tlblMemFormatOption.setText(\"Memory Format:\");\n\t\tlblMemFormatOption.setBounds(325, 156, 150, 20);\n\t\tmainPanel.add(lblMemFormatOption);\n\t\t\n\t\tlblNotesArea = new JLabel();\n\t\tlblNotesArea.setText(\"User Notes\");\n\t\tlblNotesArea.setBounds(20, 410, 100, 20);\n\t\tmainPanel.add(lblNotesArea);\n\t}", "private void createGrpLabel() {\n\n\t\tgrpLabel = new Group(grpPharmacyDetails, SWT.NONE);\n\t\tgrpLabel.setText(\"Preview of Label\");\n\t\tgrpLabel.setBounds(new Rectangle(390, 40, 310, 230));\n\t\tgrpLabel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\n\t\tcanvasLabel = new Canvas(grpLabel, SWT.NONE);\n\t\tcanvasLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 18,\n\t\t\t\t285, 200));\n\t\tcanvasLabel.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tcreateCanvasBorders();\n\n\t\tlblCanvasPharmName = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasPharmName.setText(\"Facility Name\");\n\t\tlblCanvasPharmName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasPharmName.setBackground(ResourceUtils\n\t\t\t\t.getColor(iDartColor.WHITE));\n\t\tlblCanvasPharmName.setBounds(5, 6, 273, 20);\n\t\tlblCanvasPharmName\n\t\t.setFont(ResourceUtils.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasPharmName.setAlignment(SWT.CENTER);\n\n\t\tlblCanvasPharmacist = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasPharmacist.setText(\"Pharmacist\");\n\t\tlblCanvasPharmacist\n\t\t.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasPharmacist.setBackground(ResourceUtils\n\t\t\t\t.getColor(iDartColor.WHITE));\n\t\tlblCanvasPharmacist.setBounds(5, 27, 273, 20);\n\t\tlblCanvasPharmacist.setFont(ResourceUtils\n\t\t\t\t.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasPharmacist.setAlignment(SWT.CENTER);\n\n\t\tlblCanvasAddress = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasAddress.setText(\"Physical Address\");\n\t\tlblCanvasAddress.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasAddress\n\t\t.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tlblCanvasAddress.setBounds(5, 49, 273, 20);\n\t\tlblCanvasAddress.setFont(ResourceUtils.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasAddress.setAlignment(SWT.CENTER);\n\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints the key,value vector Note: this is a cleaner look at the values, as compared to using entrySet() or values()
public void printAll(){ Set s = _mmap.keySet(); Iterator setItr = s.iterator(); if (s.size() > 0){ while (setItr.hasNext()) { Object key = setItr.next(); WVM.out.print(" " + key + " <"); Vector v = (Vector)_mmap.get(key); Iterator vecItr = v.iterator(); while (vecItr.hasNext()) { Object value = vecItr.next(); WVM.out.print(value + ","); } WVM.out.println(">"); } } }
[ "private void displayValues() {\r\n\t\tCollection<String> values = map.values();\r\n\t\tSystem.out.println(\"All values:\");\r\n\t\tdisplayStringCollection(values);\r\n\t}", "public void debug() {\n String[] kv = new String[keys.length];\n\n for (int i = 0; i < kv.length; i++) {\n kv[i] = keys[i] + \": \" + vals[i];\n }\n\n StdOut.println(Arrays.toString(kv));\n }", "public void showAll()//fetching all keys and values\r\n\t{\r\n\t\tSystem.out.println(\"keys and values are....\");\r\n\t\tfor(int i=0;i<key.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(key.get(i)+\"----->\"+value.get(i));\r\n\t\t}\r\n\t}", "@Override\n\tpublic void print() {\n\n\t\tSystem.out.println(\"Keys : \" + valCode);\n\n\t\t// Place map entries in a set. Sets are unordered.\n\t\tSet<Entry<String, String>> entries = super.map.entrySet();\n\n\t\t// Use iterator to print the set\n\t\tfor (Entry<String, String> entry : entries)\n\t\t\tSystem.out.println(entry.getKey() + \" : \" + entry.getValue());\n\t}", "void printValues(Vector Vect){\n\t\tint index;\n\t\tfor(index=0;index< Vect.size(); index++){\t\n\t\t\tSystem.out.println(\"Element \" + Vect.elementAt(index));\n\t\t}\n\t\t\n\t}", "public void showAll() {\r\n\t\tObject[] keyset = getKeySet();\r\n\t\tSystem.out.println(\"Key Value Pair\");\r\n\t\tfor (Object key : keyset) {\r\n\t\t\tSystem.out.println(key + \"-->\" + get(key));\r\n\t\t}\r\n\r\n\t}", "public static void printValues(){\n\t\tSet s = config.entrySet();\n\t\tIterator si = s.iterator();\n\t\tMap.Entry me;\n\t\twhile(si.hasNext()){\n\t\t\tme = ((Map.Entry) (si.next()));\n\t\t\tSystem.out.println(me.getKey() + \" \" + me.getValue());\n\t\t}\n\n\t}", "@Override\n public String toString()\n {\n return key.toString() + \" : \" + value.toString();\n }", "void keys() {\n for (int i = 0; i < size; i++) {\n System.out.println(keys[i] + \" \" + values[i]);\n }\n }", "public void printCarsValues() {\r\n\r\n\t\tCars[] carsArray = Cars.values();\r\n\t\tfor (int i = 0; i < carsArray.length; i++) {\r\n\t\t\tCars item = carsArray[i];\r\n\t\t\tSystem.out.print(\" CAR: \" + item.name());\r\n\t\t\tSystem.out.println(\" VALUE: \" + item.getValue());\r\n\t\t}\r\n\t}", "private void displayValuesOfaGivenKey(int key) {\r\n\t\tSystem.out.printf(\"Values with key=%d:\\n\", key);\r\n\t\tCollection<String> obj = map.get(key);\r\n\t\tdisplayStringCollection(obj);\r\n\t}", "private void printKeys()\r\n\t{\r\n\t\tSystem.out.print(\"[\");\r\n \t\tfor (int i = 0; i < this.keyTally; i++)\r\n \t\t{\r\n \t\tSystem.out.print(\" \" + this.keys[i]);\r\n \t\t}\r\n \t\tSystem.out.print(\"]\");\r\n\t}", "public void show() {\r\n\t\tfor (int i = 0; i < myBucketArray.size(); i++) {\r\n\t\t\tMyMapNode<K, V> head = myBucketArray.get(i);\r\n\t\t\twhile (head != null) {\r\n\t\t\t\tSystem.out.println(head.key + \"-\" + head.value);\r\n\t\t\t\thead = head.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void printFilteredMap() {\n\t\tthis.result.forEach((k, v )-> v.forEach((s)->System.out.println(k + \" : \"+ s )));\n\n\t}", "public static void printWordVector(Map<String,Float> wordvector){\n \n for (String w : wordvector.keySet()) {\n System.out.println(w+\"\\t\"+wordvector.get(w));\n }\n }", "public static void printHashMap() {\n System.out.println(sensorValues);\n }", "public void printVMs()\n { \n logger.fine(\"Entering VMwareInventory.printVMs()\");\n int i = 0;\n for (String moref: this.vmMap.keySet()) {\n i++;\n String comma = \"\";\n System.out.print(moref+\" : { \");\n for (Map.Entry<String,Object> entry : this.vmMap.get(moref).entrySet()) {\n System.out.println(comma);\n System.out.print(entry.getKey()+\" : \"+entry.getValue());\n comma=\",\";\n }\n System.out.println(\"\");\n System.out.println(\"}\");\n }\n System.out.println(\"Total # of VMs \"+i);\n logger.fine(\"Exiting VMwareInventory.printVMs()\");\n }", "private void printMap() {\n\t\tfor(Integer key: location.keySet()){\n\t\t\tString val= location.get(key).toString();\n\t\t\tSystem.out.println(\"(\" + key.toString() + \", \" + val+ \")\");\n\t\t}\n\t}", "public void print() {\n for (Map.Entry<String, String> entry : dictionary.entrySet()) {\r\n String key = entry.getKey();\r\n System.out.println(key + \": \" + dictionary.get(key));\r\n }\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This constructor creates a basic SimpleAnnotatedAlignment. The annotation should be added with the set commands.
public SimpleAnnotatedAlignment(Identifier[] ids, String[] sequences, String gaps, DataType dt) { super(ids, sequences, gaps,dt); initWhenNoAnnotation(); weightedPosition=new float[numSites]; positionType=new char[numSites]; }
[ "public Alignment()\n\t{\n\t}", "public BasicAlignment (Glyph glyph)\r\n {\r\n super(glyph);\r\n }", "public MultipleAlignment() { \r\n\t\tgappedAlignments = new HashMap<String,GappedAlignmentString>();\r\n\t\tordering = new Vector<String>();\r\n\t\tgappedLength = 0;\r\n\t}", "public SimpleAnnotatedAlignment(AnnotationAlignment a, IdGroup newGroup) {\n\t\tint intersectionCount=0;\n\t\tfor (int i = 0; i <newGroup.getIdCount(); i++) {\n\t\t\tint oldI=a.whichIdNumber(newGroup.getIdentifier(i).getName());\n\t\t\tif(oldI>=0) intersectionCount++;\n\t\t\t}\n\t\tsequences=new String[intersectionCount];\n\t\tintersectionCount=0;\n\t\tfor (int i = 0; i <newGroup.getIdCount(); i++) {\n\t\t\tint oldI=a.whichIdNumber(newGroup.getIdentifier(i).getName());\n\t\t\tif(oldI>=0)\n\t\t\t\t{sequences[intersectionCount]=a.getAlignedSequenceString(oldI);\n\t\t\t\tintersectionCount++;\n\t\t\t\t}\n\t\t\t}\n\t\tinit(newGroup,sequences);\n\t\tchromosomePosition=a.getChromosomePosition(0);\n\t\tchromosome=a.getChromosome(0);\n\t\tlocusName=a.getLocusName(0);\n\t\tweightedPosition=new float[numSites];\n\t\tpositionType=new char[numSites];\n\t\tfor (int i = 0; i <numSites; i++) {\n\t\t\tweightedPosition[i]=a.getWeightedLocusPosition(i);\n\t\t\tpositionType[i]=a.getPositionType(i);\n\t\t\t}\n\t}", "public void testAlignSimple() {\n Sequence seq1Obj = new Sequence(\"GAATT\");\n Sequence seq2Obj = new Sequence(\"GGATC\");\n IDistanceMatrix matrix = new WikipediaAlignmentMatrix1();\n IGapCost gapCost = new ConstantGapCost(-5);\n RecursiveNWAlignmentProcessor instance = new RecursiveNWAlignmentProcessor(AlignmentMode.GLOBAL, AlignmentAlgorithm.NEEDLEMAN_WUNSCH, matrix, gapCost);\n AlignmentResult result = instance.align(seq1Obj, seq2Obj);\n assertEquals(24.0, result.getScore());\n \n }", "public void setAlignment(java.lang.Object value) {\n this.alignment = value;\n }", "public TreeAlign(TreeAlignLabelDistanceAsymmetric<ValueType1, ValueType2> labelDist) {\n this.labelDist = labelDist;\n }", "public AnnotationAlignment(ArrayList<AA_Line_Container> GTFlist, String referenceDNAFile, String DNAFile){\n\t\t\n\t\tthis.GTFlist = GTFlist;\n\t\tthis.referenceDNAFile = referenceDNAFile;\n\t\tthis.DNAFile = DNAFile;\n\t\t\n\t}", "Annotation createAnnotation();", "private Annotation() {\n tokens = new Token[] {};\n }", "public GlobalSequenceAligner(List<T> reference, int offset) {\n this.reference = newArrayList(reference);\n this.offset = offset;\n }", "public GlobalSequenceAligner(List<T> reference) {\n this(reference, 0);\n }", "public LabelBuilder setHorizontalAlignment(int alignment) {\n this.label.setHorizontalAlignment(alignment);\n return this;\n }", "public void setAlignment(Alignment newValue) {\n set(PROPERTY_ALIGNMENT, newValue);\n }", "public interface Alignment {\n\n\t/** Returns the distance between the two sequences. */\n\tpublic long getDistance();\n}", "public String getAlignment();", "public ObjectiveAlignmentBase(org.semanticwb.platform.SemanticObject base)\r\n {\r\n super(base);\r\n }", "public void setAlignment(String value) {\n alignment = value;\n stateChanged();\n }", "public VisionAlignCommand(VisionSubsystem visionSubsystem, DriveSubsystem driveSubsystem) {\n m_visionSubsystem = visionSubsystem;\n m_driveSubsystem = driveSubsystem;\n\n addRequirements(m_visionSubsystem, m_driveSubsystem);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove i from a binary search tree
public void removeBST(Item i) { remove(i,root); }
[ "public int delete(int i) //O(log(n))\n {\n\t if(this.lst == null)\n\t\t return -1;\n\t if(i < 0 || i >= this.length)\n\t\t return -1;\n\t this.length--; //one element removed\n\t this.lst.correctFrom(this.lst.deletenode(this.lst.Select(i+1))); //see details in class AVLTree\n\t return 0;\n }", "public void deleteSimple(int i) {\n\t\t// shift to left by one position\n\t\tSystem.out.println(\"delete leaf:\\t\\t\" + Arrays.toString(keys) + lastindex + \"\\tindex:\" + i + \"\\tval:\" + keys[i]);\n\t\tlastindex -= 1;\n\t\tfor (int j = i; j <= lastindex; j++) {\n\t\t\tkeys[j] = keys[j + 1];\n\t\t\tptrs[j] = ptrs[j + 1];\n\t\t}\n\t\tkeys[lastindex + 1] = 0;\n\t}", "public Bacteria remove(int i) {\n\t\tBacteria parent = getAtIndex(i);\n\t\tthis.inds.remove(i);\n\t\tpopSize--;\n\t\treturn parent;\n\t}", "private void removeAt(int i) {\n // The order of the edges is irrelevant, so we can simply replace\n // the deleted edge with the rightmost element, thus achieving constant\n // time.\n if (i == neighbors.size() - 1) {\n neighbors.popLong();\n } else {\n neighbors.set(i, neighbors.popLong());\n }\n // If needed after the removal, trim the array.\n trimBack();\n }", "protected void removeLeftLine(int i)\r\n {\r\n boolean done = false;\r\n\r\n if(tree[i] != null)\r\n {\r\n count--;\r\n tree[i] = null;\r\n }\r\n else\r\n done=true;\r\n\r\n if(!done)\r\n {\r\n removeRightLine(i*2+2);\r\n removeLeftLine(i*2+1);\r\n }\r\n }", "public TreeNode<T> removeChild( int ix ) {\n\t\treturn this.children.remove( ix );\n\t}", "@Override\n public boolean remove(Integer value) {\n TreeNode<Integer> node = find(value, root);\n\n if (node == null)\n return false;\n\n if (node.getLeft() == null && node.getRight() == null) {\n replace(node, null);\n\n } else if (node.getLeft() == null && node.getRight() != null) {\n replace(node, node.getRight());\n } else if (node.getLeft() != null && node.getRight() == null) {\n replace (node, node.getLeft());\n } else {\n TreeNode<Integer> min = node.getRight();\n while (min.getLeft() != null)\n min = min.getLeft();\n min.setLeft(node.getLeft());\n node.getLeft().setParent(min);\n replace(node, node.getRight());\n }\n return true;\n }", "@SuppressWarnings(\"unchecked\")\n private E removeAt(int i) {\n // assert i >= 0 && i < size;\n modCount++;\n int s = --size;\n if (s == i) // i是最后一个,直接删除\n queue[i] = null; // 直接删除\n else {\n E moved = (E) queue[s]; // 把最后一个元素保存到临时变量moved\n queue[s] = null; // 删除最后一个元素\n siftDown(i, moved); // 把原最后的元素放入位置i, 并调用siftDown重新调整堆\n if (queue[i] == moved) { // 如果siftDown之后,queue[i] == moved, 表明 moved < 所有child,moved原来也是叶节点 \n siftUp(i, moved); // 这时候要尝试做siftUp\n if (queue[i] != moved) //如果siftUp使堆有变化,则返回moved\n return moved;\n }\n }\n return null; // 如果到i-1为止堆元素没有变化,返回null\n }", "private Tree<AlignedNode<ValueType1, ValueType2>> treeDeleted(int i) {\n Tree<AlignedNode<ValueType1, ValueType2>> root =\n new Tree<AlignedNode<ValueType1, ValueType2>>();\n AlignedNode<ValueType1, ValueType2> alignedNode = new AlignedNode<ValueType1, ValueType2>();\n alignedNode.setLeftNode(treeData1.nodes[i]);\n alignedNode.setRightNode(null);\n root.setValue(alignedNode);\n for (int r = 0; r < treeData1.degrees[i]; r++) {\n root.getChildren().add(treeDeleted(treeData1.children[i][r]));\n }\n return root;\n }", "public void remove(T item){\n if(root == null || !contains(item))\n return;\n else if(root.val.equals(item)){\n TreeNode<T> minNode = minimum(root.right);\n remove(minNode.val);\n root.val = minNode.val;\n return;\n }\n this.removeNode(this.root, item);\n }", "public void removeFromNonLeaf(int idx) \r\n\t{ \r\n \r\n\t\tT k = (T)keys[idx]; \r\n\r\n\t\r\n\t\t// If the child that precedes k (C[idx]) has atleast ts keys, \r\n\t\t// find the predecessor 'pred' of k in the subtree rooted at \r\n\t\t// C[idx]. Replace k by pred. Recursively delete pred \r\n\t\t// in C[idx] \r\n\t\tif (references[idx].keyTally >= m) \r\n\t\t{ \r\n\t\t\tT pred = getPred(idx); \r\n\t\t\tkeys[idx] = pred; \r\n\t\t\treferences[idx].delete(pred); \r\n\t\t} \r\n\t\r\n\t\t// If the child C[idx] has less that t keys, examine C[idx+1]. \r\n\t\t// If C[idx+1] has atleast t keys, find the successor 'succ' of k in \r\n\t\t// the subtree rooted at C[idx+1] \r\n\t\t// Replace k by succ \r\n\t\t// Recursively delete succ in C[idx+1] \r\n\t\telse if (references[idx+1].keyTally >= m) \r\n\t\t{ \r\n\t\t\tT succ = getSucc(idx); \r\n\t\t\tkeys[idx] = succ; \r\n\t\t\treferences[idx+1].delete(succ); \r\n\t\t} \r\n\t\r\n\t\t// If both C[idx] and C[idx+1] has less that t keys,merge k and all of C[idx+1] \r\n\t\t// into C[idx] \r\n\t\t// Now C[idx] contains 2t-1 keys \r\n\t\t// Free C[idx+1] and recursively delete k from C[idx] \r\n\t\telse\r\n\t\t{ \r\n\t\t\tmerge(idx); \r\n\t\t\treferences[idx].delete(k); \r\n\t\t} \r\n\t\treturn; \r\n\t}", "public void RemoveChild(int index);", "public T removeMin() throws EmptyCollectionException \n {\n\n T result = null;\n\n if (isEmpty())\n throw new EmptyCollectionException (\"binary tree\");\n else \n {\n int currentIndex = 1;\n int previousIndex = 0;\n while (tree[currentIndex] != null && currentIndex <= tree.length) \n {\n previousIndex = currentIndex;\n currentIndex = currentIndex * 2 + 1;\n } //while\n result = tree[previousIndex] ;\n replace(previousIndex);\n } //else\n\n count--;\n\n return result;\n }", "public void delete(int index) {\n\t\tNode node = getNode(index+1);\n\t\tNode parentOfLast = getNode(size >> 1);\n\t\tnode.data = parentOfLast.right != null ? parentOfLast.right.data : parentOfLast.left.data;\n\t\tif (parentOfLast.right != null) {\n\t\t\tparentOfLast.right = null;\n\t\t}\n\t\telse {\n\t\t\tparentOfLast.left = null;\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate boolean deleteLeafByIndex(int i)\r\n\t{\r\n\t\tboolean success = true;\r\n\t\tTreeNode<E> target = getTreeNode(root, i);\r\n\r\n\t\tboolean hasChildren = false; //\r\n\t\tfor (int j=0; j<kFactor; j++) // Routine to check if Node has children\r\n\t\t\tif (target.children[j] != null) //\r\n\t\t\t\thasChildren = true; //\r\n\t\t\r\n\t\tif (hasChildren || target == null) // if Node to delete is not a leaf or the index (i) is not element of the tree.\r\n\t\t\tsuccess = false;\r\n\t\t\r\n\t\t\r\n\t\telse // if the Node has no children and (i) is index to an element of the tree\r\n\t\t{\r\n\t\t\tif(i != 0) // if element to delete is not the root\r\n\t\t\t{\r\n\t\t\t\tE[] newArrayTree = (E[])toArray(); // turn the tree into an array (temporarily)\r\n\t\t\t\tnewArrayTree[i] = null; // turn that desired index of the tree into a null (delete element)\r\n\t\t\t\t\r\n\t\t\t\theight = 0;\t\t\t\t\t\t\t\t\t//\r\n\t\t\t\tsize = 1; \t//\r\n\t\t\t\troot = new TreeNode<E>(newArrayTree[0]);\t// re-build the tree.\r\n\t\t\t\tbuild(root, 0, newArrayTree);\t\t\t\t//\r\n\t\t\t}\r\n\t\t\telse // if we are deleting the root\r\n\t\t\t{\r\n\t\t\t\theight = size = 0;\r\n\t\t\t\troot = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn success;\r\n\t}", "public void remove() {\n\t\tbst.remove(this.next());\n\t}", "void delete(int index) {\n assert(size > index);\n\n if (isLeaf()) {\n System.arraycopy(vals, index + 1, vals, index, vals.length - index - 1);\n size--;\n\n // if not root\n if(parent != null) {\n rebalance();\n }\n } else {\n if (parent != null && parentIndex < parent.size) {\n var right = findSmallestGtChild(index).node;\n\n if (right.size > right.minSize) {\n vals[index] = right.vals[0];\n right.popLeftHard();\n right.rebalance();\n\n return;\n }\n }\n\n var left = findLargestLtChild(index).node;\n\n vals[index] = left.vals[left.size - 1];\n left.popRightHard();\n left.rebalance();\n }\n }", "public void delete(int val) {\n var loc = root.find(val);\n\n if (loc == null) {\n return;\n }\n\n var node = loc.node;\n var index = loc.index;\n if (node != null) {\n node.delete(index);\n\n // drop current root if empty and non-leaf\n if (root.size == 0) {\n if (!root.isLeaf()) {\n root = root.keys[0];\n root.parent = null;\n }\n }\n }\n }", "public void delete(T val){\n\t\t\tif(n<=0) return;\n\t\t\tthis.root = delete(this.root, val);\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }